Method and device for renting power bank under dual verification
Through the dual-verified power bank rental method, the problem of low rental efficiency in the existing technology has been solved, and more efficient power bank rental and utilization rate has been achieved.
Patent Information
- Application Number
- CN202411824335.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-11
- Publication Date
- 2025-04-25
AI Technical Summary
The existing power bank rental method has low rental efficiency and reduced rental frequency due to single payment verification.
The power bank rental method is adopted by two-factor verification. By obtaining the cabinet information and power bank information of the rental equipment, and verifying the information. After the verification is passed, the power bank is sent to the rental equipment to make the power bank pop up and update its status to be in use.
It improves the efficiency and frequency of power bank rental, enhances the accuracy of the verification of the rental environment, ensures the accuracy and efficiency of the flash power command, and improves the utilization rate of power bank and the control efficiency of the rental process.
Smart Images

Figure CN119887356A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power bank rental, and in particular to a method and device for renting a power bank under double verification. Background Art
[0002] Currently, when electronic devices (such as mobile phones, tablets, etc.) have little remaining power and the user forgets to bring a power bank, they can charge them by renting a shared power bank.
[0003] However, practice has found that when renting existing power banks, users usually need to use the electronic device to scan the QR code of the cabinet to pay. This single payment rental method is not conducive to the rental efficiency of power banks and easily leads to a decrease in the rental frequency of power banks. It can be seen that it is particularly important to propose a technical solution to increase the rental frequency of power banks. Summary of the invention
[0004] The present invention provides a method and device for renting a power bank under double verification, which can improve the rental efficiency of the power bank and is conducive to increasing the rental frequency of the power bank.
[0005] In order to solve the above technical problems, the first aspect of the present invention discloses a method for renting a power bank under double verification, the method comprising:
[0006] When a request for renting a power bank is detected for the rental device, the target end obtains the cabinet information of the rental device and the power bank information in the rental device, and the target end includes a POS device and / or a server;
[0007] The target end verifies the cabinet information and the power bank information;
[0008] When the verification is passed, the target end sends a power-up instruction of the target power bank to the rental device, so that the rental device pops up the target power bank to the user who triggers the power bank rental request;
[0009] The target end executes an operation of updating the status of the target power bank to an in-use status according to the first operation information sent by the rental device.
[0010] As an optional implementation, in the first aspect of the present invention, when the target end is the POS device, when detecting that the target card is in a card swiping state, the POS device determines that a request for renting a power bank is detected for the rental device;
[0011] When the target end is the server, when detecting that the identification code on the rental device is scanned by the user terminal, the server determines that a request for renting a power bank is detected for the rental device;
[0012] And, when the target end is the POS device, the target end executes an operation of updating the state of the target power bank to an in-use state according to the first operation information sent by the rental device, including:
[0013] The POS device detects the first operation information sent by the rental device, and when it is detected that the first operation information is used to indicate that the rental device successfully ejects the target power bank, the POS device sends a successful ejection result to the server, so that the server updates the status of the target power bank to an in-use status according to the successful ejection result.
[0014] As an optional implementation, in the first aspect of the present invention, when the target end is the server, after the target end sends a power-on instruction of the target power bank to the rental device, the method further includes:
[0015] The server generates a first delay task for the elastic power instruction;
[0016] And, the target end executes an operation of updating the state of the target power bank to an in-use state according to the first operation information sent by the rental device, including:
[0017] The server determines, according to the first delayed task and the first operation information sent by the rental device, whether there is a result of the rental device charging the target power bank in the first operation information received within the time limit of the first delayed task;
[0018] When it is determined that the power-on result exists, the server determines whether the power-on result is used to indicate that the target power bank is successfully powered on;
[0019] When it is determined that the power-on result indicates that the target power bank is successfully powered on, the server executes an operation of updating the state of the target power bank to an in-use state;
[0020] When it is determined that the power-on result does not exist, the server generates a battery query instruction and a second delay task for the target power bank, and according to the battery query instruction and the second delay task, executes an operation to update the status of the target power bank to an in-use status.
[0021] As an optional implementation, in the first aspect of the present invention, the server executes an operation of updating the state of the target power bank to an in-use state according to the battery query instruction and the second delay task, including:
[0022] The server obtains, according to the second delayed task, second operation information sent by the rental device within the time limit of the second delayed task;
[0023] The server determines whether there is a query result of the rental device for the battery query instruction in the second operation information, and obtains a query instruction judgment result;
[0024] The server executes an operation of updating the status of the target power bank to an in-use status according to a judgment result of the query instruction.
[0025] As an optional implementation, in the first aspect of the present invention, the server executes an operation of updating the status of the target power bank to an in-use status according to the query instruction judgment result, including:
[0026] When the query instruction determines that the query result does not exist in the second operation information, the server detects the current state of the target power bank;
[0027] When it is detected that the current state of the target power bank is a preset pre-order state, the server executes an operation of updating the state of the target power bank to an in-use state;
[0028] When the query instruction determines that the query result exists in the second operation information, the server determines whether the query result is used to indicate whether the target power bank has a preset query data packet;
[0029] When it is determined that the query result indicates that there is no result of the query data packet, the server updates the status of the target power bank to an order failure status;
[0030] When it is determined that the query result is used to indicate the existence of the result of the query data packet, the server executes an operation of updating the status of the target power bank to an in-use status.
[0031] As an optional implementation, in the first aspect of the present invention, when the target end is the server, the target end sends a power-up instruction of the target power bank to the rental device, so that the rental device pops up the target power bank to the user who triggers the power bank rental request, including:
[0032] The server returns the code scanning related information to the user terminal for the user who triggers the power bank rental request to confirm whether to rent the target power bank of the rental device;
[0033] When detecting the rental feedback of the target power bank confirmed by the user terminal, the server sends a power ejection instruction of the target power bank to the rental device, so that the rental device ejects the target power bank to the user.
[0034] As an optional implementation, in the first aspect of the present invention, before the target end sends a power-on instruction of the target power bank to the rental device so that the rental device pops up the target power bank to the user who triggers the power bank rental request, the method further includes:
[0035] The target end obtains a first object identifier of the user and first user information of the user, wherein the first object identifier may include a target card identifier based on a rental method of the POS device or a user account identifier based on a user terminal rental method of the server;
[0036] The target end obtains second user information matching the first object identifier from a preset database according to the first object identifier, and obtains a second object identifier matching the first user information from the database according to the first user information;
[0037] The target end verifies the first user information and the second user information to obtain a user verification result, and verifies the first object identifier and the second object identifier to obtain an identifier verification result; when the user verification result and the identifier verification result both indicate that the verification is passed, the target end is triggered to execute the power-pop-up instruction of sending the target power bank to the rental device, so that the rental device pops up the target power bank to the user who triggered the power bank rental request.
[0038] The second aspect of the present invention discloses a device for renting a power bank under double verification, the device comprising:
[0039] An acquisition module, for acquiring cabinet information of the rental device and information of the power bank in the rental device when a request for renting a power bank is detected for the rental device, wherein the target end includes a POS device and / or a server;
[0040] A verification module, used to verify the cabinet information and the power bank information;
[0041] A sending module, configured to send a power ejection instruction of a target power bank to the rental device when the verification is passed, so that the rental device ejects the target power bank to the user who triggers the power bank rental request;
[0042] The execution module is used to execute the operation of updating the status of the target power bank to the in-use status according to the first operation information sent by the rental device.
[0043] As an optional implementation, in the second aspect of the present invention, the device further includes:
[0044] A determination module, for determining that a request for renting a power bank is detected on a rental device when the target end is the POS device and when a target card in a card swiping state is detected;
[0045] The determination module is further configured to, when the target end is the server and when it is detected that the identification code on the rental device is scanned by the user terminal, determine that a request for renting a power bank is detected for the rental device;
[0046] And, when the target end is the POS device, the execution module executes the operation of updating the status of the target power bank to the in-use status according to the first operation information sent by the rental device, specifically including:
[0047] Detect the first operation information sent by the rental device, and when it is detected that the first operation information is used to indicate that the rental device successfully ejects the target power bank, send a successful ejection result to the server, so that the server updates the status of the target power bank to an in-use status according to the successful ejection result.
[0048] As an optional implementation, in the second aspect of the present invention, the device further includes:
[0049] A generating module, for generating a first delayed task for the power-on instruction after the sending module sends the power-on instruction of the target power bank to the rental device when the target end is the server;
[0050] And, the execution module executes an operation of updating the status of the target power bank to an in-use status according to the first operation information sent by the rental device, including:
[0051] According to the first delayed task and the first operation information sent by the rental device, determining whether there is a result of the rental device charging the target power bank in the first operation information received within the time limit of the first delayed task;
[0052] When it is determined that the power-on result exists, determining whether the power-on result is used to indicate that the target power bank is successfully powered on;
[0053] When it is determined that the power-on result indicates that the target power bank is successfully powered on, an operation of updating the state of the target power bank to an in-use state is performed;
[0054] When it is determined that the power-on result does not exist, a battery query instruction and a second delay task are generated for the target power bank, and according to the battery query instruction and the second delay task, an operation of updating the status of the target power bank to an in-use status is executed.
[0055] As an optional implementation, in the second aspect of the present invention, the execution module executes the operation of updating the state of the target power bank to the in-use state according to the battery query instruction and the second delay task, specifically including:
[0056] According to the second delayed task, obtaining second operation information sent by the rental device within the time limit of the second delayed task;
[0057] Determine whether there is a query result of the rental device for the battery query instruction in the second operation information, and obtain a query instruction judgment result;
[0058] According to the query instruction judgment result, an operation of updating the status of the target power bank to an in-use status is executed.
[0059] As an optional implementation, in the second aspect of the present invention, the execution module executes the operation of updating the status of the target power bank to the in-use status according to the query instruction judgment result, specifically including:
[0060] When the query instruction determines that the query result does not exist in the second operation information, detecting the current state of the target power bank;
[0061] When it is detected that the current state of the target power bank is a preset pre-order state, an operation of updating the state of the target power bank to an in-use state is executed;
[0062] When the query instruction determines that the query result exists in the second operation information, determining whether the query result is used to indicate whether the target power bank has a preset query data packet;
[0063] When it is determined that the query result is used to indicate that the query data packet does not exist, updating the status of the target power bank to an order failure status;
[0064] When it is determined that the query result is used to indicate the existence of the query data packet, an operation of updating the status of the target power bank to an in-use status is performed.
[0065] As an optional implementation, in the second aspect of the present invention, when the target end is the server, the sending module sends a power-up instruction of the target power bank to the rental device, so that the rental device pops up the target power bank to the user who triggers the power bank rental request. Specifically, the method includes:
[0066] The server returns the code scanning related information to the user terminal for the user who triggers the power bank rental request to confirm whether to rent the target power bank of the rental device;
[0067] When detecting the rental feedback of the target power bank confirmed by the user terminal, the server sends a power ejection instruction of the target power bank to the rental device, so that the rental device ejects the target power bank to the user.
[0068] As an optional implementation, in the second aspect of the present invention, the acquisition module is further used to obtain the first object identifier of the user and the first user information of the user before the sending module sends the ejection instruction of the target power bank to the rental device, so that the rental device ejects the target power bank to the user who triggers the power bank rental request. The first object identifier may include a target card identifier based on the rental method of the POS device or a user account identifier based on the user terminal rental method of the server;
[0069] The acquisition module is further configured to acquire second user information matching the first object identifier from a preset database according to the first object identifier, and acquire a second object identifier matching the first user information from the database according to the first user information;
[0070] The verification module is also used to verify the first user information and the second user information to obtain a user verification result, and to verify the first object identifier and the second object identifier to obtain an identifier verification result; when the user verification result and the identifier verification result both indicate that the verification is passed, the sending module is triggered to execute the power-pop-up instruction of sending the target power bank to the rental device, so that the rental device pops up the target power bank to the user who triggered the power bank rental request.
[0071] The third aspect of the present invention discloses another device for renting a power bank under double verification, the device comprising:
[0072] A memory storing executable program code;
[0073] a processor coupled to the memory;
[0074] The processor calls the executable program code stored in the memory to execute the method for renting a power bank under double verification disclosed in the first aspect of the present invention.
[0075] The fourth aspect of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute the method for renting a power bank under double verification disclosed in the first aspect of the present invention.
[0076] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0077] In an embodiment of the present invention, when a request for renting a power bank is detected on a rental device, the target end obtains the cabinet information of the rental device and the power bank information in the rental device, and the target end includes a POS device and / or a server; the target end verifies the cabinet information and the power bank information; when the verification passes, the target end sends a power-pop-up instruction of the target power bank to the rental device, so that the rental device pops up the target power bank to the user who triggers the power bank rental request; the target end executes an operation to update the status of the target power bank to an in-use status according to the first operation information sent by the rental device. It can be seen that the implementation of the present invention can provide a power bank rental method that is verified through multiple information, which is beneficial to improving the verification accuracy of the power bank rental environment, thereby helping to improve the success rate and efficiency of power bank rental, and can send the corresponding power-up command to the rental device in a timely manner when the verification is passed, thereby improving the accuracy and efficiency of sending the power-up command, thereby improving the pop-up accuracy and efficiency of the target power bank, and can improve the rental efficiency of the power bank, and through the POS machine and server scanning code rental, the multi-channel flexibility of equipment rental is improved, thereby improving the rental efficiency of the power bank, and then improving the utilization rate of the power bank, and can also improve the accuracy and timeliness of the target end's update of the target power bank status when the target power bank is successfully rented, which is convenient for promoting the subsequent rental process of other power banks, and is beneficial to improving the efficiency and speed of the target end controlling the power bank rental process, and further conducive to improving the rental efficiency of the power bank. BRIEF DESCRIPTION OF THE DRAWINGS
[0078] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0079] Figure 1 It is a flowchart of a method for renting a power bank under double verification disclosed in an embodiment of the present invention;
[0080] Figure 2 It is a flowchart of another method for renting a power bank under double verification disclosed in an embodiment of the present invention;
[0081] Figure 3 It is a structural schematic diagram of a device for renting a power bank under double verification disclosed in an embodiment of the present invention;
[0082] Figure 4 It is a structural schematic diagram of another device for renting a power bank under double verification disclosed in an embodiment of the present invention;
[0083] Figure 5 It is a structural schematic diagram of another device for renting power banks under double verification disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0084] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0085] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or end including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or ends.
[0086] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0087] The present invention discloses a method and device for renting a power bank under double verification. When a power bank rental request is detected in the rental device, the cabinet information of the rental device and the power bank information in the rental device can be obtained through a target end. The target end includes a POS device and / or a server, and double verification is performed on the cabinet information and the power bank information. A power bank rental method for verifying through multiple information is provided, which is beneficial to improving the verification accuracy of the power bank rental environment, thereby facilitating improving the success rate and efficiency of renting the power bank. When the verification is passed, a power-on command of a target power bank is sent to the rental device through the target end, so that the rental device ejects the target power bank to the user who triggered the power bank rental request. When the verification is passed, a corresponding power-on command can be sent to the rental device in a timely manner. The power-up command improves the accuracy and efficiency of sending the power-up command, thereby improving the accuracy and efficiency of popping up the target power bank, and can improve the efficiency of renting the power bank. The multi-channel flexibility of equipment rental is improved through POS and server scanning code rental, thereby improving the efficiency of renting the power bank, and then improving the utilization rate of the power bank. Finally, the target end executes the operation of updating the status of the target power bank to the in-use status according to the first operation information sent by the rental device. When the target power bank is successfully rented, the accuracy and timeliness of the target end's update of the target power bank's status can be improved, which is convenient for promoting the subsequent rental process of other power banks, and is conducive to improving the efficiency and speed of the target end's control of the power bank rental process, and further conducive to improving the efficiency of renting the power bank. The following are detailed descriptions.
[0088] Embodiment 1
[0089] See also Figure 1 , Figure 1 The present invention discloses a method for renting a power bank under double verification. Figure 1 The described method for renting a power bank under double verification can be applied to a POS device that matches the power bank rental device, or can be applied to a server that matches the power bank rental device, wherein the server may include a cloud server or a local server, which is not limited in the embodiments of the present invention. Figure 1 As shown, the method for renting a power bank under double verification may include the following operations:
[0090] 101. When a request for renting a power bank is detected for the rental device, the target end obtains cabinet information of the rental device and information about the power bank in the rental device.
[0091] In an embodiment of the present invention, the target end includes a POS device and / or a server. Optionally, the cabinet information of the rental equipment may include the cabinet status of the rental equipment, and the cabinet status may be used to indicate that the rental equipment is in a normal operating state, or that the rental equipment is not in a normal operating state (such as an abnormal operating state, equipment maintenance state, etc.). The power bank information may include the current remaining number of power banks in the rental equipment, the current remaining power of each power bank, the current state of each power bank (such as: charging state, waiting to be used state, etc.) and the order of each power bank (the order of each power bank can be obtained by sorting according to the remaining power of each power bank), which is not limited in the embodiment of the present invention.
[0092] 102. The target end verifies the cabinet information and the power bank information.
[0093] In the embodiment of the present invention, when the verification result of step 102 indicates that the verification is passed, step 103 can be triggered to be executed; when the verification result of step 102 indicates that the verification is not passed, the present process can be terminated.
[0094] In an embodiment of the present invention, when the target end is a POS device, the target end verifies the cabinet information and the power bank information, which may include: when the POS device sends a verification instruction for the cabinet information and the power bank information to the rental device, so that the rental device verifies the cabinet information and the power bank information, specifically, the rental device verifies whether the cabinet status contained in the cabinet information is in a normal operating state, and verifies whether the number of power banks contained in the power bank information is sufficient and whether the status of each power bank is in a normal state, and when it is verified that the cabinet is in a normal operating state, the number of power banks is sufficient and the status of each power bank is normal, it is determined that the cabinet information and the power bank information verification has passed.
[0095] Specifically, when the target end is a server, the target end verifies the cabinet information and the power bank information, which may include: the server obtains scanning information of the identification code on the rental device sent by the user terminal; and obtains the initial identification code of one or more rental devices in normal operation stored in the rental device database of the server;
[0096] The server compares the identification code indicated in the scanning information with all the initial identification codes to obtain an image comparison result;
[0097] When the image comparison result is used to indicate that the identification code does not belong to the identification code in the rental equipment database, the server determines that the cabinet information verification fails;
[0098] When the image comparison result indicates that the identification code belongs to an identification code in the rental equipment database, the server determines that the cabinet information verification has passed; and obtains equipment inventory information matching the identification code from the rental equipment database;
[0099] The server determines whether the device inventory information is used to indicate whether the current remaining number of power banks in the rental device is greater than or equal to a preset number, and whether there is at least one power bank whose current remaining power is greater than or equal to a preset power;
[0100] When it is determined that the current remaining number of power banks in the rental device is greater than or equal to the preset number, and the current remaining power of at least one power bank is greater than or equal to the preset power, the server determines that the power bank information verification has passed;
[0101] When it is determined that the current remaining number of power banks in the rental device is less than the preset number, and / or the current remaining power of all power banks is less than the preset power, the server determines that the power bank information does not pass the verification.
[0102] 103. The target end sends a power ejection instruction of the target power bank to the rental device, so that the rental device ejects the target power bank to the user who triggers the power bank rental request.
[0103] In an embodiment of the present invention, the above-mentioned power-on instruction of the target power bank is used to represent an instruction to pop up the target charging table. The power-on instruction may include an SN power-on instruction, where SN is used to represent a serial number. Optionally, the serial number in the SN power-on instruction may include the device serial number of the rental device, and may also include the power bank serial number of the power bank that needs to be powered on in the rental device, which is not limited in the embodiment of the present invention.
[0104] 104. The target end executes an operation of updating the status of the target power bank to an in-use status according to the first operation information sent by the rental device.
[0105] In an embodiment of the present invention, the first operation information may include information returned to the target end after the rental device performs an elastic operation matching the elastic instruction, or may include information returned to the target end after the rental device performs a preset fixed operation (such as scheduled inspection, scheduled verification, etc.), which is not limited in the embodiment of the present invention.
[0106] It can be seen that implementation Figure 1The described method for renting a power bank under double verification can, when a power bank rental request is detected for the rental device, obtain the cabinet information of the rental device and the power bank information in the rental device through the target end, the target end includes a POS device and / or a server, and double-checks the cabinet information and the power bank information, providing a power bank rental method that is verified through multiple information, which is beneficial to improving the verification accuracy of the power bank rental environment, thereby facilitating improving the success rate and efficiency of power bank rental, and when the verification is passed, sending a power-up instruction of the target power bank to the rental device through the target end, so that the rental device pops up the target power bank to the user who triggered the power bank rental request, and can send the corresponding power-up instruction to the rental device in a timely manner when the verification is passed. , improves the accuracy and efficiency of sending the power-up command, thereby improving the accuracy and efficiency of popping up the target power bank, and can improve the rental efficiency of the power bank, and through the POS machine and server scanning code rental, improves the multi-channel flexibility of equipment rental, thereby improving the rental efficiency of the power bank, and then improves the utilization rate of the power bank, and finally, the target end executes the operation of updating the status of the target power bank to the in-use status according to the first operation information sent by the rental device, which can improve the accuracy and timeliness of the target end's update of the target power bank status when the target power bank is successfully rented, which is convenient for promoting the subsequent rental process of other power banks, and is conducive to improving the efficiency and speed of the target end in controlling the power bank rental process, and further conducive to improving the rental efficiency of the power bank.
[0107] In an optional embodiment, the method may further include:
[0108] When the target end is a POS device, and when a target card is detected to be in a card swiping state, the POS device determines that a request for renting a power bank is detected by the rental device;
[0109] When the target end is a server, and when it is detected that the identification code on the rental device is scanned by the user terminal, the server determines that a power bank rental request is detected for the rental device.
[0110] In the embodiment of the present invention, specifically, when the target end is a POS device, the rental method of the power bank rental device is a POS rental method, and when the target end is a server, the rental method of the power bank rental device is an APK code scanning rental method.
[0111] It can be seen that this optional embodiment can, when the target end is a POS device, determine through the POS device that a power bank rental request is detected for the rental device when a target card in a swiping state is detected, and can improve the accuracy and efficiency of determining that the rental mode is the POS rental mode when the target card in the swiping state is detected; and when the target end is a server, when it is detected that the identification code on the rental device is scanned by the user terminal, determine through the server that a power bank rental request is detected for the rental device, and can improve the accuracy and efficiency of determining that the rental mode is the APK rental mode when the identification code on the rental device is scanned by the user terminal, and can realize multi-channel rental methods of rental equipment through the identification codes on the POS device and the rental device, which is conducive to improving the multi-channel flexibility of renting power banks.
[0112] In another optional embodiment, when the target end is a POS device, the target end in the above step 104 performs an operation of updating the state of the target power bank to the in-use state according to the first operation information sent by the rental device, which may include:
[0113] The POS device detects the first operation information sent by the rental device, and when the first operation information is detected to indicate that the rental device successfully ejects the target power bank, the POS device sends a successful ejection result to the server, so that the server updates the status of the target power bank to an in-use status according to the successful ejection result.
[0114] In an embodiment of the present invention, specifically, when it is detected that the first operation information is used to indicate that the rental device has not successfully ejected the target power bank, the present process can be terminated, or the POS device sends a self-test instruction to the rental device to trigger the rental device to detect the current condition of the rental device, and when it is detected that the current condition of the rental device does not meet the preset rental conditions (such as insufficient power of the power bank, insufficient number of power banks, etc.), the present process is terminated.
[0115] It can be seen that this optional embodiment can detect the first operation information sent by the rental device through the POS device when the target end is a POS device, and when the first operation information is detected to indicate that the rental device successfully pops out the target power bank, the POS device sends a successful pop-up result to the server, so that the server updates the status of the target power bank to the in-use status according to the successful pop-up result, and can improve the accuracy and efficiency of updating the status of the target power bank based on the POS device and the first operation information.
[0116] In another optional embodiment, before the target end sends a power-up instruction of the target power bank to the rental device so that the rental device pops up the target power bank to the user who triggers the power bank rental request, the method may further include:
[0117] The target end obtains the first object identifier of the user and the first user information of the user;
[0118] The target end obtains the second user information matching the first object identifier from a preset database according to the first object identifier, and obtains the second object identifier matching the first user information from the database according to the first user information;
[0119] The target end verifies the first user information and the second user information to obtain a user verification result, and verifies the first object identifier and the second object identifier to obtain an identifier verification result; when the user verification result and the identifier verification result both indicate that the verification is passed, the target end is triggered to execute an instruction to send a power-pop-up instruction to the rental device to cause the rental device to pop up the target power bank to the user who triggered the power bank rental request.
[0120] In an embodiment of the present invention, the first object identifier may include a target card identifier for a POS device-based rental method or a user account identifier for a server-based user terminal rental method. For POS rental, the first object identifier may be a target card identifier; for user terminal APK rental, the first object identifier may be a user account identifier. Among them, the target card identifier may be the identifier of the bank card used by the user when renting through the POS method. Optionally, the target card identifier may include a combination of one or more of the bank name, bank identification code (such as: the first six digits of the BIN number of the bank card number) and the first few digits of the card number (these digits are used to further confirm the bank and type of the bank card). Optionally, the first user information may include a combination of one or more of the user name, user contact information (such as mobile phone number, email address, etc.), user account information, and information of relative users (other users with whom the user has a relative relationship), etc., which is not limited in the embodiment of the present invention.
[0121] In the embodiment of the present invention, optionally, the above-mentioned database may be a database storing information such as user information of multiple users, a target card identifier matching each user, and a user account identifier matching each user, which is not limited in the embodiment of the present invention.
[0122] In an embodiment of the present invention, optionally, when at least one of the user verification result and the identification verification result indicates that the verification fails, the target end determines that the payment environment of the power bank rental device does not meet the preset security requirements for the user to rent a power bank, and the process can be terminated at this time.
[0123] In the embodiment of the present invention, specifically, the target end verifies the first user information and the second user information to obtain the user verification result, which may include:
[0124] Comparing the first user information and the second user information to obtain a user information comparison result;
[0125] When the user information comparison result indicates that the user who is swiping the card is the same user as the user indicated by the second user information, determining the user verification result indicates that the verification is passed;
[0126] When the user information comparison result indicates that the user and the user represented by the second user information are not the same user, determining that the user verification result indicates that the verification fails; or,
[0127] When the user information comparison result indicates that the user and the user represented by the second user information are not the same user, the user verification result is determined based on the information of the relative user contained in the second user information. In this way, the first user information and the second user information can be compared to achieve accurate verification of the first user information of the user who is swiping the card, which is conducive to improving the accuracy and reliability of the verification of the first user information, thereby facilitating the subsequent verification accuracy of the payment environment of the power bank rental equipment.
[0128] Wherein, determining the user verification result according to the information of the relative user included in the second user information may include:
[0129] Determining whether the user is a relative user indicated by the second user information;
[0130] When it is determined that the user indicated by the first user information is a relative user indicated by the second user information, determining that the user verification result indicates that the verification is passed;
[0131] When it is determined that the user indicated by the first user information is not the relative user indicated by the second user information, it is determined that the user verification result indicates that the verification failed. In this way, when the first user information and the second user information are not the same user and the second user information contains the information of the relative user, by setting up a verification process for kinship, it is helpful to expand the verification scope of the users who rent the power bank rental equipment, and it is helpful to improve the verification diversity and flexibility of the information of the user who is swiping the card, and it is helpful to improve the verification reliability and accuracy of the user information who is renting, and the verification process for kinship is helpful to improve the verification intelligence of the power bank rental equipment, thereby helping to improve the user experience of the power bank rental equipment.
[0132] Specifically, verifying the first object identifier and the second object identifier to obtain an identifier verification result may include:
[0133] Comparing the first object identifier and the second object identifier to obtain an object comparison result;
[0134] When the object comparison result is used to indicate that the first object identifier is the same as the second object identifier, determining the identifier verification result indicates that the verification is passed;
[0135] When the object comparison result is used to indicate that the first object identifier and the second object identifier are different, it is determined that the identifier verification result indicates that the verification failed. In this way, by comparing the first object identifier and the second object identifier, accurate verification of the object identifier being swiped can be achieved, which is conducive to improving the verification accuracy and reliability of the first object identifier, thereby facilitating the subsequent verification accuracy of the payment environment of the power bank rental device.
[0136] It can be seen that this optional embodiment can obtain the user's first object identifier and the user's first user information through the target end, and obtain the second user information matching the first object identifier from the preset database through the target end according to the first object identifier, and obtain the second object identifier matching the first user information from the database according to the first user information, which can improve the accuracy and efficiency of obtaining the second user information and the second object identifier used as the verification standard, and then verify the first user information and the second user information respectively to obtain the user verification result, and verify the first object identifier and the second object identifier to obtain the identifier verification result; when the user verification result and the identifier verification result both indicate that the verification is passed, the target end is triggered to execute the pop-up instruction of sending the target power bank to the rental device, so that the rental device pops up the target power bank to the user who triggered the power bank rental request, and the payment environment of the power bank rental device can be verified efficiently and accurately through the dual verification of the user information and the object identifier, and the simultaneous verification of multiple information is conducive to improving the diversity and flexibility of the verification method of the payment environment of the power bank rental device, and is conducive to improving the reliability and accuracy of the verification of the payment environment.
[0137] Embodiment 2
[0138] See also Figure 2 , Figure 2 The present invention discloses a method for renting a power bank under double verification. Figure 2 The described method for renting a power bank under double verification can be applied to a POS device that matches the power bank rental device, or can be applied to a server that matches the power bank rental device, wherein the server may include a cloud server or a local server, which is not limited in the embodiments of the present invention. Figure 2 The described method of renting a power bank under double verification takes the target end including a server as an example, such as Figure 2 As shown, the method for renting a power bank under double verification may include the following operations:
[0139] 201. When detecting that a request for renting a power bank for a rental device exists, the server obtains cabinet information of the rental device and information of the power bank in the rental device.
[0140] 202. The server verifies the cabinet information and the power bank information.
[0141] In the embodiment of the present invention, when the verification result of step 202 indicates that the verification is passed, step 203 can be triggered to be executed; when the verification result of step 203 indicates that the verification is not passed, the present process can be terminated.
[0142] 203. The server sends a power-up instruction of the target power bank to the rental device, so that the rental device pops up the target power bank to the user who triggers the power bank rental request.
[0143] In the embodiment of the present invention, for other descriptions of step 201 to step 203, please refer to the detailed description of step 101 to step 103 in the first embodiment, and the embodiment of the present invention will not be repeated.
[0144] 204. The server generates a first delayed task for the spring-power instruction.
[0145] In the embodiment of the present invention, the first delayed task may be a task for indicating whether the return data of the spring-power operation corresponding to the spring-power instruction sent by the rental device is detected within the first preset period.
[0146] 205. The server determines, based on the first delayed task and the first operation information sent by the rental device, whether the first operation information received within the time limit of the first delayed task contains a result of the rental device charging the target power bank.
[0147] In the embodiment of the present invention, the power-on result may include a result that the target power bank is successfully powered on, or a result that the target power bank is unpowered.
[0148] In an embodiment of the present invention, when the judgment result of step 205 is yes, that is, when step 205 determines that there is a spring-loaded result in the first operation information received within the deadline of the first delay task, step 206 can be triggered to execute; when the judgment result of step 205 is no, that is, when step 205 determines that there is no spring-loaded result in the first operation information received within the deadline of the first delay task, step 208 can be triggered to execute.
[0149] 206. The server determines whether the power-on result is used to indicate that the target power bank is successfully powered on.
[0150] In an embodiment of the present invention, when the judgment result of step 206 is yes, that is, when step 206 determines that the power-on result is used to indicate that the target power bank is successfully powered, step 207 can be triggered for execution; when the judgment result of step 206 is no, this process can be terminated.
[0151] 207. The server executes an operation of updating the status of the target power bank to an in-use status.
[0152] 208. The server generates a battery query instruction and a second delayed task for the target power bank.
[0153] In an embodiment of the present invention, the second delay task can be used to indicate whether the return data of the query operation corresponding to the battery query instruction sent by the rental device is detected within the second preset period. The first preset period and the second preset period can be equal or unequal, for example, the second preset period can be less than the first preset period. The battery query instruction can be an instruction to query the battery information of the target power bank.
[0154] 209. The server executes an operation of updating the status of the target power bank to an in-use status according to the battery query instruction and the second delayed task.
[0155] In an embodiment of the present invention, specifically, the server sends a battery query instruction to the rental device to trigger the rental device to perform a battery query operation that matches the target power bank, and then executes an operation to update the status of the target power bank to an in-use status based on the second delayed task and the second operation information sent by the rental device.
[0156] It can be seen that implementation Figure 2The described method for renting a power bank under double verification can, when a power bank rental request is detected for the rental device, obtain the cabinet information of the rental device and the power bank information in the rental device through the target end, the target end includes a POS device and / or a server, and double-checks the cabinet information and the power bank information, providing a power bank rental method that is verified through multiple information, which is beneficial to improving the verification accuracy of the power bank rental environment, thereby facilitating improving the success rate and efficiency of power bank rental, and when the verification is passed, sending a power-up instruction of the target power bank to the rental device through the target end, so that the rental device pops up the target power bank to the user who triggered the power bank rental request, and can send the corresponding power-up instruction to the rental device in a timely manner when the verification is passed. , improves the accuracy and efficiency of sending the power-up command, thereby improving the accuracy and efficiency of popping up the target power bank, and can improve the rental efficiency of the power bank, and through the POS machine and server scanning code rental, improves the multi-channel flexibility of equipment rental, thereby improving the rental efficiency of the power bank, and then improves the utilization rate of the power bank, and finally, the target end executes the operation of updating the status of the target power bank to the in-use status according to the first operation information sent by the rental device, which can improve the accuracy and timeliness of the target end's update of the target power bank status when the target power bank is successfully rented, which is convenient for promoting the subsequent rental process of other power banks, and is conducive to improving the efficiency and speed of the target end in controlling the power bank rental process, and further conducive to improving the rental efficiency of the power bank. In addition, a first delayed task for the power-on instruction can be generated through the server, and based on the first delayed task and the first operation information sent by the rental device, it is determined whether there is a power-on result of the rental device for the target power bank in the first operation information received within the period of the first delayed task. When it is determined that there is a power-on result, it is further determined whether the power-on result is used to indicate that the target power bank has successfully powered on. When it is determined that the power-on is successful, the status of the target power bank is updated to an in-use status, thereby improving the accuracy and efficiency of updating the status of the target power bank to an in-use status. When it is determined that there is no power-on result, a battery query instruction and a second delayed task are automatically generated for the target power bank, and based on the battery query instruction and the second delayed task, an operation of updating the status of the target power bank to an in-use status is executed, thereby improving the accuracy and reliability of updating the status of the target power bank to an in-use status. In addition, the power-on instruction and its delayed task and the battery query instruction and its delayed task can improve the diversity and flexibility of the judgment methods for whether to update the status of the target power bank to an in-use status.
[0157] In an optional embodiment, the server in step 209 executes the operation of updating the status of the target power bank to the in-use status according to the battery query instruction and the second delay task, which may include:
[0158] The server obtains, according to the second delayed task, the second operation information sent by the rental device within the time limit of the second delayed task;
[0159] The server determines whether there is a query result of the rental device for the battery query instruction in the second operation information, and obtains the query instruction judgment result;
[0160] The server determines the result according to the query instruction and executes the operation of updating the status of the target power bank to the in-use status.
[0161] It can be seen that this optional embodiment can automatically obtain the second operation information sent by the rental device within the period of the second delay task through the server according to the second delay task, and determine whether there is a query result of the rental device for the battery query instruction in the second operation information, obtain the query instruction judgment result, and then execute the operation of updating the status of the target power bank to the in-use state according to the query instruction judgment result. It can accurately update the status of the target power bank to the in-use state in combination with the second delay task and the query instruction judgment result of the second operation information, which is conducive to improving the accuracy and reliability of updating the target power bank to be in-use state.
[0162] In this optional embodiment, as an optional implementation mode, the server performs an operation of updating the status of the target power bank to the in-use status according to the query instruction judgment result, which may include:
[0163] When the query instruction determines that there is no query result in the second operation information, the server detects the current state of the target power bank;
[0164] When it is detected that the current state of the target power bank is the preset pre-order state, the server executes an operation of updating the state of the target power bank to the in-use state;
[0165] When the query instruction determines that the query result exists in the second operation information, the server determines whether the query result is used to indicate whether the target power bank has a preset query data packet;
[0166] When it is determined that the query result indicates that there is no result of the query data packet, the server updates the status of the target power bank to an order failure status;
[0167] When it is determined that the query result is used to indicate the existence of the query data packet, the server executes an operation of updating the status of the target power bank to an in-use status.
[0168] In an embodiment of the present invention, optionally, when it is detected that the current state of the target power bank is not the preset pre-order state, the present process can be terminated. Optionally, the preset query data packet can be a data packet in which the battery data of the target power bank undergoes a preset change, wherein the preset change in the battery data can be a decrease in the battery power of the target power bank. Specifically, when there is a query data packet, that is, when the battery power of the target power bank decreases, it can be determined that the target power bank is charging externally, so that it can be deduced that the target power bank has been ejected by the rental device, and the state of the target power bank can be updated to the in-use state; when there is no query data packet, that is, when the battery power of the target power bank has not decreased, it can be determined that the target power bank is not charging externally, so that it can be deduced that the target power bank has not been ejected by the rental device, and the state of the target power bank can be updated to the order failure state, which is not limited by the embodiment of the present invention.
[0169] It can be seen that this optional implementation method can detect the current status of the target power bank through the server when the query instruction judgment result is that the query result does not exist in the second operation information, and when it is detected that the current status of the target power bank is a preset pre-order status, execute the operation of updating the status of the target power bank to the in-use status, thereby improving the accuracy and efficiency of updating the target power bank to the in-use status, and when the query instruction judgment result is that the query result exists in the second operation information, further judge whether the query result is used to indicate whether the target power bank has the result of the preset query data packet, when it is judged that the query result is used to indicate the result of the non-existence of the query data packet, update the status of the target power bank to the order failure status through the server, and when it is judged that the query result is used to indicate the result of the existence of the query data packet, execute the operation of updating the status of the target power bank to the in-use status, and through multiple judgment methods, the diversity and flexibility of updating the target power bank to the in-use status can be improved, which is conducive to improving the accuracy and reliability of updating the status of the target power bank.
[0170] In another optional embodiment, when the target end is a server, the target end in step 203 sends a power-up instruction of the target power bank to the rental device, so that the rental device pops up the target power bank to the user who triggers the power bank rental request, which may include:
[0171] The server returns the scan code related information to the user terminal for the user who triggers the power bank rental request to confirm whether to rent the target power bank of the rental device;
[0172] When detecting the rental feedback of confirming the target power bank reported by the user terminal, the server sends a power ejection instruction of the target power bank to the rental device, so that the rental device ejects the target power bank to the user.
[0173] In the embodiment of the present invention, optionally, the scan code related information may include one or more combinations of cabinet information of the power bank rental device, power bank information and merchant information, which is not limited in the embodiment of the present invention.
[0174] In an embodiment of the present invention, specifically, when feedback confirming that the target power bank is not to be rented is detected from the user terminal, the present process can be terminated; when feedback confirming that the target power bank is to be rented is detected from the user terminal, the server sends a power-ejecting instruction of the target power bank to the rental device, so that the rental device pops up the target power bank to the user.
[0175] It can be seen that this optional embodiment can, when the target end is a server, that is, when the user adopts the APK rental method corresponding to the user terminal that interacts with the server, return the scan code related information to the user terminal through the server, for the user who triggers the power bank rental request to confirm whether to rent the target power bank of the rental device, which is conducive to timely outputting reminder information to the user whether to confirm the rental of the target power bank, and when the rental feedback of confirming the target power bank reported by the user terminal is detected, the server sends the target power bank's power-on instruction to the rental device, so that the rental device pops up the target power bank to the user, which can improve the pop-up accuracy and efficiency of the target power bank when the user confirms the rental of the target power bank.
[0176] Embodiment 3
[0177] See also Figure 3 , Figure 3 1 is a schematic diagram of a device for renting a power bank under double verification disclosed in an embodiment of the present invention. Figure 3 The described device for renting a power bank under double verification can be applied to a POS device that matches the power bank rental device, or can be applied to a server that matches the power bank rental device, wherein the server may include a cloud server or a local server, which is not limited in the embodiment of the present invention. Figure 3 As shown, the device for renting a power bank under double verification may include:
[0178] The acquisition module 301 is used to acquire the cabinet information of the rental device and the power bank information in the rental device when a request for renting a power bank is detected in the rental device, and the target end includes a POS device and / or a server;
[0179] Verification module 302, used to verify the cabinet information and power bank information;
[0180] The sending module 303 is used to send a power-up instruction of the target power bank to the rental device when the verification is passed, so that the rental device can pop up the target power bank to the user who triggered the power bank rental request;
[0181] The execution module 304 is used to execute the operation of updating the status of the target power bank to the in-use status according to the first operation information sent by the rental device.
[0182] It can be seen that implementation Figure 3 The described device for renting power banks under double verification can, when detecting a power bank rental request for the rental device, obtain the cabinet information of the rental device and the power bank information in the rental device through the target end, the target end including a POS device and / or a server, and perform double verification on the cabinet information and the power bank information, providing a power bank rental method that is verified through multiple information, which is beneficial to improving the verification accuracy of the power bank rental environment, thereby facilitating improving the success rate and efficiency of power bank rental, and when the verification is passed, sending a power-up instruction of the target power bank to the rental device through the target end, so that the rental device pops up the target power bank to the user who triggered the power bank rental request, and can send the corresponding power-up instruction to the rental device in a timely manner when the verification is passed. , improves the accuracy and efficiency of sending the power-up command, thereby improving the accuracy and efficiency of popping up the target power bank, and can improve the rental efficiency of the power bank, and through the POS machine and server scanning code rental, improves the multi-channel flexibility of equipment rental, thereby improving the rental efficiency of the power bank, and then improves the utilization rate of the power bank, and finally, the target end executes the operation of updating the status of the target power bank to the in-use status according to the first operation information sent by the rental device, which can improve the accuracy and timeliness of the target end's update of the target power bank status when the target power bank is successfully rented, which is convenient for promoting the subsequent rental process of other power banks, and is conducive to improving the efficiency and speed of the target end in controlling the power bank rental process, and further conducive to improving the rental efficiency of the power bank.
[0183] In an optional embodiment, the device may further include:
[0184] A determination module, used for determining that a power bank rental request is detected for the rental device when the target end is a POS device and when a target card in a card swiping state is detected;
[0185] The determination module is also used to determine that a power bank rental request is detected for the rental device when the target end is a server and when it is detected that the identification code on the rental device is scanned by the user terminal.
[0186] It can be seen that this optional embodiment can, when the target end is a POS device, determine through the POS device that a power bank rental request is detected for the rental device when a target card in a swiping state is detected, and can improve the accuracy and efficiency of determining that the rental mode is the POS rental mode when the target card in the swiping state is detected; and when the target end is a server, when it is detected that the identification code on the rental device is scanned by the user terminal, determine through the server that a power bank rental request is detected for the rental device, and can improve the accuracy and efficiency of determining that the rental mode is the APK rental mode when the identification code on the rental device is scanned by the user terminal, and can realize multi-channel rental methods of rental equipment through the identification codes on the POS device and the rental device, which is conducive to improving the multi-channel flexibility of renting power banks.
[0187] In another optional embodiment, when the target end is a POS device, the execution module 304 executes the operation of updating the state of the target power bank to the in-use state according to the first operation information sent by the rental device, specifically including:
[0188] The first operation information sent by the rental device is detected, and when the first operation information is detected to indicate that the rental device successfully ejects the target power bank, a successful ejection result is sent to the server, so that the server updates the status of the target power bank to an in-use status according to the successful ejection result.
[0189] It can be seen that this optional embodiment can detect the first operation information sent by the rental device through the POS device when the target end is a POS device, and when the first operation information is detected to indicate that the rental device successfully pops out the target power bank, the POS device sends a successful pop-up result to the server, so that the server updates the status of the target power bank to the in-use status according to the successful pop-up result, and can improve the accuracy and efficiency of updating the status of the target power bank based on the POS device and the first operation information.
[0190] In yet another optional embodiment, Figure 4 As shown, Figure 4 : is a schematic diagram of a structure of a device for renting a power bank under double verification disclosed in an embodiment of the present invention, wherein the device may further include:
[0191] The generating module 305 is used to generate a first delay task for the power-on instruction after the sending module 303 sends the power-on instruction of the target power bank to the rental device when the target end is a server. And the executing module 304 executes the operation of updating the state of the target power bank to the in-use state according to the first operation information sent by the rental device, which specifically includes:
[0192] According to the first delayed task and the first operation information sent by the rental device, it is determined whether there is a result of the rental device performing a power-on operation on the target power bank in the first operation information received within the time limit of the first delayed task;
[0193] When it is determined that there is a power-on result, it is determined whether the power-on result is used to indicate that the target power bank is successfully powered on;
[0194] When it is determined that the power-on result indicates that the target power bank is successfully powered on, an operation of updating the state of the target power bank to an in-use state is performed;
[0195] When it is determined that there is no power-on result, a battery query instruction and a second delay task are generated for the target power bank, and according to the battery query instruction and the second delay task, an operation of updating the state of the target power bank to the in-use state is executed.
[0196] It can be seen that this optional embodiment can generate a first delayed task for the power-on instruction through the server, and judge whether there is a power-on result of the rental device for the target power bank in the first operation information received within the period of the first delayed task based on the first delayed task and the first operation information sent by the rental device. When it is judged that there is a power-on result, it is further judged whether the power-on result is used to indicate the result of successful power-on of the target power bank. When it is judged that the power-on is successful, the status of the target power bank is updated to the in-use status, thereby improving the accuracy and efficiency of updating the status of the target power bank to the in-use status. When it is judged that there is no power-on result, a battery query instruction and a second delayed task are automatically generated for the target power bank, and according to the battery query instruction and the second delayed task, the operation of updating the status of the target power bank to the in-use status is executed, thereby improving the accuracy and reliability of updating the status of the target power bank to the in-use status. Moreover, through the power-on instruction and its delayed task and the battery query instruction and its delayed task, the diversity and flexibility of the judgment methods of whether to update the status of the target power bank to the in-use status can be improved.
[0197] In this optional embodiment, as an optional implementation, the execution module 304 executes the operation of updating the state of the target power bank to the in-use state according to the battery query instruction and the second delay task, which may specifically include:
[0198] According to the second delayed task, obtaining second operation information sent by the rental device within the time limit of the second delayed task;
[0199] Determine whether there is a query result of the rental device for the battery query instruction in the second operation information, and obtain the query instruction judgment result;
[0200] According to the query command judgment result, the operation of updating the status of the target power bank to the in-use status is executed.
[0201] It can be seen that this optional implementation method can automatically obtain the second operation information sent by the rental device within the period of the second delay task through the server according to the second delay task, and determine whether there is a query result of the rental device for the battery query instruction in the second operation information, obtain the query instruction judgment result, and then execute the operation of updating the status of the target power bank to the in-use state according to the query instruction judgment result. It can accurately update the status of the target power bank to the in-use state in combination with the second delay task and the query instruction judgment result of the second operation information, which is conducive to improving the accuracy and reliability of updating the target power bank to be in-use state.
[0202] In this optional implementation, optionally, the execution module 304 executes the operation of updating the status of the target power bank to the in-use status according to the query instruction judgment result, which may specifically include:
[0203] When the query instruction determines that there is no query result in the second operation information, detecting the current state of the target power bank;
[0204] When it is detected that the current state of the target power bank is a preset pre-order state, an operation of updating the state of the target power bank to an in-use state is executed;
[0205] When the query instruction determines that the query result exists in the second operation information, determine whether the query result is used to indicate whether the target power bank has a preset query data packet;
[0206] When it is determined that the query result indicates that there is no result of the query data packet, the status of the target power bank is updated to an order failure status;
[0207] When it is determined that the query result is used to indicate the existence of the query data packet, an operation of updating the state of the target power bank to an in-use state is performed.
[0208] It can be seen that this optional implementation method can also detect the current status of the target power bank through the server when the query instruction judgment result is that the query result does not exist in the second operation information, and when it is detected that the current status of the target power bank is a preset pre-order status, execute the operation of updating the status of the target power bank to the in-use status, thereby improving the accuracy and efficiency of updating the target power bank to the in-use status, and when the query instruction judgment result is that the query result exists in the second operation information, further judge whether the query result is used to indicate whether the target power bank has the result of the preset query data packet, when it is judged that the query result is used to indicate the result of the non-existence of the query data packet, update the status of the target power bank to the order failure status through the server, and when it is judged that the query result is used to indicate the result of the existence of the query data packet, execute the operation of updating the status of the target power bank to the in-use status, and through multiple judgment methods, the diversity and flexibility of updating the target power bank to the in-use status can be improved, which is conducive to improving the accuracy and reliability of updating the status of the target power bank.
[0209] In another optional embodiment, when the target end is a server, the sending module 303 sends a power-up instruction of the target power bank to the rental device, so that the rental device pops up the target power bank to the user who triggers the power bank rental request. Specifically, the method may include:
[0210] The server returns the scan code related information to the user terminal for the user who triggers the power bank rental request to confirm whether to rent the target power bank of the rental device;
[0211] When detecting the rental feedback of confirming the target power bank reported by the user terminal, the server sends a power ejection instruction of the target power bank to the rental device, so that the rental device ejects the target power bank to the user.
[0212] It can be seen that this optional embodiment can, when the target end is a server, that is, when the user adopts the APK rental method corresponding to the user terminal that interacts with the server, return the scan code related information to the user terminal through the server, for the user who triggers the power bank rental request to confirm whether to rent the target power bank of the rental device, which is conducive to timely outputting reminder information to the user whether to confirm the rental of the target power bank, and when the rental feedback of confirming the target power bank reported by the user terminal is detected, the server sends the target power bank's power-on instruction to the rental device, so that the rental device pops up the target power bank to the user, which can improve the pop-up accuracy and efficiency of the target power bank when the user confirms the rental of the target power bank.
[0213] In another optional embodiment, the acquisition module 301 is also used to obtain the user's first object identifier and the user's first user information before the sending module 303 sends the power-pop-up instruction of the target power bank to the rental device, so that the rental device can pop up the target power bank to the user who triggered the power bank rental request. The first object identifier may include a target card identifier for a rental method based on a POS device or a user account identifier for a server-based user terminal rental method.
[0214] The acquisition module 301 is further configured to acquire second user information matching the first object identifier from a preset database according to the first object identifier, and acquire a second object identifier matching the first user information from the database according to the first user information.
[0215] The verification module 302 is also used to verify the first user information and the second user information to obtain a user verification result, and to verify the first object identifier and the second object identifier to obtain an identifier verification result; when the user verification result and the identifier verification result both indicate that the verification is passed, the triggering module 303 executes an instruction to send a power-pop-up instruction of the target power bank to the rental device, so that the rental device pops up the target power bank to the user who triggered the power bank rental request.
[0216] It can be seen that this optional embodiment can obtain the user's first object identifier and the user's first user information through the target end, and obtain the second user information matching the first object identifier from the preset database through the target end according to the first object identifier, and obtain the second object identifier matching the first user information from the database according to the first user information, which can improve the accuracy and efficiency of obtaining the second user information and the second object identifier used as the verification standard, and then verify the first user information and the second user information respectively to obtain the user verification result, and verify the first object identifier and the second object identifier to obtain the identifier verification result; when the user verification result and the identifier verification result both indicate that the verification is passed, the target end is triggered to execute the pop-up instruction of sending the target power bank to the rental device, so that the rental device pops up the target power bank to the user who triggered the power bank rental request, and the payment environment of the power bank rental device can be verified efficiently and accurately through the dual verification of the user information and the object identifier, and the simultaneous verification of multiple information is conducive to improving the diversity and flexibility of the verification method of the payment environment of the power bank rental device, and is conducive to improving the reliability and accuracy of the verification of the payment environment.
[0217] Embodiment 4
[0218] See also Figure 5 , Figure 5 Schematic diagram of another device for renting a power bank under double verification disclosed in an embodiment of the present invention. Figure 5As shown, the device for renting a power bank under double verification may include:
[0219] A memory 401 storing executable program codes;
[0220] a processor 402 coupled to the memory 401;
[0221] The processor 402 calls the executable program code stored in the memory 401 to execute the steps in the method for renting a power bank under double verification described in the first embodiment of the present invention or the second embodiment of the present invention.
[0222] Embodiment 5
[0223] An embodiment of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute the steps in the method for renting a power bank under double verification described in Embodiment 1 or Embodiment 2 of the present invention.
[0224] Embodiment 6
[0225] An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute the steps in the method for renting a power bank under double verification described in Embodiment 1 or Embodiment 2.
[0226] The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.
[0227] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0228] Finally, it should be noted that the method and device for renting a power bank under double verification disclosed in the embodiment of the present invention only discloses a preferred embodiment of the present invention, which is only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A method for renting a power bank under double verification, characterized in that: The method comprises: When a request for renting a power bank is detected for the rental device, the target end obtains the cabinet information of the rental device and the power bank information in the rental device, and the target end includes a POS device and / or a server; The target end verifies the cabinet information and the power bank information; When the verification is passed, the target end sends a power-up instruction of the target power bank to the rental device, so that the rental device pops up the target power bank to the user who triggers the power bank rental request; The target end executes an operation of updating the status of the target power bank to an in-use status according to the first operation information sent by the rental device.
2. The method for renting a power bank under double verification according to claim 1, characterized in that: The method further comprises: When the target end is the POS device, and when a target card in a card swiping state is detected, the POS device determines that a request for renting a power bank is detected by the rental device; When the target end is the server, and when it is detected that the identification code on the rental device is scanned by the user terminal, the server determines that a request for renting a power bank is detected for the rental device; And, when the target end is the POS device, the target end executes an operation of updating the state of the target power bank to an in-use state according to the first operation information sent by the rental device, including: The POS device detects the first operation information sent by the rental device, and when it is detected that the first operation information is used to indicate that the rental device successfully ejects the target power bank, the POS device sends a successful ejection result to the server, so that the server updates the status of the target power bank to an in-use status according to the successful ejection result.
3. The method for renting a power bank under double verification according to claim 2, characterized in that: When the target end is the server, after the target end sends a power-on instruction of the target power bank to the rental device, the method further includes: The server generates a first delay task for the elastic power instruction; And, the target end executes an operation of updating the state of the target power bank to an in-use state according to the first operation information sent by the rental device, including: The server determines, according to the first delayed task and the first operation information sent by the rental device, whether there is a result of the rental device charging the target power bank in the first operation information received within the time limit of the first delayed task; When it is determined that the power-on result exists, the server determines whether the power-on result is used to indicate that the target power bank is successfully powered on; When it is determined that the power-on result indicates that the target power bank is successfully powered on, the server executes an operation of updating the state of the target power bank to an in-use state; When it is determined that the power-on result does not exist, the server generates a battery query instruction and a second delay task for the target power bank, and according to the battery query instruction and the second delay task, executes an operation to update the status of the target power bank to an in-use status.
4. The method for renting a power bank under double verification according to claim 3, characterized in that: The server executes an operation of updating the state of the target power bank to an in-use state according to the battery query instruction and the second delay task, including: The server obtains, according to the second delayed task, second operation information sent by the rental device within the time limit of the second delayed task; The server determines whether there is a query result of the rental device for the battery query instruction in the second operation information, and obtains a query instruction judgment result; The server executes an operation of updating the status of the target power bank to an in-use status according to a judgment result of the query instruction.
5. The method for renting a power bank under double verification according to claim 4, characterized in that: The server executes an operation of updating the status of the target power bank to an in-use status according to the query instruction judgment result, including: When the query instruction determines that the query result does not exist in the second operation information, the server detects the current state of the target power bank; When it is detected that the current state of the target power bank is a preset pre-order state, the server executes an operation of updating the state of the target power bank to an in-use state; When the query instruction determines that the query result exists in the second operation information, the server determines whether the query result is used to indicate whether the target power bank has a preset query data packet; When it is determined that the query result indicates that there is no result of the query data packet, the server updates the status of the target power bank to an order failure status; When it is determined that the query result is used to indicate the existence of the result of the query data packet, the server executes an operation of updating the status of the target power bank to an in-use status.
6. The method for renting a power bank under double verification according to any one of claims 2 to 5, characterized in that: When the target end is the server, the target end sends a power-up instruction of the target power bank to the rental device, so that the rental device pops up the target power bank to the user who triggers the power bank rental request, including: The server returns the code scanning related information to the user terminal for the user who triggers the power bank rental request to confirm whether to rent the target power bank of the rental device; When detecting the rental feedback of the target power bank confirmed by the user terminal, the server sends a power ejection instruction of the target power bank to the rental device, so that the rental device ejects the target power bank to the user.
7. The method for renting a power bank under double verification according to any one of claims 1 to 5, characterized in that: Before the target end sends a power-up instruction of the target power bank to the rental device so that the rental device pops up the target power bank to the user who triggers the power bank rental request, the method further includes: The target end obtains a first object identifier of the user and first user information of the user, wherein the first object identifier may include a target card identifier based on a rental method of the POS device or a user account identifier based on a user terminal rental method of the server; The target end obtains second user information matching the first object identifier from a preset database according to the first object identifier, and obtains a second object identifier matching the first user information from the database according to the first user information; The target end verifies the first user information and the second user information to obtain a user verification result, and verifies the first object identifier and the second object identifier to obtain an identifier verification result; when the user verification result and the identifier verification result both indicate that the verification is passed, the target end is triggered to execute the power-pop-up instruction of sending the target power bank to the rental device, so that the rental device pops up the target power bank to the user who triggered the power bank rental request.
8. A device for renting power banks under double verification, characterized in that: The device comprises: An acquisition module, for acquiring cabinet information of the rental device and information of the power bank in the rental device when a request for renting a power bank is detected for the rental device, wherein the target end includes a POS device and / or a server; A verification module, used to verify the cabinet information and the power bank information; A sending module, configured to send a power ejection instruction of a target power bank to the rental device when the verification is passed, so that the rental device ejects the target power bank to the user who triggers the power bank rental request; The execution module is used to execute the operation of updating the status of the target power bank to the in-use status according to the first operation information sent by the rental device.
9. A device for renting power banks under double verification, characterized in that: The device comprises: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the method for renting a power bank under double verification as described in any one of claims 1-7.
10. A computer storage medium, characterized in that: The computer storage medium stores computer instructions, which, when called, are used to execute the method for renting a power bank under double verification as described in any one of claims 1 to 7.
Citation Information
Cited By
Battery monitoring method, device, equipment and medium
CN121901999A