A code scanning control method, device and system
By displaying dynamically changing graphic codes and using time-sensitive dynamic passwords on smart device terminals, malicious attacks are identified and prevented, the problem of security risks during the code scanning control process of smart device terminals is solved, and the security of user funds is ensured.
Patent Information
- Application Number
- CN202011250128.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-09-13
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2038-09-13
AI Technical Summary
There are security risks in the code scanning control process of existing smart device terminals. Malicious users can trigger device control requests from normal users through illegal means, resulting in economic losses.
The graphic code displayed on the device terminal changes dynamically, and the dynamic password uploaded by the client has a certain timeliness. By judging the timeliness of the dynamic password, it can be identified whether the client is being attacked, and effective control can be carried out in a timely manner to avoid unnecessary consequences for normal users. loss.
It effectively prevents illegal attacks by malicious users, ensures the safety of normal users' funds, and avoids unnecessary economic losses.
Smart Images

Figure CN112488694B
Abstract
Description
[0001] This invention patent application is a divisional application of the Chinese invention patent application with application number 201811066827.7, application date 2018.09.13, and name “A code scanning control method, device and system”. Technical Field
[0002] One or more aspects of this specification relate to the field of Internet technology, and in particular, to a code scanning control method, device, and system. Background Art
[0003] At present, with the rapid development of Internet technology, the application of smart device terminals is becoming more and more extensive. For example, in self-service merchandise vending cabinets, users can use mobile terminals (such as smart phones) to scan the graphic code on the merchandise vending cabinet and send a device control request to the background server to realize intelligent control of the merchandise vending cabinet. Specifically, the background server automatically controls the merchandise vending cabinet to perform the door opening operation, so that the user can take out the merchandise he needs to buy from the merchandise vending cabinet. The merchandise vending cabinet sends the information of the purchased merchandise to the background server so that the background server can perform payment settlement.
[0004] Among them, the widespread application of smart device terminals brings convenience to people's daily lives, but there are certain security risks in the process of scanning code control, which provides malicious users with opportunities to attack normal users, thereby causing certain economic losses to normal users. Specifically, for consumer smart device terminals, such as self-service merchandise vending cabinets, shared rental goods, etc.
[0005] Currently, since the graphic codes set on existing smart device terminals for users to scan are all static graphic codes, as long as a malicious user obtains the URL address and device identification corresponding to the static graphic code at one time, the malicious user can trigger the client used by normal users through illegal means to send a device control request carrying the URL address and device identification to the background server. The background server directly controls the smart device terminal corresponding to the device identification to perform the target operation based on the control request. For example, it controls the merchandise vending cabinet to perform the door opening operation, and deducts payment from the normal user who issued the control request, so that the malicious user can take out the required goods from the merchandise vending cabinet without paying any fees, but directly deducts money from the normal user's financial account.
[0006] It can be seen from this that a method for scanning a code to control a device terminal that is anti-attack and highly secure needs to be provided. Summary of the invention
[0007] The purpose of one or more embodiments of the present specification is to provide a code scanning control method, device and system. Since the graphic code displayed on the device terminal is dynamically changing, the dynamic password uploaded by the client should have a certain timeliness. In this way, it is possible to identify whether the client is attacked with the help of the timeliness of the dynamic password. In case the client is illegally attacked by a malicious user, effective control can be carried out in time to avoid unnecessary losses to normal users.
[0008] To solve the above technical problems, one or more embodiments of this specification are implemented as follows:
[0009] One or more embodiments of this specification provide a code scanning control method, including:
[0010] Receiving a device control request sent by a client, wherein the device control request carries a target dynamic password;
[0011] Determining whether the target dynamic password meets a preset timeliness condition, wherein the target dynamic password corresponds one-to-one to the dynamically updated graphic code displayed on the target device terminal;
[0012] If the target dynamic password meets the preset timeliness condition, receiving the control confirmation information carrying the target dynamic password sent by the client;
[0013] Based on the received control confirmation information, it is determined again whether the target dynamic password meets the preset timeliness condition; if so, a control instruction is sent to the target device terminal.
[0014] One or more embodiments of this specification provide a code scanning control method, including:
[0015] Receiving a device control request for a code scanning vending device sent by a client, wherein the device control request carries a target dynamic password;
[0016] Determining whether the target dynamic password meets a preset timeliness condition, wherein the target dynamic password corresponds one-to-one to the dynamically updated graphic code displayed on the target code scanning vending device;
[0017] If the target dynamic password meets the preset timeliness condition, receiving the control confirmation information carrying the target dynamic password sent by the client;
[0018] Based on the received control confirmation information, it is determined again whether the target dynamic password meets the preset timeliness condition; if so, a control instruction is sent to the target code scanning vending device.
[0019] One or more embodiments of this specification provide a code scanning control device, including:
[0020] A request receiving module, used for receiving a device control request sent by a client, wherein the device control request carries a target dynamic password;
[0021] A password recognition module, used to determine whether the target dynamic password meets a preset timeliness condition, wherein the target dynamic password corresponds to a dynamically updated graphic code displayed on the target device terminal;
[0022] The control module is used to receive the control confirmation information carrying the target dynamic password sent by the client if the target dynamic password meets the preset timeliness condition; based on the received control confirmation information, again determine whether the target dynamic password meets the preset timeliness condition; if so, send a control instruction to the target device terminal.
[0023] One or more embodiments of this specification provide a code scanning control device, including:
[0024] A request receiving module, used to receive a device control request for a code scanning vending device sent by a client, wherein the device control request carries a target dynamic password;
[0025] A password recognition module, used to determine whether the target dynamic password meets a preset timeliness condition, wherein the target dynamic password corresponds one-to-one to the dynamically updated graphic code displayed on the target code scanning vending device;
[0026] The control module is used to receive the control confirmation information carrying the target dynamic password sent by the client if the target dynamic password meets the preset timeliness condition; based on the received control confirmation information, again determine whether the target dynamic password meets the preset timeliness condition; if so, send a control instruction to the target code scanning vending device.
[0027] One or more embodiments of this specification provide a code scanning control device, including: a processor; and
[0028] a memory arranged to store computer executable instructions which, when executed, cause the processor to:
[0029] Receiving a device control request sent by a client, wherein the device control request carries a target dynamic password;
[0030] Determining whether the target dynamic password meets a preset timeliness condition, wherein the target dynamic password corresponds one-to-one to the dynamically updated graphic code displayed on the target device terminal;
[0031] If the target dynamic password meets the preset timeliness condition, receive the control confirmation information carrying the target dynamic password sent by the client; based on the received control confirmation information, determine again whether the target dynamic password meets the preset timeliness condition; if so, send a control instruction to the target device terminal.
[0032] One or more embodiments of this specification provide a code scanning control device, including: a processor; and
[0033] a memory arranged to store computer executable instructions which, when executed, cause the processor to:
[0034] Receiving a device control request for a code scanning vending device sent by a client, wherein the device control request carries a target dynamic password;
[0035] Determining whether the target dynamic password meets a preset timeliness condition, wherein the target dynamic password corresponds one-to-one to the dynamically updated graphic code displayed on the target code scanning vending device;
[0036] If the target dynamic password meets the preset timeliness condition, receive the control confirmation information carrying the target dynamic password sent by the client; based on the received control confirmation information, determine again whether the target dynamic password meets the preset timeliness condition; if so, send a control instruction to the target code scanning vending device.
[0037] One or more embodiments of this specification provide a storage medium for storing computer-executable instructions, wherein the executable instructions implement the following process when executed:
[0038] Receiving a device control request sent by a client, wherein the device control request carries a target dynamic password;
[0039] Determining whether the target dynamic password meets a preset timeliness condition, wherein the target dynamic password corresponds one-to-one to the dynamically updated graphic code displayed on the target device terminal;
[0040] If the target dynamic password meets the preset timeliness condition, receive the control confirmation information carrying the target dynamic password sent by the client; based on the received control confirmation information, determine again whether the target dynamic password meets the preset timeliness condition; if so, send a control instruction to the target device terminal.
[0041] One or more embodiments of this specification provide a storage medium for storing computer-executable instructions, wherein the executable instructions implement the following process when executed:
[0042] Receiving a device control request for a code scanning vending device sent by a client, wherein the device control request carries a target dynamic password;
[0043] Determining whether the target dynamic password meets a preset timeliness condition, wherein the target dynamic password corresponds one-to-one to the dynamically updated graphic code displayed on the target code scanning vending device;
[0044] If the target dynamic password meets the preset timeliness condition, receive the control confirmation information carrying the target dynamic password sent by the client; based on the received control confirmation information, determine again whether the target dynamic password meets the preset timeliness condition; if so, send a control instruction to the target code scanning vending device.
[0045] The code scanning control method, device and system in one or more embodiments of this specification receive a device control request sent by a client; determine whether the target dynamic password carried in the device control request meets a preset timeliness condition, wherein the target dynamic password corresponds one-to-one to the dynamically updated graphic code displayed on the target device terminal; and perform corresponding control operations according to the timeliness judgment result. In one or more embodiments of this specification, since the graphic code displayed on the device terminal is dynamically changing, the dynamic password uploaded by the client should have a certain timeliness, so that the timeliness of the dynamic password can be used to identify whether the client is attacked, and timely and effective control can be performed in the case of identifying that the client is illegally attacked by a malicious user, avoiding unnecessary losses to normal users. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate one or more embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in one or more of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0047] Figure 1 A schematic diagram of an application scenario of a code scanning control system provided in one or more embodiments of this specification;
[0048] Figure 2 A first flow chart of a code scanning control method applied to a background server provided in one or more embodiments of this specification;
[0049] Figure 3 A second flow chart of a code scanning control method applied to a backend server provided in one or more embodiments of this specification;
[0050] Figure 4A third flow chart of a code scanning control method applied to a background server provided in one or more embodiments of this specification;
[0051] Figure 5 A fourth flow chart of a code scanning control method applied to a background server provided in one or more embodiments of this specification;
[0052] Figure 6 A fifth flow chart of a code scanning control method applied to a background server provided in one or more embodiments of this specification;
[0053] Figure 7a A schematic diagram of a first information interaction of a code scanning control method provided in one or more embodiments of this specification;
[0054] Figure 7b A schematic diagram of a second information interaction of the code scanning control method provided in one or more embodiments of this specification;
[0055] Figure 8 A flowchart of a code scanning control method applied to a client provided in one or more embodiments of this specification;
[0056] Fig. 9 A flowchart of a code scanning control method applied to a device terminal provided in one or more embodiments of this specification;
[0057] Fig.10 A flowchart of a code scanning control method for a code scanning vending device provided in one or more embodiments of this specification;
[0058] Fig.11 A schematic diagram of the module composition of a code scanning control device provided at a backend server end for one or more embodiments of this specification;
[0059] Fig.12 A schematic diagram of the module composition of a device terminal provided for one or more embodiments of this specification;
[0060] Fig.13 A schematic diagram of the structure of a code scanning control system provided in one or more embodiments of this specification;
[0061] Fig.14 A schematic diagram of the structure of a code scanning control device provided in one or more embodiments of this specification. DETAILED DESCRIPTION
[0062] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below in conjunction with the drawings in one or more embodiments of this specification. Obviously, the described embodiments are only one or more partial embodiments of this specification, rather than all embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of one or more embodiments of this specification.
[0063] One or more embodiments of the present specification provide a code scanning control method, device and system. Since the graphic code displayed on the device terminal is dynamically changing, the dynamic password uploaded by the client should have a certain timeliness. In this way, it is possible to identify whether the client is attacked with the help of the timeliness of the dynamic password. If the client is illegally attacked by a malicious user, effective control can be carried out in a timely manner to avoid unnecessary losses to normal users.
[0064] Figure 1 A schematic diagram of an application scenario of a code scanning control system provided in one or more embodiments of this specification, such as Figure 1 As shown, the control system includes: a backend server, a client, and a device terminal, wherein the client may be a mobile terminal such as a smart phone or a tablet computer, the backend server may be a backend server for managing and controlling the device terminal and having a SaaS service, and the device terminal may be a device for scanning to sell equipment, a product for scanning to rent, etc., wherein the specific process of scanning control is:
[0065] First, the client sends a device control request to the backend server, wherein the device control request carries the target dynamic password;
[0066] Specifically, the client may issue a device control request based on actively scanning a graphic code on the device terminal, which is a normal active request to control the device terminal; the client may also issue a device control request triggered by a malicious user through illegal means, which is a passive request to control the device terminal after being attacked;
[0067] Then, after receiving the device control request, the backend server determines whether the target dynamic password carried in the device control request meets the preset timeliness condition;
[0068] Specifically, for the case where the client issues a device control request based on scanning the graphic code on the device terminal, the target dynamic password carried in the device control request is valid; since the dynamic password corresponding to the graphic code displayed on the device terminal is dynamically updated, it takes a certain amount of time for a malicious user to obtain the dynamic password and then trigger a normal user to send a device control request carrying the dynamic password to the background server. Therefore, for the case where the client issues a device control request triggered by a malicious user through illegal means, the target dynamic password carried in the device control request is invalid;
[0069] Finally, the backend server performs corresponding control operations according to the timeliness judgment result of the target dynamic password;
[0070] Specifically, when it is determined that the target dynamic password is valid, it means that the client is actively requesting the background server to control the device terminal. At this time, the background server needs to respond to the device control request normally and control the device terminal to perform corresponding control actions; when it is determined that the target dynamic password is invalid, it means that the client is under attack and requests the background server to control the device terminal. At this time, the background server needs to return prompt information to the client, so as to effectively control the illegal attack behavior of malicious users and avoid unnecessary losses to normal users.
[0071] Figure 2 A first flow chart of a code scanning control method provided in one or more embodiments of this specification, Figure 2 The method in can be Figure 1 The background server in the execution, such as Figure 2 As shown, the method comprises at least the following steps:
[0072] S201, receiving a device control request sent by a client, wherein the device control request carries a target dynamic password;
[0073] Specifically, the device control request received by the backend server may be issued by the client based on actively scanning the graphic code on the device terminal, that is, it is a normal active request by the client to control the device terminal; it may also be issued by the client under the triggering of a malicious user through illegal means, that is, it is a passive request to control the device terminal after the client is attacked;
[0074] S202, determining whether the target dynamic password carried in the device control request meets the preset timeliness condition, wherein the target dynamic password corresponds to the dynamically updated graphic code displayed on the target device terminal, that is, in the scanning graphic code verification stage, determining the timeliness of the target dynamic password to identify whether the user is attacked. For the case where the device terminal is a scanning code sales device, the scanning graphic code verification stage is the process in which the user uses the client to scan the graphic code to request to open the door opening page;
[0075] Specifically, for a device control request issued by a client based on a scanning operation of a graphic code on a device terminal, the target dynamic password carried in the device control request meets the preset timeliness condition, that is, the graphic code corresponding to the target dynamic password has not expired, and the dynamic password corresponding to the graphic code displayed on the device terminal is the target dynamic password;
[0076] In the case where a device control request is sent by a client under the triggering of a malicious user through illegal means, the target dynamic password carried in the device control request does not meet the preset timeliness condition, that is, the graphic code corresponding to the target dynamic password has expired, and the dynamic password corresponding to the graphic code displayed on the device terminal is not the target dynamic password;
[0077] S203, performing corresponding control operations according to a timeliness judgment result of the target dynamic password, wherein the judgment result may be that the target dynamic password meets a preset timeliness condition, or may be that the target dynamic password does not meet the preset timeliness condition;
[0078] Specifically, if the target dynamic password meets the preset timeliness conditions, it means that the client is actively requesting the background server to control the device terminal. At this time, the background server needs to respond to the device control request normally and control the device terminal to perform the corresponding control action; if the target dynamic password does not meet the preset timeliness conditions, it means that the client is under attack and requests the background server to control the device terminal. At this time, the background server needs to return a prompt message to the client, for example, triggering the client to display an error page.
[0079] In one or more embodiments of the present specification, the graphic code displayed on the device terminal is dynamically updated by controlling the background server. Since the graphic code displayed on the device terminal changes dynamically, the dynamic password uploaded by the client should have a certain timeliness. In this way, it is possible to identify whether the client is attacked with the help of the timeliness of the dynamic password. In case the client is illegally attacked by a malicious user, effective control can be carried out in time to avoid unnecessary losses to normal users.
[0080] Among them, Figure 3 As shown, the above S203 performs corresponding control operations according to the timeliness judgment result of the target dynamic password, specifically including:
[0081] If the judgment result is yes, then executing S2031, returning the service page to the client, so that the client requests the backend server to control the target device terminal based on the service page;
[0082] Specifically, for the case where the judgment result is yes, that is, the target dynamic password meets the preset timeliness condition, it means that the client is normally actively requesting the background server to control the device terminal. At this time, the background server needs to respond to the device control request normally, that is, the background server can directly send a control instruction to the device terminal, for example, send a door opening instruction; in order to further improve the accuracy of device control, the business data used to render the business page can also be returned to the client first, so that the user can send confirmation control information to the client based on the business page displayed by the client. Correspondingly, after receiving the confirmation control information, the background server controls the device terminal to perform the corresponding control action;
[0083] If the judgment result is no, executing S2032, returning the first prompt information to the client, so that the client performs a prompt based on the first prompt information;
[0084] Specifically, for the case where the judgment result is no, that is, the target dynamic password does not meet the preset timeliness condition, it means that the client is under attack and requests the background server to control the device terminal. At this time, the background server needs to return the first prompt information to the client to remind the user that there is a possibility of being attacked. In addition, an option to confirm submission of the device control request can be provided on the display page of the first prompt information displayed on the client. For example, an option to manually submit a door opening request is provided to prevent the problem of being unable to trade due to the invalidity of the uploaded target dynamic password due to the delay in scanning the code by the client.
[0085] Furthermore, in order to further improve the accuracy of device control, the business data used to render the business page can also be returned to the client first, so that the user can send confirmation control information to the client based on the business page displayed by the client. Figure 4 As shown, after the above S2031 returns the business page to the client, it also includes:
[0086] S2033, receiving control confirmation information sent by the client for the displayed business page, wherein, in the case where the device terminal is a device for selling by scanning a code, the business page may be a door opening confirmation page. When the client detects that the user clicks the door opening option on the door opening confirmation page, it sends confirmation information for door opening to the backend server. In the case where the device terminal is a product for renting by scanning a code, the business page may also be a lock unlocking confirmation page. When the client detects that the user clicks the lock unlocking option on the lock unlocking confirmation page, it sends confirmation information for unlocking to the backend server.
[0087] S2034, based on the received control confirmation information, a control instruction is sent to the target device terminal so that the target device terminal performs a corresponding control action, wherein the control instruction can be a door opening instruction or a lock unlocking instruction, and correspondingly, the control action performed by the target device terminal can be a door opening operation or a lock unlocking operation, etc.
[0088] Among them, the background server needs to generate graphic code information containing a dynamic password according to preset rules, and send the graphic code information to the corresponding device terminal, so that the device terminal displays the graphic code corresponding to the graphic code information, so that the graphic code displayed on the device terminal for providing the client with scanning is dynamically updated, thereby ensuring that the target dynamic password carried in the device control request uploaded by the client is dynamically changed, so as to determine what control operation to perform based on the timeliness judgment of the target dynamic password in the future. Specifically, Figure 5 As shown, before the above S201 receives the device control request sent by the client, it also includes:
[0089] S204, determining a dynamic password according to at least two of a device identification of the target device terminal, an identification key corresponding to the device identification, and timestamp information, wherein the device identification may be a unique identification pre-assigned to each device terminal, the identification key may be determined based on the device identification in a preset manner, and the timestamp information may be a current timestamp when determining the dynamic password. Specifically, the dynamic password may be stored in a key-value database (i.e., redis);
[0090] S205, generating graphic code information according to the determined dynamic password, wherein the graphic code information may be obtained by concatenating a preset URL address and the dynamic password, that is, the dynamic password may be added to the end of the URL address, for example, the URL address may be https: / / alipay.com / detail.htm;
[0091] S206, sending the generated graphic code information to the target device terminal, so that the target device terminal displays the corresponding graphic code based on the graphic code information, wherein, since the dynamic password generated each time is different, the graphic code information is different, so that the graphic code displayed by the device terminal is dynamically updated, and the graphic code can be a QR code or a bar code;
[0092] Specifically, in order to reduce the manufacturing cost of the device terminal, the electronic ink label screen can be used as a graphic code display screen. For example, the display screen for displaying the graphic code set on the device terminal can be reused.
[0093] Among them, when the client scans the graphic code displayed on the target device terminal, it can parse the target dynamic password corresponding to the graphic code, and then generate a device control request based on the target dynamic password, and send the device control request to the background server, so that the background server controls the target device terminal based on the device control request.
[0094] Furthermore, in order to improve the judgment efficiency and accuracy of the timeliness of the target dynamic password, the invalid dynamic password can be automatically deleted, and then after receiving the device control request, it is judged whether there is a target dynamic password carried in the device control request, so as to determine whether the target dynamic password meets the preset timeliness condition. Based on this, Figure 6 As shown, after the above S206 sends the generated graphic code information to the target device terminal, it also includes:
[0095] S207, adding the determined dynamic password to the dynamic password set, and when any dynamic password meets the preset destruction condition, removing the dynamic password from the dynamic password set, wherein the preset destruction condition includes: the dynamic password reaches the preset survival time and / or the dynamic password has been used, specifically, the dynamic password reaches the preset survival time means that the inventory time of the dynamic password is greater than the preset time threshold, that is, the dynamic password expires and is destroyed, the dynamic password has been used means that the device terminal control has been performed for the dynamic password, that is, the dynamic password has been used and destroyed, wherein the dynamic password set includes at least one valid dynamic password, and the dynamic password set is set in the key-value database (i.e., redis);
[0096] Correspondingly, the above S202 determines whether the target dynamic password carried in the device control request meets the preset timeliness condition, specifically including:
[0097] S2021, determining whether the target dynamic password carried in the device control request exists in the dynamic password set;
[0098] If the result of the judgment is yes, it is determined that the target dynamic password meets the preset timeliness condition, and the above S2031 is executed to return the service page to the client, so that the client requests the backend server to control the target device terminal based on the service page;
[0099] If the judgment result is no, it is determined that the target dynamic password does not meet the preset timeliness condition, and the above S2032 is executed to return the first prompt information to the client, so that the client performs a prompt based on the first prompt information.
[0100] Specifically, when a dynamic password is removed from the dynamic password set, it means that the graphic code corresponding to the dynamic password becomes invalid, and the graphic code displayed on the corresponding device terminal needs to be updated. Based on this, after the above S207 removes the dynamic password from the dynamic password set, it also includes:
[0101] Generate a new dynamic password, and update the graphic code displayed on the corresponding target device terminal based on the new dynamic password;
[0102] Specifically, the process of generating a new dynamic password is as shown in step S204 above, wherein after the new dynamic password is generated, graphic code information is generated according to the dynamic password, and the graphic code information is sent to the corresponding target device terminal to update the graphic code displayed on the target device terminal.
[0103] The above S204 determines the dynamic password according to at least two of the device identification of the target device terminal, the identification key corresponding to the device identification, and the timestamp information, and specifically includes:
[0104] A dynamic password is determined by using a message digest algorithm based on a device identification of a target device terminal, an identification key corresponding to the device identification, and at least two of timestamp information, wherein the message digest algorithm may be an MD5 encryption algorithm. Specifically, the MD5 encryption algorithm is used to perform MD5 encryption on at least two of the device ID, a unique key corresponding to the device ID, and timestamp information to generate a sign field.
[0105] The above S2034 sends a control instruction to the target device terminal based on the received control confirmation information, specifically including:
[0106] In the dynamic password set, searching whether there is a dynamic password corresponding to the received control confirmation information, specifically, after receiving the control confirmation information sent by the client for the business page, determining again whether there is a corresponding dynamic password in the dynamic set;
[0107] If yes, remove the dynamic password from the dynamic password set, and send a control instruction to the target device terminal;
[0108] Specifically, after receiving the control confirmation information sent by the client for the business page, it indicates that the backend server needs to perform a corresponding control operation on the device terminal. Correspondingly, the dynamic password meets the preset destruction condition. After destroying the dynamic password, a new dynamic password is generated for the target device terminal displaying the graphic code containing the dynamic password, and the graphic code displayed on the target device terminal is updated based on the new dynamic password.
[0109] If not, a control instruction is sent to the target device terminal, or a second prompt message is returned to the client to prompt the user whether to resend the device control request to the background server;
[0110] Specifically, since the verification is passed in the scanning graphic code verification stage, that is, the target dynamic password carried in the device control request meets the preset timeliness condition, if the client sends control confirmation information to the background server for the business page within the preset time, the target dynamic password corresponding to this device control request should be valid, that is, the target dynamic password exists in the dynamic password set; if the target dynamic password does not exist in the dynamic password set, it means that the client has not sent control confirmation information to the background server for the business page within the preset time.
[0111] In a specific embodiment, the code scanning control method mainly includes: a process of sending graphic code information and a process of controlling the device based on the timeliness of the graphic code, such as Figure 7a As shown, a schematic diagram of information interaction in the process of sending graphic code information in the code scanning control method is given, specifically:
[0112] S701, the background server obtains the device identification of the target device terminal;
[0113] S702, the backend server generates a dynamic password according to the device identification of the target device terminal, the identification key corresponding to the device identification, and the timestamp information, wherein the new dynamic password may be generated after determining that the graphic code displayed on the target device terminal is expired to update the graphic code displayed on the target device terminal, or the new dynamic password may be generated after determining that the client has issued a device control request based on the dynamic password corresponding to the graphic code to update the graphic code displayed on the target device terminal;
[0114] S703, the backend server generates graphic code information according to the generated dynamic password and the preset URL address;
[0115] S704, the background server sends the graphic code information to the target device terminal;
[0116] S705, after receiving the graphic code information, the target device terminal displays the graphic code based on the graphic code information on the display screen;
[0117] S706, the backend server stores the generated dynamic password in the key-value database, wherein: for the dynamic password stored in the key-value database, if the dynamic password meets the preset destruction condition, the dynamic password is deleted;
[0118] like Figure 7bAs shown, a schematic diagram of information interaction of the device control process based on the timeliness of the graphic code in the code scanning control method is given. For the case where the device terminal is a code scanning vending device, it is specifically as follows:
[0119] S707, the client sends a device control request carrying the target dynamic password to the background server, wherein the device control request may be issued by the client based on actively scanning the graphic code on the target device terminal, or may be issued by the client under the triggering of a malicious user through illegal means;
[0120] S708, after receiving the device control request, the background server triggers the key-value database to query whether there is a target dynamic password carried in the device control request;
[0121] S709, the key-value database returns a query result of the dynamic password to the backend server, wherein the query result may be that the target dynamic password exists or that the target dynamic password does not exist;
[0122] S710, when the received query result is that the object does not exist, the backend server sends an error prompt page to the client;
[0123] S711, when the backend server receives and determines that the query result is true, it sends business data for rendering the door opening page to the client;
[0124] S712, the client renders and displays a door opening page, wherein the door opening page is used to trigger the user to confirm the door opening request;
[0125] S713, if the client detects that the user clicks the confirm door opening option, it sends a confirm door opening request to the backend server;
[0126] S714, after receiving the confirmation request for door opening, the backend server triggers the key-value database to query whether there is a target dynamic password corresponding to the confirmation request for door opening;
[0127] S715, if the key-value database determines that the query result exists, the target dynamic password is destroyed;
[0128] S716, the key-value database returns the query result of the existence of the dynamic password to the background server;
[0129] S717, after receiving the query result of the existence of the dynamic password, the backend server sends a door opening instruction to the device terminal; and,
[0130] S718, the background server re-executes the graphic code information sending step to update the graphic code displayed on the device terminal, thereby realizing dynamic update of the graphic code displayed on the control device terminal.
[0131] The code scanning control method in one or more embodiments of this specification receives a device control request sent by a client; determines whether the target dynamic password carried in the device control request meets a preset timeliness condition, wherein the target dynamic password corresponds one-to-one to the dynamically updated graphic code displayed on the target device terminal; and performs corresponding control operations according to the timeliness judgment result. In one or more embodiments of this specification, since the graphic code displayed on the device terminal is dynamically changing, the dynamic password uploaded by the client should have a certain timeliness, so that the timeliness of the dynamic password can be used to identify whether the client is attacked, and timely and effective control can be carried out in response to the identification of illegal attacks on the client by malicious users, avoiding unnecessary losses to normal users.
[0132] Corresponding to the above Figures 2 to 6 The code scanning control method described above is based on the same technical concept. One or more embodiments of this specification also provide a code scanning control method. Figure 8 A flowchart of a code scanning control method provided in one or more embodiments of this specification, Figure 8 The method in can be Figure 1 The client executes in Figure 8 As shown, the method comprises at least the following steps:
[0133] S801, sending a device control request carrying a target dynamic password to a background server, so that the background server determines whether the target dynamic password meets a preset timeliness condition;
[0134] S802, receiving feedback information sent by the background server, wherein the feedback information is generated by the background server based on the timeliness judgment result of the target dynamic password.
[0135] In one or more embodiments of the present specification, the graphic code displayed on the device terminal is dynamically updated by controlling the background server. Since the graphic code displayed on the device terminal changes dynamically, the dynamic password uploaded by the client should have a certain timeliness. In this way, it is possible to identify whether the client is attacked with the help of the timeliness of the dynamic password. In case the client is illegally attacked by a malicious user, effective control can be carried out in time to avoid unnecessary losses to normal users.
[0136] The above S802 receives feedback information sent by the background server, which specifically includes:
[0137] Receiving a service page sent by the backend server when determining that the target dynamic password meets a preset timeliness condition, and requesting the backend server to control the target device terminal based on the service page;
[0138] The receiving backend server sends a prompt message when determining that the target dynamic password does not meet the preset timeliness condition, and gives a prompt based on the prompt message.
[0139] The code scanning control method in one or more embodiments of this specification sends a device control request carrying a target dynamic password to a background server, so that the background server determines whether the target dynamic password meets a preset timeliness condition; and receives feedback information sent by the background server, wherein the feedback information is generated by the background server for the timeliness judgment result of the target dynamic password. In one or more embodiments of this specification, the graphic code displayed on the device terminal is dynamically updated by the background server control. Since the graphic code displayed on the device terminal is dynamically changing, the dynamic password uploaded by the client should have a certain timeliness. In this way, the timeliness of the dynamic password can be used to identify whether the client is attacked. In the case of identifying that the client is illegally attacked by a malicious user, effective control can be carried out in a timely manner to avoid unnecessary losses to normal users.
[0140] It should be noted that this embodiment in this specification and the previous embodiment in this specification are based on the same inventive concept, so the specific implementation of this embodiment can refer to the implementation of the aforementioned code scanning control method, and the repeated parts will not be repeated.
[0141] Corresponding to the above Figures 2 to 6 The code scanning control method described above is based on the same technical concept. One or more embodiments of this specification also provide a code scanning control method. Fig. 9 A flowchart of a code scanning control method provided in one or more embodiments of this specification, Fig. 9 The method in can be Figure 1 The device terminal in is executed, such as Fig. 9 As shown, the method comprises at least the following steps:
[0142] S901, displaying a corresponding graphic code based on the graphic code information sent by the background server, wherein the graphic code is dynamically updated under the control of the background server, and each graphic code corresponds to a unique dynamic password;
[0143] S902, receiving a control instruction sent by the background server, wherein the control instruction is generated by the background server according to a result of determining the timeliness of a target dynamic password carried in a received device control request.
[0144] In one or more embodiments of the present specification, the graphic code displayed on the device terminal is dynamically updated by controlling the background server. Since the graphic code displayed on the device terminal changes dynamically, the dynamic password uploaded by the client should have a certain timeliness. In this way, it is possible to identify whether the client is attacked with the help of the timeliness of the dynamic password. In case the client is illegally attacked by a malicious user, effective control can be carried out in time to avoid unnecessary losses to normal users.
[0145] The above S902 receives the control instruction sent by the background server, which specifically includes:
[0146] Receive the control instruction sent by the background server when it determines that the target dynamic password meets the preset timeliness condition, and perform the corresponding control action based on the control instruction. For the code scanning vending device, the control instruction is a door opening instruction. After receiving the door opening instruction, the code scanning vending device performs the door opening operation.
[0147] The code scanning control method in one or more embodiments of the present specification displays a corresponding graphic code based on the graphic code information sent by the background server, wherein the graphic code is dynamically updated under the control of the background server, and each graphic code corresponds to a unique dynamic password; and receives a control instruction sent by the background server, wherein the control instruction is generated by the background server for the timeliness judgment result of the target dynamic password carried in the received device control request. In one or more embodiments of the present specification, the graphic code displayed on the device terminal is dynamically updated by the background server control. Since the graphic code displayed on the device terminal is dynamically changing, the dynamic password uploaded by the client should have a certain timeliness. In this way, the timeliness of the dynamic password can be used to identify whether the client is attacked. In the case of identifying that the client is illegally attacked by a malicious user, effective control can be carried out in a timely manner to avoid unnecessary losses to normal users.
[0148] It should be noted that this embodiment in this specification and the previous embodiment in this specification are based on the same inventive concept, so the specific implementation of this embodiment can refer to the implementation of the aforementioned code scanning control method, and the repeated parts will not be repeated.
[0149] Corresponding to the above Figures 2 to 6 The code scanning control method described above is based on the same technical concept. One or more embodiments of this specification also provide a code scanning control method. Fig.10 A flowchart of a code scanning control method provided in one or more embodiments of this specification, Fig.10 The method in can be Figure 1 The background server in the execution, such as Fig.10 As shown, for the case where the device terminal is a code scanning vending device, the method includes at least the following steps:
[0150] S1001, receiving a device control request for a code scanning vending device sent by a client, wherein the device control request carries a target dynamic password, and the code scanning vending device may be a smart code scanning door opening self-pickup container; wherein, the specific implementation of step S1001 refers to step S201, which will not be repeated here.
[0151] S1002, determining whether the target dynamic password carried in the device control request meets a preset timeliness condition, wherein the target dynamic password corresponds one-to-one to the dynamically updated graphic code displayed on the target code scanning vending device; wherein, the specific implementation of step S1002 refers to step S202, which will not be repeated here.
[0152] S1003, executing corresponding control operations according to the timeliness judgment result of the target dynamic password; wherein, the specific implementation of step S1003 refers to step S203, which will not be repeated here.
[0153] In one or more embodiments of the present specification, the graphic code displayed on the device terminal is dynamically updated by controlling the background server. Since the graphic code displayed on the device terminal changes dynamically, the dynamic password uploaded by the client should have a certain timeliness. In this way, it is possible to identify whether the client is attacked with the help of the timeliness of the dynamic password. In case the client is illegally attacked by a malicious user, effective control can be carried out in time to avoid unnecessary losses to normal users.
[0154] Before S1001 receives the device control request for the code scanning vending device sent by the client, it also includes:
[0155] Step 1: Determine a dynamic password based on at least two of a device identification of a target code scanning vending device, an identification key corresponding to the device identification, and timestamp information;
[0156] Step 2: Generate graphic code information according to the determined dynamic password;
[0157] Step three: sending the generated graphic code information to the target code scanning and selling device, so that the target code scanning and selling device displays the graphic code based on the graphic code information.
[0158] Wherein, after determining the dynamic password according to the device identification of the target code scanning vending device, the identification key corresponding to the device identification, and the timestamp information, the above step 1 further includes:
[0159] Adding the determined dynamic password to the dynamic password set, and when any dynamic password meets a preset destruction condition, removing the dynamic password from the dynamic password set, wherein the preset destruction condition includes: the dynamic password reaches a preset survival time and / or the dynamic password has been used;
[0160] Correspondingly, the above S1002 determines whether the target dynamic password carried in the device control request meets the preset timeliness condition, specifically including:
[0161] If the target dynamic password exists in the dynamic password set, determining that the target dynamic password meets the preset timeliness condition;
[0162] If the target dynamic password does not exist in the dynamic password set, it is determined that the target dynamic password does not meet the preset timeliness condition.
[0163] After the dynamic password is removed from the dynamic password set, the method further includes:
[0164] Generate a new dynamic password, and update the graphic code displayed on the target code scanning vending device based on the new dynamic password.
[0165] The code scanning control method in one or more embodiments of this specification receives a device control request sent by a client; determines whether the target dynamic password carried in the device control request meets a preset timeliness condition, wherein the target dynamic password corresponds one-to-one to the dynamically updated graphic code displayed on the target code scanning vending device; and performs corresponding control operations according to the timeliness judgment result. In one or more embodiments of this specification, the graphic code displayed on the device terminal is dynamically updated through the background server control. Since the graphic code displayed on the device terminal is dynamically changing, the dynamic password uploaded by the client should have a certain timeliness. In this way, the timeliness of the dynamic password can be used to identify whether the client is attacked. In the case of identifying that the client is illegally attacked by a malicious user, effective control can be carried out in a timely manner to avoid unnecessary losses to normal users.
[0166] It should be noted that this embodiment in this specification and the previous embodiment in this specification are based on the same inventive concept, so the specific implementation of this embodiment can refer to the implementation of the aforementioned code scanning control method, and the repeated parts will not be repeated.
[0167] Corresponding to the above Figures 2 to 6 Based on the same technical concept, one or more embodiments of this specification also provide a scanning code control device. Fig.11 A schematic diagram of the module composition of a code scanning control device provided in one or more embodiments of this specification, which is used to execute Figures 2 to 6 The code scanning control method described in Fig.11 As shown, the device comprises:
[0168] The request receiving module 1101 is used to receive a device control request sent by a client, wherein the device control request carries a target dynamic password;
[0169] A password recognition module 1102, used to determine whether the target dynamic password meets a preset timeliness condition, wherein the target dynamic password corresponds to a dynamically updated graphic code displayed on the target device terminal;
[0170] The control module 1103 is used to perform corresponding control operations according to the timeliness judgment result of the target dynamic password.
[0171] Optionally, the control module 1103 is specifically used to:
[0172] If the judgment result is yes, returning a service page to the client, so that the client requests the backend server to control the target device terminal based on the service page;
[0173] If the judgment result is no, prompt information is returned to the client, so that the client performs a prompt based on the prompt information.
[0174] Optionally, the above device further includes a control instruction issuing module, wherein the control instruction issuing module is used to:
[0175] After returning the service page to the client, receiving control confirmation information sent by the client for the service page;
[0176] A control instruction is sent to the target device terminal based on the control confirmation information, so that the target device terminal performs a corresponding control action.
[0177] Optionally, the above device further comprises a graphic code updating module, wherein the graphic code updating module is used to:
[0178] Before receiving the device control request sent by the client, determining the dynamic password according to at least two of the device identification of the target device terminal, the identification key corresponding to the device identification, and the timestamp information;
[0179] Generate graphic code information according to the determined dynamic password;
[0180] The graphic code information is sent to the target device terminal, so that the target device terminal displays the graphic code based on the graphic code information.
[0181] Optionally, the above device further includes a dynamic password adding and deleting module, wherein the dynamic password adding and deleting module is used to:
[0182] After determining the dynamic password, adding the dynamic password to the dynamic password set, and when the dynamic password meets a preset destruction condition, removing the dynamic password from the dynamic password set, wherein the preset destruction condition includes: the dynamic password reaches a preset survival time and / or the dynamic password has been used;
[0183] Correspondingly, the password recognition module 1102 is specifically used for:
[0184] If the target dynamic password exists in the dynamic password set, determining that the target dynamic password meets a preset timeliness condition;
[0185] If the target dynamic password does not exist in the dynamic password set, it is determined that the target dynamic password does not meet the preset timeliness condition.
[0186] Optionally, the graphic code updating module is further used for:
[0187] After the dynamic password is removed from the dynamic password set, a new dynamic password is generated, and the graphic code displayed on the target device terminal is updated based on the new dynamic password.
[0188] Optionally, the graphic code updating module is specifically used for:
[0189] The dynamic password is determined by using a message digest algorithm according to at least two of the device identification of the target device terminal, the identification key corresponding to the device identification, and the timestamp information.
[0190] Optionally, the control instruction issuing module is specifically used for:
[0191] Searching in the dynamic password set whether there is a dynamic password corresponding to the control confirmation information;
[0192] If so, the dynamic password adding and deleting module is triggered to remove the dynamic password from the dynamic password set, and send a control instruction to the target device terminal.
[0193] The code scanning control device in one or more embodiments of the present specification receives a device control request sent by a client; determines whether the target dynamic password carried in the device control request satisfies a preset timeliness condition, wherein the target dynamic password corresponds one-to-one to the dynamically updated graphic code displayed on the target device terminal; and performs corresponding control operations according to the timeliness judgment result. In one or more embodiments of the present specification, since the graphic code displayed on the device terminal is dynamically changing, the dynamic password uploaded by the client should have a certain timeliness, so that the timeliness of the dynamic password can be used to identify whether the client is attacked, and timely and effective control can be performed in response to the identification of illegal attacks on the client by malicious users, thereby avoiding unnecessary losses to normal users.
[0194] Corresponding to the above Figures 2 to 6 The code scanning control method described above is based on the same technical concept. One or more embodiments of this specification also provide a device terminal, wherein the terminal device can be a code scanning vending device. Fig.12 A schematic diagram of the module composition of a device terminal provided in one or more embodiments of this specification, the device is used to execute Fig. 9 The code scanning control method described in Fig.12 As shown, the device terminal includes:
[0195] The graphic code display module 1201 is used to display the corresponding graphic code based on the graphic code information sent by the background server, wherein the graphic code is dynamically updated under the control of the background server, and each graphic code corresponds to a unique dynamic password;
[0196] The control instruction receiving module 1202 is used to receive a control instruction sent by the background server, wherein the control instruction is generated by the background server according to the timeliness judgment result of the target dynamic password carried in the received device control request.
[0197] In one or more embodiments of the present specification, the graphic code displayed on the device terminal is dynamically updated by controlling the background server. Since the graphic code displayed on the device terminal changes dynamically, the dynamic password uploaded by the client should have a certain timeliness. In this way, it is possible to identify whether the client is attacked with the help of the timeliness of the dynamic password. In case the client is illegally attacked by a malicious user, effective control can be carried out in time to avoid unnecessary losses to normal users.
[0198] The control instruction receiving module 1202 is specifically used for:
[0199] Receive the control instruction sent by the background server when it determines that the target dynamic password meets the preset timeliness condition, and perform the corresponding control action based on the control instruction. For the code scanning vending device, the control instruction is a door opening instruction. After receiving the door opening instruction, the code scanning vending device performs the door opening operation.
[0200] In one or more embodiments of the present specification, the device terminal displays a corresponding graphic code based on the graphic code information sent by the background server, wherein the graphic code is dynamically updated under the control of the background server, and each graphic code corresponds to a unique dynamic password; and receives a control instruction sent by the background server, wherein the control instruction is generated by the background server for the timeliness judgment result of the target dynamic password carried in the received device control request. In one or more embodiments of the present specification, the graphic code displayed on the device terminal is dynamically updated by controlling the background server. Since the graphic code displayed on the device terminal changes dynamically, the dynamic password uploaded by the client should have a certain timeliness. In this way, it is possible to identify whether the client is attacked with the help of the timeliness of the dynamic password, and timely and effective control can be carried out for the situation where the client is illegally attacked by a malicious user, so as to avoid unnecessary losses to normal users.
[0201] It should be noted that this embodiment in this specification and the previous embodiment in this specification are based on the same inventive concept, so the specific implementation of this embodiment can refer to the implementation of the aforementioned code scanning control method, and the repeated parts will not be repeated.
[0202] Corresponding to the above Figures 2 to 6 The code scanning control method described above is based on the same technical concept. One or more embodiments of this specification also provide a code scanning control system. Fig.13 A schematic diagram of the module composition of a device terminal provided in one or more embodiments of this specification, the device is used to execute Figures 2 to 6 The code scanning control method described in Fig.13 As shown, the device terminal includes: a background service end 20, a client end 10 and a device terminal 30;
[0203] The background server 20 is used to receive a device control request sent by a client; determine whether the target dynamic password carried in the device control request meets a preset timeliness condition; and perform a corresponding control operation according to the timeliness determination result of the target dynamic password;
[0204] The client 10 is used to send a device control request to the background server; and receive feedback information sent by the background server regarding the timeliness judgment result of the target dynamic password;
[0205] The above-mentioned device terminal 30 is used to display the corresponding graphic code based on the graphic code information sent by the background server, wherein the graphic code is dynamically updated and each graphic code corresponds to a unique dynamic password; and receive the control instruction sent by the background server for the timeliness judgment result of the target dynamic password.
[0206] The code scanning control method in one or more embodiments of this specification receives a device control request sent by a client; determines whether the target dynamic password carried in the device control request meets a preset timeliness condition, wherein the target dynamic password corresponds one-to-one to the dynamically updated graphic code displayed on the target device terminal; and performs corresponding control operations according to the timeliness judgment result. In one or more embodiments of this specification, since the graphic code displayed on the device terminal is dynamically changing, the dynamic password uploaded by the client should have a certain timeliness, so that the timeliness of the dynamic password can be used to identify whether the client is attacked, and timely and effective control can be carried out in response to the identification of illegal attacks on the client by malicious users, avoiding unnecessary losses to normal users.
[0207] Furthermore, corresponding to the above Figures 2 to 6Based on the same technical concept, one or more embodiments of this specification also provide a code scanning control device, which is used to execute the above-mentioned code scanning control method, such as Fig.14 shown.
[0208] The code scanning control device may have relatively large differences due to different configurations or performances, and may include one or more processors 1401 and memory 1402, and the memory 1402 may store one or more storage applications or data. Among them, the memory 1402 may be a short-term storage or a persistent storage. The application stored in the memory 1402 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in the code scanning control device. Furthermore, the processor 1401 can be configured to communicate with the memory 1402 and execute a series of computer executable instructions in the memory 1402 on the code scanning control device. The code scanning control device may also include one or more power supplies 1403, one or more wired or wireless network interfaces 1404, one or more input and output interfaces 1405, one or more keyboards 1406, etc.
[0209] In a specific embodiment, the code scanning control device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions for the code scanning control device, and the one or more programs are configured to be executed by one or more processors, including the following computer executable instructions:
[0210] Receiving a device control request sent by a client, wherein the device control request carries a target dynamic password;
[0211] Determining whether the target dynamic password meets a preset timeliness condition, wherein the target dynamic password corresponds one-to-one to the dynamically updated graphic code displayed on the target device terminal;
[0212] A corresponding control operation is performed according to the timeliness judgment result of the target dynamic password.
[0213] Optionally, when the computer executable instruction is executed, the corresponding control operation is performed according to the timeliness judgment result of the target dynamic password, including:
[0214] If the judgment result is yes, returning a service page to the client, so that the client requests the backend server to control the target device terminal based on the service page;
[0215] If the judgment result is no, prompt information is returned to the client, so that the client performs a prompt based on the prompt information.
[0216] Optionally, when the computer executable instructions are executed, they further include computer executable instructions for performing the following:
[0217] After returning the business page to the client, the method further includes:
[0218] Receiving control confirmation information sent by the client for the business page;
[0219] A control instruction is sent to the target device terminal based on the control confirmation information, so that the target device terminal performs a corresponding control action.
[0220] Optionally, when the computer executable instructions are executed, they further include computer executable instructions for performing the following:
[0221] Before receiving the device control request sent by the client, it also includes:
[0222] Determine a dynamic password according to at least two of a device identification of a target device terminal, an identification key corresponding to the device identification, and timestamp information;
[0223] Generate graphic code information according to the determined dynamic password;
[0224] The graphic code information is sent to the target device terminal, so that the target device terminal displays the graphic code based on the graphic code information.
[0225] Optionally, when the computer executable instructions are executed, they further include computer executable instructions for performing the following:
[0226] After the dynamic password is determined, it also includes:
[0227] Adding the dynamic password to a dynamic password set, and when the dynamic password meets a preset destruction condition, removing the dynamic password from the dynamic password set, wherein the preset destruction condition includes: the dynamic password reaches a preset survival time and / or the dynamic password has been used;
[0228] The determining whether the target dynamic password meets a preset timeliness condition includes:
[0229] If the target dynamic password exists in the dynamic password set, determining that the target dynamic password meets a preset timeliness condition;
[0230] If the target dynamic password does not exist in the dynamic password set, it is determined that the target dynamic password does not meet the preset timeliness condition.
[0231] Optionally, when the computer executable instructions are executed, they further include computer executable instructions for performing the following:
[0232] After removing the dynamic password from the dynamic password set, the method further includes:
[0233] A new dynamic password is generated, and the graphic code displayed on the target device terminal is updated based on the new dynamic password.
[0234] Optionally, when the computer executable instruction is executed, determining the dynamic password according to at least two of the device identification of the target device terminal, the identification key corresponding to the device identification, and the timestamp information includes:
[0235] The dynamic password is determined by using a message digest algorithm according to at least two of the device identification of the target device terminal, the identification key corresponding to the device identification, and the timestamp information.
[0236] Optionally, when the computer executable instruction is executed, sending a control instruction to the target device terminal based on the control confirmation information includes:
[0237] Searching in the dynamic password set whether there is a dynamic password corresponding to the control confirmation information;
[0238] If so, the dynamic password is removed from the dynamic password set, and a control instruction is sent to the target device terminal.
[0239] The code scanning control device in one or more embodiments of this specification receives a device control request sent by a client; determines whether the target dynamic password carried in the device control request meets a preset timeliness condition, wherein the target dynamic password corresponds one-to-one to the dynamically updated graphic code displayed on the target device terminal; and performs corresponding control operations according to the timeliness judgment result. In one or more embodiments of this specification, since the graphic code displayed on the device terminal is dynamically changing, the dynamic password uploaded by the client should have a certain timeliness, so that the timeliness of the dynamic password can be used to identify whether the client is attacked, and timely and effective control can be carried out in response to the identification of illegal attacks on the client by malicious users, avoiding unnecessary losses to normal users.
[0240] Furthermore, corresponding to the above Figures 2 to 6 The method shown is based on the same technical concept. One or more embodiments of this specification also provide a storage medium for storing computer executable instructions. In a specific embodiment, the storage medium can be a USB flash drive, an optical disk, a hard disk, etc. When the computer executable instructions stored in the storage medium are executed by the processor, the following process can be implemented:
[0241] Receiving a device control request sent by a client, wherein the device control request carries a target dynamic password;
[0242] Determining whether the target dynamic password meets a preset timeliness condition, wherein the target dynamic password corresponds one-to-one to the dynamically updated graphic code displayed on the target device terminal;
[0243] A corresponding control operation is performed according to the timeliness judgment result of the target dynamic password.
[0244] Optionally, when the computer executable instructions stored in the storage medium are executed by the processor, the corresponding control operation is performed according to the timeliness judgment result of the target dynamic password, including:
[0245] If the judgment result is yes, returning a service page to the client, so that the client requests the backend server to control the target device terminal based on the service page;
[0246] If the judgment result is no, prompt information is returned to the client, so that the client performs a prompt based on the prompt information.
[0247] Optionally, when the computer executable instructions stored in the storage medium are executed by the processor, the following process is also implemented:
[0248] After returning the business page to the client, the method further includes:
[0249] Receiving control confirmation information sent by the client for the business page;
[0250] A control instruction is sent to the target device terminal based on the control confirmation information, so that the target device terminal performs a corresponding control action.
[0251] Optionally, when the computer executable instructions stored in the storage medium are executed by the processor, the following process is also implemented:
[0252] Before receiving the device control request sent by the client, it also includes:
[0253] Determine a dynamic password according to at least two of a device identification of a target device terminal, an identification key corresponding to the device identification, and timestamp information;
[0254] Generate graphic code information according to the determined dynamic password;
[0255] The graphic code information is sent to the target device terminal, so that the target device terminal displays the graphic code based on the graphic code information.
[0256] Optionally, when the computer executable instructions stored in the storage medium are executed by the processor, the following process is also implemented:
[0257] After the dynamic password is determined, it also includes:
[0258] Adding the dynamic password to a dynamic password set, and when the dynamic password meets a preset destruction condition, removing the dynamic password from the dynamic password set, wherein the preset destruction condition includes: the dynamic password reaches a preset survival time and / or the dynamic password has been used;
[0259] The determining whether the target dynamic password meets a preset timeliness condition includes:
[0260] If the target dynamic password exists in the dynamic password set, determining that the target dynamic password meets a preset timeliness condition;
[0261] If the target dynamic password does not exist in the dynamic password set, it is determined that the target dynamic password does not meet the preset timeliness condition.
[0262] Optionally, when the computer executable instructions stored in the storage medium are executed by the processor, the following process is also implemented:
[0263] After removing the dynamic password from the dynamic password set, the method further includes:
[0264] A new dynamic password is generated, and the graphic code displayed on the target device terminal is updated based on the new dynamic password.
[0265] Optionally, when the computer executable instructions stored in the storage medium are executed by the processor, determining the dynamic password according to at least two of the device identification of the target device terminal, the identification key corresponding to the device identification, and the timestamp information includes:
[0266] The dynamic password is determined by using a message digest algorithm according to at least two of the device identification of the target device terminal, the identification key corresponding to the device identification, and the timestamp information.
[0267] Optionally, when the computer executable instructions stored in the storage medium are executed by the processor, sending the control instruction to the target device terminal based on the control confirmation information includes:
[0268] Searching in the dynamic password set whether there is a dynamic password corresponding to the control confirmation information;
[0269] If so, the dynamic password is removed from the dynamic password set, and a control instruction is sent to the target device terminal.
[0270] The computer executable instructions stored in the storage medium in one or more embodiments of this specification, when executed by the processor, receive a device control request sent by the client; determine whether the target dynamic password carried in the device control request meets the preset timeliness condition, wherein the target dynamic password corresponds one-to-one with the dynamically updated graphic code displayed on the target device terminal; and perform corresponding control operations according to the timeliness judgment result. In one or more embodiments of this specification, since the graphic code displayed on the device terminal is dynamically changing, the dynamic password uploaded by the client should have a certain timeliness, so that the timeliness of the dynamic password can be used to identify whether the client is attacked, and timely and effective control can be carried out in case of identifying that the client is illegally attacked by a malicious user, so as to avoid unnecessary losses to normal users.
[0271] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0272] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0273] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0274] For the convenience of description, the above devices are described in terms of functions and are divided into various units. Of course, when implementing one or more of the present specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0275] It will be appreciated by those skilled in the art that one or more embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, one or more of this specification may be in the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, one or more of this specification may be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0276] One or more of the present specification is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to one or more embodiments of the present specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0277] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0278] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0279] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0280] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0281] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0282] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0283] It should be understood by those skilled in the art that one or more embodiments of this specification may be provided as methods, systems or computer program products. Therefore, one or more of this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, one or more of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0284] One or more of the present descriptions may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more of the present descriptions may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communications network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0285] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0286] The above description is only one or more embodiments of this specification and is not intended to limit this specification. For those skilled in the art, this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this specification should be included in the scope of one or more claims of this specification.
Claims
1. A code scanning control method, characterized in that: include: Receiving a device control request sent by a client, wherein the device control request carries a target dynamic password; Determining whether the target dynamic password meets a preset timeliness condition, wherein the target dynamic password corresponds one-to-one to the dynamically updated graphic code displayed on the target device terminal; If the target dynamic password meets the preset timeliness condition, receiving the control confirmation information carrying the target dynamic password sent by the client; Based on the received control confirmation information, determining again whether the target dynamic password meets the preset timeliness condition; if so, sending a control instruction to the target device terminal; The judging whether the target dynamic password meets the preset timeliness condition includes: if the target dynamic password exists in the dynamic password set, determining whether the target dynamic password meets the preset timeliness condition; the dynamic password set includes at least one valid dynamic password.
2. The method according to claim 1, characterized in that The receiving control confirmation information carrying the target dynamic password sent by the client includes: Returning a business page to the client; The control confirmation information sent by the client for the business page is received.
3. The method according to claim 1, characterized in that After determining again whether the target dynamic password meets the preset timeliness condition, the method further includes: If the judgment result is no, prompt information is returned to the client, so that the client performs a prompt based on the prompt information.
4. The method according to claim 1, characterized in that: Before receiving the device control request sent by the client, it also includes: Determine a dynamic password according to at least two of a device identification of a target device terminal, an identification key corresponding to the device identification, and timestamp information; Generate graphic code information according to the determined dynamic password; The graphic code information is sent to the target device terminal, so that the target device terminal displays the graphic code based on the graphic code information.
5. The method according to claim 4, characterized in that After the dynamic password is determined, it also includes: The dynamic password is added to a dynamic password set, and when the dynamic password meets a preset destruction condition, the dynamic password is removed from the dynamic password set, wherein the preset destruction condition includes: the dynamic password reaches a preset survival time and / or the dynamic password has been used.
6. The method according to claim 5, characterized in that After removing the dynamic password from the dynamic password set, the method further includes: A new dynamic password is generated, and the graphic code displayed on the target device terminal is updated based on the new dynamic password.
7. The method according to claim 4, characterized in that The step of determining the dynamic password according to at least two of a device identification of the target device terminal, an identification key corresponding to the device identification, and timestamp information includes: The dynamic password is determined by using a message digest algorithm according to at least two of the device identification of the target device terminal, the identification key corresponding to the device identification, and the timestamp information.
8. A code scanning control method, characterized in that: include: Sending a device control request carrying a target dynamic password to a background server, so that the background server determines whether the target dynamic password meets a preset timeliness condition; wherein the target dynamic password corresponds to a dynamically updated graphic code displayed on the target device terminal; Receiving feedback information sent by the background server, wherein the feedback information is generated by the background server based on a timeliness judgment result of the target dynamic password; If the feedback information includes that the target dynamic password meets the preset timeliness condition, then send control confirmation information carrying the target dynamic password to the background server, so that the background server judges again whether the target dynamic password meets the preset timeliness condition based on the control confirmation information; and send a control instruction to the target device terminal if the judgment result is yes; The backend server determines whether the target dynamic password meets a preset timeliness condition, including: if the target dynamic password exists in a dynamic password set, determining that the target dynamic password meets the preset timeliness condition; the dynamic password set includes at least one valid dynamic password.
9. The method according to claim 8, characterized in that The receiving feedback information sent by the background server includes: Receiving a business page sent by the backend server when determining that the target dynamic password meets a preset timeliness condition; The sending of the control confirmation information carrying the target dynamic password to the background server includes: The control confirmation information is sent to the background server based on the business page.
10. The method according to claim 8, characterized in that The receiving feedback information sent by the background server includes: Receive the prompt information sent by the background server when determining that the target dynamic password does not meet the preset timeliness condition, and give a prompt based on the prompt information.
11. A code scanning control method, characterized in that: include: Receiving a device control request for a code scanning vending device sent by a client, wherein the device control request carries a target dynamic password; Determining whether the target dynamic password meets a preset timeliness condition, wherein the target dynamic password corresponds one-to-one to the dynamically updated graphic code displayed on the target code scanning vending device; If the target dynamic password meets the preset timeliness condition, receiving the control confirmation information carrying the target dynamic password sent by the client; Based on the received control confirmation information, determining again whether the target dynamic password meets the preset timeliness condition; if so, sending a control instruction to the target code scanning vending device; The judging whether the target dynamic password meets the preset timeliness condition includes: if the target dynamic password exists in the dynamic password set, determining whether the target dynamic password meets the preset timeliness condition; the dynamic password set includes at least one valid dynamic password.
12. The method according to claim 11, characterized in that Before receiving the device control request for the code scanning vending device sent by the client, it also includes: Determine a dynamic password according to at least two of a device identification of a target code scanning vending device, an identification key corresponding to the device identification, and timestamp information; Generate graphic code information according to the determined dynamic password; The graphic code information is sent to the target code scanning and vending device, so that the target code scanning and vending device displays a graphic code based on the graphic code information.
13. The method according to claim 12, characterized in that After the dynamic password is determined, it also includes: Adding the dynamic password to a dynamic password set, and when the dynamic password meets a preset destruction condition, removing the dynamic password from the dynamic password set, wherein the preset destruction condition includes: the dynamic password reaches a preset survival time and / or the dynamic password has been used; The determining whether the target dynamic password meets a preset timeliness condition includes: If the target dynamic password exists in the dynamic password set, determining that the target dynamic password meets a preset timeliness condition; If the target dynamic password does not exist in the dynamic password set, it is determined that the target dynamic password does not meet the preset timeliness condition.
14. The method according to claim 13, characterized in that After removing the dynamic password from the dynamic password set, the method further includes: A new dynamic password is generated, and the graphic code displayed on the target code scanning vending device is updated based on the new dynamic password.
15. A code scanning control device, characterized in that: include: A request receiving module, used for receiving a device control request sent by a client, wherein the device control request carries a target dynamic password; A password recognition module, used to determine whether the target dynamic password meets a preset timeliness condition, wherein the target dynamic password corresponds to a dynamically updated graphic code displayed on the target device terminal; The control module receives the control confirmation information carrying the target dynamic password sent by the client if the target dynamic password meets the preset timeliness condition; based on the received control confirmation information, determines again whether the target dynamic password meets the preset timeliness condition; if so, sends a control instruction to the target device terminal; The password identification module determines that the target dynamic password meets the preset timeliness condition when the target dynamic password exists in the dynamic password set; the dynamic password set includes at least one valid dynamic password.
16. A code scanning control device, characterized in that: include: A request receiving module, used to receive a device control request for a code scanning vending device sent by a client, wherein the device control request carries a target dynamic password; A password recognition module, used to determine whether the target dynamic password meets a preset timeliness condition, wherein the target dynamic password corresponds one-to-one to the dynamically updated graphic code displayed on the target code scanning vending device; The control module receives the control confirmation information sent by the client and carrying the target dynamic password if the target dynamic password meets the preset timeliness condition; based on the received control confirmation information, determines again whether the target dynamic password meets the preset timeliness condition; if so, sends a control instruction to the target code scanning vending device; The password identification module determines that the target dynamic password meets the preset timeliness condition when the target dynamic password exists in the dynamic password set; the dynamic password set includes at least one valid dynamic password.
17. A code scanning control system, characterized in that: include: Backend server, client and device terminal; The background server is used to receive a device control request sent by a client; determine whether the target dynamic password carried in the device control request meets a preset timeliness condition; The client is used to send a device control request to a background server; and receive feedback information sent by the background server for the timeliness judgment result of the target dynamic password; if the feedback information includes that the target dynamic password meets the preset timeliness condition, then send control confirmation information carrying the target dynamic password to the background server; The device terminal is used to display a corresponding graphic code based on the graphic code information sent by the background server, wherein the graphic code is dynamically updated and each graphic code corresponds to a unique dynamic password; and receive a control instruction sent by the background server for the timeliness judgment result of the target dynamic password; The backend server is configured to receive the control confirmation information sent by the client; based on the received control confirmation information, determine again whether the target dynamic password meets the preset timeliness condition; if so, send a control instruction to the device terminal; The background server determines, when the target dynamic password exists in the dynamic password set, that the target dynamic password satisfies the preset timeliness condition; the dynamic password set includes at least one valid dynamic password.
18. A code scanning control device, characterized in that: include: processor; as well as a memory arranged to store computer executable instructions which, when executed, cause the processor to: Receiving a device control request sent by a client, wherein the device control request carries a target dynamic password; Determining whether the target dynamic password meets a preset timeliness condition, wherein the target dynamic password corresponds one-to-one to the dynamically updated graphic code displayed on the target device terminal; If the target dynamic password meets the preset timeliness condition, receiving the control confirmation information sent by the client carrying the target dynamic password; based on the received control confirmation information, determining again whether the target dynamic password meets the preset timeliness condition; if so, sending a control instruction to the target device terminal; The judging whether the target dynamic password meets the preset timeliness condition includes: if the target dynamic password exists in the dynamic password set, determining whether the target dynamic password meets the preset timeliness condition; the dynamic password set includes at least one valid dynamic password.
19. A code scanning control device, characterized in that: include: processor; as well as a memory arranged to store computer executable instructions which, when executed, cause the processor to: Receiving a device control request for a code scanning vending device sent by a client, wherein the device control request carries a target dynamic password; Determining whether the target dynamic password meets a preset timeliness condition, wherein the target dynamic password corresponds one-to-one to the dynamically updated graphic code displayed on the target code scanning vending device; If the target dynamic password meets the preset timeliness condition, receiving the control confirmation information sent by the client carrying the target dynamic password; based on the received control confirmation information, determining again whether the target dynamic password meets the preset timeliness condition; if so, sending a control instruction to the target code scanning vending device; The judging whether the target dynamic password meets the preset timeliness condition includes: if the target dynamic password exists in the dynamic password set, determining whether the target dynamic password meets the preset timeliness condition; the dynamic password set includes at least one valid dynamic password.
20. A storage medium for storing computer executable instructions, characterized in that: The executable instructions implement the following process when executed: Receiving a device control request sent by a client, wherein the device control request carries a target dynamic password; Determining whether the target dynamic password meets a preset timeliness condition, wherein the target dynamic password corresponds one-to-one to the dynamically updated graphic code displayed on the target device terminal; If the target dynamic password meets the preset timeliness condition, receiving the control confirmation information sent by the client carrying the target dynamic password; based on the received control confirmation information, determining again whether the target dynamic password meets the preset timeliness condition; if so, sending a control instruction to the target device terminal; The judging whether the target dynamic password meets the preset timeliness condition includes: if the target dynamic password exists in the dynamic password set, determining whether the target dynamic password meets the preset timeliness condition; the dynamic password set includes at least one valid dynamic password.
21. A storage medium for storing computer executable instructions, characterized in that: The executable instructions implement the following process when executed: Receiving a device control request for a code scanning vending device sent by a client, wherein the device control request carries a target dynamic password; Determining whether the target dynamic password meets a preset timeliness condition, wherein the target dynamic password corresponds one-to-one to the dynamically updated graphic code displayed on the target code scanning vending device; If the target dynamic password meets the preset timeliness condition, receiving the control confirmation information sent by the client carrying the target dynamic password; based on the received control confirmation information, determining again whether the target dynamic password meets the preset timeliness condition; if so, sending a control instruction to the target code scanning vending device; The judging whether the target dynamic password meets the preset timeliness condition includes: if the target dynamic password exists in the dynamic password set, determining whether the target dynamic password meets the preset timeliness condition; the dynamic password set includes at least one valid dynamic password.
