Recharging method, device and electronic device based on QR code

By scanning a QR code to display the recharge page and using server verification information to recharge, the problem of high resource consumption and low security of physical recharge cards is solved, realizing a safe and efficient virtual recharge process.

CN115063137BActive Publication Date: 2024-11-12CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210667808.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-14
Publication Date
2024-11-12
Estimated Expiration
2042-06-14

AI Technical Summary

Technical Problem

Existing physical recharge cards consume a lot of resources and have low security, cannot be verified with real names, and can be used by anyone.

Method used

The recharge method adopts a QR code-based approach. By scanning the QR code, the recharge page is displayed, the user information of the terminal device is obtained, and the target credential information of the server is used for verification. After successful verification, the recharge operation is performed.

Benefits of technology

It saves on the manufacturing cost of physical recharge cards and improves the security of recharge through a verification process, ensuring that only legitimate users can recharge.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115063137B_ABST
    Figure CN115063137B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a recharge method, device and electronic device based on a QR code, the method comprising: scanning a target QR code to display a recharge page; obtaining local user information of a terminal device; sending a first verification request carrying user information and a target code to a server, so that the server returns first verification result information based on the user information and target credential information; receiving a first input from a user on a recharge page when the first verification result information is received and the first verification result information indicates that the verification is passed; in response to the first input, sending a first recharge request carrying the first recharge information and a target code to the server, so that the server performs an operation of recharging a first target recharge number based on the first recharge information. Since a recharge request needs to be initiated when the verification is passed, recharge is avoided when the verification fails or there is no verification process, thereby improving the security of user recharge.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of Internet and software development, and in particular to a recharging method, device and electronic equipment based on a QR code. Background Art

[0002] As the Internet enters thousands of households, people must be familiar with recharge cards. Recharge cards are a type of stored value card provided by specific merchants, including mobile phone recharge cards, game point cards, transportation cards, etc.

[0003] Today's recharge cards are physical cards with the card amount or card name on the front and a scratch card area on the back, which contains the password, card number, expiration date, instructions for use, etc.

[0004] However, it is understandable that since the information attached to each recharge card is different, it is equivalent to consuming a certain amount of resources for each recharge card, so a large amount of resources will be consumed when manufacturing physical recharge cards; and the existing recharge cards are not real-name authenticated, that is, anyone who gets the recharge card can use it to recharge, thereby reducing the security of user recharge. Summary of the invention

[0005] In view of the above problems, embodiments of the present invention are proposed to provide a QR code-based recharge method, device, and electronic device that overcome the above problems or at least partially solve the above problems.

[0006] In a first aspect, an embodiment of the present invention provides a recharging method based on a QR code, which is applied to a terminal device, and the method includes:

[0007] Scan the target QR code to display the recharge page, wherein the target QR code includes the target code and the page address of the recharge page;

[0008] Acquire local user information of the terminal device;

[0009] Sending a first verification request carrying the user information and the target code to a server, so that the server returns first verification result information based on the user information and the target credential information, wherein the server is provided with a target virtual recharge card for the target code, and the target credential information is information reserved by the server for the user to purchase the target virtual recharge card for the target code;

[0010] When the first verification result information is received and the first verification result information indicates that the verification is passed, receiving a first input of the user on the recharge page;

[0011] In response to the first input, a first recharge request carrying first recharge information and the target code is sent to the server, so that the server performs an operation of recharging a first target recharge number based on the first recharge information, wherein the first recharge information includes the first target recharge number.

[0012] Optionally, the target credential information includes a telephone number,

[0013] When the first verification result information is received and the first verification result information indicates that the verification is passed, the method further includes:

[0014] The telephone number is displayed in a first control on the recharge page, wherein the first control is a control on the recharge page used to fill in the telephone number to be recharged.

[0015] Optionally, the first input includes a first sub-input and a second sub-input; and receiving the first input of the user on the recharge page includes:

[0016] receiving the first sub-input of the user to a first control in the recharge page, wherein the first control is a control in the recharge page for filling in a phone number to be recharged;

[0017] receiving the second sub-input of the user to a second control in the recharge page, wherein the second control is a control in the recharge page for triggering a recharge request;

[0018] The step of sending, in response to the first input, a first recharge request carrying first recharge information and the target code to the server includes:

[0019] In response to the first sub-input, displaying the to-be-recharged phone number input by the user through the first sub-input in the first control;

[0020] In response to the second sub-input, the telephone number to be recharged displayed in the first control is determined as the first target recharge number, and a first recharge request carrying the first target recharge number and the target code is sent to the server.

[0021] Optionally, after sending the first verification request carrying the user information and the target code to the server, the method further includes:

[0022] When the first verification result information is received and the first verification result information indicates that the verification has failed, displaying a verification page;

[0023] Receiving first information to be verified entered by the user on the verification page;

[0024] Sending a second verification request carrying the first information to be verified and the target code to the server, so that the server returns second verification result information based on the first information to be verified and the target credential information;

[0025] When the second verification result information is received and the second verification result information indicates that the verification is passed, the recharge page is displayed.

[0026] Optionally, the recharge page displays a third control for filling in the second information to be verified;

[0027] After sending the first verification request carrying the user information and the target code to the server, the method further includes:

[0028] When the first verification result information is received and the first verification result information indicates that the verification has failed, receiving a second input of the user to the third control;

[0029] In response to the second input, displaying the second information to be verified input by the user through the second input in the third control;

[0030] Receiving a third input from the user on the recharge page;

[0031] In response to the third input, a second recharge request carrying the second information to be verified, the second recharge information and the target code is sent to the server, so that the server generates third verification result information based on the second information to be verified and the target credential information, and when the third verification result information indicates that the verification is passed, an operation of recharging the second target recharge number is performed based on the second recharge information, wherein the second recharge information includes the second target recharge number.

[0032] Optionally, the server stores, for the target code, first status information indicating that the target virtual recharge card cannot be used or second status information indicating that the target virtual recharge card is available;

[0033] After sending the first verification request carrying the user information and the target code to the server, the method further includes:

[0034] When receiving the locking information, displaying a verification page; wherein the locking information is information sent by the server to the terminal device when the server stores the first state information for the target code;

[0035] Receiving third information to be verified entered by the user on the verification page;

[0036] A third verification request carrying the third information to be verified and the target code is sent to the server, so that the server generates fourth verification result information based on the third information to be verified and the target credential information, and when the fourth verification result information indicates that the verification is passed, the first status information stored for the target code is updated to the second status information.

[0037] Optionally, the recharge page displays a fourth control for triggering display of a modification page.

[0038] When the first verification result information is received and the first verification result information indicates that the verification is passed, the method further includes:

[0039] receiving a fourth input from a user to the fourth control;

[0040] In response to the fourth input, displaying the modification page;

[0041] Receiving modification information input by the user on the modification page;

[0042] A modification request carrying the modification information and the target code is sent to the server, so that the server updates the target credential information based on the modification information.

[0043] Optionally, the first recharge information further includes: a target recharge amount, wherein the target recharge amount is less than or equal to the current remaining storage amount of the target virtual recharge card.

[0044] In a second aspect, an embodiment of the present invention further provides a recharge method based on a QR code, which is applied to a server, and the method includes:

[0045] Generate a target QR code, wherein the target QR code includes a target code and a page address of a recharge page;

[0046] Receiving a first verification request sent by a terminal device after scanning the target QR code, wherein the first verification request carries local user information of the terminal device and the target code;

[0047] Generate first verification result information based on target credential information and the user information in the first verification request, wherein the server is provided with a target virtual recharge card for the target code, and the target credential information is information reserved for the user to purchase the target virtual recharge card stored for the target code;

[0048] Sending the first verification result information to the terminal device;

[0049] When receiving a first recharge request sent by the terminal device and carrying the first recharge information and the target code, performing a recharge operation on the first target recharge number based on the first recharge information,

[0050] The first recharge information includes the first target recharge number, and the first recharge request is a recharge request sent to the server by the terminal device in response to the user's first input on the recharge page when the terminal device receives the first verification result information and the first verification result information indicates that the verification is passed.

[0051] Optionally, after sending the first verification result information to the terminal device, the method further includes:

[0052] Upon receiving a second verification request sent by the terminal device and carrying the first information to be verified and the target code, generating second verification result information based on the first information to be verified and the target credential information;

[0053] The second verification result information is sent to the terminal device.

[0054] Optionally, after sending the first verification result information to the terminal device, the method further includes:

[0055] upon receiving a second recharge request sent by the terminal device and carrying the second information to be verified, the second recharge information and the target code, generating third verification result information based on the second information to be verified and the target credential information, wherein the second recharge information includes a second target recharge number;

[0056] When the third verification result information indicates that the verification is passed, an operation of recharging the second target recharging number is performed based on the second recharging information.

[0057] Optionally, the server stores, for the target code, first status information indicating that the target virtual recharge card cannot be used or second status information indicating that the target virtual recharge card is available;

[0058] After receiving the first verification request sent by the terminal device after scanning the target QR code, the method further includes:

[0059] In the case of determining that the server stores the information representing the first state for the target code, sending locking information to the terminal device;

[0060] Upon receiving a third verification request sent by the terminal device and carrying the third information to be verified and the target code, generating fourth verification result information based on the third information to be verified and the target credential information;

[0061] When the fourth verification result information indicates that the verification is passed, the first state information stored for the target code is updated to the second state information.

[0062] Optionally, after sending the first verification result information to the terminal device, the method further includes:

[0063] receiving a modification request sent by the terminal device, wherein the modification request carries modification information and the target code;

[0064] The target credential information is updated based on the modification information.

[0065] Optionally, the first recharge information further includes: a target recharge amount, and the server records the current remaining storage amount of the target virtual recharge card for the target code;

[0066] The operation of performing recharging on the first target recharging number based on the first recharging information includes:

[0067] Based on the target code, determining the current remaining storage amount of the target virtual recharge card;

[0068] When the target recharge amount is less than or equal to the current remaining storage amount of the target virtual recharge card, the target recharge amount is recharged to the first target recharge number, and the storage amount after recharge is updated to the target amount, wherein the target amount is equal to the difference between the storage amount before recharge and the target recharge amount.

[0069] In a third aspect, an embodiment of the present invention further provides a recharging device based on a QR code, which is applied to a terminal device, and the device includes:

[0070] A scanning module, used to scan a target QR code and display a recharge page, wherein the target QR code includes a target code and a page address of the recharge page;

[0071] An acquisition module, used to acquire local user information of the terminal device;

[0072] A first sending module, configured to send a first verification request carrying the user information and the target code to a server, so that the server returns first verification result information based on the user information and the target credential information, wherein the server is provided with a target virtual recharge card for the target code, and the target credential information is information reserved by the server for the user to purchase the target virtual recharge card for the target code;

[0073] A first receiving module is used to receive a first input of a user on the recharge page when the first verification result information is received and the first verification result information indicates that the verification is passed;

[0074] A second sending module is used to send a first recharge request carrying first recharge information and the target code to the server in response to the first input, so that the server performs an operation of recharging a first target recharge number based on the first recharge information, wherein the first recharge information includes the first target recharge number.

[0075] In a fourth aspect, an embodiment of the present invention further provides a recharging device based on a QR code, which is applied to a server, and the device includes:

[0076] A first generating module, used to generate a target QR code, wherein the target QR code includes a target code and a page address of a recharge page;

[0077] A second receiving module is used to receive a first verification request sent by a terminal device after scanning the target QR code, wherein the first verification request carries local user information of the terminal device and the target code;

[0078] A second generating module, configured to generate first verification result information based on target credential information and the user information in the first verification request, wherein the server is provided with a target virtual recharge card for the target code, and the target credential information is information reserved for the user to purchase the target virtual recharge card stored for the target code;

[0079] A third sending module, used to send the first verification result information to the terminal device;

[0080] a recharge module, configured to, upon receiving a first recharge request sent by the terminal device and carrying the first recharge information and the target code, perform a recharge operation on the first target recharge number based on the first recharge information,

[0081] The first recharge information includes the first target recharge number, and the first recharge request is a recharge request sent to the server by the terminal device in response to the user's first input on the recharge page when the terminal device receives the first verification result information and the first verification result information indicates that the verification is passed.

[0082] In the fifth aspect, an embodiment of the present invention further provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the QR code-based recharge method as described in the first aspect or the QR code-based recharge method as described in the second aspect is implemented.

[0083] In a sixth aspect, an embodiment of the present invention further provides a readable storage medium. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute any of the QR code-based recharge methods described above or any of the QR code-based recharge methods described above.

[0084] In an embodiment of the present invention, during the recharge process, by scanning a target QR code including a page address of the recharge page, the recharge page can be displayed to start the recharge process. Since a QR code is used instead of a physical recharge card during the recharge process, the manufacturing cost of the physical recharge card is saved; then the local user information of the terminal device is obtained, and then a first verification request carrying the user information and the target code in the target QR code is sent to the server, so that the server returns the first verification result information based on the user information and the target credential information, wherein the target credential information is the information reserved by the server for the user to purchase the target virtual recharge card stored in the target code. A verification process is added during the recharge process, and through the target credential information and the local user information of the terminal device, it can be verified whether the first user currently recharging is the second user who purchases the target virtual recharge card or the third user authorized by the second user. When the first verification result information is received and the first verification result information indicates that the verification is passed, based on the first input of the user on the recharge page, a first recharge request carrying the first recharge information and the target code is sent to the server, so that the server performs the operation of recharging the first target recharge number based on the first recharge information. Since a recharge request needs to be initiated to realize recharge when the verification is passed, direct recharge can be avoided when the verification fails or there is no verification process, thereby improving the security of user recharge. BRIEF DESCRIPTION OF THE DRAWINGS

[0085] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0086] Figure 1 A flowchart of the steps of a QR code-based recharge method applied to a terminal device provided in an embodiment of the present invention;

[0087] Figure 2 A flowchart of the steps of a QR code-based recharge method applied to a server provided in an embodiment of the present invention;

[0088] Figure 3 A practical application flow chart of a recharge method based on a QR code provided in an embodiment of the present invention;

[0089] Figure 4 A schematic diagram of the structure of a QR code-based charging device applied to a terminal device provided by an embodiment of the present invention;

[0090] Figure 5 A schematic structural diagram of a QR code-based recharging device applied to a server provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0091] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0092] It should be understood that the references to "one embodiment" or "an embodiment" throughout the specification mean that the specific features, structures, or characteristics associated with the embodiment are included in at least one embodiment of the present invention. Therefore, the references to "in one embodiment" or "in an embodiment" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0093] In various embodiments of the present invention, it should be understood that the size of the serial numbers of the following processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0094] See also Figure 1The embodiment of the present invention provides a recharging method based on a QR code, which is applied to a terminal device. The method includes:

[0095] Step 101: Scan the target QR code to display the recharge page, wherein the target QR code includes the target code and the page address of the recharge page.

[0096] It should be noted that the terminal device is an electronic device with a scanning function. When the user recharges through the terminal device, the terminal device will start the scanning function and scan the target QR code. When the terminal device starts the scanning function, by scanning the target QR code, the target code carried in the target QR code and the page address of the recharge page can be obtained. Then, according to the obtained page address, the page data of the recharge page can be obtained from the server, and the obtained page data of the recharge page can be rendered to the display interface of the terminal device, that is, the recharge page is displayed. Here, there are many possible sources of the target QR code, which can be a QR code downloaded to the local terminal device or a QR code on other terminal devices, which is not limited here.

[0097] It should be noted that the recharge page here can be a web page or a page in an application installed on the terminal device, and both display the same page content. Taking a mobile phone as an example, after scanning the target QR code with the mobile phone to obtain the page address of the recharge page, it automatically detects whether the mobile phone has a client of the recharge system installed. If so, the client is started to open the recharge page through the page address to load the corresponding content. If not, the recharge page is loaded in the form of a web page through the page address.

[0098] Step 102: Obtain local user information of the terminal device.

[0099] It should be noted that the local user information of the terminal device is the information stored locally on the terminal device and associated with the terminal device or the user. In the case where the terminal device is a mobile phone, the local user information of the terminal device may be the local phone number, the account information of the current login account of the target application installed in the mobile phone, etc., wherein the target application is the application to which the recharge page belongs, and the account information includes but is not limited to the account nickname, the real name entered by the user when registering the account, and the ID number.

[0100] Step 103: Send a first verification request carrying user information and target code to the server, so that the server returns first verification result information based on the user information and target credential information.

[0101] It should be noted that the server is provided with a target virtual recharge card for the target code, and the target credential information is the information reserved by the server for the user to purchase the target virtual recharge card for the target code. That is to say, when the user purchases the target virtual recharge card, the user will reserve some data indicating the user's identity as the target credential information. Among them, the user is the user who uses the target virtual recharge card, and the user can be the person who purchases the target virtual recharge card, or it can be someone else. The server stores the target credential information corresponding to the target virtual recharge card. Therefore, the target credential information can also be regarded as the user information of the user who uses the target virtual recharge card stored on the server side. The local user information of the terminal device carried in the first verification request can be regarded as the user information of the user who uses the target virtual recharge card on the terminal device side. Therefore, through the target credential information and the user information in the first verification request, it can be verified whether the user information of the user who uses the target virtual recharge card on both the terminal device side and the server side is consistent, and the first verification result information can be generated. Among them, if the user information of the two is consistent, the verification is passed, otherwise the verification fails.

[0102] It is understandable that the target virtual recharge card is not a physical card, but a piece of data recorded in the server, and the target code can be understood as the card number of the target virtual recharge card. In the case where multiple virtual recharge cards are set in the server, a code is stored for each virtual recharge card, and each code is different from each other, so that different virtual recharge cards can be distinguished by the code. The target code is used to determine which virtual recharge card the user uses, so as to find the target credential information.

[0103] Step 104: When the first verification result information is received and the first verification result information indicates that the verification is passed, receive the first input of the user on the recharge page.

[0104] It should be noted that, when the first verification result information indicating that the verification is successful is received, it indicates that the user information of the user using the target virtual recharge card on both the terminal device side and the server side is consistent, and the terminal device side will be allowed to continue to use the target virtual recharge card for recharge. At this time, by receiving the first input of the user on the recharge page, the relevant information required for recharge can be obtained.

[0105] Step 105: In response to the first input, a first recharge request carrying the first recharge information and the target code is sent to the server, so that the server performs a recharge operation on the first target recharge number based on the first recharge information.

[0106] It should be noted that the first recharge information includes relevant information required for recharge, and specifically, the first recharge information includes: a first target recharge number, wherein the first target recharge number can be the phone number displayed in the recharge page. Here, the terminal device informs the server that the user has a recharge demand by sending a first recharge request, informs the server of the virtual recharge card used by the user for recharge through the target code in the first recharge request, and informs the server of the phone number targeted by the user for recharge through the first recharge information in the first recharge request, so that the server can finally recharge the first target recharge number using the target virtual recharge card according to the first recharge request.

[0107] In an embodiment of the present invention, during the recharge process, by scanning the target QR code including the page address of the recharge page, the recharge page can be displayed to start the recharge process. Since the QR code is used instead of the physical recharge card during the recharge process, the manufacturing cost of the physical recharge card is saved; then the local user information of the terminal device is obtained, and then the first verification request carrying the user information and the target code in the target QR code is sent to the server, so that the server returns the first verification result information based on the user information and the target credential information, wherein the target credential information is the information reserved by the server for the user to purchase the target virtual recharge card stored in the target code, and the verification process is added during the recharge process. Through the target credential information and the local user information of the terminal device, it can be verified whether the first user currently recharging is the second user who purchases the target virtual recharge card or the third user authorized by the second user. When the first verification result information is received and the first verification result information indicates that the verification is passed, based on the first input of the user on the recharge page, the first recharge request carrying the first recharge information and the target code is sent to the server, so that the server performs the operation of recharging the first target recharge number based on the first recharge information. Since a recharge request needs to be initiated to realize recharge when the verification is passed, direct recharge can be avoided when the verification fails or there is no verification process, thereby improving the security of user recharge.

[0108] Optionally, the target credential information includes a telephone number,

[0109] When the first verification result information is received and the first verification result information indicates that the verification is successful, the method further includes:

[0110] The telephone number is displayed in a first control on the recharge page, wherein the first control is a control on the recharge page for filling in the telephone number to be recharged.

[0111] It should be noted that the terminal device can be a mobile phone, and the phone number to be recharged is the recharge object. Therefore, the phone number displayed in the first control is the current recharge object. The user can quickly know the current recharge object by viewing the first control. In addition, the user modifies the current recharge object, that is, modifies the phone number displayed in the first control. After receiving the user's modification operation, the terminal device will display the modified phone number in the first control of the recharge page.

[0112] It is understandable that, usually when the user purchases the target virtual recharge card, it has been determined which number he wants to use the target virtual recharge card to recharge. At this time, the user usually reserves the phone number, that is, when the target credential information includes a phone number, the phone number is the recharge object predetermined by the user. At this time, if the terminal device receives the first verification result information representing the verification is passed, by directly displaying the phone number in the target credential information (the recharge object predetermined by the user) in the first control, the user is saved from the step of manually entering the phone number in the first control. Among them, the phone number in the target credential information can be carried in the first verification result information and sent to the terminal device, but is not limited to this. For example, the local user information of the terminal device may include the local number. When the local number is the same as the phone number in the target credential information, the representation verification is passed. At this time, the local number can be directly obtained from the local terminal device for display.

[0113] In an embodiment of the present invention, when the target credential information includes a phone number and the first verification result information indicating that the verification is successful is received, the phone number to be recharged can be automatically displayed in the first control of the recharge page, so that the user can intuitively view the recharge object. At the same time, if the currently displayed recharge object meets the user's needs, the user can be saved from manually entering the phone number to be recharged, thereby simplifying the recharge operation.

[0114] Optionally, the first input includes a first sub-input and a second sub-input;

[0115] Receiving the user's first input on the recharge page, including:

[0116] Receiving a first sub-input of a user to a first control in a recharge page, wherein the first control is a control in the recharge page for filling in a phone number to be recharged;

[0117] receiving a second sub-input from the user to a second control in the recharge page, wherein the second control is a control in the recharge page for triggering a recharge request;

[0118] In response to the first input, sending a first recharge request carrying the first recharge information and the target code to the server, including:

[0119] In response to the first sub-input, displaying the phone number to be recharged input by the user through the first sub-input in the first control;

[0120] In response to the second sub-input, the phone number to be recharged displayed in the first control is determined as a first target recharge number, and a first recharge request carrying the first target recharge number and a target code is sent to the server.

[0121] It should be noted that the first input of the user on the recharge page includes a first sub-input and a second sub-input, wherein the relevant information required for recharge can be obtained through the first sub-input, and the recharge request can be triggered through the second sub-input. Here, the first control and the second control are used to receive corresponding inputs, for example, the first control can be an input box, and the second control can be a submit button, but it is not limited thereto.

[0122] In the embodiment of the present invention, the user can freely determine the recharge object, that is, the phone number to be recharged, through the first sub-input; and can freely determine the recharge timing through the second sub-input, so that the entire recharge process has better flexibility and can provide users with more choices.

[0123] Optionally, after sending the first verification request carrying the user information and the target code to the server, the method further includes:

[0124] When the first verification result information is received and the first verification result information indicates that the verification has failed, displaying a verification page;

[0125] Receiving first information to be verified entered by the user on the verification page;

[0126] Sending a second verification request carrying the first information to be verified and the target code to the server, so that the server returns second verification result information based on the first information to be verified and the target credential information;

[0127] When the second verification result information is received and the second verification result information indicates that the verification is passed, a recharge page is displayed.

[0128] It should be noted that, in the case of receiving the first verification result information indicating that the verification has failed, it means that the user information of the user using the target virtual recharge card on both the terminal device side and the server side is inconsistent, and the terminal device side will not be allowed to continue to use the target virtual recharge card for recharge. At this time, if the terminal device side wants to continue to use the target virtual recharge card for recharge, a secondary verification is required, that is, the terminal device needs to send a second verification request to the server so that the server performs a secondary verification based on the data carried in the second verification request. Here, the user is prompted to enter the data required for the secondary verification, that is, the first information to be verified, by displaying a verification page. After receiving the first information to be verified entered by the user, it is carried in the second verification request and sent to the server. Compared with the primary verification based on user information and target credential information, the secondary verification utilizes the first information to be verified and the target credential information. The processes of the two verifications are similar and will not be repeated here.

[0129] It is understandable that, in the case where the user has learned the target credential information, the first information to be verified entered by the user on the verification page can be the target credential information to ensure that the secondary verification can pass. Here, the user who uses the target virtual recharge card to recharge can be the user who purchases the target virtual recharge card or other users authorized by the user. Among them, other users authorized by the user are users who are informed of the target credential information by the user. Here, two users are used as an example for explanation, for example, user A purchases the target virtual recharge card, and user A allows user B to use the target virtual recharge card, that is, user B is another user authorized by user A. After user B uses terminal device B to scan the target QR code, since the terminal device B used is not the terminal device A of user A, the local user information of terminal device B is inconsistent with the target credential information at this time, and terminal device B will display the verification page. Since user B has learned the target credential information in advance, it only needs to enter the target credential information on the verification page for secondary verification. After the secondary verification passes, terminal device B will display the recharge page for user B to use the target virtual recharge card for recharge.

[0130] After the recharge page is displayed, no further verification is required, and the user's input on the recharge page can be directly received to complete the recharge operation on the recharge object. The specific process can be referred to in step 104 of receiving the first input of the user on the recharge page and step 105, which will not be repeated here.

[0131] It should be noted that the verification page can be displayed in a variety of ways, for example, a web link to the verification page is attached to the first verification result information returned indicating that the verification failed, and the verification page is displayed through the web link, but the present invention is not limited thereto.

[0132] In the embodiment of the present invention, when receiving the first verification result information indicating that the verification failed, the terminal device will initiate a secondary verification, that is, send a second verification request to the server. After the secondary verification is passed, the recharge page is displayed to allow the user to continue to use the target virtual recharge card to recharge through the terminal device. Through the secondary verification method, the security of user recharge is further improved, and it also provides an opportunity for others to use the target virtual recharge card.

[0133] Optionally, the recharge page displays a third control for filling in the second information to be verified;

[0134] After sending the first verification request carrying the user information and the target code to the server, the method further includes:

[0135] When the first verification result information is received and the first verification result information indicates that the verification has not passed, receiving a second input of the user to the third control;

[0136] In response to the second input, displaying the second information to be verified input by the user through the second input in the third control;

[0137] Receiving the third input from the user on the recharge page;

[0138] In response to the third input, a second recharge request carrying the second information to be verified, the second recharge information and the target code is sent to the server, so that the server generates third verification result information based on the second information to be verified and the target credential information, and when the third verification result information indicates that the verification is passed, the server performs an operation of recharging the second target recharge number based on the second recharge information, wherein the second recharge information includes the second target recharge number.

[0139] It should be noted that, in the case of receiving the first verification result information indicating that the verification has not passed, it means that the user information of the user using the target virtual recharge card on the terminal device side and the server side is inconsistent, and the terminal device side will not be allowed to continue to use the target virtual recharge card for recharge. At this time, if the terminal device side wants to successfully use the target virtual recharge card to complete the recharge, it is necessary to perform a secondary verification before performing the recharge operation, and pass the secondary verification. Here, the data required for the secondary verification is sent to the server together with the second recharge information, so that the server directly performs the recharge operation after determining that the secondary verification has passed. Specifically, the user is prompted to enter the data required for the secondary verification, that is, the second information to be verified, through the third control in the recharge page. After receiving the second information to be verified and the second recharge information entered by the user on the recharge page, the two are carried in the second recharge request and sent to the server. Compared with the primary verification based on user information and target credential information, the secondary verification utilizes the second information to be verified and the target credential information. The process of the two verifications is similar and will not be repeated here. Compared with the recharge operation on the first target recharge number performed based on the first recharge information, the recharge operation on the second target recharge number here utilizes the second recharge information. The two recharge processes are similar and will not be described in detail here.

[0140] It is understandable that, in the case where the user has learned the target credential information, the second information to be verified entered by the user in the third control may be the target credential information to ensure that the secondary verification can pass. Here, the user who uses the target virtual recharge card to recharge may be the user who purchased the target virtual recharge card or another user authorized by the user. Among them, the other user authorized by the user is the user who is informed of the target credential information by the user.

[0141] In an embodiment of the present invention, when receiving the first verification result information indicating that the verification has not passed, the terminal device combines the secondary verification with the recharge, that is, sends a second recharge request carrying the second information to be verified and the second recharge information to the server. After the secondary verification passes, the recharge operation is directly performed. Through the secondary verification method, the security of the user's recharge is further improved. At the same time, the secondary verification process and the recharge process are combined together, which simplifies the recharge operation and saves the user's recharge time.

[0142] Optionally, the server stores, for the target code, first status information indicating that the target virtual recharge card cannot be used or second status information indicating that the target virtual recharge card is available;

[0143] After sending the first verification request carrying the user information and the target code to the server, the method further includes:

[0144] When receiving the lock information, displaying the verification page; wherein the lock information is information sent by the server to the terminal device when the server stores the first state information for the target code;

[0145] Receiving the third information to be verified entered by the user on the verification page;

[0146] A third verification request carrying third information to be verified and a target code is sent to the server, so that the server generates fourth verification result information based on the third information to be verified and the target credential information, and when the fourth verification result information indicates that the verification is passed, the first status information stored for the target code is updated to the second status information.

[0147] It should be noted that the target QR code should be used by the user who purchased the target virtual recharge card or by the user authorized by the user. If the target QR code is leaked to other users, other users may cause the target virtual QR code to be stolen through continuous attempts to verify. Here, in order to prevent the target virtual QR code from being stolen, the state of the target virtual recharge card will be set. The target virtual recharge card can be used for recharge in a normal state, and the target virtual recharge card cannot be used for recharge in a locked state. Specifically, during the process of recharging using the target virtual recharge card by the terminal device, if a lock message is received, it means that the target virtual recharge card cannot be used for recharge at present. At this time, if the target virtual recharge card is to be restored for use, the lock state of the target virtual recharge card needs to be unlocked. At the same time, in order to ensure that the user currently using the target virtual recharge card is the user who purchased the target virtual recharge card or the user authorized by the user, it is necessary to verify again, that is, send a third verification request to the server, and unlock the lock state of the target virtual recharge card if this verification passes. It can be understood that compared with the verification based on user information and target credential information, this verification utilizes the third information to be verified and the target credential information. The processes of the two verifications are similar and will not be repeated here.

[0148] In the embodiment of the present invention, in order to prevent the target virtual recharge card from being misused, the terminal device will receive the locking information. If the terminal device side wants to unlock the target virtual recharge card and use the target virtual recharge card for recharging, it needs to verify again, that is, send a third verification request to the server, so that the server generates fourth verification result information based on the third information to be verified and the target credential information, and unlock the target virtual recharge card when the fourth verification result information indicates that the verification is passed. By re-verifying, the lock state of the target virtual recharge card can be unlocked while ensuring safety, so that the terminal device side can continue to use the target virtual recharge card for recharging.

[0149] Optionally, the recharge page displays a fourth control for triggering the display of the modification page.

[0150] When the first verification result information is received and the first verification result information indicates that the verification is successful, the method further includes:

[0151] receiving a fourth input from the user to a fourth control;

[0152] In response to the fourth input, displaying a modification page;

[0153] Receive modification information entered by the user on the modification page;

[0154] A modification request carrying the modification information and the target code is sent to the server, so that the server updates the target credential information based on the modification information.

[0155] It should be noted that the target credential information, as data indicating the identity of the user, is not static and can be modified. For example, in cases where the user has not modified the target credential information for a long time or the target virtual recharge card has been reported lost, in order to prevent the target credential information from being leaked, thereby threatening the user's property safety, the user can modify the target credential information to another set of data. For example, when the target credential information is a set of recharge passwords, the modification information can be another set of recharge passwords, and the two sets of recharge passwords are different. Therefore, after updating the target credential information, the updated target credential information is a new recharge password. At this time, if the user wants to use the target virtual recharge card again, he needs to enter the new recharge password in the verification link to pass the verification.

[0156] In an embodiment of the present invention, when a user has a need to modify the target credential information, upon receiving the first verification result information indicating that the verification has passed, the terminal device sends a modification request to the server, the modification request including the modification information, so that the server updates the target credential information based on the modification information. By modifying the target credential information, the property safety of the user can be further protected.

[0157] Optionally, the first recharge information further includes: a target recharge amount, wherein the target recharge amount is less than or equal to the current remaining storage amount of the target virtual recharge card.

[0158] It should be noted that the target recharge amount is the amount that the user wants to recharge the first target recharge number, but it cannot exceed the current remaining storage amount of the target virtual recharge card. It is understandable that the storage amount of the target virtual recharge card purchased by the user is fixed, for example, 50 yuan, 100 yuan, etc. But the user can only use part of the amount when recharging. For example, user A purchased a virtual recharge card with a storage amount of 100 yuan. The first time user A can recharge 50 yuan for phone number 1, at this time the current remaining storage amount of the virtual recharge card is 50 yuan. The second time user A can recharge 30 yuan for any phone number, at this time the current remaining storage amount of the virtual recharge card is 20 yuan.

[0159] In the embodiment of the present invention, a target virtual recharge card can be used multiple times, and the user can freely choose the amount of each recharge according to the current remaining storage amount of the target virtual recharge card, thereby greatly facilitating the use of the user and meeting more recharge needs of the user.

[0160] See also Figure 2 The embodiment of the present invention further provides a recharge method based on a QR code, which is applied to a server, and the method includes:

[0161] Step 201: Generate a target QR code, wherein the target QR code includes a target code and a page address of a recharge page.

[0162] Step 202: Receive a first verification request sent by a terminal device after scanning a target QR code, wherein the first verification request carries local user information of the terminal device and a target code.

[0163] It should be noted that by receiving the first verification request sent by the terminal device, the local user information of the terminal device can be obtained. Figure 1 Step 102 in the illustrated embodiment: obtaining user information in the local user information of the terminal device is similar, and will not be described here to avoid repetition.

[0164] Step 203: Generate first verification result information based on the target credential information and the user information in the first verification request.

[0165] It should be noted that the server is provided with a target virtual recharge card for the target code, and the target credential information is the information reserved for the user who purchases the target virtual recharge card for the target code storage. That is to say, when the user purchases the target virtual recharge card, the user will reserve some data indicating the user's identity as the target credential information. The user is the user who uses the target virtual recharge card, and the user can be the person who purchases the target virtual recharge card or someone else. Therefore, the target credential information can also be regarded as the user information of the user who uses the target virtual recharge card stored on the server side. The local user information of the terminal device carried in the first verification request in the above step 202 can be regarded as the user information of the user who uses the target virtual recharge card on the terminal device side. Therefore, based on the target credential information and user information, the server verifies whether the user information of the user who uses the target virtual recharge card on both the terminal device side and the server side is consistent, and can generate the first verification result information. Among them, if the user information of the two is consistent, the verification is passed, otherwise the verification fails. Here, the consistency of user information of the two can be understood as the consistency of corresponding information in the user information. For example, when the target credential information is a set of mobile phone numbers, if the user information sent by the terminal device side is an ID card number, at this time, the number of digits of the mobile phone number and the ID card number are different, which means that they are not corresponding information and cannot be compared and verified, so the verification fails; if the user information sent by the terminal device side is another set of mobile phone numbers, at this time, the number of digits of the two sets of mobile phone numbers is the same, which means that they are the same type of information and can be compared and verified. After that, if the two sets of mobile phone numbers are exactly the same after comparison, it means that the two sets of mobile phone numbers are consistent, that is, the user information of the two is consistent, so the verification passes, but is not limited to this.

[0166] Step 204: Send the first verification result information to the terminal device.

[0167] Step 205: upon receiving a first recharge request carrying first recharge information and a target code sent by the terminal device, a recharge operation for the first target recharge number is performed based on the first recharge information.

[0168] It should be noted that the first recharge information includes the first target recharge number, and the first recharge request is a recharge request sent to the server by the terminal device in response to the user's first input on the recharge page when the terminal device receives the first verification result information and the first verification result information indicates that the verification is passed.

[0169] In an embodiment of the present invention, a target QR code is first generated, wherein the target QR code includes a target code and a page address of a recharge page; then a first verification request is sent after a terminal device scans the target QR code, wherein the first verification request carries local user information of the terminal device and a target code; first verification result information is generated based on the target credential information and the user information in the first verification request, and then the first verification result information is sent to the terminal device; then the first recharge request is sent to the server by the receiving terminal device after receiving the first verification result information and the first verification result information indicates that the verification is passed; finally, after receiving the first recharge request sent by the terminal device carrying the first recharge information and the target code, an operation of recharging the first target recharge number is performed based on the first recharge information. Since a recharge request needs to be initiated to realize recharge when the verification is passed, direct recharge can be avoided when the verification fails or there is no verification process, thereby improving the security of user recharge.

[0170] Optionally, after sending the first verification result information to the terminal device, the method further includes:

[0171] Upon receiving a second verification request sent by the terminal device and carrying the first information to be verified and the target code, generating second verification result information based on the first information to be verified and the target credential information;

[0172] The second verification result information is sent to the terminal device.

[0173] It should be noted that after the first verification result information indicating that the verification has failed is sent to the terminal device, it means that the user information of the user using the target virtual recharge card on both the terminal device side and the server side is inconsistent. At this time, the server side will not allow the terminal device side to continue to use the target virtual recharge card for recharge. If the server side wants to allow the terminal device side to continue to use the target virtual recharge card for recharge, a secondary verification is required, that is, the server receives the second verification request sent by the terminal device, performs a secondary verification based on the target credential information and the first information to be verified in the second verification request, and generates a second verification result information. Compared with the primary verification based on the target credential information and the user information in the first verification request, the secondary verification utilizes the first information to be verified and the target credential information. The two verification processes are similar and will not be repeated here.

[0174] In the embodiment of the present invention, when the first verification result information indicates that the verification has not been passed, a second verification request sent by the terminal device is received, and second verification result information is generated based on the target credential information and the first information to be verified in the second verification request. Through the secondary verification, the server side allows the terminal device side to continue to use the target virtual recharge card for recharge.

[0175] Optionally, after sending the first verification result information to the terminal device, the method further includes:

[0176] Upon receiving a second recharge request sent by the terminal device and carrying the second information to be verified, the second recharge information and the target code, generating third verification result information based on the second information to be verified and the target credential information, wherein the second recharge information includes the second target recharge number;

[0177] When the third verification result information indicates that the verification is passed, an operation of recharging the second target recharging number is performed based on the second recharging information.

[0178] It should be noted that after the first verification result information indicating that the verification has failed is sent to the terminal device, it indicates that the user information of the user using the target virtual recharge card on the terminal device side and the server side is inconsistent. At this time, the server side will not allow the terminal device side to continue to use the target virtual recharge card for recharge. If the server side wants to allow the terminal device side to successfully use the target virtual recharge card to complete the recharge, the server side needs to perform a secondary verification before executing the recharge operation. The secondary verification is performed when the server receives the second recharge request sent by the terminal device, performs a secondary verification based on the target credential information and the second information to be verified in the second recharge request, and when the secondary verification passes, performs a recharge operation on the second target recharge number in the second recharge information based on the second recharge information in the second recharge request. Compared with the primary verification based on user information and target credential information, the secondary verification utilizes the second information to be verified and the target credential information. The processes of the two verifications are similar and will not be repeated here. Compared with the recharge operation on the first target recharge number performed based on the first recharge information, the recharge operation on the second target recharge number here utilizes the second recharge information. The two recharge processes are similar and will not be described in detail here.

[0179] Of course, if the second verification fails, it means that the second information to be verified is inconsistent with the target credential information, so the server side does not allow the terminal device side to continue to use the target virtual recharge card for recharge. At this time, the server side can return the third verification result information indicating that the verification failed or send the recharge result information indicating that the recharge was unsuccessful to the terminal device. There is no restriction here.

[0180] In the embodiment of the present invention, when the first verification result information indicates that the verification has not been passed, the second recharge request sent by the terminal device is received, and based on the target credential information and the second information to be verified in the second recharge request, the third verification result information is generated, and when the third verification result information indicates that the verification has been passed, based on the second recharge information in the second recharge request, the recharge operation for the second target recharge number in the second recharge information is performed. Through the secondary verification method, the security of user recharge is further improved. At the same time, by combining the secondary verification and the recharge operation, the server only needs to process one request to complete the two operations of verification and recharge, saving the user's recharge time.

[0181] Optionally, the server stores, for the target code, first status information indicating that the target virtual recharge card cannot be used or second status information indicating that the target virtual recharge card is available;

[0182] After receiving the first verification request sent by the terminal device after scanning the target QR code, the method further includes:

[0183] When it is determined that the server stores information representing the first state for the target code, sending locking information to the terminal device;

[0184] Upon receiving a third verification request sent by the terminal device and carrying the third information to be verified and the target code, generating fourth verification result information based on the third information to be verified and the target credential information;

[0185] When the fourth verification result information indicates that the verification is passed, the first state information stored for the target code is updated to the second state information.

[0186] It should be noted that the target QR code should be used by the user who purchases the target virtual recharge card or by the user authorized by the user. If the target QR code is leaked to other users, other users may cause the target virtual QR code to be stolen through continuous attempts to verify. Here, in order to prevent the target virtual QR code from being stolen, the server side will set the state of the target virtual recharge card. In the normal state, the terminal device side is allowed to use the target virtual recharge card for recharge, and in the locked state, the terminal device side is not allowed to use the target virtual recharge card for recharge. Specifically, when the server stores the first state information for the target code, it means that the target virtual recharge card is in a locked state, that is, the server side does not allow the terminal device side to use the target virtual recharge card for recharge. For example, when the server receives multiple verification requests and the verification result information is that the verification fails, the target virtual recharge card can be set to a locked state; the user accidentally loses the target QR code, and in order to prevent the target QR code from being stolen, the server is requested to set the target virtual recharge card to a locked state, etc., but it is not limited to this. At this time, if the server side wants to unlock the target virtual recharge card, so that the server side allows the terminal device side to use the target virtual recharge card for recharge, the server needs to perform another verification, that is, receive the third verification request sent by the terminal device and perform verification, and unlock the target virtual recharge card if the verification is passed. It can be understood that compared with the verification based on user information and target credential information, this verification uses the third information to be verified and the target credential information, and the two verification processes are similar, which will not be repeated here.

[0187] In an embodiment of the present invention, in order to prevent the target virtual recharge card from being misused, the server will send a lock message to the terminal device. If the server side wants to unlock the target virtual recharge card so that the server side allows the terminal device side to use the target virtual recharge card for recharging, the server needs to perform re-verification, that is, the server receives the third verification request sent by the terminal device, generates fourth verification result information based on the target credential information and the third information to be verified in the third verification request, and unlocks the target virtual recharge card when the fourth verification result information indicates that the verification is passed. By re-verifying, the target virtual recharge card can be unlocked while ensuring safety, so that the server side allows the terminal device side to continue to use the target virtual recharge card for recharging.

[0188] Optionally, after sending the first verification result information to the terminal device, the method further includes:

[0189] Receiving a modification request sent by a terminal device, wherein the modification request carries modification information and a target code;

[0190] The target credential information is updated based on the modification information.

[0191] It should be noted that the data indicating the user's identity reserved by the user is not immutable and can be modified. For example, in cases where the user has not modified the target credential information for a long time or the target virtual recharge card has been reported lost, in order to prevent the target credential information from being leaked, thereby threatening the user's property safety, the user can modify the target credential information to another set of data. For example, when the target credential information is a set of mobile phone numbers, the modification information can be another set of mobile phone numbers. The two sets of mobile phone numbers are different, so after updating the target credential information, the updated target credential information is a new mobile phone number. At this time, if the user wants to use the target virtual recharge card again, he needs to enter the new mobile phone number in the verification process to pass the verification.

[0192] In the embodiment of the present invention, when a modification request is received from a terminal device, it indicates that the user has a requirement to modify the target credential, and the target credential information is updated based on the modification information. By modifying the target credential information, the property safety of the user can be further protected.

[0193] Optionally, the first recharge information further includes: a target recharge amount, and the server records the current remaining storage amount of the target virtual recharge card for the target code;

[0194] The operation of performing recharging on the first target recharging number based on the first recharging information includes:

[0195] Based on the target code, determine the current remaining storage amount of the target virtual recharge card;

[0196] When the target recharge amount is less than or equal to the current remaining storage amount of the target virtual recharge card, the target recharge amount is recharged to the first target recharge number, and the storage amount after recharge is updated to the target amount, wherein the target amount is equal to the difference between the storage amount before recharge and the target recharge amount.

[0197] It should be noted that the target recharge amount is the amount that the user wants to recharge the first target recharge number, but it cannot exceed the current remaining storage amount of the target virtual recharge card. That is to say, after each recharge, the current remaining storage amount of the target virtual recharge card needs to be modified. For example, user A has a virtual recharge card a with a current remaining storage amount of 50 yuan. If user A uses virtual recharge card a to recharge phone number 1 for 30 yuan, at this time, there is 50-30=20 yuan left in virtual recharge card a; if user A uses virtual recharge card a to recharge phone number 1 for 60 yuan, since the target recharge amount of 60 yuan is greater than the current remaining storage amount of 50 yuan of virtual recharge card a, recharge is impossible, and the user may be prompted that the balance is insufficient, but this is not limited to this.

[0198] In the embodiment of the present invention, when the operation of recharging the first target recharge number is performed based on the first recharge information, the target amount of the target virtual recharge card is updated in time, ensuring the accuracy of the current remaining storage amount of the target virtual recharge card, and avoiding the occurrence of recharge errors due to incorrect storage amount. At the same time, a target virtual recharge card can be used multiple times, which greatly facilitates the use of users and can meet more recharge needs of users.

[0199] It is understandable that the server can be set to store a large number of databases with QR codes, and each QR code includes a unique code and the same page address of the recharge page. After the user purchases the target virtual recharge card, the server will select a QR code from the database as the target QR code, that is, the target QR code in the above step 201, and store the user's reserved information corresponding to the unique code (target code) in the target QR code, that is, the target credential information. In this way, the user can use the target virtual recharge card to recharge through the target QR code without purchasing a physical recharge card, thereby saving the manufacturing cost of the physical recharge card.

[0200] See also Figure 3 The embodiment of the present invention also provides a practical application flow chart of a recharge method based on a QR code, and the flow chart includes:

[0201] Step 301: The user purchases a QR code virtual card and chooses to save a recharge password, verify a mobile phone number or identity information.

[0202] It should be noted that when a user purchases a QR code virtual card, it is equivalent to selecting a set of virtual card numbers from the system. The system will bind the information that the user chooses to retain to this set of virtual card numbers, and then generate a set of QR codes based on this set of virtual card numbers and the recharge address provided by the system and send it to the customer. The QR code generated here can be generated by a special QR code generator, but is not limited to this. In other words, when a user purchases a QR code virtual card, the business hall does not give the user a physical recharge card, but a set of QR codes. This set of QR codes can be sent to the user's email, or printed out for the user, and the user can even collect them by himself, take pictures of the QR codes, etc. There is no restriction here. The recharge password, verification mobile phone number or identity information selected to be retained here can be regarded as data indicating the user's identity, which is equivalent to Figure 1 In the embodiment shown, the target credential information, the QR code virtual card is equivalent to Figure 1 In the embodiment shown, the target virtual recharge card, the virtual card number is Figure 1 The target code in the embodiment shown is equivalent to the QR code provided to the user. Figure 1 The target two-dimensional code in the illustrated embodiment will not be described in detail here.

[0203] Step 302: The user scans the QR code to open the recharge page.

[0204] It should be noted that after the user scans the QR code, he will jump to the recharge page. During the jump process, the system will automatically determine the identity of the operator (not shown in the figure, only the judgment result and the corresponding recharge method are shown). Here, the system automatically determines the identity of the operator, which can be determined by the mobile phone number during automatic login or by the verification technology provided by the third-party platform, but is not limited to this.

[0205] Step 303: The system determines whether it is a verification of the mobile phone number or the user's own operation, and directly fills the user's mobile phone number into the recharged mobile phone number input box.

[0206] It should be noted that the purpose of the system judgment is to verify whether the operator has the authority to use the QR code virtual card, wherein the person who has the authority to use the QR code virtual card includes the card purchaser who purchased the QR code virtual card and the second user authorized by the card purchaser. Specifically, the system judgment is to verify the mobile phone number, which can be that the user enters the user's mobile phone number, and after comparison and verification, it is found that the user's mobile phone number is consistent with the verification mobile phone number, so the user's mobile phone number is directly filled into the recharged mobile phone number input box, but it is not limited to this; the system judgment is that the user himself operates, which can be that the user scans the facial features through AI recognition technology and finds that it is consistent with the identity information selected for retention, indicating that it is the user himself who operates, and then obtains the user's mobile phone number locally in the terminal device currently used by the user, so as to directly fill the user's mobile phone number into the recharged mobile phone number input box, but it is not limited to this.

[0207] Step 304: The user directly clicks on recharge or modifies the mobile phone number to be recharged and clicks on recharge.

[0208] It should be noted that if the user chooses to recharge the user's mobile phone number, he can directly click Recharge after step 303; if the user chooses to recharge other mobile phone numbers, the user's mobile phone number that has been filled in the recharged mobile phone number input box will be cleared after step 303, and the other mobile phone number will be filled in the recharged mobile phone number input box, and finally click Recharge.

[0209] Step 305: If the system cannot determine the identity of the operator, the user chooses to enter a password or SMS verification code or identity verification.

[0210] It should be noted that the system cannot determine the identity of the operator, which means that the system cannot determine whether the operator has the authority to use the QR code virtual card. For example, the card purchaser buys the card on behalf of a relative or friend, so the operator is not the card purchaser, and the system cannot determine whether the operator has the authority to use the QR code virtual card, but it is not limited to this. Therefore, if the operator wants to use the QR code virtual card for recharge, verification is required, that is, the user sends a verification request message to the system. Here, due to the different information that the user chooses to retain when purchasing the QR code virtual card, the verification method is also different. It is understandable that when the user needs to verify, the system will display a verification page to the user or display a verification area for the user in the recharge page to receive the verification information entered by the user. Taking the verification page as an example, if the information the user chooses to retain is a set of recharge passwords, the user enters the password in the recharge password area in the verification page and sends the password to the system for verification; if the information the user chooses to retain is a mobile phone number, the user enters the mobile phone number in the mobile phone number area in the verification page, and after receiving the mobile phone number, the system will send a text message verification message to the mobile phone number, where the text message verification message includes a text message verification code, and the user then enters the text message verification code in the text message verification area in the verification page, and sends the text message verification code to the system for verification; if the information the user chooses to retain is identity information, the user enters the ID card number in the identity information area in the verification page, or the identity information area includes a selection control for scanning the ID card, and the identity information is sent to the system for verification.

[0211] Step 306: After the system verification is passed, the user enters the mobile phone number to be recharged, and then the user clicks Recharge to recharge.

[0212] In the embodiment of the present invention, the user first purchases a QR code virtual card and chooses to save the recharge password, verification mobile phone number or identity information; while the user scans the QR code to open the recharge page, the system determines the identity of the operator. If the system determines that it is a verification of the mobile phone number or the user's own operation, the user's mobile phone number is directly filled into the recharged mobile phone number input box; if the system cannot determine the identity of the operator, the user chooses to enter a password or SMS verification code or identity verification; after the system verification is passed, the user enters the recharged mobile phone number, and then the user clicks Recharge to recharge. Since recharge can only be achieved when the verification is passed, it can avoid direct recharge when the verification fails or there is no verification process, thereby improving the security of user recharge.

[0213] See also Figure 4 The embodiment of the present invention further provides a recharging device based on a QR code, which is applied to a terminal device, and the device includes:

[0214] The scanning module 41 is used to scan the target QR code and display the recharge page, wherein the target QR code includes the target code and the page address of the recharge page;

[0215] The acquisition module 42 is used to acquire local user information of the terminal device;

[0216] A first sending module 43 is used to send a first verification request carrying user information and a target code to a server, so that the server returns first verification result information based on the user information and the target credential information, wherein the server is provided with a target virtual recharge card for the target code, and the target credential information is information reserved by the server for the user to purchase the target virtual recharge card for the target code;

[0217] The first receiving module 44 is used to receive the first input of the user on the recharge page when the first verification result information is received and the first verification result information indicates that the verification is passed;

[0218] The second sending module 45 is used to send a first recharge request carrying first recharge information and a target code to the server in response to the first input, so that the server performs an operation of recharging the first target recharge number based on the first recharge information, wherein the first recharge information includes the first target recharge number.

[0219] In an embodiment of the present invention, during the recharge process, by scanning the target QR code including the page address of the recharge page, the recharge page can be displayed to start the recharge process. Since the QR code is used instead of the physical recharge card during the recharge process, the manufacturing cost of the physical recharge card is saved; then the local user information of the terminal device is obtained, and then the first verification request carrying the user information and the target code in the target QR code is sent to the server, so that the server returns the first verification result information based on the user information and the target credential information, wherein the target credential information is the information reserved by the server for the user to purchase the target virtual recharge card stored in the target code, and the verification process is added during the recharge process. Through the target credential information and the local user information of the terminal device, it can be verified whether the first user currently recharging is the second user who purchases the target virtual recharge card or the third user authorized by the second user. When the first verification result information is received and the first verification result information indicates that the verification is passed, based on the first input of the user on the recharge page, the first recharge request carrying the first recharge information and the target code is sent to the server, so that the server performs the operation of recharging the first target recharge number based on the first recharge information. Since a recharge request needs to be initiated to realize recharge when the verification is passed, direct recharge can be avoided when the verification fails or there is no verification process, thereby improving the security of user recharge.

[0220] Optionally, the target credential information includes a telephone number,

[0221] The device also includes:

[0222] The first display module is used to display the telephone number in the first control of the recharge page, wherein the first control is a control in the recharge page for filling in the telephone number to be recharged.

[0223] Optionally, the first input includes a first sub-input and a second sub-input;

[0224] The first receiving module 44 includes:

[0225] A first receiving unit, configured to receive a first sub-input of a user to a first control in a recharge page, wherein the first control is a control in the recharge page for filling in a phone number to be recharged;

[0226] A second receiving unit, configured to receive a second sub-input of a user to a second control in the recharge page, wherein the second control is a control in the recharge page for triggering a recharge request;

[0227] The second sending module 45 includes:

[0228] A first sending unit, configured to display, in response to a first sub-input, a phone number to be recharged input by a user through the first sub-input in a first control;

[0229] The second sending unit is used to determine the phone number to be recharged displayed in the first control as a first target recharge number in response to the second sub-input, and send a first recharge request carrying the first target recharge number and the target code to the server.

[0230] Optionally, the device further comprises:

[0231] A second display module is used to display a verification page when the first verification result information is received and the first verification result information indicates that the verification has not passed;

[0232] A third receiving module is used to receive the first information to be verified input by the user on the verification page;

[0233] A fourth sending module, configured to send a second verification request carrying the first information to be verified and the target code to the server, so that the server returns second verification result information based on the first information to be verified and the target credential information;

[0234] The third display module is used to display a recharge page when the second verification result information is received and the second verification result information indicates that the verification is passed.

[0235] Optionally, the recharge page displays a third control for filling in the second information to be verified;

[0236] The device also includes:

[0237] A fourth receiving module, configured to receive a second input of the user to the third control when the first verification result information is received and the first verification result information indicates that the verification has not passed;

[0238] a fourth display module, configured to display, in response to the second input, the second information to be verified input by the user through the second input in the third control;

[0239] A fifth receiving module, used to receive a third input from the user on the recharge page;

[0240] The fifth sending module is used to send a second recharge request carrying second information to be verified, second recharge information and a target code to the server in response to a third input, so that the server generates third verification result information based on the second information to be verified and the target credential information, and when the third verification result information indicates that the verification is passed, the server performs an operation of recharging the second target recharge number based on the second recharge information, wherein the second recharge information includes the second target recharge number.

[0241] Optionally, the server stores, for the target code, first status information indicating that the target virtual recharge card cannot be used or second status information indicating that the target virtual recharge card is available;

[0242] The device also includes:

[0243] A fifth display module, configured to display a verification page when receiving locking information; wherein the locking information is information sent by the server to the terminal device when the server stores the first state information for the target code;

[0244] A sixth receiving module, used to receive the third information to be verified input by the user on the verification page;

[0245] The sixth sending module is used to send a third verification request carrying third information to be verified and a target code to the server, so that the server generates fourth verification result information based on the third information to be verified and the target credential information, and when the fourth verification result information indicates that the verification is passed, the first status information stored for the target code is updated to the second status information.

[0246] Optionally, the recharge page displays a fourth control for triggering the display of the modification page.

[0247] The device also includes:

[0248] A seventh receiving module, configured to receive a fourth input from a user to a fourth control;

[0249] a sixth display module, configured to display a modification page in response to the fourth input;

[0250] An eighth receiving module, used to receive modification information input by the user on the modification page;

[0251] The seventh sending module is used to send a modification request carrying the modification information and the target code to the server, so that the server updates the target credential information based on the modification information.

[0252] Optionally, the first recharge information further includes: a target recharge amount, wherein the target recharge amount is less than or equal to the current remaining storage amount of the target virtual recharge card.

[0253] See also Figure 5 The embodiment of the present invention further provides a recharge device based on a QR code, which is applied to a server and includes:

[0254] The first generating module 51 is used to generate a target QR code, wherein the target QR code includes a target code and a page address of a recharge page;

[0255] The second receiving module 52 is used to receive a first verification request sent by the terminal device after scanning the target QR code, wherein the first verification request carries local user information of the terminal device and the target code;

[0256] A second generating module 53 is used to generate first verification result information based on the target credential information and the user information in the first verification request, wherein the server is provided with a target virtual recharge card for the target code, and the target credential information is information reserved for the user to purchase the target virtual recharge card stored for the target code;

[0257] A third sending module 54, used to send the first verification result information to the terminal device;

[0258] The first recharge module 55 is configured to, upon receiving a first recharge request carrying first recharge information and a target code sent by a terminal device, perform a recharge operation on a first target recharge number based on the first recharge information,

[0259] The first recharge information includes a first target recharge number, and the first recharge request is a recharge request sent to the server by the terminal device in response to the user's first input on the recharge page when the terminal device receives the first verification result information and the first verification result information indicates that the verification is passed.

[0260] Optionally, the device further comprises:

[0261] A third generating module is used to generate second verification result information based on the first information to be verified and the target credential information when receiving a second verification request sent by the terminal device and carrying the first information to be verified and the target code;

[0262] An eighth sending module is used to send the second verification result information to the terminal device.

[0263] Optionally, the device further comprises:

[0264] a fourth generating module, configured to generate third verification result information based on the second information to be verified and the target credential information when receiving a second recharge request sent by the terminal device and carrying the second information to be verified, the second recharge information and the target code, wherein the second recharge information includes the second target recharge number;

[0265] The second recharge module is configured to, when the third verification result information indicates that the verification is passed, perform a recharge operation on the second target recharge number based on the second recharge information.

[0266] Optionally, the server stores, for the target code, first status information indicating that the target virtual recharge card cannot be used or second status information indicating that the target virtual recharge card is available;

[0267] The device also includes:

[0268] A ninth sending module, configured to send locking information to the terminal device when it is determined that the server stores information representing the first state for the target code;

[0269] a fifth generating module, configured to generate fourth verification result information based on the third information to be verified and the target credential information, upon receiving a third verification request sent by the terminal device and carrying the third information to be verified and the target code;

[0270] The first updating module is configured to update the first state information stored for the target code to the second state information when the fourth verification result information indicates that the verification is passed.

[0271] Optionally, the device further comprises:

[0272] An eighth receiving module, configured to receive a modification request sent by a terminal device, wherein the modification request carries modification information and a target code;

[0273] The second updating module is used to update the target credential information based on the modification information.

[0274] Optionally, the first recharge information further includes: a target recharge amount, and the server records the current remaining storage amount of the target virtual recharge card for the target code;

[0275] The first recharging module 55 includes:

[0276] A determination unit, configured to determine the current remaining storage amount of the target virtual recharge card based on the target code;

[0277] The recharging unit is used to recharge the target recharge amount for the first target recharge number when the target recharge amount is less than or equal to the current remaining storage amount of the target virtual recharge card, and update the storage amount after recharging to the target amount, wherein the target amount is equal to the difference between the storage amount before recharging and the target recharge amount.

[0278] In an embodiment of the present invention, a target QR code is first generated, wherein the target QR code includes a target code and a page address of a recharge page; then a first verification request is sent after a terminal device scans the target QR code, wherein the first verification request carries local user information of the terminal device and a target code; first verification result information is generated based on the target credential information and the user information in the first verification request, and then the first verification result information is sent to the terminal device; then the first recharge request is sent to the server by the receiving terminal device after receiving the first verification result information and the first verification result information indicates that the verification is passed; finally, after receiving the first recharge request sent by the terminal device carrying the first recharge information and the target code, an operation of recharging the first target recharge number is performed based on the first recharge information. Since a recharge request needs to be initiated to realize recharge when the verification is passed, direct recharge can be avoided when the verification fails or there is no verification process, thereby improving the security of user recharge.

[0279] On the other hand, an embodiment of the present invention further provides an electronic device, including a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the QR code-based recharge method provided in the above-mentioned embodiments of the invention is implemented.

[0280] On the other hand, an embodiment of the present invention further provides a readable storage medium. When the instructions in the readable storage medium are executed by a processor of an electronic device, the electronic device can execute the QR code-based recharge method provided in the above embodiments of the invention.

[0281] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0282] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A recharge method based on QR code, It is characterized in that Applied to a terminal device, the method comprises: Scan the target QR code to display the recharge page, wherein the target QR code includes the target code and the page address of the recharge page; Acquire local user information of the terminal device; the user information includes: the local phone number of the mobile phone and the account information of the current login account of the target application installed in the mobile phone; Sending a first verification request carrying the user information and the target code to a server, so that the server returns first verification result information based on the user information and the target credential information, wherein the server is provided with a target virtual recharge card for the target code, the target credential information is information reserved by the server for the user to purchase the target virtual recharge card for the target code; the target code is the card number of the target virtual recharge card; the reserved information is user information of the target virtual recharge card stored by the server; When the first verification result information is received and the first verification result information indicates that the verification is passed, receiving a first input of the user on the recharge page; In response to the first input, a first recharge request carrying first recharge information and the target code is sent to the server, so that the server performs an operation of recharging a first target recharge number based on the first recharge information, wherein the first recharge information includes the first target recharge number.

2. The method according to claim 1, It is characterized in that The target credential information includes a telephone number, When the first verification result information is received and the first verification result information indicates that the verification is passed, the method further includes: The telephone number is displayed in a first control on the recharge page, wherein the first control is a control on the recharge page used to fill in the telephone number to be recharged.

3. The method according to claim 1, It is characterized in that The first input includes a first sub-input and a second sub-input; and receiving the first input of the user on the recharge page includes: receiving the first sub-input of the user to a first control in the recharge page, wherein the first control is a control in the recharge page for filling in a phone number to be recharged; receiving the second sub-input of the user to a second control in the recharge page, wherein the second control is a control in the recharge page for triggering a recharge request; The step of sending, in response to the first input, a first recharge request carrying first recharge information and the target code to the server includes: In response to the first sub-input, displaying the to-be-recharged phone number input by the user through the first sub-input in the first control; In response to the second sub-input, the telephone number to be recharged displayed in the first control is determined as the first target recharge number, and a first recharge request carrying the first target recharge number and the target code is sent to the server.

4. The method according to claim 1, It is characterized in that After sending the first verification request carrying the user information and the target code to the server, the method further includes: When the first verification result information is received and the first verification result information indicates that the verification has failed, displaying a verification page; Receiving first information to be verified entered by the user on the verification page; Sending a second verification request carrying the first information to be verified and the target code to the server, so that the server returns second verification result information based on the first information to be verified and the target credential information; When the second verification result information is received and the second verification result information indicates that the verification is passed, the recharge page is displayed.

5. The method according to claim 1, It is characterized in that The recharge page displays a third control for filling in the second information to be verified; After sending the first verification request carrying the user information and the target code to the server, the method further includes: When the first verification result information is received and the first verification result information indicates that the verification has failed, receiving a second input of the user to the third control; In response to the second input, displaying the second information to be verified input by the user through the second input in the third control; Receiving a third input from the user on the recharge page; In response to the third input, a second recharge request carrying the second information to be verified, the second recharge information and the target code is sent to the server, so that the server generates third verification result information based on the second information to be verified and the target credential information, and when the third verification result information indicates that the verification is passed, an operation of recharging the second target recharge number is performed based on the second recharge information, wherein the second recharge information includes the second target recharge number.

6. The method according to claim 1, It is characterized in that The server stores, for the target code, first status information indicating that the target virtual recharge card cannot be used or second status information indicating that the target virtual recharge card is available; After sending the first verification request carrying the user information and the target code to the server, the method further includes: When receiving the locking information, displaying a verification page; wherein the locking information is information sent by the server to the terminal device when the server stores the first state information for the target code; Receiving third information to be verified entered by the user on the verification page; A third verification request carrying the third information to be verified and the target code is sent to the server, so that the server generates fourth verification result information based on the third information to be verified and the target credential information, and when the fourth verification result information indicates that the verification is passed, the first status information stored for the target code is updated to the second status information.

7. The method according to claim 1, It is characterized in that The recharge page displays a fourth control for triggering the display of a modification page. When the first verification result information is received and the first verification result information indicates that the verification is passed, the method further includes: receiving a fourth input from a user to the fourth control; In response to the fourth input, displaying the modification page; Receiving modification information input by the user on the modification page; A modification request carrying the modification information and the target code is sent to the server, so that the server updates the target credential information based on the modification information.

8. The method according to claim 1, It is characterized in that The first recharge information also includes: a target recharge amount, wherein the target recharge amount is less than or equal to the current remaining storage amount of the target virtual recharge card.

9. A recharge method based on QR code, It is characterized in that Applied to a server, the method comprises: Generate a target QR code, wherein the target QR code includes a target code and a page address of a recharge page; Receiving a first verification request sent by a terminal device after scanning the target QR code, wherein the first verification request carries local user information of the terminal device and the target code; the user information includes: the local phone number of the mobile phone and the account information of the current login account of the target application installed in the mobile phone; Generate first verification result information based on target credential information and the user information in the first verification request, wherein the server is provided with a target virtual recharge card for the target code, the target credential information is information reserved for the user to purchase the target virtual recharge card stored for the target code; the target code is the card number of the target virtual recharge card; the reserved information is user information of the target virtual recharge card stored by the server; Sending the first verification result information to the terminal device; When receiving a first recharge request sent by the terminal device and carrying the first recharge information and the target code, performing a recharge operation on the first target recharge number based on the first recharge information, The first recharge information includes the first target recharge number, and the first recharge request is a recharge request sent to the server by the terminal device in response to the user's first input on the recharge page when the terminal device receives the first verification result information and the first verification result information indicates that the verification is passed.

10. The method according to claim 9, It is characterized in that After sending the first verification result information to the terminal device, the method further includes: Upon receiving a second verification request sent by the terminal device and carrying the first information to be verified and the target code, generating second verification result information based on the first information to be verified and the target credential information; The second verification result information is sent to the terminal device.

11. The method according to claim 9, It is characterized in that After sending the first verification result information to the terminal device, the method further includes: upon receiving a second recharge request sent by the terminal device and carrying the second information to be verified, the second recharge information and the target code, generating third verification result information based on the second information to be verified and the target credential information, wherein the second recharge information includes a second target recharge number; When the third verification result information indicates that the verification is passed, an operation of recharging the second target recharging number is performed based on the second recharging information.

12. The method according to claim 9, It is characterized in that The server stores, for the target code, first status information indicating that the target virtual recharge card cannot be used or second status information indicating that the target virtual recharge card is available; After receiving the first verification request sent by the terminal device after scanning the target QR code, the method further includes: In the case of determining that the server stores the information representing the first state for the target code, sending locking information to the terminal device; Upon receiving a third verification request sent by the terminal device and carrying the third information to be verified and the target code, generating fourth verification result information based on the third information to be verified and the target credential information; When the fourth verification result information indicates that the verification is passed, the first state information stored for the target code is updated to the second state information.

13. The method according to claim 9, It is characterized in that After sending the first verification result information to the terminal device, the method further includes: receiving a modification request sent by the terminal device, wherein the modification request carries modification information and the target code; The target credential information is updated based on the modification information.

14. The method according to claim 9, It is characterized in that The first recharge information also includes: a target recharge amount, and the server records the current remaining storage amount of the target virtual recharge card for the target code; The operation of performing recharging on the first target recharging number based on the first recharging information includes: Based on the target code, determining the current remaining storage amount of the target virtual recharge card; When the target recharge amount is less than or equal to the current remaining storage amount of the target virtual recharge card, the target recharge amount is recharged to the first target recharge number, and the storage amount after recharge is updated to the target amount, wherein the target amount is equal to the difference between the storage amount before recharge and the target recharge amount.

15. A recharge device based on QR code, It is characterized in that Applied to a terminal device, the device comprises: A scanning module, used to scan a target QR code and display a recharge page, wherein the target QR code includes a target code and a page address of the recharge page; The acquisition module is used to acquire the local user information of the terminal device; the user information includes: the local phone number of the mobile phone, the account information of the current login account of the target application installed in the mobile phone; A first sending module is used to send a first verification request carrying the user information and the target code to a server, so that the server returns first verification result information based on the user information and the target credential information, wherein the server is provided with a target virtual recharge card for the target code, the target credential information is the information reserved by the server for the user to purchase the target virtual recharge card for the target code; the target code is the card number of the target virtual recharge card; the reserved information is the user information of the user using the target virtual recharge card stored by the server; A first receiving module is used to receive a first input of a user on the recharge page when the first verification result information is received and the first verification result information indicates that the verification is passed; A second sending module is used to send a first recharge request carrying first recharge information and the target code to the server in response to the first input, so that the server performs an operation of recharging a first target recharge number based on the first recharge information, wherein the first recharge information includes the first target recharge number.

16. A recharge device based on QR code, It is characterized in that Applied to a server, the device comprises: A first generating module, used to generate a target QR code, wherein the target QR code includes a target code and a page address of a recharge page; The second receiving module is used to receive a first verification request sent by a terminal device after scanning the target QR code, wherein the first verification request carries local user information of the terminal device and the target code; the user information includes: the local phone number of the mobile phone, and the account information of the current login account of the target application installed in the mobile phone; A second generating module is configured to generate first verification result information based on target credential information and the user information in the first verification request, wherein the server is provided with a target virtual recharge card for the target code, the target credential information is information reserved for the user to purchase the target virtual recharge card stored for the target code; the target code is the card number of the target virtual recharge card; and the reserved information is user information of the user using the target virtual recharge card stored by the server; A third sending module, used to send the first verification result information to the terminal device; a recharge module, configured to, upon receiving a first recharge request sent by the terminal device and carrying the first recharge information and the target code, perform a recharge operation on the first target recharge number based on the first recharge information, The first recharge information includes the first target recharge number, and the first recharge request is a recharge request sent to the server by the terminal device in response to the user's first input on the recharge page when the terminal device receives the first verification result information and the first verification result information indicates that the verification is passed.

17. An electronic device, It is characterized in that include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the QR code-based recharge method as described in any one of claims 1 to 8 or the QR code-based recharge method as described in any one of claims 9 to 14 is implemented.

18. A readable storage medium, It is characterized in that When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the QR code-based recharge method as described in any one of claims 1-8 or the QR code-based recharge method as described in any one of claims 9-14.