CN114296957A - Resource transfer method, device, equipment and storage medium - Google Patents

Resource transfer method, device, equipment and storage medium Download PDF

Info

Publication number
CN114296957A
CN114296957A CN202111593026.8A CN202111593026A CN114296957A CN 114296957 A CN114296957 A CN 114296957A CN 202111593026 A CN202111593026 A CN 202111593026A CN 114296957 A CN114296957 A CN 114296957A
Authority
CN
China
Prior art keywords
resource transfer
application
sub
webview
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111593026.8A
Other languages
Chinese (zh)
Inventor
苏少炜
陈孝良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing SoundAI Technology Co Ltd
Original Assignee
Beijing SoundAI Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing SoundAI Technology Co Ltd filed Critical Beijing SoundAI Technology Co Ltd
Priority to CN202111593026.8A priority Critical patent/CN114296957A/en
Publication of CN114296957A publication Critical patent/CN114296957A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The application provides a resource transfer method, a resource transfer device, a resource transfer equipment and a storage medium, and belongs to the technical field of computers. The method is executed by a terminal, the terminal runs a resource transfer application, the resource transfer application comprises a sub-application, and a webpage view Webview is embedded in the sub-application, and the method comprises the following steps: displaying a first webpage through Webview; responding to the resource transfer instruction acquired from the first webpage, acquiring a resource transfer parameter through Webview, and sending the resource transfer parameter to the sub-application; and sending a resource transfer request to a resource transfer server corresponding to the resource transfer application through the sub-application, wherein the resource transfer request carries resource transfer parameters. According to the method, under the condition that the Webview acquires the resource transfer instruction in the webpage, the Webview can interact with the sub-application in the resource transfer application, so that resource transfer is achieved through the sub-application, a user does not need to execute more operations, and the resource transfer efficiency can be improved.

Description

Resource transfer method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a resource transfer method, apparatus, device, and storage medium.
Background
With the development of computer technology, online shopping has rapidly developed into the mainstream shopping mode. When a user purchases online, online resource transfer is generally required. In the related art, when a user purchases an article in a webpage, a server corresponding to the webpage interacts with a resource transfer server to obtain a resource transfer code, and then the resource transfer code is displayed in the webpage, the user needs to scan the resource transfer code through a resource transfer application corresponding to the resource transfer server to transfer the resource, and more operations need to be performed, so that the resource transfer efficiency is low.
Disclosure of Invention
The embodiment of the application provides a resource transfer method, a resource transfer device and a storage medium, provides a new resource transfer mode, and can improve the resource transfer efficiency. The technical scheme is as follows:
in one aspect, a resource transfer method is provided, where the method is performed by 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, and the method includes:
displaying a first webpage through the Webview;
responding to a resource transfer instruction acquired from the first webpage, acquiring a resource transfer parameter through the Webview, and sending the resource transfer parameter to the sub-application;
and sending a resource transfer request to a resource transfer server corresponding to the resource transfer application through the sub-application, wherein the resource transfer request carries the resource transfer parameter, and the resource transfer request is used for requesting resource transfer based on the resource transfer parameter.
In a possible implementation manner, the obtaining, by the Webview, a resource transfer parameter in response to the resource transfer instruction obtained in the first web page includes:
responding to the resource transfer instruction acquired from the first webpage, acquiring a first account from the resource transfer server through the Webview, wherein the first account is authorized by the resource transfer server to the sub-application and is associated with a second account currently logged in by the resource transfer application;
and acquiring the resource transfer parameters based on the first account.
In a possible implementation manner, the acquiring, by the Webview, a first account from the resource transfer server in response to the resource transfer instruction acquired from the first web page includes:
responding to the resource transfer instruction acquired from the first webpage, acquiring a login certificate from the sub-application through the Webview, wherein the login certificate is sent to the sub-application by the resource transfer server under the condition that the login of the sub-application is authorized in the resource transfer application;
and acquiring the first account from the resource transfer server based on the login credential.
In a possible implementation manner, the obtaining the resource transfer parameter based on the first account includes:
acquiring article information corresponding to the resource transfer instruction through the Webview;
sending a parameter acquisition request to a server corresponding to the first webpage, wherein the parameter acquisition request carries the article information and the first account;
and receiving the resource transfer parameters generated by the server based on the parameter acquisition request, wherein the resource transfer parameters comprise the resource quantity corresponding to the article information and the first account.
In a possible implementation manner, after the sending, by the sub-application, a resource transfer request to a resource transfer server corresponding to the resource transfer application, the method further includes:
receiving a resource transfer bill sent by the resource transfer server through the sub-application, and sending the resource transfer bill to the Webview, wherein the resource transfer bill is generated based on the resource transfer parameter;
displaying a second webpage comprising the resource transfer bill through the Webview, and responding to the confirmation operation of the resource transfer bill in the second webpage and sending a bill confirmation message to the sub-application;
sending the bill confirmation message to the resource transfer server through the sub-application, wherein the bill confirmation message is used for indicating resource transfer based on the resource transfer bill.
In a possible implementation manner, after the sending, by the sub-application, a resource transfer request to a resource transfer server corresponding to the resource transfer application, the method further includes:
receiving a resource transfer result sent by the resource transfer server through the sub-application, and sending the resource transfer result to the Webview;
and displaying a third webpage comprising the resource transfer result through the Webview.
In another aspect, a resource transfer apparatus is provided, where the apparatus 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, and the apparatus includes:
the webpage display module is configured to display a first webpage through the Webview;
the parameter acquisition module is configured to respond to the resource transfer instruction acquired from the first webpage, acquire a resource transfer parameter through the Webview, and send the resource transfer parameter to the sub-application;
a request sending module configured to send, through the sub-application, a resource transfer request to a resource transfer server corresponding to the resource transfer application, where 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.
In a possible implementation manner, the parameter obtaining module includes:
an account acquisition unit, configured to respond to the resource transfer instruction acquired in the first web page, and acquire, through the Webview, a first account from the resource transfer server, where the first account is authorized by the resource transfer server to the sub-application and is associated with a second account currently logged in by the resource transfer application;
a parameter obtaining unit configured to obtain the resource transfer parameter based on the first account.
In a possible implementation manner, the account obtaining unit is configured to, in response to the resource transfer instruction obtained in the first web page, obtain, by the Webview, a login credential from the sub-application, where the login credential is sent by the resource transfer server to the sub-application when the login of the sub-application is authorized in the resource transfer application; and acquiring the first account from the resource transfer server based on the login credential.
In a possible implementation manner, the parameter obtaining unit is configured to obtain, through the Webview, item information corresponding to the resource transfer instruction; sending a parameter acquisition request to a server corresponding to the first webpage, wherein the parameter acquisition request carries the article information and the first account; and receiving the resource transfer parameters generated by the server based on the parameter acquisition request, wherein the resource transfer parameters comprise the resource quantity corresponding to the article information and the first account.
In one possible implementation, the apparatus further includes:
a bill validation module configured to receive, by the sub-application, a resource transfer bill sent by the resource transfer server, send the resource transfer bill to the Webview, the resource transfer bill being generated based on the resource transfer parameter; displaying a second webpage comprising the resource transfer bill through the Webview, and responding to the confirmation operation of the resource transfer bill in the second webpage and sending a bill confirmation message to the sub-application; sending the bill confirmation message to the resource transfer server through the sub-application, wherein the bill confirmation message is used for indicating resource transfer based on the resource transfer bill.
In one possible implementation, the apparatus further includes:
a result display module configured to receive, through the sub-application, a resource transfer result sent by the resource transfer server, and send the resource transfer result to the Webview; and displaying a third webpage comprising the resource transfer result through the Webview.
In another aspect, a terminal is provided, which includes a processor and a memory, where 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 one of the above possible implementation manners.
In another aspect, a computer-readable storage medium is provided, in which at least one program code is stored, the program code being loaded and executed by a processor to implement the resource transfer method in any of the above possible implementations.
In another aspect, a computer program product is provided, the computer program product including computer program code stored in a computer-readable storage medium, the computer program code being read by a processor of a terminal from the computer-readable storage medium, the processor executing the computer program code to cause the terminal to execute the resource transfer method in any one of the above possible implementations.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
the embodiment of the application provides a new resource transfer mode, so that under the condition that a resource transfer instruction in a webpage is obtained, Webview can interact with a sub-application in a resource transfer application, and therefore resource transfer is achieved through the sub-application, that is, a resource transfer parameter is obtained through Webview, and the resource transfer parameter is sent to the sub-application, so that 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 parameter, and therefore resource transfer is achieved, and the resource transfer mode does not need a user to perform more operations, and therefore resource transfer efficiency can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic illustration of an implementation environment provided by an embodiment of the present application;
fig. 2 is a flowchart of a resource transfer method provided in an embodiment of the present application;
FIG. 3 is a flow chart of another resource transfer method provided by an embodiment of the present application;
FIG. 4 is a diagram illustrating an interaction process between devices according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a resource transfer apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The terms "first," "second," "third," "fourth," and the like as used herein may be used herein to describe various concepts, but these concepts are not limited by these terms unless otherwise specified. These terms are only used to distinguish one concept from another. For example, a first web page may be referred to as a second web page, and similarly, a second web page may be referred to as a first web page, without departing from the scope of the present application.
As used herein, the terms "at least one," "a plurality," "each," and "any," at least one of which includes one, two, or more than two, and a plurality of which includes two or more than two, each of which refers to each of the corresponding plurality, and any of which refers to any of the plurality. For example, the plurality of web pages includes 3 web pages, each of the 3 web pages is a reference to any one of the 3 web pages, and any one of the 3 web pages may be a first one, a second one, or a third one.
It should be noted that the user information (including but not limited to user device information, user personal information, etc.) referred to in the present application is information authorized by the user or sufficiently authorized by each party.
Fig. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. Referring to fig. 1, the implementation environment includes a terminal 101 and a resource transfer server 102. The terminal 101 and the resource transfer server 102 are connected via a wireless or wired network. Optionally, the terminal 101 is a notebook computer, a mobile phone, a tablet computer, or other terminals. The terminal 101 runs a resource transfer application, the resource transfer application includes a sub-application, a Webview (web view) is embedded in the sub-application, and the resource transfer server 102 is a background server corresponding to the resource transfer application and is used for providing a resource transfer service. Optionally, the resource transfer application is an application in an operating system of the terminal 101 or an application provided by a third party. Alternatively, the sub-application on which the resource transfer application runs is any type of application, such as a gaming application, a health service application, a shopping application, and the like.
In the embodiment of the application, the terminal 101 is configured to display a web page in the sub-application through the Webview, respond to a resource transfer instruction acquired from the web page, interact with the sub-application through the Webview, and interact with the resource transfer server 102 to implement a resource transfer function.
The method provided by the embodiment of the application can be applied to the scene of obtaining the game equipment. For example, a sub-application included in the resource transfer application is a game application, the terminal displays a web page including at least one game device in the game application through Webview, after a user determines a game device to be acquired in the web page, the terminal generates a resource transfer instruction corresponding to the selected game device, after the Webview acquires the resource transfer instruction, the resource transfer parameter is acquired, the resource transfer parameter is sent to the game application, the game application sends a resource transfer request carrying the resource transfer parameter to the resource transfer server, and thus the resource transfer server can perform resource transfer based on the resource transfer parameter. And after the resource transfer server performs resource transfer, sending a resource transfer result to a game application, the game application forwarding the resource transfer result to Webview, the Webview sending the resource transfer result to a server corresponding to the webpage, and the server issuing the game equipment selected by the user to the account of the user under the condition that the resource transfer result is successful.
The method provided by the embodiment of the application can be applied to a scene of acquiring health service supplies. For example, a 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 a user determines a health service supply to be acquired in the web page, the terminal generates a resource transfer instruction corresponding to the selected health service supply, after the Webview acquires the resource transfer instruction, a resource transfer parameter is acquired, the resource transfer parameter is sent to the health service application, the health service application sends a resource transfer request carrying the resource transfer parameter to the resource transfer server, and thus the resource transfer server can perform resource transfer based on the resource transfer parameter. After resource transfer is carried out by the resource transfer server, a resource transfer result is sent to the health service application, the health service application forwards the resource transfer result to Webview, the Webview sends the resource transfer result to a server corresponding to the webpage, and the server determines order information corresponding to the health service supplies as successful resource transfer under the condition that the resource transfer result is successful resource transfer, so that a merchant corresponding to the subsequent health service supplies can provide the health service supplies for the user.
Fig. 2 is a flowchart of a resource transfer method according to an embodiment of the present application. The method is executed by a terminal, the terminal runs a resource transfer application, the resource transfer application comprises a sub-application, and Webview is embedded in the sub-application, and referring to fig. 2, the method comprises the following steps:
201. and the terminal displays the first webpage through Webview.
Webview is an engine based on webkit (an open source browser engine) and can parse DOM (Document Object Model) elements, wherein DOM is a set of webpage standards which define a set of attributes, methods and events for accessing HTML Document objects, so that Webview can display HTML (Hypertext Markup Language) webpages.
Optionally, the first webpage is a page that conforms to the HTML5(Hyper Text Markup Language 5) standard, referred to as H5 page for short. Optionally, the first webpage is used for displaying items, such as clothing, cosmetics, automobiles, and the like. Optionally, the article displayed by the first webpage comprises a virtual article, such as game equipment, computer software, books, magazines, music images, online services, and the like.
202. And the terminal responds to the resource transfer instruction acquired from the first webpage, acquires a resource transfer parameter through Webview, and sends the resource transfer parameter to the sub-application.
Optionally, a resource transfer control is displayed in the first webpage, and the terminal generates a resource transfer instruction in response to a trigger operation on the resource transfer control. And under the condition that the resource transfer control corresponds to certain article information, the resource transfer instruction is used for indicating resource transfer to acquire the article.
Optionally, a plurality of articles are displayed in the first webpage, the user can select an article to be acquired in the first webpage, and correspondingly, the terminal responds to the selection operation of the article in the first webpage to generate a resource transfer instruction corresponding to the article information. For example, if the selected article is a mask, the generated resource transfer instruction is used to instruct resource transfer to acquire the mask. In another example, if the selected item is a gaming equipment, the generated resource transfer instruction is used to instruct resource transfer to acquire the gaming equipment.
Optionally, the resource transfer parameter includes a resource quantity corresponding to the article information, an order number corresponding to the article information, an account number corresponding to the article information, and the like.
Alternatively, the sub-application is a mini Program (applet), which is a type of application form embedded in other applications and usable without downloading and installing.
203. And the terminal sends a resource transfer request to a resource transfer server corresponding to the resource transfer application through the sub-application, wherein the resource transfer request carries resource transfer parameters, and the resource transfer request is used for requesting resource transfer based on the resource transfer parameters.
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.
The embodiment of the application provides a new resource transfer mode, so that under the condition that a resource transfer instruction in a webpage is obtained, Webview can interact with a sub-application in a resource transfer application, and therefore resource transfer is achieved through the sub-application, that is, a resource transfer parameter is obtained through Webview, and the resource transfer parameter is sent to the sub-application, so that 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 parameter, and therefore resource transfer is achieved, and the resource transfer mode does not need a user to perform more operations, and therefore resource transfer efficiency can be improved.
Fig. 3 is a flowchart of a resource transfer method according to an embodiment of the present application. The method is executed by a terminal, the terminal runs a resource transfer application, the resource transfer application comprises a sub-application, a webpage view Webview is embedded in the sub-application, and referring to fig. 3, the method comprises the following steps:
301. and the terminal displays the first webpage through Webview.
Optionally, the terminal displays an application interface of the sub-application, where the application interface includes a jump entry of the first web page, and the terminal acquires web page data of the first web page through Webview in response to a trigger operation on the jump entry, and then renders the first web page based on the web page data, so that a user can enter the first web page through the jump entry in the sub-application interface. Optionally, the terminal acquires the webpage data downloaded before the current time point from the local through Webview, or the terminal sends a webpage data acquisition request for the first webpage to a server corresponding to the first webpage through Webview, and receives webpage data returned by the server based on the webpage data acquisition request.
Optionally, the terminal receives a web page link of the first web page through the sub-application, displays the web page link, responds to a trigger operation of the web page link, acquires web page data of the first web page based on the web page link, and renders the first web page based on the web page data through Webview, so that a user can enter the first web page through the web page link.
302. The terminal responds to the resource transfer instruction acquired from the first webpage, acquires a first account from the resource transfer server through Webview, wherein the first account is authorized by the resource transfer server to the sub-application and is associated with a second account which is currently logged in by the resource transfer application.
Optionally, in a case that the login of the sub-application is authorized for the first time in the resource transfer application, the server corresponding to the resource transfer application registers a first account, where the first account is associated with a second account currently logged in by 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 suitable for the resource transfer application, that is, the second account represents the identity of the user in the resource transfer application for distinguishing different users in the resource transfer application, and the first account is suitable for the sub-application, that is, the first account represents the identity of the user in the sub-application for distinguishing different users in the sub-application. In fact, if the same user authorizes to log in multiple sub-applications in the resource transfer application, in addition to the account number logged in the resource transfer application, the resource transfer server may also have account numbers corresponding to the user and each sub-application, where the account number corresponding to any sub-application is used to distinguish the user from other users in the sub-application. The account corresponding to each sub-application is authorized to the sub-application by the resource transfer server, and the account corresponding to each sub-application may be the same or different.
After the resource transfer server authorizes the account of a user of the sub-application, the resource transfer server and the sub-application can perform data interaction related to the user through the account, and data interaction is not required to be performed based on the account registered by the user in the resource transfer application, so that the security of the account can be improved.
Optionally, the user can acquire the second account only by registering user information of the user in the resource transfer server through the terminal, and then login 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 obtained by encrypting, by the resource transfer server, user information associated with the second account. For example, the user information includes a user name, an age, a sex, a contact way, an identification number and the like, the resource transfer server encrypts any one or more user information to obtain a character string as a first account of the user, and then the first account, a second account and the user information are stored in an associated manner, so that the first account can be provided for the sub-application subsequently. Optionally, the first account is an OpenID (open identity), different users in one sub-application correspond to different openids, and different users in the sub-application can be distinguished based on the OpenID.
In a possible implementation manner, the method for acquiring, by a terminal, a first account from a resource transfer server through Webview in response to a resource transfer instruction acquired from a first webpage includes: the terminal responds to the resource transfer instruction acquired from the first webpage, acquires a login certificate from the sub-application through Webview, and the resource transfer server sends the login certificate to the sub-application under the condition that the login certificate authorizes to login the sub-application in the resource transfer application; and then the terminal acquires the first account from the resource transfer server based on the login certificate through Webview.
The login credential is randomly generated by the resource transfer server before the current time point under the condition that the login sub-application is authorized in the resource transfer application, and then is sent to the sub-application. And the terminal sends an acquisition request of the login credentials to the sub-application through the Webview, and then receives the login credentials returned by the sub-application through the Webview. And then, the terminal sends an acquisition request for the first account to the resource transfer server through Webview, the acquisition request carries the login credentials, and after receiving the acquisition request, the resource transfer server inquires the first account corresponding to the login credentials and sends the first account to Webview.
In the embodiment of the application, because the login credential is sent to the sub-application by the resource transfer server only when the sub-application has acquired the user authorization, the Webview acquires the login credential of the sub-application first and can acquire the account authorized to the sub-application from the resource transfer server by virtue of the login credential, so that the account can be prevented from being leaked to unauthorized illegal applications, and the security of the account can be improved.
Optionally, the login credential is a temporary login credential, that is, the login credential has a validity period, and accordingly, after receiving an acquisition request for user information sent by Webview, the resource transfer server first determines whether the login credential carried in the acquisition request is within the validity period, and sends the first account to Webview when the login credential is within the validity period. Optionally, in a case that the login credential is not within the validity period, sending a notification that the login credential has been invalidated to the Webview, the Webview forwards the notification to the sub-application, after the sub-application receives the notification, displaying an authorized login page, the authorized login page being used to prompt authorization to login the sub-application, sending a notification that the sub-application has obtained authorization to the resource transfer server in response to an authorization operation obtained at the authorized login page, in a case that the resource transfer server receives the notification, sending a new login credential to the sub-application, 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.
303. And the terminal acquires the resource transfer parameters based on the first account through Webview and sends the resource transfer parameters to the sub-application.
In a possible implementation manner, the acquiring, by the terminal through Webview, the resource transfer parameter based on the first account includes: the terminal acquires the article information corresponding to the resource transfer instruction through Webview; sending a parameter acquisition request to a server corresponding to the first webpage, wherein the parameter acquisition request carries article information and a first account; and then receiving resource transfer parameters generated by the server based on the parameter acquisition request, wherein the resource transfer parameters comprise the resource quantity corresponding to the article information and the first account.
The server corresponding to the first webpage stores the resource quantity corresponding to each article, so that the server can query the resource quantity corresponding to each article in the article information after receiving the parameter acquisition request, and further determine the resource quantity corresponding to the article information. Optionally, the server further stores benefit information corresponding to each account, so that the server can also query the benefit information corresponding to the first account, and determine the total resource quantity corresponding to the item information based on the benefit information. For example, the coupon information is a coupon, a discount coupon, or the like.
Optionally, the resource transfer parameter further includes an order number, that is, the server corresponding to the first web page generates the order number corresponding to the article information in the parameter obtaining request when receiving the parameter obtaining request. Optionally, the resource transfer parameter further includes account information of the merchant corresponding to the article information, so that a subsequent resource transfer server can transfer the resource to the merchant conveniently. Optionally, after the server generates the resource transfer parameter, the resource transfer parameter is also stored, so as to facilitate subsequent query.
In the embodiment of the application, the article information and the first account are sent to the server corresponding to the first webpage, so that the server generates the resource transfer parameter based on the article information and the first account, and the terminal does not need to generate the resource transfer parameter by itself, thereby reducing the performance consumption of the terminal.
In the embodiment of the present application, the resource transfer parameter is 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 number when the account number in the resource transfer parameter is the account number authorized by the resource transfer server, so that the resource transfer server can successfully perform resource transfer based on the resource transfer parameter by acquiring the account number authorized by the resource transfer server to the sub-application through Webview and acquiring the resource transfer parameter based on the account number.
It should be noted that, the step 302-303 is only one implementation manner of obtaining the resource transfer parameter through Webview, and in other embodiments, Webview can also obtain the resource transfer parameter through other manners.
304. And the terminal sends a resource transfer request to a resource transfer server corresponding to the resource transfer application through the sub-application, wherein the resource transfer request carries resource transfer parameters, and the resource transfer request is used for requesting resource transfer based on the resource transfer parameters.
Optionally, the sub-application calls a resource transfer interface of the resource transfer server, and sends the resource transfer request to the server through the resource transfer interface.
Optionally, after receiving the resource transfer request, the resource transfer server directly transfers the resource based on the resource transfer parameter carried by the resource transfer request. For example, the resource transfer parameter carries a first account number and a resource quantity corresponding to the item information, and accordingly, the resource transfer server determines an account corresponding to the first account number and transfers the resource quantity from the account to an account of a merchant corresponding to the item information. Optionally, the resource transfer server determines a second account number associated with the first account number, and then determines an account corresponding to the second account number, where the account is an account corresponding to the first account number.
305. And the terminal receives the resource transfer bill sent by the resource transfer server through the sub-application, sends the resource transfer bill to the Webview, and the resource transfer bill is generated based on the resource transfer parameters.
Optionally, before performing the resource transfer, the resource transfer server further generates a resource transfer ticket based on the resource transfer parameter, where the resource transfer ticket includes an account corresponding to the first account and a resource quantity corresponding to the item information. Optionally, the resource transfer ticket further includes the first account number, order number, item information, and the like. Optionally, after the resource transfer is performed, the resource transfer server stores the resource transfer ticket, so as to facilitate subsequent query. Optionally, before resource transfer, the resource transfer server displays the resource transfer ticket to the user through the terminal, and performs resource transfer again when the user confirms the resource transfer ticket, where step 305 and step 307 are confirmation processes of the resource transfer ticket.
306. And the terminal displays a second webpage comprising the resource transfer bill through Webview, and sends a bill confirmation message to the sub-application in response to the confirmation operation of the resource transfer bill in the second webpage.
307. And the terminal sends a bill confirmation message to the resource transfer server through the sub-application, wherein the bill confirmation message is used for indicating resource transfer based on the resource transfer bill.
And the resource transfer server transfers the resource based on the resource transfer bill under the condition of receiving the bill confirmation message. For example, the resource transfer ticket includes an account corresponding to the first account number and a resource quantity corresponding to the item information, and accordingly, the resource transfer server transfers the resource quantity from the account to an account of the merchant corresponding to the item information.
In the embodiment of the application, considering that the user may generate the resource transfer instruction due to misoperation, the resource transfer server displays the resource transfer bill to the user before resource transfer is performed, so that the user confirms the resource transfer bill, and the resource transfer is performed under the condition that the user confirms, thereby avoiding the misoperation of resource transfer. Moreover, the user can confirm the resource transfer bill, and the accuracy of the resource transfer bill can be ensured.
308. And 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.
After the resource transfer is performed, the resource transfer server generates a resource transfer result, where the resource transfer result is a resource transfer success or a resource transfer failure. And the resource transfer server sends the resource transfer result to the sub-application, and the sub-application forwards the resource transfer result to Webview after receiving the resource transfer result.
309. And the terminal displays a third webpage comprising the resource transfer result through Webview.
In the embodiment of the application, the resource transfer result generated by the resource transfer server is transmitted to the Webview through the sub-application, so that the Webview can display a webpage comprising the resource transfer result, and a user can conveniently know the resource transfer result.
Optionally, the terminal further sends the resource transfer result to a server corresponding to the first web page through Webview, and the server forwards the resource transfer result to a terminal of a merchant corresponding to the item information, so that the merchant can provide the item to the user corresponding to the first account based on the resource transfer result.
Optionally, the sub-application in this embodiment of the present application refers to a sub-application container, where the sub-application container includes a functional program and an environment program of the sub-application, and the environment program is used to deploy an execution environment of the sub-application on the terminal, so that the functional program can normally run. Optionally, the Webview refers to a Webview container, and the Webview container includes a functional program of the Webview and an environment program, and the environment program is used for deploying a running environment of the Webview on the terminal, so that the functional program can run normally.
It should be noted that the validation process for the resource transfer ticket in steps 304 and 306 is optional, and may not be performed in other embodiments. In addition, the process of presenting the resource transfer result in the steps 307-308 is also optional, and may not be executed in other embodiments.
The embodiment of the application provides a new resource transfer mode, so that under the condition that a resource transfer instruction in a webpage is obtained, Webview can interact with a sub-application in a resource transfer application, and therefore resource transfer is achieved through the sub-application, that is, a resource transfer parameter is obtained through Webview, and the resource transfer parameter is sent to the sub-application, so that 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 parameter, and therefore resource transfer is achieved, and the resource transfer mode does not need a user to perform more operations, and therefore resource transfer efficiency can be improved.
In the embodiment of the application, because the login credential is sent to the sub-application by the resource transfer server only when the sub-application has acquired the user authorization, the Webview acquires the login credential of the sub-application first and can acquire the account authorized to the sub-application from the resource transfer server by virtue of the login credential, so that the account can be prevented from being leaked to unauthorized illegal applications, and the security of the account can be improved.
In the embodiment of the application, the article information and the account are sent to the server corresponding to the first webpage, so that the server generates the resource transfer parameter based on the article information and the account, and the terminal does not need to generate the resource transfer parameter by itself, thereby reducing the performance consumption of the terminal.
In the embodiment of the present application, the resource transfer parameter is 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 number when the account number in the resource transfer parameter is the account number authorized by the resource transfer server, so that the resource transfer server can successfully perform resource transfer based on the resource transfer parameter by acquiring the account number authorized by the resource transfer server to the sub-application through Webview and acquiring the resource transfer parameter based on the account number.
In the embodiment of the application, considering that the user may generate the resource transfer instruction due to misoperation, the resource transfer server displays the resource transfer bill to the user before resource transfer is performed, so that the user confirms the resource transfer bill, and the resource transfer is performed under the condition that the user confirms, thereby avoiding the misoperation of resource transfer. Moreover, the user can confirm the resource transfer bill, and the accuracy of the resource transfer bill can be ensured.
In the embodiment of the application, the resource transfer result generated by the resource transfer server is transmitted to the Webview through the sub-application, so that the Webview can display a webpage comprising the resource transfer result, and a user can conveniently know the resource transfer result.
FIG. 4 is a schematic diagram of an interaction process between a sub-application, Webview, a resource transfer server, and a web server. The web server is the server corresponding to the first web page. Referring to fig. 4, the interaction process is:
1. and the Webview responds to the resource transfer instruction acquired in the first webpage and sends an acquisition request of the login credentials to the sub-application.
2. The child application sends the login credentials to Webview.
3. Webview sends an acquisition request for a first account to a resource transfer server, wherein the acquisition request carries login credentials.
4. And the resource transfer server sends the first account to the Webview.
5. Webview sends a parameter acquisition request to a webpage server, wherein the parameter acquisition request carries the first account and the item information corresponding to the resource transfer instruction.
6. And the webpage server sends the resource transfer parameters generated based on the parameter acquisition request to the Webview.
7. Webview sends resource transfer parameters to the child application.
8. And the sub-application sends a resource transfer request to the resource transfer server, wherein the resource transfer request carries the resource transfer parameters.
9. And the resource transfer server transfers the resources based on the resource transfer parameters.
For details of the implementation of the steps in fig. 4, reference is made to the corresponding embodiment in fig. 3.
Fig. 5 is a block diagram of a resource transfer apparatus according to an embodiment of the present application. The device is configured in a terminal, the terminal runs a resource transfer application, the resource transfer application includes a sub-application, a web view Webview is embedded in the sub-application, and referring to fig. 5, the device includes:
a web page display module 501 configured to display a first web page through Webview;
a parameter obtaining module 502, configured to obtain a resource transfer parameter through Webview in response to the resource transfer instruction obtained in the first web page, and send the resource transfer parameter to the sub-application;
the request sending module 503 is configured to send, through the sub-application, a resource transfer request to a resource transfer server corresponding to the resource transfer application, where the resource transfer request carries a resource transfer parameter, and the resource transfer request is used to request resource transfer based on the resource transfer parameter.
The embodiment of the application provides a new resource transfer mode, so that under the condition that a resource transfer instruction in a webpage is obtained, Webview can interact with a sub-application in a resource transfer application, and therefore resource transfer is achieved through the sub-application, that is, a resource transfer parameter is obtained through Webview, and the resource transfer parameter is sent to the sub-application, so that 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 parameter, and therefore resource transfer is achieved, and the resource transfer mode does not need a user to perform more operations, and therefore resource transfer efficiency can be improved.
In one possible implementation, the parameter obtaining module 502 includes:
the account acquisition unit is configured to respond to a resource transfer instruction acquired from a first webpage, acquire a first account from a resource transfer server through Webview, wherein the first account is authorized by the resource transfer server to a sub-application and is associated with a second account currently logged in by the resource transfer application;
the parameter obtaining unit is configured to obtain the resource transfer parameter based on the first account.
In a possible implementation manner, the account acquisition unit is configured to acquire, in response to a resource transfer instruction acquired from a first webpage, a login credential from a sub-application through Webview, where the login credential is sent to the sub-application by a resource transfer server when the login of the sub-application is authorized in the resource transfer application; a first account number is obtained from a resource transfer server based on the login credentials.
In a possible implementation manner, the parameter obtaining unit is configured to obtain, through Webview, item information corresponding to the resource transfer instruction; sending a parameter acquisition request to a server corresponding to the first webpage, wherein the parameter acquisition request carries article information and a first account; and receiving a resource transfer parameter generated by the server based on the parameter acquisition request, wherein the resource transfer parameter comprises the resource quantity corresponding to the article information and the first account.
In one possible implementation, the apparatus further includes:
the bill confirming module is configured to receive a resource transfer bill sent by the resource transfer server through the sub-application, send the resource transfer bill to the Webview, and generate the resource transfer bill based on the resource transfer parameter; displaying a second webpage comprising a resource transfer bill through Webview, and responding to the confirmation operation of the resource transfer bill in the second webpage and sending a bill confirmation message to the sub-application; and sending a bill confirmation message to the resource transfer server through the sub-application, wherein the bill confirmation message is used for indicating resource transfer based on the resource transfer bill.
In one possible implementation, the apparatus further includes:
the result display module is configured to receive the resource transfer result sent by the resource transfer server through the sub-application and send the resource transfer result to the Webview; and displaying a third webpage comprising the resource transfer result through Webview.
It should be noted that: in the resource transfer device provided in the foregoing embodiment, only the division of the functional modules is illustrated when resource transfer is performed, and in practical applications, the function allocation may be completed by different functional modules according to needs, that is, the internal structure of the terminal is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the resource transfer apparatus and the resource transfer method provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
The embodiment of the present application further provides a terminal, where the terminal includes a processor and a memory, where the memory stores at least one program code, and the at least one program code is loaded and executed by the processor, so as to implement the resource transfer method in the foregoing embodiment.
Fig. 6 shows a block diagram of a terminal 600 according to an exemplary embodiment of the present application. The terminal 600 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. The terminal 600 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, etc.
The terminal 600 includes: a processor 601 and a memory 602.
The processor 601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 601 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 601 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 601 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content that the display screen needs to display. In some embodiments, processor 601 may also include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 602 is used to store at least one program code for execution by the processor 601 to implement the resource transfer method provided by the method embodiments herein.
In some embodiments, the terminal 600 may further optionally include: a peripheral interface 603 and at least one peripheral. The processor 601, memory 602, and peripheral interface 603 may be connected by buses or signal lines. Various peripheral devices may be connected to the peripheral interface 603 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 604, a display 605, a camera assembly 606, an audio circuit 607, a positioning component 608, and a power supply 609.
The peripheral interface 603 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 601 and the memory 602. In some embodiments, the processor 601, memory 602, and peripheral 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 interface 603 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 604 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 604 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 604 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 604 comprises: 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 forth. The radio frequency circuitry 604 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 604 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display 605 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 605 is a touch display screen, the display screen 605 also has the ability to capture touch signals on or over the surface of the display screen 605. The touch signal may be input to the processor 601 as a control signal for processing. At this point, the display 605 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 605 may be one, providing the front panel of the terminal 600; in other embodiments, the display 605 may be at least two, respectively disposed on different surfaces of the terminal 600 or in a folded design; in other embodiments, the display 605 may be a flexible display disposed on a curved surface or a folded surface of the terminal 600. Even more, the display 605 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The Display 605 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The camera assembly 606 is used to capture images or video. Optionally, camera assembly 606 includes a front camera and a rear camera. The front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 606 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
Audio circuitry 607 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 601 for processing or inputting the electric signals to the radio frequency circuit 604 to realize voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the terminal 600. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 601 or the radio frequency circuit 604 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 607 may also include a headphone jack.
The positioning component 608 is used for positioning the current geographic Location of the terminal 600 to implement navigation or LBS (Location Based Service). The Positioning component 608 can be a Positioning component based on the united states GPS (Global Positioning System), the chinese beidou System, the russian graves System, or the european union's galileo System.
Power supply 609 is used to provide power to the various components in terminal 600. The power supply 609 may be ac, dc, disposable or rechargeable. When the power supply 609 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the terminal 600 also includes one or more sensors 610. The one or more sensors 610 include, but are not limited to: acceleration sensor 611, gyro sensor 612, pressure sensor 613, fingerprint sensor 614, optical sensor 615, and proximity sensor 616.
The acceleration sensor 611 may detect the magnitude of acceleration in three coordinate axes of the coordinate system established with the terminal 600. For example, the acceleration sensor 611 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 601 may 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 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 612 may detect a body direction and a rotation angle of the terminal 600, and the gyro sensor 612 and the acceleration sensor 611 may cooperate to acquire a 3D motion of the user on the terminal 600. The processor 601 may implement the following functions according to the data collected by the gyro sensor 612: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 613 may be disposed on the side bezel of terminal 600 and/or underneath display screen 605. When the pressure sensor 613 is disposed on the side frame of the terminal 600, a user's holding signal of the terminal 600 can be detected, and the processor 601 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 613. When the pressure sensor 613 is disposed at the lower layer of the display screen 605, the processor 601 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 605. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 614 is used for collecting a fingerprint of a user, and the processor 601 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 614, or the fingerprint sensor 614 identifies the identity of the user according to the collected fingerprint. Upon identifying that the user's identity is a trusted identity, the processor 601 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 614 may be disposed on the front, back, or side of the terminal 600. When a physical button or vendor Logo is provided on the terminal 600, the fingerprint sensor 614 may be integrated with the physical button or vendor Logo.
The optical sensor 615 is used to collect the ambient light intensity. In one embodiment, processor 601 may control the display brightness of display screen 605 based on the ambient light intensity collected by 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 adjusted down. In another embodiment, the processor 601 may also dynamically adjust the shooting parameters of the camera assembly 606 according to the ambient light intensity collected by the optical sensor 615.
A proximity sensor 616, also referred to as a 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 surface of the terminal 600. In one embodiment, when proximity sensor 616 detects that the distance between the user and the front face of terminal 600 gradually decreases, processor 601 controls display 605 to switch from the bright screen state to the dark screen state; when the proximity sensor 616 detects that the distance between the user and the front face of the terminal 600 is gradually increased, the processor 601 controls the display 605 to switch from the breath-screen state to the bright-screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 6 is not intended to be limiting of terminal 600 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
The embodiment of the present application further provides a computer-readable storage medium, where at least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by a processor, so as to implement the resource transfer method of the foregoing embodiment.
An embodiment of the present application further provides a computer program product, where the computer program product includes a computer program code, where the computer program code is stored in a computer-readable storage medium, and a processor of a terminal reads the computer program code from the computer-readable storage medium, and executes the computer program code, so that the terminal executes the resource transfer method in any one of the above-mentioned possible implementation manners.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A resource transfer method is executed by a terminal, the terminal runs a resource transfer application, the resource transfer application comprises a sub-application, and a webpage view Webview is embedded in the sub-application, and the method comprises the following steps:
displaying a first webpage through the Webview;
responding to a resource transfer instruction acquired from the first webpage, acquiring a resource transfer parameter through the Webview, and sending the resource transfer parameter to the sub-application;
and sending a resource transfer request to a resource transfer server corresponding to the resource transfer application through the sub-application, wherein the resource transfer request carries the resource transfer parameter, and the resource transfer request is used for requesting resource transfer based on the resource transfer parameter.
2. The method of claim 1, wherein the obtaining resource transfer parameters through the Webview in response to the resource transfer instruction obtained in the first web page comprises:
responding to the resource transfer instruction acquired from the first webpage, acquiring a first account from the resource transfer server through the Webview, wherein the first account is authorized by the resource transfer server to the sub-application and is associated with a second account currently logged in by the resource transfer application;
and acquiring the resource transfer parameters based on the first account.
3. The method according to claim 2, wherein the obtaining, by the Webview, the first account from the resource transfer server in response to the resource transfer instruction obtained from the first web page includes:
responding to the resource transfer instruction acquired from the first webpage, acquiring a login certificate from the sub-application through the Webview, wherein the login certificate is sent to the sub-application by the resource transfer server under the condition that the login of the sub-application is authorized in the resource transfer application;
and acquiring the first account from the resource transfer server based on the login credential.
4. The method of claim 2, wherein the obtaining the resource transfer parameter based on the first account comprises:
acquiring article information corresponding to the resource transfer instruction through the Webview;
sending a parameter acquisition request to a server corresponding to the first webpage, wherein the parameter acquisition request carries the article information and the first account;
and receiving the resource transfer parameters generated by the server based on the parameter acquisition request, wherein the resource transfer parameters comprise the resource quantity corresponding to the article information and the first account.
5. The method according to any one of claims 1-4, wherein after sending, by the sub-application, a resource transfer request to a resource transfer server corresponding to the resource transfer application, the method further comprises:
receiving a resource transfer bill sent by the resource transfer server through the sub-application, and sending the resource transfer bill to the Webview, wherein the resource transfer bill is generated based on the resource transfer parameter;
displaying a second webpage comprising the resource transfer bill through the Webview, and responding to the confirmation operation of the resource transfer bill in the second webpage and sending a bill confirmation message to the sub-application;
sending the bill confirmation message to the resource transfer server through the sub-application, wherein the bill confirmation message is used for indicating resource transfer based on the resource transfer bill.
6. The method according to any one of claims 1-4, wherein after sending, by the sub-application, a resource transfer request to a resource transfer server corresponding to the resource transfer application, the method further comprises:
receiving a resource transfer result sent by the resource transfer server through the sub-application, and sending the resource transfer result to the Webview;
and displaying a third webpage comprising the resource transfer result through the Webview.
7. A resource transfer apparatus configured in a terminal, the terminal running a resource transfer application, the resource transfer application including a sub-application, the sub-application having a web view Webview embedded therein, the apparatus comprising:
the webpage display module is configured to display a first webpage through the Webview;
the parameter acquisition module is configured to respond to the resource transfer instruction acquired from the first webpage, acquire a resource transfer parameter through the Webview, and send the resource transfer parameter to the sub-application;
a request sending module configured to send, through the sub-application, a resource transfer request to a resource transfer server corresponding to the resource transfer application, where 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.
8. A terminal, characterized in that the terminal comprises a processor and a memory, in which at least one program code is stored, which is loaded and executed by the processor to implement the resource transfer method according to any of claims 1 to 6.
9. A computer-readable storage medium, wherein at least one program code is stored, which is loaded and executed by a processor to implement the resource transfer method according to any one of claims 1 to 6.
10. A computer program product, characterized in that the computer program product comprises computer program code, which is stored in a computer readable storage medium, from which a processor of a terminal reads the computer program code, the processor executing the computer program code, causing the terminal to perform the resource transfer method according to any of claims 1 to 6.
CN202111593026.8A 2021-12-23 2021-12-23 Resource transfer method, device, equipment and storage medium Pending CN114296957A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111593026.8A CN114296957A (en) 2021-12-23 2021-12-23 Resource transfer method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111593026.8A CN114296957A (en) 2021-12-23 2021-12-23 Resource transfer method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114296957A true CN114296957A (en) 2022-04-08

Family

ID=80968739

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111593026.8A Pending CN114296957A (en) 2021-12-23 2021-12-23 Resource transfer method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114296957A (en)

Similar Documents

Publication Publication Date Title
CN110674022B (en) Behavior data acquisition method and device and storage medium
CN109547495B (en) Sensitive operation processing method, device, server, terminal and storage medium
CN112616091B (en) Virtual article sending method and device, computer equipment and storage medium
CN108717365B (en) Method and device for executing function in application program
CN110851823B (en) Data access method, device, terminal and storage medium
CN111159604A (en) Picture resource loading method and device
CN111241499A (en) Application program login method, device, terminal and storage medium
CN112257006A (en) Page information configuration method, device, equipment and computer readable storage medium
CN111901283B (en) Resource transfer method, device, terminal and storage medium
CN109783176B (en) Page switching method and device
CN113377647B (en) Page processing method, device, server, terminal and readable storage medium
CN109995804B (en) Target resource information display method, information providing method and device
CN112967043A (en) Resource transfer method, device, equipment and storage medium
CN111881423A (en) Method, device and system for limiting function use authorization
CN109033473B (en) Picture sharing method and device and computer readable storage medium
CN111831385A (en) Business credit information processing method, device, equipment and storage medium
CN115562529A (en) Visual point burying method and device, terminal and storage medium
CN111131619B (en) Account switching processing method, device and system
CN110971692B (en) Method and device for opening service and computer storage medium
CN112764824B (en) Method, device, equipment and storage medium for triggering identity verification in application program
CN112702375B (en) Information pushing method and device, computer equipment and storage medium
CN110502708B (en) Method, device and storage medium for communication based on JSbridge
CN110990241B (en) Application trial method and device, terminal and storage medium
CN111158780B (en) Method, device, electronic equipment and medium for storing application data
CN113569219A (en) Live broadcast embedded program authorization method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination