Authentication method and device
By reading bank card identification information and using bank verification module for identity verification, combined with online and local verification, the problem of low authentication reliability in the existing technology is solved, and more efficient and accurate identity verification is achieved, ensuring that Identity traceability in the process of organic grain acquisition.
Patent Information
- Application Number
- CN202010883046.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-28
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2040-08-28
AI Technical Summary
In the prior art, the reliability of user identity verification is low, and it is prone to inconsistent with the identity proof materials, resulting in inaccurate identity verification results.
By reading the user's bank card identification information, obtaining matching identity information and sending it to the bank verification module for verification, combining online and local verification methods to improve the accuracy and reliability of identity verification.
It improves the efficiency and accuracy of identity verification, reduces the error rate, enhances the reliability of identity verification, and ensures identity traceability in the organic food acquisition process.
Smart Images

Figure CN111951019B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to an identity authentication method and device. Background Art
[0002] In the large-scale organic grain purchase process, in order to ensure the organic traceability of the organic grain purchase, it is necessary to verify the identity of the user who places the order. At present, the user identity verification is often achieved by the staff checking the identity documents such as the ID card provided by the user and the user.
[0003] With respect to the above-mentioned user identity authentication method, manual verification may easily lead to inconsistencies between the user and the identity proof materials, thus resulting in low reliability of identity authentication. Summary of the invention
[0004] The present invention provides an identity authentication method and device, which can improve the reliability of identity authentication.
[0005] In a first aspect, an embodiment of the present invention provides an identity authentication method, including:
[0006] Read the identification information of the bank card held by the current user;
[0007] Acquire identity information matching the identification information, wherein the identity information is used to represent the cardholder information of the bank card;
[0008] Sending the identity information to an external bank verification module so that the bank verification module verifies the identity information and returns the verification result of the identity information;
[0009] Determining whether the verification result indicates that the identity information has passed the verification;
[0010] If yes, read the current weight of the item placed by the current user in the target area;
[0011] Otherwise, a prompt message indicating that the identity information has not passed the verification is output.
[0012] In a possible design, obtaining identity information matching the identification information includes:
[0013] Determining whether there is identity information matching the identification information in the stored data;
[0014] If yes, executing the step of sending the identity information to an external bank verification module;
[0015] If not, receive externally input identity information corresponding to the identification information, store the identity information, and execute the bank verification module that sends the identity information to the outside.
[0016] In a possible design, after sending the identity information to an external bank verification module, the method further includes:
[0017] Determining whether feedback information returned by the bank verification module indicating successful receipt of the identity information is received;
[0018] If the feedback information is not received, obtaining current identity information for representing the identity of the cardholder of the bank card;
[0019] Determining whether the current identity information matches the acquired identity information;
[0020] If yes, determining that the identity information is verified;
[0021] Otherwise, it is determined that the identity information has not passed the verification.
[0022] In a possible design, the determining whether feedback information returned by the bank verification module and used to indicate successful receipt of the identity information is received includes:
[0023] A1: Determine a first time point corresponding to sending the identity information to the bank verification module;
[0024] A2: Determine the current time point;
[0025] A3: Determine whether the determined time interval between the current time point and the first time point is greater than a preset first threshold, if yes, execute A4, otherwise execute A2;
[0026] A4: record an abnormality record used to characterize abnormal communication with the bank verification module;
[0027] A5: Determine whether the number of abnormal records for the identity information record is greater than a preset second threshold, if yes, execute A7, otherwise execute A6;
[0028] A6: Execute the step of sending the identity information to an external bank verification module, and return to A1;
[0029] A7: Determine that the feedback information returned by the bank verification module indicating successful receipt of the identity information is not received.
[0030] In a possible design, after sending the identity information to an external bank verification module, the method further includes:
[0031] Receiving verification information fed back by the bank verification module, wherein the verification information is information stored by the bank verification module for verifying the identity information;
[0032] The identity information is deleted, and the verification information is stored as the identity information.
[0033] In a possible design, after determining that the verification result indicates that the identity information has passed the verification, the method further includes:
[0034] When the identification information of the bank card held by the current user is currently read, determining a second time point corresponding to the currently read identification information;
[0035] Determine a third time point corresponding to when historical identification information is read from the bank card, wherein the historical identification information is identification information read before the identification information currently read, and the time interval between the third time point and the second time point is the shortest;
[0036] Determining whether the time interval between the second time point and the third time point is less than a preset third threshold;
[0037] If yes, read the target identity information corresponding to the identification information in the stored data;
[0038] Obtaining current identity information for characterizing the identity of the cardholder of the bank card;
[0039] Determining whether the current identity information matches the read target identity information;
[0040] If yes, determining that the identity information is verified;
[0041] Otherwise, it is determined that the identity information has not passed the verification.
[0042] In a second aspect, an embodiment of the present invention further provides an identity authentication device, including: an acquisition unit, a sending unit, and a determination unit;
[0043] The acquisition unit is used to read the identification information of the bank card held by the current user and acquire the identity information matching the identification information, wherein the identity information is used to represent the information of the holder of the bank card;
[0044] The sending unit is used to send the identity information acquired by the acquiring unit to an external bank verification module, so that the bank verification module verifies the identity information and returns the verification result of the identity information;
[0045] The determination unit is used to determine whether the verification result sent by the sending unit indicates that the identity information has passed the verification. If so, read the current weight of the item placed by the current user in the target area; otherwise, output prompt information indicating that the identity information has not passed the verification.
[0046] In one possible design,
[0047] The acquisition unit is used to perform the following processing:
[0048] Determine whether there is identity information matching the identification information in the stored data,
[0049] If so, obtaining identity information matching the identification information from the stored data;
[0050] If not, receive externally input identity information corresponding to the identification information, and store the identity information.
[0051] In one possible design,
[0052] The determining unit is further configured to perform the following processing:
[0053] Determining whether feedback information returned by the bank verification module indicating successful receipt of the identity information is received;
[0054] If the feedback information is not received, obtaining current identity information for representing the identity of the cardholder of the bank card;
[0055] Determining whether the current identity information matches the acquired identity information;
[0056] If yes, determining that the identity information is verified;
[0057] Otherwise, it is determined that the identity information has not passed the verification.
[0058] In one possible design,
[0059] The determining unit is further configured to perform the following processing:
[0060] Determining whether feedback information returned by the bank verification module indicating successful receipt of the identity information is received;
[0061] If the feedback information is not received, obtaining current identity information for representing the identity of the cardholder of the bank card;
[0062] Determining whether the current identity information matches the acquired identity information;
[0063] If yes, determining that the identity information is verified;
[0064] Otherwise, it is determined that the identity information has not passed the verification.
[0065] In one possible design,
[0066] The determining unit is further configured to perform the following processing:
[0067] A1: Determine a first time point corresponding to sending the identity information to the bank verification module;
[0068] A2: Determine the current time point;
[0069] A3: Determine whether the determined time interval between the current time point and the first time point is greater than a preset first threshold, if yes, execute A4, otherwise execute A2;
[0070] A4: record an abnormality record used to characterize abnormal communication with the bank verification module;
[0071] A5: Determine whether the number of abnormal records for the identity information record is greater than a preset second threshold, if yes, execute A7, otherwise execute A6;
[0072] A6: Execute the step of sending the identity information to an external bank verification module, and return to A1;
[0073] A7: Determine that the feedback information returned by the bank verification module indicating successful receipt of the identity information is not received.
[0074] In one possible design,
[0075] The acquisition unit is also used to receive verification information fed back by the bank verification module, delete the acquired identity information, and store the verification information as identity information, wherein the verification information is information stored by the bank verification module for verifying the identity information.
[0076] In one possible design,
[0077] The determining unit is further configured to perform the following processing:
[0078] After determining that the verification result indicates that the identity information has passed the verification,
[0079] When the identification information of the bank card held by the current user is currently read, determining a second time point corresponding to the currently read identification information;
[0080] Determine a third time point corresponding to when historical identification information is read from the bank card, wherein the historical identification information is identification information read before the identification information currently read, and the time interval between the third time point and the second time point is the shortest;
[0081] Determining whether the time interval between the second time point and the third time point is less than a preset third threshold;
[0082] If yes, read the target identity information corresponding to the identification information in the stored data;
[0083] Obtaining current identity information for characterizing the identity of the cardholder of the bank card;
[0084] Determining whether the current identity information matches the read target identity information;
[0085] If yes, determining that the identity information is verified;
[0086] Otherwise, it is determined that the identity information has not passed the verification.
[0087] In a third aspect, an embodiment of the present invention further provides a smart device, comprising: at least one memory and at least one processor;
[0088] The at least one memory is used to store a machine-readable program;
[0089] The at least one processor is used to call the machine-readable program to execute the identity authentication method provided by the first aspect or any possible implementation of the first aspect.
[0090] In a fourth aspect, an embodiment of the present invention further provides a computer-readable medium,
[0091] The computer-readable medium stores computer instructions, and when the computer instructions are executed by the processor, the processor executes the identity authentication method provided by the first aspect or any possible implementation of the first aspect.
[0092] It can be seen from the above technical solution that the identity authentication method provided by the present invention reads the identification information of the bank card held by the current user, obtains the identity information that matches the identification information and is used to characterize the cardholder information of the bank card, and after sending the identity information to the bank verification module, determines whether the identity information has passed the verification according to the verification result returned by the bank verification module. In summary, it can be seen that the bank verification module is used to verify the identity information, that is, the digital verification method is used to perform online verification, which improves the efficiency of identity authentication, and the bank verification module verifies the identity information, so that the verification result of the identity authentication is more accurate, and the error rate of the identity authentication is reduced, thereby improving the reliability of the identity authentication. BRIEF DESCRIPTION OF THE DRAWINGS
[0093] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0094] Figure 1 is a flow chart of an identity authentication method provided by an embodiment of the present invention;
[0095] Figure 2 It is a schematic diagram of a device where an identity authentication device is provided in one embodiment of the present invention;
[0096] Figure 3 is a schematic diagram of an identity authentication device provided by an embodiment of the present invention;
[0097] Figure 4 The present invention is a flowchart of another identity authentication method provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0098] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions 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 part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0099] like Figure 1 As shown, an embodiment of the present invention provides an identity authentication method, which may include the following steps:
[0100] Step 101: Read the identification information of the bank card held by the current user;
[0101] Step 102: Acquire identity information that matches the identification information;
[0102] Step 103: Send the identity information to an external bank verification module, so that the bank verification module verifies the identity information and returns the verification result of the identity information;
[0103] Step 104: Determine whether the verification result indicates that the identity information has passed the verification, if yes, execute step 105, otherwise, execute step 106;
[0104] Step 105: Read the current weight of the item placed by the current user in the target area, and end the current process;
[0105] Step 106: Output prompt information indicating that the identity information has not passed the verification.
[0106] In an embodiment of the present invention, the identity authentication method provided by the present invention reads the identification information of the bank card held by the current user, obtains the identity information that matches the identification information and is used to characterize the cardholder information of the bank card, and after sending the identity information to the bank verification module, determines whether the identity information has passed the verification according to the verification result returned by the bank verification module. In summary, it can be seen that the bank verification module is used to verify the identity information, that is, the digital verification method is used to perform online verification, which improves the efficiency of identity authentication, and the bank verification module verifies the identity information, so that the verification result of the identity authentication is more accurate, and the error rate of the identity authentication is reduced, thereby improving the reliability of the identity authentication.
[0107] It should be noted that, in the embodiment of the present invention, the identification information of the bank card may be, for example, a bank card number, or other information used to characterize the uniqueness of the bank card. The identity information that matches the identification information of the bank card may include the bank card number, the name of the bank card holder, and the ID number of the bank card holder, but is not limited thereto. It is understandable that the identity information that matches the identification information of the bank card may include identification information that is completely consistent with the identification information of the bank card.
[0108] In one embodiment of the present invention, based on Figure 1 In the identity authentication method shown, step 102 of obtaining identity information matching the identification information includes:
[0109] Determining whether there is identity information in the stored data that matches the identification information;
[0110] If yes, execute the bank verification module that sends the identity information to the external bank;
[0111] If not, receive externally input identity information corresponding to the identification information, store the identity information, and execute to send the identity information to an external bank verification module.
[0112] In an embodiment of the present invention, identity information of multiple users is stored in the preset storage data, wherein the identity information includes information such as the user's name, ID number, and bank card identification information. When it is determined that there is no identity information matching the read identification information in the preset storage data, it is necessary to first store the identity information of the user in the storage data, and then obtain the identity information matching the identification information from the storage data, and send the identity information to an external bank verification module. If it is determined that there is identity information matching the identification information in the database, the identity information matching the identification information is directly obtained from the preset storage data, and the identity information is sent to an external bank verification module. With this arrangement, the preset storage data can be expanded, and the user's data is more comprehensive, which is conducive to improving the efficiency of identity verification.
[0113] In one embodiment of the present invention, based on Figure 1 The identity verification method shown, after sending the identity information to the external bank verification module in step 103, further includes:
[0114] Determine whether feedback information returned by the bank verification module indicating successful receipt of the identity information is received;
[0115] If no feedback information is received, obtaining current identity information for representing the identity of the cardholder of the bank card;
[0116] Determine whether the current identity information matches the acquired identity information;
[0117] If yes, confirm that the identity information is verified;
[0118] Otherwise, it is determined that the identity information has not been verified.
[0119] In an embodiment of the present invention, after the identity information is sent to an external bank verification module, if the bank verification module does not receive feedback information indicating that the identity information has been successfully received, the current identity information indicating the bank card holder is obtained, and the current identity information is verified using the identity information obtained from the stored data, that is, the current identity information is verified by local verification. If the current identity information matches the identity information, it proves that the identity information has passed the verification; otherwise, it proves that the identity information has not passed the verification. Therefore, when the external bank verification module cannot be connected or the communication with the bank verification module is abnormal, the identity information can be verified by local verification, which improves the efficiency of identity verification and ensures that the subsequent grain delivery can proceed smoothly.
[0120] It is understandable that in the embodiment of the present invention, identity verification can also be performed by manual verification. For example, when a user uses the same bank card held by the user to sell grain multiple times within a preset time range, the efficiency of identity verification can be further improved by performing identity verification by manual verification.
[0121] It should be noted that in the embodiment of the present invention, the identity information will be sent to the external bank verification module through a relay. A relay is a transmission path between two switching centers. A trunk line is a physical connection that carries multiple logical links. With the development of science and technology, the concept of relay is widely used in fields such as wireless communication. Relays include three types: analog relays, digital relays, and IP relays.
[0122] In one embodiment of the present invention, based on Figure 1 The identity authentication method shown in the figure determines whether feedback information returned by the bank verification module indicating successful receipt of identity information is received, and specifically includes the following steps:
[0123] Step A1: Determine the first time point corresponding to sending the identity information to the bank verification module;
[0124] Step A2: Determine the current time point;
[0125] Step A3: Determine whether the time interval between the current time point and the first time point is greater than a preset first threshold, if yes, execute step A4, otherwise, execute step A2;
[0126] Step A4: recording an abnormality record used to characterize abnormal communication with the bank verification module;
[0127] Step A5: Determine whether the number of abnormal records for the identity information record is greater than a preset second threshold, if yes, execute step A7, otherwise, execute step A6;
[0128] Step A6: Send the identity information to the external bank verification module, and return to step A1;
[0129] Step A7: Determine that no feedback information returned by the bank verification module indicating successful receipt of the identity information is received.
[0130] In an embodiment of the present invention, after the identity information is sent to the bank verification module, if the feedback information returned from the bank verification module indicating that the identity information has been successfully received is not received within the preset first threshold, an abnormal record indicating the communication abnormality is recorded once, and it is determined whether the abnormal record corresponding to the identity information is within the preset second threshold. If so, the identity information is sent to the bank verification module again until the abnormal record corresponding to the identity information exceeds the preset second threshold or the feedback information returned from the bank verification module indicating that the identity information has been successfully received is received within the preset second threshold. Otherwise, it is determined that the bank verification module has not successfully received the identity information. With such a setting, on the one hand, it can avoid the delay in the bank verification module receiving the identity information due to poor network conditions. On the other hand, presetting the first threshold and the second threshold can reduce the occupancy of the transmission path, thereby improving the efficiency of identity authentication.
[0131] In one embodiment of the present invention, based on Figure 1 The identity verification method shown, after sending the identity information to the external bank verification module in step 103, further includes:
[0132] Receiving verification information fed back by the bank verification module, wherein the verification information is information stored by the bank verification module for verifying identity information;
[0133] Delete the identity information and store the verification information as the identity information.
[0134] In the embodiment of the present invention, the identity information is sent to an external bank verification module, and feedback information from the bank verification module is received to indicate that the identity information has been successfully received, that is, when the communication with the bank verification module is normal, the verification information sent from the bank verification module is received, wherein the verification information is stored in the bank verification module for verifying the identity information, the identity information corresponding to the identification information of the bank card stored in the storage data is deleted, and the verification information is stored as the identity information. With such a setting, the identity information stored in the storage data can be updated synchronously, so that the verification result obtained by local verification is more accurate, thereby improving the reliability of identity authentication.
[0135] In one embodiment of the present invention, based on Figure 1 The identity authentication method shown, after determining in step 104 whether the verification result indicates that the identity information has passed the verification, further includes:
[0136] When the identification information of the bank card held by the current user is currently read, determining a second time point corresponding to the currently read identification information;
[0137] Determine a third time point corresponding to when historical identification information is read from the bank card, wherein the historical identification information is identification information read before the currently read identification information, and the time interval between the third time point and the second time point is the shortest;
[0138] Determining whether the time interval between the second time point and the third time point is less than a preset third threshold;
[0139] If yes, read the target identity information corresponding to the identification information in the stored data;
[0140] Obtaining current identity information for characterizing the identity of a bank card holder;
[0141] Determine whether the current identity information matches the read target identity information;
[0142] If yes, confirm that the identity information is verified;
[0143] Otherwise, it is determined that the identity information has not been verified.
[0144] In an embodiment of the present invention, when the identification information of the bank card held by the current user is currently read, the current time point is obtained as the second time point, and after determining the verification result corresponding to the identification information, the identification information is read again and the third time point with the shortest time interval with the second time point is determined to determine whether the time interval between the second time point and the third time point is greater than the preset third threshold. If yes, the local verification method can be used. Specifically, the target identity information corresponding to the identification information in the stored data is read to obtain the current identity information used to characterize the identity of the bank card holder, and it is determined whether the target identity information matches the current identity information. If yes, it is determined that the identity information passes the verification, otherwise it is determined that it fails. If not, the online verification method is used, that is, the target identity information is sent to the bank verification module for verification. In summary, by setting the effective time limit of the verification, the dual verification method combining local verification and online verification is adopted to avoid the operation of online verification being too frequent, improve the efficiency of identity verification, and also improve the reliability of the identity verification result.
[0145] For example, assuming that the third threshold is 24 hours, when Wang's bank card is verified online at 11:00 on January 1, 2020, the identity information is verified. If the identification information of Wang's bank card is read again at 15:00 on January 2, 2020, the obtained identity information needs to be verified by online verification. If the identification information of Wang's bank card is read again at 18:00 on January 1, 2020, the obtained identity information only needs to be verified by local verification.
[0146] like Figure 2 , Figure 3 As shown, an embodiment of the present invention provides an identity authentication device. The identity authentication device embodiment can be implemented by software, or by hardware or a combination of software and hardware. From the hardware level, Figure 2 As shown, it is a hardware structure diagram of a device where the identity authentication device provided by an embodiment of the present invention is located, except Figure 2 In addition to the processor, memory, network interface, and non-volatile memory shown in the figure, the device in the embodiment may also include other hardware, such as a forwarding chip responsible for processing messages, etc. Taking software implementation as an example, Figure 3 As shown, as a device in a logical sense, the CPU of the device in which it is located reads the corresponding computer program instructions in the non-volatile memory into the internal memory and runs them.
[0147] like Figure 3 As shown, the identity authentication device provided in this embodiment includes: an acquisition unit 301, a sending unit 302 and a determination unit 303;
[0148] The acquisition unit 301 is used to read the identification information of the bank card held by the current user and acquire the identity information matching the identification information, wherein the identity information is used to represent the information of the bank card holder;
[0149] The sending unit 302 is used to send the identity information obtained by the obtaining unit 301 to an external bank verification module, so that the bank verification module verifies the identity information and returns the verification result of the identity information;
[0150] The determination unit 303 is used to determine whether the verification result sent by the sending unit 302 indicates that the identity information has passed the verification. If so, the current weight of the item placed by the current user in the target area is read; otherwise, a prompt message indicating that the identity information has not passed the verification is output.
[0151] In one embodiment of the present invention, based on Figure 3 The authentication device shown,
[0152] The acquisition unit 301 is used to perform the following processing:
[0153] Determine whether there is identity information matching the identification information in the stored data,
[0154] If so, obtaining identity information that matches the identification information from the stored data;
[0155] If not, receive externally input identity information corresponding to the identification information, and store the identity information.
[0156] In one embodiment of the present invention, based on Figure 3 The authentication device shown,
[0157] The determination unit 303 is further configured to perform the following processing:
[0158] Determine whether feedback information returned by the bank verification module indicating successful receipt of the identity information is received;
[0159] If no feedback information is received, obtaining current identity information for representing the identity of the cardholder of the bank card;
[0160] Determine whether the current identity information matches the acquired identity information;
[0161] If yes, confirm that the identity information is verified;
[0162] Otherwise, it is determined that the identity information has not been verified.
[0163] In one embodiment of the present invention, based on Figure 3 The authentication device shown,
[0164] The determination unit 303 is further configured to perform the following processing:
[0165] Determine whether feedback information returned by the bank verification module indicating successful receipt of the identity information is received;
[0166] If no feedback information is received, obtaining current identity information for representing the identity of the cardholder of the bank card;
[0167] Determine whether the current identity information matches the acquired identity information;
[0168] If yes, confirm that the identity information is verified;
[0169] Otherwise, it is determined that the identity information has not been verified.
[0170] In one embodiment of the present invention, based on Figure 3 The authentication device shown,
[0171] The determination unit 303 is further configured to perform the following processing:
[0172] A1: Determine the first time point corresponding to sending the identity information to the bank verification module;
[0173] A2: Determine the current time point;
[0174] A3: Determine whether the time interval between the current time point and the first time point is greater than a preset first threshold. If yes, execute A4; otherwise, execute A2.
[0175] A4: records abnormalities in communication with the bank verification module;
[0176] A5: Determine whether the number of abnormal records for identity information records is greater than a preset second threshold, if yes, execute A7, otherwise execute A6;
[0177] A6: Send the identity information to the external bank verification module and return to A1;
[0178] A7: It is determined that the feedback information returned by the bank verification module indicating successful receipt of the identity information is not received.
[0179] In one embodiment of the present invention, based on Figure 3 The authentication device shown,
[0180] The acquisition unit 301 is also used to receive verification information fed back by the bank verification module, delete the acquired identity information, and store the verification information as the identity information, wherein the verification information is information stored by the bank verification module for verifying the identity information.
[0181] In one embodiment of the present invention, based on Figure 3 The authentication device shown,
[0182] The determination unit 303 is further configured to perform the following processing:
[0183] After confirming that the verification result indicates that the identity information has been verified,
[0184] When the identification information of the bank card held by the current user is currently read, determining a second time point corresponding to the currently read identification information;
[0185] Determine a third time point corresponding to when historical identification information is read from the bank card, wherein the historical identification information is identification information read before the currently read identification information, and the time interval between the third time point and the second time point is the shortest;
[0186] Determining whether the time interval between the second time point and the third time point is less than a preset third threshold;
[0187] If yes, read the target identity information corresponding to the identification information in the stored data;
[0188] Obtaining current identity information for characterizing the identity of a bank card holder;
[0189] Determine whether the current identity information matches the read target identity information;
[0190] If yes, confirm that the identity information is verified;
[0191] Otherwise, it is determined that the identity information has not been verified.
[0192] It should be noted that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the identity authentication device. In other embodiments of the present invention, the identity authentication device may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0193] The information interaction, execution process and other contents between the modules in the above-mentioned device are based on the same concept as the embodiment of the method of the present invention. For the specific contents, please refer to the description in the embodiment of the method of the present invention, and no further description is given here.
[0194] In order to more clearly illustrate the technical solution and advantages of the present invention, the identity authentication method provided by the embodiment of the present invention is described in detail below. Figure 4 As shown, the method may include the following steps:
[0195] Step 401: Read the identification information of the bank card held by the current user.
[0196] In this step, the identification information of the bank card may be information used to characterize the uniqueness of the bank card, such as a bank card number, or other information used to characterize the uniqueness of the bank card.
[0197] Step 402: Determine whether there is identity information matching the identification information in the stored data. If yes, execute step 404; otherwise, execute step 403.
[0198] In this step, the preset storage data stores identity information of multiple users, wherein the identity information includes the bank card holder's name, ID number, identification information, etc. In the storage data, the identity information matching the identification information must include the identification information.
[0199] Step 403: Obtain externally input identity information corresponding to the identification information, and store it.
[0200] In this step, if the preset storage data does not include the identity information corresponding to the read identification information, the identity information corresponding to the identification information input from the outside is obtained, and the identity information is stored in the preset storage data.
[0201] Step 404: Send the acquired identity information that matches the identification information to an external bank verification module.
[0202] In this step, in order to ensure the reliability of identity information verification, after the identity information is obtained, it is necessary to send the identity information to an external bank verification module so that the identity information can be verified by the authoritative bank verification module.
[0203] Step 405: Determine whether feedback information returned by the bank verification module indicating successful receipt of the identity information is received. If yes, execute step 408; otherwise, execute step 406.
[0204] In this step, the following steps are specifically included:
[0205] Step A1: Determine the first time point corresponding to sending the identity information to the bank verification module;
[0206] Step A2: Determine the current time point;
[0207] Step A3: Determine whether the time interval between the current time point and the first time point is greater than a preset first threshold, if yes, execute step A4, otherwise, execute step A2;
[0208] Step A4: recording an abnormality record used to characterize abnormal communication with the bank verification module;
[0209] Step A5: Determine whether the number of abnormal records for the identity information record is greater than a preset second threshold, if yes, execute step A7, otherwise, execute step A6;
[0210] Step A6: Send the identity information to the external bank verification module, and return to step A1;
[0211] Step A7: Determine that no feedback information returned by the bank verification module indicating successful receipt of the identity information is received.
[0212] In this step, it is determined whether the bank verification module has received the identity information. If it has, the identity information is verified by using an authoritative bank verification module. Otherwise, the identity information is verified by using a local verification method. By presetting the first threshold and the second threshold, it is possible to avoid delays in the bank verification module receiving the identity information due to poor network conditions and reduce the occupancy of the transmission path, thereby improving the efficiency of identity authentication.
[0213] Step 406: Obtain current identity information for characterizing the identity of the bank card holder.
[0214] In this step, if the acquired identity information is not successfully sent to the bank verification module, the identity information needs to be verified locally. The information used to represent the identity of the bank card holder is obtained as the current identity information. Specifically, the current identity information is obtained by scanning and / or inputting identity information from the outside. The current identity information may include the bank card holder's name, ID number, and identification information.
[0215] Step 407: Determine whether the current identity information matches the acquired identity information, if so, execute step 411, otherwise, execute step 410.
[0216] In this step, it is determined whether the current identity information obtained is completely consistent with the information in the obtained identity information. If so, step 410 is executed; otherwise, step 411 is executed.
[0217] Step 408: Store the received verification information as the identity information corresponding to the bank card, and delete the acquired identity information.
[0218] In this step, after the bank verification module receives the identity information, the bank verification module returns the verification information obtained from the stored data for verifying the identity information. The verification information is received, the obtained identity information is deleted, and the verification information is stored as the identity information corresponding to the bank card to update the identity information, thereby also improving the accuracy of the local verification result.
[0219] Step 409: Receive the verification result from the bank verification module and determine whether the verification result indicates that the identity information has passed the verification. If so, execute step 411; otherwise, execute step 410.
[0220] In this step, after the bank verification module uses the obtained verification information to verify the identity information, generates a verification result and returns the verification result, it receives the verification result corresponding to the identity information and determines whether the verification result indicates that the identity information has passed the verification. If so, execute step 411, otherwise, execute step 410.
[0221] Step 410: Output a prompt message indicating that the identity information has not passed the verification, and end the current process.
[0222] In this step, if it is determined that the identity information has not passed the verification, a prompt message indicating that the identity information has not passed the verification is output, so that the current user can further confirm the information of the bank card held by the user.
[0223] Step 411: Read the current weight of the item currently placed by the user in the target area.
[0224] In this step, after confirming that the identity information has been verified, the current weight of the items placed by the current user in the target area is read and subsequent grain delivery operations are performed.
[0225] Step 412: when the identification information of the bank card held by the current user is currently read, determine the second time point corresponding to the currently read identification information.
[0226] In this step, when the identification information of the bank card is read again, the time point at this time is determined as the second time point.
[0227] Step 413: Determine a third time point corresponding to when the historical identification information is read from the bank card.
[0228] In this step, the historical identification information is the identification information read before the currently read identification information, and the time interval between the third time point and the second time point is the shortest.
[0229] For example, assuming that the second time point is 11:00 on January 2, 2020, the times when the identification information of the bank card was read before the second time point were 9:00 on January 2, 2020, 19:00 on January 1, 2020, and 7:00 on January 1, 2020. Then 9:00 on January 2, 2020 is taken as the third time point.
[0230] Step 414: Determine whether the time interval between the second time point and the third time point is less than a preset third threshold; if so, execute step 415; otherwise, execute step 404.
[0231] In this step, continuing with the previous example, assuming that the third threshold is 24 hours, determine whether the time interval between the second time point (11:00 on January 2, 2020) and the third time point (9:00 on January 2, 2020) is less than 24 hours. If so, execute step 415; otherwise, execute step 404.
[0232] Step 415: Read the target identity information corresponding to the identification information in the stored data.
[0233] In this step, the target identity information corresponding to the identification information in the stored data is the verification information returned during the most recent online verification by the bank verification module.
[0234] Step 416: Obtain current identity information for characterizing the identity of the bank card holder.
[0235] In this step, information inputted from outside to represent the identity of the bank card holder is received as current identity information, wherein the current identity information includes the bank card holder's name, ID number, and identification information, etc. Specifically, the current identity information is obtained by scanning and / or externally inputting identity information, wherein the current identity information includes the bank card holder's name, ID number, and identification information, etc.
[0236] Step 417: Determine whether the current identity information matches the read target identity information, if so, execute step 418, otherwise, execute step 419.
[0237] In this step, it is determined whether the current identity information is completely consistent with the read target identity information. If so, step 418 is executed; otherwise, step 419 is executed.
[0238] Step 418: Read the current weight of the item placed by the current user in the target area, and end the current process.
[0239] In this step, after confirming that the identity information has been verified, the current weight of the items placed by the current user in the target area is read and subsequent grain delivery operations are performed, ending the current process.
[0240] Step 419: Output prompt information indicating that the identity information has not passed the verification.
[0241] In this step, if it is determined that the identity information has not passed the verification, a prompt message indicating that the identity information has not passed the verification is output, so that the current user can further confirm the information of the bank card held by the user.
[0242] An embodiment of the present invention further provides a smart device, comprising: at least one memory and at least one processor;
[0243] The at least one memory is used to store a machine-readable program;
[0244] The at least one processor is used to call the machine-readable program to execute the identity authentication method in any embodiment of the present invention.
[0245] An embodiment of the present invention further provides a computer-readable medium, on which computer instructions are stored. When the computer instructions are executed by a processor, the processor executes the identity authentication method in any embodiment of the present invention.
[0246] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
[0247] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer by a communication network.
[0248] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.
[0249] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion module connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or expansion module is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.
[0250] It should be noted that not all steps and units in the above-mentioned processes and system structure diagrams are necessary, and some steps or units can be ignored according to actual needs. The execution order of each step is not fixed and can be adjusted as needed. The system structure described in the above-mentioned embodiments can be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by multiple physical entities, or some components in multiple independent devices may be implemented together.
[0251] In the above embodiments, the hardware module can be implemented mechanically or electrically. For example, a hardware module can include permanent dedicated circuits or logic (such as special processors, FPGA or ASIC) to complete the corresponding operation. The hardware module can also include programmable logic or circuits (such as general-purpose processors or other programmable processors), which can be temporarily set by software to complete the corresponding operation. The specific implementation method (mechanical method, or dedicated permanent circuit, or temporarily set circuit) can be determined based on cost and time considerations.
[0252] The present invention is shown and described in detail above through the accompanying drawings and preferred embodiments. However, the present invention is not limited to these disclosed embodiments. Based on the above multiple embodiments, those skilled in the art can know that the code review methods in the above different embodiments can be combined to obtain more embodiments of the present invention, and these embodiments are also within the protection scope of the present invention.
Claims
1. An identity verification method, characterized in that: include: Read the identification information of the bank card held by the current user; Acquire identity information matching the identification information, wherein the identity information is used to represent the cardholder information of the bank card; Sending the identity information to an external bank verification module so that the bank verification module verifies the identity information and returns the verification result of the identity information; Determining whether the verification result indicates that the identity information has passed the verification; If yes, read the current weight of the item placed by the current user in the target area; Otherwise, outputting a prompt message indicating that the identity information has not passed the verification; The obtaining of identity information matching the identification information includes: Determining whether there is identity information matching the identification information in the stored data; If yes, executing the step of sending the identity information to an external bank verification module; If not, receiving externally input identity information corresponding to the identification information, storing the identity information, and executing the bank verification module for sending the identity information to an external bank; After sending the identity information to an external bank verification module, the method further comprises: Determining whether feedback information returned by the bank verification module indicating successful receipt of the identity information is received; If the feedback information is not received, obtaining current identity information for representing the identity of the cardholder of the bank card; Determining whether the current identity information matches the acquired identity information; If yes, determining that the identity information is verified; Otherwise, it is determined that the identity information has not passed the verification; The determining whether feedback information returned by the bank verification module and used to indicate successful receipt of the identity information is received includes: A1: Determine a first time point corresponding to sending the identity information to the bank verification module; A2: Determine the current time point; A3: Determine whether the determined time interval between the current time point and the first time point is greater than a preset first threshold, if yes, execute A4, otherwise execute A2; A4: record an abnormality record used to characterize abnormal communication with the bank verification module; A5: Determine whether the number of abnormal records for the identity information record is greater than a preset second threshold, if yes, execute A7, otherwise execute A6; A6: Execute the step of sending the identity information to an external bank verification module, and return to A1; A7: determining that no feedback information returned by the bank verification module indicating successful receipt of the identity information is received; After sending the identity information to an external bank verification module, the method further comprises: Receiving verification information fed back by the bank verification module, wherein the verification information is information stored by the bank verification module for verifying the identity information; Deleting the identity information and storing the verification information as the identity information; and / or, After determining that the verification result indicates that the identity information has passed the verification, further comprising: When the identification information of the bank card held by the current user is currently read, determining a second time point corresponding to the currently read identification information; Determine a third time point corresponding to when historical identification information is read from the bank card, wherein the historical identification information is identification information read before the identification information currently read, and the time interval between the third time point and the second time point is the shortest; Determining whether the time interval between the second time point and the third time point is less than a preset third threshold; If yes, read the target identity information corresponding to the identification information in the stored data; Obtaining current identity information for characterizing the identity of the cardholder of the bank card; Determining whether the current identity information matches the read target identity information; If yes, determining that the identity information is verified; Otherwise, it is determined that the identity information has not passed the verification.
2. An identity verification device, characterized in that include: an acquisition unit, a sending unit and a determination unit; The acquisition unit is used to read the identification information of the bank card held by the current user and acquire the identity information matching the identification information, wherein the identity information is used to represent the information of the holder of the bank card; The sending unit is used to send the identity information acquired by the acquiring unit to an external bank verification module, so that the bank verification module verifies the identity information and returns the verification result of the identity information; The determining unit is configured to determine whether the verification result sent by the sending unit indicates that the identity information has passed the verification, and if so, read the current weight of the item placed by the current user in the target area, otherwise output a prompt message indicating that the identity information has not passed the verification; The acquisition unit is used to perform the following processing: Determine whether there is identity information matching the identification information in the stored data, If so, obtaining identity information matching the identification information from the stored data; If not, receiving externally input identity information corresponding to the identification information, and storing the identity information; The determining unit is further configured to perform the following processing: Determining whether feedback information returned by the bank verification module indicating successful receipt of the identity information is received; If the feedback information is not received, obtaining current identity information for representing the identity of the cardholder of the bank card; Determining whether the current identity information matches the acquired identity information; If yes, determining that the identity information is verified; Otherwise, it is determined that the identity information has not passed the verification.
3. Smart device, characterized in that, include: at least one memory and at least one processor; The at least one memory is used to store a machine-readable program; The at least one processor is used to call the machine-readable program to execute the identity authentication method described in claim 1.
4. A computer-readable medium, characterized in that The computer-readable medium stores computer instructions, which, when executed by a processor, cause the processor to execute the identity authentication method of claim 1.
