CN109801051A - Resource transfers method, system, server and computer readable storage medium - Google Patents

Resource transfers method, system, server and computer readable storage medium Download PDF

Info

Publication number
CN109801051A
CN109801051A CN201711137666.1A CN201711137666A CN109801051A CN 109801051 A CN109801051 A CN 109801051A CN 201711137666 A CN201711137666 A CN 201711137666A CN 109801051 A CN109801051 A CN 109801051A
Authority
CN
China
Prior art keywords
resource
server
information
transfers
account
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.)
Granted
Application number
CN201711137666.1A
Other languages
Chinese (zh)
Other versions
CN109801051B (en
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.)
Tenpay Payment Technology Co Ltd
Original Assignee
Tenpay Payment 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 Tenpay Payment Technology Co Ltd filed Critical Tenpay Payment Technology Co Ltd
Priority to CN201711137666.1A priority Critical patent/CN109801051B/en
Publication of CN109801051A publication Critical patent/CN109801051A/en
Application granted granted Critical
Publication of CN109801051B publication Critical patent/CN109801051B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of resource transfers method, system, server and computer readable storage mediums, belong to field of computer technology.The method is applied to first server, comprising: receive that second server sends carry user account information and resource returns the resource transfers request of information, it includes the target resource quantity for needing to return in information that the resource, which is returned,;The resource that target resource quantity is obtained from the first account of setting, by the resource transfers of target resource quantity into the corresponding account of the user account information;The resource for obtaining the target resource quantity being transferred out of from the second account that the second server is arranged, by the resource transfers of target resource quantity into the first account.Time needed for the present invention can shorten resource product return process, it improves resource and returns efficiency, so that the resource that user returns needed for can obtaining within a short period of time, realizes and return to the real time resources of user, meets user and carry out arriving account demand immediately when resource is returned.

Description

Resource transfers method, system, server and computer readable storage medium
Technical field
The present invention relates to field of computer technology, in particular to a kind of resource transfers method, system, server and computer Readable storage medium storing program for executing.
Background technique
Most countries can all carry out such as departure differential refund policy resource and return policy, and resource, which is returned, to be referred to overseas tourist In the specified article of appointed store's purchase carried or transported out of the country with oneself, a part of resource is returned by regulation.For example, user is in specified quotient Shop when buying specified article used resource quantity reached and moved back a little, then can obtain resource from the appointed store and return singly etc. Resource returns voucher, later, if user has handled clearance formalities at departure port, the resource can be used and return voucher It handles resource and returns business.
Currently, user can return in resource when the preceding progress resource of departure is returned and fill in credit number in voucher, then The resource that will fill in creditable card number returns voucher and puts into specified mailbox.Later, the resource company of returning can specify mailbox from this Middle acquirement resource returns voucher, and determines that the resource returns the target resource quantity that the needs for including in voucher are returned, and will set For the resource transfers of target resource quantity in the account set into the corresponding account of the credit number, the resource of user is moved back in completion Also.
However, in above-mentioned resource product return process, resource return company need first to obtain from specified mailbox resource return with Card, the credit number filled in voucher then could be returned according to the resource and returns resource, and since the credit number is corresponding The account that account usually returns company's setting with resource belongs to country variant, and therefore, resource is returned company and needed the account of setting Bank belonging to resource transfers to the credit number in family, then could be by the bank by the resource transfers to the credit number In corresponding account, return that the required time is longer, and it is lower that resource returns efficiency so as to cause resource is completed.
Summary of the invention
The embodiment of the invention provides a kind of resource transfers method, apparatus, system, server and computer-readable storage mediums Matter can solve resource in the related technology and return the lower problem of efficiency.The technical solution is as follows:
On the one hand, a kind of resource transfers method is provided, first server is applied to, which comprises
Receive that second server sends carry user account information and resource returns the resource transfers request of information, institute Stating resource and returning includes the target resource quantity for needing to return in information;
The resource that the target resource quantity is obtained from the first account of setting, by the resource of the target resource quantity It is transferred in the corresponding account of the user account information;
The resource for obtaining the target resource quantity being transferred out of from the second account that the second server is arranged, by institute The resource transfers of target resource quantity are stated into first account.
On the one hand, a kind of resource transfers device is provided, first server is applied to, described device includes:
First receiving module, for receive second server transmission carry user account information and resource returns information Resource transfers request, it includes needing the target resource quantity returned in information that the resource, which is returned,;
First shift module will be described for obtaining the resource of the target resource quantity from the first account of setting The resource transfers of target resource quantity are into the corresponding account of the user account information;
Second shift module, for obtaining the target money being transferred out of from the second account that the second server is arranged The resource of source quantity, by the resource transfers of the target resource quantity into first account.
On the one hand, a kind of first server is provided, the first server includes processor and memory, the storage Be stored at least one instruction, at least a Duan Chengxu, code set or instruction set in device, at least one instruction, it is described at least One Duan Chengxu, the code set or instruction set are loaded by the processor and are executed to realize above-mentioned resource transfers method.
On the one hand, provide a kind of computer readable storage medium, be stored in the storage medium at least one instruction, At least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set or refer to Collection is enabled to be loaded by processor and executed to realize above-mentioned resource transfers method.
On the one hand, a kind of resource transfers method is provided, second server is applied to, which comprises
Receive second application send carry user account information and resource returns the resource payback request of information, it is described It includes the target resource quantity for needing to return in information that resource, which is returned,;
Generation carries the user account information and the resource returns the resource transfers request of information;
Resource transfers request is sent to the first server, by the first server by the first service The resource transfers of the target resource quantity in first account of device setting are into the corresponding account of the user account information;
The resource transfers of the target resource quantity in second account of setting are arranged to the first server In first account.
On the one hand, a kind of resource transfers device is provided, second server is applied to, described device includes:
Receiving module, for receive second application send carry user account information and resource returns the resource of information Payback request, it includes the target resource quantity for needing to return in information that the resource, which is returned,;
Generation module carries the user account information and the resource is returned the resource transfers of information and asked for generating It asks;
Sending module, for resource transfers request to be sent to the first server, by the first server Resource transfers to the user account of the target resource quantity in the first account that the first server is arranged is believed It ceases in corresponding account;
Shift module, the resource transfers of the target resource quantity in the second account for that will be arranged to described first In first account of server setting.
On the one hand, a kind of second server is provided, the second server includes processor and memory, the storage Be stored at least one instruction, at least a Duan Chengxu, code set or instruction set in device, at least one instruction, it is described at least One Duan Chengxu, the code set or instruction set are loaded by the processor and are executed to realize above-mentioned resource transfers method.
On the one hand, provide a kind of computer readable storage medium, be stored in the storage medium at least one instruction, At least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set or refer to Collection is enabled to be loaded by processor and executed to realize above-mentioned resource transfers method.
On the one hand, a kind of resource transfers method is provided, which comprises
When second server receive second application send carry user account information and resource returns the money of information When the payback request of source, generation carries the user account information and the resource returns the resource transfers request of information, by institute It states resource transfers request and is sent to first server, it includes the target resource quantity for needing to return in information that the resource, which is returned,;
When the first server receives the resource transfers request that the second server is sent, from setting The resource that the target resource quantity is obtained in first account, by the resource transfers of the target resource quantity to user's account In number corresponding account of information;
The second server is by the resource transfers of the target resource quantity in the second account of setting to described In first account of one server setting.
On the one hand, a kind of resource transfers system is provided, the system comprises:
Second server, for receive second application send carry user account information and resource returns information Resource payback request when, generate and carry the user account information and the resource returns the resource transfers request of information, Resource transfers request is sent to first server, it includes the target resource number for needing to return in information that the resource, which is returned, Amount;
The first server, when for being requested in the resource transfers for receiving the second server transmission, from The resource that the target resource quantity is obtained in the first account being arranged, by the resource transfers of the target resource quantity to described In the corresponding account of user account information;
The second server, the resource transfers of the target resource quantity in the second account for being also used to be arranged are extremely In first account of the first server setting.
On the one hand, a kind of resource transfers method is provided, which comprises
First application sends resource transfers code acquisition request to first server, and first application is logged in user's account Number;
When the first server receives the resource transfers code acquisition request that first application is sent, it is based on The user account generation includes the resource transfers code of user account information, and the resource transfers code is sent to described first Using;
When first application receives the resource transfers code that the first server is sent, the resource is turned Frameshit is shown;
Second application is scanned the resource transfers code, obtains the user account information, and generation carries described User account information and resource return the resource payback request of information, and the resource payback request is sent to second server, It includes the target resource quantity for needing to return in information that the resource, which is returned,;
When the second server receives the resource payback request that second application is sent, generation is carried The user account information and the resource return the resource transfers request of information, resource transfers request are sent to described First server;
When the first server receives the resource transfers request that the second server is sent, from setting The resource that the target resource quantity is obtained in first account, by the resource transfers of the target resource quantity to user's account In number corresponding account of information;
The second server is by the resource transfers of the target resource quantity in the second account of setting to described In first account of one server setting.
On the one hand, a kind of resource transfers system is provided, the system comprises:
First application, for sending resource transfers code acquisition request to first server, first application logs in useful Family account;
The first server, in the resource transfers code acquisition request for receiving the first application transmission When, include the resource transfers code of user account information based on user account generation, the resource transfers code is sent to First application;
First application, is also used to when receiving the resource transfers code that the first server is sent, to institute Resource transfers code is stated to be shown;
Second application, for being scanned to the resource transfers code, obtains the user account information, generation carries The user account information and resource return the resource payback request of information, and the resource payback request is sent to second service Device, it includes the target resource quantity for needing to return in information that the resource, which is returned,;
The second server, for generating when receiving the resource payback request that second application is sent It carries the user account information and the resource returns the resource transfers request of information, the resource transfers are requested to send To the first server;
The first server is also used to when receiving the resource transfers request that the second server is sent, The resource that the target resource quantity is obtained from the first account of setting, by the resource transfers of the target resource quantity to institute It states in the corresponding account of user account information;
The second server, the resource transfers of the target resource quantity in the second account for being also used to be arranged are extremely In first account of the first server setting.
Technical solution provided in an embodiment of the present invention has the benefit that resource transfers are requested to send out by second server Give first server.Since carrying user account information and resource return information in resource transfers request, the first clothes Business device can obtain the money of target resource quantity after receiving resource transfers request directly from the first account of setting Source, and the resource transfers of target resource quantity are returned into the corresponding account of the user account information so as to shorten resource Time needed for process improves resource and returns efficiency, so that user returned needed for can obtaining within a short period of time Resource is realized and is returned to the real time resources of user, is met user and is carried out arriving account demand immediately when resource is returned.Later, The resource of target resource quantity that available the second account being arranged from second server of first server is transferred out of, and by mesh The resource transfers of resource quantity are marked into the first account, to carry out flat account to the first account.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is the schematic diagram of implementation environment involved in resource transfers method provided in an embodiment of the present invention;
Fig. 2 is the flow chart for the operation that a kind of first application provided in an embodiment of the present invention obtains resource transfers code;
Fig. 3 is that a kind of second server provided in an embodiment of the present invention obtains user account information and resource returns information The flow chart of operation;
Fig. 4 is that the required resource returned is returned user account by a kind of first server provided in an embodiment of the present invention The flow chart of operation;
Fig. 5 is a kind of flow chart of resource transfers method provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of resource transfers device provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of another resource transfers device provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of first server provided in an embodiment of the present invention;
Fig. 9 is a kind of structural schematic diagram of second server provided in an embodiment of the present invention;
Figure 10 is a kind of schematic diagram of resource transfers system provided in an embodiment of the present invention;
Figure 11 is the schematic diagram of another resource transfers system provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Application scenarios and implementation before to the embodiment of the present invention carrying out that explanation is explained in detail, to the embodiment of the present invention Environment is explained.
Firstly, the application scenarios to the embodiment of the present invention are illustrated.
The embodiment of the present invention is applied to resource and returns scene, specifically, can be applied to the preceding money on airport of user's departure Sales counter is returned in source or self-service resource returns machine and carries out the scene that resource is returned, or can be applied to before user's departure in urban district Resource return and to carry out the scene that resource is returned, it is of course also possible to which being applied to other resources returns scene, the embodiment of the present invention This is not construed as limiting.
For example, after user's acquirement resource returns voucher sales counter can be returned by the resource in the preceding resource on airport of departure It returns voucher and gives staff, staff checks the resource and returns voucher, and after check passes through, staff can be to user Resource is carried out to return.
For another example after user's acquirement resource returns voucher machine can be returned by the self-service resource on airport before departure It checks the resource and returns voucher, after check passes through, user can be returned machine progress resource by the self-service resource and be returned.
In another example can be returned a little in the preceding resource in urban district of departure by the resource after user's acquirement resource returns voucher It returns voucher and gives staff, staff checks the resource and returns voucher, and after check passes through, staff can be to user Resource is carried out to return.
Then, the implementation environment of the embodiment of the present invention is illustrated.
Fig. 1 is the schematic diagram of implementation environment involved in resource transfers method provided in an embodiment of the present invention.Referring to Fig. 1, The implementation environment includes: the first application 101, first server 102, second using 103 and second server 104.
Wherein, the first application 101 can be the application for being logged in user account.First application 101 can for client or Small routine (liteapp), and when the first application 101 is client, the first application 101 may be mounted in user terminal, when When first application 101 is small routine, user terminal can (such as first applies 101 by searching for the relevant information of the first application 101 Title etc.), the modes such as the graphic code (such as bar code, two dimensional code) of the first application 101 of scanning open first using 101, User terminal is without installing first using 101 at this time.
Wherein, first server 102 can be to apply 101 corresponding servers with first.The use that first application 101 logs in Family account can be registered in first server 102 and be obtained, and that is to say, first server 102 and needed to handle resource and returned industry The user of business belongs to same country.
Wherein, the second application 103 can be the application that business is returned for handling resource, and the second application 103 can install In the equipment that the staff that resource returns sales counter uses, perhaps it is installed on self-service resource and returns in machine or be installed on Resource is returned in the equipment that staff a little uses, and other returns business for handling resource it is of course also possible to be installed on In equipment, the embodiment of the present invention is not construed as limiting this.
Wherein, second server 104 can be to apply 103 corresponding servers with second, and second server 104 is to do The resource that reason resource returns business returns the server of company management, that is to say, first server 102 and second server 104 Belong to country variant.
Resource is being handled to the first application 101, the application of first server 102, second 103 and second server 104 below Interactive process when returning business is illustrated.
Wherein, the first application 101 can interact to obtain resource transfers code with first server 102.The resource turns Frameshit is the user credential for returning resource to user when, may include user account information in the resource transfers code, user's account The relevant information for the user account that number information can log in for the first application 101, such as user account information can be directly for should User account, or be the encryption information etc. of the user account, the embodiment of the present invention is not construed as limiting this.
Wherein, the second application 103 can interact to obtain the user account information with the first application 101.Specifically, The resource transfers code that second application 103 can obtain the first application 101 is scanned, to obtain the user account information, from And it is returned convenient for subsequent second application 103 based on the user account information to carry out resource to user.
Wherein, second server 104 can interact to obtain the user account information and resource with the second application 103 Return information.It is to carry out various information required when resource is returned that the resource, which returns information, and returning information such as the resource can wrap Resource is included to return single information (such as resource returns odd numbers, resource returns the date, the shopping date, needs the target resource number returned Amount etc.), the information (such as passport name, passport number, telephone number) of user etc..
Wherein, first server 102 can interact to return the required resource returned with second server 104 User account.The user account is the corresponding account of the user account information, and the corresponding account of the user account information is the use Account bound in the corresponding user account of family account information, if the user account can be bank bound in the user account Account, online account etc..
Next resource transfers method provided in an embodiment of the present invention is carried out that explanation is explained in detail.
As it was noted above, the first application can interact to obtain resource transfers code with first server, below to the The operation that one application interacts acquisition resource transfers code with first server is illustrated.
Fig. 2 is the flow chart for the operation that a kind of first application provided in an embodiment of the present invention obtains resource transfers code.Referring to Fig. 2, the operation include:
Step 201: the first application sends resource transfers code acquisition request to first server, and the first application is logged in user Account.
It should be noted that resource transfers code acquisition request is used for request resource transfers code, which is User credential of the resource to user when is returned, may include user account information in the resource transfers code, the user account information The relevant information for the user account that can be logged in for the first application, if the user account information can directly be the user account, Or the encryption information etc. for the user account, the embodiment of the present invention is not construed as limiting this.
In addition, the first application can send resource transfers code acquisition request to first server when opened, certainly, the One application can also send resource transfers code acquisition request to first server in other cases, and such as the first application can examined Send resource transfers code acquisition request to first server when measuring resource transfers code acquisition instruction, the embodiment of the present invention to this not It limits.
Furthermore the resource transfers code acquisition instruction, which is used to indicate, obtains resource transfers code, and resource transfers code acquisition refers to Order can be triggered by user, and user can be clicking operation, sliding by the first specified operation triggering, the first specified operation Operation, voice operating etc., the embodiment of the present invention is not construed as limiting this.
Step 202: when first server receives the resource transfers code acquisition request that the first application is sent, being based on first User account generation using login includes the resource transfers code of user account information.
Wherein, when including the resource transfers code of user account information based on the user account generation that the first application logs in, If the user account information is the user account, the resource transfers code comprising the user account can be directly generated;If The user account information is the encryption information of the user account, then can first encrypt to the user account, obtain the user Account information, regeneration include the resource transfers code of the user account information.
It should be noted that the use for the ease of subsequent user to the resource transfers code, the resource transfers code can be Graphic code (such as bar code, two dimensional code), user can save the resource transfers code, and other application more conveniently at this time Relatively easily the information for including in the resource transfers code can be obtained.
Step 203: the resource transfers code is sent to the first application by first server.
After first server generates the resource transfers code, which can be sent to the first application, so as to Subsequent user can be used the resource transfers code progress resource that the first application obtains and return.
Step 204: when the first application receives the resource transfers code of first server transmission, to the resource transfers code It is shown.
It should be noted that the first application shows the resource transfers code, it can be in order to which user be to the resource transfers Code is saved, and can be obtained in order to other application to the information for including in the resource transfers code.
In addition, first application the resource transfers code is shown after, user i.e. can be used the resource transfers code come into Row resource is returned.In practical application, user can directly be moved back using first using shown resource transfers code to carry out resource Also, certainly, user can also first print to first using shown resource transfers code, reuse the resource transfers of printing Code is returned to carry out resource, and the embodiment of the present invention is not construed as limiting the usage mode of the resource transfers code.
In embodiments of the present invention, the first application can obtain resource transfers code, later, Yong Huke from first server To use the resource transfers code to return to carry out resource.Due to carrying user account information in the resource transfers code, it is different The resource transfers code that possesses of user it is different, carry out safety when resource is returned so as to improve user, reduce other people and emit The risk of the resource of neck user to be returned to.
After executing above-mentioned steps 201- step 204, the first application can obtain resource transfers code, later, the second application It can interact to obtain the user account information for including in the resource transfers code with the first application.Specifically, the second application The resource transfers code that can be obtained to the first application is scanned, and obtains the user account information.The second application scanning resource Branch code after obtaining the user account information, is the user credential for getting and returning resource to user when, then second answers at this time Process is returned with resource can be continued.
Wherein, when the second application is scanned the resource transfers code, the money can be scanned when receiving scan instruction Source branch code, and when scanning the resource transfers code, it can be directly scanned to first using shown resource transfers code, or Person can be scanned the resource transfers code of printing, and the embodiment of the present invention is not construed as limiting this.
It should be noted that the scan instruction is used to indicate scanning resource transfers code, and the scan instruction can be by user Perhaps staff triggers user or staff can be able to be by the second specified operation triggering, the second specified operation Clicking operation, slide, voice operating etc., the embodiment of the present invention is not construed as limiting this.
After the second application obtains the user account information, second server can interact to obtain with the second application It obtains the user account information and resource returns information.Below second server and the second application are interacted to obtain the user The operation that account information and resource return information is illustrated.
Fig. 3 is that a kind of second server provided in an embodiment of the present invention obtains user account information and resource returns information The flow chart of operation.Referring to Fig. 3, which includes:
Step 301: the second application generation carries the user account information and resource returns the resource payback request of information.
It should be noted that it is to handle resource to return various information required when business that resource, which returns information, for example, the money Source return information may include resource return single information (such as resource returns odd numbers, resource returns the date, shopping date, needs Target resource quantity returned etc.), the information (such as passport name, passport number, telephone number) of user etc..
In addition, it is to carry out resource to user and move back that the second application scanning resource transfers code, which obtains the user account information, Also, thus, before this, the second application should store the resource and return information, and can be by user in practical application Or the resource is returned information storage into the second application by staff.
Furthermore resource payback request returns the user account information corresponding account progress resource for requesting, the use Account information corresponding account in family is user account, which can be the corresponding user account of the user account information Bound account (such as bank account, online account).
Step 302: the resource payback request is sent to second server by the second application.
Specifically, which can directly be sent to by the second application after generating the resource payback request Second server, alternatively, can receive resource return confirmation instruction when, which is sent to second service Device, the embodiment of the present invention are not construed as limiting this.
It should be noted that resource returns confirmation instruction for confirming that carrying out resource returns operation, and resource returns confirmation Instruction can perhaps staff triggers user or staff can be by the specified operation triggering of third, third by user Specified operation can be clicking operation, slide, voice operating etc., and the embodiment of the present invention is not construed as limiting this.
In addition, second server can be to this after the resource payback request is sent to second server by the second application Resource payback request is received, and returns information to obtain the user account information and the resource.
After executing above-mentioned steps 301- step 302, second server can obtain the user account information and the resource Information is returned, later, first server can interact to the required resource returned returning user with second server Account.The operation that the required resource returned is returned to user account is interacted to first server and second server below It is illustrated.
Fig. 4 is that the required resource returned is returned user account by a kind of first server provided in an embodiment of the present invention The flow chart of operation.Referring to fig. 4, the operation includes:
Step 401: when second server receives the resource payback request that the second application is sent, generation carries this User account information and the resource return the resource transfers request of information.
It should be noted that resource transfers request is returned for requesting to return the resource needs for including in information For the resource transfers of target resource quantity into the corresponding account of the user account information, resource transfers request can be by the second clothes Business device calls resource transfers interface to generate, and certainly, resource transfers request can also be called other interfaces raw by second server At the embodiment of the present invention is not construed as limiting this.
It is integrated into a resource in addition, the user account information and the resource can be returned information by second server and returns Record, and the resource is returned into record and is carried in resource transfers request, in the case, second server can also be directed to The resource returns one resource of record generation and returns record number, and the resource is returned record number and is carried on the resource transfers In request.For example, resource transfers request can carry various information as shown in table 1 below, and certainly, in practical application, the money Can also be carried in the transfer request of source it is other return relevant information to resource, the embodiment of the present invention is not construed as limiting this.
Table 1
It should be noted that only being requested for various information shown in the above table 1 resource transfers in the embodiment of the present invention The information of middle carrying is illustrated, and upper table 1 does not constitute the embodiment of the present invention and limits.
In practical application, resource transfers request can for HTTP (Hyper Text Transfer Protocol, it is super literary This transport protocol) request, and can be able to be that json format certainly should for the post request in HTTP request, post request Resource transfers request or other requests of other formats, the embodiment of the present invention are not construed as limiting this.
For example, the post that resource transfers request is json format is requested comprising request URL (Uniform Resource Locator, uniform resource locator) and request content, as the request URL can be with are as follows: https: //tax- Refund.tenpay.com/cgi-bin/mini-app/transfer_req.cgi? spid=XXXX, the request content can be with It is as follows:
Step 402: resource transfers request is sent to first server by second server.
After second server generates resource transfers request, in order to the resource returned be needed to be returned within a short period of time User can request the resource transfers to be sent to first server, ask so that subsequent first server is based on the resource transfers It asks the resource transfers that will need to return to the corresponding account of the user account information, the real time resources of user is moved back to realize Also.
It should be noted that the resource business of returning usually requires to return single agency qualification that carries out (as covered customs in resource Chapter etc.) it just can be carried out handle later, which can be entity authentication (such as capping entity customs chapter) or digital certificate (such as scanning electron customs chapter).That is to say, user is carrying out before resource returns, can before departure in customs's sales counter to money Source, which is returned, is singly checked and is carried out entity authentication, a little returns single progress to resource alternatively, can return before departure in resource It checks, voluntarily carries out digital certificate again later.
In the case where carrying out entity authentication, before the second application sends the resource payback request to second server, Through complete resource return single check and agency qualification, at this time second server generate the resource transfers request after can directly by Resource transfers request is sent to first server, and in the case where carrying out digital certificate, second applies to second server It before sending the resource payback request, has only completed resource and has returned single check, not yet completion agency qualification, so at this time second Server could ask the resource transfers after needing to continue waiting for until completing agency qualification after generating resource transfers request It asks and is sent to first server.
It therefore, further, can also be first before resource transfers request is sent to first server by second server It detects whether to get agency qualification information, is sent to the when getting agency qualification information, then by resource transfers request One server.It that is to say, before resource transfers request is sent to first server by second server, can first judge the money It returns whether comprising agency qualification information in information, if it includes agency qualification information that the resource, which is returned in information, directly in source It connects and resource transfers request is sent to first server, if it does not include agency qualification information that the resource, which returns information, after It is continuous to wait, until detecting that the resource is returned in information when including agency qualification information, then the resource transfers are requested to send To first server.
It is worth noting that the embodiment of the present invention not only supports that directly handling resource on airport before leaving a country returns business, also Support resource in urban district is returned a little to handle resource and return business, user first can return a progress resource in resource and return at this time Application (the i.e. second application sends resource payback request to second server) is returned in single check and resource, then only need to be on airport After voluntarily carrying out digital certificate, resource can be realized and return, in the case, user without resource on airport return sales counter or Automatic resource, which returns machine and waits in line resource, to be returned, so that user time is saved, so that resource returns more flexible and side Just.
Step 403: when first server receives the resource transfers request of second server transmission, from the first of setting The resource that target resource quantity is obtained in account, by the resource transfers of target resource quantity to the corresponding account of the user account information In family.
It should be noted that existing commonly pay out in business, trade company must open trade company number and enterprise's Internetbank, Zhi Houcai The account under the trade company number can be supplemented with money by enterprise's Internetbank, and be paid out in the account of personal user by the account. However, returning company due to resource tends to belong to country variant with needing to handle resource and return the user of business, so the resource Company's not main part of a country qualification belonging to the user is returned, the resource company of returning can not the state belonging to the user at this time Family opens enterprise's Internetbank, to also can not just carry out paying out business.
And the first account in the embodiment of the present invention is the pre-set account of first server, first server can To use the first account to carry out processing of providing loans.Belong to same state with needing to handle resource and return the user of business in first server In the case where family, first server can directly provide the target in the first account after receiving resource transfers request The resource of source quantity is quickly transferred in the corresponding account of the user account information, so that user can be within a short period of time The resource returned needed for acquisition is realized and is returned to the real time resources of user, is met instant when user's progress resource is returned To account demand.
Wherein, reconciliation is carried out for the ease of subsequent first server and second server, first server is provided by target During the resource transfers of source quantity to the corresponding account of the user account information, resource transfers record can also be generated and compiled Number, later, which is returned into record number with the resource that resource transfers request carries and carries out corresponding deposit Storage, and is sent to second server for the resource transfers record number, so that second server is by the resource transfers record number Record number, which is returned, with the resource carries out corresponding storage.
It should be noted that first server can inquire the number of resources shifted according to the resource transfers record number Amount, when the resource quantity shifted is consistent with target resource quantity, determines that resource returns success.Correspondingly, second server Record number can also be returned according to the resource and inquires the resource quantity shifted from first server, when the resource shifted When quantity is consistent with target resource quantity, determine that resource returns success.
Further, first server receive the resource transfers request after, can also to the resource transfers request in take The information of band is checked, if the information carried in resource transfers request is wrong, (such as format is incorrect, parameter is imperfect Deng), then it is operated without resource transfers, and return to the first failure response message to second server;If the resource transfers are asked It asks the information of middle carrying errorless, then carries out resource transfers operation, and return to the first successful respond message to second server.
It should be noted that various instruction letters can be carried in the first failure response message and the first successful respond message Breath, such as be used to indicate resource transfers request whether wrong return status code certainly can be in the first failure response message Error reason etc. is carried, resource transfers record number etc., the embodiment of the present invention pair can also be carried in the first successful respond message This is not construed as limiting.For example, the first failure response message or the first successful respond message can carry various letters as shown in table 2 below Breath in practical application, can also carry other instruction letters certainly in the first failure response message or the first successful respond message Breath, the embodiment of the present invention are not construed as limiting this.
Table 2
It should be noted that only unsuccessfully being answered first for various information shown in the above table 2 in the embodiment of the present invention It answers the information carried in message or the first successful respond message to be illustrated, upper table 2 does not constitute the embodiment of the present invention and limits.
In practical application, first failure response message and the first successful respond message all can be json format,
Certainly, the first failure response message and the first successful respond message may be other formats, the embodiment of the present invention This is not construed as limiting.
As the first failure response message can be as follows:
As the first successful respond message can be as follows:
Step 404: second server takes the resource transfers of the target resource quantity in the second account of setting to first It is engaged in the first account of device setting.
It should be noted that the second account is the pre-set account of second server, used in first server First account provide loans after processing, and second server can turn the resource of the target resource quantity in the second account of setting It moves in the first account of first server setting, flat account is carried out to the first account to use the second account.
Specifically, second server can be first by the resource transfers of the target resource quantity in the second account of setting to One server, first server get the resource for the target resource quantity being transferred out of from the second account that second server is arranged It afterwards, can be by the resource transfers of target resource quantity into the first account.
In embodiments of the present invention, second server, can be with after receiving the resource payback request that the second application is sent It generates resource transfers request Concurrency and gives first server.Due to carrying user account information and resource in resource transfers request Information is returned, therefore, first server can be obtained directly from the first account of setting after receiving resource transfers request The resource of target resource quantity is taken, and by the resource transfers of target resource quantity into the corresponding account of the user account information, It so as to shorten the time needed for resource product return process, improves resource and returns efficiency, so that user can be when shorter The resource returned needed for interior acquisition is realized and is returned to the real time resources of user, is met user and is carried out when resource is returned Immediately account demand is arrived.Later, second server can be by the resource transfers of target resource quantity in the second account of setting to In first account of one server setting, to carry out flat account to the first account.
It should be noted that the resource of target resource quantity is transferred to user's account from the first account in first server When the corresponding account of number information, for the ease of second server timely learning resource transfers progress, first server successfully will It, can be to second after the resource of the resource-target resource quantity is transferred to the corresponding account of the user account information from the first account Server sends resource transfers success message, so that the current resource of second server timely learning returns state.
Further, if second server does not receive the after sending the preset duration after resource transfers request The resource transfers success message that one server is sent, then second server can obtain resource transfers from first server automatically State.Specifically, second server sends resource transfers status query request, the resource transfers status inquiry to first server Resource is carried in request returns record number;The resource transfers status inquiry that first server receives second server transmission is asked When asking, the resource transfers state that the resource returns record number is inquired, if not yet carrying out resource transfers, it is determined that resource transfers State be it is to be transferred, if carrying out resource transfers, it is determined that resource transfers state be shifting, if resource transfers at Function, it is determined that resource transfers state is to shift successfully, if resource transfers fail, it is determined that resource transfers state is that transfer is lost It loses;First server generates the second successful respond message for carrying the resource transfers state and resource transfers record number, and will The second successful respond message is sent to second server.
It should be noted that resource transfers status query request can call verification certificate interface to generate by second server, when So, other interfaces can also be called to generate by second server, the embodiment of the present invention is not construed as limiting this.And resource transfers state Inquiry request can be able to be json format, certainly, the resource transfers shape for the post request in HTTP request, post request State inquiry request may be other requests of other formats, and the embodiment of the present invention is not construed as limiting this.
It further, can also be to the resource transfers after first server receives the resource transfers status query request The information carried in status query request is checked, if the information carried in the resource transfers status query request is wrong (such as format is incorrect, parameter is imperfect) is then operated without resource transfers status inquiry, and returns to the to second server Two failure response messages;If the information carried in the resource transfers status query request is errorless, resource transfers state is carried out Inquiry operation, and the second successful respond message is returned to second server.
It should be noted that various instruction letters can be carried in the second failure response message and the second successful respond message Breath, such as it is used to indicate the whether wrong return status code of resource transfers status query request, certainly,
Error reason etc. can also be carried in second failure response message, money can also be carried in the second successful respond message Source transfering state and resource transfers record number etc., the embodiment of the present invention is not construed as limiting this.For example, the second failure response message Or second successful respond message can carry various information as shown in table 3 below, certainly, in practical application, second is unsuccessfully replied Other instruction information can also be carried in message or the second successful respond message, the embodiment of the present invention is not construed as limiting this.
Table 3
It should be noted that only unsuccessfully being answered second for various information shown in the above table 3 in the embodiment of the present invention It answers the information carried in message or the second successful respond message to be illustrated, upper table 3 does not constitute the embodiment of the present invention and limits.
In practical application, the second failure response message and the second successful respond message all can be json format, certainly, the Two failure response messages and the second successful respond message may be other formats, and the embodiment of the present invention is not construed as limiting this.
As the second failure response message can be as follows:
As the second successful respond message can be as follows:
In addition, the resource of target resource quantity is transferred to the user account information pair from the first account in first server When the account answered, timely learning resource transfers progress is applied for the ease of first, first server is successfully by target resource number After the resource of amount is transferred to the corresponding account of the user account information from the first account, resource transfers can be sent to the first application Success message, first, using after receiving the resource transfers success message, can show the resource transfers success message, So that the current resource of user's timely learning returns state.
Further, the first application can also obtain resource transfers state from first server automatically.Specifically, first Inquiry request is sent using to first server;When first server receives the inquiry request that the first application is sent, inquiry the The resource transfers state of the account for the user account binding that one application logs in, if not yet carrying out resource transfers, it is determined that resource Transfering state be it is to be transferred, if carrying out resource transfers, it is determined that resource transfers state be shifting, if resource turn Move into function, it is determined that resource transfers state is to shift successfully, if resource transfers fail, it is determined that resource transfers state is transfer Failure;The resource transfers state is sent to the first application by first server;It is sent when the first application receives first server Resource transfers state after, which is shown.
The first application, first server, the second application and second server are realized below provided in an embodiment of the present invention The overall process of resource transfers method is illustrated.
Fig. 5 is a kind of flow chart of resource transfers method provided in an embodiment of the present invention.Referring to Fig. 5, this method comprises:
Step 501: the first application sends resource transfers code acquisition request to first server, and the first application is logged in user Account.
Step 502: when first server receives the resource transfers code acquisition request that the first application is sent, being based on first User account generation using login includes the resource transfers code of user account information.
Step 503: the resource transfers code is sent to the first application by first server.
Step 504: when the first application receives the resource transfers code of first server transmission, to the resource transfers code It is shown.
Step 505: the second application is scanned the resource transfers code, obtains the user account information.
Step 506: the second application generation carries the user account information and resource returns the resource payback request of information, It includes the target resource quantity for needing to return in information that the resource, which is returned,.
Step 507: the resource payback request is sent to second server by the second application.
Step 508: when second server receives the resource payback request that the second application is sent, generation carries this User account information and the resource return the resource transfers request of information.
Step 509: resource transfers request is sent to first server by second server.
Step 510: when first server receives the resource transfers request of second server transmission, from the of setting The resource that target resource quantity is obtained in one account, by the resource transfers of target resource quantity to the corresponding account of user account information In family.
Step 511: second server takes the resource transfers of the target resource quantity in the second account of setting to first It is engaged in the first account of device setting.
In embodiments of the present invention, after obtaining resource transfers code in first server and showing, second is answered for the first application User account information is obtained with the resource transfers code can be scanned, and is generated and is carried the user account information and resource and return information Resource payback request be sent to second server.After second server receives the resource payback request, resource can be generated Transfer request is simultaneously sent to first server.Since carrying user account information and resource return letter in resource transfers request Breath, therefore, first server directly can obtain target from the first account of setting after receiving resource transfers request The resource of resource quantity, and by the resource transfers of target resource quantity into the corresponding account of the user account information, to contract It time needed for short resource product return process, improves resource and returns efficiency, so that user can obtain within a short period of time The resource returned needed for obtaining, realizes and returns to the real time resources of user, meets user and carries out arriving when resource is returned immediately Account demand.Later, second server can be by the resource transfers of target resource quantity in the second account of setting to first service In first account of device setting, to carry out flat account to the first account.
Fig. 6 is a kind of structural schematic diagram of resource transfers device provided in an embodiment of the present invention, which is applied to first Server.Referring to Fig. 6, which includes the first receiving module 601, the first shift module 602 and the second shift module 603.
First receiving module 601, for receive second server transmission carry user account information and resource is returned The resource transfers of information are requested, and it includes the target resource quantity for needing to return in information that resource, which is returned,;
First shift module 602 provides target for obtaining the resource of target resource quantity from the first account of setting The resource transfers of source quantity are into the corresponding account of user account information;
Second shift module 603, for obtaining the target resource number being transferred out of from the second account that second server is arranged The resource of amount, by the resource transfers of target resource quantity into the first account.
Optionally, the device further include:
First generation module, for by the resource transfers of target resource quantity to the corresponding account of user account information In the process, resource transfers record number is generated;
Enquiry module, for inquiring the resource quantity shifted according to resource transfers record number;
Determining module, for determining that resource returns success when the resource quantity shifted is consistent with target resource quantity.
Optionally, the device further include:
Second receiving module, the resource transfers code acquisition request sent for receiving the first application, the first application are logged in User account;
Second generation module, for including the resource transfers code of user account information based on user account generation;
Sending module shows resource transfers code by the first application for resource transfers code to be sent to the first application Show;
Correspondingly, the first receiving module 601 is used for:
It receives second server and obtains the money sent after user account information by the second application scanning resource transfers code Source transfer request carries user account information and resource in resource transfers request and returns information.
In embodiments of the present invention, resource transfers request is sent to first server by second server.Due to the resource User account information and resource are carried in transfer request and returns information, and therefore, first server is asked receiving the resource transfers After asking, the resource of target resource quantity can be obtained directly from the first account of setting, and by the resource of target resource quantity It is transferred in the corresponding account of the user account information, so as to shorten the time needed for resource product return process, improves resource Efficiency is returned, so that the resource that user returns needed for can obtaining within a short period of time, realizes the real-time money to user Source is returned, and is met user and is carried out arriving account demand immediately when resource is returned.Later, first server is available from the second clothes The resource of target resource quantity that second account of business device setting is transferred out of, and by the resource transfers of target resource quantity to first In account, to carry out flat account to the first account.
Fig. 7 is a kind of structural schematic diagram of resource transfers device provided in an embodiment of the present invention, which is applied to second Server.Referring to Fig. 7, which includes receiving module 701, generation module 702, sending module 703 and shift module 704.
Receiving module 701, for receive second application send carry user account information and resource returns information Resource payback request, it includes the target resource quantity for needing to return in information that resource, which is returned,;
Generation module 702 carries user account information and resource returns the resource transfers request of information for generating;
Sending module 703, for resource transfers request to be sent to first server, by first server by first service The resource transfers of target resource quantity in first account of device setting are into the corresponding account of user account information;
Shift module 704, the resource transfers of the target resource quantity in the second account for that will be arranged to first service In first account of device setting.
Optionally, the device further include:
Detection module, for detecting whether getting agency qualification information;
Trigger module, for when getting agency qualification information, resource transfers to be requested to send by triggering sending module 703 To first server.
In embodiments of the present invention, second server, can be with after receiving the resource payback request that the second application is sent It generates resource transfers request Concurrency and gives first server.Due to carrying user account information and resource in resource transfers request Information is returned, therefore, first server, can directly will be in the first account of setting after receiving resource transfers request The resource transfers of target resource quantity are into the corresponding account of user account information, so as to shorten needed for resource product return process Time improves resource and returns efficiency, so that the resource that user returns needed for can obtaining within a short period of time, realizes The real time resources of user are returned, user is met and carries out arriving account demand immediately when resource is returned.Later, second server can In the first account being arranged with resource transfers to the first server of target resource quantity in the second account that will be arranged, to One account carries out flat account.
It should be understood that resource transfers device provided by the above embodiment is in resource transfers, only with above-mentioned each function The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds Block is completed, i.e., the internal structure of device is divided into different functional modules, to complete all or part of function described above Energy.In addition, resource transfers device provided by the above embodiment and resource transfers embodiment of the method belong to same design, it is specific real Existing process is detailed in embodiment of the method, and which is not described herein again.
Fig. 8 is a kind of structural schematic diagram of first server 800 provided in an embodiment of the present invention, and server 800 can be Server in background server cluster.Specifically:
Server 800 includes central processing unit (CPU) 801 including random access memory (RAM) 802 and read-only deposits The system storage 804 of reservoir (ROM) 803, and the system bus of connection system storage 804 and central processing unit 801 805.Server 800 further includes the basic input/output (I/O that information is transmitted between each device helped in computer System) 806, and for the mass-memory unit of storage program area 813, application program 814 and other program modules 815 807。
Basic input/output 806 includes display 808 for showing information and inputs information for user The input equipment 809 of such as mouse, keyboard etc.Wherein display 808 and input equipment 809 are all by being connected to system bus 805 input and output controller 810 is connected to central processing unit 801.Basic input/output 806 can also include defeated Enter o controller 810 for receiving and handling from the defeated of multiple other equipment such as keyboard, mouse or electronic touch pen Enter.Similarly, input and output controller 810 also provides output to display screen, printer or other kinds of output equipment.
Mass-memory unit 807 is connected by being connected to the bulk memory controller (not shown) of system bus 805 To central processing unit 801.Mass-memory unit 807 and its associated computer-readable medium are that server 800 provides Non-volatile memories.That is, mass-memory unit 807 may include such as hard disk or CD-ROM drive etc Computer-readable medium (not shown).
Without loss of generality, computer-readable medium may include computer storage media and communication media.Computer storage Medium includes any of the information such as computer readable instructions, data structure, program module or other data for storage The volatile and non-volatile of method or technique realization, removable and irremovable medium.Computer storage medium include RAM, ROM, EPROM, EEPROM, flash memory or other solid-state storages its technologies, CD-ROM, DVD or other optical storages, cassette, magnetic Band, disk storage or other magnetic storage devices.Certainly, skilled person will appreciate that computer storage medium is not limited to It states several.Above-mentioned system storage 804 and mass-memory unit 807 may be collectively referred to as memory.
According to various embodiments of the present invention, server 800 can also pass through the network connections such as internet to network On remote computer operation.Namely server 800 can be by the Network Interface Unit 811 that is connected on system bus 805 It is connected to network 812, in other words, Network Interface Unit 811 can be used also to be connected to other kinds of network or long-range meter Calculation machine system (not shown).
Above-mentioned memory further includes one, and perhaps more than one program one or more than one program are stored in storage In device, it is configured to be executed by CPU.The one or more programs include for carrying out first in Fig. 2-Fig. 5 embodiment The instruction for the operation that server executes.
Fig. 9 is a kind of structural schematic diagram of second server 900 provided in an embodiment of the present invention, and server 900 can be Server in background server cluster.Specifically:
Server 900 includes central processing unit (CPU) 901 including random access memory (RAM) 902 and read-only deposits The system storage 904 of reservoir (ROM) 903, and the system bus of connection system storage 904 and central processing unit 901 905.Server 900 further includes the basic input/output (I/O that information is transmitted between each device helped in computer System) 906, and for the mass-memory unit of storage program area 913, application program 914 and other program modules 915 907。
Basic input/output 906 includes display 908 for showing information and inputs information for user The input equipment 909 of such as mouse, keyboard etc.Wherein display 908 and input equipment 909 are all by being connected to system bus 905 input and output controller 910 is connected to central processing unit 901.Basic input/output 906 can also include defeated Enter o controller 910 for receiving and handling from the defeated of multiple other equipment such as keyboard, mouse or electronic touch pen Enter.Similarly, input and output controller 910 also provides output to display screen, printer or other kinds of output equipment.
Mass-memory unit 907 is connected by being connected to the bulk memory controller (not shown) of system bus 905 To central processing unit 901.Mass-memory unit 907 and its associated computer-readable medium are that server 900 provides Non-volatile memories.That is, mass-memory unit 907 may include such as hard disk or CD-ROM drive etc Computer-readable medium (not shown).
Without loss of generality, computer-readable medium may include computer storage media and communication media.Computer storage Medium includes any of the information such as computer readable instructions, data structure, program module or other data for storage The volatile and non-volatile of method or technique realization, removable and irremovable medium.Computer storage medium include RAM, ROM, EPROM, EEPROM, flash memory or other solid-state storages its technologies, CD-ROM, DVD or other optical storages, cassette, magnetic Band, disk storage or other magnetic storage devices.Certainly, skilled person will appreciate that computer storage medium is not limited to It states several.Above-mentioned system storage 904 and mass-memory unit 907 may be collectively referred to as memory.
According to various embodiments of the present invention, server 900 can also pass through the network connections such as internet to network On remote computer operation.Namely server 900 can be by the Network Interface Unit 911 that is connected on system bus 905 It is connected to network 912, in other words, Network Interface Unit 911 can be used also to be connected to other kinds of network or long-range meter Calculation machine system (not shown).
Above-mentioned memory further includes one, and perhaps more than one program one or more than one program are stored in storage In device, it is configured to be executed by CPU.The one or more programs include for carrying out second in Fig. 2-Fig. 5 embodiment The instruction for the operation that server executes.
Figure 10 is a kind of schematic diagram of resource transfers system provided in an embodiment of the present invention, and referring to Figure 10, which includes: Second server 1001 and first server 1002.
Second server 1001, for receive second application send carry user account information and resource is returned When the resource payback request of information, generation carries user account information and resource returns the resource transfers request of information, will provide Source transfer request is sent to first server, and it includes the target resource quantity for needing to return in information that resource, which is returned,;
First server 1002, in the resource transfers request for receiving second server transmission, from the of setting The resource that target resource quantity is obtained in one account, by the resource transfers of target resource quantity to the corresponding account of user account information In family;
Second server 1001, the resource transfers of the target resource quantity in the second account for being also used to be arranged to first In first account of server setting.
In embodiments of the present invention, second server, can be with after receiving the resource payback request that the second application is sent It generates resource transfers request Concurrency and gives first server.Due to carrying user account information and resource in resource transfers request Information is returned, therefore, first server can be obtained directly from the first account of setting after receiving resource transfers request The resource of target resource quantity is taken, and by the resource transfers of target resource quantity into the corresponding account of the user account information, It so as to shorten the time needed for resource product return process, improves resource and returns efficiency, so that user can be when shorter The resource returned needed for interior acquisition is realized and is returned to the real time resources of user, is met user and is carried out when resource is returned Immediately account demand is arrived.Later, second server can be by the resource transfers of target resource quantity in the second account of setting to In first account of one server setting, to carry out flat account to the first account.
Figure 11 is a kind of schematic diagram of resource transfers system provided in an embodiment of the present invention, and referring to Figure 11, which includes: First applies 1101, and first server 1102, second applies 1103 and second server 1104.
First applies 1101, and for sending resource transfers code acquisition request to first server 1102, the first application is logged in There is user account;
First server 1102, for receive first application 1101 send resource transfers code acquisition request when, base In the resource transfers code that user account generation includes user account information, resource transfers code is sent to first using 1101;
First applies 1101, is also used to turn resource when receiving the resource transfers code of the transmission of first server 1102 Frameshit is shown;
Second applies 1103, for being scanned to resource transfers code, obtains user account information, generation carries user Account information and resource return the resource payback request of information, and resource payback request is sent to second server 1104, resource Returning includes the target resource quantity for needing to return in information;
Second server 1104, for generating and carrying when receiving the resource payback request that the second application 1103 is sent There are user account information and resource to return the resource transfers request of information, resource transfers request is sent to first server 1102;
First server 1102 is also used in the resource transfers request for receiving the transmission of second server 1104, from setting The resource that target resource quantity is obtained in the first account set, by the resource transfers of target resource quantity to user account information pair In the account answered;
Second server 1104, the resource transfers of the target resource quantity in the second account for being also used to be arranged to first In first account of server setting.
In embodiments of the present invention, after obtaining resource transfers code in first server and showing, second is answered for the first application User account information is obtained with the resource transfers code can be scanned, and is generated and is carried the user account information and resource and return information Resource payback request be sent to second server.After second server receives the resource payback request, resource can be generated Transfer request is simultaneously sent to first server.Since carrying user account information and resource return letter in resource transfers request Breath, therefore, first server directly can obtain target from the first account of setting after receiving resource transfers request The resource of resource quantity, and by the resource transfers of target resource quantity into the corresponding account of the user account information, to contract It time needed for short resource product return process, improves resource and returns efficiency, so that user can obtain within a short period of time The resource returned needed for obtaining, realizes and returns to the real time resources of user, meets user and carries out arriving when resource is returned immediately Account demand.Later, second server can be by the resource transfers of target resource quantity in the second account of setting to first service In first account of device setting, to carry out flat account to the first account.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or its any combination real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.It is all or part of when loading on computers and executing the computer instruction Ground is generated according to process or function described in the embodiment of the present invention.The computer can be general purpose computer, special purpose computer, Computer network or other programmable devices.The computer instruction may be stored in a computer readable storage medium, or Person is transmitted from a computer readable storage medium to another computer readable storage medium, for example, the computer instruction Can from a web-site, computer, server or data center by it is wired (such as: coaxial cable, optical fiber, data use Family line (Digital Subscriber Line, DSL)) or wireless (such as: infrared, wireless, microwave etc.) mode to another net Website, computer, server or data center are transmitted.The computer readable storage medium can be computer can Any usable medium of access either includes the data storage such as one or more usable mediums integrated server, data center Equipment.The usable medium can be magnetic medium (such as: floppy disk, hard disk, tape), optical medium (such as: digital versatile disc (Digital Versatile Disc, DVD)) or semiconductor medium (such as: solid state hard disk (Solid State Disk, SSD)) etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (15)

1. a kind of resource transfers method, which is characterized in that be applied to first server, which comprises
Receive that second server sends carry user account information and resource returns the resource transfers request of information, the money It includes the target resource quantity for needing to return in information that source, which is returned,;
The resource that the target resource quantity is obtained from the first account of setting, by the resource transfers of the target resource quantity To in the corresponding account of the user account information;
The resource for obtaining the target resource quantity being transferred out of from the second account that the second server is arranged, by the mesh The resource transfers of resource quantity are marked into first account.
2. the method as described in claim 1, which is characterized in that the method also includes:
During account that the resource transfers of the target resource quantity are corresponding to the user account information, money is generated Shift record number in source;
The resource quantity shifted is inquired according to the resource transfers record number;
When the resource quantity shifted is consistent with the target resource quantity, determine that resource returns success.
3. method according to claim 1 or 2, which is characterized in that the reception second server was sent carries user Account information and resource are returned before the resource transfers request of information, further includes:
The resource transfers code acquisition request that the first application is sent is received, first application is logged in user account;
It include the resource transfers code of the user account information based on user account generation;
The resource transfers code is sent to first application, the resource transfers code is shown by first application Show;
Correspondingly, it is described receive second server send carry user account information and resource returns the resource transfers of information Request, comprising:
It receives after the second server obtains the user account information by resource transfers code described in the second application scanning The resource transfers of transmission are requested, and carry the user account information in the resource transfers request and resource returns information.
4. a kind of resource transfers method, which is characterized in that be applied to second server, which comprises
Receive second application send carry user account information and resource returns the resource payback request of information, the resource Returning includes the target resource quantity for needing to return in information;
Generation carries the user account information and the resource returns the resource transfers request of information;
Resource transfers request is sent to the first server, is set the first server by the first server The resource transfers of the target resource quantity in the first account set are into the corresponding account of the user account information;
It will be described in the resource transfers of the target resource quantity in the second account of setting to first server setting In first account.
5. method as claimed in claim 4, which is characterized in that described that resource transfers request is sent to first clothes It is engaged in front of device, further includes:
It detects whether to get agency qualification information;
When getting agency qualification information, the step that resource transfers request is sent to the first server is executed Suddenly.
6. a kind of resource transfers method, which is characterized in that the described method includes:
When second server receive that the second application sends carry user account information and resource is returned the resource of information and is moved back When also requesting, generation carries the user account information and the resource returns the resource transfers request of information, by the money Source transfer request is sent to first server, and it includes the target resource quantity for needing to return in information that the resource, which is returned,;
When the first server receives the resource transfers request that the second server is sent, from the first of setting The resource that the target resource quantity is obtained in account believes the resource transfers of the target resource quantity to the user account It ceases in corresponding account;
The second server takes the resource transfers of the target resource quantity in the second account of setting to described first It is engaged in first account of device setting.
7. a kind of resource transfers method, which is characterized in that the described method includes:
First application sends resource transfers code acquisition request to first server, and first application is logged in user account;
When the first server receives the resource transfers code acquisition request that first application is sent, based on described User account generation includes the resource transfers code of user account information, and the resource transfers code is sent to described first and is answered With;
When first application receives the resource transfers code that the first server is sent, to the resource transfers code It is shown;
Second application is scanned the resource transfers code, obtains the user account information, and generation carries the user Account information and resource return the resource payback request of information, and the resource payback request is sent to second server, described It includes the target resource quantity for needing to return in information that resource, which is returned,;
When the second server receives the resource payback request that second application is sent, generation carries described User account information and the resource return the resource transfers request of information, and resource transfers request is sent to described first Server;
When the first server receives the resource transfers request that the second server is sent, from the first of setting The resource that the target resource quantity is obtained in account believes the resource transfers of the target resource quantity to the user account It ceases in corresponding account;
The second server takes the resource transfers of the target resource quantity in the second account of setting to described first It is engaged in first account of device setting.
8. a kind of resource transfers device, which is characterized in that be applied to first server, described device includes:
First receiving module, for receive second server transmission carry user account information and resource returns the money of information Source transfer request, it includes the target resource quantity for needing to return in information that the resource, which is returned,;
First shift module, for obtaining the resource of the target resource quantity from the first account of setting, by the target The resource transfers of resource quantity are into the corresponding account of the user account information;
Second shift module, for obtaining the target resource number being transferred out of from the second account that the second server is arranged The resource of amount, by the resource transfers of the target resource quantity into first account.
9. a kind of resource transfers device, which is characterized in that be applied to second server, described device includes:
Receiving module, for receive that the second application sends carry user account information and resource is returned the resource of information and is returned Request, it includes the target resource quantity for needing to return in information that the resource, which is returned,;
Generation module carries the user account information and the resource returns the resource transfers request of information for generating;
Sending module, for resource transfers request to be sent to the first server, by the first server by institute The resource transfers of the target resource quantity in the first account of first server setting are stated to the user account information pair In the account answered;
Shift module, the resource transfers of the target resource quantity in the second account for that will be arranged to the first service In first account of device setting.
10. a kind of first server, which is characterized in that the first server includes processor and memory, the memory In be stored at least one instruction, at least a Duan Chengxu, code set or instruction set, at least one instruction, described at least one Duan Chengxu, the code set or instruction set are loaded by the processor and are executed a method according to any one of claims 1-3 to realize Resource transfers method.
11. a kind of computer readable storage medium, which is characterized in that be stored at least one instruction, extremely in the storage medium A few Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set or instruction Collection is loaded by processor and is executed to realize resource transfers method a method according to any one of claims 1-3.
12. a kind of second server, which is characterized in that the second server includes processor and memory, the memory In be stored at least one instruction, at least a Duan Chengxu, code set or instruction set, at least one instruction, described at least one Duan Chengxu, the code set or instruction set are loaded by the processor and are executed to realize resource as described in claim 4 or 5 Transfer method.
13. a kind of computer readable storage medium, which is characterized in that be stored at least one instruction, extremely in the storage medium A few Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set or instruction Collection is loaded by processor and is executed to realize resource transfers method as described in claim 4 or 5.
14. a kind of resource transfers system, which is characterized in that the system comprises:
Second server, for receive second application send carry user account information and resource returns the money of information When the payback request of source, generation carries the user account information and the resource returns the resource transfers request of information, by institute It states resource transfers request and is sent to first server, it includes the target resource quantity for needing to return in information that the resource, which is returned,;
The first server, when for being requested in the resource transfers for receiving the second server transmission, from setting The first account in obtain the resource of the target resource quantity, by the resource transfers of the target resource quantity to the user In the corresponding account of account information;
The second server, the resource transfers of the target resource quantity in the second account for being also used to be arranged are to described In first account of first server setting.
15. a kind of resource transfers system, which is characterized in that the system comprises:
First application, for sending resource transfers code acquisition request to first server, first application is logged in user's account Number;
The first server, for receive it is described first application send the resource transfers code acquisition request when, base Generated in the user account include user account information resource transfers code, the resource transfers code is sent to described the One application;
First application, is also used to when receiving the resource transfers code that the first server is sent, to the money Source branch code is shown;
Second application obtains the user account information, generation carries described for being scanned to the resource transfers code User account information and resource return the resource payback request of information, and the resource payback request is sent to second server, It includes the target resource quantity for needing to return in information that the resource, which is returned,;
The second server, for generating and carrying when receiving the resource payback request that second application is sent There are the user account information and the resource to return the resource transfers request of information, resource transfers request is sent to institute State first server;
The first server is also used to when receiving the resource transfers request that the second server is sent, from setting The resource that the target resource quantity is obtained in the first account set, by the resource transfers of the target resource quantity to the use In the corresponding account of family account information;
The second server, the resource transfers of the target resource quantity in the second account for being also used to be arranged are to described In first account of first server setting.
CN201711137666.1A 2017-11-16 2017-11-16 Resource transfer method, system, server and computer readable storage medium Active CN109801051B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711137666.1A CN109801051B (en) 2017-11-16 2017-11-16 Resource transfer method, system, server and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711137666.1A CN109801051B (en) 2017-11-16 2017-11-16 Resource transfer method, system, server and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109801051A true CN109801051A (en) 2019-05-24
CN109801051B CN109801051B (en) 2023-04-07

Family

ID=66555352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711137666.1A Active CN109801051B (en) 2017-11-16 2017-11-16 Resource transfer method, system, server and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109801051B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110458701A (en) * 2019-07-11 2019-11-15 深圳市元征科技股份有限公司 A kind of data processing method, device, block chain node device and medium
CN110570282A (en) * 2019-09-10 2019-12-13 腾讯科技(深圳)有限公司 cross-region resource transfer method, device, equipment and storage medium
CN110719222A (en) * 2019-10-18 2020-01-21 上海连尚网络科技有限公司 Method for revoking resources, method, apparatus and medium for refunding resources
CN111192036A (en) * 2019-08-01 2020-05-22 腾讯科技(深圳)有限公司 Account resource updating method and device, computer equipment and storage medium
CN111311360A (en) * 2020-02-03 2020-06-19 网银在线(北京)科技有限公司 Resource return method and device, storage medium and electronic device
CN111738705A (en) * 2020-07-31 2020-10-02 支付宝(杭州)信息技术有限公司 Resource transfer method, device and equipment
CN112288556A (en) * 2019-07-10 2021-01-29 腾讯科技(深圳)有限公司 Method and device for resource transfer, and method and device for initiating resource transfer
CN112307306A (en) * 2019-07-15 2021-02-02 腾讯科技(深圳)有限公司 Resource transfer method and device, server and storage medium
WO2023131889A3 (en) * 2022-01-10 2023-08-31 支付宝实验室(新加坡)有限公司 Resource sending

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120185317A1 (en) * 2008-12-02 2012-07-19 Ebay, Inc. Mobile barcode generation and payment
CN103761484A (en) * 2014-01-08 2014-04-30 腾讯科技(深圳)有限公司 Resource transfer managing method, resource transfer managing device and resource transfer managing system
CN103903168A (en) * 2014-04-01 2014-07-02 宁波保税区攀峒信息科技有限公司 Transaction-based business model with everyone capable of buying on behalf
CN105787736A (en) * 2014-12-18 2016-07-20 阿里巴巴集团控股有限公司 Data business processing method and device
CN105787733A (en) * 2014-12-24 2016-07-20 阿里巴巴集团控股有限公司 Method and apparatus for processing service information
CN106934711A (en) * 2017-03-10 2017-07-07 山东浪潮商用系统有限公司 Processing method, system and client that departure is refunded
CN106940857A (en) * 2016-01-04 2017-07-11 阿里巴巴集团控股有限公司 Business backing method and device
CN107025548A (en) * 2016-09-21 2017-08-08 阿里巴巴集团控股有限公司 Transaction processing method, terminal and system
CN107220821A (en) * 2017-05-23 2017-09-29 杭州呯嘭智能技术有限公司 The cross-border point of account method based on inline electronic account, point account platform and payment platform

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120185317A1 (en) * 2008-12-02 2012-07-19 Ebay, Inc. Mobile barcode generation and payment
CN103761484A (en) * 2014-01-08 2014-04-30 腾讯科技(深圳)有限公司 Resource transfer managing method, resource transfer managing device and resource transfer managing system
CN103903168A (en) * 2014-04-01 2014-07-02 宁波保税区攀峒信息科技有限公司 Transaction-based business model with everyone capable of buying on behalf
CN105787736A (en) * 2014-12-18 2016-07-20 阿里巴巴集团控股有限公司 Data business processing method and device
CN105787733A (en) * 2014-12-24 2016-07-20 阿里巴巴集团控股有限公司 Method and apparatus for processing service information
CN106940857A (en) * 2016-01-04 2017-07-11 阿里巴巴集团控股有限公司 Business backing method and device
CN107025548A (en) * 2016-09-21 2017-08-08 阿里巴巴集团控股有限公司 Transaction processing method, terminal and system
CN106934711A (en) * 2017-03-10 2017-07-07 山东浪潮商用系统有限公司 Processing method, system and client that departure is refunded
CN107220821A (en) * 2017-05-23 2017-09-29 杭州呯嘭智能技术有限公司 The cross-border point of account method based on inline electronic account, point account platform and payment platform

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112288556A (en) * 2019-07-10 2021-01-29 腾讯科技(深圳)有限公司 Method and device for resource transfer, and method and device for initiating resource transfer
CN110458701A (en) * 2019-07-11 2019-11-15 深圳市元征科技股份有限公司 A kind of data processing method, device, block chain node device and medium
CN112307306A (en) * 2019-07-15 2021-02-02 腾讯科技(深圳)有限公司 Resource transfer method and device, server and storage medium
CN111192036A (en) * 2019-08-01 2020-05-22 腾讯科技(深圳)有限公司 Account resource updating method and device, computer equipment and storage medium
CN111192036B (en) * 2019-08-01 2023-06-20 腾讯科技(深圳)有限公司 Account resource updating method and device, computer equipment and storage medium
CN110570282A (en) * 2019-09-10 2019-12-13 腾讯科技(深圳)有限公司 cross-region resource transfer method, device, equipment and storage medium
CN110570282B (en) * 2019-09-10 2023-08-18 腾讯科技(深圳)有限公司 Cross-region resource transfer method, device, equipment and storage medium
CN110719222A (en) * 2019-10-18 2020-01-21 上海连尚网络科技有限公司 Method for revoking resources, method, apparatus and medium for refunding resources
CN111311360A (en) * 2020-02-03 2020-06-19 网银在线(北京)科技有限公司 Resource return method and device, storage medium and electronic device
CN111311360B (en) * 2020-02-03 2023-09-01 网银在线(北京)科技有限公司 Resource refund method and device, storage medium and electronic device
CN111738705A (en) * 2020-07-31 2020-10-02 支付宝(杭州)信息技术有限公司 Resource transfer method, device and equipment
WO2023131889A3 (en) * 2022-01-10 2023-08-31 支付宝实验室(新加坡)有限公司 Resource sending

Also Published As

Publication number Publication date
CN109801051B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN109801051A (en) Resource transfers method, system, server and computer readable storage medium
US11962577B2 (en) Resource transfer setup and verification
US8606644B1 (en) Order queue management in event ticket network systems
CN109802916B (en) Resource transfer method, system, server and computer readable storage medium
CN109493024A (en) Digital asset trustship method, equipment and storage medium
CN107657420A (en) A kind of flow path processing method and system based on event
CN110443695A (en) Data processing method and its device, electronic equipment and medium
JP6940609B2 (en) Resource allocation method and equipment and electronic payment method
CN104378341A (en) Template obtaining method, template providing method, device and system
WO2014067496A1 (en) Method and apparatus for processing information
CN111126848B (en) Service processing method and device based on big data, storage medium and electronic equipment
CN106022495A (en) After-sales service point queuing method, apparatus and system
CN104766202B (en) Payment system, method of payment and information checking method
CN110414970A (en) A kind of method of payment and device
CN104680368A (en) Method and system for obtaining order by near-field card-free payment
CN111127224B (en) Information processing method, information processing device, electronic equipment and storage medium
CN115983853A (en) Client side green electricity application service method and system based on block chain and electronic equipment
CN108076110A (en) Electronic data interchange system and the device comprising electronic data interchange system
CN110378680A (en) A kind of data processing method, device, storage medium and server
CN109450896A (en) A kind of certification of certificate two-dimensional code electronic cloud service system, method and apparatus
CN110049074A (en) Method, system and the storage medium and computer equipment that data upload
CN113627934A (en) Transaction data acquisition method and related equipment
CN103124287B (en) The technology of third party content transmission is carried out by unique mobile applications address
TW201040857A (en) Real-time settlement method of proceeds fund of logistics company and its system
CN108830575A (en) A kind of party membership dues information processing method, system, equipment and computer 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
GR01 Patent grant
GR01 Patent grant