CN110942556A - Authentication method of unmanned retail terminal, server and client - Google Patents

Authentication method of unmanned retail terminal, server and client Download PDF

Info

Publication number
CN110942556A
CN110942556A CN201911378856.1A CN201911378856A CN110942556A CN 110942556 A CN110942556 A CN 110942556A CN 201911378856 A CN201911378856 A CN 201911378856A CN 110942556 A CN110942556 A CN 110942556A
Authority
CN
China
Prior art keywords
identifier
retail terminal
unmanned retail
current
stored information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911378856.1A
Other languages
Chinese (zh)
Inventor
陈振亚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hefei Midea Intelligent Technologies Co Ltd
Original Assignee
Hefei Midea Intelligent Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei Midea Intelligent Technologies Co Ltd filed Critical Hefei Midea Intelligent Technologies Co Ltd
Priority to CN201911378856.1A priority Critical patent/CN110942556A/en
Publication of CN110942556A publication Critical patent/CN110942556A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention relates to the technical field of unmanned retail, and provides an authentication method of an unmanned retail terminal, a server and a client, wherein the authentication method of the unmanned retail terminal comprises the following steps: receiving an authentication request sent by a client, wherein the authentication request comprises a device identifier of an unmanned retail terminal, an authorization code of the client and a current user identifier; determining user identification pre-stored information corresponding to the authorization code based on the authorization code; and determining the on-off state of the unmanned retail terminal corresponding to the equipment identifier based on the current user identifier and the pre-stored information of the user identifier. The authentication method of the unmanned retail terminal can effectively prevent the user account from being stolen, has higher safety, and reduces the loss of the user and the merchant.

Description

Authentication method of unmanned retail terminal, server and client
Technical Field
The invention relates to the technical field of unmanned retail terminals, in particular to an authentication method, a server and a client of an unmanned retail terminal.
Background
With the development of science and technology and the rising of labor cost, the application of the unmanned retail terminal is more and more extensive, and user authentication is one of the core technologies of the unmanned retail terminal in the working process.
In the related technology, after the user authorizes the login, the server side returns the code of the user information to the mobile phone client side, the application program of the mobile phone client side stores the user code returned by the server side in the local, and the user does not need to authorize again in the validity period of the user code. If the mobile phone of the user is stolen, other users use the own account number to scan the code to open the door in the application, if the code of the mobile phone client is still in the validity period, the door can be directly opened to pick up goods, and the payment of the final order is under the account number of the mobile phone owner, which is equal to the property loss of the user. That is, the authentication method in the related art has a potential safety hazard, and there is room for improvement.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides an authentication method of an unmanned retail terminal, which can prevent account embezzlement caused by the fact that a user terminal is stolen.
The invention further provides a server side of the unmanned retail terminal.
The invention further provides a client of the unmanned retail terminal.
The invention further provides the electronic equipment.
The invention also proposes a non-transitory computer-readable storage medium.
The authentication method of the unmanned retail terminal according to the first aspect of the invention comprises the following steps: receiving an authentication request sent by a client, wherein the authentication request comprises a device identifier of an unmanned retail terminal, an authorization code of the client and a current user identifier; determining user identification pre-stored information corresponding to the authorization code based on the authorization code; and determining the on-off state of the unmanned retail terminal corresponding to the equipment identifier based on the current user identifier and the pre-stored information of the user identifier.
According to the authentication method of the unmanned retail terminal, disclosed by the embodiment of the invention, the user account can be effectively prevented from being stolen by comparing the user identification, the security is higher, and thus the loss of the user and a merchant is reduced.
According to an embodiment of the present invention, the method for authenticating an unmanned retail terminal, wherein the determining of the on-off state of the unmanned retail terminal corresponding to the device identifier based on the current user identifier and the pre-stored user identifier information includes: determining that the current user identification is consistent with the pre-stored information of the user identification, and sending an opening request to the unmanned retail terminal; and determining that the current user identification is inconsistent with the pre-stored information of the user identification, and not sending an opening request to the unmanned retail terminal.
According to an authentication method of an unmanned retail terminal according to an embodiment of the present invention, the authentication request further includes: a current hardware identifier of a current terminal of the client; correspondingly, the determining, based on the authorization code, the pre-stored user identifier information corresponding to the authorization code includes: based on the authorization code, determining user identification pre-stored information and hardware identification pre-stored information corresponding to the authorization code; correspondingly, the determining the switch state of the unmanned retail terminal corresponding to the equipment identifier based on the current user identifier and the pre-stored information of the user identifier comprises: and determining the on-off state of the unmanned retail terminal corresponding to the equipment identifier based on the current user identifier, the user identifier pre-stored information, the current hardware identifier and the hardware identifier pre-stored information.
According to an embodiment of the present invention, the method for authenticating an unmanned retail terminal, wherein the determining of the on-off state of the unmanned retail terminal corresponding to the device identifier based on the current user identifier, the user identifier pre-stored information, the current hardware identifier, and the hardware identifier pre-stored information includes: and determining that the current user identifier is consistent with the user identifier and the current hardware identifier is consistent with the hardware identifier pre-stored information, and sending an opening request to the unmanned retail terminal corresponding to the equipment identifier.
According to an embodiment of the present invention, the method for authenticating an unmanned retail terminal, wherein the determining of the on-off state of the unmanned retail terminal corresponding to the device identifier based on the current user identifier, the user identifier pre-stored information, the current hardware identifier, and the hardware identifier pre-stored information includes: and determining that the current user identifier is inconsistent with the pre-stored information of the user identifier, and not sending an opening request to the unmanned retail terminal corresponding to the equipment identifier.
According to an embodiment of the present invention, the method for authenticating an unmanned retail terminal, wherein the determining of the on-off state of the unmanned retail terminal corresponding to the device identifier based on the current user identifier, the user identifier pre-stored information, the current hardware identifier, and the hardware identifier pre-stored information includes: and determining that the current user identifier is consistent with the user identifier and the current hardware identifier is inconsistent with the pre-stored hardware identifier information, and sending prompt information to the client.
According to an embodiment of the present invention, the method for authenticating an unmanned retail terminal, wherein the determining of the on-off state of the unmanned retail terminal corresponding to the device identifier based on the current user identifier, the user identifier pre-stored information, the current hardware identifier, and the hardware identifier pre-stored information further includes: and determining to receive agreement information sent by the client, updating the hardware identifier pre-stored information into the current hardware identifier, and sending an opening request to the unmanned retail terminal corresponding to the equipment identifier.
According to an embodiment of the present invention, the method for authenticating an unmanned retail terminal, wherein the determining of the on-off state of the unmanned retail terminal corresponding to the device identifier based on the current user identifier, the user identifier pre-stored information, the current hardware identifier, and the hardware identifier pre-stored information further includes: and determining that the disagreeable information sent by the client is received, and not sending an opening request to the unmanned retail terminal corresponding to the equipment identifier.
The authentication method of the unmanned retail terminal according to one embodiment of the present invention further includes: receiving a registration request sent by a client, wherein the registration request comprises a device identifier of an unmanned retail terminal, a current user identifier and a current hardware identifier of a current terminal of the client; and storing the current user identification and the current hardware identification, and determining the incidence relation between the current user and the current user identification and the current hardware identification.
According to the authentication method of the unmanned retail terminal, the current user identification comprises openid, and the current hardware identification comprises a MAC address.
The authentication method of the unmanned retail terminal according to one embodiment of the present invention further includes: and recording data between the server and the client to generate log records.
The authentication method of the unmanned retail terminal according to the second aspect of the invention includes: sending an authentication request to a server, wherein the authentication request comprises a device identifier of the unmanned retail terminal, an authorization code of a client and a current user identifier, so that the server determines user identifier pre-stored information corresponding to the authorization code based on the authorization code, and determines the on-off state of the unmanned retail terminal corresponding to the device identifier based on the current user identifier and the user identifier pre-stored information.
According to the authentication method of the unmanned retail terminal, disclosed by the embodiment of the invention, the user account can be effectively prevented from being stolen by comparing the user identification, the security is higher, and thus the loss of the user and a merchant is reduced.
According to an authentication method of an unmanned retail terminal according to an embodiment of the present invention, the authentication request further includes: a current hardware identifier of a current terminal of the client; correspondingly, the determining, based on the authorization code, the pre-stored user identifier information corresponding to the authorization code includes: based on the authorization code, determining user identification pre-stored information and hardware identification pre-stored information corresponding to the authorization code; correspondingly, the determining the switch state of the unmanned retail terminal corresponding to the equipment identifier based on the current user identifier and the pre-stored information of the user identifier comprises: and determining the on-off state of the unmanned retail terminal corresponding to the equipment identifier based on the current user identifier, the user identifier pre-stored information, the current hardware identifier and the hardware identifier pre-stored information. .
According to the third aspect of the invention, the server side of the unmanned retail terminal comprises: the system comprises a receiving unit, a sending unit and a receiving unit, wherein the receiving unit is used for receiving an authentication request sent by a client, and the authentication request comprises a device identifier of an unmanned retail terminal, an authorization code of the client and a current user identifier; the analysis unit is used for determining the user identification pre-stored information corresponding to the authorization code based on the authorization code; and the processing unit is used for determining the on-off state of the unmanned retail terminal corresponding to the equipment identifier based on the current user identifier and the pre-stored information of the user identifier.
According to the server side of the unmanned retail terminal, the user account can be effectively prevented from being stolen by comparing the user identification, the safety is higher, and therefore the loss of the user and a merchant is reduced.
The client of the unmanned retail terminal according to the fourth aspect of the present invention includes: the sending module is used for sending an authentication request to a server, wherein the authentication request comprises a device identifier of the unmanned retail terminal, an authorization code of a client and a current user identifier, so that the server determines user identifier pre-stored information corresponding to the authorization code based on the authorization code, and determines the on-off state of the unmanned retail terminal corresponding to the device identifier based on the current user identifier and the user identifier pre-stored information.
According to the client of the unmanned retail terminal, disclosed by the embodiment of the invention, the user account can be effectively prevented from being stolen, the safety is higher, and thus the losses of users and merchants are reduced.
An electronic device according to an embodiment of the fifth aspect of the present invention includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements the steps of the authentication method of the unmanned retail terminal as described in any one of the above when executing the program.
A non-transitory computer readable storage medium according to a sixth aspect of the present invention has stored thereon a computer program which, when executed by a processor, implements the steps of the authentication method of the unmanned retail terminal as described in any one of the above.
One or more technical solutions in the embodiments of the present invention have at least one of the following technical effects: by comparing the user identification, the user account can be effectively prevented from being stolen, the safety is high, and therefore the loss of the user and a merchant is reduced.
By comparing the user identification with the hardware identification, the user account can be more effectively prevented from being stolen, the safety is higher, and therefore the loss of the user and a merchant is reduced.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a method of authentication of an unmanned retail terminal provided by one embodiment of the present invention;
FIG. 2 is a flow chart of a method of authentication of an unmanned retail terminal provided by one embodiment of the present invention;
FIG. 3 is a block diagram of a server of an unmanned retail terminal according to an embodiment of the present invention;
FIG. 4 is a flow chart of a method of authenticating an unmanned retail terminal provided by another embodiment of the present invention;
FIG. 5 is a schematic diagram of a client of an unmanned retail terminal according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Reference numerals:
410: a receiving unit; 420: an analysis unit; 430: a processing unit; 510: and a sending module.
Detailed Description
The embodiments of the present invention will be described in further detail with reference to the drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
In the description of the embodiments of the present invention, it should be noted that, unless explicitly stated or limited otherwise, the terms "connected" and "connected" are to be interpreted broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; may be directly connected or indirectly connected through an intermediate. Specific meanings of the above terms in the embodiments of the present invention can be understood in specific cases by those of ordinary skill in the art.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of an embodiment of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
An authentication method of the unmanned retail terminal according to an embodiment of the present invention is described below with reference to fig. 1 and 2.
As shown in fig. 1, the present invention also provides an authentication method of the unmanned retail terminal.
An execution subject of the authentication method of the unmanned retail terminal provided by the embodiment is a server, and as shown in fig. 1, the authentication method of the unmanned retail terminal of the embodiment includes the following steps:
step S110, receiving an authentication request sent by a client, wherein the authentication request comprises a device identifier of the unmanned retail terminal, an authorization code of the client and a current user identifier.
In actual implementation, each unmanned retail terminal is provided with a two-dimensional code or other codes in other forms capable of encapsulating the unique identifier of the unmanned retail terminal, and a terminal (such as a mobile phone) corresponding to a client scans the two-dimensional code to obtain a device identifier of the unmanned retail terminal, where the device identifier may be in the form of a device number (deviceno).
The client sends the device identification, the authorization code (code) of the client and the current user identification to the server, and the server receives an authentication request including the information.
Wherein the equipment identification is a unique identification of the unmanned retail terminal, and an authorization code (code) encodes user information; the current user identifier is a unique identifier of the user, for example, the current user identifier may include openid, and of course, the current user identifier may also be other forms of parameters that may represent the unique identifier of the user.
And step S120, determining the user identification pre-stored information corresponding to the authorization code based on the authorization code.
It can be understood that, for the registered user, the server stores the user identification pre-stored information corresponding to the registered user one by one.
After receiving the authorization code, the server analyzes the authorization code, performs related data processing, and can obtain the pre-stored information of the user identifier associated with the authorization code in the database.
In the embodiment that the current user identifier includes openid, the corresponding pre-stored information of the user identifier also includes openid.
And S130, determining the on-off state of the unmanned retail terminal corresponding to the equipment identifier based on the current user identifier and the pre-stored information of the user identifier.
In other words, even if the authorization code stored in the terminal corresponding to the client is still within the valid period, the authentication method of the unmanned retail terminal according to the embodiment of the present invention cannot directly log in, and the current user identifier needs to be verified.
According to the authentication method of the unmanned retail terminal, disclosed by the embodiment of the invention, the user account can be effectively prevented from being stolen by comparing the user identification, the safety is high, and thus the loss of the user and a merchant is reduced.
In some embodiments, determining the on-off state of the unmanned retail terminal corresponding to the device identifier based on the current user identifier and the pre-stored information of the user identifier comprises: determining that the current user identification is consistent with the pre-stored information of the user identification, and sending an opening request to the unmanned retail terminal; and determining that the current user identification is inconsistent with the pre-stored information of the user identification, and not sending an opening request to the unmanned retail terminal.
In other words, if the current user identifier is inconsistent with the pre-stored information of the user identifier, the starting request is not sent to the unmanned retail terminal; and if the current user identification is consistent with the pre-stored information of the user identification, sending an opening request to the unmanned retail terminal.
Taking the current user identifier including openid as an example, comparing whether the received openid is consistent with openid corresponding to the authorization code stored in the database, if the received openid is inconsistent with the openid corresponding to the authorization code stored in the database, the user is not an original registered user, and at the moment, the service end does not send an opening request to the unmanned retail terminal corresponding to the equipment identifier, or the service end refuses to open the unmanned retail terminal; and if the two are consistent, sending an opening request to the unmanned retail terminal corresponding to the equipment identification, and opening the unmanned retail terminal.
Certainly, if the current user identifier is inconsistent with the pre-stored information of the user identifier, the server can also send warning information to the user to remind the user that the mobile phone is stolen, for example, the warning information can be sent to the user through other information (such as a mobile phone number) retained during user registration.
It can be understood that by the authentication method of the unmanned retail terminal in the embodiment, when the mobile phone of the user is stolen, even if the authorization code is still in the validity period, the method can effectively prevent others from shopping at the unmanned retail terminal by using the account of the user, thereby being beneficial to reducing the loss of the user, reducing the dispute between the user and a merchant, and further improving the trust, retention rate and retentivity of the user.
In some embodiments, as shown in fig. 1-2, the authentication request further comprises: a current hardware identifier of a current terminal of the client; correspondingly, step S120, determining, based on the authorization code, the pre-stored user identifier information corresponding to the authorization code, including: based on the authorization code, determining user identification pre-stored information and hardware identification pre-stored information corresponding to the authorization code; correspondingly, step S130, determining the on-off state of the unmanned retail terminal corresponding to the device identifier based on the current user identifier and the pre-stored information of the user identifier, includes: and determining the on-off state of the unmanned retail terminal corresponding to the equipment identifier based on the current user identifier, the user identifier pre-stored information, the current hardware identifier and the hardware identifier pre-stored information.
In other words, the authentication method of the unmanned retail terminal of this embodiment includes the steps of:
and receiving an authentication request sent by the client, wherein the authentication request comprises the equipment identifier of the unmanned retail terminal, the authorization code of the client, the current user identifier and the current hardware identifier of the current terminal of the client.
In actual execution, the client sends the device identifier, an authorization code (code) of the client, a current user identifier, and a current hardware identifier of a current terminal of the client to the server, and the server receives an authentication request including these pieces of information.
Wherein the device identification is a unique identification of the unmanned retail terminal, and an authorization code (code) encodes user information; the current user identifier is a unique identifier of the user, for example, the current user identifier may include openid, and of course, the current user identifier may also be a parameter in other forms that may represent the unique identifier of the user; the current hardware identifier is a unique identifier of a current terminal installed in the client, for example, the current hardware identifier may include a MAC address, and of course, the current hardware identifier may also be other forms of parameters that may represent hardware.
And determining user identification pre-stored information and hardware identification pre-stored information corresponding to the authorization code based on the authorization code.
It can be understood that, for the registered user, the server stores user identifier pre-stored information and hardware identifier pre-stored information corresponding to the registered user one to one, the user identifier pre-stored information is a user identifier stored in the server database in the registration phase, and the hardware identifier pre-stored information is a hardware identifier stored in the server database in the registration phase.
After receiving the authorization code, the server analyzes the authorization code, performs related data processing, and can obtain the pre-stored information of the user identifier and the pre-stored information of the hardware identifier associated with the authorization code in the database.
In the embodiment that the current user identifier comprises the openid, the corresponding user identifier pre-stored information also comprises the openid; in the embodiment where the current hardware identifier includes a MAC address, the corresponding hardware identifier pre-stored information also includes the MAC address.
And determining the on-off state of the unmanned retail terminal corresponding to the equipment identifier based on the current user identifier, the user identifier pre-stored information, the current hardware identifier and the hardware identifier pre-stored information.
In other words, even if the authorization code stored in the terminal corresponding to the client is still within the valid period, the authentication method of the unmanned retail terminal according to the embodiment of the present invention cannot directly log in, and the current user identifier and the current hardware identifier need to be verified.
According to the authentication method of the unmanned retail terminal, disclosed by the embodiment of the invention, the user identification and the hardware identification are compared, so that the user account can be effectively prevented from being stolen, the security is higher, and the loss of the user and a merchant is reduced.
Further, the step of determining the on-off state of the unmanned retail terminal corresponding to the equipment identifier based on the current user identifier, the pre-stored information of the user identifier, the current hardware identifier and the pre-stored information of the hardware identifier includes: and comparing the current user identification with the pre-stored information of the user identification, comparing the current hardware identification with the pre-stored information of the hardware identification, and determining the on-off state of the unmanned retail terminal according to the comparison result.
In some embodiments, the determining the on-off state of the unmanned retail terminal corresponding to the device identifier based on the current user identifier, the user identifier pre-stored information, the current hardware identifier, and the hardware identifier pre-stored information includes: and determining that the current user identifier is consistent with the user identifier and the current hardware identifier is consistent with the hardware identifier pre-stored information, and sending an opening request to the unmanned retail terminal corresponding to the equipment identifier.
As shown in fig. 2, taking an example that the current user identifier includes openid and the current hardware identifier includes a MAC address, comparing whether the received openid is consistent with the openid stored in the database and corresponding to the authorization code, comparing whether the received MAC address is consistent with the MAC address stored in the database and corresponding to the authorization code, and if both comparisons are consistent, sending an opening request to the unattended retail terminal corresponding to the device identifier, and opening the unattended retail terminal.
For different forms of unmanned retail terminals, the unmanned retail terminal may be opened in different forms, for example, opening the unmanned retail terminal may include opening a cabinet door of the unmanned retail terminal, or opening the unmanned retail terminal may include the unmanned retail terminal being activated in preparation for outputting a certain good.
In some embodiments, the determining the on-off state of the unmanned retail terminal corresponding to the device identifier based on the current user identifier, the user identifier pre-stored information, the current hardware identifier, and the hardware identifier pre-stored information includes: and determining that the current user identification is inconsistent with the pre-stored information of the user identification, and not sending an opening request to the unmanned retail terminal corresponding to the equipment identification.
As shown in fig. 2, taking an example that the current user identifier includes openid and the current hardware identifier includes a MAC address, comparing whether the received openid is consistent with openid corresponding to the authorization code stored in the database, if the received openid is not consistent with openid corresponding to the authorization code, it indicates that the user is not an original registered user, and at this time, the service end does not send an opening request to the unattended retail terminal corresponding to the device identifier, or the service end refuses to open the unattended retail terminal.
Certainly, if the current user identifier is inconsistent with the pre-stored information of the user identifier, the server can also send warning information to the user to remind the user that the mobile phone is stolen, for example, the warning information can be sent to the user through other information (such as a mobile phone number) retained during user registration.
It can be understood that by the authentication method of the unmanned retail terminal in the embodiment, when the mobile phone of the user is stolen, even if the authorization code is still in the validity period, the method can effectively prevent others from shopping at the unmanned retail terminal by using the account of the user, thereby being beneficial to reducing the loss of the user, reducing the dispute between the user and a merchant, and further improving the trust, retention rate and retentivity of the user.
In some embodiments, the determining the on-off state of the unmanned retail terminal corresponding to the device identifier based on the current user identifier, the user identifier pre-stored information, the current hardware identifier, and the hardware identifier pre-stored information includes: and determining that the current user identifier is consistent with the user identifier and the current hardware identifier is inconsistent with the hardware identifier pre-stored information, and sending prompt information to the client.
And determining that the agreement information sent by the client is received, updating the hardware identifier pre-stored information into the current hardware identifier, and sending an opening request to the unmanned retail terminal corresponding to the equipment identifier.
And determining that the disagreeable information sent by the client is received, and not sending an opening request to the unmanned retail terminal corresponding to the equipment identifier.
As shown in fig. 2, taking an example that the current user identifier includes openid and the current hardware identifier includes a MAC address, comparing whether the received openid is consistent with the openid stored in the database and corresponding to the authorization code, and if so, comparing whether the received MAC address is consistent with the MAC address stored in the database and corresponding to the authorization code, and if not, sending a prompt message to the client.
For example, the prompt message may be "whether you have changed a mobile phone", if the customer has changed a mobile phone, the customer chooses to determine, and the server receives the agreement message sent by the client, the hardware identifier pre-stored information stored in the database is updated, so as to facilitate the next authentication; if the customer does not replace the mobile phone, if the customer chooses not, the server receives the disagreement information sent by the client, the server does not send an opening request to the unmanned retail terminal corresponding to the equipment identifier, and certainly, the server can also send reminding information like the customer to remind the customer terminal (mobile phone) whether to be stolen.
In some embodiments, the authentication method of the unmanned retail terminal may further include the steps of:
and receiving a registration request sent by the client, wherein the registration request comprises the equipment identifier of the unmanned retail terminal, the current user identifier and the current hardware identifier of the current terminal of the client.
Storing the current user identification and the current hardware identification, and determining the incidence relation between the current user and the current user identification and the current hardware identification. That is, user registration may be completed based on the stored current user identification and current hardware identification.
For unregistered users, the client does not have a user authorization code (code) returned by the server, the client sends a current user identifier (openid) and a current hardware identifier (MAC) to the server through an Application Programming Interface (API), the server performs user registration and user login, and the server sends an opening request to the unmanned retail terminal. When registering, the server side records the current user identification and the current hardware identification at the same time, and associates the current user identification and the current hardware identification with the created user.
It should be noted that, as shown in fig. 2, for a user who completes registration, after the registration is completed, an opening request may be directly sent to the unattended retail terminal corresponding to the device identifier, so that the use operation steps of the user at this time of registration are reduced, and the convenience of the user is improved.
In some embodiments, the authentication method of the unmanned retail terminal may further include the steps of: and recording data between the server and the client to generate log records.
It should be noted that the log record is mainly used for recording data transmitted by the client for after-sales data analysis and as a basis for handling after-sales disputes. For example, for the order complained by the user, analysis can be performed according to the log record, responsibility attribution is judged more conveniently, and the economic and labor cost paid by the company on the user's payment is reduced.
The service end of the unmanned retail terminal provided by the embodiment of the invention is described below, and the service end of the unmanned retail terminal described below and the authentication method of the unmanned retail terminal described above can be referred to correspondingly.
As shown in fig. 3, the service end of the unmanned retail terminal according to the embodiment of the present invention includes: a receiving unit 410, a parsing unit 420 and a processing unit 430.
The receiving unit 410 is configured to receive an authentication request sent by a client, where the authentication request includes a device identifier of the unmanned retail terminal, an authorization code of the client, and a current user identifier; an analyzing unit 420, configured to determine, based on the authorization code, pre-stored user identifier information corresponding to the authorization code; and the processing unit 430 is configured to determine, based on the current user identifier and the pre-stored information of the user identifier, a switch state of the unmanned retail terminal corresponding to the device identifier.
As shown in fig. 4, the present invention also provides an authentication method of the unmanned retail terminal.
The main execution body of the authentication method of the unmanned retail terminal provided by the embodiment is a client, and as shown in fig. 4, the authentication method of the unmanned retail terminal of the embodiment includes the following steps:
step S310, an authentication request is sent to the server, the authentication request comprises the equipment identification of the unmanned retail terminal, the authorization code of the client and the current user identification, so that the server determines the pre-stored information of the user identification corresponding to the authorization code based on the authorization code, and determines the on-off state of the unmanned retail terminal corresponding to the equipment identification based on the current user identification and the pre-stored information of the user identification.
In actual implementation, each unmanned retail terminal is provided with a two-dimensional code or other codes in other forms capable of encapsulating the unique identifier of the unmanned retail terminal, and a terminal (such as a mobile phone) corresponding to a client scans the two-dimensional code to obtain a device identifier of the unmanned retail terminal, where the device identifier may be in the form of a device number (deviceno).
The client sends the device identification, the authorization code (code) of the client and the current user identification to the server, and the server receives an authentication request including the information.
Wherein the equipment identification is a unique identification of the unmanned retail terminal, and an authorization code (code) encodes user information; the current user identifier is a unique identifier of the user, for example, the current user identifier may include openid, and of course, the current user identifier may also be other forms of parameters that may represent the unique identifier of the user.
The authentication method of the unmanned retail terminal can effectively prevent the user account from being stolen, has higher safety, and reduces the loss of the user and the merchant.
In some embodiments, the authentication request further comprises: a current hardware identifier of a current terminal of the client; correspondingly, based on the authorization code, determining the pre-stored information of the user identifier corresponding to the authorization code, including: based on the authorization code, determining user identification pre-stored information and hardware identification pre-stored information corresponding to the authorization code; correspondingly, determining the on-off state of the unmanned retail terminal corresponding to the equipment identifier based on the current user identifier and the pre-stored information of the user identifier, and the method comprises the following steps: and determining the on-off state of the unmanned retail terminal corresponding to the equipment identifier based on the current user identifier, the user identifier pre-stored information, the current hardware identifier and the hardware identifier pre-stored information. .
It can be understood that the client sends the device identifier, the authorization code (code) of the client, the current user identifier, and the current hardware identifier of the current terminal of the client to the server, and the server receives the authentication request including these information.
The current hardware identifier of the current terminal (terminal) of the client is a unique identifier of the terminal, for example, the current hardware identifier may include a MAC address, and of course, the current hardware identifier may also be other forms of parameters that may represent hardware
In some embodiments, the authentication method of the unmanned retail terminal may further include the steps of:
and receiving prompt information issued by the server, and sending agreement information or disagreement information to the client.
It can be understood that, when the server determines that the current user identifier is consistent with the user identifier and the current hardware identifier is inconsistent with the hardware identifier pre-stored information, the server sends the prompt information to the client.
Taking the example that the current user identifier comprises openid and the current hardware identifier comprises a MAC address, comparing whether the received openid is consistent with the openid corresponding to the authorization code stored in the database, if so, comparing whether the received MAC address is consistent with the MAC address corresponding to the authorization code stored in the database, and if not, sending prompt information to the client.
For example, the prompt message may be "whether you have changed a mobile phone", if the customer has changed a mobile phone, the customer chooses to determine, and the server receives the agreement message sent by the client, the hardware identifier pre-stored information stored in the database is updated, so as to facilitate the next authentication; if the customer does not replace the mobile phone, if the customer chooses not, the server receives the disagreement information sent by the client, the server does not send an opening request to the unmanned retail terminal corresponding to the equipment identifier, and certainly, the server can also send reminding information like the customer to remind the customer terminal (mobile phone) whether to be stolen.
And after receiving the prompt message sent by the server, the client sends agreement information or disagreement information to the client.
The service end of the unmanned retail terminal provided by the embodiment of the invention is described below, and the service end of the unmanned retail terminal described below and the authentication method of the unmanned retail terminal described above can be referred to correspondingly.
As shown in fig. 5, the client of the unmanned retail terminal according to the embodiment of the present invention includes: a sending module 510.
The sending module 510 is configured to send an authentication request to the server, where the authentication request includes a device identifier of the unmanned retail terminal, an authorization code of the client, and a current user identifier, so that the server determines, based on the authorization code, pre-stored information of the user identifier corresponding to the authorization code, and determines, based on the current user identifier and the pre-stored information of the user identifier, an on-off state of the unmanned retail terminal corresponding to the device identifier.
Fig. 6 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 6: a processor (processor)810, a communication Interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication Interface 820 and the memory 830 communicate with each other via the communication bus 840. Processor 810 may invoke logic instructions in memory 830 to perform a method of authentication of an unmanned retail terminal, for example, the method comprising: receiving an authentication request sent by a client, wherein the authentication request comprises a device identifier of an unmanned retail terminal, an authorization code of the client and a current user identifier; determining user identification pre-stored information corresponding to the authorization code based on the authorization code; and determining the on-off state of the unmanned retail terminal corresponding to the equipment identifier based on the current user identifier and the pre-stored information of the user identifier.
In addition, the logic instructions in the memory 830 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Further, an embodiment of the present invention discloses a computer program product, the computer program product includes a computer program stored on a non-transitory computer readable storage medium, the computer program includes program instructions, when the program instructions are executed by a computer, the computer can execute the authentication method for executing the unmanned retail terminal provided by the above-mentioned embodiments of the method, for example, the method includes: receiving an authentication request sent by a client, wherein the authentication request comprises a device identifier of an unmanned retail terminal, an authorization code of the client and a current user identifier; determining user identification pre-stored information corresponding to the authorization code based on the authorization code; and determining the on-off state of the unmanned retail terminal corresponding to the equipment identifier based on the current user identifier and the pre-stored information of the user identifier.
In another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented by a processor to execute the authentication method for implementing an unmanned retail terminal provided in the foregoing embodiments, for example, the method includes: receiving an authentication request sent by a client, wherein the authentication request comprises a device identifier of an unmanned retail terminal, an authorization code of the client and a current user identifier; determining user identification pre-stored information corresponding to the authorization code based on the authorization code; and determining the on-off state of the unmanned retail terminal corresponding to the equipment identifier based on the current user identifier and the pre-stored information of the user identifier.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
The above embodiments are merely illustrative of the present invention and are not to be construed as limiting the invention. Although the present invention has been described in detail with reference to the embodiments, it should be understood by those skilled in the art that various combinations, modifications or equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention, and the technical solution of the present invention is covered by the claims of the present invention.

Claims (17)

1. A method of authenticating an unmanned retail terminal, comprising:
receiving an authentication request sent by a client, wherein the authentication request comprises a device identifier of an unmanned retail terminal, an authorization code of the client and a current user identifier;
determining user identification pre-stored information corresponding to the authorization code based on the authorization code;
and determining the on-off state of the unmanned retail terminal corresponding to the equipment identifier based on the current user identifier and the pre-stored information of the user identifier.
2. The authentication method of the unmanned retail terminal according to claim 1, wherein the determining the on-off state of the unmanned retail terminal corresponding to the device identifier based on the current user identifier and the pre-stored user identifier information comprises:
determining that the current user identification is consistent with the pre-stored information of the user identification, and sending an opening request to the unmanned retail terminal;
and determining that the current user identification is inconsistent with the pre-stored information of the user identification, and not sending an opening request to the unmanned retail terminal.
3. The authentication method of an unmanned retail terminal of claim 1, wherein the authentication request further comprises: a current hardware identifier of a current terminal of the client;
correspondingly, the determining, based on the authorization code, the pre-stored user identifier information corresponding to the authorization code includes:
based on the authorization code, determining user identification pre-stored information and hardware identification pre-stored information corresponding to the authorization code;
correspondingly, the determining the switch state of the unmanned retail terminal corresponding to the equipment identifier based on the current user identifier and the pre-stored information of the user identifier comprises:
and determining the on-off state of the unmanned retail terminal corresponding to the equipment identifier based on the current user identifier, the user identifier pre-stored information, the current hardware identifier and the hardware identifier pre-stored information.
4. The authentication method of the unmanned retail terminal according to claim 3, wherein the determining the on-off state of the unmanned retail terminal corresponding to the device identifier based on the current user identifier, the user identifier pre-stored information, the current hardware identifier and the hardware identifier pre-stored information comprises:
and determining that the current user identifier is consistent with the user identifier and the current hardware identifier is consistent with the hardware identifier pre-stored information, and sending an opening request to the unmanned retail terminal corresponding to the equipment identifier.
5. The authentication method of the unmanned retail terminal according to claim 3, wherein the determining the on-off state of the unmanned retail terminal corresponding to the device identifier based on the current user identifier, the user identifier pre-stored information, the current hardware identifier and the hardware identifier pre-stored information comprises:
and determining that the current user identifier is inconsistent with the pre-stored information of the user identifier, and not sending an opening request to the unmanned retail terminal corresponding to the equipment identifier.
6. The authentication method of the unmanned retail terminal according to claim 3, wherein the determining the on-off state of the unmanned retail terminal corresponding to the device identifier based on the current user identifier, the user identifier pre-stored information, the current hardware identifier and the hardware identifier pre-stored information comprises:
and determining that the current user identifier is consistent with the user identifier and the current hardware identifier is inconsistent with the pre-stored hardware identifier information, and sending prompt information to the client.
7. The authentication method of the unmanned retail terminal according to claim 6, wherein the determining the on-off state of the unmanned retail terminal corresponding to the device identifier based on the current user identifier, the user identifier pre-stored information, the current hardware identifier, and the hardware identifier pre-stored information further comprises:
and determining to receive agreement information sent by the client, updating the hardware identifier pre-stored information into the current hardware identifier, and sending an opening request to the unmanned retail terminal corresponding to the equipment identifier.
8. The authentication method of the unmanned retail terminal according to claim 6, wherein the determining the on-off state of the unmanned retail terminal corresponding to the device identifier based on the current user identifier, the user identifier pre-stored information, the current hardware identifier, and the hardware identifier pre-stored information further comprises: and determining that the disagreeable information sent by the client is received, and not sending an opening request to the unmanned retail terminal corresponding to the equipment identifier.
9. The authentication method of an unmanned retail terminal according to claim 3, further comprising:
receiving a registration request sent by a client, wherein the registration request comprises a device identifier of an unmanned retail terminal, a current user identifier and a current hardware identifier of a current terminal of the client;
and storing the current user identification and the current hardware identification, and determining the incidence relation between the current user and the current user identification and the current hardware identification.
10. The authentication method of an unmanned retail terminal according to any one of claims 3 to 9,
the current user identification comprises openid, and the current hardware identification comprises a MAC address.
11. The authentication method of an unmanned retail terminal according to any one of claims 1 to 9, characterized by further comprising: and recording data between the server and the client to generate log records.
12. A method of authenticating an unmanned retail terminal, comprising:
sending an authentication request to a server, wherein the authentication request comprises a device identifier of the unmanned retail terminal, an authorization code of a client and a current user identifier, so that the server determines user identifier pre-stored information corresponding to the authorization code based on the authorization code, and determines the on-off state of the unmanned retail terminal corresponding to the device identifier based on the current user identifier and the user identifier pre-stored information.
13. The authentication method of an unmanned retail terminal of claim 12, wherein the authentication request further comprises: a current hardware identifier of a current terminal of the client;
correspondingly, the determining, based on the authorization code, the pre-stored user identifier information corresponding to the authorization code includes: based on the authorization code, determining user identification pre-stored information and hardware identification pre-stored information corresponding to the authorization code; correspondingly, the determining the switch state of the unmanned retail terminal corresponding to the equipment identifier based on the current user identifier and the pre-stored information of the user identifier comprises: and determining the on-off state of the unmanned retail terminal corresponding to the equipment identifier based on the current user identifier, the user identifier pre-stored information, the current hardware identifier and the hardware identifier pre-stored information.
14. A server of an unmanned retail terminal, comprising:
the system comprises a receiving unit, a sending unit and a receiving unit, wherein the receiving unit is used for receiving an authentication request sent by a client, and the authentication request comprises a device identifier of an unmanned retail terminal, an authorization code of the client and a current user identifier;
the analysis unit is used for determining the user identification pre-stored information corresponding to the authorization code based on the authorization code;
and the processing unit is used for determining the on-off state of the unmanned retail terminal corresponding to the equipment identifier based on the current user identifier and the pre-stored information of the user identifier.
15. A client of an unmanned retail terminal, comprising:
the sending module is used for sending an authentication request to a server, wherein the authentication request comprises a device identifier of the unmanned retail terminal, an authorization code of a client and a current user identifier, so that the server determines user identifier pre-stored information corresponding to the authorization code based on the authorization code, and determines the on-off state of the unmanned retail terminal corresponding to the device identifier based on the current user identifier and the user identifier pre-stored information.
16. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program performs the steps of the authentication method of the unmanned retail terminal of any one of claims 1 to 13.
17. A non-transitory computer readable storage medium having a computer program stored thereon, wherein the computer program when executed by a processor implements the steps of the authentication method of the unmanned retail terminal of any one of claims 1 to 13.
CN201911378856.1A 2019-12-27 2019-12-27 Authentication method of unmanned retail terminal, server and client Pending CN110942556A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911378856.1A CN110942556A (en) 2019-12-27 2019-12-27 Authentication method of unmanned retail terminal, server and client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911378856.1A CN110942556A (en) 2019-12-27 2019-12-27 Authentication method of unmanned retail terminal, server and client

Publications (1)

Publication Number Publication Date
CN110942556A true CN110942556A (en) 2020-03-31

Family

ID=69912730

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911378856.1A Pending CN110942556A (en) 2019-12-27 2019-12-27 Authentication method of unmanned retail terminal, server and client

Country Status (1)

Country Link
CN (1) CN110942556A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686729A (en) * 2013-12-05 2014-03-26 王美金 Mobile banking authentication method and system for performing self-help registration through identity card
CN104113552A (en) * 2014-07-28 2014-10-22 百度在线网络技术(北京)有限公司 Platform authorization method, platform server side, application client side and system
CN104157082A (en) * 2014-07-29 2014-11-19 中国联合网络通信集团有限公司 Automatic ticket collecting method and automatic ticket collecting device
CN204990313U (en) * 2015-10-15 2016-01-20 深圳攀多物联科技有限公司 Disposition of equipment mandate device
CN106453243A (en) * 2016-08-29 2017-02-22 捷开通讯(深圳)有限公司 Server, terminal and validation method of authorization code of terminal
CN107733973A (en) * 2017-08-28 2018-02-23 深圳市金立通信设备有限公司 Method of controlling security, terminal, server and computer-readable medium
CN107743115A (en) * 2016-12-22 2018-02-27 腾讯科技(深圳)有限公司 A kind of identity identifying method of terminal applies, device and system
CN109089264A (en) * 2018-08-02 2018-12-25 江苏满运软件科技有限公司 A kind of mobile terminal exempts from the method and system of close login
CN109177980A (en) * 2018-08-29 2019-01-11 广州大学 The verification method of user identity, device and system during shared car steering
CN109684799A (en) * 2018-08-21 2019-04-26 平安普惠企业管理有限公司 Account logon method, entering device, Account Logon equipment and storage medium
CN109711133A (en) * 2018-12-26 2019-05-03 广州市巽腾信息科技有限公司 Authentication method, device and the server of identity information

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686729A (en) * 2013-12-05 2014-03-26 王美金 Mobile banking authentication method and system for performing self-help registration through identity card
CN104113552A (en) * 2014-07-28 2014-10-22 百度在线网络技术(北京)有限公司 Platform authorization method, platform server side, application client side and system
CN104157082A (en) * 2014-07-29 2014-11-19 中国联合网络通信集团有限公司 Automatic ticket collecting method and automatic ticket collecting device
CN204990313U (en) * 2015-10-15 2016-01-20 深圳攀多物联科技有限公司 Disposition of equipment mandate device
CN106453243A (en) * 2016-08-29 2017-02-22 捷开通讯(深圳)有限公司 Server, terminal and validation method of authorization code of terminal
CN107743115A (en) * 2016-12-22 2018-02-27 腾讯科技(深圳)有限公司 A kind of identity identifying method of terminal applies, device and system
CN107733973A (en) * 2017-08-28 2018-02-23 深圳市金立通信设备有限公司 Method of controlling security, terminal, server and computer-readable medium
CN109089264A (en) * 2018-08-02 2018-12-25 江苏满运软件科技有限公司 A kind of mobile terminal exempts from the method and system of close login
CN109684799A (en) * 2018-08-21 2019-04-26 平安普惠企业管理有限公司 Account logon method, entering device, Account Logon equipment and storage medium
CN109177980A (en) * 2018-08-29 2019-01-11 广州大学 The verification method of user identity, device and system during shared car steering
CN109711133A (en) * 2018-12-26 2019-05-03 广州市巽腾信息科技有限公司 Authentication method, device and the server of identity information

Similar Documents

Publication Publication Date Title
CN106779716B (en) Authentication method, device and system based on block chain account address
CN103532933B (en) The method and intelligent terminal of client operation mandate are realized by fingerprint identification
CN105450583B (en) A kind of method and device of authentification of message
CN105656890B (en) A kind of FIDO authenticators and system and method based on TEE and without line justification
CN102217280B (en) Method, system, and server for user service authentication
US20200228981A1 (en) Authentication method and device
CN106447308A (en) APP third-party calling payment method and device
CN103942684A (en) Data security interactive system
CN111177690B (en) Two-dimensional code scanning login method and device
CN105187444A (en) Key information burning method and device
CN104702644B (en) Information transmitting methods, device and logistics information server
CN103942685A (en) Data security interactive system
CN108134773A (en) Shared apparatus bound method, apparatus, storage medium and server
CN106302332A (en) The access control method of user data, Apparatus and system
CN104009850B (en) A kind of method for authenticating user identity and system
CN110351349A (en) A kind of method and system for realizing the work of cloud speaker
CN105991610B (en) Log in the method and device of application server
CN113179282A (en) Method and device for merging account numbers and server
CN106056433A (en) Method and device for adding service information
CN109992940A (en) Auth method, device, system and proof of identity server
CN110942556A (en) Authentication method of unmanned retail terminal, server and client
CN103942686A (en) Data security interactive system
CN102333125B (en) Access-identifier-based network application realization method for integrated network
CN108711117A (en) A kind of APP based on grouping, which orders, commending system and its recommends method
CN110784447B (en) Method for realizing non-perception authentication across protocols

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination