Resource Transfer Method, Apparatus, Device, and Storage Medium
By embedding Webview in the resource transfer application of the terminal, obtaining parameters in response to web page instructions and interacting with the resource transfer server, the problem of cumbersome resource transfer operations in the existing technology is solved, and an efficient resource transfer process is achieved.
Patent Information
- Application Number
- CN202111593026.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-23
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2041-12-23
AI Technical Summary
In the prior art, when a user transfers resources during online shopping, they need to scan the code generated by the resource transfer server, which is cumbersome, resulting in low resource transfer efficiency.
By embedding Webview in the resource transfer application of the terminal, responding to resource transfer instructions in the webpage, obtaining resource transfer parameters, and interacting with the resource transfer server through sub-applications to simplify user operations.
It improves the efficiency of resource transfer, reduces user operation steps, and improves the convenience and efficiency of resource transfer.
Smart Images

Figure CN114296957B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and particularly to a resource transfer method, apparatus, device, and storage medium. Background Art
[0002] With the development of computer technology, online shopping has rapidly developed into a mainstream shopping method. When users shop online, they generally need to perform online resource transfer. In related technologies, when a user purchases an item on a web page, the server corresponding to the web page will interact with a resource transfer server to obtain a resource transfer code, and then display the resource transfer code on the web page. The user needs to scan the resource transfer code through a resource transfer application corresponding to the resource transfer server to perform resource transfer, which requires a lot of operations, so the resource transfer efficiency is low. Summary of the Invention
[0003] Embodiments of this application provide a resource transfer method, apparatus, device, and storage medium, providing a new resource transfer method that can improve resource transfer efficiency. The technical solutions are as follows:
[0004] On the one hand, a resource transfer method is provided. The method is executed by a terminal that runs a resource transfer application. The resource transfer application includes sub-applications, and a web view (Webview) is embedded in the sub-applications. The method includes:
[0005] Display a first web page through the Webview;
[0006] In response to a resource transfer instruction obtained in the first web page, obtain resource transfer parameters through the Webview, and send the resource transfer parameters to the sub-application;
[0007] Send a resource transfer request to a resource transfer server corresponding to the resource transfer application through the sub-application. The resource transfer request carries the resource transfer parameters, and the resource transfer request is used to request resource transfer based on the resource transfer parameters.
[0008] In a possible implementation, the step of obtaining resource transfer parameters through the Webview in response to a resource transfer instruction obtained in the first web page includes:
[0009] In response to the resource transfer instruction obtained in the first web page, obtain a first account from the resource transfer server through the Webview. The first account is authorized by the resource transfer server to the sub-application, and the first account is associated with a second account currently logged in to the resource transfer application;
[0010] Obtain the resource transfer parameter based on the first account.
[0011] In a possible implementation manner, the obtaining the first account from the resource transfer server through the Webview in response to the resource transfer instruction obtained in the first web page includes:
[0012] In response to the resource transfer instruction obtained in the first web page, obtain a login credential from the sub-application through the Webview, where the login credential is sent by the resource transfer server to the sub-application when authorizing to log in to the sub-application in the resource transfer application;
[0013] Obtain the first account from the resource transfer server based on the login credential.
[0014] In a possible implementation manner, the obtaining the resource transfer parameter based on the first account includes:
[0015] Obtain the item information corresponding to the resource transfer instruction through the Webview;
[0016] Send a parameter acquisition request to the server corresponding to the first web page, where the parameter acquisition request carries the item information and the first account;
[0017] Receive the resource transfer parameter generated by the server based on the parameter acquisition request, where the resource transfer parameter includes the resource quantity corresponding to the item information and the first account.
[0018] In a possible implementation manner, after sending a resource transfer request to the resource transfer server corresponding to the resource transfer application through the sub-application, the method further includes:
[0019] Receive a resource transfer receipt sent by the resource transfer server through the sub-application, and send the resource transfer receipt to the Webview, where the resource transfer receipt is generated based on the resource transfer parameter;
[0020] Display a second web page including the resource transfer receipt through the Webview, and in response to a confirmation operation on the resource transfer receipt in the second web page, send a receipt confirmation message to the sub-application;
[0021] Send the receipt confirmation message to the resource transfer server through the sub-application, where the receipt confirmation message is used to indicate resource transfer based on the resource transfer receipt.
[0022] In a possible implementation, after sending a resource transfer request to the resource transfer server corresponding to the resource transfer application through the sub-application, the method further includes:
[0023] Receiving, through the sub-application, a resource transfer result sent by the resource transfer server, and sending the resource transfer result to the Webview;
[0024] Displaying, through the Webview, a third web page including the resource transfer result.
[0025] On the other hand, a resource transfer device is provided. The device is configured in a terminal, the terminal runs a resource transfer application, the resource transfer application includes a sub-application, and a web view Webview is embedded in the sub-application. The device includes:
[0026] A web page display module, configured to display a first web page through the Webview;
[0027] A parameter acquisition module, configured to, in response to a resource transfer instruction obtained in the first web page, obtain resource transfer parameters through the Webview and send the resource transfer parameters to the sub-application;
[0028] A request sending module, configured to send a resource transfer request to the resource transfer server corresponding to the resource transfer application through the sub-application. The resource transfer request carries the resource transfer parameters, and the resource transfer request is used to request resource transfer based on the resource transfer parameters.
[0029] In a possible implementation, the parameter acquisition module includes:
[0030] An account acquisition unit, configured to, in response to the resource transfer instruction obtained in the first web page, obtain a first account from the resource transfer server through the Webview. The first account is authorized by the resource transfer server to the sub-application, and the first account is associated with a second account currently logged in to the resource transfer application;
[0031] A parameter acquisition unit, configured to obtain the resource transfer parameters based on the first account.
[0032] In a possible implementation, the account acquisition unit is configured to, in response to the resource transfer instruction obtained in the first web page, obtain a login credential from the sub-application through the Webview. The login credential is sent by the resource transfer server to the sub-application when authorizing to log in to the sub-application in the resource transfer application; and obtain the first account from the resource transfer server based on the login credential.
[0033] In a possible implementation, the parameter acquisition unit is configured to obtain, through the Webview, item information corresponding to the resource transfer instruction; send a parameter acquisition request to the server corresponding to the first web page, where the parameter acquisition request carries the item information and the first account; and receive the resource transfer parameters generated by the server based on the parameter acquisition request, where the resource transfer parameters include the resource quantity corresponding to the item information and the first account.
[0034] In a possible implementation, the device further includes:
[0035] A bill confirmation module, configured to receive, through the sub-application, a resource transfer bill sent by the resource transfer server, send the resource transfer bill to the Webview, where the resource transfer bill is generated based on the resource transfer parameters; display, through the Webview, a second web page including the resource transfer bill, and in response to a confirmation operation on the resource transfer bill in the second web page, send a bill confirmation message to the sub-application; and send, through the sub-application, the bill confirmation message to the resource transfer server, where the bill confirmation message is used to indicate resource transfer based on the resource transfer bill.
[0036] In a possible implementation, the device further includes:
[0037] A result display module, configured to receive, through the sub-application, a resource transfer result sent by the resource transfer server, send the resource transfer result to the Webview; and display, through the Webview, a third web page including the resource transfer result.
[0038] On the other hand, a terminal is provided, where the terminal includes a processor and a memory, and at least one program code is stored in the memory, and the program code is loaded and executed by the processor to implement the resource transfer method in any of the above possible implementations.
[0039] On the other hand, a computer-readable storage medium is provided, and at least one program code is stored in the computer-readable storage medium, and the program code is loaded and executed by a processor to implement the resource transfer method in any of the above possible implementations.
[0040] On the other hand, a computer program product is provided. The computer program product includes computer program code stored in a computer-readable storage medium. A processor of a terminal reads the computer program code from the computer-readable storage medium, and the processor executes the computer program code to enable the terminal to execute the resource transfer method in any of the above possible implementation manners.
[0041] The beneficial effects brought by the technical solution provided in the embodiments of the present application at least include:
[0042] The embodiments of the present application provide a new resource transfer method. When a Webview obtains a resource transfer instruction in a web page, it can interact with a sub-application in a resource transfer application, so as to implement resource transfer through the sub-application. That is, the Webview obtains resource transfer parameters and sends the resource transfer parameters to the sub-application. In this way, the sub-application can initiate a resource transfer request to a resource transfer server corresponding to the resource transfer application based on the resource transfer parameters, thereby implementing resource transfer. This resource transfer method does not require the user to perform many operations, so it can improve the resource transfer efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0044] Figure 1 It is a schematic diagram of an implementation environment provided by the embodiments of the present application;
[0045] Figure 2 It is a flowchart of a resource transfer method provided by the embodiments of the present application;
[0046] Figure 3 It is a flowchart of another resource transfer method provided by the embodiments of the present application;
[0047] Figure 4 It is a schematic diagram of an interaction process between devices provided by the embodiments of the present application;
[0048] Figure 5 It is a schematic structural diagram of a resource transfer device provided by the embodiments of the present application;
[0049] Figure 6 It is a schematic structural diagram of a terminal provided by the embodiments of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0050] To make the objectives, technical solutions and advantages of this application clearer, the following will further describe the embodiments of this application in detail with reference to the accompanying drawings.
[0051] The terms "first", "second", "third", "fourth", etc. used in this application may be used herein to describe various concepts, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of this application, the first web page may be referred to as the second web page, and similarly, the second web page may be referred to as the first web page.
[0052] The terms "at least one", "multiple", "each", "any one" used in this application, at least one includes one, two or more than two, multiple includes two or more than two, and each refers to each one of the corresponding multiple, and any one refers to any one of the multiple. For example, multiple web pages include 3 web pages, and each refers to each of these 3 web pages, and any one refers to any one of these 3 web pages, which may be the first, the second or the third.
[0053] It should be noted that the user information involved in this application (including but not limited to user device information, user personal information, etc.) is information authorized by the user or fully authorized by all parties.
[0054] Figure 1 is a schematic diagram of an implementation environment provided by an embodiment of this application. Refer to Figure 1 , this implementation environment includes a terminal 101 and a resource transfer server 102. The terminal 101 and the resource transfer server 102 are connected through a wireless or wired network. Optionally, the terminal 101 is a laptop computer, a mobile phone, a tablet computer or other terminal. The terminal 101 runs a resource transfer application, and the resource transfer application includes sub-applications, and a Webview (web page view) is embedded in the sub-applications. The resource transfer server 102 is the background server corresponding to the resource transfer application and is used to provide resource transfer services. Optionally, this resource transfer application is an application in the operating system of the terminal 101 or an application provided by a third party. Optionally, the sub-applications run by the resource transfer application are of any type, for example, game applications, health service applications, shopping applications, etc.
[0055] In the embodiment of this application, the terminal 101 is used to display the web pages in the sub-applications through the Webview, respond to the resource transfer instructions obtained in the web pages, interact with the sub-applications through the Webview, and interact between the sub-applications and the resource transfer server 102 to implement the resource transfer function.
[0056] The method provided by the embodiment of the present application can be applied to the scenario of obtaining game equipment. For example, the sub-application included in the resource transfer application is a game application. The terminal displays a web page including at least one game equipment in the game application through Webview. After the user determines the game equipment to be obtained in the web page, the terminal generates a resource transfer instruction corresponding to the selected game equipment. After Webview obtains the resource transfer instruction, it obtains the resource transfer parameter and sends the resource transfer parameter to the game application. The game application then sends a resource transfer request carrying the resource transfer parameter to the resource transfer server. In this way, the resource transfer server can perform resource transfer based on the resource transfer parameter. After the resource transfer server performs the resource transfer, it sends the resource transfer result to the game application. The game application forwards the resource transfer result to Webview. Webview sends the resource transfer result to the server corresponding to the web page. When the resource transfer result is successful, the server issues the game equipment selected by the user to the user's account.
[0057] The method provided by the embodiment of the present application can be applied to the scenario of obtaining health service supplies. For example, the sub-application included in the resource transfer application is a health service application. The terminal displays a web page including at least one health service supply in the health service application through Webview. After the user determines the health service supply to be obtained in the web page, the terminal generates a resource transfer instruction corresponding to the selected health service supply. After Webview obtains the resource transfer instruction, it obtains the resource transfer parameter and sends the resource transfer parameter to the health service application. The health service application then sends a resource transfer request carrying the resource transfer parameter to the resource transfer server. In this way, the resource transfer server can perform resource transfer based on the resource transfer parameter. After the resource transfer server performs the resource transfer, it sends the resource transfer result to the health service application. The health service application forwards the resource transfer result to Webview. Webview sends the resource transfer result to the server corresponding to the web page. When the resource transfer result is successful, the server determines that the order information corresponding to the health service supply is a successful resource transfer. In this way, the merchant corresponding to the health service supply can provide the health service supply to the user subsequently.
[0058] Figure 2 It is a flowchart of a resource transfer method provided by the embodiment of the present application. This method is executed by the terminal. The terminal runs a resource transfer application. The resource transfer application includes sub-applications, and Webview is embedded in the sub-applications. Refer to Figure 2 , this method includes:
[0059] 201. The terminal displays a first web page through Webview.
[0060] Webview is an engine based on WebKit (an open-source browser engine) that can parse DOM (Document Object Model) elements. DOM is a set of web standards that defines a set of properties, methods, and events for accessing HTML document objects. Therefore, Webview can display HTML (Hyper Text Markup Language) web pages. Since the principle of Webview and browser for displaying web pages is the same, Webview can be regarded as a browser.
[0061] Optionally, the first web page is a page that conforms to the HTML5 (Hyper Text Markup Language 5) standard, simply referred to as an H5 page. Optionally, the first web page is used to display items, such as clothes, cosmetics, cars, etc. Optionally, the items displayed on the first web page include virtual items, such as game equipment, computer software, books, magazines, music videos, online services, etc.
[0062] 202. In response to the resource transfer instruction obtained in the first web page, the terminal obtains resource transfer parameters through Webview and sends the resource transfer parameters to the sub-application.
[0063] Optionally, a resource transfer control is displayed on the first web page. In response to the triggering operation on the resource transfer control, the terminal generates a resource transfer instruction. Wherein, when the resource transfer control corresponds to a certain item information, the resource transfer instruction is used to indicate resource transfer to obtain the item.
[0064] Optionally, multiple items are displayed on the first web page, and the user can select the item they want to obtain on the first web page. Correspondingly, in response to the selection operation on the item on the first web page, the terminal generates a resource transfer instruction corresponding to the item information. For example, if the selected item is a mask, the generated resource transfer instruction is used to indicate resource transfer to obtain the mask. Another example is that if the selected item is game equipment, the generated resource transfer instruction is used to indicate resource transfer to obtain the game equipment.
[0065] Optionally, the resource transfer parameters include the resource quantity corresponding to the item information, the order number corresponding to the item information, the account corresponding to the item information, etc.
[0066] Optionally, the sub-application is a mini Program. A mini Program is a type of application form that is embedded in other applications and can be used without downloading and installing.
[0067] 203. The terminal sends a resource transfer request to the resource transfer server corresponding to the resource transfer application through a sub-application. The resource transfer request carries resource transfer parameters and is used to request resource transfer based on the resource transfer parameters.
[0068] After receiving the resource transfer request, the resource transfer server can perform resource transfer based on the resource transfer parameters in the resource transfer request.
[0069] The embodiment of the present application provides a new resource transfer method, enabling the Webview to interact with the sub-application in the resource transfer application when obtaining a resource transfer instruction in a web page, so as to implement resource transfer through the sub-application. That is, the Webview obtains resource transfer parameters and sends them to the sub-application, enabling the sub-application to initiate a resource transfer request to the resource transfer server corresponding to the resource transfer application based on the resource transfer parameters, thereby implementing resource transfer. This resource transfer method requires fewer operations from the user and can thus improve the resource transfer efficiency.
[0070] Figure 3 It is a flowchart of a resource transfer method provided by an embodiment of the present application. This method is executed by a terminal that runs a resource transfer application. The resource transfer application includes a sub-application, and a web view Webview is embedded in the sub-application. Refer to Figure 3 This method includes:
[0071] 301. The terminal displays a first web page through the Webview.
[0072] Optionally, the terminal displays the application interface of the sub-application. The application interface includes a jump entry for the first web page. In response to a trigger operation on the jump entry, the terminal obtains the web page data of the first web page through the Webview, and then renders the first web page based on the web page data, enabling the user to enter the first web page through the jump entry in the sub-application interface. Optionally, the terminal obtains the web page data downloaded before the current time point from the local through the Webview, or the terminal sends a web page data acquisition request for the first web page to the server corresponding to the first web page through the Webview and receives the web page data returned by the server based on the web page data acquisition request.
[0073] Optionally, the terminal receives the web page link of the first web page through the sub-application, displays the web page link, and in response to a trigger operation on the web page link, obtains the web page data of the first web page based on the web page link, and then renders the first web page based on the web page data through the Webview, enabling the user to enter the first web page through the web page link.
[0074] 302. In response to a resource transfer instruction obtained from the first web page, the terminal uses Webview to obtain a first account from the resource transfer server. The first account is authorized by the resource transfer server for the sub-application, and the first account is associated with the second account currently logged in to the resource transfer application.
[0075] Optionally, in the case of first authorizing and logging in to the sub-application in the resource transfer application, the server corresponding to the resource transfer application will register a first account, which is associated with the second account currently logged in to the resource transfer application. That is, the first account and the second account both belong to the same user. The difference between the first account and the second account is that the second account is applicable to the resource transfer application. That is, the second account represents the user's identity in the resource transfer application and is used to distinguish different users in the resource transfer application, while the first account is applicable to the sub-application. That is, the first account represents the user's identity in the sub-application and is used to distinguish different users in the sub-application. In fact, if the same user authorizes and logs in to multiple sub-applications in the resource transfer application, in addition to the account logged in to the resource transfer application, there will also be an account corresponding to the user and each sub-application in the resource transfer server. The account corresponding to any sub-application is used to distinguish the user from other users in the sub-application. Among them, the account corresponding to each sub-application is authorized by the resource transfer server for the sub-application, and the accounts corresponding to each sub-application may be the same or different.
[0076] After the resource transfer server authorizes an account of a certain user to the sub-application, data interaction related to the user can be carried out between the resource transfer server and the sub-application through this account, without the need to carry out data interaction based on the account registered by the user in the resource transfer application, which can improve the security of this account.
[0077] Optionally, the user needs to register their user information on the resource transfer server through the terminal to obtain the second account, and then log in to the resource transfer application based on the second account to enjoy the resource transfer service provided by the resource transfer application. Optionally, the first account is an account obtained by the resource transfer server after encrypting the user information associated with the second account. For example, the user information includes user name, age, gender, contact information, ID number, etc. The resource transfer server encrypts any one or more pieces of user information to obtain a string as the first account of the user, and then associates and stores the first account, the second account, and the user information, so that the first account can be provided to the sub-application subsequently. Optionally, the first account is an OpenID (Open Identity). Different users in a sub-application correspond to different OpenIDs, and different users in the sub-application can be distinguished based on the OpenID.
[0078] In a possible implementation, in response to a resource transfer instruction obtained from a first web page, the terminal obtains a first account from a resource transfer server through a Webview, including: in response to the resource transfer instruction obtained from the first web page, the terminal obtains a login credential from a sub-application through the Webview, where the login credential is sent by the resource transfer server to the sub-application when authorizing to log in to the sub-application in the resource transfer application; then the terminal obtains the first account from the resource transfer server through the Webview based on the login credential.
[0079] Among them, the login credential is randomly generated by the resource transfer server and then sent to the sub-application when authorizing to log in to the sub-application in the resource transfer application before the current time point. The terminal sends a request to obtain the login credential to the sub-application through the Webview, and then receives the login credential returned by the sub-application through the Webview. Then, the terminal sends a request to obtain the first account to the resource transfer server through the Webview, and the request carries the login credential. After receiving the request, the resource transfer server queries the first account corresponding to the login credential and sends the first account to the Webview.
[0080] In the embodiment of the present application, since the login credential is sent by the resource transfer server to the sub-application only when the sub-application has obtained user authorization, the Webview can obtain the first account authorized to the sub-application from the resource transfer server only by obtaining the login credential of the sub-application first, which can avoid the leakage of the account to unauthorized illegal applications, thereby improving the security of the account.
[0081] Optionally, the login credential is a temporary login credential, that is, the login credential has a validity period. Correspondingly, after receiving the request to obtain user information sent by the Webview, the resource transfer server first determines whether the login credential carried in the request is within the validity period. If the login credential is within the validity period, the resource transfer server sends the first account to the Webview. Optionally, if the login credential is not within the validity period, a notice that the login credential has expired is sent to the Webview, and then the Webview forwards the notice to the sub-application. After receiving the notice, the sub-application displays an authorization login page for prompting to authorize to log in to the sub-application. In response to the authorization operation obtained on the authorization login page, a notice that the sub-application has obtained authorization is sent to the resource transfer server. After receiving the notice, the resource transfer server sends a new login credential to the sub-application, and then the sub-application forwards the new login credential to the Webview, and then the Webview obtains the first account from the resource transfer server based on the new login credential.
[0082] 303. The terminal obtains resource transfer parameters based on the first account through Webview and sends the resource transfer parameters to the sub-application.
[0083] In a possible implementation, the terminal obtains resource transfer parameters based on the first account through Webview, including: the terminal obtains the item information corresponding to the resource transfer instruction through Webview; sends a parameter acquisition request to the server corresponding to the first web page, and the parameter acquisition request carries the item information and the first account; then receives the resource transfer parameters generated by the server based on the parameter acquisition request, and the resource transfer parameters include the resource quantity corresponding to the item information and the first account.
[0084] The server corresponding to the first web page stores the resource quantity corresponding to each item. Therefore, after receiving the parameter acquisition request, the server can query the resource quantity corresponding to each item in the item information, and then determine the resource quantity corresponding to the item information. Optionally, the server also stores the preferential information corresponding to each account. Therefore, the server can also query the preferential information corresponding to the first account and determine the total resource quantity corresponding to the item information based on the preferential information. For example, the preferential information is a coupon, a discount coupon, etc.
[0085] Optionally, the resource transfer parameters further include an order number. That is, when the server corresponding to the first web page receives the parameter acquisition request, it will generate an order number corresponding to the item information in the parameter acquisition request. Optionally, the resource transfer parameters further include the account information of the merchant corresponding to the item information, which is convenient for the subsequent resource transfer server to transfer resources to the merchant. Optionally, after generating the resource transfer parameters, the server will also store the resource transfer parameters for subsequent query.
[0086] In the embodiment of the present application, by sending the item information and the first account to the server corresponding to the first web page, enabling the server to generate the resource transfer parameters based on the item information and the first account, the terminal does not need to generate the resource transfer parameters by itself, which can reduce the performance consumption of the terminal.
[0087] In the embodiment of the present application, since the resource transfer parameters are used for the resource transfer server to perform resource transfer, and the resource transfer server can perform resource transfer based on the user information corresponding to the account only when the account in the resource transfer parameters is the account authorized by the resource transfer server, therefore, by obtaining the account authorized by the resource transfer server to the sub-application through Webview and obtaining the resource transfer parameters based on this account, the resource transfer server can successfully perform resource transfer based on the resource transfer parameters.
[0088] It should be noted that the above steps 302-303 are only one implementation method for obtaining resource transfer parameters through Webview. In other embodiments, Webview can also obtain resource transfer parameters through other means.
[0089] 304. The terminal sends a resource transfer request to the resource transfer server corresponding to the resource transfer application through the sub-application. The resource transfer request carries the resource transfer parameters and is used to request resource transfer based on the resource transfer parameters.
[0090] Optionally, the sub-application calls the resource transfer interface of the resource transfer server and sends the resource transfer request to the server through this resource transfer interface.
[0091] Optionally, after receiving the resource transfer request, the resource transfer server directly performs resource transfer based on the resource transfer parameters carried in the resource transfer request. For example, the resource transfer parameters carry the first account and the resource quantity corresponding to the item information. Correspondingly, the resource transfer server determines the account corresponding to the first account and transfers the resource quantity from this account to the account of the merchant corresponding to the item information. Optionally, the resource transfer server determines the second account associated with the first account, and then determines the account corresponding to the second account, which is the account corresponding to the first account.
[0092] 305. The terminal receives the resource transfer receipt sent by the resource transfer server through the sub-application and sends the resource transfer receipt to Webview. The resource transfer receipt is generated based on the resource transfer parameters.
[0093] Optionally, before performing resource transfer, the resource transfer server also generates a resource transfer receipt based on the resource transfer parameters. The resource transfer receipt includes the account corresponding to the first account and the resource quantity corresponding to the item information. Optionally, the resource transfer receipt also includes the first account, order number, item information, etc. Optionally, after performing resource transfer, the resource transfer server stores the resource transfer receipt for subsequent query. Optionally, before performing resource transfer, the resource transfer server first displays the resource transfer receipt to the user through the terminal, and then performs resource transfer when the user confirms the resource transfer receipt. Steps 305-307 are the confirmation process of the resource transfer receipt.
[0094] 306. The terminal displays a second web page including the resource transfer receipt through Webview, and in response to the confirmation operation on the resource transfer receipt in the second web page, sends a receipt confirmation message to the sub-application.
[0095] 307. The terminal sends a receipt confirmation message to the resource transfer server through the sub-application. The receipt confirmation message is used to indicate resource transfer based on the resource transfer receipt.
[0096] When the resource transfer server receives the bill confirmation message, it performs a resource transfer based on the resource transfer bill. For example, the resource transfer bill includes the account corresponding to the first account and the resource quantity corresponding to the item information. Correspondingly, the resource transfer server transfers the resource quantity from this account to the account of the merchant corresponding to the item information.
[0097] In the embodiments of the present application, considering that the user may generate a resource transfer instruction due to a misoperation of the terminal, before performing the resource transfer, the resource transfer server first displays the resource transfer bill to the user for the user to confirm the resource transfer bill, and only performs the resource transfer when the user confirms, which can avoid misoperations in resource transfer. Moreover, having the user confirm the resource transfer bill can also ensure the accuracy of the resource transfer bill.
[0098] 308. The terminal receives the resource transfer result sent by the resource transfer server through the sub-application and sends the resource transfer result to the Webview.
[0099] After performing the resource transfer, the resource transfer server generates a resource transfer result, which is either a successful resource transfer or a failed resource transfer. The resource transfer server sends the resource transfer result to the sub-application. After receiving the resource transfer result, the sub-application forwards the resource transfer result to the Webview.
[0100] 309. The terminal displays a third web page including the resource transfer result through the Webview.
[0101] In the embodiments of the present application, the resource transfer result generated by the resource transfer server is passed to the Webview through the sub-application, enabling the Webview to display a web page including the resource transfer result, facilitating the user to learn the resource transfer result.
[0102] Optionally, the terminal also sends the resource transfer result to the server corresponding to the first web page through the Webview, and this server forwards the resource transfer result to the terminal of the merchant corresponding to the above item information, so that the merchant can provide the item to the user corresponding to the first account based on the resource transfer result.
[0103] Optionally, the sub-application in the embodiments of the present application refers to a sub-application container, which includes the functional program and the environment program of the sub-application. The environment program is used to deploy the running environment of the sub-application on the terminal so that the functional program can run properly. Optionally, the Webview refers to a Webview container, which includes the functional program and the environment program of the Webview. The environment program is used to deploy the running environment of the Webview on the terminal so that the functional program can run properly.
[0104] It should be noted that the process of confirming the resource transfer bill in the above steps 304-306 is optional and may not be executed in other embodiments. In addition, the process of displaying the resource transfer result in the above steps 307-308 is also optional and may not be executed in other embodiments.
[0105] The embodiment of the present application provides a new resource transfer method, enabling the Webview to interact with a sub-application in a resource transfer application when obtaining a resource transfer instruction in a web page, so as to implement resource transfer through the sub-application. That is, the Webview obtains resource transfer parameters and sends them to the sub-application, enabling the sub-application to initiate a resource transfer request to the resource transfer server corresponding to the resource transfer application based on the resource transfer parameters, thereby implementing resource transfer. This resource transfer method requires fewer operations from the user and can thus improve the resource transfer efficiency.
[0106] In the embodiment of the present application, since the login credential is sent by the resource transfer server to the sub-application only when the sub-application has obtained user authorization, the Webview first obtains the login credential of the sub-application and can then obtain the account authorized to the sub-application from the resource transfer server using this login credential, which can prevent the leakage of this account to unauthorized illegal applications and thus improve the security of the account.
[0107] In the embodiment of the present application, by sending the item information and the account to the server corresponding to the first web page, enabling the server to generate the resource transfer parameters based on the item information and the account, the terminal does not need to generate the resource transfer parameters by itself, which can reduce the performance consumption of the terminal.
[0108] In the embodiment of the present application, since the resource transfer parameters are used by the resource transfer server for resource transfer, and the resource transfer server can perform resource transfer based on the user information corresponding to the account only when the account in the resource transfer parameters is an account authorized by the resource transfer server, by obtaining, through the Webview, the account authorized by the resource transfer server to the sub-application and obtaining the resource transfer parameters based on this account, the resource transfer server can successfully perform resource transfer based on the resource transfer parameters.
[0109] In the embodiment of the present application, considering that the user may generate a resource transfer instruction on the terminal due to accidental operation, before performing resource transfer, the resource transfer server first displays the resource transfer bill to the user for the user to confirm the resource transfer bill, and performs resource transfer only when the user confirms it, which can avoid accidental resource transfer operations. Moreover, having the user confirm the resource transfer bill can also ensure the accuracy of the resource transfer bill.
[0110] In an embodiment of the present application, the sub-application transfers the resource transfer result generated by the resource transfer server to the Webview, enabling the Webview to display a web page including the resource transfer result, facilitating the user to learn about the resource transfer result.
[0111] Figure 4 FIG. is a schematic diagram of the interaction process among the sub-application, the Webview, the resource transfer server, and the web page server. Among them, the web page server is the server corresponding to the above-mentioned first web page. Refer to Figure 4 , and the interaction process is as follows:
[0112] 1. In response to the resource transfer instruction obtained in the first web page, the Webview sends a request for obtaining the login credential to the sub-application.
[0113] 2. The sub-application sends the login credential to the Webview.
[0114] 3. The Webview sends a request for obtaining the first account to the resource transfer server, and the obtaining request carries the login credential.
[0115] 4. The resource transfer server sends the first account to the Webview.
[0116] 5. The Webview sends a parameter obtaining request to the web page server, and the parameter obtaining request carries the first account and the item information corresponding to the resource transfer instruction.
[0117] 6. The web page server sends the resource transfer parameter generated based on the parameter obtaining request to the Webview.
[0118] 7. The Webview sends the resource transfer parameter to the sub-application.
[0119] 8. The sub-application sends a resource transfer request to the resource transfer server, and the resource transfer request carries the resource transfer parameter.
[0120] 9. The resource transfer server performs resource transfer based on the resource transfer parameter.
[0121] Figure 4 For the implementation details of each step in, please refer to the above Figure 3 corresponding embodiment.
[0122] Figure 5 FIG. is a block diagram of a resource transfer device provided in an embodiment of the present application. The device is configured in a terminal, and the terminal runs a resource transfer application. The resource transfer application includes a sub-application, and a web view Webview is embedded in the sub-application. Refer to Figure 5 , and the device includes:
[0123] The web page display module 501 is configured to display a first web page through a Webview;
[0124] The parameter acquisition module 502 is configured to, in response to a resource transfer instruction obtained in the first web page, obtain a resource transfer parameter through the Webview and send the resource transfer parameter to a sub-application;
[0125] The request sending module 503 is configured to send a resource transfer request to a resource transfer server corresponding to the resource transfer application through the sub-application. The resource transfer request carries the resource transfer parameter, and the resource transfer request is used to request resource transfer based on the resource transfer parameter.
[0126] The embodiment of the present application provides a new resource transfer method, enabling the Webview to interact with a sub-application in the resource transfer application when obtaining a resource transfer instruction in the web page, so as to implement resource transfer through the sub-application. That is, the Webview obtains the resource transfer parameter and sends the resource transfer parameter to the sub-application, so that the sub-application can initiate a resource transfer request to the resource transfer server corresponding to the resource transfer application based on the resource transfer parameter, thereby realizing resource transfer. This resource transfer method does not require the user to perform many operations, so it can improve the resource transfer efficiency.
[0127] In a possible implementation manner, the parameter acquisition module 502 includes:
[0128] The account acquisition unit is configured to, in response to a resource transfer instruction obtained in the first web page, obtain a first account from the resource transfer server through the Webview. The first account is authorized by the resource transfer server to the sub-application, and the first account is associated with a second account currently logged in to the resource transfer application;
[0129] The parameter acquisition unit is configured to obtain the resource transfer parameter based on the first account.
[0130] In a possible implementation manner, the account acquisition unit is configured to, in response to a resource transfer instruction obtained in the first web page, obtain a login credential from the sub-application through the Webview. The login credential is sent by the resource transfer server to the sub-application when authorizing to log in to the sub-application in the resource transfer application; and obtain the first account from the resource transfer server based on the login credential.
[0131] In a possible implementation manner, the parameter acquisition unit is configured to obtain item information corresponding to the resource transfer instruction through the Webview; send a parameter acquisition request to the server corresponding to the first web page, where the parameter acquisition request carries the item information and the first account; and receive the resource transfer parameter generated by the server based on the parameter acquisition request. The resource transfer parameter includes the resource quantity corresponding to the item information and the first account.
[0132] In a possible implementation, the apparatus further includes:
[0133] A bill confirmation module, configured to receive, through a sub-application, a resource transfer bill sent by a resource transfer server, send the resource transfer bill to a Webview, where the resource transfer bill is generated based on resource transfer parameters; display, through the Webview, a second web page including the resource transfer bill, and in response to a confirmation operation on the resource transfer bill in the second web page, send a bill confirmation message to the sub-application; and send, through the sub-application, the bill confirmation message to the resource transfer server, where the bill confirmation message is used to indicate resource transfer based on the resource transfer bill.
[0134] In a possible implementation, the apparatus further includes:
[0135] A result display module, configured to receive, through a sub-application, a resource transfer result sent by a resource transfer server, send the resource transfer result to a Webview; and display, through the Webview, a third web page including the resource transfer result.
[0136] It should be noted that: when the resource transfer apparatus provided in the above embodiments performs resource transfer, only the division of the above function modules is used for illustration. In actual applications, the above functions can be allocated to different function modules according to needs, that is, the internal structure of the terminal is divided into different function modules to complete all or part of the functions described above. In addition, the resource transfer apparatus provided in the above embodiments and the resource transfer method embodiments belong to the same concept, and the specific implementation process can be seen in the method embodiments, which will not be elaborated here.
[0137] An embodiment of the present application further provides a terminal, which includes a processor and a memory, and at least one program code is stored in the memory. The at least one program code is loaded and executed by the processor to implement the resource transfer method of the above embodiments.
[0138] Figure 6 The block diagram of a terminal 600 provided by an exemplary embodiment of the present application is shown. The terminal 600 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 (Moving Picture Experts Group Audio Layer IV) player, a notebook computer or a desktop computer. The terminal 600 may also be referred to by other names such as a user equipment, a portable terminal, a laptop terminal, a desktop terminal, etc.
[0139] The terminal 600 includes: a processor 601 and a memory 602.
[0140] The processor 601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 601 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 601 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the wake state, also known as the CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 601 may be integrated with a GPU (Graphics Processing Unit), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 601 may further include an AI (Artificial Intelligence) processor, and the AI processor is used to process computational operations related to machine learning.
[0141] The memory 602 may include one or more computer-readable storage media, and the computer-readable storage media may be non-transitory. The memory 602 may further include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash storage devices. In some embodiments, the non-transitory computer-readable storage media in the memory 602 is used to store at least one program code, and the at least one program code is used to be executed by the processor 601 to implement the resource transfer method provided in the method embodiments of the present application.
[0142] In some embodiments, the terminal 600 may further optionally include: a peripheral device interface 603 and at least one peripheral device. The processor 601, the memory 602, and the peripheral device interface 603 may be connected through a bus or signal lines. Each peripheral device may be connected to the peripheral device interface 603 through a bus, signal lines, or a circuit board. Specifically, the peripheral device includes at least one of a radio frequency circuit 604, a display screen 605, a camera component 606, an audio circuit 607, a positioning component 608, and a power supply 609.
[0143] The peripheral device interface 603 can be used to connect at least one I / O (Input / Output) related peripheral device to the processor 601 and the memory 602. In some embodiments, the processor 601, the memory 602, and the peripheral device interface 603 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 601, the memory 602, and the peripheral device interface 603 can be implemented on a separate chip or circuit board, and this embodiment does not limit this.
[0144] The radio frequency circuit 604 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 604 communicates with a communication network and other communication devices through electromagnetic signals. The radio frequency circuit 604 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 604 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so on. The radio frequency circuit 604 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: metropolitan area network, each generation of mobile communication network (2G, 3G, 4G, and 5G), wireless local area network, and / or WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 604 may further include a circuit related to NFC (Near Field Communication), and this application does not limit this.
[0145] The display screen 605 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 605 is a touch display screen, the display screen 605 also has the ability to collect touch signals on or above the surface of the display screen 605. The touch signal can be input to the processor 601 as a control signal for processing. At this time, the display screen 605 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there can be one display screen 605, which is set on the front panel of the terminal 600; in other embodiments, there can be at least two display screens 605, which are respectively set on different surfaces of the terminal 600 or in a folding design; in other embodiments, the display screen 605 can be a flexible display screen, which is set on the curved surface or the folding surface of the terminal 600. Even, the display screen 605 can also be set as an irregular non-rectangular shape, that is, a special-shaped screen. The display screen 605 can be prepared using materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0146] The camera module 606 is used to collect images or videos. Optionally, the camera module 606 includes a front camera and a rear camera. The front camera is set on the front panel of the terminal, and the rear camera is set on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth-of-field camera, a wide-angle camera, and a telephoto camera, so as to implement the function of background blurring by fusing the main camera and the depth-of-field camera, panoramic shooting by fusing the main camera and the wide-angle camera, and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera module 606 can also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. The dual-color temperature flash refers to the combination of a warm light flash and a cold light flash, which can be used for light compensation under different color temperatures.
[0147] The audio circuit 607 may include a microphone and a speaker. The microphone is used to collect sound waves of the user and the environment, and convert the sound waves into electrical signals for input to the processor 601 for processing, or input to the radio frequency circuit 604 to achieve voice communication. For the purpose of stereo collection or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 600. The microphone may also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert the electrical signal from the processor 601 or the radio frequency circuit 604 into sound waves. The speaker may be a traditional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into inaudible sound waves for uses such as ranging. In some embodiments, the audio circuit 607 may also include a headphone jack.
[0148] The positioning component 608 is used to locate the current geographical location of the terminal 600 to achieve navigation or LBS (Location Based Service). The positioning component 608 may be a positioning component based on the GPS (Global Positioning System) of the United States, the Beidou system of China, the GLONASS system of Russia, or the Galileo system of the European Union.
[0149] The power supply 609 is used to supply power to each component in the terminal 600. The power supply 609 may be alternating current, direct current, a disposable battery, or a rechargeable battery. When the power supply 609 includes a rechargeable battery, the rechargeable battery may support wired charging or wireless charging. The rechargeable battery may also be used to support fast charging technology.
[0150] In some embodiments, the terminal 600 further includes one or more sensors 610. The one or more sensors 610 include but are not limited to: an acceleration sensor 611, a gyroscope sensor 612, a pressure sensor 613, a fingerprint sensor 614, an optical sensor 615, and a proximity sensor 616.
[0151] The acceleration sensor 611 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established with the terminal 600. For example, the acceleration sensor 611 can be used to detect the components of the gravitational acceleration on the three coordinate axes. The processor 601 can control the display screen 605 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 611. The acceleration sensor 611 can also be used for game or user motion data collection.
[0152] The gyroscope sensor 612 can detect the body direction and rotation angle of the terminal 600. The gyroscope sensor 612 can cooperate with the acceleration sensor 611 to collect the 3D actions of the user on the terminal 600. Based on the data collected by the gyroscope sensor 612, the processor 601 can implement the following functions: motion sensing (such as changing the UI according to the user's tilting operation), image stabilization during shooting, game control, and inertial navigation.
[0153] The pressure sensor 613 can be disposed on the side frame of the terminal 600 and / or under the display screen 605. When the pressure sensor 613 is disposed on the side frame of the terminal 600, it can detect the holding signal of the user on the terminal 600, and the processor 601 can perform left / right hand recognition or quick operation according to the holding signal collected by the pressure sensor 613. When the pressure sensor 613 is disposed under the display screen 605, the processor 601 can control the operable controls on the UI interface according to the pressure operation of the user on the display screen 605. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
[0154] The fingerprint sensor 614 is used to collect the fingerprints of the user. The processor 601 can identify the user's identity according to the fingerprints collected by the fingerprint sensor 614, or the fingerprint sensor 614 can identify the user's identity according to the collected fingerprints. When the identified user identity is a trusted identity, the processor 601 authorizes the user to perform relevant sensitive operations, and the sensitive operations include unlocking the screen, viewing encrypted information, downloading software, making payments, and changing settings, etc. The fingerprint sensor 614 can be disposed on the front, back, or side of the terminal 600. When there are physical buttons or manufacturer Logos on the terminal 600, the fingerprint sensor 614 can be integrated with the physical buttons or manufacturer Logos.
[0155] The optical sensor 615 is used to collect the ambient light intensity. In one embodiment, the processor 601 can control the display brightness of the display screen 605 according to the ambient light intensity collected by the optical sensor 615. Specifically, when the ambient light intensity is high, the display brightness of the display screen 605 is increased; when the ambient light intensity is low, the display brightness of the display screen 605 is decreased. In another embodiment, the processor 601 can also dynamically adjust the shooting parameters of the camera module 606 according to the ambient light intensity collected by the optical sensor 615.
[0156] The proximity sensor 616, also known as the distance sensor, is disposed on the front panel of the terminal 600. The proximity sensor 616 is used to collect the distance between the user and the front of the terminal 600. In one embodiment, when the proximity sensor 616 detects that the distance between the user and the front of the terminal 600 is gradually decreasing, the processor 601 controls the display screen 605 to switch from the lit state to the off state; when the proximity sensor 616 detects that the distance between the user and the front of the terminal 600 is gradually increasing, the processor 601 controls the display screen 605 to switch from the off state to the lit state.
[0157] Those skilled in the art can understand that Figure 6 the structure shown in does not constitute a limitation on the terminal 600, and may include more or fewer components than shown, or combine certain components, or adopt a different component arrangement.
[0158] The embodiment of the present application also provides a computer-readable storage medium, in which at least one program code is stored, and the at least one program code is loaded and executed by a processor to implement the resource transfer method of the above embodiment.
[0159] The embodiment of the present application also provides a computer program product, the computer program product includes computer program code, the computer program code is stored in a computer-readable storage medium, the processor of the terminal reads the computer program code from the computer-readable storage medium, and the processor executes the computer program code, so that the terminal executes the resource transfer method in any of the above possible implementation manners.
[0160] Those of ordinary skill in the art can understand that all or part of the steps to implement the above embodiment can be completed by hardware, or can be completed by a program instructing relevant hardware, and the program can be stored in a computer-readable storage medium, and the above-mentioned storage medium can be a read-only memory, a disk or an optical disc, etc.
[0161] The above are only optional embodiments of the present application, and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A resource transfer method, characterized in that, Executed by a terminal that runs a resource transfer application. The resource transfer application includes sub-applications, and a web view (Webview) is embedded in the sub-applications. The method includes: Display a first web page through the Webview; In response to a resource transfer instruction obtained in the first web page, obtain a first account through the Webview from a resource transfer server corresponding to the resource transfer application. The first account is authorized by the resource transfer server to the sub-application, and the first account is associated with a second account currently logged in to the resource transfer application. The first account is an account obtained by the resource transfer server after encrypting the user information associated with the second account; Obtain resource transfer parameters based on the first account, and send the resource transfer parameters to the sub-application. The resource transfer parameters include the resource quantity corresponding to the item information corresponding to the resource transfer instruction and the first account; Send a resource transfer request to the resource transfer server through the sub-application. The resource transfer request carries the resource transfer parameters, and the resource transfer request is used to request the resource transfer server to perform a resource transfer based on the resource transfer parameters.
2. The method according to claim 1, characterized in that, The step of "In response to a resource transfer instruction obtained in the first web page, obtain a first account through the Webview from a resource transfer server corresponding to the resource transfer application" includes: In response to the resource transfer instruction obtained in the first web page, obtain a login credential through the Webview from the sub-application. The login credential is sent by the resource transfer server to the sub-application when authorizing to log in to the sub-application in the resource transfer application; Obtain the first account from the resource transfer server based on the login credential.
3. The method according to claim 1, wherein The step of "Obtain resource transfer parameters based on the first account" includes: Obtain the item information corresponding to the resource transfer instruction through the Webview; Send a parameter acquisition request to the server corresponding to the first web page. The parameter acquisition request carries the item information and the first account; Receive the resource transfer parameters generated by the server based on the parameter acquisition request.
4. The method according to any one of claims 1 to 3, characterized in that, After the step of "Send a resource transfer request to the resource transfer server through the sub-application", the method further includes: Receive a resource transfer receipt sent by the resource transfer server through the sub-application, and send the resource transfer receipt to the Webview. The resource transfer receipt is generated based on the resource transfer parameters; Display a second web page including the resource transfer receipt through the Webview. In response to a confirmation operation on the resource transfer receipt in the second web page, send a receipt confirmation message to the sub-application; Send the receipt confirmation message to the resource transfer server through the sub-application. The receipt confirmation message is used to indicate performing a resource transfer based on the resource transfer receipt.
5. The method according to any one of claims 1 to 3, characterized in that, After the step of "Send a resource transfer request to the resource transfer server through the sub-application", the method further includes: Receive the resource transfer result sent by the resource transfer server through the sub-application, and send the resource transfer result to the Webview. Display a third web page including the resource transfer result through the Webview.
6. A resource transfer device, characterized in that, Configured in a terminal, the terminal runs a resource transfer application, the resource transfer application includes a sub-application, and a web view Webview is embedded in the sub-application. The device includes: A web page display module configured to display a first web page through the Webview. A parameter acquisition module configured to, in response to a resource transfer instruction obtained in the first web page, obtain a first account from the resource transfer server corresponding to the resource transfer application through the Webview. The first account is authorized by the resource transfer server to the sub-application, and the first account is associated with a second account currently logged in to the resource transfer application. The first account is an account obtained by the resource transfer server after encrypting the user information associated with the second account. Obtain resource transfer parameters based on the first account, and send the resource transfer parameters to the sub-application. The resource transfer parameters include the resource quantity corresponding to the item information corresponding to the resource transfer instruction and the first account. A request sending module configured to send a resource transfer request to the resource transfer server through the sub-application. The resource transfer request carries the resource transfer parameters, and the resource transfer request is used to request the resource transfer server to perform a resource transfer based on the resource transfer parameters.
7. A terminal, characterized in that, The terminal includes a processor and a memory. At least one program code is stored in the memory, and the program code is loaded and executed by the processor to implement the resource transfer method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, At least one program code is stored in the storage medium, and the program code is loaded and executed by a processor to implement the resource transfer method according to any one of claims 1 to 5.
9. A computer program product, characterized in that, The computer program product includes computer program code. The computer program code is stored in a computer-readable storage medium. The processor of the terminal reads the computer program code from the computer-readable storage medium, and the processor executes the computer program code, so that the terminal executes the resource transfer method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Resource data processing method and device, computer equipment and storage medium
CN113032703A
Account management method, server, terminal and processor
CN113672887A