Disclosure of Invention
In view of this, embodiments of the present specification provide a data transmission method, an apparatus, a computing device, and a storage medium, so as to solve technical defects in the prior art.
According to a first aspect of the embodiments of the present specification, there is provided a data transmission method applied to a terminal, including:
receiving main account information provided by a main account through an access device binding code, wherein the main account information comprises account information of the main account and login device information of the main account;
sending a creating request of a sub-account to a server corresponding to the main account, wherein the creating request of the sub-account carries the information of the main account and the identification information of a terminal corresponding to the sub-account;
receiving a sub-account creation success response sent by the server, wherein the sub-account creation success response carries the main account information and identification information of a terminal corresponding to the sub-account;
and receiving and displaying the transaction information of the main account sent by the server.
According to a second aspect consistent with an embodiment of the present disclosure, there is provided a data transmission method, applied to a server, including:
receiving a creating request of a sub-account, wherein the creating request of the sub-account carries main account information and identification information of a terminal corresponding to the sub-account, and the main account information comprises account information of the main account and login equipment information of the main account;
creating a corresponding sub-account for the main account according to the creation request, and sending a sub-account creation success response to a terminal corresponding to the sub-account and login equipment of the main account, wherein the sub-account creation success response carries the main account information and identification information of the terminal corresponding to the sub-account;
and receiving the transaction information of the main account, and sending the transaction information to a terminal corresponding to the sub-account.
According to a third aspect of the embodiments of the present specification, there is provided a data transmission apparatus, applied to a terminal, including:
a first receiving module: configured to receive primary account information provided by a primary account through an access device binding code, the primary account information including account information of the primary account and login device information of the primary account;
a sending module: the system comprises a main account, a server and a sub account, wherein the main account is configured to send a creating request of the sub account to the server corresponding to the main account, and the creating request of the sub account carries the main account information and the identification information of a terminal corresponding to the sub account;
a second receiving module: the sub-account creation success response is configured to be received, wherein the sub-account creation success response carries the main account information and the identification information of the terminal corresponding to the sub-account;
a display module: the server is configured to receive and display the transaction information of the primary account sent by the server.
According to a fourth aspect of the embodiments of the present specification, there is provided a data transmission apparatus, applied to a server, including:
a third receiving module: the method comprises the steps that a creating request of a sub-account is received, wherein the creating request of the sub-account carries main account information and identification information of a terminal corresponding to the sub-account, and the main account information comprises account information of the main account and login equipment information of the main account;
a sending module: the account creating system is configured to create a corresponding sub-account for the main account according to the creating request, and send a sub-account creating success response to a terminal corresponding to the sub-account and login equipment of the main account, wherein the sub-account creating success response carries the main account information and identification information of the terminal corresponding to the sub-account;
a fourth receiving module: the terminal is configured to receive the transaction information of the main account and send the transaction information to the terminal corresponding to the sub-account.
According to a fifth aspect of embodiments herein, there is provided a computing device comprising a memory, a processor and computer instructions stored on the memory and executable on the processor, the processor implementing the steps of the data transmission method when executing the instructions.
According to a sixth aspect of embodiments herein, there is provided a computer readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the data transmission method.
In an embodiment of the present specification, primary account information provided by a primary account through an access device binding code is received, where the primary account information includes account information of the primary account and login device information of the primary account; sending a creating request of a sub-account to a server corresponding to the main account, wherein the creating request of the sub-account carries the information of the main account and the identification information of a terminal corresponding to the sub-account; receiving a sub-account creation success response sent by the server, wherein the sub-account creation success response carries the main account information and identification information of a terminal corresponding to the sub-account; and receiving and displaying the transaction information of the main account sent by the server.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The terminology used in the description of the one or more embodiments is for the purpose of describing the particular embodiments only and is not intended to be limiting of the description of the one or more embodiments. As used in one or more embodiments of the present specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present specification refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first can also be referred to as a second and, similarly, a second can also be referred to as a first without departing from the scope of one or more embodiments of the present description. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In this specification, a data transmission method, an apparatus, a computing device, and a storage medium are provided, and detailed descriptions are individually made in the following embodiments.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a data transmission system according to an embodiment of the present invention, and before introducing the technical solution of the present application, first, a description is given to an architecture of the data transmission system related to the present application.
Fig. 1 shows a schematic architecture diagram of a data transmission system according to an embodiment of the present description. Including a server 110, a network 130 and a terminal 120.
The components of the server 110 and the terminal 120 include, but are not limited to, memory and processors. The processor is connected with the memory through a bus, and the database is used for storing data.
The server 110 and the terminal 120 also include access devices that enable the server 110 and the terminal 120 to communicate via one or more networks 130. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet.
The access device may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
Fig. 2 shows a flowchart of a data transmission method according to an embodiment of the present disclosure, applied to a terminal, including steps 202 to 208.
Step 202: receiving main account information provided by a main account through an access device binding code, wherein the main account information comprises account information of the main account and login device information of the main account.
In an embodiment of this specification, the device binding code includes a two-dimensional code.
In practical application, the terminal may be an idle smartphone, and the terminal receives primary account information provided by a primary account through an access device binding code, where the primary account may be a payment account of a merchant.
The idle smart phone is added with a sub-account display module through a network, and the sub-account display module can display the equipment binding code and also has the functions of receiving and displaying information. In practical application, the sub-account presentation module can be regarded as a very simple payment client. The payment client of the minimalist edition can support checking of bill information of a main account and display of collection information in a voice broadcasting mode.
In an embodiment of this specification, a merchant logs in a primary account on a device held by the merchant, and scans a device binding code provided by an idle smartphone through the device, and the idle smartphone can acquire account information of the primary account of the merchant and login device information of the primary account.
Step 204: and sending a creating request of a sub-account to a server corresponding to the main account, wherein the creating request of the sub-account carries the information of the main account and the identification information of a terminal corresponding to the sub-account.
In an embodiment of the present specification, the account information of the primary account includes an account name and a login password of the primary account; the login equipment information of the primary account comprises the equipment ID of the login equipment of the primary account; the identification information of the terminal corresponding to the sub-account of the sub-account comprises the ID of the terminal corresponding to the sub-account.
In practical application, a terminal sends a request for creating a sub-account to a server corresponding to a main account, and the terminal is a terminal corresponding to the sub-account. The creating request of the sub-account carries the main account information and the terminal identification information, wherein the terminal may include an idle smartphone, the server corresponding to the main account may include a server of the payment application P, the account information of the main account may include an account name and a login password of the main account of the merchant in the payment application P, the login device information of the main account may include a device ID of a device of the merchant logging in the payment application P, and the terminal identification information of the sub-account may include the device ID of the idle smartphone.
And sending a request for creating a sub-account to a server of the payment application P through the idle smart phone, wherein the request for creating the sub-account comprises an account name and a login password of a main account of the merchant in the payment application P, and further comprises an equipment ID of the idle smart phone.
Step 206: and receiving a sub-account creation success response sent by the server, wherein the sub-account creation success response carries the main account information and the identification information of the terminal corresponding to the sub-account.
Step 208: and receiving and displaying the transaction information of the main account sent by the server.
In practical applications, the setting of the specific display mode may be set by the merchant through a login device of the primary account, which is not limited in this specification.
In an embodiment of the present specification, the terminal receives a sub-account creation success response sent by a server, where the sub-account creation success response carries the main account information and identification information of a terminal corresponding to the sub-account; creating a sub-account of a successful main account through a creation server, wherein the sub-account can include account information of the main account, and when the main account receives payment information, the sub-account can also receive the payment information, and the main account and the sub-account receive the payment information synchronously; and the main account can call the element of the sub-account login device through the network, for example, the login device of the main account can call the sound of the sub-account login device, and the collection amount can be broadcasted in voice by using the sound.
In an embodiment of this specification, the method further includes:
receiving a viewing instruction, wherein the viewing instruction comprises a target object to be viewed;
and displaying the related information of the target object according to the viewing instruction.
In an embodiment of the present specification, the transaction information of the primary account includes a collection amount of the primary account.
In an embodiment of this specification, the receiving and displaying the transaction information of the primary account sent by the server includes:
and receiving the transaction information of the main account sent by the server and carrying out voice broadcast or screen display.
In practical applications, the data transmission method provided in the embodiment of the present specification is described by taking payment application P as an example.
When a user shops in a merchant's store, payment can be made by scanning a checkout code provided by the store. When the user pays successfully, the payment application P of the merchant forms transaction information and sends the transaction information to the main account and the sub-account of the merchant respectively, so that the idle smart phone can receive the transaction information and perform voice broadcast or screen display on the transaction information. The salesperson listens or checks the collected money amount, and can check the business; when the clerk needs to check the total amount of the collected money in one day or each detailed amount, the idle smart phone can check the condition of the collected money in the day.
According to the data transmission method provided by the embodiment of the specification, the terminal receives the main account information provided by the main account through the access equipment binding code, sends the creation request of the sub-account to the server, receives the successful creation response of the sub-account sent by the server, can be idle intelligent equipment, and changes waste into valuable. Receiving the collection condition of the main account through the sub-account without creating a new collection account; when a transaction occurs, the idle intelligent equipment can be used for carrying out voice broadcast or picture display on transaction information, even if the equipment logged in by the main account is not in the shop, the payment condition can be monitored in time, and convenience is provided for users and shop assistants.
Fig. 3 shows a flowchart of a data transmission method according to an embodiment of the present disclosure, which is applied to a server and includes steps 302 to 306.
Step 302: receiving a creating request of a sub-account, wherein the creating request of the sub-account carries main account information and terminal identification information corresponding to the sub-account, and the main account information comprises account information of the main account and login equipment information of the main account.
In practical applications, the request for creating the sub-account may be sent by a terminal, where the terminal may be an idle smartphone, for example, a server of a payment application P receives a request for creating the sub-account from a main account of a merchant using the idle smartphone, where the request for creating the sub-account includes an account name and a login password of the main account, and further includes a device ID for logging in the main account and a device ID of the idle smartphone corresponding to the sub-account.
The primary account may be a payment account of the merchant.
Step 304: and creating a corresponding sub-account for the main account according to the creation request, and sending a sub-account creation success response to the terminal corresponding to the sub-account and the login device of the main account, wherein the sub-account creation success response carries the main account information and the identification information of the terminal corresponding to the sub-account.
In an embodiment of the present specification, the account information of the primary account includes an account name and a login password of the primary account; the login equipment information of the primary account comprises the equipment ID of the login equipment of the primary account; and the identification information of the terminal corresponding to the sub-account comprises the terminal ID corresponding to the sub-account.
In an embodiment of the present specification, a response that the sub-account is successfully created is sent to a terminal corresponding to the sub-account, and the terminal corresponding to the sub-account is successfully bound with the main account.
Step 306: and receiving the transaction information of the main account, and sending the transaction information to a terminal corresponding to the sub-account.
In an embodiment of the present specification, the transaction information of the primary account includes a collection amount of the primary account.
In practical applications, the data transmission method provided in the embodiment of the present specification is described by taking payment application P as an example.
When a user shops at a merchant's store, payment can be made by scanning a checkout code provided by the store. When the user pays successfully, the service end corresponding to the payment application P of the merchant forms transaction information and sends the transaction information to the main account and the sub-account of the merchant respectively, so that the main account and the sub-account both receive the transaction information.
According to the data transmission method provided by the embodiment of the specification, the server receives the creation request of the sub-account, the creation request carries the account information of the main account information and the login equipment information of the main account, the corresponding sub-account is created for the main account according to the creation request, and the terminal corresponding to the sub-account can be idle intelligent equipment, so that waste is turned into wealth. The method can receive the payment condition of the main account through the sub-account under the condition that a new payment account does not need to be created, and can monitor the payment condition in time even if the equipment logged in by the main account is not in the store, so that convenience is provided for users and store clerks.
The data transmission method according to an embodiment of the present disclosure is described in detail below with reference to fig. 4 and 5. Fig. 4 shows an interaction diagram of a data transmission method according to an embodiment of the present disclosure, where the method involves a login device 4A of a primary account, a server 4B, and an idle smart device 4C. The method comprises steps 402 to 418.
Step 402: the login device of the primary account scans the device binding code of the idle smart device.
In this embodiment, the idle smart device 4C may be an idle smart phone. The server 4B is a server corresponding to the primary account. In practical applications, for example, the payment application P receives cash, the primary account may be a payment account of the merchant in the payment application P, and the login device of the primary account is a mobile phone of the merchant logging in the payment account.
And the merchant scans the equipment binding code on the idle smart phone by logging in the mobile phone with the collection account, and sends the account name, the login password and the mobile phone equipment ID of the merchant of the collection account to the idle smart phone.
In an embodiment of the present specification, a login device of a primary account scans an equipment binding code provided by an idle intelligent device, and sends account information of the primary account and equipment information of the login device of the primary account to the idle intelligent device, so as to base creation of a sub-account corresponding to the primary account.
Step 404: and the idle intelligent equipment sends a request for creating the sub-account to the server.
Referring to fig. 5(a), in practical applications, the smart device 510 is a login device of a primary account of a merchant, and may be a smart phone. The smart device 520 is an idle smart device, which may also be a smart phone. In practice, there may be a plurality of said intelligent devices 520. The smart device 510 scans the device binding code provided by the smart device 520 to create a sub-account corresponding to the primary account.
In an embodiment of the present specification, an idle intelligent device sends, through a network, account information carrying a main account and device information carrying the main account, and also carries identification information of the idle intelligent device to a server corresponding to the main account, and requests the server corresponding to the main account to create a sub-account for the main account.
Step 406: and the server side creates a corresponding sub-account for the main account according to the creation request.
Step 408: and the server side sends a creating success response to the idle intelligent equipment.
Step 410: and the server side sends a response of successful creation to the login equipment of the primary account.
In an embodiment of the present specification, a request for creating a sub-account sent by an idle intelligent device is received through a server corresponding to a main account, and the server corresponding to the main account responds to the creation of the sub-account corresponding to the main account and notifies a login device of the main account that the creation of the sub-account corresponding to the main account is successful.
In practical application, the server corresponding to the payment application P sends a successful response for creating the sub-account of the payment account of the merchant to the idle smart phone and the mobile phone of the merchant, and the idle smart phone can establish a binding relationship with the main account through the sub-account.
Step 412: and the login equipment of the main account sends a transaction notification to the server.
Step 414: and the server side sends the transaction information to the login equipment of the main account.
Step 416: and the server side sends the transaction information to the idle intelligent equipment.
Referring to fig. 5(b), in practical applications, the smart device 530 is a smart phone of the user, and the user can scan the cash register 560 in the store through the smart device 530 to make payment. The payment notice is sent to the server 4B through the network 540, and the server 4B sends the transaction information to the smart device 510 and the smart device 520.
In an embodiment of the present specification, when a transaction occurs, a user collects money through a collection code, and when payment is successful, the primary account forms transaction information and sends the transaction information to a login device and an idle intelligent device of the primary account.
In an embodiment of the present specification, the server sends the transaction information to a login device of a primary account and an idle intelligent device, and the idle intelligent device may receive the same transaction information as the login device of the primary account.
Step 418: and displaying the transaction information by the idle intelligent equipment.
In an embodiment of the specification, the transaction information is displayed through the idle intelligent device, and the display may be voice broadcast or screen display.
Referring to fig. 5(b), the stereo 550 is connected to the smart device 520. The smart device 520 may voice-report the received transaction information through the speaker 550.
In practical application, the idle smart phone can receive the payment amount of the user, voice broadcast is carried out on the payment amount of the user or the payment amount is displayed through a screen, and a clerk can check the service by listening or checking the payment amount. When the clerk needs to check the total amount of the collected money in one day or each detailed amount, the idle smart phone can check the condition of the collected money in the day.
In an embodiment of the present specification, by creating a sub-account corresponding to a main account, a collection situation of the main account can be received through the sub-account without creating a new collection account; the idle intelligent mobile phone is used as the idle intelligent equipment to receive the payment receiving notification in the shop, and when a transaction occurs, the idle intelligent equipment can perform voice broadcast or picture display on transaction information, so that waste is changed into valuable; even if the equipment logged in by the main account is not in the store, the payment condition can be monitored in time, and convenience is provided for users and store personnel.
Corresponding to the above method embodiments, the present specification also provides data transmission device embodiments, which are applied to a terminal, and fig. 6 shows a block diagram of a data transmission device according to an embodiment of the present specification. As shown in fig. 6, the apparatus 600 includes:
the first receiving module 602: configured to receive primary account information provided by a primary account through an access device binding code, the primary account information including account information of the primary account and login device information of the primary account;
the sending module 604: the system comprises a main account, a server and a sub account, wherein the main account is configured to send a creating request of the sub account to the server corresponding to the main account, and the creating request of the sub account carries the main account information and terminal identification information corresponding to the sub account;
the second receiving module 606: the server side is configured to receive a sub-account creation success response sent by the server side, wherein the sub-account creation success response carries the main account information and terminal identification information corresponding to a sub-account;
the presentation module 608: the server is configured to receive and display the transaction information of the primary account sent by the server.
In an optional embodiment, the method further comprises:
a receiving unit: the method comprises the steps of receiving a viewing instruction, wherein the viewing instruction comprises a target object to be viewed;
a display unit: configured to display information related to the destination object according to the viewing instruction.
In an optional embodiment, main account information provided by a main account through an access device binding code is received, the main account information includes account information of the main account and login device information of the main account, a sub-account creation request is sent to a server corresponding to the main account, the sub-account creation request carries the main account information and terminal identification information corresponding to the sub-account, a sub-account creation success response sent by the server is received, and the sub-account creation success response carries the main account information and the terminal identification information corresponding to the sub-account; and receiving and displaying the transaction information of the main account sent by the server.
Corresponding to the above method embodiments, the present specification further provides data transmission device embodiments, which are applied to a server side, and fig. 7 shows a block diagram of a data transmission device according to an embodiment of the present specification. As shown in fig. 7, the apparatus 700 includes:
the third receiving module 702: the method comprises the steps that a creating request of a sub-account is received, wherein the creating request of the sub-account carries main account information and terminal identification information corresponding to the sub-account, and the main account information comprises account information of the main account and login equipment information of the main account;
the sending module 704: the account creating system is configured to create a corresponding sub-account for the main account according to the creating request, and send a sub-account creating success response to a terminal corresponding to the sub-account and login equipment of the main account, wherein the sub-account creating success response carries the main account information and identification information of the terminal corresponding to the sub-account;
the fourth receiving module 706: the terminal is configured to receive the transaction information of the main account and send the transaction information to the terminal corresponding to the sub-account.
In an optional embodiment, a creating request of a sub-account is received, where the creating request of the sub-account carries main account information and terminal identification information corresponding to the sub-account, the main account information includes account information of the main account and login device information of the main account, a sub-account creating success response is sent to a terminal corresponding to the sub-account and the login device of the main account, and the sub-account creating success response carries the main account information and the identification information of the terminal corresponding to the sub-account, and transaction information of the main account is received and sent to the terminal corresponding to the sub-account.
There is also provided in an embodiment of the present specification a computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, the processor implementing the steps of the data transfer method when executing the instructions.
An embodiment of the present application further provides a computer readable storage medium, which stores computer instructions, and the instructions, when executed by a processor, implement the steps of the data transmission method as described above.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the data transmission method, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the data transmission method.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and the practical application, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.