Method, device and equipment for executing business operation and computer readable medium
By generating the correspondence between the business operation code and the combined verification code, using the Redis database to store and verify, the problem of long verification code verification time is solved, and efficient execution of business operations and security enhancement is achieved.
Patent Information
- Application Number
- CN202411327303.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-23
- Publication Date
- 2025-01-07
AI Technical Summary
In the process of business operations completed by multiple interfaces in a coordinated manner, the verification code verification time in the prior art is relatively long, which affects the efficiency of business operations.
By generating the correspondence between the service operation code and the combined verification code, using the Redis database to store and verify, avoid repeated verification code verification, and directly use the combined verification code to perform business operations on the next verification interface.
It shortens the verification time, improves the efficiency of business operations, ensures the normal execution of business operations, and enhances security.
Smart Images

Figure CN119276479A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mobile internet technology, and in particular to a method, device, equipment and computer-readable medium for executing business operations. Background Art
[0002] Verification codes are used in multiple scenarios such as registration or when you forget your password. To ensure the security of verification codes, the verification codes are often limited to one-time validity. That is, after a successful verification, the verification code is invalidated to avoid being intercepted by messages and repeated attacks.
[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art: in the actual technical application process, multiple interfaces are usually completed in collaboration, and verification codes are required at the interfaces. Obtaining verification codes multiple times results in a long verification time, affecting business operations. Summary of the invention
[0004] In view of this, embodiments of the present invention provide a method, apparatus, device and computer-readable medium for executing business operations, which can shorten the verification time and ensure the normal execution of business operations.
[0005] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for performing a service operation is provided, comprising:
[0006] In response to a business operation request, calling a verification interface to receive a verification code, the verification code being obtained based on business verification information, the business operation request including a business type and a business number;
[0007] After the verification code is successfully verified, a business operation code is generated using the identifier, and a corresponding relationship between the business operation code and the combined verification code is established, wherein the combined verification code is established based on the business verification information, the business type and the business number, and the corresponding relationship is stored in a Redis database as a key-value pair;
[0008] In response to the verification code verification success message, the combined verification code is obtained in the Redis database according to the business operation code. After the current business type and the current business number are successfully verified with the combined verification code, the business verification information in the combined verification code is entered in the next verification interface to perform the business operation.
[0009] In response to the service operation request, the verification interface is called to receive a verification code, the verification code is obtained based on the service verification information, and the service operation request includes a service type and a service number, including:
[0010] Input the service verification information into the front-end server, and input the verification code fed back by the service verification information into the front-end server;
[0011] In response to the business operation request, the back-end server calls the verification interface to receive a verification code, where the verification code is obtained based on the business verification information. The business operation request includes a business type and a business number, where the business type is the type involved in the business operation request, and the business identifier is the business identifier involved in the business operation.
[0012] After the verification code is successfully verified, a business operation code is generated using the identifier, and a corresponding relationship between the business operation code and the combined verification code is established. The combined verification code is established based on the business verification information, the business type and the business number. The corresponding relationship is stored in the Redis database as a key-value pair, including:
[0013] After the verification code is successfully verified, the verification code is set to be invalid and a business operation code is generated using an identifier, where the identifier is unique;
[0014] The combined verification code is established according to the business verification information, the business type and the business number, and the corresponding relationship between the business operation code and the combined verification code is identified, and the corresponding relationship is stored in a Redis database as a key-value pair.
[0015] The establishing the combined verification code according to the service verification information, the service type and the service number, and identifying the corresponding relationship between the service operation code and the combined verification code, includes:
[0016] Establishing the combined verification code according to the service verification information, the preset combined verification code valid time period, the service type and the service number, and identifying the corresponding relationship between the service operation code and the combined verification code;
[0017] After successfully verifying the current service type and the current service number with the combined verification code, inputting the service verification information in the combined verification code in the next verification interface to perform the service operation includes:
[0018] After the current service type and the current service number are successfully verified with the combined verification code, and the current time meets the preset combined verification code valid time period, the service verification information in the combined verification code is input in the next verification interface to perform the service operation.
[0019] The method further comprises:
[0020] According to the preset effective time period of the combination verification code, the corresponding relationship between the business operation code and the combination verification code is deleted in the Redis database.
[0021] The step of responding to the verification code verification success message, obtaining the combined verification code in the Redis database according to the business operation code, successfully verifying the current business type and the current business number with the combined verification code, and inputting the business verification information in the combined verification code in the next verification interface to perform the business operation includes:
[0022] In response to a verification code verification success message, obtaining the combined verification code in the Redis database according to the business operation code, where the business type in the combined verification code is the same as the current business type;
[0023] Based on the fact that the service number in the combined verification code is consistent with the current service number, the service verification information in the combined verification code is input in the next verification interface to perform the service operation.
[0024] The step of inputting the service verification information in the combined verification code on a next verification interface to perform a service operation based on the service number in the combined verification code being consistent with the current service number includes:
[0025] Based on the consistency between the service number in the combined verification code and the current service number, obtaining the next verification interface according to the current service type and the current service number;
[0026] The service verification information in the combined verification code is input at the next verification interface to perform the service operation.
[0027] According to a second aspect of an embodiment of the present invention, there is provided an apparatus for performing a service operation, including:
[0028] A receiving module, configured to call a verification interface to receive a verification code in response to a business operation request, wherein the verification code is obtained based on business verification information, and the business operation request includes a business type and a business number;
[0029] A construction module is used to generate a business operation code based on the identifier after the verification code is successfully verified, and establish a corresponding relationship between the business operation code and the combined verification code, wherein the combined verification code is established based on the business verification information, the business type and the business number, and the corresponding relationship is stored in a Redis database as a key-value pair;
[0030] An acquisition module is used to respond to a verification code verification success message, obtain the combined verification code in the Redis database according to the business operation code, and after successfully verifying the current business type and the current business number with the combined verification code, enter the business verification information in the combined verification code in the next verification interface to perform the business operation.
[0031] According to a third aspect of an embodiment of the present invention, there is provided an electronic device for performing a service operation, including:
[0032] one or more processors;
[0033] a storage device for storing one or more programs,
[0034] When the one or more programs are executed by the one or more processors, the one or more processors implement the above method.
[0035] According to a fourth aspect of an embodiment of the present invention, there is provided a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, the method as described above is implemented.
[0036] According to a fifth aspect of an embodiment of the present invention, a computer program product is provided, including a computer program, and when the program is executed by a processor, the method as described above provided by an embodiment of the present invention is implemented.
[0037] One embodiment of the above invention has the following advantages or beneficial effects: in response to a business operation request, a verification interface is called to receive a verification code, the verification code is obtained based on business verification information, and the business operation request includes a business type and a business number; after the verification code is successfully verified, a business operation code is generated using an identifier, and a corresponding relationship between the business operation code and the combined verification code is established, the combined verification code is established based on the business verification information, the business type and the business number, and the corresponding relationship is stored in a Redis database as a key-value pair; in response to a verification code verification success message, the combined verification code is obtained in the Redis database according to the business operation code, and after the current business type and the current business number are successfully verified with the combined verification code, the business verification information in the combined verification code is entered in the next verification interface to perform the business operation. Since the business verification information can be entered in the next verification interface to implement verification, there is no need to implement re-verification through the verification code, thereby shortening the verification time and ensuring the normal execution of the business operation.
[0038] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0040] Figure 1 is a schematic diagram of the main flow of a method for performing a business operation according to an embodiment of the present invention;
[0041] Figure 2is a schematic diagram of a process of calling a verification interface to receive a verification code in response to a business operation request according to an embodiment of the present invention;
[0042] Figure 3 is a schematic diagram of a flow chart of establishing a corresponding relationship between a service operation code and a combination check code according to an embodiment of the present invention;
[0043] Figure 4 is a schematic diagram of a process for verification using a business operation code according to an embodiment of the present invention;
[0044] Figure 5 is a schematic diagram of a process for obtaining a next verification interface according to an embodiment of the present invention;
[0045] Figure 6 is a schematic diagram of a process for verifying a current service type and a current service number according to an embodiment of the present invention;
[0046] Figure 7 is an interactive schematic diagram of a method for executing a business operation according to an embodiment of the present invention;
[0047] Figure 8 is a schematic diagram of the main structure of an apparatus for performing a service operation according to an embodiment of the present invention;
[0048] Fig. 9 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0049] Fig.10 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0050] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description. The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.
[0051] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0052] In actual applications, verification codes need to be used for multiple verifications. For example, in the registration scenario, you first enter the login information to obtain the verification code. Here, the verification code needs to be verified for the first time to prevent incorrect login information or theft of login information by someone with ulterior motives. Then, after the verification code is verified, enter the login password and call the registration interface to submit the registration information. At the registration interface, in order to ensure information security and make sure that the login information has not changed, you can use a verification code. However, for information security, if the verification code is set to be valid once, you need to enter the login information again to obtain the verification code again for the second verification.
[0053] In the process of executing business operations, multiple interfaces are usually completed in collaboration, and verification codes are required at the interfaces, which results in a long verification time and affects business operations.
[0054] In order to solve the problem that the long verification time affects the business operation, the following technical solution in the embodiment of the present invention can be adopted.
[0055] See also Figure 1 , Figure 1 1 is a schematic diagram of the main flow of the method for executing a business operation according to an embodiment of the present invention, which uses the corresponding relationship between the business operation code and the combined verification code to realize multiple uses of the business verification information to realize multiple verifications. Figure 1 As shown in 100, the following steps are specifically included:
[0056] S101. In response to a business operation request, a verification interface is called to receive a verification code, where the verification code is obtained based on business verification information. The business operation request includes a business type and a business number.
[0057] In an embodiment of the present invention, a business operation request is information that a user verifies at an interface through a verification code to perform a business operation. As an example, a business operation includes a scenario where a verification code is used for verification. For example, a business operation includes user registration or forgetting a password.
[0058] There are multiple interfaces involved in the business operation process, and at each interface, the verification code needs to be received using the business verification information. Moreover, for the security of the verification code, the verification code is valid once. As an example, the business verification information includes the mobile terminal number, and the verification code includes the SMS verification code.
[0059] In one embodiment of the present invention, Figure 1 The execution entity of each step is the backend server.
[0060] See also Figure 2 That is 200, Figure 2 This is a flow chart of calling a verification interface to receive a verification code in response to a business operation request according to an embodiment of the present invention. Specifically, the following steps are included:
[0061] S201. Input business verification information into the front-end server, and input the verification code fed back by the business verification information into the front-end server.
[0062] In an embodiment of the present invention, the service verification information input by the user is received by the front-end server. As an example, the service verification information includes a mobile terminal number, so that a text message verification code can be received through the mobile terminal number. The text message verification code corresponding to the mobile terminal number is input into the front-end server. As an example, the front-end server interacts with the user through an application (APP) and / or a browser.
[0063] That is to say, the verification code is obtained based on the business verification information. The verification code can be obtained through the business verification information.
[0064] S202. The backend server responds to the business operation request by calling the verification interface to receive a verification code, where the verification code is obtained based on the business verification information. The business operation request includes a business type and a business number. The business type is the type involved in the business operation request, and the business identifier is the business identifier involved in the business operation.
[0065] The back-end server receives a service operation request sent by the front-end server, and the service operation request includes a verification code, a service type, and a service number. The service type is the type involved in the service operation request. As an example, the service type includes new user service and old user service. The service identifier is the service identifier involved in the service operation. As an example, the service identifier includes: old user service 1 and old user service 2.
[0066] In response to the business operation request, the backend server calls the verification interface to receive the verification code, so as to verify the verification code at the verification interface. As an example, the verification interface verifies whether the received verification code is consistent with the verification code stored in the database. If they are consistent, the verification is successful; if they are inconsistent, the verification fails. By verifying the verification code, the validity of the business verification information is verified.
[0067] exist Figure 2 In an embodiment of the present invention, the verification code is obtained through the business verification information, so that the verification code is received and verified in the verification interface.
[0068] S102. After the verification code is successfully verified, a business operation code is generated using the identifier, and a corresponding relationship between the business operation code and the combined verification code is established. The combined verification code is established based on the business verification information, business type and business number, and the corresponding relationship is stored in the Redis database as a key-value pair.
[0069] In the embodiment of the present invention, after the verification code is successfully verified, it means that the business verification information is valid, and the business verification information can be stored in the Redis database in the form of a combined verification code.
[0070] Specifically, after the verification code is successfully verified, the business operation code is generated using the identifier, and a corresponding relationship between the business operation code and the combined verification code is established. The combined verification code is established based on the business verification information, business type and business number, and the corresponding relationship is stored in the Redis database as a key-value pair.
[0071] In one embodiment of the present invention, the verification code automatically becomes invalid after being verified once, thereby preventing the business operation request from being repeatedly attacked by a malicious third party after being intercepted.
[0072] See also Figure 3 That is 300, Figure 3 1 is a flow chart of establishing a corresponding relationship between a service operation code and a combination check code according to an embodiment of the present invention. Specifically, the following steps are included:
[0073] S301. After the verification code is successfully verified, the verification code is set to be invalid and a business operation code is generated using an identifier, where the identifier is unique.
[0074] After the verification code is successfully verified, the verification code is set to be invalid in order to improve security. The business operation code is generated using the identifier, and the identifier is unique. Since the identifier is unique, the business operation code is unique.
[0075] As an example, a universally unique identifier (UUID) is used as an identifier, and the business operation code is generated using the identifier. That is, the identifier is used as the business operation code. Since the UUID is unique, the business operation code is also unique.
[0076] S302: Create a combined verification code according to the business verification information, business type and business number, identify the corresponding relationship between the business operation code and the combined verification code, and store the corresponding relationship in a Redis database as a key-value pair.
[0077] In an embodiment of the present invention, after the verification code is successfully verified, the business verification information corresponding to the verification code can be obtained from the database, so that a combined verification code is established in combination with the business type and business number in the business operation request. That is, a combined verification code is established based on the business verification information, business type and business number. The correspondence between the business operation code and the combined verification code is identified, and the corresponding relationship is stored in the Redis database as a key-value pair. As an example, the business operation code is used as the key and the combined verification code is used as the value, and the correspondence between the business operation code and the combined verification code is stored in the Redis database in the form of a key-value pair.
[0078] In one embodiment of the present invention, in order to improve the security of the business operation code, the validity of the business operation code can be controlled by setting the valid time period of the business operation code. As an example, the valid time period of the business operation code is 5 minutes from the creation. That is, within 5 minutes, the business operation code can obtain the corresponding combination verification code by querying the Redis database. After 5 minutes, the corresponding combination verification code cannot be obtained by querying the Redis database using the business operation code.
[0079] exist Figure 3 In the embodiment, the correspondence between the business operation code and the combination verification code is used to store the combination verification code in the Redis database, so that even if the business operation code is leaked, the business verification information cannot be directly obtained through the business operation code, thereby improving the security of executing business operations.
[0080] S103. In response to the verification code verification success message, obtain the combined verification code in the Redis database according to the business operation code, and after successfully verifying the current business type and the current business number with the combined verification code, enter the business verification information in the combined verification code in the next verification interface to perform the business operation.
[0081] Successful verification of the verification code indicates that the verification code matches the business verification information. In order to implement verification in the next verification interface, you can obtain the combined verification code in the Redis database according to the business operation code. After successfully verifying the current business type and the current business number with the combined verification code, enter the business verification information in the combined verification code in the next verification interface for verification and then perform the business operation.
[0082] That is to say, when the next verification interface is verified, it is not necessary to verify through the verification code, but through the combined verification code obtained from the Redis database. On the one hand, the current business type and current business number are verified; on the other hand, the business verification information is verified.
[0083] After completing the above two aspects of verification, business operations can be performed if there is no verification interface; if there is a next verification interface, continue to obtain the combined verification code in the Redis database according to the business operation code for verification.
[0084] See also Figure 4 That is 400, Figure 4 1 is a flow chart of verification using a business operation code according to an embodiment of the present invention. Specifically, the following steps are included:
[0085] S401. In response to a verification code verification success message, a combination verification code is obtained in a Redis database according to the business operation code, and the business type in the combination verification code is the same as the current business type.
[0086] In response to the verification code verification success message, that is, the verification code verification is successful, the combined verification code can be obtained in the Redis database according to the business operation code. If the business type in the combined verification code is the same as the current business type, it means that the current business type meets the business type of the combined verification code.
[0087] S402: Based on the consistency between the service number in the combined verification code and the current service number, the service verification information in the combined verification code is input in the next verification interface to execute the service operation.
[0088] If the service type in the combined verification code is the same as the current service type, the service number in the combined verification code can be used to verify the current service number. Since the service number in the combined verification code is consistent with the current service number, it means that the current service number is consistent with the service number in the combined verification code. The service verification information in the combined verification code can be entered in the next verification interface to perform service operations.
[0089] In this way, there is no need to pass the verification code. The combined verification code can be used to verify not only the current business type, but also the current business number. Successful verification of the current business type and the current business number indicates that the application scenario requirements of the combined verification code are met. The business verification information is then entered at the next verification interface to ensure timely execution of business operations.
[0090] See also Figure 5 That is 500, Figure 5 1 is a flow chart of obtaining the next verification interface according to an embodiment of the present invention. Specifically, the following steps are included:
[0091] S501. Based on the consistency between the service number in the combined verification code and the current service number, the next verification interface is obtained according to the current service type and the current service number.
[0092] In an embodiment of the present invention, if the service number in the combined verification code is consistent with the current service number, it means that the current service type and the current service number are consistent with the service scenario. In the business scenario, multiple verification interfaces are involved. The next verification interface can be obtained according to the current service type and the current service number.
[0093] As an example, the business scenario involves verification interface 1, verification interface 2, and verification interface 3. The current business type is registration, the current business number is b, and the next verification interface to be obtained is verification interface 2.
[0094] S502: Input the service verification information in the combined verification code in the next verification interface to perform the service operation.
[0095] Input the service verification information in the combined verification code at the determined next verification interface to perform the service operation. Perform verification at the next verification interface using the service verification information, and perform the service operation after the verification succeeds.
[0096] exist Figure 5 In the embodiment, the next verification interface is obtained according to the current business type and the current business number to meet the verification requirements in the business operation.
[0097] See also Figure 6 That is 600, Figure 6 1 is a flow chart of verifying the current service type and the current service number according to an embodiment of the present invention. Specifically, the following steps are included:
[0098] S601. Create a combination verification code according to service verification information, a preset combination verification code valid time period, service type and service number, and identify the corresponding relationship between the service operation code and the combination verification code.
[0099] In one embodiment of the present invention, in order to improve the security of the combination verification code, the validity of the combination verification code can be controlled by presetting the combination verification code validity period. As an example, the preset combination verification code validity period is sent through a service operation request.
[0100] A combination verification code is established based on the business verification information, business type and business number, and the correspondence between the business operation code and the combination verification code is identified. Specifically: a combination verification code is established based on the business verification information, the preset combination verification code valid time period, the business type and the business number, and the correspondence between the business operation code and the combination verification code is identified.
[0101] S602: After successfully verifying the current service type and the current service number with the combined verification code, if the current time meets the preset effective time period of the combined verification code, the service verification information in the combined verification code is input in the next verification interface to execute the service operation.
[0102] After successfully verifying the current service type and the current service number with the combination verification code, the validity of the current time is verified using the preset combination verification code valid time period. If the current time meets the preset combination verification code valid time period, the service verification information in the combination verification code is entered in the next verification interface to perform the service operation; if the current time does not meet the preset combination verification code valid time period, it means that the combination verification code has expired and the service operation is stopped.
[0103] That is, after successfully verifying the current business type and the current business number with the combination verification code, the business verification information in the combination verification code is entered in the next verification interface to perform the business operation, including: after successfully verifying the current business type and the current business number with the combination verification code, the current time meets the preset combination verification code valid time period, then the business verification information in the combination verification code is entered in the next verification interface to perform the business operation.
[0104] exist Figure 6 In the embodiment of the present invention, the validity of the combination verification code is verified using a preset combination verification code valid time period to ensure the security of the combination verification code.
[0105] In one embodiment of the present invention, in order to further improve the security of the combination verification code, the corresponding relationship between the business operation code and the combination verification code can be deleted in the Redis database according to the preset combination verification code valid time period. As an example, the preset combination verification code valid time period is from 3:00 on January 1, 2001 to 4:00 on January 1, 2001, and the current time is 4:00 on January 1, 2001, then the corresponding relationship between the business operation code and the combination verification code is deleted in the Redis database.
[0106] In the above-mentioned embodiment of the present invention, in response to a business operation request, a verification interface is called to receive a verification code, the verification code is obtained based on business verification information, and the business operation request includes a business type and a business number; after the verification code is successfully verified, a business operation code is generated using an identifier, and a corresponding relationship between the business operation code and a combined verification code is established, the combined verification code is established based on the business verification information, the business type and the business number, and the corresponding relationship is stored in a Redis database as a key-value pair; in response to a verification code verification success message, the combined verification code is obtained in the Redis database according to the business operation code, and after the combined verification code successfully verifies the current business type and the current business number, the business verification information in the combined verification code is input in the next verification interface to perform the business operation. Since the business verification information can be input in the next verification interface to realize verification, there is no need to realize re-verification through the verification code, thereby shortening the verification time and ensuring the normal execution of the business operation.
[0107] In the embodiment of the present invention, verification code is used for one verification, and the security of the service verification information in the whole process is ensured. At the same time, due to the control of service type and service number, the misuse of service verification information is prevented. Since there is no need to verify again through verification code, the verification time can be shortened, and the normal execution of service operation is guaranteed.
[0108] The following is an illustrative description of the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Figure 7 , Figure 71 is an interactive schematic diagram of a method for executing a business operation according to an embodiment of the present invention. Specifically, the method includes the following steps:
[0109] S701. Enter the mobile phone number to obtain the SMS verification code.
[0110] exist Figure 7 In the embodiment of the present invention, the service verification information includes a mobile phone number, and the verification code includes a text message verification code. The user fills in the mobile phone number in the front-end page to obtain the text message verification code in the text message platform.
[0111] S702: Enter the SMS verification code.
[0112] After receiving the SMS verification code, the user enters the SMS verification code on the front-end page.
[0113] S703: Generate a business operation code, and establish and store a corresponding relationship between the business operation code and the combined verification code.
[0114] After the SMS verification code is successfully verified, the business operation code is generated using the identifier, and a corresponding relationship between the business operation code and the combined verification code is established. The above corresponding relationship is stored in the Redis database as a key-value pair.
[0115] S704. Return the business operation code.
[0116] The back-end server feeds back the business operation code to the front-end server so that the business verification information can be input into the next verification interface.
[0117] S705. Obtain a combined verification code from the Redis database according to the business operation code.
[0118] In response to the verification code verification success message, the combined verification code is obtained in the Redis database according to the business operation code.
[0119] S706. Return the combined verification code.
[0120] The combined verification code will be obtained from the Redis database and sent to the backend server.
[0121] S707. After the combined verification code successfully verifies the current service type and the current service number, enter the service verification information in the next verification interface for verification.
[0122] After the combined verification code successfully verifies the current business type and the current business number, enter the business verification information in the combined verification code in the next verification interface for verification. After the verification is successful, perform the business operation.
[0123] See also Figure 8 , Figure 8is a schematic diagram of the main structure of an apparatus for performing a business operation according to an embodiment of the present invention. The apparatus for performing a business operation can implement a method for performing a business operation, such as Figure 8 As shown in 800, the device for performing the service operation specifically includes:
[0124] The receiving module 801 is used to call the verification interface to receive a verification code in response to a business operation request, where the verification code is obtained based on business verification information, and the business operation request includes a business type and a business number;
[0125] A construction module 802 is used to generate a business operation code based on the identifier after the verification code is successfully verified, and establish a corresponding relationship between the business operation code and the combined verification code, wherein the combined verification code is established based on the business verification information, the business type and the business number, and the corresponding relationship is stored in a Redis database as a key-value pair;
[0126] The acquisition module 803 is used to respond to the verification code verification success message, obtain the combined verification code in the Redis database according to the business operation code, and after successfully verifying the current business type and the current business number with the combined verification code, enter the business verification information in the combined verification code in the next verification interface to perform the business operation.
[0127] In one embodiment of the present invention, the receiving module 801 is specifically configured to input the service verification information into the front-end server, and input the verification code fed back by the service verification information into the front-end server;
[0128] In response to the business operation request, the back-end server calls the verification interface to receive a verification code, where the verification code is obtained based on the business verification information. The business operation request includes a business type and a business number, where the business type is the type involved in the business operation request, and the business identifier is the business identifier involved in the business operation.
[0129] In one embodiment of the present invention, the construction module 802 is specifically used to set the verification code to be invalid and generate a business operation code using an identifier after the verification code is successfully verified, and the identifier is unique;
[0130] The combined verification code is established according to the business verification information, the business type and the business number, and the corresponding relationship between the business operation code and the combined verification code is identified, and the corresponding relationship is stored in a Redis database as a key-value pair.
[0131] In one embodiment of the present invention, the construction module 802 is specifically used to establish the combined verification code according to the service verification information, the preset combined verification code valid time period, the service type and the service number, and identify the corresponding relationship between the service operation code and the combined verification code;
[0132] The acquisition module 803 is specifically used to successfully verify the current service type and the current service number with the combined verification code, and if the current time meets the preset combined verification code valid time period, then the service verification information in the combined verification code is input in the next verification interface to execute the service operation.
[0133] In one embodiment of the present invention, the acquisition module 803 is specifically configured to delete the corresponding relationship between the business operation code and the combination verification code in the Redis database according to a preset combination verification code valid time period.
[0134] In one embodiment of the present invention, the acquisition module 803 is specifically used to obtain the combined verification code in the Redis database according to the business operation code in response to the verification code verification success message, and the business type in the combined verification code is the same as the current business type;
[0135] Based on the fact that the service number in the combined verification code is consistent with the current service number, the service verification information in the combined verification code is input in the next verification interface to perform the service operation.
[0136] In one embodiment of the present invention, the acquisition module 803 is specifically configured to acquire the next verification interface according to the current service type and the current service number based on the consistency between the service number in the combined verification code and the current service number;
[0137] The service verification information in the combined verification code is input in the next verification interface to perform the service operation.
[0138] Fig. 9 An exemplary system architecture 900 is shown to which the method for executing a business operation or the apparatus for executing a business operation according to the embodiments of the present invention can be applied.
[0139] like Fig. 9 As shown, system architecture 900 may include terminal devices 901, 902, 903, network 904 and server 905. Network 904 is used to provide a medium for communication links between terminal devices 901, 902, 903 and server 905. Network 904 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0140] Users can use terminal devices 901, 902, 903 to interact with server 905 through network 904 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 901, 902, 903, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).
[0141] The terminal devices 901 , 902 , and 903 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.
[0142] The server 905 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 901, 902, and 903. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.
[0143] It should be noted that the method for executing a business operation provided in the embodiment of the present invention is generally executed by the server 905 , and accordingly, the device for executing the business operation is generally set in the server 905 .
[0144] It should be understood that Fig. 9 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0145] A computer program product according to an embodiment of the present invention includes a computer program, and when the program is executed by a processor, the method for executing a business operation provided by an embodiment of the present invention is implemented.
[0146] Reference below Fig.10 , which shows a schematic diagram of the structure of a computer system 1000 of a terminal device suitable for implementing an embodiment of the present invention. Fig.10 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0147] like Fig.10As shown, the computer system 1000 includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage part 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the system 1000 are also stored. The CPU 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0148] The following components are connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that a computer program read therefrom is installed into the storage section 1008 as needed.
[0149] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1009, and / or installed from the removable medium 1011. When the computer program is executed by the central processing unit (CPU) 1001, the above-mentioned functions defined in the system of the present invention are executed.
[0150] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0151] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0152] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be arranged in a processor, for example, they may be described as: a processor including a receiving module, a building module and an acquisition module. The names of these modules do not constitute limitations on the modules themselves in certain cases, for example, the receiving module may also be described as "used to respond to a business operation request, call a verification interface to receive a verification code, the verification code is obtained based on business verification information, and the business operation request includes a business type and a business number".
[0153] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes:
[0154] In response to a business operation request, calling a verification interface to receive a verification code, the verification code being obtained based on business verification information, the business operation request including a business type and a business number;
[0155] After the verification code is successfully verified, a business operation code is generated using the identifier, and a corresponding relationship between the business operation code and the combined verification code is established, wherein the combined verification code is established based on the business verification information, the business type and the business number, and the corresponding relationship is stored in a Redis database as a key-value pair;
[0156] In response to the verification code verification success message, the combined verification code is obtained in the Redis database according to the business operation code. After the current business type and the current business number are successfully verified with the combined verification code, the business verification information in the combined verification code is entered in the next verification interface to perform the business operation.
[0157] According to the technical solution of the embodiment of the present invention, in response to a business operation request, a verification interface is called to receive a verification code, the verification code is obtained based on the business verification information, and the business operation request includes a business type and a business number; after the verification code is successfully verified, a business operation code is generated using an identifier, and a corresponding relationship between the business operation code and the combined verification code is established, the combined verification code is established based on the business verification information, the business type and the business number, and the corresponding relationship is stored in a Redis database as a key-value pair; in response to a verification code verification success message, the combined verification code is obtained in the Redis database according to the business operation code, and after the combined verification code successfully verifies the current business type and the current business number, the business verification information in the combined verification code is input in the next verification interface to perform the business operation. Since the business verification information can be input in the next verification interface to realize verification, there is no need to realize re-verification through the verification code, thereby shortening the verification time and ensuring the normal execution of the business operation.
[0158] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
[0159] It should be noted that in the technical solution of the present invention, the collection, analysis, use, transmission, storage and other aspects of user personal information involved are in compliance with the provisions of relevant laws and regulations, are used for legal and reasonable purposes, are not shared, leaked or sold outside of these legal uses, and are subject to supervision and management by regulatory authorities. Necessary measures should be taken for user personal information to prevent illegal access to such personal information data, ensure that persons who have access to personal information data comply with the provisions of relevant laws and regulations, and ensure the security of user personal information. Once these user personal information data are no longer needed, the risks should be minimized by limiting or even prohibiting data collection and / or deleting data.
[0160] When applicable, including in certain relevant applications, protect user privacy by de-identifying data, such as by removing specific identifiers (e.g., date of birth, etc.) when applicable, controlling the amount or specificity of data stored (e.g., collecting location data at a city level rather than at a specific address level), controlling how data is stored, and / or other de-identification methods.
Claims
1. A method for performing a business operation, characterized in that: include: In response to a business operation request, calling a verification interface to receive a verification code, the verification code being obtained based on business verification information, the business operation request including a business type and a business number; After the verification code is successfully verified, a business operation code is generated using the identifier, and a corresponding relationship between the business operation code and the combined verification code is established, wherein the combined verification code is established based on the business verification information, the business type and the business number, and the corresponding relationship is stored in a Redis database as a key-value pair; In response to the verification code verification success message, the combined verification code is obtained in the Redis database according to the business operation code. After the current business type and the current business number are successfully verified with the combined verification code, the business verification information in the combined verification code is entered in the next verification interface to perform the business operation.
2. The method for performing business operations according to claim 1, characterized in that: In response to the service operation request, the verification interface is called to receive a verification code, the verification code is obtained based on the service verification information, and the service operation request includes a service type and a service number, including: Input the service verification information into the front-end server, and input the verification code fed back by the service verification information into the front-end server; In response to the business operation request, the back-end server calls the verification interface to receive a verification code, where the verification code is obtained based on the business verification information. The business operation request includes a business type and a business number, where the business type is the type involved in the business operation request, and the business identifier is the business identifier involved in the business operation.
3. The method for performing business operations according to claim 1, characterized in that: After the verification code is successfully verified, a business operation code is generated using the identifier, and a corresponding relationship between the business operation code and the combined verification code is established. The combined verification code is established based on the business verification information, the business type and the business number. The corresponding relationship is stored in the Redis database as a key-value pair, including: After the verification code is successfully verified, the verification code is set to be invalid and a business operation code is generated using an identifier, where the identifier is unique; The combined verification code is established according to the business verification information, the business type and the business number, and the corresponding relationship between the business operation code and the combined verification code is identified, and the corresponding relationship is stored in a Redis database as a key-value pair.
4. The method for performing business operations according to claim 3, characterized in that: The establishing the combined verification code according to the service verification information, the service type and the service number, and identifying the corresponding relationship between the service operation code and the combined verification code, includes: Establishing the combined verification code according to the service verification information, the preset combined verification code valid time period, the service type and the service number, and identifying the corresponding relationship between the service operation code and the combined verification code; After successfully verifying the current service type and the current service number with the combined verification code, inputting the service verification information in the combined verification code in the next verification interface to perform the service operation includes: After the current service type and the current service number are successfully verified with the combined verification code, and the current time meets the preset combined verification code valid time period, the service verification information in the combined verification code is input in the next verification interface to perform the service operation.
5. The method for performing business operations according to claim 4, characterized in that: The method further comprises: According to the preset effective time period of the combination verification code, the corresponding relationship between the business operation code and the combination verification code is deleted in the Redis database.
6. The method for performing business operations according to claim 1, characterized in that: The step of responding to the verification code verification success message, obtaining the combined verification code in the Redis database according to the business operation code, successfully verifying the current business type and the current business number with the combined verification code, and inputting the business verification information in the combined verification code in the next verification interface to perform the business operation includes: In response to a verification code verification success message, obtaining the combined verification code in the Redis database according to the business operation code, where the business type in the combined verification code is the same as the current business type; Based on the fact that the service number in the combined verification code is consistent with the current service number, the service verification information in the combined verification code is input in the next verification interface to perform the service operation.
7. The method for performing business operations according to claim 6, characterized in that: The step of inputting the service verification information in the combined verification code on a next verification interface to perform a service operation based on the service number in the combined verification code being consistent with the current service number includes: Based on the consistency between the service number in the combined verification code and the current service number, obtaining the next verification interface according to the current service type and the current service number; The service verification information in the combined verification code is input at the next verification interface to perform the service operation.
8. A device for performing a business operation, characterized in that: include: A receiving module, configured to call a verification interface to receive a verification code in response to a business operation request, wherein the verification code is obtained based on business verification information, and the business operation request includes a business type and a business number; A construction module is used to generate a business operation code based on the identifier after the verification code is successfully verified, and establish a corresponding relationship between the business operation code and the combined verification code, wherein the combined verification code is established based on the business verification information, the business type and the business number, and the corresponding relationship is stored in a Redis database as a key-value pair; An acquisition module is used to respond to a verification code verification success message, obtain the combined verification code in the Redis database according to the business operation code, and after successfully verifying the current business type and the current business number with the combined verification code, enter the business verification information in the combined verification code in the next verification interface to perform the business operation.
9. An electronic device for performing business operations, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.