CN113140079B - Intelligent cabinet opening method, data processing method and device and intelligent cabinet application system - Google Patents

Intelligent cabinet opening method, data processing method and device and intelligent cabinet application system Download PDF

Info

Publication number
CN113140079B
CN113140079B CN202110445624.4A CN202110445624A CN113140079B CN 113140079 B CN113140079 B CN 113140079B CN 202110445624 A CN202110445624 A CN 202110445624A CN 113140079 B CN113140079 B CN 113140079B
Authority
CN
China
Prior art keywords
cabinet
data
target
opening
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110445624.4A
Other languages
Chinese (zh)
Other versions
CN113140079A (en
Inventor
陈仁甫
孙抗
柳絮青
吴远
黄平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Rajax Network Technology Co Ltd
Zhejiang Koubei Network Technology Co Ltd
Original Assignee
Rajax Network Technology Co Ltd
Zhejiang Koubei Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Rajax Network Technology Co Ltd, Zhejiang Koubei Network Technology Co Ltd filed Critical Rajax Network Technology Co Ltd
Priority to CN202110445624.4A priority Critical patent/CN113140079B/en
Publication of CN113140079A publication Critical patent/CN113140079A/en
Application granted granted Critical
Publication of CN113140079B publication Critical patent/CN113140079B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F17/00Coin-freed apparatus for hiring articles; Coin-freed facilities or services
    • G07F17/10Coin-freed apparatus for hiring articles; Coin-freed facilities or services for means for safe-keeping of property, left temporarily, e.g. by fastening the property
    • G07F17/12Coin-freed apparatus for hiring articles; Coin-freed facilities or services for means for safe-keeping of property, left temporarily, e.g. by fastening the property comprising lockable containers, e.g. for accepting clothes to be cleaned
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/12Hotels or restaurants
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00896Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys specially adapted for particular uses
    • G07C9/00912Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys specially adapted for particular uses for safes, strong-rooms, vaults or the like

Abstract

The application discloses an intelligent cabinet opening method, a data processing method and device and an intelligent cabinet application system, wherein the intelligent cabinet opening method comprises the following steps: the method comprises the steps that a server of the intelligent cabinet obtains first check data provided by a user terminal, the first check data are obtained after a network platform server encrypts first cabinet opening data in a preset encryption mode, and the first cabinet opening data are used for representing the opening authority of a target user on a target cabinet lattice of the intelligent cabinet; and decrypting the first check data by adopting a preset decryption mode which is appointed by the network platform server and corresponds to the preset encryption mode, and determining whether to open the target cabinet lattice or not based on a decryption result. By using the method, the influence on the normal use of the intelligent cabinet due to poor network signals or network disconnection can be avoided, for example, the user can realize the food taking permission verification and complete the food taking only by providing the first check data issued in advance by the network platform server in the food taking link, and the problem of long waiting time of the user is avoided.

Description

Intelligent cabinet opening method, data processing method and device and intelligent cabinet application system
The application is a divisional application with the application number of 202011461573.6, the application date of 2020, 12 months and 14 days, and the name of the invention, namely an intelligent cabinet opening method, a data processing method and device and an intelligent cabinet application system.
Technical Field
The application relates to the technical field of computers, in particular to an intelligent cabinet opening method. The application also relates to an intelligent cabinet opening device, electronic equipment and a computer readable storage medium. The application also relates to a data processing method and device and an intelligent cabinet application system.
Background
In the application process of intelligent cabinets such as express cabinets, meal taking cabinets, automatic sales cabinets and the like, the existing cabinet opening link of the intelligent cabinet needs a network platform server, a user terminal and the server of the intelligent cabinet to participate together, and whether a cabinet opening main body has a cabinet opening authority or not is identified in a network interaction mode. For example, in a take-out delivery scene, after receiving a meal fetching code, a user terminal provides the meal fetching code to a server of a meal fetching cabinet in a screen identification or screen input mode during meal fetching, the server of the meal fetching cabinet sends the meal fetching code to a network platform server for verification of meal fetching authority, the network platform server inquires cabinet lattice information corresponding to the meal fetching code and sends a cabinet opening notification containing the cabinet lattice information to the server of the meal fetching cabinet, and therefore the meal fetching process is completed. Or when the user terminal takes the meal, the user terminal sends a meal taking code and a cabinet opening instruction to the network platform server, and after receiving the meal taking code and the cabinet opening instruction, the network platform server inquires cabinet lattice information corresponding to the meal taking code and sends a cabinet opening notice containing the cabinet lattice information to a server of the meal taking cabinet corresponding to the cabinet lattice information.
In the above-mentioned link of getting meal of user, the network platform server needs to send the notice of opening the cabinet to the server of getting the cupboard through network communication's mode, however, when network signal is relatively poor or the network disconnection, the server of getting the cupboard is in the off-line state, can't carry out network communication with the network platform server, therefore when the cabinet door needs to be opened, the network platform server can't issue and give the notice of getting the cupboard of opening the cabinet, it also can't acquire the cabinet check information that needs to open the cabinet to get the cupboard, consequently can't open the cabinet check, influence the normal use of getting the cupboard, for example, the user needs to wait to get the meal in the cabinet check after the server network of getting the cupboard recovers, cause cabinet check occupation time overlength, the longer problem of user waiting time.
Disclosure of Invention
The embodiment of the application provides an intelligent cabinet opening method and device, electronic equipment and a computer readable storage medium, and aims to solve the problem that normal use of an intelligent cabinet is influenced due to poor network signals or network disconnection in the prior art. The embodiment of the application also provides a data processing method and device, electronic equipment, a computer readable storage medium and an intelligent cabinet application system.
The embodiment of the application provides an intelligent cabinet opening method, which is applied to a server of an intelligent cabinet and comprises the following steps: the method comprises the steps that first check data provided by a user terminal are obtained, the first check data are obtained after a network platform server encrypts first cabinet opening data in a preset encryption mode, the first cabinet opening data are used for representing the opening authority of a target user on a target cabinet grid of an intelligent cabinet, and the user terminal is computing equipment of the target user; and decrypting the first check data by adopting a predetermined decryption mode which is appointed by the network platform server and corresponds to the predetermined encryption mode, and determining whether to open the target cabinet lattice or not based on a decryption result.
Optionally, the method further includes: acquiring a current network state; acquiring first verification data provided by a user terminal, wherein the first verification data comprises: when the current network state is an offline state, first check data provided by the user terminal is acquired. The predetermined encryption mode and the predetermined decryption mode are realized based on a symmetric key cryptosystem. The first check data is an offline identification code generated by the network platform server according to the first cabinet opening data by adopting a preset identification code generation mechanism; acquiring first verification data provided by a user terminal, wherein the first verification data comprises: after a user terminal receives an offline identification code from a network platform server and displays the offline identification code, identifying to obtain the offline identification code; the decryption processing of the first verification data is performed by adopting a predetermined decryption mode which is appointed by the network platform server and corresponds to the predetermined encryption mode, and the decryption processing comprises the following steps: and analyzing the offline identification code based on a preset identification code analyzing mechanism which is predetermined by the network platform server and corresponds to the preset identification code generating mechanism.
Optionally, after the network platform server encrypts the first opening data and obtains first check data, an offline identification code is generated according to the first check data; acquiring first verification data provided by a user terminal, wherein the first verification data comprises: after the user terminal receives the offline identification code from the network platform server and displays the offline identification code, the offline identification code displayed by the user terminal is analyzed to obtain information of the offline identification code, wherein the information of the offline identification code is first check data.
Optionally, the obtaining the current network state includes: sending network heartbeats to a network platform server according to a preset time interval; if feedback information of the network platform server for network heartbeat is received, determining that the current network state is an online state; if the network heartbeat transmission fails or feedback information of the network platform server aiming at the network heartbeat is not received, determining that the current network state is an offline state; or receiving the network heartbeat sent by the network platform server, and if the network heartbeat sent by the network platform server is not received within a preset time interval, determining that the current network state is an offline state.
Optionally, determining whether to open the target cabinet based on the decryption result includes: and responding to the decryption to obtain the first cabinet opening data, determining a target cabinet lattice corresponding to the first cabinet opening data, and determining to open the target cabinet lattice. The network platform server and the server of the intelligent cabinet pre-agree an encryption mode and a decryption mode for each cabinet lattice of the intelligent cabinet, and the network platform server decrypts the first check data by adopting the pre-agreed decryption mode corresponding to the pre-agreed encryption mode, wherein the decryption mode comprises the following steps: performing polling decryption operation on the first check data by adopting a plurality of decryption modes which are appointed with a network platform server and aim at a plurality of cabinet lattices of the intelligent cabinet; determining whether to open the target cabinet based on the decryption result, wherein the determining comprises one of the following steps: responding to the first check data which are decrypted by a target decryption mode in a plurality of decryption modes to obtain first cabinet opening data, determining a cabinet lattice corresponding to the target decryption mode as a target cabinet lattice, and determining to open the target cabinet lattice; in response to the first check data being decrypted by a target decryption mode of the multiple decryption modes to obtain first cabinet opening data, and the target cabinet lattice corresponding to the first cabinet opening data is consistent with the cabinet lattice corresponding to the target decryption mode, determining to open the target cabinet lattice; and in response to the first check data being decrypted by a target decryption mode of the multiple decryption modes to obtain first cabinet opening data, determining a target cabinet lattice corresponding to the first cabinet opening data, and determining to open the target cabinet lattice.
Optionally, determining to open the target cabinet lattice corresponding to the effective opening time limit includes: acquiring time for acquiring first check data provided by a user terminal or time for acquiring first cabinet opening data by decryption; and if the time for acquiring the first check data provided by the user terminal or the time for decrypting the first opening data does not exceed the effective opening time limit corresponding to the target cabinet lattice, determining to open the target cabinet lattice. And if the time for acquiring the first check data provided by the user terminal or the time for decrypting the first opening data exceeds the effective opening time limit corresponding to the target cabinet grid, determining that the target cabinet grid cannot be opened, and outputting prompt information for not opening the cabinet grid.
Optionally, the method further includes: and outputting prompt information for enabling the user terminal to acquire the updated first verification data. Determining whether to open the target cabinet lattice based on the decryption result, including: and responding to the first cabinet opening data obtained by the decryption failure, determining that the target cabinet lattice cannot be opened, and outputting prompt information of the cabinet lattice which cannot be opened. Determining whether to open the target cabinet based on the decryption result, including: acquiring first cabinet opening data obtained through decryption; acquiring second cabinet opening data which are locally generated and used for approving the opening authority of the target cabinet grid; and comparing the first cabinet opening data with the second cabinet opening data, and determining to open the target cabinet grid if the first cabinet opening data is matched with the second cabinet opening data.
Optionally, the method further includes: the method comprises the steps that a target encryption key is used for carrying out encryption processing on locally generated second cabinet opening data used for approving the opening authority of a target cabinet lattice in advance, and second check data corresponding to the target cabinet lattice are obtained; the first cabinet opening data carries a target decryption key corresponding to the target encryption key, and second cabinet opening data which are locally generated and used for approving the opening authority of the target cabinet grid are obtained, wherein the second cabinet opening data comprises the following steps: determining information of a target cabinet grid according to the first cabinet opening data; and determining second check data corresponding to the target cabinet lattice according to the information of the target cabinet lattice, and decrypting the second check data by using the target decryption key to obtain second cabinet opening data.
Optionally, the network platform server and the server of the intelligent cabinet acquire first cabinet opening data and second cabinet opening data for the target cabinet lattice according to a same pre-agreed data acquisition mode; first data and the second data phase-match of opening cabinet include: the first open cabinet data is the same as the second open cabinet data. The first opening data includes: identification information of the target cabinet grid and effective opening time limit information corresponding to the target cabinet grid; correspondingly, the second cabinet opening data comprises: first approval information approving the identification information of the target cabinet and second approval information approving the valid opening time limit information. Compare first data and the second data of opening cabinet, if first data and the second data phase-match of opening cabinet, then confirm to open target cabinet check, include: comparing the identification information of the target cabinet lattice with the first approval information, and comparing the effective opening time limit information corresponding to the target cabinet lattice with the second approval information; and if the identification information of the target cabinet lattice is matched with the first approval information and the effective opening time limit information corresponding to the target cabinet lattice is matched with the second approval information, determining to open the target cabinet lattice.
Optionally, the method further includes: and if the identification information of the target cabinet lattice is not matched with the first approval information and/or the effective opening time limit information corresponding to the target cabinet lattice is not matched with the second approval information, determining that the target cabinet lattice cannot be opened, and outputting prompt information that the target cabinet lattice cannot be opened. The prompt message that the target cabinet lattice cannot be opened comprises: and prompting information that the identification information of the target cabinet lattice is not matched with the first approval information, and/or prompting information that the effective opening time limit information corresponding to the target cabinet lattice is not matched with the second approval information. Further comprising: and if the identification information of the target cabinet lattice is matched with the first approval information and the effective opening time limit information corresponding to the target cabinet lattice is not matched with the second approval information, outputting prompt information for enabling the user terminal to obtain the updated first verification data. When the current network state is an offline state, before acquiring the first check data provided by the user terminal, the method further includes: and outputting prompt information for opening the cabinet lattice in an off-line cabinet opening mode at present so that the user terminal provides first check data based on the prompt information. Further comprising: and if the current network state is changed from the off-line state to the on-line state, outputting prompt information that the cabinet lattice can be opened in an on-line cabinet opening mode currently.
The embodiment of the present application further provides a data processing method, applied to a network platform server, including: acquiring a network state corresponding to a server of the intelligent cabinet; in response to the fact that the network state is an offline state, encrypting first cabinet opening data in a preset encryption mode to obtain first check data, wherein the first cabinet opening data are used for representing the opening authority of a target user on a target cabinet lattice of the intelligent cabinet; and providing the first check data to a user terminal of a target user, so that after the user terminal provides the first check data to a server of the intelligent cabinet, the server of the intelligent cabinet can decrypt the first check data by adopting a preset decryption mode which is agreed with the network platform server and corresponds to the preset encryption mode, and determine whether to open the target cabinet lattice based on a decryption result. Further comprising: and responding to the fact that the network state is an offline state, acquiring user data corresponding to the intelligent cabinet, and determining a user corresponding to the user data as a target user.
Optionally, the encrypting the first opening data by using a predetermined encryption method to obtain first check data includes: and generating an offline identification code according to the first cabinet opening data by adopting a preset identification code generation mechanism.
Optionally, the method further includes: an offline identification code is generated based on the first verification data. Providing the first collation data to the user terminal of the target user, including: and sending the offline identification code to the user terminal of the target user. The user terminal for sending the offline identification code to the target user comprises the following steps: responding to an offline cabinet opening request from a user terminal, and sending an offline identification code to the user terminal; or, the offline identification code is pushed to the user terminal. Obtain the network state that the server of intelligence cabinet corresponds, include: sending network heartbeats to a server of the intelligent cabinet according to a preset time interval; if feedback information of the server of the intelligent cabinet aiming at the network heartbeat is received, determining that the network state corresponding to the server of the intelligent cabinet is an online state; if the feedback information of the server of the intelligent cabinet aiming at the network heartbeat is not received, determining that the network state corresponding to the server of the intelligent cabinet is an off-line state; or receiving the network heartbeat sent by the server of the intelligent cabinet, and if the network heartbeat sent by the server of the intelligent cabinet is not received within a preset time interval, determining that the network state corresponding to the server of the intelligent cabinet is an offline state. Optionally, the first opening data includes: identification information of the target cabinet.
Optionally, the first cabinet opening data further includes: and effective opening time limit information corresponding to the target cabinet grid. The network platform server and the server of the intelligent cabinet pre-agree an encryption mode and a decryption mode for each cabinet lattice of the intelligent cabinet, the first cabinet opening data are encrypted by adopting the pre-agreed encryption mode to obtain first check data, and the method comprises the steps of encrypting the first cabinet opening data by adopting the pre-agreed encryption mode for a target cabinet lattice with the server of the intelligent cabinet, and obtaining the first check data.
The server of the intelligent cabinet generates second cabinet opening data for approving the opening authority of the target cabinet grid in a data acquisition mode agreed with the network platform server in advance; the first cabinet opening data is obtained by the following method: and acquiring first cabinet opening data matched with the second cabinet opening data in a data acquisition mode. With the first data of opening cabinet of second data matching that opens cabinet, include: first opening data identical to the second opening data.
The embodiment of the present application further provides a data processing method, which is applied to a network platform server, and includes: receiving a cabinet opening request sent by a user terminal of a target user, wherein the cabinet opening request comprises an identifier of an intelligent cabinet; acquiring a network state corresponding to a server of the intelligent cabinet based on the identification of the intelligent cabinet; in response to the fact that the network state is an offline state, encrypting first cabinet opening data in a preset encryption mode to obtain first check data, wherein the first cabinet opening data are used for representing the opening authority of a target user on a target cabinet lattice of the intelligent cabinet; and after the first check data are provided for the user terminal so that the user terminal provides the first check data for the server of the intelligent cabinet, the server of the intelligent cabinet can decrypt the first check data by adopting a preset decryption mode which is appointed by the network platform server and corresponds to the preset encryption mode, and determine whether to open the target cabinet lattice based on the decryption result. The cabinet opening request carries the identification of the target user; the method further comprises the following steps: and determining a target cabinet lattice corresponding to the target user according to the identification of the target user. Obtaining a network state corresponding to a server of the intelligent cabinet, including: sending network heartbeats to a server of the intelligent cabinet according to a preset time interval; if feedback information of the server of the intelligent cabinet aiming at the network heartbeat is received, determining that the network state corresponding to the server of the intelligent cabinet is an online state; if the feedback information of the server of the intelligent cabinet aiming at the network heartbeat is not received, determining that the network state corresponding to the server of the intelligent cabinet is an offline state; or receiving the network heartbeat sent by the server of the intelligent cabinet, and if the network heartbeat sent by the server of the intelligent cabinet is not received within a preset time interval, determining that the network state corresponding to the server of the intelligent cabinet is an offline state.
Optionally, the encrypting the first opening data by using a predetermined encryption method to obtain first check data includes: and generating an offline identification code according to the first cabinet opening data by adopting a preset identification code generation mechanism. Further comprising: an offline identification code is generated based on the first verification data. Optionally, providing the first verification data to the user terminal includes: and sending the offline identification code to the user terminal.
The embodiment of the application further provides a cabinet opening method, which is applied to a user terminal and comprises the following steps: receiving first check data sent by a network platform server; the first check data are obtained by encrypting first cabinet opening data in a preset encryption mode after the network platform server determines that a server of the intelligent cabinet is in an off-line state, the first cabinet opening data are used for representing the opening authority of a target user on a target cabinet grid of the intelligent cabinet, and the target user is a user corresponding to the user terminal; and providing the first check data to the server of the intelligent cabinet, so that the server of the intelligent cabinet decrypts the first check data by adopting a preset decryption mode which is agreed with the network platform server and corresponds to the preset encryption mode, and determining whether to open the target cabinet lattice or not based on a decryption result. The first check data is an offline identification code; adopt predetermined encryption mode to carry out encryption processing to first uncork data, include: generating an offline identification code according to the first cabinet opening data by adopting a preset identification code generation mechanism; providing first reconciliation data to a server of the smart cabinet, comprising: displaying the offline identification code; the server of the intelligent cabinet adopts a predetermined decryption mode which is appointed with the network platform server and corresponds to the predetermined encryption mode to decrypt the first check data, and the method comprises the following steps: and the server of the intelligent cabinet analyzes the offline identification code based on a preset identification code analysis mechanism which is agreed with the network platform server in advance and corresponds to the preset identification code generation mechanism. Receiving first verification data sent by a network platform server, wherein the first verification data comprises: receiving an offline identification code sent by the network platform server, wherein the offline identification code is an identification code generated according to the first check data; providing first reconciliation data to a server of the smart cabinet, comprising: displaying the offline identification code; before the server of the intelligent cabinet adopts a predetermined decryption mode which is agreed with the network platform server and corresponds to the predetermined encryption mode to decrypt the first check data, the method further comprises the following steps: and the server of the intelligent cabinet analyzes the offline identification code to obtain first checking data. Before receiving the first verification data sent by the network platform server, the method further comprises: and sending a cabinet opening request to a network platform server. Sending a request for opening a cabinet to a network platform server, comprising: identifying an object taking identification code posted or displayed on the intelligent cabinet to obtain an identification of the intelligent cabinet; send the request of opening the cabinet of the sign that carries the intelligent cabinet to the network platform server to send the request of opening the cabinet to the network platform server, include: and identifying an article taking identification code posted or displayed by the intelligent cabinet, and sending a cabinet opening request to the network platform server by the identified cabinet opening small program.
An embodiment of the present application further provides an intelligent cabinet application system, including: the system comprises a network platform server, a user terminal and a server of an intelligent cabinet; the network platform server is used for acquiring a network state corresponding to the server of the intelligent cabinet; in response to the fact that the network state is an offline state, encrypting first cabinet opening data in a preset encryption mode to obtain first check data, wherein the first cabinet opening data are used for representing the opening authority of a target user on a target cabinet lattice of the intelligent cabinet; providing the first collation data to the user terminal of the target user; the user terminal is used for providing the first check data to the server of the intelligent cabinet; and the server of the intelligent cabinet is used for acquiring the first check data, decrypting the first check data by adopting a preset decryption mode which is appointed by the network platform server and corresponds to the preset encryption mode, and determining whether to open the target cabinet lattice based on a decryption result. The user terminal is further configured to: sending a cabinet opening request to a network platform server, wherein the cabinet opening request carries an identification of the intelligent cabinet; the network platform server acquires the network state corresponding to the server of the intelligent cabinet, and comprises the following steps: and acquiring the network state corresponding to the server of the intelligent cabinet based on the identification of the intelligent cabinet. The opening request carries the identification of the target user, and the network platform server is further used for: and determining a target cabinet lattice corresponding to the target user according to the identification of the target user. Optionally, the obtaining a network state corresponding to the server of the intelligent cabinet includes: sending network heartbeats to a server of the intelligent cabinet according to a preset time interval; if feedback information of the server of the intelligent cabinet aiming at the network heartbeat is received, determining that the network state corresponding to the server of the intelligent cabinet is an online state; if the feedback information of the server of the intelligent cabinet aiming at the network heartbeat is not received, determining that the network state corresponding to the server of the intelligent cabinet is an off-line state; or receiving the network heartbeat sent by the server of the intelligent cabinet, and if the network heartbeat sent by the server of the intelligent cabinet is not received within a preset time interval, determining that the network state corresponding to the server of the intelligent cabinet is an offline state.
Optionally, the predetermined encryption manner and the predetermined decryption manner are implemented based on a symmetric key cryptosystem. The network platform server adopts a preset encryption mode to encrypt the first open cabinet data to obtain first check data, and the method comprises the following steps: the network platform server generates an offline identification code according to the first cabinet opening data by adopting a preset identification code generation mechanism; the network platform server provides the first verification data to the user terminal of the target user, and comprises: sending the offline identification code to the user terminal; the server of the intelligent cabinet acquires the first check data, decrypts the first check data by adopting a predetermined decryption mode which is agreed with the network platform server and corresponds to the predetermined encryption mode, and comprises the following steps: and identifying to obtain the offline identification code displayed by the user terminal, and analyzing the offline identification code based on a preset identification code analysis mechanism which is predetermined by the network platform server and corresponds to the preset identification code generation mechanism.
The network platform server is further configured to: generating an offline identification code according to the first check data; the network platform server provides the first verification data to the user terminal of the target user, and comprises: sending the offline identification code to a user terminal; the server of intelligence cabinet acquires first check data, includes: and identifying and acquiring an offline identification code displayed by the user terminal, analyzing the offline identification code, and acquiring information of the offline identification code, wherein the information of the offline identification code is first check data. The user terminal is further configured to: identifying an article taking identification code displayed by the intelligent cabinet, and sending an offline cabinet opening request to a network platform server based on an offline cabinet opening small program obtained through identification; sending the offline identification code to the user terminal, comprising: and responding to the offline cabinet opening request, and sending the offline identification code to the user terminal. Sending the offline identification code to a user terminal, comprising: and pushing the offline identification code to the user terminal.
The server of the intelligent cabinet determines whether to open the target cabinet lattice based on the decryption result, and the method comprises the following steps: and responding to the decryption to obtain the first cabinet opening data, determining a target cabinet lattice corresponding to the first cabinet opening data, and determining to open the target cabinet lattice. The server of network platform server and intelligent cabinet is agreed encryption mode and decryption mode in advance to each cabinet check of intelligent cabinet, and the server of intelligent cabinet adopts the predetermined decryption mode that agrees with network platform server, corresponds with predetermined encryption mode to carry out decryption processing to first check data, includes: performing polling decryption operation on the first check data by adopting a plurality of decryption modes which are appointed with a network platform server and aim at a plurality of cabinet lattices of the intelligent cabinet; determining whether to open the target cabinet based on the decryption result, wherein the determining comprises one of the following steps: responding to the first check data which are decrypted by a target decryption mode in a plurality of decryption modes to obtain first cabinet opening data, determining a cabinet lattice corresponding to the target decryption mode as a target cabinet lattice, and determining to open the target cabinet lattice; in response to the first check data being decrypted by a target decryption mode of the multiple decryption modes to obtain first cabinet opening data, and the target cabinet lattice corresponding to the first cabinet opening data is consistent with the cabinet lattice corresponding to the target decryption mode, determining to open the target cabinet lattice; and decrypting the first verification data by a target decryption mode in the plurality of decryption modes in response to the first verification data to obtain first cabinet opening data, determining a target cabinet lattice corresponding to the first cabinet opening data, and determining to open the target cabinet lattice.
Optionally, determining to open the target cabinet lattice corresponding to the effective opening time limit includes: acquiring time for acquiring first check data provided by a user terminal or time for acquiring first cabinet opening data by decryption; and if the time for acquiring the first check data provided by the user terminal or the time for decrypting the first opening data does not exceed the effective opening time limit corresponding to the target cabinet lattice, determining to open the target cabinet lattice. The server of intelligence cabinet is still used for: and if the time for acquiring the first check data provided by the user terminal or the time for decrypting the first opening data exceeds the effective opening time limit corresponding to the target cabinet grid, determining that the target cabinet grid cannot be opened, and outputting prompt information for not opening the cabinet grid. The server of intelligence cabinet is still used for: and outputting prompt information for enabling the user terminal to acquire the updated first verification data. The server of the intelligent cabinet determines whether to open the target cabinet lattice based on the decryption result, and the method comprises the following steps: and responding to the first cabinet opening data which cannot be obtained through decryption, determining that the target cabinet lattice cannot be opened, and outputting prompt information of the cabinet lattice which cannot be opened.
Optionally, the determining, by the server of the intelligent cabinet, whether to open the target cabinet lattice based on the decryption result includes: decrypting to obtain first cabinet opening data; second cabinet opening data which are locally generated and used for approving the opening authority of the target cabinet grid are obtained; and comparing the first cabinet opening data with the second cabinet opening data, and determining to open the target cabinet grid if the first cabinet opening data is matched with the second cabinet opening data. The server of intelligence cabinet is still used for: after the network state is determined to be the offline state, the second cabinet opening data which are generated locally and used for approving the opening authority of the target cabinet grid are encrypted by using the target encryption key, and second checking data corresponding to the target cabinet grid are obtained; the first cabinet opening data obtained by decryption carries a target decryption key corresponding to the target encryption key, and the server of the intelligent cabinet obtains second cabinet opening data which is locally generated and used for approving the opening authority of the target cabinet grid, and the method comprises the following steps: determining information of a target cabinet grid according to the first cabinet opening data; and determining second check data corresponding to the target cabinet lattice according to the information of the target cabinet lattice, and decrypting the second check data by using the target decryption key to obtain second cabinet opening data.
Optionally, the network platform server and the server of the intelligent cabinet acquire first cabinet opening data and second cabinet opening data for the target cabinet lattice according to a same predetermined data acquisition mode; first data and the second data phase-match of opening cabinet include: the first open cabinet data is the same as the second open cabinet data. The first opening data includes: identification information of the target cabinet lattice and effective opening time limit information corresponding to the target cabinet lattice; the second opening data includes: first approval information for approving the identification information of the target cabinet and second approval information for approving the valid opening time limit information. Compare first data and the second data of opening cabinet, if first data and the second data phase-match of opening cabinet, then confirm to open target cabinet check, include: comparing the identification information of the target cabinet lattice with the first approval information, and comparing the effective opening time limit information corresponding to the target cabinet lattice with the second approval information; and if the identification information of the target cabinet lattice is matched with the first approval information and the effective opening time limit information corresponding to the target cabinet lattice is matched with the second approval information, determining to open the target cabinet lattice. The server of intelligence cabinet is still used for: and if the identification information of the target cabinet lattice is not matched with the first approval information and/or the effective opening time limit information corresponding to the target cabinet lattice is not matched with the second approval information, determining that the target cabinet lattice cannot be opened, and outputting prompt information for not opening the target cabinet lattice.
Optionally, the prompt message that the target cabinet lattice cannot be opened includes: and prompting information that the identification information of the target cabinet lattice is not matched with the first approval information, and/or prompting information that the effective opening time limit information corresponding to the target cabinet lattice is not matched with the second approval information. The server of intelligence cabinet is still used for: and if the identification information of the target cabinet lattice is matched with the first approval information and the effective opening time limit information corresponding to the target cabinet lattice is not matched with the second approval information, outputting prompt information for enabling the user terminal to obtain the updated first verification data. The server of intelligence cabinet is still used for: acquiring a current network state; and responding to the fact that the current network state is an offline state, and outputting prompt information that the cabinet grids need to be opened in an offline cabinet opening mode currently. The server of intelligence cabinet is still used for: and if the current network state is changed from the off-line state to the on-line state, outputting prompt information that the cabinet grids can be opened in an on-line cabinet opening mode currently. The network platform server is further configured to: and responding to the fact that the network state is an offline state, acquiring user data corresponding to the intelligent cabinet, and determining a user corresponding to the user data as a target user.
The embodiment of the application still provides an intelligence cabinet device of opening cabinet, is applied to the server of intelligence cabinet, includes: the system comprises a first check data acquisition unit, a first storage unit and a second storage unit, wherein the first check data acquisition unit is used for acquiring first check data provided by a user terminal, the first check data is obtained after a network platform server encrypts first cabinet opening data in a preset encryption mode, the first cabinet opening data is used for representing the opening authority of a target user on a target cabinet grid of an intelligent cabinet, and the user terminal is computing equipment of the target user; and the target cabinet lattice opening determining unit is used for decrypting the first check data by adopting a preset decryption mode which is appointed by the network platform server and corresponds to the preset encryption mode, and determining whether to open the target cabinet lattice based on a decryption result.
An embodiment of the present application further provides a data processing apparatus, which is applied to a network platform server, and includes: the network state acquisition unit is used for acquiring a network state corresponding to a server of the intelligent cabinet; the encryption processing unit is used for responding to the fact that the network state is an off-line state, encrypting the first cabinet opening data in a preset encryption mode to obtain first check data, and the first cabinet opening data are used for representing the opening authority of a target user on a target cabinet lattice of the intelligent cabinet; and the data providing unit is used for providing the first verification data to the user terminal of the target user, so that after the user terminal provides the first verification data to the server of the intelligent cabinet, the server of the intelligent cabinet can decrypt the first verification data by adopting a preset decryption mode which is appointed by the network platform server and corresponds to the preset encryption mode, and determines whether to open the target cabinet lattice based on a decryption result.
An embodiment of the present application further provides a data processing apparatus, which is applied to a network platform server, and includes: the intelligent cabinet opening device comprises a cabinet opening request receiving unit, a cabinet opening request receiving unit and a cabinet opening request processing unit, wherein the cabinet opening request receiving unit is used for receiving a cabinet opening request sent by a user terminal of a target user, and the cabinet opening request comprises an identification of an intelligent cabinet; the network state obtaining unit is used for obtaining a network state corresponding to a server of the intelligent cabinet based on the identification of the intelligent cabinet; the first checking data obtaining unit is used for responding to the fact that the network state is an off-line state, encrypting the first cabinet opening data in a preset encryption mode to obtain first checking data, and the first cabinet opening data are used for representing the opening authority of a target user to a target cabinet lattice of the intelligent cabinet; and the first check data providing unit is used for providing the first check data to the user terminal so that after the user terminal provides the first check data to the server of the intelligent cabinet, the server of the intelligent cabinet can decrypt the first check data by adopting a preset decryption mode which is appointed by the network platform server and corresponds to the preset encryption mode, and determines whether to open the target cabinet lattice based on a decryption result.
The embodiment of the application also provides a cabinet opening device. Applied to a user terminal, comprising: a first collation data receiving unit configured to receive first collation data sent by the network platform server; the first check data are data obtained by encrypting first cabinet opening data in a preset encryption mode after the network platform server determines that a server of the intelligent cabinet is in an off-line state, the first cabinet opening data are used for representing the opening authority of a target user on a target cabinet lattice of the intelligent cabinet, and the target user is a user corresponding to the user terminal; and the first check data providing unit is used for providing the first check data to the server of the intelligent cabinet, so that the server of the intelligent cabinet can decrypt the first check data in a preset decryption mode which is appointed by the network platform server and corresponds to the preset encryption mode, and whether the target cabinet lattice is opened or not is determined based on the decryption result.
The embodiment of the application also provides an electronic device, which comprises a processor and a memory; wherein the memory is configured to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the above-described method.
Embodiments of the present application also provide a computer-readable storage medium having one or more computer instructions stored thereon, which are executed by a processor to implement the above-mentioned method.
Compared with the prior art, the embodiment of the application has the following advantages:
in the intelligent cabinet opening method provided by the embodiment of the application, a server of an intelligent cabinet acquires first check data provided by a user terminal, the first check data is obtained after a network platform server encrypts the first opening data in a preset encryption mode, the first opening data is used for representing the opening authority of a target user on a target cabinet lattice of the intelligent cabinet, and the user terminal is computing equipment of the target user; and decrypting the first check data by adopting a predetermined decryption mode which is appointed by the network platform server and corresponds to the predetermined encryption mode, and determining whether to open the target cabinet lattice or not based on a decryption result. In the process, the verification of the cabinet grid opening authority can be realized through a pre-agreed encryption mode and a decryption mode between the network platform server and the server of the intelligent cabinet, in a cabinet opening link of the intelligent cabinet, whether a target user has the opening authority aiming at the target cabinet grid or not is verified between the server of the intelligent cabinet and the network platform server in a network interaction mode or not, namely, the network platform server does not need to send a cabinet opening notification to the server of the intelligent cabinet in a network communication mode, the server of the intelligent cabinet does not need to perform network interaction with the network platform server to obtain cabinet grid information needing cabinet opening, only first check data provided by a user terminal are needed to be decrypted, and whether the target cabinet grid is opened or not can be determined based on a decryption result. By using the method, the influence on the normal use of the intelligent cabinet due to poor network signals or network disconnection can be avoided, for example, the food taking link of a user does not need to depend on the quality of a network environment, the food taking permission verification can be realized and the food taking can be completed only by providing the first check data issued by the network platform server in advance, and the problems of overlong cabinet lattice occupation time, longer user waiting time and deterioration of food are avoided.
Drawings
Fig. 1 is a flowchart of a method for opening an intelligent cabinet according to a first embodiment of the present application;
fig. 2 is a schematic diagram of an intelligent cabinet application system provided in an embodiment of the present application;
FIG. 3 is a flow chart of a data processing method according to a second embodiment of the present application;
fig. 4 is a block diagram of a unit of an intelligent cabinet opening device according to a fourth embodiment of the present application;
FIG. 5 is a schematic diagram of a logical structure of an electronic device according to an embodiment of the present application;
fig. 6 is a block diagram of a data processing apparatus according to a seventh embodiment of the present application;
fig. 7 is a flowchart of a data processing method according to a tenth embodiment of the present application;
fig. 8 is a block diagram of a data processing apparatus according to an eleventh embodiment of the present application;
fig. 9 is a flowchart of a method for opening a cabinet according to a fourteenth embodiment of the present application;
fig. 10 is a block diagram of a unit of a cabinet opening device according to a fifteenth embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
In the application process of intelligent cabinets such as express cabinets, dining cabinets, automatic vending cabinets and the like, the cabinet opening link of the existing intelligent cabinet needs a network platform server, a user terminal and the server of the intelligent cabinet to participate together, and whether a cabinet opening main body has a cabinet opening authority or not is identified in a network interaction mode.
For example, in a takeout delivery scenario, after a delivery resource (for example, a delivery resource having an end delivery capability and a data transmission/reception function such as a delivery person, a delivery drone, a delivery robot, or a delivery drone) places a takeout meal in a box of a takeout cabinet, the takeout information including box information (for example, a number of the takeout cabinet and a box number) and identification information of a takeout user are transmitted to a network platform server of a takeout platform, the network platform server generates a takeout code corresponding to the takeout information, and transmits the takeout code to a user terminal of the takeout user based on the identification information of the takeout user, or the network platform server returns the takeout code to the delivery resource, and the takeout code is transmitted to the user terminal of the takeout user by the delivery resource. After receiving the meal taking code, the user terminal provides the meal taking code for a server of the meal taking cabinet in a screen identification or screen input mode when taking meal, and the server of the meal taking cabinet sends the meal taking code to a network platform server to verify the meal taking authority, namely, the network platform server inquires cabinet lattice information corresponding to the meal taking code and sends a cabinet opening notice containing the cabinet lattice information to the server of the meal taking cabinet, so that the meal taking process is completed. Or when taking food, the user terminal sends a food taking code (or other identification information) and a cabinet opening instruction to the network platform server (for example, the user terminal obtains a food taking applet by identifying a two-dimensional code displayed on a food taking cabinet screen or a two-dimensional code posted on a food taking cabinet, and sends the food taking code and the cabinet opening instruction to the network platform server through the food taking applet), and after receiving the food taking code and the cabinet opening instruction, the network platform server inquires the cabinet lattice information corresponding to the food taking code and sends a cabinet opening notification containing the cabinet lattice information to the server of the food taking cabinet corresponding to the cabinet lattice information.
In the above-mentioned link of getting meal by the user, the network platform server all needs to send the notification of opening the cabinet to the server of getting the cupboard through network communication's mode, however, when network signal is relatively poor or the network is disconnected, the server of getting the cupboard is in the off-line state, can't carry out network communication with the network platform server, therefore when the cabinet door needs to be opened, the network platform server can't issue and give the notification of getting the cupboard to open the cabinet, get the cupboard and also can't obtain the cabinet check information that needs to open the cabinet, consequently can't open the cabinet check, influence the normal use of getting the cupboard, for example, the user needs to wait to get the meal in the cabinet check after the server network of getting the cupboard recovers, cause the problem that the cabinet check take up time overlength, the user wait time is longer, and the meal article are rotten.
Aiming at an application scene of an intelligent cabinet, in order to guarantee normal use of the intelligent cabinet, especially normal use under the condition of abnormal network, the application provides an intelligent cabinet opening method, an intelligent cabinet opening device corresponding to the method, electronic equipment and a computer readable storage medium. The following provides embodiments for detailed description of the above method, apparatus, electronic device, and computer-readable storage medium.
The first embodiment of the application provides an intelligent cabinet opening method, and an application subject of the method can be a server of an intelligent cabinet. Fig. 1 is a flowchart of a method for opening a cabinet in an intelligent cabinet according to a first embodiment of the present application, fig. 2 is a schematic diagram of an application system of the intelligent cabinet according to the first embodiment of the present application, and the method according to the present embodiment is described in detail below with reference to fig. 1 and fig. 2. The following description refers to embodiments for illustrating the principles of the methods and is not meant to be limiting in actual use.
As shown in fig. 1, the intelligent cabinet opening method provided in this embodiment includes the following steps:
s101, first verification data provided by the user terminal is obtained.
In this step, the server of the intelligent cabinet is configured to obtain first check data provided by the user terminal, where the first check data is obtained by encrypting the first opening data by the network platform server in a predetermined encryption manner, as shown in fig. 2, after the network platform server 203 encrypts the first opening data in the predetermined encryption manner to obtain the first check data, the first check data is issued to the user terminal 202, and the user terminal 202 provides the first check data to the server 201 of the intelligent cabinet in the opening link. The first cabinet opening data is used for representing the opening authority of the target user on the target cabinet lattice of the intelligent cabinet, for example, identification information of the target cabinet lattice (for example, the number of the intelligent cabinet and the number of the target cabinet lattice), effective opening time limit information corresponding to the target cabinet lattice, and the like, and the user terminal is computing equipment of the target user (for example, a smart phone used by the target user).
For example, in a takeout delivery scenario, after a delivery person puts a takeout meal into a target shelf of a taking cabinet, information such as identification information of the target shelf (for example, a number of the taking cabinet and a number of the target shelf), meal taking time information for limiting a valid open time limit of the target shelf, and an identification of a target user is sent to a network platform server of a takeout platform, the network platform server encrypts first opening data such as the information of the target shelf and the meal taking time information to obtain the first check data, and sends the first check data to a user terminal of the target user based on the identification of the target user, or the network platform server returns the first check data to a terminal used by the delivery person, and the terminal sends the first check data to the user terminal of the target user. And after receiving the first check data, the user terminal provides the first check data to the server of the meal taking cabinet when taking the meal.
In this embodiment, before the server of the intelligent cabinet obtains the first verification data provided by the user terminal, the server of the intelligent cabinet needs to obtain the current network state, and the obtaining of the first verification data provided by the user terminal by the server of the intelligent cabinet may be: specifically, when the current network state is determined to be the offline state, the server of the intelligent cabinet can output prompt information that the cabinet lattice needs to be opened in an offline cabinet opening mode at present, so that the user terminal provides the first check data based on the prompt information. The method for the server of the intelligent cabinet to obtain the current network state can be as follows: sending network heartbeats to a network platform server according to a preset time interval, if feedback information of the network platform server for the network heartbeats is received, determining that the current network state is an online state, and if the network heartbeats are failed to be sent or the feedback information of the network platform server for the network heartbeats is not received, determining that the current network state is an offline state; or receiving the network heartbeat sent by the network platform server, and if the network heartbeat sent by the network platform server is not received within a preset time interval, determining that the current network state is an offline state.
In this embodiment, the network platform server encrypts the first opening data by using a predetermined encryption method, which may be: and when the network platform server determines that the network state of the server of the intelligent cabinet is an off-line state, encrypting the first cabinet opening data by adopting a preset encryption mode. For example, the network platform server sends a network heartbeat to the server of the intelligent cabinet according to a preset time interval, if feedback information of the server of the intelligent cabinet aiming at the network heartbeat is received, the network state corresponding to the server of the intelligent cabinet is determined to be an online state, and if the feedback information of the server of the intelligent cabinet aiming at the network heartbeat is not received, the network state corresponding to the server of the intelligent cabinet is determined to be an offline state; or receiving the network heartbeat sent by the server of the intelligent cabinet according to a preset time interval, and if the network heartbeat sent by the server of the intelligent cabinet is not received within the preset time interval, determining that the network state corresponding to the server of the intelligent cabinet is an offline state. That is, the network platform server encrypts the first opening data in a predetermined encryption manner only when it is determined that the network state corresponding to the server of the intelligent cabinet is the offline state, and sends the encrypted first check data to the user terminal, and if it is determined that the network state corresponding to the server of the intelligent cabinet is the online state, the existing online processing method is used, for example, a meal fetching code is generated, and the meal fetching code is issued to the user terminal. Alternatively, the network platform server may perform encryption processing after obtaining the first locker data, and provide the first verification data obtained through encryption to the user terminal of the target user when determining that the network state of the server of the smart locker is an offline state, or the network platform server may obtain the first locker data and perform encryption processing when determining that the network state of the server of the smart locker is an offline state.
S102, decrypting the first check data by adopting a preset decryption mode which is appointed by the network platform server and corresponds to the preset encryption mode, and determining whether to open the target cabinet lattice or not based on a decryption result.
After the first check data provided by the user terminal is obtained in the above step, the step is used for decrypting the first check data by adopting a predetermined decryption mode corresponding to the predetermined encryption mode and agreed with the network platform server, and determining whether to open the target cabinet based on the decryption result.
In this embodiment, the encryption process and the decryption process are pre-agreed based on the network platform server and the server of the intelligent cabinet, that is, for the cabinet lattice of the intelligent cabinet, when the corresponding first opening data is encrypted by the network platform server to be the first check data and the first check data is decrypted by the server of the intelligent cabinet, the encryption mode and the decryption mode are pre-agreed. In this embodiment, the predetermined encryption manner and the predetermined decryption manner may be implemented based on a symmetric key cryptosystem (that is, the encryption key used by the encryption algorithm and the decryption key used by the decryption algorithm are in the same cryptosystem), or may be implemented based on a public key cryptosystem.
In this embodiment, the first verification data may be an offline identification code (e.g., a two-dimensional code, a barcode, etc.), or may be an encrypted ciphertext (e.g., a binary string). When the first check data is an offline identification code, the encrypting and decrypting processes are an offline identification code generating process and an offline identification code analyzing process, and in this case, the network platform server encrypts the first opening data in a predetermined encryption manner, which may specifically be: the network platform server generates an offline identification code according to the first cabinet opening data by adopting a preset identification code generation mechanism; correspondingly, the above obtaining the first verification data provided by the user terminal specifically means: after the user terminal receives the offline identification code from the network platform server and displays the offline identification code, the server of the intelligent cabinet obtains the offline identification code through code scanning gun identification; correspondingly, in step S102, a predetermined decryption manner, which is agreed with the network platform server and corresponds to the predetermined encryption manner, is used to decrypt the first verification data, specifically, the server of the intelligent cabinet parses the offline identification code based on a predetermined identification code parsing mechanism, which is agreed with the network platform server in advance and corresponds to the predetermined identification code generating mechanism.
It should be noted that, when the first check data is an encrypted ciphertext, after the network platform server encrypts the first open data and obtains the first check data, the network platform server may further generate an offline identification code according to the first check data, in this case, the server of the intelligent cabinet obtains the first check data provided by the user terminal, which may specifically be: after the user terminal receives the offline identification code from the network platform server and displays the offline identification code, the server of the intelligent cabinet analyzes the offline identification code displayed by the user terminal to obtain information of the offline identification code, wherein the information of the offline identification code can be a digital character with a preset number of digits (a ciphertext obtained by encrypting first cabinet-opening data), and the digital character is first check data used when the offline identification code is generated.
In the above two modes, the user terminal receives the offline identification code from the network platform server, which can be specifically implemented in the following manner: the user terminal identifies the fetching identification code displayed by the intelligent cabinet, interacts with the network platform server based on the offline small opening cabinet program obtained by identification (for example, a cabinet opening request is sent through a display interface of the offline small opening cabinet program), and receives the offline identification code from the network platform server; or the user terminal receives the offline identification code pushed by the network platform server.
The determining whether to open the target cabinet lattice based on the decryption result may be: and responding to the decryption to obtain the first cabinet opening data, determining a target cabinet lattice corresponding to the first cabinet opening data, and determining to open the target cabinet lattice corresponding to the first cabinet opening data. The server of the intelligent cabinet determines whether to open the cabinet lattices and which cabinet lattice to open, and the data obtained by decryption is used, the server of the intelligent cabinet decrypts first check data provided by the user terminal to obtain first cabinet opening data, the first cabinet opening data is used for representing the opening authority of a target user using the user terminal to the target cabinet lattice, the target cabinet lattice needing to be opened at present can be obtained according to the first cabinet opening data, and the target cabinet lattice is determined to be opened.
In this embodiment, in order to improve the security and pertinence of the cabinet opening process, the network platform server and the server of the intelligent cabinet may agree in advance on the encryption method and the decryption method for each cabinet lattice of the intelligent cabinet, that is, each cabinet lattice of the intelligent cabinet corresponds to a specific encryption method and a specific decryption method, and the step S102 may perform decryption processing on the first check data by using a predetermined decryption method agreed with the network platform server and corresponding to the predetermined encryption method, specifically may refer to: performing polling decryption operation on the first check data by adopting a plurality of decryption modes which are appointed with a network platform server and aim at a plurality of cabinet lattices of the intelligent cabinet; in this case, the determining whether to open the target cabinet based on the decryption result includes one of the following ways for different security level requirements of the open cabinet:
responding to the first check data which are decrypted by a target decryption mode in a plurality of decryption modes to obtain first cabinet opening data, determining a cabinet lattice corresponding to the target decryption mode as a target cabinet lattice, and determining to open the target cabinet lattice; that is, determining whether to open the cabinet lattice and which cabinet lattice to open is determined based on a target decryption mode capable of decrypting the first check data in the plurality of decryption modes, where the cabinet lattice corresponding to the target decryption mode is a target cabinet lattice to be opened;
in response to the first check data being decrypted by a target decryption mode of the multiple decryption modes to obtain first open cabinet data, and the target cabinet lattice corresponding to the first open cabinet data is consistent with the cabinet lattice corresponding to the target decryption mode, determining to open the target cabinet lattice; that is, whether or not to open the cabinet and which cabinet to open is determined based on the decryptable first cabinet opening data, and the target cabinet corresponding to the first cabinet opening data is determined to be consistent with the cabinet corresponding to the target decryption method that can decrypt the first verification data among the plurality of decryption methods;
decrypting the first check data by a target decryption mode in the plurality of decryption modes to obtain first cabinet opening data, determining a target cabinet lattice corresponding to the first cabinet opening data, and determining to open the target cabinet lattice; that is, if the first opening data can be obtained by decrypting the first check data by using one of the plurality of decryption methods, the target cabinet to be opened currently can be known according to the first opening data, and the target cabinet to be opened is determined.
In this embodiment, the target cabinet lattice may correspond to an effective opening time limit (for example, a meal taking time period is preset for a user, and the corresponding cabinet lattice may be opened only when a meal is taken in the time period), the server of the intelligent cabinet may set the effective opening time limit corresponding to the target cabinet lattice based on a predetermined agreement with the network platform server, and the determining to open the target cabinet lattice may further include: obtaining the time for obtaining the first check data provided by the user terminal or the time for obtaining the first cabinet opening data through decryption; and if the time for acquiring the first check data provided by the user terminal or the time for decrypting to obtain the first cabinet opening data does not exceed the effective opening time limit corresponding to the target cabinet lattice, determining to open the target cabinet lattice.
Correspondingly, if the time for acquiring the first check data provided by the user terminal or the time for decrypting the first cabinet opening data exceeds the effective opening time limit corresponding to the target cabinet lattice, determining that the target cabinet lattice cannot be opened, and outputting a prompt message indicating that the cabinet lattice cannot be opened, for example, displaying a prompt message indicating that the cabinet cannot be opened due to the fact that the cabinet opening time limit is exceeded on a display screen of the intelligent cabinet. In this case, the server of the intelligent cabinet may further output prompt information for enabling the user terminal to obtain the updated first check data, for example, prompt information of "reacquire the offline identification code" is displayed on a display screen of the intelligent cabinet, the user terminal may re-identify the fetching identification code displayed by the intelligent cabinet based on the prompt information, interact with the network platform server based on the offline opening applet obtained by the identification (for example, send a request for opening the cabinet through a display interface of the offline opening applet), and receive the updated offline identification code sent from the network platform server.
After the server of the smart cabinet decrypts the first check data, if the first check data provided by the user terminal is incorrect (e.g., the offline identification code is not generated based on the predetermined encryption method or the predetermined identification code generation mechanism) and the first opening data cannot be decrypted, the server outputs a prompt message indicating that the cabinet cannot be opened. For example, a prompt message of 'wrong decryption and failure to open cabinet grids' is displayed on a display screen of the intelligent cabinet.
It should be noted that, in order to further improve the security of the cabinet opening process, the above-mentioned determining whether to open the target cabinet based on the decryption result may also be implemented by: and after the server of the intelligent cabinet acquires the first cabinet opening data obtained by decryption, acquiring second cabinet opening data locally generated and used for approving the opening authority of the target cabinet lattice, comparing the first cabinet opening data obtained by decryption with the second cabinet opening data, and determining to open the target cabinet lattice if the first cabinet opening data is matched with the second cabinet opening data. In this case, the server of the intelligent cabinet may generate, for each cabinet, second cabinet opening data for approving the opening authority of the cabinet in a manner agreed in advance with the network platform server, where the approving manner may be to check whether the first cabinet opening data obtained by the decryption matches the second cabinet opening data. For example, the first opening data is identification information of the target cabinet (for example, a number of the target cabinet) and valid opening time limit information corresponding to the target cabinet; correspondingly, the second cabinet opening data can be first approval information for approving the identification information of the target cabinet and second approval information for approving the effective opening time limit information. The aforesaid is compared first data of opening cabinet and second data of opening cabinet, if first data of opening cabinet and second data of opening cabinet match, then open target cabinet check, specifically can be: comparing the identification information of the target cabinet lattice with the first approval information, and comparing the effective opening time limit information corresponding to the target cabinet lattice with the second approval information; and if the identification information of the target cabinet lattice is matched with the first approval information and the effective opening time limit information corresponding to the target cabinet lattice is matched with the second approval information, determining to open the target cabinet lattice. It should be noted that, if the identification information of the target cabinet lattice is not matched with the first approval information, or the valid opening time limit information corresponding to the target cabinet lattice is not matched with the second approval information, or the identification information of the target cabinet lattice is not matched with the first approval information, and the valid opening time limit information corresponding to the target cabinet lattice is not matched with the second approval information, the target cabinet lattice is not opened, and a prompt message that the target cabinet lattice cannot be opened is output. The prompt message that the target cabinet lattice cannot be opened specifically may be: and prompting information that the identification information of the target cabinet lattice is not matched with the first approval information, or prompting information that the effective opening time limit information corresponding to the target cabinet lattice is not matched with the second approval information, or prompting information that the identification information of the target cabinet lattice is not matched with the first approval information and the effective opening time limit information corresponding to the target cabinet lattice is not matched with the second approval information. If the identification information of the target cabinet lattice is matched with the first approval information, and the effective opening time limit information corresponding to the target cabinet lattice is not matched with the second approval information, namely, the first cabinet opening data exceeds the effective opening time limit of the target cabinet lattice, prompt information for enabling the user terminal to obtain the updated first check data can be output.
In this embodiment, the network platform server may generate first open data and second open data for the target cabinet grid according to a same pre-agreed data generation manner as the server of the intelligent cabinet, for example, the first open data generated by the network platform server is the number and the effective opening time limit information of the target cabinet grid, and the second open data generated by the server of the intelligent cabinet is also the number and the effective opening time limit information of the target cabinet grid; the above first opening data and the second opening data are matched, which may be: the first cabinet opening data are the same as the second cabinet opening data.
In this embodiment, the server of the smart cabinet may further encrypt, by using the target encryption key in advance, second opening data that is locally generated and used for authorizing the opening authority of the target cabinet, to obtain second verification data corresponding to the target cabinet; the first locker data may carry a target decryption key corresponding to the target encryption key, and in this case, the server of the smart locker obtains second locker data locally generated for approving the opening right of the target locker room, which may specifically be: determining the information of the target cabinet lattice according to the first cabinet opening data obtained by decryption; and determining second check data corresponding to the target cabinet lattice according to the information of the target cabinet lattice, and decrypting the second check data by using the target decryption key to obtain second cabinet opening data. By the mode, the pertinence and the safety of the cabinet opening process can be further improved.
It should be noted that, in any link before the target cabinet lattice is determined to be opened, if the server of the intelligent cabinet detects that the current network state is changed from the offline state to the online state, the server may output a prompt message indicating that the cabinet lattice can be opened in the online cabinet opening manner currently, so that the user can open the cabinet lattice in the online cabinet opening manner.
In the intelligent cabinet opening method provided by the embodiment of the application, a server of an intelligent cabinet acquires first check data provided by a user terminal, the first check data is obtained after a network platform server encrypts the first opening data in a preset encryption mode, the first opening data is used for representing the opening authority of a target user on a target cabinet lattice of the intelligent cabinet, and the user terminal is computing equipment of the target user; and decrypting the first check data by adopting a preset decryption mode which is appointed by the network platform server and corresponds to the preset encryption mode, and determining whether to open the target cabinet lattice or not based on a decryption result. In the process, verification of the cabinet grid opening authority can be achieved through a pre-agreed encryption mode and a decryption mode between the network platform server and the server of the intelligent cabinet, in a cabinet opening link of the intelligent cabinet, whether a target user has the opening authority for the target cabinet grid or not is verified between the server of the intelligent cabinet and the network platform server in a network interaction mode or not, namely, the network platform server does not need to send a cabinet opening notification to the server of the intelligent cabinet in a network communication mode, the server of the intelligent cabinet does not need to perform network interaction with the network platform server to obtain cabinet grid information needing cabinet opening, decryption processing is performed only on first check data provided by the user terminal, and whether the target cabinet grid is opened or not can be determined based on a decryption result. By using the method, the influence on the normal use of the intelligent cabinet due to poor network signals or network disconnection can be avoided, for example, the food taking link of a user does not need to depend on the quality of a network environment, the food taking permission verification can be realized and the food taking can be completed only by providing the first check data issued by the network platform server in advance, and the problems of overlong cabinet lattice occupation time, longer user waiting time and deterioration of food are avoided.
A second embodiment of the present application provides a data processing method, where an application subject of the method may be a network platform server. Fig. 3 is a flowchart of a data processing method according to a second embodiment of the present application, and the method according to this embodiment is described in detail below with reference to fig. 2 and fig. 3. The following description refers to embodiments for the purpose of illustrating the principles of the methods, and is not intended to be limiting in actual use.
As shown in fig. 3, the data processing method provided in this embodiment includes the following steps:
s301, acquiring a network state corresponding to the server of the intelligent cabinet.
For example, network heartbeats are sent to a server of the intelligent cabinet at predetermined time intervals; if feedback information of the server of the intelligent cabinet aiming at the network heartbeat is received, determining that the network state corresponding to the server of the intelligent cabinet is an online state; if the feedback information of the server of the intelligent cabinet aiming at the network heartbeat is not received, determining that the network state corresponding to the server of the intelligent cabinet is an off-line state; or receiving the network heartbeat sent by the server of the intelligent cabinet, and if the network heartbeat sent by the server of the intelligent cabinet is not received within a preset time interval, determining that the network state corresponding to the server of the intelligent cabinet is an offline state.
S302, in response to the fact that the network state is an off-line state, encrypting first cabinet opening data in a preset encryption mode to obtain first check data, wherein the first cabinet opening data are used for representing the opening authority of a target user on a target cabinet lattice of the intelligent cabinet.
And S303, providing the first check data to a user terminal of the target user, so that after the user terminal provides the first check data to a server of the intelligent cabinet, the server of the intelligent cabinet can decrypt the first check data by adopting a preset decryption mode which is appointed by the network platform server and corresponds to the preset encryption mode, and determine whether to open the target cabinet lattice based on a decryption result.
In this embodiment, the server of the intelligent cabinet generates second cabinet opening data for approving the opening authority of the target cabinet grid in a data acquisition manner agreed with the network platform server in advance, and the first cabinet opening data for representing the opening authority of the target user on the target cabinet grid of the intelligent cabinet can be obtained in the following manner: and acquiring first cabinet opening data matched with the second cabinet opening data by adopting the data acquisition mode. The first opening data matched with the second opening data may be the same first opening data as the second opening data. In this embodiment, the first opening data includes identification information of the target cabinet (for example, a number of the target cabinet), and may further include valid opening time limit information corresponding to the target cabinet. In this embodiment, before obtaining the first verification data, the network platform server needs to respond that the network state of the server of the intelligent cabinet is an offline state, obtain user data corresponding to the intelligent cabinet, and determine a user corresponding to the user data as the target user.
The first collation data may be an offline identification code (e.g., a two-dimensional code, a barcode, etc.) or may be an encrypted ciphertext (e.g., a binary string). When the first check data is the offline identification code, the encryption and decryption processes are the offline identification code generation process and the offline identification code analysis process, in this case, the network platform server encrypts the first open data in a predetermined encryption manner, which may specifically be: the network platform server generates an offline identification code according to the first cabinet opening data by adopting a preset identification code generation mechanism; correspondingly, the above obtaining the first verification data provided by the user terminal specifically means: after a user terminal receives an offline identification code from a network platform server and displays the offline identification code, the server of the intelligent cabinet obtains the offline identification code through code scanning gun identification; correspondingly, the server of the intelligent cabinet decrypts the first check data by adopting a predetermined decryption mode which is agreed with the network platform server and corresponds to the predetermined encryption mode, and specifically, the server of the intelligent cabinet analyzes the offline identification code based on a predetermined identification code analysis mechanism which is agreed with the network platform server in advance and corresponds to the predetermined identification code generation mechanism.
It should be noted that, when the first check data is an encrypted ciphertext, after the network platform server encrypts the first open data and obtains the first check data, the network platform server may further generate an offline identification code according to the first check data, in this case, the server of the intelligent cabinet obtains the first check data provided by the user terminal, which may specifically be: after the user terminal receives the offline identification code from the network platform server and displays the offline identification code, the server of the intelligent cabinet analyzes the offline identification code displayed by the user terminal to obtain information of the offline identification code, wherein the information of the offline identification code can be digital characters with preset digits (cryptograph obtained after encryption processing is carried out on first cabinet opening data), and the digital characters are first check data used when the offline identification code is generated.
The providing of the first verification data to the user terminal of the target user may specifically be: and sending the offline identification code to the user terminal of the target user. For example, in response to an offline open cabinet request from the user terminal, an offline identification code is sent to the user terminal (for example, the user terminal identifies an object-fetching identification code displayed by the intelligent cabinet, sends an offline open cabinet request to the network platform server based on a display interface of an offline open cabinet applet obtained by identification, and returns the offline identification code based on the offline open cabinet request), or pushes the offline identification code to the user terminal (for example, after determining that a server of the intelligent cabinet is in an offline state, the offline identification code is pushed to the user terminal).
In this embodiment, the network platform server and the server of the intelligent cabinet agree in advance an encryption method and a decryption method for each cabinet lattice of the intelligent cabinet, where the encrypting the first open data by using the predetermined encryption method may be: and encrypting the first cabinet opening data by adopting a preset encryption mode aiming at the target cabinet lattice which is agreed with a server of the intelligent cabinet in advance.
By using the method, the influence on the normal use of the intelligent cabinet due to poor network signals or network disconnection can be avoided, for example, the food taking link of a user does not need to depend on the quality of a network environment, the food taking permission verification can be realized and the food taking can be completed only by providing the first check data issued by the network platform server in advance, and the problems of overlong cabinet lattice occupation time, longer user waiting time and deterioration of food are avoided.
A third embodiment of the present application provides an intelligent cabinet application system, as shown in fig. 2, the system includes: a network platform server 203, a user terminal 202 and a server 201 of the intelligent cabinet; the network platform server 203 is used for acquiring a network state corresponding to the server of the intelligent cabinet; in response to the fact that the network state is an off-line state, encrypting first cabinet opening data in a preset encryption mode to obtain first check data, wherein the first cabinet opening data are used for representing the opening authority of a target user on a target cabinet lattice of the intelligent cabinet; providing the first collation data to a user terminal of the target user; the user terminal 202 is used for providing the first verification data to a server of the intelligent cabinet; the server 201 of the intelligent cabinet is configured to obtain the first check data provided by the user terminal, decrypt the first check data by using a predetermined decryption manner, which is agreed with the network platform server and corresponds to the predetermined encryption manner, and determine whether to open the target cabinet lattice based on a decryption result.
In this embodiment, the user terminal 202 is further configured to send a cabinet opening request to the network platform server, where the cabinet opening request carries an identifier of the intelligent cabinet; the network platform server obtains a network state corresponding to the server of the intelligent cabinet, and specifically may refer to: and obtaining the network state corresponding to the server of the intelligent cabinet based on the identification of the intelligent cabinet. The locker opening request may also carry an identifier of the target user, and the network platform server 203 is further configured to: and determining a target cabinet lattice corresponding to the target user according to the identification of the target user. Or, after determining that the network state of the server of the intelligent cabinet is the offline state, the network platform server 203 acquires the user data corresponding to the intelligent cabinet, and determines the user corresponding to the user data as the target user.
The above network platform server obtains the network state corresponding to the server of the intelligent cabinet, which may specifically refer to: sending network heartbeats to a server of the intelligent cabinet according to a preset time interval; if feedback information of the server of the intelligent cabinet aiming at the network heartbeat is received, determining that the network state corresponding to the server of the intelligent cabinet is an online state; if the feedback information of the server of the intelligent cabinet aiming at the network heartbeat is not received, determining that the network state corresponding to the server of the intelligent cabinet is an offline state; or receiving the network heartbeat sent by the server of the intelligent cabinet, and if the network heartbeat sent by the server of the intelligent cabinet is not received within a preset time interval, determining that the network state corresponding to the server of the intelligent cabinet is an offline state. In this embodiment, the predetermined encryption method and the predetermined decryption method are implemented based on a symmetric key cryptosystem.
In this embodiment, the first verification data may be an offline identification code (e.g., a two-dimensional code, a barcode, etc.), or may be an encrypted ciphertext (e.g., a binary string). When the first check data is the offline identification code, the network platform server encrypts the first opening data by using a predetermined encryption mode to obtain the first check data, which may be: the network platform server generates an offline identification code according to the first cabinet opening data by adopting a preset identification code generation mechanism; the network platform server provides the first verification data to the user terminal of the target user, and may refer to: sending the offline identification code to a user terminal (for example, the user terminal identifies the fetching identification code displayed by the intelligent cabinet and sends an offline cabinet-opening request to a network platform server based on the offline cabinet-opening applet obtained by identification, and the network platform server responds to the offline cabinet-opening request and sends the offline identification code to the user terminal; the server of the intelligent cabinet acquires the first check data, and decrypts the first check data by adopting a predetermined decryption mode which is agreed with the network platform server and corresponds to the predetermined encryption mode, which may be: and identifying to obtain the offline identification code displayed by the user terminal, and analyzing the offline identification code based on a preset identification code analysis mechanism which is predetermined by the network platform server and corresponds to the preset identification code generation mechanism. When the first check data is an encrypted ciphertext, after the network platform server encrypts the first open data and obtains the first check data, the network platform server may further generate an offline identification code according to the first check data, and in this case, the server of the intelligent cabinet obtains the first check data provided by the user terminal, which may specifically be: after the user terminal receives the offline identification code from the network platform server and displays the offline identification code, the server of the intelligent cabinet analyzes the offline identification code displayed by the user terminal to obtain information of the offline identification code, wherein the information of the offline identification code can be digital characters with preset digits (cryptograph obtained after encryption processing is carried out on first cabinet opening data), and the digital characters are first check data used when the offline identification code is generated.
The above-mentioned server of the intelligent cabinet determines whether to open the target cabinet lattice based on the decryption result, which may be: and responding to the decryption to obtain the first cabinet opening data, determining a target cabinet lattice corresponding to the first cabinet opening data, and determining to open the target cabinet lattice. The server of the intelligent cabinet determines whether to open the cabinet lattice and which cabinet lattice to open, and the data obtained by decryption are determined, the server of the intelligent cabinet decrypts first check data provided by the user terminal to obtain first cabinet opening data, the first cabinet opening data is used for representing the opening authority of a target user using the user terminal to the target cabinet lattice, the target cabinet lattice needing to be opened at present can be obtained according to the first cabinet opening data, and the target cabinet lattice is determined to be opened.
In this embodiment, in order to improve the security and pertinence of the cabinet opening process, the network platform server and the server of the intelligent cabinet may agree in advance on the encryption method and the decryption method for each cabinet lattice of the intelligent cabinet, that is, each cabinet lattice of the intelligent cabinet corresponds to a specific encryption method and a specific decryption method, and the server of the intelligent cabinet decrypts the first check data by using the predetermined decryption method agreed with the network platform server and corresponding to the predetermined encryption method, specifically, the method may include: performing polling decryption operation on the first check data by adopting a plurality of decryption modes which are appointed with a network platform server and aim at a plurality of cabinet lattices of the intelligent cabinet; in this case, the determining whether to open the target cabinet based on the decryption result for different security level requirements of the open cabinet includes one of the following manners:
responding to the first check data which are decrypted by a target decryption mode in a plurality of decryption modes to obtain first cabinet opening data, determining a cabinet lattice corresponding to the target decryption mode as a target cabinet lattice, and determining to open the target cabinet lattice; that is, determining whether to open the cabinet lattice and which cabinet lattice to open is determined based on a target decryption mode capable of decrypting the first check data in the plurality of decryption modes, where the cabinet lattice corresponding to the target decryption mode is a target cabinet lattice to be opened; in response to the first check data being decrypted by a target decryption mode of the multiple decryption modes to obtain first cabinet opening data, and the target cabinet lattice corresponding to the first cabinet opening data is consistent with the cabinet lattice corresponding to the target decryption mode, determining to open the target cabinet lattice; namely, whether the cabinet lattices are opened or not and which cabinet lattice is opened are determined based on the first cabinet opening data obtained by decryption, and the target cabinet lattice corresponding to the first cabinet opening data is consistent with the cabinet lattice corresponding to the target decryption mode which can decrypt the first check data in the plurality of decryption modes; decrypting the first check data by a target decryption mode in the plurality of decryption modes to obtain first cabinet opening data, determining a target cabinet lattice corresponding to the first cabinet opening data, and determining to open the target cabinet lattice; that is, if the first locker data can be obtained by decrypting the first verification data by using one of the decryption manners, the target locker grid to be opened at present can be known according to the first locker data, and the target locker grid is determined to be opened.
In this embodiment, the target cabinet lattice may correspond to an effective opening time limit (for example, a meal taking time period is preset for a user, and the corresponding cabinet lattice may be opened only when a meal is taken in the time period), the server of the intelligent cabinet may set the effective opening time limit corresponding to the target cabinet lattice based on a predetermined agreement with the network platform server, and the determining to open the target cabinet lattice may further include: obtaining the time for obtaining the first check data provided by the user terminal or the time for obtaining the first opening data through decryption; and if the time for acquiring the first check data provided by the user terminal or the time for decrypting to obtain the first cabinet opening data does not exceed the effective opening time limit corresponding to the target cabinet lattice, determining to open the target cabinet lattice. Correspondingly, if the time for acquiring the first check data provided by the user terminal or the time for decrypting the first opening data exceeds the effective opening time limit corresponding to the target cabinet lattice, determining that the target cabinet lattice cannot be opened, and outputting prompt information of the cabinet lattice which cannot be opened, for example, displaying the prompt information of 'the cabinet cannot be opened due to the fact that the cabinet opening time limit is exceeded' on a display screen of the intelligent cabinet. In this case, the server of the intelligent cabinet may further output prompt information for enabling the user terminal to obtain the updated first check data, for example, prompt information of "reacquire the offline identification code" is displayed on a display screen of the intelligent cabinet, the user terminal may re-identify the fetching identification code displayed by the intelligent cabinet based on the prompt information, interact with the network platform server based on the offline opening applet obtained by the identification (for example, send a request for opening the cabinet through a display interface of the offline opening applet), and receive the updated offline identification code sent from the network platform server.
After the server of the smart cabinet decrypts the first check data, if the first check data provided by the user terminal is incorrect (e.g., the offline identification code is not generated based on the predetermined encryption method or the predetermined identification code generation mechanism) and the first opening data cannot be decrypted, the server outputs a prompt message indicating that the cabinet cannot be opened. For example, a prompt message of 'wrong decryption and failure to open cabinet grids' is displayed on a display screen of the intelligent cabinet.
It should be noted that, in order to further improve the security of the cabinet opening process, the above-mentioned determining whether to open the target cabinet based on the decryption result may also be implemented by: after the server of the intelligent cabinet decrypts the first cabinet opening data, second cabinet opening data which are locally generated and used for approving the opening authority of the target cabinet lattice are obtained, the first cabinet opening data obtained through decryption are compared with the second cabinet opening data, and if the first cabinet opening data are matched with the second cabinet opening data, the target cabinet lattice is determined to be opened. In this case, the server of the intelligent cabinet may generate, for each cabinet, second cabinet opening data for approving the opening authority of the cabinet in a manner agreed in advance with the network platform server, where the approving manner may be to check whether the first cabinet opening data obtained by the decryption matches the second cabinet opening data. For example, the first opening data is identification information of the target cabinet (for example, a number of the target cabinet) and valid opening time limit information corresponding to the target cabinet; correspondingly, the second cabinet opening data can be first approval information for approving the identification information of the target cabinet and second approval information for approving the effective opening time limit information. The aforesaid is compared first open cabinet data and second open cabinet data, if first open cabinet data and second open cabinet data phase-match, then opens the target cabinet check, specifically can be: comparing the identification information of the target cabinet lattice with the first approval information, and comparing the effective opening time limit information corresponding to the target cabinet lattice with the second approval information; and if the identification information of the target cabinet lattice is matched with the first approval information and the effective opening time limit information corresponding to the target cabinet lattice is matched with the second approval information, determining to open the target cabinet lattice. It should be noted that, if the identification information of the target cabinet lattice is not matched with the first approval information, or the valid opening time limit information corresponding to the target cabinet lattice is not matched with the second approval information, or the identification information of the target cabinet lattice is not matched with the first approval information, and the valid opening time limit information corresponding to the target cabinet lattice is not matched with the second approval information, the target cabinet lattice is not opened, and the prompt information that the target cabinet lattice cannot be opened is output. The prompt message that the target cabinet lattice cannot be opened specifically may be: and prompting information that the identification information of the target cabinet lattice is not matched with the first approval information, or prompting information that the effective opening time limit information corresponding to the target cabinet lattice is not matched with the second approval information, or prompting information that the identification information of the target cabinet lattice is not matched with the first approval information and the effective opening time limit information corresponding to the target cabinet lattice is not matched with the second approval information. If the identification information of the target cabinet lattice is matched with the first approval information, and the effective opening time limit information corresponding to the target cabinet lattice is not matched with the second approval information, namely the first cabinet opening data exceeds the effective opening time limit of the target cabinet lattice, prompt information for enabling the user terminal to obtain the updated first verification data can be output. In this embodiment, the network platform server may generate, in accordance with the same predetermined data generation manner as the server of the intelligent cabinet, first opening data and second opening data for the target cabinet lattice, for example, the first opening data generated by the network platform server is the number and the effective opening time limit information of the target cabinet lattice, and the second opening data generated by the server of the intelligent cabinet is also the number and the effective opening time limit information of the target cabinet lattice; the above first opening data and the second opening data are matched, which may be: the first cabinet opening data are the same as the second cabinet opening data.
In this embodiment, after determining that the network status is an offline status, the server of the smart cabinet may encrypt, using the target encryption key, second opening data that is locally generated and used for approving the opening authority of the target cabinet, to obtain second verification data corresponding to the target cabinet; the first locker data obtained by decryption carries a target decryption key corresponding to the target encryption key, and in this case, the server of the smart locker obtains second locker data locally generated for approving the opening authority of the target locker grid, which may specifically be: determining the information of the target cabinet lattice according to the first cabinet opening data obtained by decryption; and determining second check data corresponding to the target cabinet lattice according to the information of the target cabinet lattice, and decrypting the second check data by using the target decryption key to obtain second cabinet opening data. By the mode, the pertinence and the safety of the cabinet opening process can be further improved. It should be noted that, in any link before the target cabinet lattice is determined to be opened, if the server of the intelligent cabinet detects that the current network state is changed from the offline state to the online state, the server may output a prompt message indicating that the cabinet lattice can be opened in the online cabinet opening manner currently, so that the user can open the cabinet lattice in the online cabinet opening manner.
In the intelligent cabinet application system provided by the embodiment of the application, a server of an intelligent cabinet acquires first check data provided by a user terminal, the first check data is data obtained after a network platform server encrypts first cabinet opening data in a preset encryption mode, the first cabinet opening data is used for representing the opening authority of a target user on a target cabinet lattice of the intelligent cabinet, and the user terminal is computing equipment of the target user; and the server of the intelligent cabinet decrypts the first check data by adopting a preset decryption mode which is agreed with the network platform server and corresponds to the preset encryption mode, and determines whether to open the target cabinet lattice based on a decryption result. In the process, the verification of the cabinet grid opening authority can be realized through a pre-agreed encryption mode and a decryption mode between the network platform server and the server of the intelligent cabinet, in a cabinet opening link of the intelligent cabinet, whether a target user has the opening authority aiming at the target cabinet grid or not is verified between the server of the intelligent cabinet and the network platform server in a network interaction mode or not, namely, the network platform server does not need to send a cabinet opening notification to the server of the intelligent cabinet in a network communication mode, the server of the intelligent cabinet does not need to perform network interaction with the network platform server to obtain cabinet grid information needing cabinet opening, only first check data provided by a user terminal are needed to be decrypted, and whether the target cabinet grid is opened or not can be determined based on a decryption result. By using the method, the influence on the normal use of the intelligent cabinet due to poor network signals or network disconnection can be avoided, for example, the food taking link of a user does not need to depend on the quality of a network environment, the food taking permission verification can be realized and the food taking can be completed only by providing the first check data issued by the network platform server in advance, and the problems of overlong cabinet lattice occupation time, longer user waiting time and deterioration of food are avoided.
The fourth embodiment of the present application further provides an intelligent cabinet opening device, since the device embodiment is substantially similar to the method embodiment, so that the description is relatively simple, and the details of the related technical features may be referred to the corresponding description of the method embodiment provided above, and the following description of the device embodiment is only illustrative. Referring to fig. 4, to understand the embodiment, fig. 4 is a block diagram of a unit of the intelligent cabinet opening apparatus provided in the embodiment, and as shown in fig. 4, the intelligent cabinet opening apparatus provided in the embodiment includes: the first checking data obtaining unit 401 is configured to obtain first checking data provided by a user terminal, where the first checking data is obtained by encrypting, by using a predetermined encryption manner, first opening data by a network platform server, the first opening data is used to represent an opening authority of a target user on a target cabinet lattice of an intelligent cabinet, and the user terminal is a computing device of the target user; a target cabinet opening determination unit 402, configured to perform decryption processing on the first check data by using a predetermined decryption manner corresponding to the predetermined encryption manner, which is agreed with the network platform server, and determine whether to open the target cabinet based on a decryption result. Further comprising: a network state obtaining unit, configured to obtain a current network state; acquiring first verification data provided by a user terminal, wherein the first verification data comprises: when the current network state is an offline state, first check data provided by the user terminal is acquired. The network platform server carries out encryption processing on the first cabinet opening data, and the encryption processing comprises the following steps: and when the network platform server determines that the network state of the server of the intelligent cabinet is an off-line state, the network platform server encrypts the first cabinet opening data.
The predetermined encryption mode and the predetermined decryption mode are realized based on a symmetric key cryptosystem. The first check data is an offline identification code, and the network platform server encrypts the first open cabinet data in a preset encryption mode, and the method comprises the following steps: the network platform server generates an offline identification code according to the first cabinet opening data by adopting a preset identification code generation mechanism; acquiring first verification data provided by a user terminal, wherein the first verification data comprises: after the user terminal receives the offline identification code from the network platform server and displays the offline identification code, identifying to obtain the offline identification code; the decryption processing of the first verification data is performed by adopting a predetermined decryption mode which is appointed by the network platform server and corresponds to the predetermined encryption mode, and the decryption processing comprises the following steps: and analyzing the offline identification code based on a preset identification code analysis mechanism which is agreed in advance by the network platform server and corresponds to the preset identification code generation mechanism.
After the network platform server encrypts the first cabinet opening data and obtains first check data, an offline identification code is generated according to the first check data; acquiring first verification data provided by a user terminal, wherein the first verification data comprises: after the user terminal receives the offline identification code from the network platform server and displays the offline identification code, the offline identification code displayed by the user terminal is analyzed to obtain information of the offline identification code, and the information of the offline identification code is first check data. The user terminal receives an offline identification code from the network platform server, and the offline identification code comprises one of the following: the user terminal identifies the fetching identification code displayed by the intelligent cabinet, interacts with the network platform server based on the offline cabinet opening small program obtained through identification, and receives the offline identification code from the network platform server; and the user terminal receives the offline identification code pushed by the network platform server.
Acquiring the current network state comprises: sending network heartbeat to a network platform server according to a preset time interval; if feedback information of the network platform server for network heartbeat is received, determining that the current network state is an online state; if the network heartbeat is failed to be sent or feedback information of the network platform server for the network heartbeat is not received, determining that the current network state is an offline state; or receiving the network heartbeat sent by the network platform server, and if the network heartbeat sent by the network platform server is not received within a preset time interval, determining that the current network state is an offline state. The network platform server adopts a preset encryption mode to encrypt the first open cabinet data, and the method comprises the following steps: and when the network platform server determines that the server of the intelligent cabinet is in an off-line state, encrypting the first cabinet opening data in a preset encryption mode. Determining whether to open the target cabinet based on the decryption result, including: and responding to the decryption to obtain the first cabinet opening data, determining a target cabinet lattice corresponding to the first cabinet opening data, and determining to open the target cabinet lattice.
The network platform server and the server of the intelligent cabinet pre-agree an encryption mode and a decryption mode for each cabinet lattice of the intelligent cabinet, and the network platform server decrypts the first check data by adopting the pre-agreed decryption mode corresponding to the pre-agreed encryption mode, wherein the decryption mode comprises the following steps: performing polling decryption operation on the first check data by adopting a plurality of decryption modes which are appointed with a network platform server and aim at a plurality of cabinet lattices of the intelligent cabinet; determining whether to open the target cabinet based on the decryption result, wherein the determining includes one of the following: responding to the first check data which are decrypted by a target decryption mode in a plurality of decryption modes to obtain first cabinet opening data, determining a cabinet lattice corresponding to the target decryption mode as a target cabinet lattice, and determining to open the target cabinet lattice; in response to the first check data being decrypted by a target decryption mode of the multiple decryption modes to obtain first open cabinet data, and the target cabinet lattice corresponding to the first open cabinet data is consistent with the cabinet lattice corresponding to the target decryption mode, determining to open the target cabinet lattice; and decrypting the first verification data by a target decryption mode in the plurality of decryption modes in response to the first verification data to obtain first cabinet opening data, determining a target cabinet lattice corresponding to the first cabinet opening data, and determining to open the target cabinet lattice.
The step of determining the target cabinet lattice to be opened corresponding to the effective opening time limit comprises the following steps: acquiring time for acquiring first check data provided by a user terminal or time for acquiring first cabinet opening data by decryption; and determining to open the target cabinet lattice in response to the fact that the time for acquiring the first check data provided by the user terminal or the time for decrypting the first cabinet opening data does not exceed the effective opening time limit corresponding to the target cabinet lattice. Further comprising: and the target cabinet lattice incapability determining unit is used for responding to the condition that the time for acquiring the first check data provided by the user terminal or the time for decrypting the first opening data exceeds the effective opening time limit corresponding to the target cabinet lattice, determining that the target cabinet lattice can not be opened, and outputting prompt information of the cabinet lattice incapability of being opened.
Further comprising: an update prompt information output unit configured to output prompt information for causing the user terminal to acquire the updated first collation data. Determining whether to open the target cabinet based on the decryption result, including: and responding to the first cabinet opening data obtained by the decryption failure, determining that the target cabinet lattice cannot be opened, and outputting prompt information of the cabinet lattice which cannot be opened. Determining whether to open the target cabinet based on the decryption result, including: acquiring first cabinet opening data obtained through decryption; acquiring second cabinet opening data which are locally generated and used for approving the opening authority of the target cabinet grid; and comparing the first cabinet opening data with the second cabinet opening data, and determining to open the target cabinet grid if the first cabinet opening data is matched with the second cabinet opening data.
Further comprising: a second verification data obtaining unit, configured to encrypt, using the target encryption key in advance, second locker data that is locally generated and is used for approving the opening authority of the target locker room, and obtain second verification data corresponding to the target locker room; the first cabinet opening data carries a target decryption key corresponding to the target encryption key, and second cabinet opening data which are locally generated and used for approving the opening authority of the target cabinet grid are obtained, wherein the second cabinet opening data comprises the following steps: determining information of a target cabinet lattice according to the first cabinet opening data; and determining second check data corresponding to the target cabinet lattice according to the information of the target cabinet lattice, and decrypting the second check data by using the target decryption key to obtain second cabinet opening data. The network platform server and the server of the intelligent cabinet acquire first cabinet opening data and second cabinet opening data aiming at a target cabinet lattice according to a same predetermined data acquisition mode; first data and the second data phase-match of opening cabinet include: the first open cabinet data is the same as the second open cabinet data. The first opening data includes: identification information of the target cabinet lattice and effective opening time limit information corresponding to the target cabinet lattice; correspondingly, the second cabinet opening data comprises: first approval information for approving the identification information of the target cabinet and second approval information for approving the valid opening time limit information.
Comparing the first cabinet opening data with the second cabinet opening data, and if the first cabinet opening data is matched with the second cabinet opening data, determining to open a target cabinet lattice, wherein the method comprises the following steps: comparing the identification information of the target cabinet lattice with the first approval information, and comparing the effective opening time limit information corresponding to the target cabinet lattice with the second approval information; and if the identification information of the target cabinet lattice is matched with the first approval information and the effective opening time limit information corresponding to the target cabinet lattice is matched with the second approval information, determining to open the target cabinet lattice. Further comprising: and the counter-grid-unable-opening prompt information output unit is used for determining that the target counter grid cannot be opened and outputting prompt information for preventing the target counter grid from being opened if the identification information of the target counter grid is not matched with the first approval information and/or the effective opening time limit information corresponding to the target counter grid is not matched with the second approval information. The prompt message that the target cabinet lattice cannot be opened comprises: and prompting information that the identification information of the target cabinet lattice is not matched with the first approval information, and/or prompting information that the effective opening time limit information corresponding to the target cabinet lattice is not matched with the second approval information. Further comprising: and the updated prompt information output unit is used for outputting prompt information for enabling the user terminal to acquire the updated first verification data if the identification information of the target cabinet lattice is matched with the first approval information and the effective opening time limit information corresponding to the target cabinet lattice is not matched with the second approval information. Further comprising: and the offline cabinet opening prompt information output unit is used for outputting prompt information for opening the cabinet lattice in an offline cabinet opening mode before first check data provided by the user terminal is acquired when the current network state is an offline state, so that the user terminal provides the first check data based on the prompt information. The system also comprises an online cabinet opening prompt information output unit which is used for outputting prompt information that the cabinet grids can be opened currently in an online cabinet opening mode if the current network state is changed from an offline state to an online state.
The intelligent cabinet opening device provided by the embodiment of the application can verify the cabinet grid opening authority through a pre-agreed encryption mode and a decryption mode between the network platform server and the server of the intelligent cabinet, in a cabinet opening link of the intelligent cabinet, whether a target user has the opening authority aiming at the target cabinet grid or not is verified between the server of the intelligent cabinet and the network platform server in a network interaction mode or not, namely, the network platform server does not need to send a cabinet opening notification to the server of the intelligent cabinet in a network communication mode, the server of the intelligent cabinet does not need to perform network interaction with the network platform server to acquire the cabinet grid information needing opening, decryption processing is carried out on first check data provided by a user terminal, and whether the target cabinet grid is opened or not can be determined based on a decryption result. By using the device, the normal use of the intelligent cabinet can be prevented from being influenced by poor network signals or network disconnection, for example, the food taking link of a user does not need to depend on the quality of a network environment, the food taking permission verification can be realized and the food taking can be completed only by providing first check data issued by the network platform server in advance, and the problems of overlong cabinet lattice occupation time, longer user waiting time and deterioration of food are avoided.
In the above embodiments, an intelligent cabinet opening method and an intelligent cabinet opening apparatus are provided, and in addition, a fifth embodiment of the present application further provides an electronic device, which is basically similar to the method embodiment and therefore is relatively simple to describe, and reference may be made to the corresponding description of the method embodiment for details of related technical features, and the following description of the embodiment of the electronic device is only illustrative. The embodiment of the electronic equipment is as follows: please refer to fig. 5 for understanding the present embodiment, fig. 5 is a schematic view of an electronic device provided in the present embodiment. As shown in fig. 5, the electronic device provided in this embodiment includes: a processor 501 and a memory 502; the memory 502 is used for storing computer instructions for data processing, which when read and executed by the processor 501, perform the following operations: acquiring first check data provided by a user terminal, wherein the first check data is obtained after a network platform server encrypts first open cabinet data in a preset encryption mode, the first open cabinet data is used for representing the opening authority of a target user on a target cabinet grid of an intelligent cabinet, and the user terminal is computing equipment of the target user; and decrypting the first check data by adopting a preset decryption mode which is appointed by the network platform server and corresponds to the preset encryption mode, and determining whether to open the target cabinet lattice or not based on a decryption result. Further comprising: acquiring a current network state; acquiring first verification data provided by a user terminal, wherein the first verification data comprises: and when the current network state is an offline state, acquiring first check data provided by the user terminal.
Network platform server carries out encryption processing to first uncork data, includes: and when the network platform server determines that the network state of the server of the intelligent cabinet is an off-line state, encrypting the first cabinet opening data. The predetermined encryption mode and the predetermined decryption mode are realized based on a symmetric key cryptosystem. The first check data is an offline identification code, and the network platform server encrypts the first open cabinet data in a preset encryption mode, and the method comprises the following steps: the network platform server generates an offline identification code according to the first cabinet opening data by adopting a preset identification code generation mechanism; acquiring first verification data provided by a user terminal, wherein the first verification data comprises: after the user terminal receives the offline identification code from the network platform server and displays the offline identification code, identifying to obtain the offline identification code; the decryption processing of the first verification data is performed by adopting a predetermined decryption mode which is appointed by the network platform server and corresponds to the predetermined encryption mode, and the decryption processing comprises the following steps: and analyzing the offline identification code based on a preset identification code analyzing mechanism which is predetermined by the network platform server and corresponds to the preset identification code generating mechanism.
After the network platform server encrypts the first cabinet opening data and obtains first check data, an offline identification code is generated according to the first check data; acquiring first verification data provided by a user terminal, wherein the first verification data comprises: after the user terminal receives the offline identification code from the network platform server and displays the offline identification code, the offline identification code displayed by the user terminal is analyzed to obtain information of the offline identification code, and the information of the offline identification code is first check data.
The user terminal receives an offline identification code from the network platform server, and the offline identification code comprises one of the following: the user terminal identifies the fetching identification code displayed by the intelligent cabinet, interacts with the network platform server based on the offline cabinet opening small program obtained by identification, and receives the offline identification code from the network platform server; and the user terminal receives the offline identification code pushed by the network platform server. Acquiring the current network state, including: sending network heartbeat to a network platform server according to a preset time interval; if feedback information of the network platform server for network heartbeat is received, determining that the current network state is an online state; if the network heartbeat transmission fails or feedback information of the network platform server aiming at the network heartbeat is not received, determining that the current network state is an offline state; or receiving the network heartbeat sent by the network platform server, and if the network heartbeat sent by the network platform server is not received within a preset time interval, determining that the current network state is an offline state.
The network platform server adopts a preset encryption mode to encrypt the first open cabinet data, and the method comprises the following steps: and when the network platform server determines that the server of the intelligent cabinet is in an off-line state, encrypting the first cabinet opening data in a preset encryption mode. Determining whether to open the target cabinet based on the decryption result, including: and responding to the decryption to obtain the first cabinet opening data, determining a target cabinet lattice corresponding to the first cabinet opening data, and determining to open the target cabinet lattice. The network platform server and the server of the intelligent cabinet pre-agree an encryption mode and a decryption mode for each cabinet lattice of the intelligent cabinet, and the network platform server decrypts the first check data by adopting the pre-agreed decryption mode corresponding to the pre-agreed encryption mode, wherein the decryption mode comprises the following steps: performing polling decryption operation on the first check data by adopting a plurality of decryption modes which are appointed with a network platform server and aim at a plurality of cabinet lattices of the intelligent cabinet; determining whether to open the target cabinet based on the decryption result, wherein the determining includes one of the following: responding to the first check data, decrypting by a target decryption mode in a plurality of decryption modes to obtain first cabinet opening data, determining a cabinet lattice corresponding to the target decryption mode as a target cabinet lattice, and determining to open the target cabinet lattice; in response to the first check data being decrypted by a target decryption mode of the multiple decryption modes to obtain first open cabinet data, and the target cabinet lattice corresponding to the first open cabinet data is consistent with the cabinet lattice corresponding to the target decryption mode, determining to open the target cabinet lattice; and decrypting the first verification data by a target decryption mode in the plurality of decryption modes in response to the first verification data to obtain first cabinet opening data, determining a target cabinet lattice corresponding to the first cabinet opening data, and determining to open the target cabinet lattice.
Determining the opening target cabinet grids corresponding to the effective opening time limit, wherein the step comprises the following steps: acquiring time for acquiring first check data provided by a user terminal or time for acquiring first cabinet opening data by decryption; and determining to open the target cabinet lattice in response to the fact that the time for acquiring the first check data provided by the user terminal or the time for decrypting to obtain the first cabinet opening data does not exceed the effective opening time limit corresponding to the target cabinet lattice. Further comprising: and determining that the target cabinet lattice cannot be opened and outputting prompt information of the cabinet lattice which cannot be opened in response to the fact that the time for acquiring the first check data provided by the user terminal or the time for decrypting the first cabinet opening data exceeds the effective opening time limit corresponding to the target cabinet lattice. Further comprising: and outputting prompt information for enabling the user terminal to acquire the updated first verification data. Determining whether to open the target cabinet lattice based on the decryption result, including: and responding to the first cabinet opening data which cannot be obtained through decryption, determining that the target cabinet lattice cannot be opened, and outputting prompt information of the cabinet lattice which cannot be opened. Determining whether to open the target cabinet lattice based on the decryption result, wherein the first cabinet opening data obtained through decryption are obtained; acquiring second cabinet opening data which are locally generated and used for approving the opening authority of the target cabinet grid; and comparing the first cabinet opening data with the second cabinet opening data, and determining to open the target cabinet grid if the first cabinet opening data is matched with the second cabinet opening data.
Further comprising: the method comprises the steps that a target encryption key is used for carrying out encryption processing on locally generated second cabinet opening data used for approving the opening authority of a target cabinet lattice in advance, and second check data corresponding to the target cabinet lattice are obtained; the first cabinet opening data carries a target decryption key corresponding to the target encryption key, and second cabinet opening data which are locally generated and used for approving the opening authority of the target cabinet lattice are obtained, wherein the second cabinet opening data comprise: determining information of a target cabinet grid according to the first cabinet opening data; and determining second check data corresponding to the target cabinet lattice according to the information of the target cabinet lattice, and decrypting the second check data by using the target decryption key to obtain second cabinet opening data. The network platform server and the server of the intelligent cabinet acquire first cabinet opening data and second cabinet opening data aiming at a target cabinet lattice according to a same pre-agreed data acquisition mode; first data and the second data phase-match of opening cabinet include: the first open cabinet data is the same as the second open cabinet data.
The first opening data includes: identification information of the target cabinet lattice and effective opening time limit information corresponding to the target cabinet lattice; correspondingly, the second cabinet opening data comprises: first approval information approving the identification information of the target cabinet and second approval information approving the valid opening time limit information.
Comparing the first cabinet opening data with the second cabinet opening data, and if the first cabinet opening data is matched with the second cabinet opening data, determining to open a target cabinet lattice, wherein the method comprises the following steps: comparing the identification information of the target cabinet lattice with the first approval information, and comparing the effective opening time limit information corresponding to the target cabinet lattice with the second approval information; and if the identification information of the target cabinet lattice is matched with the first approval information and the effective opening time limit information corresponding to the target cabinet lattice is matched with the second approval information, determining to open the target cabinet lattice. Further comprising: and if the identification information of the target cabinet lattice is not matched with the first approval information and/or the effective opening time limit information corresponding to the target cabinet lattice is not matched with the second approval information, determining that the target cabinet lattice cannot be opened, and outputting prompt information that the target cabinet lattice cannot be opened. The prompt message that the target cabinet lattice cannot be opened comprises: and prompting information that the identification information of the target cabinet lattice is not matched with the first approval information, and/or prompting information that the effective opening time limit information corresponding to the target cabinet lattice is not matched with the second approval information. Further comprising: and if the identification information of the target cabinet lattice is matched with the first approval information and the effective opening time limit information corresponding to the target cabinet lattice is not matched with the second approval information, outputting prompt information for enabling the user terminal to obtain the updated first verification data. When the current network state is an offline state, before acquiring the first check data provided by the user terminal, the method further includes: and outputting prompt information for opening the cabinet lattice in an off-line cabinet opening mode at present so that the user terminal provides first check data based on the prompt information. Further comprising: and if the current network state is changed from the off-line state to the on-line state, outputting prompt information that the cabinet grids can be opened in an on-line cabinet opening mode currently.
By using the electronic device provided by the embodiment, the authentication of the cabinet grid opening authority can be realized between the network platform server and the server of the intelligent cabinet in a pre-agreed encryption mode and decryption mode, in the cabinet opening link of the intelligent cabinet, whether a target user has the opening authority for the target cabinet grid or not is verified between the server of the intelligent cabinet and the network platform server in a network interaction mode or not, namely, the network platform server does not need to send a cabinet opening notification to the server of the intelligent cabinet in a network communication mode, the server of the intelligent cabinet does not need to perform network interaction with the network platform server to acquire the cabinet grid information needing cabinet opening, decryption processing is performed only on first check data provided by a user terminal, and whether the target cabinet grid is opened or not can be determined based on a decryption result. The intelligent cabinet can avoid the influence on the normal use of the intelligent cabinet due to poor network signals or network disconnection, for example, the meal taking link of a user does not need to depend on the quality of a network environment, the meal taking permission verification can be realized and the meal taking can be completed only by providing first check data issued by a network platform server in advance, and the problems of overlong cabinet lattice occupation time, long user waiting time and deterioration of meal products are avoided.
In the foregoing embodiment, an intelligent cabinet opening method, an intelligent cabinet opening device, and an electronic apparatus are provided, and in addition, a sixth embodiment of the present application further provides a computer-readable storage medium for implementing the intelligent cabinet opening method. The embodiments of the computer-readable storage medium provided in the present application are described relatively simply, and for relevant portions, reference may be made to the corresponding descriptions of the above method embodiments, and the embodiments described below are merely illustrative. The present embodiments provide a computer readable storage medium having stored thereon computer instructions that, when executed by a processor, perform the steps of: acquiring first check data provided by a user terminal, wherein the first check data is obtained after a network platform server encrypts first open cabinet data in a preset encryption mode, the first open cabinet data is used for representing the opening authority of a target user on a target cabinet grid of an intelligent cabinet, and the user terminal is computing equipment of the target user; and decrypting the first check data by adopting a preset decryption mode which is appointed by the network platform server and corresponds to the preset encryption mode, and determining whether to open the target cabinet lattice or not based on a decryption result.
Further comprising: acquiring a current network state; acquiring first verification data provided by a user terminal, wherein the first verification data comprises: and when the current network state is an offline state, acquiring first check data provided by the user terminal. The network platform server carries out encryption processing on the first cabinet opening data, and the encryption processing comprises the following steps: and when the network platform server determines that the network state of the server of the intelligent cabinet is an off-line state, encrypting the first cabinet opening data. The predetermined encryption mode and the predetermined decryption mode are realized based on a symmetric key cryptosystem. The first check data are offline identification codes, and the network platform server encrypts the first cabinet opening data in a preset encryption mode, wherein the method comprises the following steps: the network platform server generates an offline identification code according to the first cabinet opening data by adopting a preset identification code generation mechanism; acquiring first verification data provided by a user terminal, wherein the first verification data comprises: after the user terminal receives the offline identification code from the network platform server and displays the offline identification code, identifying to obtain the offline identification code; the decryption processing of the first verification data is performed by adopting a predetermined decryption mode which is appointed by the network platform server and corresponds to the predetermined encryption mode, and the decryption processing comprises the following steps: and analyzing the offline identification code based on a preset identification code analyzing mechanism which is predetermined by the network platform server and corresponds to the preset identification code generating mechanism.
The network platform server encrypts the first cabinet opening data to obtain first check data, and then generates an offline identification code according to the first check data; acquiring first verification data provided by a user terminal, wherein the first verification data comprises: after the user terminal receives the offline identification code from the network platform server and displays the offline identification code, the offline identification code displayed by the user terminal is analyzed to obtain information of the offline identification code, wherein the information of the offline identification code is first check data. The user terminal receives an offline identification code from the network platform server, and the offline identification code comprises one of the following: the user terminal identifies the fetching identification code displayed by the intelligent cabinet, interacts with the network platform server based on the offline cabinet opening small program obtained through identification, and receives the offline identification code from the network platform server; and the user terminal receives the offline identification code pushed by the network platform server.
Acquiring a current network state, including: sending network heartbeat to a network platform server according to a preset time interval; if feedback information of the network platform server for network heartbeat is received, determining that the current network state is an online state; if the network heartbeat is failed to be sent or feedback information of the network platform server for the network heartbeat is not received, determining that the current network state is an offline state; or receiving the network heartbeat sent by the network platform server, and if the network heartbeat sent by the network platform server is not received within a preset time interval, determining that the current network state is an offline state. The network platform server adopts a preset encryption mode to encrypt the first cabinet opening data, and the method comprises the following steps: and when the network platform server determines that the server of the intelligent cabinet is in an off-line state, encrypting the first cabinet opening data in a preset encryption mode. Determining whether to open the target cabinet based on the decryption result, including: and responding to the decryption to obtain the first cabinet opening data, determining a target cabinet lattice corresponding to the first cabinet opening data, and determining to open the target cabinet lattice.
The network platform server and the server of the intelligent cabinet pre-agree an encryption mode and a decryption mode for each cabinet lattice of the intelligent cabinet, and the network platform server decrypts the first check data by adopting the pre-agreed decryption mode corresponding to the pre-agreed encryption mode, wherein the decryption mode comprises the following steps: performing polling decryption operation on the first check data by adopting a plurality of decryption modes which are appointed with a network platform server and aim at a plurality of cabinet lattices of the intelligent cabinet; determining whether to open the target cabinet based on the decryption result, wherein the determining includes one of the following: responding to the first check data which are decrypted by a target decryption mode in a plurality of decryption modes to obtain first cabinet opening data, determining a cabinet lattice corresponding to the target decryption mode as a target cabinet lattice, and determining to open the target cabinet lattice; in response to the first check data being decrypted by a target decryption mode of the multiple decryption modes to obtain first open cabinet data, and the target cabinet lattice corresponding to the first open cabinet data is consistent with the cabinet lattice corresponding to the target decryption mode, determining to open the target cabinet lattice; and in response to the first check data being decrypted by a target decryption mode of the multiple decryption modes to obtain first cabinet opening data, determining a target cabinet lattice corresponding to the first cabinet opening data, and determining to open the target cabinet lattice.
The target cabinet lattice corresponds to the effective opening time limit, and the step of determining the opening of the target cabinet lattice comprises the step of obtaining the time of obtaining first check data provided by the user terminal or the step of decrypting to obtain first opening data; and determining to open the target cabinet lattice in response to the fact that the time for acquiring the first check data provided by the user terminal or the time for decrypting to obtain the first cabinet opening data does not exceed the effective opening time limit corresponding to the target cabinet lattice. Further comprising: and determining that the target cabinet lattice cannot be opened in response to the time for acquiring the first check data provided by the user terminal or the time for acquiring the first cabinet opening data by decryption exceeding the effective opening time limit corresponding to the target cabinet lattice, and outputting prompt information for not opening the cabinet lattice. Further comprising: and outputting prompt information for enabling the user terminal to acquire the updated first verification data. Determining whether to open the target cabinet based on the decryption result, including: and responding to the first cabinet opening data which cannot be obtained through decryption, determining that the target cabinet lattice cannot be opened, and outputting prompt information of the cabinet lattice which cannot be opened. Determining whether to open the target cabinet based on the decryption result, including: acquiring first cabinet opening data obtained through decryption; acquiring second cabinet opening data which are locally generated and used for approving the opening authority of the target cabinet grid; and comparing the first cabinet opening data with the second cabinet opening data, and determining to open the target cabinet grid if the first cabinet opening data is matched with the second cabinet opening data.
Further comprising: the second cabinet opening data which are generated locally and used for approving the opening authority of the target cabinet lattice are encrypted by using the target encryption key in advance, and second checking data corresponding to the target cabinet lattice are obtained; the first cabinet opening data carries a target decryption key corresponding to the target encryption key, and the second cabinet opening data which are locally generated and used for approving the opening authority of the target cabinet grid are acquired and comprise information for determining the target cabinet grid according to the first cabinet opening data; and determining second check data corresponding to the target cabinet lattice according to the information of the target cabinet lattice, and decrypting the second check data by using the target decryption key to obtain second cabinet opening data. The network platform server and the server of the intelligent cabinet acquire first cabinet opening data and second cabinet opening data aiming at a target cabinet lattice according to a same pre-agreed data acquisition mode; first data and the second data phase-match of opening cabinet include: the first cabinet opening data are the same as the second cabinet opening data. The first opening data includes: identification information of the target cabinet lattice and effective opening time limit information corresponding to the target cabinet lattice; correspondingly, the second cabinet opening data comprises: first approval information approving the identification information of the target cabinet and second approval information approving the valid opening time limit information. Comparing the first cabinet opening data with the second cabinet opening data, and if the first cabinet opening data is matched with the second cabinet opening data, determining to open a target cabinet lattice, wherein the method comprises the following steps: comparing the identification information of the target cabinet lattice with the first approval information, and comparing the effective opening time limit information corresponding to the target cabinet lattice with the second approval information; and if the identification information of the target cabinet lattice is matched with the first approval information and the effective opening time limit information corresponding to the target cabinet lattice is matched with the second approval information, determining to open the target cabinet lattice. Further comprising: and if the identification information of the target cabinet lattice is not matched with the first approval information and/or the effective opening time limit information corresponding to the target cabinet lattice is not matched with the second approval information, determining that the target cabinet lattice cannot be opened, and outputting prompt information for not opening the target cabinet lattice. The prompt message that the target cabinet lattice cannot be opened comprises: and prompting information that the identification information of the target cabinet lattice is not matched with the first approval information, and/or prompting information that the effective opening time limit information corresponding to the target cabinet lattice is not matched with the second approval information. Further comprising: and if the identification information of the target cabinet lattice is matched with the first approval information and the effective opening time limit information corresponding to the target cabinet lattice is not matched with the second approval information, outputting prompt information for enabling the user terminal to obtain the updated first verification data. When the current network state is an offline state, before acquiring the first check data provided by the user terminal, the method further includes: and outputting prompt information for opening the cabinet lattice in an off-line cabinet opening mode at present so that the user terminal provides first check data based on the prompt information. Further comprising: and if the current network state is changed from the off-line state to the on-line state, outputting prompt information that the cabinet lattice can be opened in an on-line cabinet opening mode currently.
By executing the computer instructions stored in the computer-readable storage medium provided by this embodiment, the authentication of the cabinet grid opening authority can be realized by pre-stipulating an encryption manner and a decryption manner between the network platform server and the server of the intelligent cabinet, in the cabinet opening link of the intelligent cabinet, it is not necessary to verify whether the target user has the opening authority for the target cabinet grid in a network interaction manner between the server of the intelligent cabinet and the network platform server, that is, the network platform server does not need to send a cabinet opening notification to the server of the intelligent cabinet in a network communication manner, the server of the intelligent cabinet does not need to perform network interaction with the network platform server to acquire the cabinet grid information required to be opened, decryption processing is performed only on the first check data provided by the user terminal, whether the target cabinet grid is opened or not can be determined based on the decryption result, the influence on the normal use of the intelligent cabinet due to poor network signals or network disconnection can be avoided, for example, the problem that the user's meal taking link does not need to depend on the quality of the network environment, and the problem that the meal taking authority is long, and the meal waiting time for the meal is long.
The seventh embodiment of the present application provides a data processing method, and correspondingly, the seventh embodiment of the present application also provides a data processing apparatus, since the apparatus embodiment is basically similar to the method embodiment, so that the description is relatively simple, and the details of the related technical features can be found in the corresponding description of the method embodiment provided above, and the following description of the apparatus embodiment is only illustrative. Referring to fig. 6, to understand the embodiment, fig. 6 is a block diagram of a unit of the data processing apparatus provided in the embodiment, and as shown in fig. 6, the data processing apparatus provided in the embodiment includes: a network state obtaining unit 601, configured to obtain a network state corresponding to a server of the intelligent cabinet; the encryption processing unit 602 is configured to perform encryption processing on first opening data in a predetermined encryption manner in response to that the network state is an offline state, so as to obtain first check data, where the first opening data is used to represent an opening right of a target user to a target cabinet lattice of the intelligent cabinet; the data providing unit 603 is configured to provide the first check data to the user terminal of the target user, so that after the user terminal provides the first check data to the server of the smart cabinet, the server of the smart cabinet may perform decryption processing on the first check data by using a predetermined decryption manner corresponding to a predetermined encryption manner agreed with the network platform server, and determine whether to open the target cabinet lattice based on a decryption result. The intelligent cabinet is used for responding to the fact that the network state is an off-line state, obtaining user data corresponding to the intelligent cabinet, and determining a user corresponding to the user data as a target user.
Adopt predetermined encryption mode to carry out encryption processing to first uncork data, obtain first check data, include: and generating an offline identification code according to the first cabinet opening data by adopting a preset identification code generation mechanism. Further comprising: and the off-line identification code generating unit is used for generating an off-line identification code according to the first checking data. Providing the first collation data to a user terminal of a target user, comprising: and sending the offline identification code to the user terminal of the target user. The off-line identification code is sent to the user terminal of the target user, and the method comprises the following steps: responding to an offline cabinet opening request from the user terminal, and sending the offline identification code to the user terminal; or, the offline identification code is pushed to the user terminal. Obtain the network state that the server of intelligence cabinet corresponds, include: sending network heartbeats to a server of the intelligent cabinet according to a preset time interval; if feedback information of the server of the intelligent cabinet aiming at the network heartbeat is received, determining that the network state corresponding to the server of the intelligent cabinet is an online state; if the feedback information of the server of the intelligent cabinet aiming at the network heartbeat is not received, determining that the network state corresponding to the server of the intelligent cabinet is an offline state; or receiving the network heartbeat sent by the server of the intelligent cabinet, and if the network heartbeat sent by the server of the intelligent cabinet is not received within a preset time interval, determining that the network state corresponding to the server of the intelligent cabinet is an offline state. The first opening data includes: identification information of the target cabinet. The first opening data further includes: and effective opening time limit information corresponding to the target cabinet grid. The network platform server and the server of intelligent cabinet agree in advance encryption mode and decryption mode to each cabinet check of intelligent cabinet, adopt predetermined encryption mode to carry out encryption processing to first uncork data, obtain first data of checking, include: and encrypting the first cabinet opening data by adopting a preset encryption mode which is agreed with a server of the intelligent cabinet in advance and aims at the target cabinet lattice to obtain first checking data. A server of the intelligent cabinet generates second cabinet opening data for approving the opening authority of the target cabinet lattice in a data acquisition mode which is pre-agreed with a network platform server; acquiring first cabinet opening data for representing the opening authority of a target user on a target cabinet grid of an intelligent cabinet, wherein the first cabinet opening data comprises the following steps: and acquiring first cabinet opening data matched with the second cabinet opening data in a data acquisition mode. With the first data of opening cabinet of second data matched with of opening cabinet, include: first opening data identical to the second opening data.
Through using the data processing device that this embodiment provided, can avoid influencing the normal use of intelligent cabinet because of network signal is relatively poor or the network disconnection, for example, user's the link of getting meal need not to rely on network environment's quality, only need provide the first data of checking that network platform server issued in advance and can realize getting meal authority and verify and accomplish and get meal, avoid cabinet check occupation time overlength, user's latency is longer, the problem that meal article is rotten.
In the above embodiments, a data processing method and a data processing apparatus are provided, and an eighth embodiment of the present application further provides an electronic device, which is basically similar to the method embodiment and therefore is described relatively simply, and the details of the related technical features need to be referred to the corresponding description of the method embodiment provided above, and the following description of the electronic device embodiment is only illustrative. The embodiment of the electronic equipment is as follows: please refer to fig. 5 for understanding the present embodiment, fig. 5 is a schematic view of an electronic device provided in the present embodiment. As shown in fig. 5, the electronic device provided in this embodiment includes: a processor 501 and a memory 502; the memory 502 is used for storing computer instructions for data processing, which when read and executed by the processor 501, perform the following operations: acquiring a network state corresponding to a server of the intelligent cabinet; in response to the fact that the network state is an offline state, encrypting first cabinet opening data in a preset encryption mode to obtain first check data, wherein the first cabinet opening data are used for representing the opening authority of a target user on a target cabinet lattice of the intelligent cabinet; and providing the first check data to a user terminal of a target user, so that after the user terminal provides the first check data to a server of the intelligent cabinet, the server of the intelligent cabinet can decrypt the first check data by adopting a preset decryption mode which is agreed with the network platform server and corresponds to the preset encryption mode, and determine whether to open the target cabinet lattice based on a decryption result. Further comprising: and responding to the fact that the network state is an offline state, acquiring user data corresponding to the intelligent cabinet, and determining a user corresponding to the user data as a target user.
The method for encrypting the first cabinet opening data by adopting a preset encryption mode to obtain first check data comprises the following steps: and generating an offline identification code according to the first cabinet opening data by adopting a preset identification code generation mechanism. Further comprising: and generating an offline identification code according to the first check data. Providing the first collation data to the user terminal of the target user, including: and sending the offline identification code to the user terminal of the target user. The user terminal for sending the offline identification code to the target user comprises the following steps: responding to an offline cabinet opening request from the user terminal, and sending the offline identification code to the user terminal; or, the offline identification code is pushed to the user terminal.
Obtain the network state that the server of intelligence cabinet corresponds, include: sending network heartbeats to a server of the intelligent cabinet according to a preset time interval; if feedback information of the server of the intelligent cabinet aiming at the network heartbeat is received, determining that the network state corresponding to the server of the intelligent cabinet is an online state; if the feedback information of the server of the intelligent cabinet aiming at the network heartbeat is not received, determining that the network state corresponding to the server of the intelligent cabinet is an off-line state; or receiving the network heartbeat sent by the server of the intelligent cabinet, and if the network heartbeat sent by the server of the intelligent cabinet is not received within a preset time interval, determining that the network state corresponding to the server of the intelligent cabinet is an offline state. The first opening data includes: identification information of the target cabinet. First uncork data still includes: and effective opening time limit information corresponding to the target cabinet grid.
The network platform server and the server of intelligent cabinet agree in advance encryption mode and decryption mode to each cabinet check of intelligent cabinet, adopt predetermined encryption mode to carry out encryption processing to first uncork data, obtain first data of checking, include: and encrypting the first cabinet opening data by adopting a preset encryption mode aiming at the target cabinet lattice agreed with a server of the intelligent cabinet in advance to obtain first check data. A server of the intelligent cabinet generates second cabinet opening data for approving the opening authority of the target cabinet lattice in a data acquisition mode which is pre-agreed with a network platform server; acquiring first cabinet opening data for representing the opening authority of a target user to a target cabinet grid of an intelligent cabinet, wherein the first cabinet opening data comprises: and acquiring first cabinet opening data matched with the second cabinet opening data in a data acquisition mode. With the first data of opening cabinet of second data matching that opens cabinet, include: first opening data identical to the second opening data.
Through using the electronic equipment that this embodiment provided, can avoid influencing the normal use of intelligent cabinet because of the relatively poor or network disconnection of network signal, for example, user's the link of getting meal need not to rely on the quality of network environment, only need provide the first data of checking that network platform server issued in advance and can realize getting meal authority and verify and accomplish and get meal, avoid cabinet check occupy the time overlength, user latency is longer, the rotten problem of meal article.
In the above embodiments, a data processing method, a data processing apparatus, and an electronic device are provided, and furthermore, a ninth embodiment of the present application further provides a computer-readable storage medium for implementing the data processing method. The embodiments of the computer-readable storage medium provided in the present application are described more simply, and in relevant parts, reference may be made to the corresponding descriptions of the above method embodiments, and the embodiments described below are only illustrative. The present embodiments provide a computer readable storage medium having stored thereon computer instructions that, when executed by a processor, perform the steps of:
acquiring a network state corresponding to a server of the intelligent cabinet; in response to the fact that the network state is an offline state, encrypting first cabinet opening data in a preset encryption mode to obtain first check data, wherein the first cabinet opening data are used for representing the opening authority of a target user on a target cabinet lattice of the intelligent cabinet; and providing the first check data to a user terminal of a target user, so that after the user terminal provides the first check data to a server of the intelligent cabinet, the server of the intelligent cabinet can decrypt the first check data by adopting a preset decryption mode which is appointed by the network platform server and corresponds to the preset encryption mode, and determine whether to open the target cabinet lattice based on a decryption result. Adopt predetermined encryption mode to carry out encryption processing to first uncork data, obtain first check data, include: and generating an offline identification code according to the first cabinet opening data by adopting a preset identification code generation mechanism. Further comprising: an offline identification code is generated based on the first verification data. Providing the first collation data to a user terminal of a target user, comprising: and sending the offline identification code to a user terminal of the target user. The off-line identification code is sent to the user terminal of the target user, and the method comprises the following steps: responding to an offline cabinet opening request from the user terminal, and sending the offline identification code to the user terminal; or, the offline identification code is pushed to the user terminal. Further comprising: and responding to the fact that the network state is an offline state, acquiring user data corresponding to the intelligent cabinet, and determining a user corresponding to the user data as a target user.
Obtain the network state that the server of intelligence cabinet corresponds, include: sending network heartbeats to a server of the intelligent cabinet according to a preset time interval; if feedback information of the server of the intelligent cabinet aiming at the network heartbeat is received, determining that the network state corresponding to the server of the intelligent cabinet is an online state; if the feedback information of the server of the intelligent cabinet aiming at the network heartbeat is not received, determining that the network state corresponding to the server of the intelligent cabinet is an offline state; or receiving the network heartbeat sent by the server of the intelligent cabinet, and if the network heartbeat sent by the server of the intelligent cabinet is not received within a preset time interval, determining that the network state corresponding to the server of the intelligent cabinet is an offline state. The first opening data includes: identification information of the target cabinet. The first opening data further includes: and effective opening time limit information corresponding to the target cabinet grid.
The network platform server and the server of intelligent cabinet agree in advance encryption mode and decryption mode to each cabinet check of intelligent cabinet, adopt predetermined encryption mode to carry out encryption processing to first uncork data, obtain first data of checking, include: and encrypting the first cabinet opening data by adopting a preset encryption mode which is agreed with a server of the intelligent cabinet in advance and aims at the target cabinet lattice to obtain first checking data. A server of the intelligent cabinet generates second cabinet opening data for approving the opening authority of the target cabinet lattice in a data acquisition mode which is pre-agreed with a network platform server; acquiring first cabinet opening data for representing the opening authority of a target user on a target cabinet grid of an intelligent cabinet, wherein the first cabinet opening data comprises the following steps: and acquiring first cabinet opening data matched with the second cabinet opening data in a data acquisition mode. With the first data of opening cabinet of second data matching that opens cabinet, include: first opening data identical to the second opening data.
By executing the computer instructions stored in the computer-readable storage medium provided by the embodiment, the influence on the normal use of the intelligent cabinet due to poor network signals or network disconnection can be avoided, for example, the meal taking link of a user does not need to depend on the quality of a network environment, the meal taking permission verification can be realized and the meal taking can be completed only by providing first check data issued by the network platform server in advance, and the problems of overlong cabinet lattice occupation time, longer user waiting time and deteriorated meal can be avoided.
A tenth embodiment of the present application further provides a data processing method, where an application subject of the method may be the above network platform server, fig. 7 is a flowchart of the intelligent cabinet opening method provided in the tenth embodiment of the present application, and the method provided in this embodiment is described in detail below with reference to fig. 7. The following description refers to embodiments for the purpose of illustrating the principles of the methods, and is not intended to be limiting in actual use. As shown in fig. 7, the intelligent cabinet opening method provided in this embodiment includes the following steps:
s701, a cabinet opening request sent by a user terminal of a target user is received, wherein the cabinet opening request comprises an identification of the intelligent cabinet. The identification of the intelligent cabinet can be the number of the intelligent cabinet.
S702, acquiring a network state corresponding to the server of the intelligent cabinet based on the identification of the intelligent cabinet. For example, after receiving a locker opening request carrying a number of an intelligent locker, sending a network heartbeat to a server of the intelligent locker according to a preset time interval; if feedback information of the server of the intelligent cabinet aiming at the network heartbeat is received, determining that the network state corresponding to the server of the intelligent cabinet is an online state; if the feedback information of the server of the intelligent cabinet aiming at the network heartbeat is not received, determining that the network state corresponding to the server of the intelligent cabinet is an off-line state; or receiving the network heartbeat sent by the server of the intelligent cabinet, and if the network heartbeat sent by the server of the intelligent cabinet is not received within a preset time interval, determining that the network state corresponding to the server of the intelligent cabinet is an offline state.
And S703, in response to the fact that the network state is an offline state, encrypting the first cabinet opening data in a preset encryption mode to obtain first check data. The first cabinet opening data are used for representing the opening authority of the target user to the target cabinet grid of the intelligent cabinet. In this embodiment, the locker opening request may further carry an identifier of the target user, and before the first verification data is obtained, the target locker grid corresponding to the target user is determined according to the identifier of the target user.
S704, the first collation data is provided to the user terminal.
The step is used for providing the first check data obtained in the step for the user terminal, so that after the user terminal provides the first check data for the server of the intelligent cabinet, the server of the intelligent cabinet can decrypt the first check data by adopting a preset decryption mode which is appointed by the network platform server and corresponds to the preset encryption mode, and whether the target cabinet lattice is opened or not is determined based on a decryption result.
The above encrypting the first opening data by using the predetermined encryption method to obtain the first check data may specifically be: and generating an offline identification code according to the first cabinet opening data by adopting a preset identification code generation mechanism, wherein the offline identification code is first checking data. Or after the first cabinet opening data is encrypted by adopting a preset encryption mode to obtain first check data, the offline identification code is generated according to the first check data. The providing of the first check data to the user terminal specifically means sending the offline identification code to the user terminal.
The tenth embodiment provides a data processing method, and correspondingly, the eleventh embodiment of the present application also provides a data processing apparatus, since the apparatus embodiment is substantially similar to the method embodiment, so that the description is relatively simple, and the details of the related technical features can be found in the corresponding description of the method embodiment provided above, and the following description of the apparatus embodiment is only illustrative. Referring to fig. 8, to understand the embodiment, fig. 8 is a block diagram of a unit of the data processing apparatus provided in the embodiment, and as shown in fig. 8, the data processing apparatus provided in the embodiment includes: a cabinet opening request receiving unit 801, configured to receive a cabinet opening request sent by a user terminal of a target user, where the cabinet opening request includes an identifier of an intelligent cabinet; a network state obtaining unit 802, configured to obtain a network state corresponding to a server of the intelligent cabinet based on the identifier of the intelligent cabinet; the first checking data obtaining unit 803 is configured to, in response to that the network state is an offline state, encrypt the first opening data in a predetermined encryption manner to obtain first checking data, where the first opening data is used to represent an opening permission of a target user for a target cabinet lattice of the intelligent cabinet; the first verification data providing unit 804 is configured to provide the first verification data to the user terminal, so that after the user terminal provides the first verification data to the server of the smart cabinet, the server of the smart cabinet may perform decryption processing on the first verification data by using a predetermined decryption method corresponding to a predetermined encryption method, which is agreed with the network platform server, and determine whether to open the target cabinet lattice based on a decryption result. The cabinet opening request carries the identification of the target user; the method further comprises the following steps: and determining a target cabinet lattice corresponding to the target user according to the identification of the target user.
Obtaining a network state corresponding to a server of the intelligent cabinet, including: sending network heartbeats to a server of the intelligent cabinet according to a preset time interval; if feedback information of the server of the intelligent cabinet aiming at the network heartbeat is received, determining that the network state corresponding to the server of the intelligent cabinet is an online state; if the feedback information of the server of the intelligent cabinet aiming at the network heartbeat is not received, determining that the network state corresponding to the server of the intelligent cabinet is an offline state; or receiving the network heartbeat sent by the server of the intelligent cabinet, and if the network heartbeat sent by the server of the intelligent cabinet is not received within a preset time interval, determining that the network state corresponding to the server of the intelligent cabinet is an offline state. The method for encrypting the first cabinet opening data by adopting a preset encryption mode to obtain first check data comprises the following steps: and generating an offline identification code according to the first cabinet opening data by adopting a preset identification code generation mechanism. Alternatively, the data processing apparatus further includes an offline identification code generation unit configured to generate an offline identification code based on the first collation data. Providing the first collation data to the user terminal, including: and sending the offline identification code to the user terminal.
In the embodiments described above, a data processing method and a data processing apparatus are provided, and in addition, a twelfth embodiment of the present application further provides an electronic device, which is basically similar to the method embodiments and therefore is relatively simple to describe, and reference may be made to the corresponding description of the method embodiments for details of related technical features, and the following description of the embodiments of the electronic device is only illustrative. The embodiment of the electronic equipment is as follows: please refer to fig. 5 for understanding the present embodiment, fig. 5 is a schematic view of an electronic device provided in the present embodiment. As shown in fig. 5, the electronic device provided in this embodiment includes: a processor 501 and a memory 502; the memory 502 is used for storing computer instructions for data processing, which when read and executed by the processor 501, perform the following operations: receiving a cabinet opening request sent by a user terminal of a target user, wherein the cabinet opening request comprises an identifier of an intelligent cabinet; acquiring a network state corresponding to a server of the intelligent cabinet based on the identification of the intelligent cabinet; in response to the fact that the network state is an offline state, encrypting first cabinet opening data in a preset encryption mode to obtain first check data, wherein the first cabinet opening data are used for representing the opening authority of a target user on a target cabinet lattice of the intelligent cabinet; and after the first check data are provided for the user terminal so that the user terminal provides the first check data for the server of the intelligent cabinet, the server of the intelligent cabinet can decrypt the first check data by adopting a preset decryption mode which is appointed by the network platform server and corresponds to the preset encryption mode, and determine whether to open the target cabinet lattice based on the decryption result.
The cabinet opening request carries the identification of the target user; the method further comprises the following steps: and determining a target cabinet lattice corresponding to the target user according to the identification of the target user. Obtaining a network state corresponding to a server of the intelligent cabinet, including: sending network heartbeats to a server of the intelligent cabinet according to a preset time interval; if feedback information of the server of the intelligent cabinet aiming at the network heartbeat is received, determining that the network state corresponding to the server of the intelligent cabinet is an online state; if the feedback information of the server of the intelligent cabinet aiming at the network heartbeat is not received, determining that the network state corresponding to the server of the intelligent cabinet is an offline state; or receiving the network heartbeat sent by the server of the intelligent cabinet, and if the network heartbeat sent by the server of the intelligent cabinet is not received within a preset time interval, determining that the network state corresponding to the server of the intelligent cabinet is an offline state.
The method for encrypting the first cabinet opening data by adopting a preset encryption mode to obtain first check data comprises the following steps: and generating an offline identification code according to the first cabinet opening data by adopting a preset identification code generation mechanism. An offline identification code may also be generated based on the first verification data. Providing the first collation data to the user terminal, including: and sending the offline identification code to the user terminal.
In the above embodiments, a data processing method, a data processing apparatus, and an electronic device are provided, and furthermore, a thirteenth embodiment of the present application also provides a computer-readable storage medium for implementing the data processing method. The embodiments of the computer-readable storage medium provided in the present application are described more simply, and in relevant parts, reference may be made to the corresponding descriptions of the above method embodiments, and the embodiments described below are only illustrative. The present embodiment provides a computer readable storage medium having stored thereon computer instructions, which when executed by a processor, implement the steps of: receiving a cabinet opening request sent by a user terminal of a target user, wherein the cabinet opening request comprises an identifier of an intelligent cabinet; acquiring a network state corresponding to a server of the intelligent cabinet based on the identification of the intelligent cabinet; in response to the fact that the network state is an offline state, encrypting first cabinet opening data in a preset encryption mode to obtain first check data, wherein the first cabinet opening data are used for representing the opening authority of a target user on a target cabinet lattice of the intelligent cabinet; and after the first check data are provided for the user terminal so that the user terminal provides the first check data for the server of the intelligent cabinet, the server of the intelligent cabinet can decrypt the first check data by adopting a preset decryption mode which is appointed by the network platform server and corresponds to the preset encryption mode, and determine whether to open the target cabinet lattice based on a decryption result.
The cabinet opening request carries the identification of the target user; the method further comprises the following steps: and determining a target cabinet lattice corresponding to the target user according to the identification of the target user. Obtaining a network state corresponding to a server of the intelligent cabinet, including: sending network heartbeats to a server of the intelligent cabinet according to a preset time interval; if feedback information of the server of the intelligent cabinet aiming at the network heartbeat is received, determining that the network state corresponding to the server of the intelligent cabinet is an online state; if the feedback information of the server of the intelligent cabinet aiming at the network heartbeat is not received, determining that the network state corresponding to the server of the intelligent cabinet is an off-line state; or receiving the network heartbeat sent by the server of the intelligent cabinet, and if the network heartbeat sent by the server of the intelligent cabinet is not received within a preset time interval, determining that the network state corresponding to the server of the intelligent cabinet is an offline state. The method for encrypting the first cabinet opening data by adopting a preset encryption mode to obtain first check data comprises the following steps: and generating an offline identification code according to the first cabinet opening data by adopting a preset identification code generation mechanism. An offline identification code may also be generated based on the first verification data. Providing the first collation data to the user terminal, including: and sending the offline identification code to the user terminal.
A fourteenth embodiment of the present application further provides a cabinet opening method, which is applied to a user terminal, and as shown in fig. 9, the method includes the following steps:
s901, receiving first check data sent by the network platform server. The first check data are obtained by encrypting first open cabinet data in a preset encryption mode after the network platform server determines that the server of the intelligent cabinet is in an off-line state, the first open cabinet data are used for representing the opening authority of a target user on a target cabinet lattice of the intelligent cabinet, and the target user is a user corresponding to the user terminal.
S902, providing the first check data to the server of the intelligent cabinet, so that the server of the intelligent cabinet decrypts the first check data by adopting a predetermined decryption mode which is agreed with the network platform server and corresponds to the predetermined encryption mode, and determining whether to open the target cabinet lattice based on the decryption result.
The first check data may be an offline identification code, and the encrypting the first opening data by using a predetermined encryption method may specifically be: generating an offline identification code according to the first cabinet opening data by adopting a preset identification code generation mechanism; the providing of the first verification data to the server of the intelligent cabinet may refer to displaying an offline identification code; the server of the intelligent cabinet adopts a preset decryption mode which is appointed with the network platform server and corresponds to the preset encryption mode to decrypt the first check data, and the decryption processing method comprises the following steps: and the server of the intelligent cabinet analyzes the offline identification code based on a preset identification code analysis mechanism which is agreed with the network platform server in advance and corresponds to the preset identification code generation mechanism.
Receiving the first verification data sent by the network platform server may also refer to: receiving an offline identification code sent by a network platform server, wherein the offline identification code is an identification code generated according to the first check data; providing the first verification data to the server of the intelligent cabinet may refer to: displaying the offline identification code; before the server of the intelligent cabinet decrypts the first check data by adopting a preset decryption mode which is agreed with the network platform server and corresponds to the preset encryption mode, the server of the intelligent cabinet needs to analyze the offline identification code to obtain the first check data.
Before the first check data sent by the network platform server is received, a cabinet opening request needs to be sent to the network platform server. For example, identifying an article taking identification code posted or displayed on an intelligent cabinet, obtaining an identifier of the intelligent cabinet, and sending a cabinet opening request carrying the identifier of the intelligent cabinet to a network platform server; or identifying an object fetching identification code posted or displayed by the intelligent cabinet, and sending a cabinet opening request to the network platform server based on the identified cabinet opening small program.
The fourteenth embodiment provides a method for opening a cabinet, and correspondingly, the fifteenth embodiment of the present application further provides a cabinet opening apparatus, since the apparatus embodiment is substantially similar to the method embodiment, so that the description is relatively simple, and please refer to the corresponding description of the method embodiment in detail of the related technical features, and the following description of the apparatus embodiment is only illustrative. Referring to fig. 8, to understand the embodiment, fig. 10 is a block diagram of a unit of the cabinet opening device provided in the embodiment, and as shown in fig. 10, the cabinet opening device provided in the embodiment includes: the first checking data receiving unit 1001 is used for receiving first checking data sent by a network platform server, the first checking data are data obtained after the network platform server encrypts first cabinet opening data in a preset encryption mode after determining that a server of an intelligent cabinet is in an off-line state, the first cabinet opening data are used for representing the opening authority of a target user on a target cabinet lattice of the intelligent cabinet, and the target user is a user corresponding to a user terminal; the first check data providing unit 1002 is configured to provide the first check data to the server of the smart cabinet, so that the server of the smart cabinet performs decryption processing on the first check data in a predetermined decryption manner corresponding to a predetermined encryption manner, which is agreed with the network platform server, and determines whether to open the target cabinet lattice based on a decryption result.
The first check data is an off-line identification code; the method for encrypting the first cabinet opening data by adopting a preset encryption mode comprises the following steps: generating an offline identification code according to the first cabinet opening data by adopting a preset identification code generation mechanism; providing first reconciliation data to a server of the smart cabinet, comprising: displaying the offline identification code; the server of the intelligent cabinet adopts a predetermined decryption mode which is appointed with the network platform server and corresponds to the predetermined encryption mode to decrypt the first check data, and the method comprises the following steps: and the server of the intelligent cabinet analyzes the offline identification code based on a preset identification code analysis mechanism which is agreed with the network platform server in advance and corresponds to the preset identification code generation mechanism. Receiving first verification data sent by a network platform server, wherein the first verification data comprises: receiving an offline identification code sent by a network platform server, wherein the offline identification code is an identification code generated according to the first check data; providing first reconciliation data to a server of the smart cabinet, comprising: displaying the offline identification code; before the server of the intelligent cabinet decrypts the first check data by adopting a predetermined decryption mode which is agreed with the network platform server and corresponds to the predetermined encryption mode, the method further comprises the following steps: and the server of the intelligent cabinet analyzes the offline identification code to obtain first checking data.
The system further comprises a cabinet opening request sending unit which is used for sending a cabinet opening request to the network platform server before receiving the first checking data sent by the network platform server. For example, an object taking identification code posted or displayed on the intelligent cabinet is identified, and an identifier of the intelligent cabinet is obtained; and sending a cabinet opening request carrying the identification of the intelligent cabinet to the network platform server, or identifying an object taking identification code posted or displayed by the intelligent cabinet, and sending the cabinet opening request to the network platform server based on the identified cabinet opening small program.
In the above embodiments, a cabinet opening method and a cabinet opening apparatus are provided, and in addition, a fifteenth embodiment of the present application also provides an electronic device, which is basically similar to the method embodiment, so that description is relatively simple, and details of related technical features may be referred to corresponding descriptions of the method embodiment provided above, and the following description of the electronic device embodiment is only illustrative. The embodiment of the electronic equipment is as follows: please refer to fig. 5 for understanding the present embodiment, fig. 5 is a schematic view of an electronic device provided in the present embodiment. As shown in fig. 5, the electronic device provided in this embodiment includes: a processor 501 and a memory 502; the memory 502 is used for storing computer instructions for opening the cabinet, and when the computer instructions are read and executed by the processor 501, the following operations are performed: receiving first check data sent by a network platform server; the first check data are obtained by encrypting first cabinet opening data in a preset encryption mode after the network platform server determines that a server of the intelligent cabinet is in an off-line state, the first cabinet opening data are used for representing the opening authority of a target user on a target cabinet grid of the intelligent cabinet, and the target user is a user corresponding to the user terminal; and providing the first check data to the server of the intelligent cabinet, so that the server of the intelligent cabinet decrypts the first check data by adopting a preset decryption mode which is agreed with the network platform server and corresponds to the preset encryption mode, and determining whether to open the target cabinet lattice or not based on a decryption result.
The first check data is an offline identification code; adopt predetermined encryption mode to carry out encryption processing to first uncork data, include: generating an offline identification code according to the first cabinet opening data by adopting a preset identification code generation mechanism; providing first reconciliation data to a server of the smart cabinet, comprising: displaying the offline identification code; the server of the intelligent cabinet adopts a predetermined decryption mode which is appointed with the network platform server and corresponds to the predetermined encryption mode to decrypt the first check data, and the method comprises the following steps: and the server of the intelligent cabinet analyzes the offline identification code based on a preset identification code analysis mechanism which is agreed with the network platform server in advance and corresponds to the preset identification code generation mechanism. Receiving first verification data sent by a network platform server, wherein the first verification data comprises: receiving an offline identification code sent by the network platform server, wherein the offline identification code is an identification code generated according to the first check data; providing first reconciliation data to a server of the smart cabinet, comprising: displaying the offline identification code; before the server of the intelligent cabinet decrypts the first check data by adopting a predetermined decryption mode which is agreed with the network platform server and corresponds to the predetermined encryption mode, the method further comprises the following steps: and the server of the intelligent cabinet analyzes the offline identification code to obtain first checking data. Before receiving the first verification data sent by the network platform server, the method further comprises: and sending a cabinet opening request to a network platform server. Identifying an object taking identification code posted or displayed on the intelligent cabinet to obtain an identification of the intelligent cabinet; and sending a cabinet opening request carrying the identification of the intelligent cabinet to the network platform server, or identifying an object taking identification code posted or displayed by the intelligent cabinet, and sending the cabinet opening request to the network platform server based on the identified cabinet opening small program.
In the above embodiments, a method, an apparatus and an electronic device for opening a cabinet are provided, and a sixteenth embodiment of the present application further provides a computer-readable storage medium for implementing the above method for opening a cabinet. The embodiments of the computer-readable storage medium provided in the present application are described relatively simply, and for relevant portions, reference may be made to the corresponding descriptions of the above method embodiments, and the embodiments described below are merely illustrative. The present embodiments provide a computer readable storage medium having stored thereon computer instructions that, when executed by a processor, perform the steps of: receiving first check data sent by a network platform server; the first check data are obtained by encrypting first cabinet opening data in a preset encryption mode after the network platform server determines that a server of the intelligent cabinet is in an off-line state, the first cabinet opening data are used for representing the opening authority of a target user on a target cabinet grid of the intelligent cabinet, and the target user is a user corresponding to the user terminal; and providing the first check data to the server of the intelligent cabinet, so that the server of the intelligent cabinet decrypts the first check data by adopting a preset decryption mode which is agreed with the network platform server and corresponds to the preset encryption mode, and determining whether to open the target cabinet lattice or not based on a decryption result. The first check data is an off-line identification code; the method for encrypting the first cabinet opening data by adopting a preset encryption mode comprises the following steps: generating an offline identification code according to the first cabinet opening data by adopting a preset identification code generation mechanism; providing first reconciliation data to a server of the smart cabinet, comprising: displaying the offline identification code; the server of the intelligent cabinet adopts a preset decryption mode which is appointed with the network platform server and corresponds to the preset encryption mode to decrypt the first check data, and the decryption processing method comprises the following steps: and the server of the intelligent cabinet analyzes the offline identification code based on a preset identification code analysis mechanism which is agreed with the network platform server in advance and corresponds to the preset identification code generation mechanism. Receiving first verification data sent by a network platform server, wherein the first verification data comprises: receiving an offline identification code sent by the network platform server, wherein the offline identification code is an identification code generated according to the first check data; providing first reconciliation data to a server of the smart cabinet, comprising: displaying the offline identification code; before the server of the intelligent cabinet decrypts the first check data by adopting a predetermined decryption mode which is agreed with the network platform server and corresponds to the predetermined encryption mode, the method further comprises the following steps: and the server of the intelligent cabinet analyzes the offline identification code to obtain first checking data. Before receiving the first verification data sent by the network platform server, the method further includes: and sending a cabinet opening request to a network platform server. Identifying an object taking identification code posted or displayed on the intelligent cabinet to obtain an identification of the intelligent cabinet; and sending a cabinet opening request carrying the identification of the intelligent cabinet to the network platform server, or identifying an object taking identification code posted or displayed by the intelligent cabinet, and sending the cabinet opening request to the network platform server based on the identified cabinet opening small program.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
1. Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, 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 disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
2. As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
Although the present application has been described with reference to the preferred embodiments, it is not intended to limit the present application, and those skilled in the art can make variations and modifications without departing from the spirit and scope of the present application, therefore, the scope of the present application should be determined by the appended claims.

Claims (17)

1. A cabinet opening method of an intelligent cabinet is characterized by being applied to a server of the intelligent cabinet, wherein the intelligent cabinet is used for storing and delivering articles for delivering resources, and the method comprises the following steps:
responding to the fact that the current network state is an offline state, and identifying and obtaining first checking data, wherein the first checking data are encrypted data corresponding to the opening authority of a target cabinet grid of the intelligent cabinet, the first checking data are provided by a user terminal, and the first checking data are issued to the user terminal of a target user by a network platform server; the first check data is data obtained after the network platform server encrypts first cabinet opening data in a preset encryption mode, or the first check data is an offline identification code generated by the network platform server according to the first cabinet opening data by adopting a preset identification code generation mechanism, wherein the first cabinet opening data is used for representing the opening authority of a target user on a target cabinet lattice of the intelligent cabinet; the off-line state refers to a network state between a network platform server and a server of the intelligent cabinet;
decrypting the first check data by adopting a preset decryption mode, and determining whether to open the target cabinet lattice based on a decryption result, wherein the decrypting the first check data by adopting the preset decryption mode comprises the following steps: and decrypting the first check data by adopting a predetermined decryption mode corresponding to the predetermined encryption mode appointed by the network platform server.
2. The method according to claim 1, wherein the first check data is an offline identification code generated by a network platform server according to first opening data by adopting a predetermined identification code generation mechanism, and the first opening data is used for representing the opening authority of a target user on a target cabinet lattice of the intelligent cabinet;
the identifying and obtaining first verification data in response to the current network state being an offline state includes: in response to that the current network state is an offline state, after a user terminal receives the offline identification code from the network platform server and displays the offline identification code, identifying to obtain the offline identification code, wherein the user terminal is computing equipment of the target user;
the decrypting the first verification data in a predetermined decryption manner includes: and analyzing the offline identification code based on a preset identification code analyzing mechanism which is agreed in advance with the network platform server and corresponds to the preset identification code generating mechanism.
3. The method according to claim 1, wherein the first check data is encrypted data obtained by encrypting first opening data by a network platform server, and the first opening data is used for representing the opening authority of a target user on a target cabinet lattice of the intelligent cabinet;
the network platform server is also used for generating an offline identification code according to the first check data; the identifying and obtaining first verification data in response to the current network state being an offline state includes: after a user terminal receives the offline identification code from the network platform server and displays the offline identification code, analyzing the offline identification code displayed by the user terminal to obtain information of the offline identification code, wherein the information of the offline identification code is the first check data, and the user terminal is computing equipment of the target user.
4. The method of claim 2 or 3, further comprising: sending network heartbeat to the network platform server according to a preset time interval; if feedback information of the network platform server for the network heartbeat is received, determining that the current network state is an online state; if the network heartbeat is failed to be sent or the feedback information of the network platform server aiming at the network heartbeat is not received, determining that the current network state is an offline state;
or receiving the network heartbeat sent by the network platform server, and if the network heartbeat sent by the network platform server is not received within a preset time interval, determining that the current network state is an offline state.
5. The method of claim 1, wherein the determining whether to open the target shelf based on the decryption result comprises:
responding to decryption to obtain first cabinet opening data, determining a target cabinet lattice corresponding to the first cabinet opening data, and determining to open the target cabinet lattice;
or, in response to the first cabinet opening data which cannot be obtained through decryption, determining that the target cabinet lattice cannot be opened;
the first cabinet opening data are used for representing the opening authority of the target cabinet lattice of the intelligent cabinet.
6. The method of claim 5, wherein the target bin corresponds to a valid open time limit, and wherein the determining to open the target bin comprises: acquiring a time identifying the time at which the first collation data is obtained or the time at which the decryption result is obtained; and if the time does not exceed the effective opening time limit corresponding to the target cabinet grid, determining to open the target cabinet grid.
7. The method of claim 1, wherein the determining whether to open the target shelf based on the decryption result comprises:
acquiring first cabinet opening data obtained through decryption, wherein the first cabinet opening data are used for representing the opening authority of a target cabinet grid of the intelligent cabinet;
second cabinet opening data which are locally generated and used for approving the opening authority of the target cabinet grid are obtained;
and comparing the first cabinet opening data with the second cabinet opening data, and determining to open the target cabinet grid if the first cabinet opening data is matched with the second cabinet opening data.
8. The method of claim 7, further comprising: encrypting the second cabinet opening data by using a target encryption key in advance to obtain second check data corresponding to the target cabinet lattice;
the acquiring second cabinet opening data which is locally generated and used for approving the opening authority of the target cabinet grid includes:
determining the information of the target cabinet grid according to the first cabinet opening data;
and determining the second check data corresponding to the target cabinet lattice according to the information of the target cabinet lattice, and decrypting the second check data by using the target decryption key to obtain the second cabinet opening data.
9. The method of claim 7, wherein the first locker data comprises: the identification information of the target cabinet lattice and the effective opening time limit information corresponding to the target cabinet lattice;
correspondingly, the second cabinet opening data comprises: the first approval information is used for approving the identification information of the target cabinet and the second approval information is used for approving the effective opening time limit information.
10. The method of claim 9, further comprising:
and if the identification information of the target cabinet lattice is not matched with the first approval information and/or the effective opening time limit information corresponding to the target cabinet lattice is not matched with the second approval information, determining that the target cabinet lattice cannot be opened, and outputting prompt information that the target cabinet lattice cannot be opened.
11. A data processing method is applied to a network platform server and comprises the following steps:
responding to that a network state corresponding to a server of an intelligent cabinet is an off-line state, encrypting the opening authority of a target cabinet grid of the intelligent cabinet by adopting a preset encryption mode, and obtaining first check data, wherein the intelligent cabinet is used for storing and delivering articles by delivering resources, the first check data is provided by a user terminal, and the first check data is issued to the user terminal of a target user by a network platform server; the first check data is data obtained after the network platform server encrypts first cabinet opening data in a preset encryption mode, or the first check data is an offline identification code generated by the network platform server according to the first cabinet opening data by adopting a preset identification code generation mechanism, wherein the first cabinet opening data is used for representing the opening authority of a target user on a target cabinet lattice of the intelligent cabinet;
providing the first check data to a user terminal, providing the first check data to a server of the intelligent cabinet by the user terminal, so that the server of the intelligent cabinet can decrypt the first check data in a preset decryption mode after identifying and obtaining the first check data, and determining whether to open the target cabinet lattice based on a decryption result, wherein the decrypting the first check data in the preset decryption mode comprises the following steps: and the server of the intelligent cabinet decrypts the first verification data by adopting a preset decryption mode which is appointed by the network platform server and corresponds to the preset encryption mode.
12. The method of claim 11, further comprising: and responding to the fact that the network state corresponding to the server of the intelligent cabinet is an off-line state, acquiring user data corresponding to the intelligent cabinet, and determining a user corresponding to the user data as a target user corresponding to the user terminal.
13. The method according to claim 11, wherein the encrypting the opening authority of the target cabinet of the intelligent cabinet by using the predetermined encryption mode to obtain the first check data comprises:
and generating an offline identification code according to the opening authority of the target cabinet lattice of the intelligent cabinet by adopting a preset identification code generation mechanism, and determining the offline identification code as the first check data.
14. The method of claim 11, further comprising:
and generating an off-line identification code according to the first check data.
15. The method according to claim 13 or 14, wherein said providing said first collation data to the user terminal comprises:
and sending the offline identification code to the user terminal.
16. A data processing method is applied to a network platform server and comprises the following steps:
receiving a cabinet opening request sent by a user terminal of a target user, wherein the cabinet opening request comprises an identifier of an intelligent cabinet, and the intelligent cabinet is used for storing and delivering articles for delivering resources;
acquiring a network state corresponding to a server of the intelligent cabinet based on the identification of the intelligent cabinet;
responding to the fact that the network state is an offline state, encrypting first cabinet opening data to obtain first checking data, wherein the first cabinet opening data are used for representing the opening authority of the target user to the target cabinet lattice of the intelligent cabinet, the first checking data are provided by a user terminal, and the first checking data are issued to the user terminal of the target user by a network platform server; the first check data is data obtained after the network platform server encrypts the first open cabinet data in a preset encryption mode, or the first check data is an offline identification code generated by the network platform server according to the first open cabinet data by adopting a preset identification code generation mechanism; the off-line state refers to a network state between a network platform server and a server of the intelligent cabinet;
providing the first verification data to the user terminal, providing the first verification data to a server of the intelligent cabinet by the user terminal, so that the server of the intelligent cabinet can decrypt the first verification data in a preset decryption mode after identifying and obtaining the first verification data, and determining whether to open the target cabinet lattice based on a decryption result, wherein the decrypting the first verification data in the preset decryption mode comprises the following steps: and the server of the intelligent cabinet decrypts the first check data by adopting a preset decryption mode which is agreed with the network platform server and corresponds to the preset encryption mode.
17. A cabinet opening method is applied to a user terminal and comprises the following steps:
receiving first check data, wherein the first check data are obtained by encrypting the opening authority of a target cabinet lattice of an intelligent cabinet after a network platform server determines that the server of the intelligent cabinet is in an off-line state, and the intelligent cabinet is used for storing and delivering delivered articles by a delivery resource, the first check data are obtained by encrypting first cabinet opening data by the network platform server in a preset encryption mode, or the first check data are off-line identification codes generated by the network platform server according to the first cabinet opening data by adopting a preset identification code generation mechanism, and the first cabinet opening data are used for representing the opening authority of a target user on the target cabinet lattice of the intelligent cabinet;
providing the first check data to a server of the intelligent cabinet, so that the server of the intelligent cabinet decrypts the first check data by adopting a preset decryption mode, and determines whether to open the target cabinet lattice based on a decryption result, wherein the decrypting the first check data by adopting the preset decryption mode comprises the following steps: and the server of the intelligent cabinet decrypts the first check data by adopting a preset decryption mode which is agreed with the network platform server and corresponds to the preset encryption mode.
CN202110445624.4A 2020-12-14 2020-12-14 Intelligent cabinet opening method, data processing method and device and intelligent cabinet application system Active CN113140079B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110445624.4A CN113140079B (en) 2020-12-14 2020-12-14 Intelligent cabinet opening method, data processing method and device and intelligent cabinet application system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110445624.4A CN113140079B (en) 2020-12-14 2020-12-14 Intelligent cabinet opening method, data processing method and device and intelligent cabinet application system
CN202011461573.6A CN112216038B (en) 2020-12-14 2020-12-14 Intelligent cabinet opening method, data processing method and device and intelligent cabinet application system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202011461573.6A Division CN112216038B (en) 2020-12-14 2020-12-14 Intelligent cabinet opening method, data processing method and device and intelligent cabinet application system

Publications (2)

Publication Number Publication Date
CN113140079A CN113140079A (en) 2021-07-20
CN113140079B true CN113140079B (en) 2023-03-17

Family

ID=74067989

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202110445624.4A Active CN113140079B (en) 2020-12-14 2020-12-14 Intelligent cabinet opening method, data processing method and device and intelligent cabinet application system
CN202011461573.6A Active CN112216038B (en) 2020-12-14 2020-12-14 Intelligent cabinet opening method, data processing method and device and intelligent cabinet application system

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202011461573.6A Active CN112216038B (en) 2020-12-14 2020-12-14 Intelligent cabinet opening method, data processing method and device and intelligent cabinet application system

Country Status (1)

Country Link
CN (2) CN113140079B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112735050B (en) * 2021-01-14 2022-07-22 拉扎斯网络科技(上海)有限公司 Cabinet opening processing method, device and system based on intelligent cabinet
CN112907843A (en) * 2021-03-05 2021-06-04 上海有个机器人有限公司 Self-service cabinet access method and system based on weak network environment
CN114373267B (en) * 2022-01-11 2023-09-19 拉扎斯网络科技(上海)有限公司 Intelligent cabinet opening method and device and electronic equipment
CN114724312B (en) * 2022-05-16 2022-09-20 北京三快在线科技有限公司 Cabinet opening method, device and equipment of storage cabinet and computer readable storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006116108A2 (en) * 2005-04-22 2006-11-02 Redbox Automated Retail, L.L.C. System and method for regulating vendible media products
CN106846654A (en) * 2017-01-25 2017-06-13 广州极酷物联智能科技有限公司 Intelligent storage cabinet, system and access bag method
US20180253786A1 (en) * 2017-03-03 2018-09-06 Tangible, L.L.C. Systems and methods for locker rental and operation
CN108734423A (en) * 2017-04-19 2018-11-02 北大方正集团有限公司 Intelligent express delivery cabinet and intelligent express delivery cabinet control system
CN108805640B (en) * 2017-04-27 2022-02-01 北京京东振世信息技术有限公司 Method, system and device for determining rights
CN107146339A (en) * 2017-04-28 2017-09-08 徐华静 A kind of offline internet express delivery cabinet and its control system and control method
CN107147804A (en) * 2017-06-21 2017-09-08 赵永东 The passing control system and method and controller of a kind of intelligence community
CN108615284A (en) * 2018-04-17 2018-10-02 上海凡米智能科技有限公司 A kind of Quick Response Code dynamic access control system and unlocking method to work offline
CN110895839A (en) * 2018-09-13 2020-03-20 杭州涂鸦信息技术有限公司 Intelligent door lock unlocking method and device in network-free state
CN109803024B (en) * 2019-01-28 2021-12-21 北京中科晶上科技股份有限公司 Method for cluster node network
CN109979116B (en) * 2019-04-01 2021-04-20 深圳市摩线科技有限公司 Offline password encryption method for equipment leasing

Also Published As

Publication number Publication date
CN113140079A (en) 2021-07-20
CN112216038A (en) 2021-01-12
CN112216038B (en) 2021-03-09

Similar Documents

Publication Publication Date Title
CN113140079B (en) Intelligent cabinet opening method, data processing method and device and intelligent cabinet application system
EP4191430A1 (en) Data processing method and apparatus applied to blockchain system
EP3029591A1 (en) Method for unlocking administration authority and device for authentication
EP3220573B1 (en) Method and system for controlling encryption of information and analyzing information as well as terminal
WO2019028026A1 (en) A secure and confidential custodial transaction system, method and device using zero-knowledge protocol
CN103714635A (en) POS terminal and terminal master key downloading mode configuration method thereof
CN104601325A (en) Data encryption method, device, equipment and system and data decryption method, device, equipment and system
CN110830242A (en) Key generation and management method and server
CN109241705A (en) A kind of software authorization method and system
CN112532629B (en) Data transmission method, device, equipment and medium
CN110708291B (en) Data authorization access method, device, medium and electronic equipment in distributed network
US11652640B2 (en) Systems and methods for out-of-band authenticity verification of mobile applications
CN112507325B (en) Method, device, equipment and storage medium for managing equipment access authority
CN109347839A (en) Centralized password management method and centralized password management, device, electronic equipment and computer storage medium
CN113065857A (en) Data processing method, device, equipment, medium and product in payment process
CN111865897A (en) Cloud service management method and device
CN107172165B (en) Data synchronization method and device
CN113595962B (en) Safety control method and device and safety control equipment
CN114117388A (en) Device registration method, device registration apparatus, electronic device, and storage medium
CN113660657B (en) Secret-related carrier management method, device and equipment
CN114793220B (en) Instant message communication method, device, program, medium, and apparatus
CN110719264B (en) Information processing method and device, electronic equipment and storage medium
CN113609512B (en) Method and device for acquiring key used during interaction between client and database
CN114339630B (en) Method and device for protecting short message
US20230351001A1 (en) Secure authentication

Legal Events

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