WO2018153209A1 - Method for transferring resource value, and server, system and storage medium - Google Patents

Method for transferring resource value, and server, system and storage medium Download PDF

Info

Publication number
WO2018153209A1
WO2018153209A1 PCT/CN2018/074126 CN2018074126W WO2018153209A1 WO 2018153209 A1 WO2018153209 A1 WO 2018153209A1 CN 2018074126 W CN2018074126 W CN 2018074126W WO 2018153209 A1 WO2018153209 A1 WO 2018153209A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
transfer
resource
identifier
resource transfer
Prior art date
Application number
PCT/CN2018/074126
Other languages
French (fr)
Chinese (zh)
Inventor
郑伟涛
韦德志
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2018153209A1 publication Critical patent/WO2018153209A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/12Payment architectures specially adapted for electronic shopping systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/12Payment architectures specially adapted for electronic shopping systems
    • G06Q20/123Shopping for digital content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements

Definitions

  • the present application relates to the field of computer technology, and in particular, to a method, a server, a system, and a storage medium for resource value transfer.
  • the resource value transfer refers to a process in which the resource value from the first account to the second account is used to identify the corresponding change in the number of resources.
  • Value-shifted resources include, but are not limited to, electronic wallets, virtual red envelopes, electronic coupons, point coupons, points, electronic vouchers, game coins, virtual items, and the like.
  • a repeated resource value transfer request may be sent for multiple operations of the same order user.
  • the traditional resource value transfer method may be switched from the faulty server to the backup server for resource value transfer.
  • a method, server, system, and storage medium for resource value transfer are provided.
  • a method for resource value transfer comprising:
  • the access server receives a resource value transfer request sent by the terminal, where the resource value transfer request includes a current service identifier;
  • the access server queries the resource mapping relationship, and acquires a target resource transfer identifier corresponding to the current service identifier, where the target resource transfer identifier has an associated target resource transfer server identifier;
  • the access server When the target resource transfer server has a failure, the access server returns a first resource transfer failure response to the terminal.
  • a server comprising a memory and a processor, the memory storing computer readable instructions, the computer readable instructions being executed by the processor, such that the processor performs the following steps:
  • a system for resource value transfer comprising:
  • the access server is configured to receive a resource value transfer request sent by the terminal, where the resource value transfer request includes a current service identifier, a query resource mapping relationship, and a target resource transfer identifier corresponding to the current service identifier, where the target resource transfer identifier is There is an associated target resource transfer server identifier, and the resource value transfer request is forwarded to a target resource transfer server corresponding to the target resource transfer server identifier;
  • a target resource transfer server configured to return a first resource transfer response according to the resource value transfer request, where the target resource transfer server is a backup server corresponding to the primary server or the primary server;
  • the access server is further configured to: when it is determined that the target resource transfer server has a fault according to the first resource transfer response, return a first resource transfer fault response to the terminal.
  • One or more non-volatile storage media storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the following steps:
  • 1 is an application environment diagram of a method for resource value transfer in an embodiment
  • FIG. 2 is an internal structural diagram of an access server in FIG. 1 in an embodiment
  • FIG. 3 is a flow chart of a method for resource value transfer in an embodiment
  • FIG. 4 is a flowchart of obtaining a resource transfer identifier corresponding to a current service identifier in an embodiment
  • FIG. 5 is a flowchart of establishing a mapping relationship in an embodiment
  • FIG. 6 is a flowchart of performing resource transfer after acquiring resource authorization information in an embodiment
  • FIG. 7 is a structural block diagram of a system for resource value transfer in an embodiment
  • FIG. 8 is a structural block diagram of a system for resource value transfer in another embodiment
  • FIG. 9 is an architectural diagram of a system for resource value transfer in a specific embodiment
  • FIG. 10 is a schematic diagram of interaction of a method for resource value transfer in a specific embodiment
  • FIG. 11 is a structural block diagram of an apparatus for resource value transfer in an embodiment
  • FIG. 12 is a structural block diagram of an apparatus for resource value transfer in another embodiment
  • FIG. 13 is a structural block diagram of a resource mapping relationship establishing module in an embodiment
  • FIG. 14 is a structural block diagram of an apparatus for resource value transfer in still another embodiment.
  • Figure 15 is a block diagram showing the structure of an apparatus for resource value transfer in still another embodiment.
  • FIG. 1 is an application environment diagram of a method for running a resource value transfer in an embodiment.
  • the application environment includes a terminal 110, a first server 120, an access server 130, a resource transfer server 140, and a resource mapping cluster 150, wherein the terminal 110, the first server 120, the access server 130, and the resource transfer server 140.
  • the resource mapping cluster 150 can communicate over a network.
  • the first server 120 may include a plurality of merchant servers providing different services, wherein the services include physical commodity offering, virtual commodity offering, and virtual services, such as scheduled services, download services, and the like.
  • the resource transfer server 140 can include a plurality of third party servers that provide resource value transfer.
  • the resource transfer server 140 may include a primary server 141 and a backup server 142.
  • Each of the servers may be a single server or a cluster of servers, and may be a cloud server that provides basic cloud computing services such as a cloud server, a cloud database, a cloud storage, and a CDN.
  • the access server 130 may include a plurality of servers to jointly provide external services to form an access layer.
  • the terminal 110 may be a smartphone, a tablet, a notebook, a desktop computer, etc., but is not limited thereto.
  • the terminal 110 may send a service acquisition request to the first server 120.
  • the first server 120 generates a corresponding current service identifier according to the service acquisition request, and returns to the terminal 110.
  • the terminal 110 generates a resource value transfer request carrying the current service identifier and sends the request to the terminal.
  • the access server 130 queries the target resource transfer identifier corresponding to the current service identifier from the resource mapping relationship stored in the resource mapping cluster 150, and if so, obtains the target resource transfer server identifier associated with the target resource transfer identifier, thereby
  • the value transfer request is forwarded to the target resource transfer server 140 corresponding to the target resource transfer server identifier, and it is determined whether the target resource transfer server 140 has a fault. If there is a fault, the first payment failure response is returned to the terminal 110 to implement resource mapping and resource transfer.
  • the access server may query the resource mapping relationship to obtain the target resource transfer identifier corresponding to the current service identifier, and the target resource transfer identifier is associated.
  • the resource is transferred to the server identifier, so that the resource value transfer request corresponding to the same target resource transfer identifier is sent to the same target resource transfer server for processing. If the resource value transfer request corresponding to the same service identifier is repeatedly sent, the same resource is routed to the same The target resource transfer server processes the resource. If the target resource transfer server fails, the resource transfer failure is returned to the terminal, and the resource transfer is not performed again to avoid duplication.
  • the internal structure of access server 130 in FIG. 1 is as shown in FIG. 2, which includes a processor, memory, and network interface connected by a system bus.
  • the memory includes a nonvolatile storage medium and an internal memory.
  • the non-volatile storage medium of the computer device can store an operating system, a database, and computer readable instructions.
  • the processor can be caused to perform a method of resource value transfer, the database being used to store data.
  • the processor of the access server 130 is used to provide computing and control capabilities to support the operation of the entire access server 130.
  • the network interface of the access server 130 is used to communicate with the resource transfer server 140, the resource mapping cluster 150, and the like through a network connection, such as receiving response data returned by the resource transfer server 140.
  • FIG. 2 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the server to which the solution of the present application is applied.
  • the specific server may include a ratio. More or fewer components are shown in the figures, or some components are combined, or have different component arrangements.
  • a method for resource value transfer is provided to be applied to an access server in the application environment, and the following steps are included:
  • Step S210 Receive a resource value transfer request sent by the terminal, where the resource value transfer request includes a current service identifier.
  • the resource value transfer request is used to request the transfer of the resource value, and the resource value transfer includes multiple transfer types, such as recharge, deduction, and the like.
  • the current service identifier is used to uniquely identify the credential information corresponding to a service, and may be a string.
  • the current service identifier is a string identifying a merchant order, and each service has corresponding service credential information, and the service credential information is a user.
  • Obtain the credentials of the service which is used to describe the related content of the service, such as the identity of the user to be serviced, the name of the product or service, the amount of the resource to be transferred, the time of requesting the service, and so on.
  • the service credential information is a merchant order
  • the current service identifier is a merchant order number. In the same merchant order system, the merchant order numbers corresponding to any two different merchant orders are different.
  • Step S220 Query the resource mapping relationship, obtain the target resource transfer identifier corresponding to the current service identifier, and the target resource transfer identifier has an associated target resource transfer server identifier.
  • the resource mapping relationship is used to record the correspondence between the service identifier and the resource transfer identifier, and the resource transfer identifier is used to uniquely identify the credential information corresponding to the primary resource transfer, which may be a string, for example, the resource transfer identifier is a identifier.
  • the string of the payment order has a corresponding resource value transfer credential information for each resource value transfer, and the resource value transfer credential information is a credential for the user to perform resource value transfer, and is used to describe the related content of the resource value transfer, such as resource transfer.
  • the resource value transfer credential information is a payment order
  • the resource transfer identifier is a payment order number. In the same payment order system, the payment order numbers corresponding to any two different payment orders are different.
  • the resource transfer server When the resource transfer server receives the resource value transfer request carrying the current service identifier for the first time, the first resource transfer identifier is generated, and the server identifier corresponding to the current resource transfer server is obtained as the target resource transfer server identifier, and the first resource transfer identifier is established.
  • the association relationship with the target resource transfer server identifier is such that any resource transfer identifier has a unique target resource transfer server identifier, the resource transfer server returns a first resource transfer identifier, and the access server establishes a current service identifier and a first resource transfer identifier.
  • Correspondence and storage. Resource mapping relationships can be stored on the access server or sent to a dedicated high-performance storage server for storage.
  • Step S230 forwarding the resource value transfer request to the target resource transfer server corresponding to the target resource transfer server identifier.
  • the access server may obtain the target resource transfer identifier corresponding to the current service identifier according to the resource mapping relationship, thereby determining the target resource transfer server that needs to be forwarded by the resource value transfer request, and separately separating and storing the resource mapping relationship from the resource transfer server.
  • the resource mapping relationship can be obtained from the upper layer of the resource transfer server. Even if the target resource transfer server fails, the correct resource mapping relationship can be obtained, and the resource value transfer request corresponding to the current current service identifier is sent to the same target.
  • the resource transfer server processes it.
  • the terminal when the third resource transfer server processes the first resource value transfer request, although the resource value transfer is completed, but the fault occurs, and the terminal resource value transfer is not notified, the terminal repeatedly transmits the resource value transfer request carrying the same current service identifier. The resource value transfer request that is repeatedly sent at this time is still forwarded to the third resource transfer server.
  • Step S240 determining whether the target resource transfer server has a fault, and if there is a fault, returning the first resource transfer fault response to the terminal.
  • the resource value transfer request that is repeatedly sent repeatedly can be forwarded to the same target resource transfer server, and if the target resource transfer server has a fault, Then, the first resource transfer failure response is returned to the terminal, and the resource value transfer request is automatically sent to the backup resource transfer server, thereby avoiding duplicate resource value transfer at the backup resource transfer server. If there is no fault, the resource value transfer can continue.
  • the resource value transfer request sent by the terminal is received, the resource value transfer request includes the current service identifier, the resource mapping relationship is queried, the target resource transfer identifier corresponding to the current service identifier is obtained, and the target resource transfer identifier has an associated target resource transfer.
  • the server identifier forwards the resource value transfer request to the target resource transfer server corresponding to the target resource transfer server identifier, determines whether the target resource transfer server has a fault, and if there is a fault, returns a first resource transfer fault response to the terminal, where the resource transfer server
  • the resource mapping relationship can be obtained from the upper layer.
  • the target resource transfer server fails, the correct resource mapping relationship can be obtained, and the resource value transfer request corresponding to the current current service identifier is sent to the same target resource transfer server. Processing, if the target resource transfer server is faulty, returning the first resource transfer failure response to the terminal, and not automatically transmitting the resource value transfer request to the backup resource transfer server, avoiding A duplicate resource value transfer occurs on the backup resource transfer server.
  • step S220 includes:
  • Step S221 Send a resource mapping query request to the resource mapping server cluster, where the resource mapping query request includes the current service identifier.
  • the resource mapping server cluster is a storage middleware of a high performance and high reliability server including a plurality of storage resource mapping relationships
  • the resource mapping server cluster may be based on a paxos message-based consistency algorithm protocol design, by storing the resource mapping relationship to A resource mapping server cluster that backs up resource mapping relationships in multiple servers to ensure that the resource mapping data is the most accurate when an individual server fails. It can implement multi-device disaster recovery deployment and provide more reliable services.
  • Step S222 Receive a target resource transfer identifier corresponding to the current service identifier returned by the resource mapping server cluster according to the stored resource mapping relationship.
  • the access server sends a resource mapping query request carrying the current service identifier to the resource mapping server cluster, and the resource mapping server cluster returns the target resource transfer identifier corresponding to the current service identifier according to the stored resource mapping relationship.
  • the storage of the resource mapping relationship is separated from the access server, and is uniformly put into the resource mapping server cluster to implement the division of labor of the server, and the resource mapping server cluster realizes high reliability of the resource mapping relationship and is accessed.
  • the resource mapping relationship can be prevented from being saved in the access server that currently processes the resource value transfer request, and the resource mapping relationship is saved in the first access server, and the same resource value transfer request that is repeatedly sent next time is sent to The second access server cannot obtain the resource mapping relationship locally.
  • the method further includes:
  • Step S310 If the target resource transfer identifier corresponding to the current service identifier does not exist in the resource mapping relationship, select the target resource transfer server according to the preset rule, and forward the resource transfer request to the target resource transfer server, so that the target resource transfer server generates the target.
  • the resource transfer identifier establishes an association relationship between the target resource transfer identifier and the target resource transfer server identifier, and returns an association relationship.
  • the target resource transfer identifier corresponding to the current service identifier does not exist in the resource mapping relationship, the current service identifier is an unprocessed new service identifier, and is not a repeatedly transmitted resource value transfer request.
  • the target resource transfer server may be selected according to a preset rule, wherein the preset rule may be customized according to requirements, such as according to the pressure balance principle of the server.
  • the user identifier in the resource value transfer request is obtained, the target service segment to which the user identifier belongs is determined, and the target resource transfer server matching the target service segment is obtained.
  • Different users are divided into different service segments according to user information, and different service segments correspond to different resource transfer servers, which can improve the balanced allocation of resource transfer servers and the response speed of servers, such as transferring the resource values corresponding to users in Hubei.
  • the request is sent to a resource transfer server deployed in the Hubei region.
  • the target resource transfer server generates a corresponding new target resource transfer identifier according to the new service identifier, establishes an association relationship between the target resource transfer identifier and the target resource transfer server identifier, and returns an association relationship, so that the target resource transfer identifier can uniquely determine the target resource transfer. server.
  • Step S320 adding a mapping relationship between the current service identifier and the target resource transfer identifier according to the association relationship in the resource mapping relationship.
  • the mapping relationship between the current service identifier and the target resource transfer identifier is added according to the association relationship, and the next time if the same current service identifier exists, the corresponding target resource transfer identifier may be obtained from the resource mapping relationship. .
  • the target resource transfer identifier corresponding to the current service identifier does not exist in the resource mapping relationship, and the current resource value transfer request is not a duplicate resource value transfer request, and does not cause repeated resource value transfer.
  • the target resource transfer server is selected according to a preset rule and does not need to be forwarded to the designated resource transfer server.
  • the step of selecting the target resource transfer server according to the preset rule in step S310 comprises: determining whether the primary server has a fault, and if the primary server does not have a fault, selecting the primary server as the target resource transfer server; otherwise, selecting the primary The backup server corresponding to the server is the target resource transfer server.
  • each primary server has a corresponding backup server.
  • the resource value transfer request may be switched to the backup server for processing.
  • a resource value transfer request that is repeatedly sent or already in the process, even if the primary server fails, is routed to the previous primary server according to the target resource transfer identifier in the resource mapping relationship record, and does not switch the server to cause duplicate resource value transfer.
  • the terminal acquires the uncompleted resource transfer confirmation instruction, and reacquires the new second service identifier from the merchant server according to the uncompleted resource transfer confirmation instruction, because the second service identifier does not have a resource mapping relationship.
  • the uncompleted resource transfer confirmation instruction may be determined by the user querying the resource transfer record and clicking a corresponding button, such as receiving an uncompleted resource transfer confirmation command generated by the uncompleted resource transfer confirmation button.
  • the resource value transfer request may be sent to the backup server for processing even if the primary server fails, so that other new orders are not subject to the primary server failure.
  • the method further includes:
  • Step S410 If the target resource transfer server does not have a fault, send a resource value transfer authorization request to the terminal, and the resource value transfer authorization request carries the target resource transfer identifier.
  • the target resource transfer server needs to obtain the resource value transfer authorization information to verify the resource transfer authority of the user before performing the actual resource value transfer, and the resource value transfer can be actually completed only after the verification is passed.
  • the resource value transfer authorization request carries the current target resource transfer identifier, which is used to indicate the resource transfer that needs to be authorized. Different target resource transfer identifiers correspond to different resource transfers, and different resource value transfer authorization information is required.
  • the method before the step of sending the resource value transfer authorization request to the terminal, the method further includes: acquiring historical association information corresponding to the current target resource transfer identifier stored by the access server, and acquiring the current target resource transfer carried by the resource value transfer request.
  • the identifier corresponds to the current association information, and determines whether the historical association information is consistent with the current association information. If they are consistent, the step of transmitting the resource value transfer authorization request to the terminal is entered. If not, the fault response with the information inconsistency is returned to the terminal.
  • the related information may be information such as a resource transfer quota and a resource transfer account, such as a payment amount and a payment account number.
  • the target resource transfer identifier is used to compare the information corresponding to the current request with the last request, and the information is checked and verified to ensure the uniqueness of the resource transfer corresponding to the same target resource transfer identifier.
  • Step S420 The receiving terminal transfers the authorization information of the resource value returned according to the resource value transfer authorization request, and the resource value transfer authorization information carries the target resource transfer identifier.
  • the resource value transfer authorization information may be a password, a digital certificate, or the like.
  • the resource value transfer authorization information carries a target resource transfer identifier, and the target resource transfer identifier is used to indicate that the resource value transfer authorization information is used to verify which resource transfer process.
  • Step S430 the resource value transfer authorization information is sent to the target resource transfer server corresponding to the target resource transfer identifier, and it is determined again whether the target resource transfer server has a fault. If there is a fault, the second resource transfer fault response is returned to the terminal.
  • the target resource transfer server may actually complete the resource value transfer after receiving the resource value transfer authorization information, and at this time, determine whether the target resource transfer server has a fault again, and if there is a fault, return a second resource transfer fault response to the terminal, where The second resource transfer fault response may carry the phase of the current resource transfer and the fault cause analysis information.
  • the target resource transfer server fails. If the resource value transfer request corresponding to the same current service identifier that is repeatedly sent is received, it will be sent to the same target resource transfer server for processing, instead of transferring the resource value request. Automatic transfer to the backup resource transfer server also avoids duplicate resource value transfers on the backup resource transfer server.
  • the method further includes: if the target resource transfer server does not have a fault, receiving the resource transfer response returned by the target resource transfer server, and transferring the resource The response is determined according to the current resource transfer status corresponding to the target resource transfer identifier.
  • the current resource transfer state is used to describe whether the resource value is actually transferred successfully, and the flag bit represents different resource transfer states, such as 0 for the resource not being transferred, and 1 for the resource to complete the transfer.
  • the resource value transfer is required only if the resource has not been transferred. If the resource value transfer has been completed according to the previous resource value transfer request, the resource transfer status is modified as the resource completion transfer, and once the resource value transfer request is received again, the target is When the resource transfer server does not have a fault, the resource value transfer can be avoided according to the resource transfer state.
  • a system for resource value transfer including:
  • the access server 510 is configured to receive a resource value transfer request sent by the terminal, where the resource value transfer request includes a current service identifier, query a resource mapping relationship, obtain a target resource transfer identifier corresponding to the current service identifier, and the target resource transfer identifier has an associated target resource.
  • the server identifier is transferred, and the resource value transfer request is forwarded to the target resource transfer server corresponding to the target resource transfer server identifier.
  • the target resource transfer server 520 is configured to return a first resource transfer response according to the resource value transfer request, where the target resource transfer server is a backup server corresponding to the primary server or the primary server.
  • the access server may determine, according to the partial fault information, that the target resource transfer server has a fault. If the target resource transfer server has an overall failure, the first resource transfer response cannot be returned, and the access server may determine that the target resource transfer server generates a fault by not receiving the first resource transfer response after the preset time interval.
  • the access server 510 is further configured to determine, according to the first resource transfer response, whether the target resource transfer server has a fault, and if there is a fault, return a first resource transfer fault response to the terminal.
  • the resource mapping relationship can be obtained on the upper layer of the resource transfer server, and the correct resource mapping relationship can be obtained even if the target resource transfer server fails.
  • sending the resource value transfer request corresponding to the current current service identifier to the same target resource transfer server for processing, and if the target resource transfer server has a fault, returning the first resource transfer fault response to the terminal without transferring the resource value The request is automatically forwarded to the backup resource transfer server, which avoids duplicate resource value transfer on the backup resource transfer server.
  • the system further includes:
  • the resource mapping server cluster 530 is configured to receive a resource mapping query request sent by the access server, where the resource mapping query request includes a current service identifier, and returns a target resource transfer identifier corresponding to the current service identifier according to the stored resource mapping relationship.
  • the access server 510 is further configured to: if the target resource transfer identifier corresponding to the current service identifier does not exist in the resource mapping relationship, select the target resource transfer server according to the preset rule, and forward the resource transfer request to the target resource transfer. server.
  • the target resource transfer server 520 is further configured to generate a target resource transfer identifier according to the resource transfer request, establish an association relationship between the target resource transfer identifier and the target resource transfer server identifier, and return the association relationship.
  • the access server 510 is further configured to increase a mapping relationship between the current service identifier and the target resource transfer identifier according to the association relationship in the resource mapping relationship.
  • the access server 510 is further configured to determine whether the primary server has a fault. If the primary server does not have a fault, select the primary server as the target resource transfer server. If the primary server has a fault, select the backup corresponding to the primary server. The server is the target resource transfer server.
  • the access server 510 is further configured to: if the target resource transfer server 520 does not have a fault, send a resource value transfer authorization request to the terminal, where the resource value transfer authorization request carries the target resource transfer identifier, and the receiving terminal according to the resource
  • the resource value transfer authorization information returned by the value transfer authorization request, the resource value transfer authorization information carries the target resource transfer identifier, and the resource value transfer authorization information is sent to the target resource transfer server 520 corresponding to the target resource transfer identifier.
  • the target resource transfer server 520 is further configured to return a second resource transfer response according to the resource value transfer authorization information.
  • the access server 510 is further configured to determine, according to the second resource transfer response, whether the target resource transfer server has a fault, and if there is a fault, return a second payment fault response to the terminal.
  • the target resource transfer server 520 is further configured to obtain a current transfer status corresponding to the target resource transfer identifier. If the current transfer status is not transferred, the resource value transfer is completed according to the resource value transfer authorization information, if the current transfer status is If it has been transferred, it will return a reminder message.
  • the terminal, the merchant server, the access server, the resource transfer server, and the resource mapping server cluster form a resource value transfer system, as shown in FIG. 9 , which is a system architecture diagram of the resource value transfer system, and is applied to purchase.
  • the item service, the current service identifier is the merchant order identifier, and the resource transfer identifier is the payment order identifier.
  • the specific process of resource value transfer is as follows:
  • the terminal sends a first purchase request to the merchant server, and the merchant server generates a first merchant order identifier according to the first purchase request, and returns to the terminal.
  • the terminal sends a first payment request carrying the first merchant order identifier to the access server, and the access server sends a query request carrying the first merchant order identifier to the resource mapping server cluster, and the resource mapping server cluster according to the stored resource mapping relationship. It is determined that there is no mapping relationship between the first merchant order identifier and the first payment order identifier.
  • the access server determines, according to the user information in the first payment request, that the current user belongs to the user of segment A, and selects the non-faulted primary server corresponding to segment A, that is, the first resource transfer server, and forwards the first payment request to the first a resource transfer server, the first resource transfer server assigns a first payment order identifier, and returns an association relationship between the first payment order identifier and the first resource transfer server identifier to the access server.
  • the access server sends a mapping relationship establishment request to the resource mapping server cluster, where the mapping relationship establishment request carries the first merchant order identifier, the first payment order identifier, and the first resource transfer server identifier, and establishes the first merchant order in the resource mapping server cluster.
  • the mapping relationship with the first payment order identifier is identified.
  • the access server sends a payment authorization request carrying the first payment order identifier to the terminal, and receives an authorization response returned by the terminal, where the authorization response includes a first payment order identifier and a payment password.
  • the access server sends the first payment request to the first resource transfer server according to the first payment order identifier, and the first resource transfer server completes the payment according to the payment password, but after the payment is successful, the first resource transfer server fails, and does not return.
  • the payment is successfully responded to the terminal, and the process proceeds to step 7. If the first resource transfer server does not fail, the current payment status of the first payment order identifier is obtained, and if it is unpaid, the payment is made, and the current payment status is modified as paid. Returning the payment success response to the access server, the access server forwards the first payment success response to the terminal.
  • the terminal sends a second payment request carrying the first merchant order identifier to the access server, and the access server queries the resource mapping relationship to obtain the first payment order identifier corresponding to the first merchant order identifier.
  • the access server forwards the second payment request to the first resource transfer server corresponding to the first payment order identifier, determines that the first resource transfer server has a fault, and returns a payment failure response to the terminal.
  • the terminal sends a second purchase request to the merchant server, and the merchant server generates a second merchant order identifier according to the second purchase request, and returns the terminal to the terminal, and the terminal sends a third payment request carrying the second merchant order identifier to the access server,
  • the inbound server sends a query request carrying the second merchant order identifier to the resource mapping server cluster, and the resource mapping server cluster determines that there is no mapping relationship between the second merchant order identifier and the second payment order identifier according to the stored resource mapping relationship.
  • the access server determines, according to the user information in the second payment request, that the current user belongs to the segment A user, and selects the non-faulty backup server corresponding to the A segment, that is, the second resource transfer server, and forwards the second payment request to the first And the second resource transfer server allocates the second payment order identifier, and returns the association relationship between the second payment order identifier and the second resource transfer server identifier to the access server.
  • a server is further provided, and the internal structure of the server is as shown in FIG. 2, the server includes a device for transferring a resource value, and the device for transferring the value of the resource includes each module, and each module may be all or Partially implemented by software, hardware or a combination thereof.
  • an apparatus for resource value transfer including:
  • the receiving module 610 is configured to receive a resource value transfer request sent by the terminal, where the resource value transfer request includes a current service identifier.
  • the mapping module 620 is configured to query the resource mapping relationship, obtain the target resource transfer identifier corresponding to the current service identifier, and the target resource transfer identifier has an associated target resource transfer server identifier.
  • the first sending module 630 is configured to forward the resource value transfer request to the target resource transfer server corresponding to the target resource transfer server identifier.
  • the first judgment response module 640 is configured to determine whether the target resource transfer server has a fault, and if there is a fault, return a first resource transfer fault response to the terminal.
  • the mapping module 620 is further configured to send a resource mapping query request to the resource mapping server cluster, where the resource mapping query request includes a current service identifier, and the receiving resource mapping server cluster corresponds to the current service identifier returned by the stored resource mapping relationship.
  • Target resource transfer identifier is further configured to send a resource mapping query request to the resource mapping server cluster, where the resource mapping query request includes a current service identifier, and the receiving resource mapping server cluster corresponds to the current service identifier returned by the stored resource mapping relationship.
  • the device further includes:
  • the resource mapping relationship establishing module 650 is configured to: if the target resource transfer identifier corresponding to the current service identifier does not exist in the resource mapping relationship, select the target resource transfer server according to the preset rule, and forward the resource transfer request to the target resource transfer server, so that The target resource transfer server generates a target resource transfer identifier, establishes an association relationship between the target resource transfer identifier and the target resource transfer server identifier, returns the association relationship, and adds the current service identifier and the target resource transfer identifier according to the association relationship in the resource mapping relationship. Mapping relationship.
  • the resource mapping relationship establishing module 650 includes:
  • the target resource transfer server determining unit 651 is configured to determine whether the primary server has a fault. If the primary server does not have a fault, the primary server is selected as the target resource transfer server. If the primary server has a fault, the backup server corresponding to the primary server is selected as the target. Resource transfer server.
  • the device further includes:
  • the resource authorization transfer module 660 is configured to send a resource value transfer authorization request to the terminal if the target resource transfer server does not have a fault, and the resource value transfer authorization request carries the target resource transfer identifier, and the receiving terminal returns the authorization request according to the resource value transfer request.
  • the resource value transfer authorization information, the resource value transfer authorization information carries the target resource transfer identifier, and the resource value transfer authorization information is sent to the target resource transfer server corresponding to the target resource transfer identifier.
  • the second judgment response module 670 is configured to determine whether the target resource transfer server has a fault, and if there is a fault, return a second resource transfer fault response to the terminal.
  • the apparatus further includes:
  • the resource transfer response receiving module 680 is configured to receive a resource transfer response returned by the target resource transfer server if the target resource transfer server does not have a fault, and the resource transfer response is determined according to the current resource transfer state corresponding to the target resource transfer identifier.
  • the various steps in the various embodiments of the present application are not necessarily performed in the order indicated by the steps. Except as explicitly stated herein, the execution of these steps is not strictly limited, and the steps may be performed in other orders. Moreover, at least some of the steps in the embodiments may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be executed at different times, and the execution of these sub-steps or stages The order is also not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of the other steps.
  • Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM is available in a variety of formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization chain.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • Synchlink DRAM SLDRAM
  • Memory Bus Radbus
  • RDRAM Direct RAM
  • DRAM Direct Memory Bus Dynamic RAM
  • RDRAM Memory Bus Dynamic RAM

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer And Data Communications (AREA)

Abstract

A method for transferring a resource value, comprising: an access server receiving a resource value transfer request sent by a terminal, the resource value transfer request comprising a current service identifier; querying a resource mapping relationship to acquire a target resource transfer identifier corresponding to the current service identifier, the target resource transfer identifier having an associated target resource transfer server identifier; forwarding the resource value transfer request to a target resource transfer server corresponding to the target resource transfer server identifier; and when the target resource transfer server has a fault, the access server returning a first resource transfer fault response to the terminal.

Description

资源数值转移的方法、服务器、系统和存储介质Method, server, system and storage medium for resource value transfer
本申请要求于2017年02月23日提交中国专利局,申请号为201710101008.0,申请名称为“资源数值转移的方法、装置和系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application entitled "Method, Apparatus and System for Resource Value Transfer" by the Chinese Patent Office on February 23, 2017, the application number is 201710101008.0, the entire contents of which are incorporated herein by reference. In the application.
技术领域Technical field
本申请涉及计算机技术领域,特别是涉及一种资源数值转移的方法、服务器、系统和存储介质。The present application relates to the field of computer technology, and in particular, to a method, a server, a system, and a storage medium for resource value transfer.
背景技术Background technique
随着计算机技术的发展,人们在进行资源数值转移时不仅可以通过线下的方式,还可以通过网络进行资源数值的转移。资源数值转移是指资源从第一帐户到第二帐户,用于标识资源数量的资源数值相应变化的过程。数值转移的资源包括但不限于电子钱包、虚拟红包、电子券、积分券、积分、电子代金券、游戏币、虚拟物品等。With the development of computer technology, people can not only transfer the value of resources, but also transfer the value of resources through the network. The resource value transfer refers to a process in which the resource value from the first account to the second account is used to identify the corresponding change in the number of resources. Value-shifted resources include, but are not limited to, electronic wallets, virtual red envelopes, electronic coupons, point coupons, points, electronic vouchers, game coins, virtual items, and the like.
在进行资源数值转移的过程中,可能遇到针对同一笔订单用户多次操作发送重复的资源数值转移请求,传统的资源数值转移的方法在从故障服务器切换至备份服务器进行资源数值转移时,可能存在由于重要数据来不及转移导致出现重复资源数值转移,不能满足资源数值转移的可靠稳定性。In the process of resource value transfer, a repeated resource value transfer request may be sent for multiple operations of the same order user. The traditional resource value transfer method may be switched from the faulty server to the backup server for resource value transfer. There is a duplication of resource value transfer due to the inability to transfer important data, which cannot satisfy the reliable stability of resource value transfer.
发明内容Summary of the invention
根据本申请提供的各种实施例,提供一种资源数值转移的方法、服务器、系统和存储介质。In accordance with various embodiments provided herein, a method, server, system, and storage medium for resource value transfer are provided.
一种资源数值转移的方法,所述方法包括:A method for resource value transfer, the method comprising:
接入服务器接收终端发送的资源数值转移请求,所述资源数值转移请求 包括当前服务标识;The access server receives a resource value transfer request sent by the terminal, where the resource value transfer request includes a current service identifier;
所述接入服务器查询资源映射关系,获取所述当前服务标识对应的目标资源转移标识,所述目标资源转移标识存在关联的目标资源转移服务器标识;The access server queries the resource mapping relationship, and acquires a target resource transfer identifier corresponding to the current service identifier, where the target resource transfer identifier has an associated target resource transfer server identifier;
所述接入服务器将所述资源数值转移请求转发至所述目标资源转移服务器标识对应的目标资源转移服务器;及Transmitting, by the access server, the resource value transfer request to a target resource transfer server corresponding to the target resource transfer server identifier; and
当所述目标资源转移服务器存在故障时,所述接入服务器返回第一资源转移故障响应至所述终端。When the target resource transfer server has a failure, the access server returns a first resource transfer failure response to the terminal.
一种服务器,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行如下步骤:A server comprising a memory and a processor, the memory storing computer readable instructions, the computer readable instructions being executed by the processor, such that the processor performs the following steps:
接收终端发送的资源数值转移请求,所述资源数值转移请求包括当前服务标识;Receiving a resource value transfer request sent by the terminal, where the resource value transfer request includes a current service identifier;
查询资源映射关系,获取所述当前服务标识对应的目标资源转移标识,所述目标资源转移标识存在关联的目标资源转移服务器标识;Querying a resource mapping relationship, and acquiring a target resource transfer identifier corresponding to the current service identifier, where the target resource transfer identifier has an associated target resource transfer server identifier;
将所述资源数值转移请求转发至所述目标资源转移服务器标识对应的目标资源转移服务器;及Forwarding the resource value transfer request to a target resource transfer server corresponding to the target resource transfer server identifier; and
当所述目标资源转移服务器存在故障时,返回第一资源转移故障响应至所述终端。When the target resource transfer server has a fault, returning a first resource transfer fault response to the terminal.
一种资源数值转移的系统,所述系统包括:A system for resource value transfer, the system comprising:
接入服务器,用于接收终端发送的资源数值转移请求,所述资源数值转移请求包括当前服务标识,查询资源映射关系,获取所述当前服务标识对应的目标资源转移标识,所述目标资源转移标识存在关联的目标资源转移服务器标识,将所述资源数值转移请求转发至所述目标资源转移服务器标识对应的目标资源转移服务器;The access server is configured to receive a resource value transfer request sent by the terminal, where the resource value transfer request includes a current service identifier, a query resource mapping relationship, and a target resource transfer identifier corresponding to the current service identifier, where the target resource transfer identifier is There is an associated target resource transfer server identifier, and the resource value transfer request is forwarded to a target resource transfer server corresponding to the target resource transfer server identifier;
目标资源转移服务器,用于根据所述资源数值转移请求返回第一资源转移响应,所述目标资源转移服务器为主服务器或所述主服务器对应的备份服务器;及a target resource transfer server, configured to return a first resource transfer response according to the resource value transfer request, where the target resource transfer server is a backup server corresponding to the primary server or the primary server;
所述接入服务器还用于当根据所述第一资源转移响应确定所述目标资源转移服务器存在故障时,返回第一资源转移故障响应至所述终端。The access server is further configured to: when it is determined that the target resource transfer server has a fault according to the first resource transfer response, return a first resource transfer fault response to the terminal.
一个或多个存储有计算机可读指令的非易失性存储介质,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行如下步骤:One or more non-volatile storage media storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the following steps:
接收终端发送的资源数值转移请求,所述资源数值转移请求包括当前服务标识;Receiving a resource value transfer request sent by the terminal, where the resource value transfer request includes a current service identifier;
查询资源映射关系,获取所述当前服务标识对应的目标资源转移标识,所述目标资源转移标识存在关联的目标资源转移服务器标识;Querying a resource mapping relationship, and acquiring a target resource transfer identifier corresponding to the current service identifier, where the target resource transfer identifier has an associated target resource transfer server identifier;
将所述资源数值转移请求转发至所述目标资源转移服务器标识对应的目标资源转移服务器;及Forwarding the resource value transfer request to a target resource transfer server corresponding to the target resource transfer server identifier; and
当所述目标资源转移服务器存在故障时,返回第一资源转移故障响应至所述终端。When the target resource transfer server has a fault, returning a first resource transfer fault response to the terminal.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。Details of one or more embodiments of the present application are set forth in the accompanying drawings and description below. Other features, objects, and advantages of the invention will be apparent from the description and appended claims.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application. Other drawings may also be obtained from those of ordinary skill in the art in light of the inventive work.
图1为一个实施例中资源数值转移的方法的应用环境图;1 is an application environment diagram of a method for resource value transfer in an embodiment;
图2为一个实施例中图1中接入服务器的内部结构图;2 is an internal structural diagram of an access server in FIG. 1 in an embodiment;
图3为一个实施例中资源数值转移的方法的流程图;3 is a flow chart of a method for resource value transfer in an embodiment;
图4为一个实施例中获取当前服务标识对应的资源转移标识的流程图;4 is a flowchart of obtaining a resource transfer identifier corresponding to a current service identifier in an embodiment;
图5为一个实施例中建立映射关系的流程图;FIG. 5 is a flowchart of establishing a mapping relationship in an embodiment;
图6为一个实施例中获取资源授权信息后进行资源转移的流程图;6 is a flowchart of performing resource transfer after acquiring resource authorization information in an embodiment;
图7为一个实施例中资源数值转移的系统的结构框图;7 is a structural block diagram of a system for resource value transfer in an embodiment;
图8为另一个实施例中资源数值转移的系统的结构框图;8 is a structural block diagram of a system for resource value transfer in another embodiment;
图9为一个具体的实施例中资源数值转移的系统的架构图;9 is an architectural diagram of a system for resource value transfer in a specific embodiment;
图10为一个具体的实施例中资源数值转移的方法的交互示意图;10 is a schematic diagram of interaction of a method for resource value transfer in a specific embodiment;
图11为一个实施例中资源数值转移的装置的结构框图;11 is a structural block diagram of an apparatus for resource value transfer in an embodiment;
图12为另一个实施例中资源数值转移的装置的结构框图;12 is a structural block diagram of an apparatus for resource value transfer in another embodiment;
图13为一个实施例中资源映射关系建立模块的结构框图;FIG. 13 is a structural block diagram of a resource mapping relationship establishing module in an embodiment; FIG.
图14为再一个实施例中资源数值转移的装置的结构框图;及FIG. 14 is a structural block diagram of an apparatus for resource value transfer in still another embodiment; and
图15为又一个实施例中资源数值转移的装置的结构框图。Figure 15 is a block diagram showing the structure of an apparatus for resource value transfer in still another embodiment.
具体实施方式detailed description
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
图1为一个实施例中资源数值转移的方法运行的应用环境图。如图1所示,该应用环境包括终端110、第一服务器120、接入服务器130、资源转移服务器140,资源映射集群150,其中终端110、第一服务器120、接入服务器130、资源转移服务器140,资源映射集群150可以通过网络进行通信。其中第一服务器120可以包括多个提供不同服务的商户服务器,其中服务包括实体商品提供、虚拟商品提供和虚拟服务,如预定服务、下载服务等。资源转移服务器140可以包括多个提供资源数值转移的第三方服务器。资源转移服务器140可包括主服务器141和备份服务器142,当主服务器141出现故障时,采用备份服务器提供资源移动服务,保证服务质量。其中各个服务器可以是单个服务器或服务器集群,可以是提供云服务器、云数据库、云存储和CDN等基础云计算服务的云服务器。接入服务器130可包括多个服务器,共同对外提供服务,组成接入层。FIG. 1 is an application environment diagram of a method for running a resource value transfer in an embodiment. As shown in FIG. 1 , the application environment includes a terminal 110, a first server 120, an access server 130, a resource transfer server 140, and a resource mapping cluster 150, wherein the terminal 110, the first server 120, the access server 130, and the resource transfer server 140. The resource mapping cluster 150 can communicate over a network. The first server 120 may include a plurality of merchant servers providing different services, wherein the services include physical commodity offering, virtual commodity offering, and virtual services, such as scheduled services, download services, and the like. The resource transfer server 140 can include a plurality of third party servers that provide resource value transfer. The resource transfer server 140 may include a primary server 141 and a backup server 142. When the primary server 141 fails, the backup server is used to provide a resource mobility service to ensure quality of service. Each of the servers may be a single server or a cluster of servers, and may be a cloud server that provides basic cloud computing services such as a cloud server, a cloud database, a cloud storage, and a CDN. The access server 130 may include a plurality of servers to jointly provide external services to form an access layer.
终端110可为智能手机、平板电脑、笔记本电脑、台式计算机等,但并 不局限于此。终端110可以向第一服务器120发送服务获取请求,第一服务器120根据服务获取请求生成对应的当前服务标识,并返回至终端110,终端110生成携带当前服务标识的资源数值转移请求并发送至接入服务器130,接入服务器130从资源映射集群150存储的资源映射关系中查询当前服务标识对应的目标资源转移标识,如果存在,则获取目标资源转移标识关联的目标资源转移服务器标识,从而将资源数值转移请求转发至目标资源转移服务器标识对应的目标资源转移服务器140,判断目标资源转移服务器140是否存在故障,如果存在故障,则返回第一支付故障响应至终端110,实现资源映射关系与资源转移服务器的分离存储,即使目标资源转移服务器出现故障,也可通过接入服务器查询资源映射关系获取当前服务标识对应的目标资源转移标识,且目标资源转移标识存在关联的目标资源转移服务器标识,从而使得同一个目标资源转移标识对应的资源数值转移请求发送至同一个目标资源转移服务器进行处理,如果重复发送同一个服务标识对应的资源数值转移请求,会路由到同一个目标资源转移服务器进行处理,如果目标资源转移服务器故障导致上一次资源转移出现故障,则返回资源转移故障响应至终端,不会再次进行资源转移,避免重复。The terminal 110 may be a smartphone, a tablet, a notebook, a desktop computer, etc., but is not limited thereto. The terminal 110 may send a service acquisition request to the first server 120. The first server 120 generates a corresponding current service identifier according to the service acquisition request, and returns to the terminal 110. The terminal 110 generates a resource value transfer request carrying the current service identifier and sends the request to the terminal. In the server 130, the access server 130 queries the target resource transfer identifier corresponding to the current service identifier from the resource mapping relationship stored in the resource mapping cluster 150, and if so, obtains the target resource transfer server identifier associated with the target resource transfer identifier, thereby The value transfer request is forwarded to the target resource transfer server 140 corresponding to the target resource transfer server identifier, and it is determined whether the target resource transfer server 140 has a fault. If there is a fault, the first payment failure response is returned to the terminal 110 to implement resource mapping and resource transfer. Separate storage of the server, even if the target resource transfer server fails, the access server may query the resource mapping relationship to obtain the target resource transfer identifier corresponding to the current service identifier, and the target resource transfer identifier is associated. The resource is transferred to the server identifier, so that the resource value transfer request corresponding to the same target resource transfer identifier is sent to the same target resource transfer server for processing. If the resource value transfer request corresponding to the same service identifier is repeatedly sent, the same resource is routed to the same The target resource transfer server processes the resource. If the target resource transfer server fails, the resource transfer failure is returned to the terminal, and the resource transfer is not performed again to avoid duplication.
在一个实施例中,图1中的接入服务器130的内部结构如图2所示,该接入服务器130包括通过系统总线连接的处理器、存储器和网络接口。存储器包括非易失性存储介质和内存储器。该计算机设备的非易失性存储介质可存储操作系统、数据库和计算机可读指令。该计算机可读指令被执行时,可使得处理器执行一种资源数值转移的方法,数据库用于存储数据。该接入服务器130的处理器用于提供计算和控制能力,支撑整个接入服务器130的运行。该接入服务器130的网络接口用于与资源转移服务器140,资源映射集群150等通过网络连接通信,比如接收资源转移服务器140返回的响应数据等。本领域技术人员可以理解,图2中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的服务器的限定,具体的服务器可以包括比图中所示更多或更少的部件,或者组合某些部件, 或者具有不同的部件布置。In one embodiment, the internal structure of access server 130 in FIG. 1 is as shown in FIG. 2, which includes a processor, memory, and network interface connected by a system bus. The memory includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium of the computer device can store an operating system, a database, and computer readable instructions. When the computer readable instructions are executed, the processor can be caused to perform a method of resource value transfer, the database being used to store data. The processor of the access server 130 is used to provide computing and control capabilities to support the operation of the entire access server 130. The network interface of the access server 130 is used to communicate with the resource transfer server 140, the resource mapping cluster 150, and the like through a network connection, such as receiving response data returned by the resource transfer server 140. It will be understood by those skilled in the art that the structure shown in FIG. 2 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the server to which the solution of the present application is applied. The specific server may include a ratio. More or fewer components are shown in the figures, or some components are combined, or have different component arrangements.
在一个实施例中,如图3所示,提供了一种资源数值转移的方法,以应用于上述应用环境中的接入服务器来举例说明,包括如下步骤:In an embodiment, as shown in FIG. 3, a method for resource value transfer is provided to be applied to an access server in the application environment, and the following steps are included:
步骤S210,接收终端发送的资源数值转移请求,资源数值转移请求包括当前服务标识。Step S210: Receive a resource value transfer request sent by the terminal, where the resource value transfer request includes a current service identifier.
具体地,资源数值转移请求用于请求进行资源数值的转移,资源数值转移包括多种转移类型,如充值、扣费等。当前服务标识用于对一次服务对应的凭据信息进行唯一标识,可为字符串,如当前服务标识为标识一个商户订单的字符串,每次服务都有对应的服务凭据信息,服务凭据信息为用户获取服务的凭据,用于描述此次服务的相关内容,如待服务用户标识、商品或服务名称、待转移资源数值额度、请求服务的时间等。在一个具体的实施例中,服务凭据信息为商户订单,当前服务标识为商户订单编号,在同一个商户订单系统中,任意两笔不同的商户订单对应的商户订单编号不同。Specifically, the resource value transfer request is used to request the transfer of the resource value, and the resource value transfer includes multiple transfer types, such as recharge, deduction, and the like. The current service identifier is used to uniquely identify the credential information corresponding to a service, and may be a string. For example, the current service identifier is a string identifying a merchant order, and each service has corresponding service credential information, and the service credential information is a user. Obtain the credentials of the service, which is used to describe the related content of the service, such as the identity of the user to be serviced, the name of the product or service, the amount of the resource to be transferred, the time of requesting the service, and so on. In a specific embodiment, the service credential information is a merchant order, and the current service identifier is a merchant order number. In the same merchant order system, the merchant order numbers corresponding to any two different merchant orders are different.
步骤S220,查询资源映射关系,获取当前服务标识对应的目标资源转移标识,目标资源转移标识存在关联的目标资源转移服务器标识。Step S220: Query the resource mapping relationship, obtain the target resource transfer identifier corresponding to the current service identifier, and the target resource transfer identifier has an associated target resource transfer server identifier.
具体地,资源映射关系用于记录服务标识与资源转移标识之间的对应关系,资源转移标识用于对一次资源转移对应的凭据信息进行唯一标识,可为字符串,如资源转移标识为标识一个支付订单的字符串,每次资源数值转移都有对应的资源数值转移凭据信息,资源数值转移凭据信息为用户进行资源数值转移的凭据,用于描述此次资源数值转移的相关内容,如资源转出方信息、资源转入方信息、转移资源数值额度、资源数值转移的时间等。在一个具体的实施例中,资源数值转移凭据信息为支付订单,资源转移标识为支付订单编号,在同一个支付订单系统中,任意两笔不同的支付订单对应的支付订单编号不同。Specifically, the resource mapping relationship is used to record the correspondence between the service identifier and the resource transfer identifier, and the resource transfer identifier is used to uniquely identify the credential information corresponding to the primary resource transfer, which may be a string, for example, the resource transfer identifier is a identifier. The string of the payment order has a corresponding resource value transfer credential information for each resource value transfer, and the resource value transfer credential information is a credential for the user to perform resource value transfer, and is used to describe the related content of the resource value transfer, such as resource transfer. Outbound information, resource transferee information, transfer resource value quota, and resource value transfer time. In a specific embodiment, the resource value transfer credential information is a payment order, and the resource transfer identifier is a payment order number. In the same payment order system, the payment order numbers corresponding to any two different payment orders are different.
资源转移服务器在第一次接收到携带当前服务标识的资源数值转移请求时,生成第一资源转移标识,并获取当前资源转移服务器对应的服务器标识作为目标资源转移服务器标识,建立第一资源转移标识与目标资源转移服务 器标识的关联关系,使得任一资源转移标识都有唯一确定的目标资源转移服务器标识,资源转移服务器返回第一资源转移标识,接入服务器建立当前服务标识与第一资源转移标识的对应关系,并进行存储。可将资源映射关系存储在接入服务器,也可发送至专门的高性能存储服务器进行存储。When the resource transfer server receives the resource value transfer request carrying the current service identifier for the first time, the first resource transfer identifier is generated, and the server identifier corresponding to the current resource transfer server is obtained as the target resource transfer server identifier, and the first resource transfer identifier is established. The association relationship with the target resource transfer server identifier is such that any resource transfer identifier has a unique target resource transfer server identifier, the resource transfer server returns a first resource transfer identifier, and the access server establishes a current service identifier and a first resource transfer identifier. Correspondence and storage. Resource mapping relationships can be stored on the access server or sent to a dedicated high-performance storage server for storage.
步骤S230,将资源数值转移请求转发至目标资源转移服务器标识对应的目标资源转移服务器。Step S230, forwarding the resource value transfer request to the target resource transfer server corresponding to the target resource transfer server identifier.
具体地,在接入服务器就可根据资源映射关系获取当前服务标识对应的目标资源转移标识,从而确定资源数值转移请求需要转发的目标资源转移服务器,将资源映射关系与资源转移服务器分离存储,在资源转移服务器的上一层就可获取到资源映射关系,即使目标资源转移服务器出现故障,也可获取到正确的资源映射关系,将同一个当前服务标识对应的资源数值转移请求发送至同一个目标资源转移服务器进行处理。如第三资源转移服务器在处理第一次资源数值转移请求时,虽然资源数值转移完成,但是发生故障,来不及通知终端资源数值转移成功,导致终端重复发送携带同一个当前服务标识的资源数值转移请求,此时重复发送的资源数值转移请求仍然会转发至第三资源转移服务器。Specifically, the access server may obtain the target resource transfer identifier corresponding to the current service identifier according to the resource mapping relationship, thereby determining the target resource transfer server that needs to be forwarded by the resource value transfer request, and separately separating and storing the resource mapping relationship from the resource transfer server. The resource mapping relationship can be obtained from the upper layer of the resource transfer server. Even if the target resource transfer server fails, the correct resource mapping relationship can be obtained, and the resource value transfer request corresponding to the current current service identifier is sent to the same target. The resource transfer server processes it. For example, when the third resource transfer server processes the first resource value transfer request, although the resource value transfer is completed, but the fault occurs, and the terminal resource value transfer is not notified, the terminal repeatedly transmits the resource value transfer request carrying the same current service identifier. The resource value transfer request that is repeatedly sent at this time is still forwarded to the third resource transfer server.
步骤S240,判断目标资源转移服务器是否存在故障,如果存在故障,则返回第一资源转移故障响应至终端。Step S240, determining whether the target resource transfer server has a fault, and if there is a fault, returning the first resource transfer fault response to the terminal.
具体地,对于资源映射关系中存在当前服务标识对应的目标资源转移标识的情况,能将多次重复发送的资源数值转移请求转发至同一个目标资源转移服务器,且如果目标资源转移服务器存在故障,则返回第一资源转移故障响应至终端,而不会将资源数值转移请求自动转发送至备份资源转移服务器,避免了在备份资源转移服务器发生重复资源数值转移。如果不存在故障,则可继续进行资源数值转移。Specifically, for the case that the target resource transfer identifier corresponding to the current service identifier exists in the resource mapping relationship, the resource value transfer request that is repeatedly sent repeatedly can be forwarded to the same target resource transfer server, and if the target resource transfer server has a fault, Then, the first resource transfer failure response is returned to the terminal, and the resource value transfer request is automatically sent to the backup resource transfer server, thereby avoiding duplicate resource value transfer at the backup resource transfer server. If there is no fault, the resource value transfer can continue.
本实施例中,通过接收终端发送的资源数值转移请求,资源数值转移请求包括当前服务标识,查询资源映射关系,获取当前服务标识对应的目标资源转移标识,目标资源转移标识存在关联的目标资源转移服务器标识,将资 源数值转移请求转发至目标资源转移服务器标识对应的目标资源转移服务器,判断目标资源转移服务器是否存在故障,如果存在故障,则返回第一资源转移故障响应至终端,在资源转移服务器的上一层就可获取到资源映射关系,即使目标资源转移服务器出现故障,也可获取到正确的资源映射关系,将同一个当前服务标识对应的资源数值转移请求发送至同一个目标资源转移服务器进行处理,如果目标资源转移服务器存在故障,则返回第一资源转移故障响应至终端,而不会将资源数值转移请求自动转发送至备份资源转移服务器,避免了在备份资源转移服务器发生重复资源数值转移。In this embodiment, the resource value transfer request sent by the terminal is received, the resource value transfer request includes the current service identifier, the resource mapping relationship is queried, the target resource transfer identifier corresponding to the current service identifier is obtained, and the target resource transfer identifier has an associated target resource transfer. The server identifier forwards the resource value transfer request to the target resource transfer server corresponding to the target resource transfer server identifier, determines whether the target resource transfer server has a fault, and if there is a fault, returns a first resource transfer fault response to the terminal, where the resource transfer server The resource mapping relationship can be obtained from the upper layer. Even if the target resource transfer server fails, the correct resource mapping relationship can be obtained, and the resource value transfer request corresponding to the current current service identifier is sent to the same target resource transfer server. Processing, if the target resource transfer server is faulty, returning the first resource transfer failure response to the terminal, and not automatically transmitting the resource value transfer request to the backup resource transfer server, avoiding A duplicate resource value transfer occurs on the backup resource transfer server.
在一个实施例中,如图4所示,步骤S220包括:In an embodiment, as shown in FIG. 4, step S220 includes:
步骤S221,发送资源映射查询请求至资源映射服务器集群,资源映射查询请求包括当前服务标识。Step S221: Send a resource mapping query request to the resource mapping server cluster, where the resource mapping query request includes the current service identifier.
具体地,资源映射服务器集群是包括多个存储资源映射关系的高性能高可靠服务器的存储中间件,资源映射服务器集群可基于paxos基于消息传递的一致性算法协议设计,通过将资源映射关系存储至资源映射服务器集群,在多个服务器中备份资源映射关系,保证个别服务器故障情况下,查询到资源映射数据也是最准确的,能够做到多机房容灾部署,提供更加高可靠的服务。Specifically, the resource mapping server cluster is a storage middleware of a high performance and high reliability server including a plurality of storage resource mapping relationships, and the resource mapping server cluster may be based on a paxos message-based consistency algorithm protocol design, by storing the resource mapping relationship to A resource mapping server cluster that backs up resource mapping relationships in multiple servers to ensure that the resource mapping data is the most accurate when an individual server fails. It can implement multi-device disaster recovery deployment and provide more reliable services.
步骤S222,接收资源映射服务器集群根据存储的资源映射关系返回的当前服务标识对应的目标资源转移标识。Step S222: Receive a target resource transfer identifier corresponding to the current service identifier returned by the resource mapping server cluster according to the stored resource mapping relationship.
具体地,接入服务器发送携带当前服务标识的资源映射查询请求至资源映射服务器集群,资源映射服务器集群根据存储的资源映射关系返回的当前服务标识对应的目标资源转移标识。Specifically, the access server sends a resource mapping query request carrying the current service identifier to the resource mapping server cluster, and the resource mapping server cluster returns the target resource transfer identifier corresponding to the current service identifier according to the stored resource mapping relationship.
本实施例中,将资源映射关系的存储与接入服务器分离,统一放入资源映射服务器集群,实现服务器的分工协作,且通过资源映射服务器集群实现资源映射关系的高可靠性,且在接入服务器存在多个时,可避免资源映射关系保存在当前处理资源数值转移请求的接入服务器时,出现资源映射关系保存在第一接入服务器,而下一次重复发送的同一资源数值转移请求发送至第二接入服务器,第二接入服务器无法在本地获取资源映射关系的情况。In this embodiment, the storage of the resource mapping relationship is separated from the access server, and is uniformly put into the resource mapping server cluster to implement the division of labor of the server, and the resource mapping server cluster realizes high reliability of the resource mapping relationship and is accessed. When there are multiple servers, the resource mapping relationship can be prevented from being saved in the access server that currently processes the resource value transfer request, and the resource mapping relationship is saved in the first access server, and the same resource value transfer request that is repeatedly sent next time is sent to The second access server cannot obtain the resource mapping relationship locally.
在一个实施例中,如图5所示,步骤S210之后,还包括:In an embodiment, as shown in FIG. 5, after step S210, the method further includes:
步骤S310,如果资源映射关系中不存在当前服务标识对应的目标资源转移标识,则根据预设规则选择目标资源转移服务器,将资源转移请求转发至目标资源转移服务器,以使目标资源转移服务器生成目标资源转移标识,建立目标资源转移标识与目标资源转移服务器标识的关联关系,返回关联关系。Step S310: If the target resource transfer identifier corresponding to the current service identifier does not exist in the resource mapping relationship, select the target resource transfer server according to the preset rule, and forward the resource transfer request to the target resource transfer server, so that the target resource transfer server generates the target. The resource transfer identifier establishes an association relationship between the target resource transfer identifier and the target resource transfer server identifier, and returns an association relationship.
具体地,如果资源映射关系中不存在当前服务标识对应的目标资源转移标识,则说明当前服务标识是未处理过的新的服务标识,不会是重复发送的资源数值转移请求。可根据预设规则选择目标资源转移服务器,其中预设规则可根据需要自定义,如根据服务器的压力均衡原则选择。在一个实施例中,获取所述资源数值转移请求中的用户标识,判断所述用户标识所属的目标服务段,获取与所述目标服务段匹配的目标资源转移服务器。根据用户信息将不同的用户分为不同的服务段,不同的服务段对应不同的资源转移服务器,可提高资源转移服务器的均衡分配和服务器的响应速度,如将湖北地区的用户对应的资源数值转移请求发送至部署在湖北地区的资源转移服务器。目标资源转移服务器根据新的服务标识生成对应的新的目标资源转移标识,建立目标资源转移标识与目标资源转移服务器标识的关联关系,返回关联关系,从而使得目标资源转移标识能唯一确定目标资源转移服务器。Specifically, if the target resource transfer identifier corresponding to the current service identifier does not exist in the resource mapping relationship, the current service identifier is an unprocessed new service identifier, and is not a repeatedly transmitted resource value transfer request. The target resource transfer server may be selected according to a preset rule, wherein the preset rule may be customized according to requirements, such as according to the pressure balance principle of the server. In an embodiment, the user identifier in the resource value transfer request is obtained, the target service segment to which the user identifier belongs is determined, and the target resource transfer server matching the target service segment is obtained. Different users are divided into different service segments according to user information, and different service segments correspond to different resource transfer servers, which can improve the balanced allocation of resource transfer servers and the response speed of servers, such as transferring the resource values corresponding to users in Hubei. The request is sent to a resource transfer server deployed in the Hubei region. The target resource transfer server generates a corresponding new target resource transfer identifier according to the new service identifier, establishes an association relationship between the target resource transfer identifier and the target resource transfer server identifier, and returns an association relationship, so that the target resource transfer identifier can uniquely determine the target resource transfer. server.
步骤S320,在资源映射关系中根据关联关系增加当前服务标识与目标资源转移标识的映射关系。Step S320, adding a mapping relationship between the current service identifier and the target resource transfer identifier according to the association relationship in the resource mapping relationship.
具体地,在资源映射关系中根据关联关系增加当前服务标识与目标资源转移标识的映射关系,用于下一次如果存在相同的当前服务标识,则可从资源映射关系中获取对应的目标资源转移标识。Specifically, in the resource mapping relationship, the mapping relationship between the current service identifier and the target resource transfer identifier is added according to the association relationship, and the next time if the same current service identifier exists, the corresponding target resource transfer identifier may be obtained from the resource mapping relationship. .
本实施例中,通过资源映射关系中不存在当前服务标识对应的目标资源转移标识可判断当前资源数值转移请求不会是重复发送的资源数值转移请求,不会导致重复的资源数值转移,从而可根据预设规则选择目标资源转移服务器,无需转发至指定的资源转移服务器。In this embodiment, the target resource transfer identifier corresponding to the current service identifier does not exist in the resource mapping relationship, and the current resource value transfer request is not a duplicate resource value transfer request, and does not cause repeated resource value transfer. The target resource transfer server is selected according to a preset rule and does not need to be forwarded to the designated resource transfer server.
在一个实施例中,步骤S310中根据预设规则选择目标资源转移服务器的 步骤包括:判断主服务器是否存在故障,如果主服务器不存在故障,则选择主服务器为目标资源转移服务器,否则,选择主服务器对应的备份服务器为目标资源转移服务器。In an embodiment, the step of selecting the target resource transfer server according to the preset rule in step S310 comprises: determining whether the primary server has a fault, and if the primary server does not have a fault, selecting the primary server as the target resource transfer server; otherwise, selecting the primary The backup server corresponding to the server is the target resource transfer server.
具体地,每个主服务器都存在对应的备份服务器,在主服务器发生故障,且不是重复发送的或已经在流程中的资源数值转移请求时,可将资源数值转移请求切换至备份服务器进行处理。重复发送的或已经在流程中的资源数值转移请求,即使主服务器发生故障也是根据资源映射关系记录中的目标资源转移标识路由到之前的主服务器中,不会切换服务器导致重复资源数值转移。在一个实施例中,如果主服务器发生故障,终端获取未完成资源转移确认指令,根据未完成资源转移确认指令向商户服务器重新获取新的第二服务标识,由于第二服务标识不存在资源映射关系,从而可将携带第二服务标识的资源数值转移请求转发至无故障的备份服务器处理,重新进行资源数值转移。未完成资源转移确认指令可由用户查询资源转移记录确定并点击相应的按键产生,如接收作用于未完成资源转移确认按键生成的未完成资源转移确认指令。Specifically, each primary server has a corresponding backup server. When the primary server fails, and the resource value transfer request is not repeatedly sent or already in the process, the resource value transfer request may be switched to the backup server for processing. A resource value transfer request that is repeatedly sent or already in the process, even if the primary server fails, is routed to the previous primary server according to the target resource transfer identifier in the resource mapping relationship record, and does not switch the server to cause duplicate resource value transfer. In an embodiment, if the primary server fails, the terminal acquires the uncompleted resource transfer confirmation instruction, and reacquires the new second service identifier from the merchant server according to the uncompleted resource transfer confirmation instruction, because the second service identifier does not have a resource mapping relationship. Therefore, the resource value transfer request carrying the second service identifier can be forwarded to the non-faulty backup server for processing, and the resource value transfer is performed again. The uncompleted resource transfer confirmation instruction may be determined by the user querying the resource transfer record and clicking a corresponding button, such as receiving an uncompleted resource transfer confirmation command generated by the uncompleted resource transfer confirmation button.
本实施例中,如果当前服务标识不存在对应的目标资源转移标识,则即使主服务器发生故障,也可将资源数值转移请求发送至备份服务器进行处理,使得其它的新的订单不受到主服务器故障的影响,提高对外提供服务的稳定性,使得资源数值转移在避免重复和服务的及时性间达到平衡。In this embodiment, if the current target identifier does not have a corresponding target resource transfer identifier, the resource value transfer request may be sent to the backup server for processing even if the primary server fails, so that other new orders are not subject to the primary server failure. The impact of improving the stability of external service delivery, so that resource value transfer balances between avoiding duplication and timeliness of service.
在一个实施例中,如图6所示,步骤S240之后,还包括:In an embodiment, as shown in FIG. 6, after step S240, the method further includes:
步骤S410,如果目标资源转移服务器不存在故障,则发送资源数值转移授权请求至终端,资源数值转移授权请求携带目标资源转移标识。Step S410: If the target resource transfer server does not have a fault, send a resource value transfer authorization request to the terminal, and the resource value transfer authorization request carries the target resource transfer identifier.
具体地,目标资源转移服务器在进行实际资源数值转移之前需要获取资源数值转移授权信息对用户的资源转移权限进行验证,只有验证通过才能实际完成资源数值转移。资源数值转移授权请求携带当前目标资源转移标识,用于表明需要授权的资源转移,不同的目标资源转移标识对应了不同的资源转移,需要不同的资源数值转移授权信息。Specifically, the target resource transfer server needs to obtain the resource value transfer authorization information to verify the resource transfer authority of the user before performing the actual resource value transfer, and the resource value transfer can be actually completed only after the verification is passed. The resource value transfer authorization request carries the current target resource transfer identifier, which is used to indicate the resource transfer that needs to be authorized. Different target resource transfer identifiers correspond to different resource transfers, and different resource value transfer authorization information is required.
在一个实施例中,发送资源数值转移授权请求至终端的步骤之前,还包 括:获取接入服务器存储的与当前目标资源转移标识对应的历史关联信息,获取资源数值转移请求携带的当前目标资源转移标识对应当前关联信息,判断历史关联信息与当前关联信息是否一致,如果一致,则进入发送资源数值转移授权请求至终端的步骤,如果不一致,则返回信息不一致的故障响应至终端。其中关联信息可以是资源转移额度、资源转移账号等信息,如支付金额、支付账号等。通过目标资源转移标识对比本次请求对应的信息与上次请求是否一致,对信息进行核对和校验,可保证相同的目标资源转移标识对应的资源转移的唯一性。In an embodiment, before the step of sending the resource value transfer authorization request to the terminal, the method further includes: acquiring historical association information corresponding to the current target resource transfer identifier stored by the access server, and acquiring the current target resource transfer carried by the resource value transfer request. The identifier corresponds to the current association information, and determines whether the historical association information is consistent with the current association information. If they are consistent, the step of transmitting the resource value transfer authorization request to the terminal is entered. If not, the fault response with the information inconsistency is returned to the terminal. The related information may be information such as a resource transfer quota and a resource transfer account, such as a payment amount and a payment account number. The target resource transfer identifier is used to compare the information corresponding to the current request with the last request, and the information is checked and verified to ensure the uniqueness of the resource transfer corresponding to the same target resource transfer identifier.
步骤S420,接收终端根据资源数值转移授权请求返回的资源数值转移授权信息,资源数值转移授权信息携带目标资源转移标识。Step S420: The receiving terminal transfers the authorization information of the resource value returned according to the resource value transfer authorization request, and the resource value transfer authorization information carries the target resource transfer identifier.
具体地,资源数值转移授权信息可以为密码、数字证书等。资源数值转移授权信息携带目标资源转移标识,目标资源转移标识用于表明资源数值转移授权信息用于验证哪个资源转移过程。Specifically, the resource value transfer authorization information may be a password, a digital certificate, or the like. The resource value transfer authorization information carries a target resource transfer identifier, and the target resource transfer identifier is used to indicate that the resource value transfer authorization information is used to verify which resource transfer process.
步骤S430,将资源数值转移授权信息发送至目标资源转移标识对应的目标资源转移服务器,再次判断目标资源转移服务器是否存在故障,如果存在故障,则返回第二资源转移故障响应至终端。Step S430, the resource value transfer authorization information is sent to the target resource transfer server corresponding to the target resource transfer identifier, and it is determined again whether the target resource transfer server has a fault. If there is a fault, the second resource transfer fault response is returned to the terminal.
具体地,目标资源转移服务器收到资源数值转移授权信息就可实际完成资源数值转移,此时再次判断目标资源转移服务器是否存在故障,如果存在故障,则返回第二资源转移故障响应至终端,其中第二资源转移故障响应可携带当前资源转移所处的阶段和故障原因分析信息等。在此阶段目标资源转移服务器发生故障,后续如果接收到重复发送的同一个当前服务标识对应的资源数值转移请求,也会发送至同一个目标资源转移服务器进行处理,而不会将资源数值转移请求自动转发送至备份资源转移服务器,也可避免在备份资源转移服务器发生重复资源数值转移。Specifically, the target resource transfer server may actually complete the resource value transfer after receiving the resource value transfer authorization information, and at this time, determine whether the target resource transfer server has a fault again, and if there is a fault, return a second resource transfer fault response to the terminal, where The second resource transfer fault response may carry the phase of the current resource transfer and the fault cause analysis information. At this stage, the target resource transfer server fails. If the resource value transfer request corresponding to the same current service identifier that is repeatedly sent is received, it will be sent to the same target resource transfer server for processing, instead of transferring the resource value request. Automatic transfer to the backup resource transfer server also avoids duplicate resource value transfers on the backup resource transfer server.
在一个实施例中,步骤S430中再次判断所述目标资源转移服务器是否存在故障的步骤之后,还包括:如果目标资源转移服务器不存在故障,则接收目标资源转移服务器返回的资源转移响应,资源转移响应根据目标资源转移 标识对应的当前资源转移状态确定。In an embodiment, after the step of determining, in step S430, whether the target resource transfer server has a fault, the method further includes: if the target resource transfer server does not have a fault, receiving the resource transfer response returned by the target resource transfer server, and transferring the resource The response is determined according to the current resource transfer status corresponding to the target resource transfer identifier.
具体地,当前资源转移状态用于描述资源数值是否实际转移成功,可通过标志位代表不同的资源转移状态,如0代表资源未转移,1代表资源完成转移。只有资源未转移,才需要进行资源数值转移,如果根据上一次的资源数值转移请求已经完成资源数值的转移,则修改资源转移状态为资源完成转移,再一次收到资源数值转移请求后,在目标资源转移服务器不存在故障时根据资源转移状态可避免重复进行资源数值转移。Specifically, the current resource transfer state is used to describe whether the resource value is actually transferred successfully, and the flag bit represents different resource transfer states, such as 0 for the resource not being transferred, and 1 for the resource to complete the transfer. The resource value transfer is required only if the resource has not been transferred. If the resource value transfer has been completed according to the previous resource value transfer request, the resource transfer status is modified as the resource completion transfer, and once the resource value transfer request is received again, the target is When the resource transfer server does not have a fault, the resource value transfer can be avoided according to the resource transfer state.
在一个实施例中,如图7所示,提供了一种资源数值转移的系统,包括:In one embodiment, as shown in FIG. 7, a system for resource value transfer is provided, including:
接入服务器510,用于接收终端发送的资源数值转移请求,资源数值转移请求包括当前服务标识,查询资源映射关系,获取当前服务标识对应的目标资源转移标识,目标资源转移标识存在关联的目标资源转移服务器标识,将资源数值转移请求转发至目标资源转移服务器标识对应的目标资源转移服务器。The access server 510 is configured to receive a resource value transfer request sent by the terminal, where the resource value transfer request includes a current service identifier, query a resource mapping relationship, obtain a target resource transfer identifier corresponding to the current service identifier, and the target resource transfer identifier has an associated target resource. The server identifier is transferred, and the resource value transfer request is forwarded to the target resource transfer server corresponding to the target resource transfer server identifier.
目标资源转移服务器520,用于根据资源数值转移请求返回第一资源转移响应,目标资源转移服务器为主服务器或主服务器对应的备份服务器。The target resource transfer server 520 is configured to return a first resource transfer response according to the resource value transfer request, where the target resource transfer server is a backup server corresponding to the primary server or the primary server.
具体地,如果目标资源转移服务器发生部分故障,则返回的第一资源转移响应携带部分故障信息,接入服务器可根据部分故障信息判断出目标资源转移服务器存在故障。如果目标资源转移服务器发生整体故障,则无法返回第一资源转移响应,接入服务器可通过在预设时间间隔后没有接收到第一资源转移响应判断目标资源转移服务器生成故障。Specifically, if the target resource transfer server partially fails, the returned first resource transfer response carries part of the fault information, and the access server may determine, according to the partial fault information, that the target resource transfer server has a fault. If the target resource transfer server has an overall failure, the first resource transfer response cannot be returned, and the access server may determine that the target resource transfer server generates a fault by not receiving the first resource transfer response after the preset time interval.
接入服务器510还用于根据第一资源转移响应判断目标资源转移服务器是否存在故障,如果存在故障,则返回第一资源转移故障响应至终端。The access server 510 is further configured to determine, according to the first resource transfer response, whether the target resource transfer server has a fault, and if there is a fault, return a first resource transfer fault response to the terminal.
本实施例中,通过接入服务器与目标资源转移服务器的配合,在资源转移服务器的上一层就可获取到资源映射关系,即使目标资源转移服务器出现故障,也可获取到正确的资源映射关系,将同一个当前服务标识对应的资源数值转移请求发送至同一个目标资源转移服务器进行处理,如果目标资源转 移服务器存在故障,则返回第一资源转移故障响应至终端,而不会将资源数值转移请求自动转发送至备份资源转移服务器,避免了在备份资源转移服务器发生重复资源数值转移。In this embodiment, by matching the access server with the target resource transfer server, the resource mapping relationship can be obtained on the upper layer of the resource transfer server, and the correct resource mapping relationship can be obtained even if the target resource transfer server fails. And sending the resource value transfer request corresponding to the current current service identifier to the same target resource transfer server for processing, and if the target resource transfer server has a fault, returning the first resource transfer fault response to the terminal without transferring the resource value The request is automatically forwarded to the backup resource transfer server, which avoids duplicate resource value transfer on the backup resource transfer server.
在一个实施例中,如图8所示,系统还包括:In an embodiment, as shown in FIG. 8, the system further includes:
资源映射服务器集群530,资源映射服务器集群用于接收接入服务器发送的资源映射查询请求,资源映射查询请求包括当前服务标识,根据存储的资源映射关系返回与当前服务标识对应的目标资源转移标识。The resource mapping server cluster 530 is configured to receive a resource mapping query request sent by the access server, where the resource mapping query request includes a current service identifier, and returns a target resource transfer identifier corresponding to the current service identifier according to the stored resource mapping relationship.
在一个实施例中,接入服务器510还用于如果资源映射关系中不存在当前服务标识对应的目标资源转移标识,则根据预设规则选择目标资源转移服务器,将资源转移请求转发至目标资源转移服务器。In an embodiment, the access server 510 is further configured to: if the target resource transfer identifier corresponding to the current service identifier does not exist in the resource mapping relationship, select the target resource transfer server according to the preset rule, and forward the resource transfer request to the target resource transfer. server.
目标资源转移服务器520还用于根据资源转移请求生成目标资源转移标识,建立目标资源转移标识与目标资源转移服务器标识的关联关系,返回关联关系。The target resource transfer server 520 is further configured to generate a target resource transfer identifier according to the resource transfer request, establish an association relationship between the target resource transfer identifier and the target resource transfer server identifier, and return the association relationship.
接入服务器510还用于在资源映射关系中根据关联关系增加当前服务标识与目标资源转移标识的映射关系。The access server 510 is further configured to increase a mapping relationship between the current service identifier and the target resource transfer identifier according to the association relationship in the resource mapping relationship.
在一个实施例中,接入服务器510还用于判断主服务器是否存在故障,如果主服务器不存在故障,则选择主服务器为目标资源转移服务器,如果主服务器存在故障,则选择主服务器对应的备份服务器为目标资源转移服务器。In an embodiment, the access server 510 is further configured to determine whether the primary server has a fault. If the primary server does not have a fault, select the primary server as the target resource transfer server. If the primary server has a fault, select the backup corresponding to the primary server. The server is the target resource transfer server.
在一个实施例中,接入服务器510还用于如果目标资源转移服务器520不存在故障,则发送资源数值转移授权请求至终端,资源数值转移授权请求携带所述目标资源转移标识,接收终端根据资源数值转移授权请求返回的资源数值转移授权信息,资源数值转移授权信息携带所述目标资源转移标识,将资源数值转移授权信息发送至目标资源转移标识对应的目标资源转移服务器520。In an embodiment, the access server 510 is further configured to: if the target resource transfer server 520 does not have a fault, send a resource value transfer authorization request to the terminal, where the resource value transfer authorization request carries the target resource transfer identifier, and the receiving terminal according to the resource The resource value transfer authorization information returned by the value transfer authorization request, the resource value transfer authorization information carries the target resource transfer identifier, and the resource value transfer authorization information is sent to the target resource transfer server 520 corresponding to the target resource transfer identifier.
目标资源转移服务器520还用于根据资源数值转移授权信息返回第二资源转移响应。The target resource transfer server 520 is further configured to return a second resource transfer response according to the resource value transfer authorization information.
接入服务器510还用于根据第二资源转移响应判断目标资源转移服务器 是否存在故障,如果存在故障,则返回第二支付故障响应至终端。The access server 510 is further configured to determine, according to the second resource transfer response, whether the target resource transfer server has a fault, and if there is a fault, return a second payment fault response to the terminal.
在一个实施例中,目标资源转移服务器520还用于获取目标资源转移标识对应的当前转移状态,如果当前转移状态为未转移,则根据资源数值转移授权信息完成资源数值转移,如果当前转移状态为已转移,则返回提醒信息。In an embodiment, the target resource transfer server 520 is further configured to obtain a current transfer status corresponding to the target resource transfer identifier. If the current transfer status is not transferred, the resource value transfer is completed according to the resource value transfer authorization information, if the current transfer status is If it has been transferred, it will return a reminder message.
在一个具体的实施例中,终端、商户服务器、接入服务器、资源转移服务器、资源映射服务器集群组成资源数值转移系统,如图9所示,为资源数值转移系统的系统架构示意图,应用于购买物品服务,当前服务标识为商户订单标识,资源转移标识为支付订单标识,结合图10所示,资源数值转移的具体过程如下:In a specific embodiment, the terminal, the merchant server, the access server, the resource transfer server, and the resource mapping server cluster form a resource value transfer system, as shown in FIG. 9 , which is a system architecture diagram of the resource value transfer system, and is applied to purchase. The item service, the current service identifier is the merchant order identifier, and the resource transfer identifier is the payment order identifier. As shown in FIG. 10, the specific process of resource value transfer is as follows:
1、终端向商户服务器发送第一购买请求,商户服务器根据第一购买请求生成第一商户订单标识,并返回至终端。1. The terminal sends a first purchase request to the merchant server, and the merchant server generates a first merchant order identifier according to the first purchase request, and returns to the terminal.
2、终端发送携带第一商户订单标识的第一支付请求至接入服务器,接入服务器发送携带第一商户订单标识的查询请求至资源映射服务器集群,资源映射服务器集群根据存储的资源映射关系,判断不存在第一商户订单标识与第一支付订单标识的映射关系。2. The terminal sends a first payment request carrying the first merchant order identifier to the access server, and the access server sends a query request carrying the first merchant order identifier to the resource mapping server cluster, and the resource mapping server cluster according to the stored resource mapping relationship. It is determined that there is no mapping relationship between the first merchant order identifier and the first payment order identifier.
3、接入服务器根据第一支付请求中的用户信息判断当前用户属于A号段用户,选择A号段对应的无故障的主服务器,即第一资源转移服务器,将第一支付请求转发至第一资源转移服务器,第一资源转移服务器分配第一支付订单标识,并将第一支付订单标识与第一资源转移服务器标识的关联关系返回至接入服务器。3. The access server determines, according to the user information in the first payment request, that the current user belongs to the user of segment A, and selects the non-faulted primary server corresponding to segment A, that is, the first resource transfer server, and forwards the first payment request to the first a resource transfer server, the first resource transfer server assigns a first payment order identifier, and returns an association relationship between the first payment order identifier and the first resource transfer server identifier to the access server.
4、接入服务器向资源映射服务器集群发送映射关系建立请求,映射关系建立请求携带第一商户订单标识、第一支付订单标识与第一资源转移服务器标识,在资源映射服务器集群建立第一商户订单标识与第一支付订单标识的映射关系。The access server sends a mapping relationship establishment request to the resource mapping server cluster, where the mapping relationship establishment request carries the first merchant order identifier, the first payment order identifier, and the first resource transfer server identifier, and establishes the first merchant order in the resource mapping server cluster. The mapping relationship with the first payment order identifier is identified.
5、接入服务器发送携带第一支付订单标识的支付授权请求至终端,接收终端返回的授权响应,授权响应包括第一支付订单标识、支付密码。5. The access server sends a payment authorization request carrying the first payment order identifier to the terminal, and receives an authorization response returned by the terminal, where the authorization response includes a first payment order identifier and a payment password.
6、接入服务器根据第一支付订单标识将第一支付请求发送至第一资源转移服务器,第一资源转移服务器根据支付密码完成支付,但支付成功后,第一资源转移服务器发生故障,没有返回支付成功响应至终端,进入步骤7,如果第一资源转移服务器没有发生故障,则获取第一支付订单标识的当前支付状态,如果为未支付,则进行支付,并修改当前支付状态为已支付,返回支付成功响应至接入服务器,接入服务器转发第一支付成功响应至终端。6. The access server sends the first payment request to the first resource transfer server according to the first payment order identifier, and the first resource transfer server completes the payment according to the payment password, but after the payment is successful, the first resource transfer server fails, and does not return. The payment is successfully responded to the terminal, and the process proceeds to step 7. If the first resource transfer server does not fail, the current payment status of the first payment order identifier is obtained, and if it is unpaid, the payment is made, and the current payment status is modified as paid. Returning the payment success response to the access server, the access server forwards the first payment success response to the terminal.
7、终端发送携带第一商户订单标识的第二支付请求至接入服务器,接入服务器查询资源映射关系得到第一商户订单标识对应的第一支付订单标识。The terminal sends a second payment request carrying the first merchant order identifier to the access server, and the access server queries the resource mapping relationship to obtain the first payment order identifier corresponding to the first merchant order identifier.
8、接入服务器将第二支付请求转发至第一支付订单标识对应的第一资源转移服务器,判断第一资源转移服务器存在故障,返回支付故障响应至终端。8. The access server forwards the second payment request to the first resource transfer server corresponding to the first payment order identifier, determines that the first resource transfer server has a fault, and returns a payment failure response to the terminal.
9、终端向商户服务器发送第二购买请求,商户服务器根据第二购买请求生成第二商户订单标识,并返回至终端,终端发送携带第二商户订单标识的第三支付请求至接入服务器,接入服务器发送携带第二商户订单标识的查询请求至资源映射服务器集群,资源映射服务器集群根据存储的资源映射关系,判断不存在第二商户订单标识与第二支付订单标识的映射关系。The terminal sends a second purchase request to the merchant server, and the merchant server generates a second merchant order identifier according to the second purchase request, and returns the terminal to the terminal, and the terminal sends a third payment request carrying the second merchant order identifier to the access server, The inbound server sends a query request carrying the second merchant order identifier to the resource mapping server cluster, and the resource mapping server cluster determines that there is no mapping relationship between the second merchant order identifier and the second payment order identifier according to the stored resource mapping relationship.
10、接入服务器根据第二支付请求中的用户信息判断当前用户属于A号段用户,选择A号段对应的无故障的备份服务器,即第二资源转移服务器,将第二支付请求转发至第二资源转移服务器,第二资源转移服务器分配第二支付订单标识,并将第二支付订单标识与第二资源转移服务器标识的关联关系返回至接入服务器。10. The access server determines, according to the user information in the second payment request, that the current user belongs to the segment A user, and selects the non-faulty backup server corresponding to the A segment, that is, the second resource transfer server, and forwards the second payment request to the first And the second resource transfer server allocates the second payment order identifier, and returns the association relationship between the second payment order identifier and the second resource transfer server identifier to the access server.
在一个实施例中,还提供了一种服务器,该服务器的内部结构可如图2所示,该服务器包括资源数值转移的装置,资源数值转移的装置中包括各个模块,每个模块可全部或部分通过软件、硬件或其组合来实现。In an embodiment, a server is further provided, and the internal structure of the server is as shown in FIG. 2, the server includes a device for transferring a resource value, and the device for transferring the value of the resource includes each module, and each module may be all or Partially implemented by software, hardware or a combination thereof.
在一个实施例中,如图11所示,提供了一种资源数值转移的装置,包括:In one embodiment, as shown in FIG. 11, an apparatus for resource value transfer is provided, including:
接收模块610,用于接收终端发送的资源数值转移请求,资源数值转移请求包括当前服务标识。The receiving module 610 is configured to receive a resource value transfer request sent by the terminal, where the resource value transfer request includes a current service identifier.
映射模块620,用于查询资源映射关系,获取当前服务标识对应的目标 资源转移标识,目标资源转移标识存在关联的目标资源转移服务器标识。The mapping module 620 is configured to query the resource mapping relationship, obtain the target resource transfer identifier corresponding to the current service identifier, and the target resource transfer identifier has an associated target resource transfer server identifier.
第一发送模块630,用于将资源数值转移请求转发至目标资源转移服务器标识对应的目标资源转移服务器。The first sending module 630 is configured to forward the resource value transfer request to the target resource transfer server corresponding to the target resource transfer server identifier.
第一判断响应模块640,用于判断目标资源转移服务器是否存在故障,如果存在故障,则返回第一资源转移故障响应至终端。The first judgment response module 640 is configured to determine whether the target resource transfer server has a fault, and if there is a fault, return a first resource transfer fault response to the terminal.
在一个实施例中,映射模块620还用于发送资源映射查询请求至资源映射服务器集群,资源映射查询请求包括当前服务标识,接收资源映射服务器集群根据存储的资源映射关系返回的当前服务标识对应的目标资源转移标识。In an embodiment, the mapping module 620 is further configured to send a resource mapping query request to the resource mapping server cluster, where the resource mapping query request includes a current service identifier, and the receiving resource mapping server cluster corresponds to the current service identifier returned by the stored resource mapping relationship. Target resource transfer identifier.
在一个实施例中,如图12所示,装置还包括:In an embodiment, as shown in FIG. 12, the device further includes:
资源映射关系建立模块650,用于如果资源映射关系中不存在当前服务标识对应的目标资源转移标识,则根据预设规则选择目标资源转移服务器,将资源转移请求转发至目标资源转移服务器,以使目标资源转移服务器生成目标资源转移标识,建立目标资源转移标识与目标资源转移服务器标识的关联关系,返回所述关联关系,在资源映射关系中根据所述关联关系增加当前服务标识与目标资源转移标识的映射关系。The resource mapping relationship establishing module 650 is configured to: if the target resource transfer identifier corresponding to the current service identifier does not exist in the resource mapping relationship, select the target resource transfer server according to the preset rule, and forward the resource transfer request to the target resource transfer server, so that The target resource transfer server generates a target resource transfer identifier, establishes an association relationship between the target resource transfer identifier and the target resource transfer server identifier, returns the association relationship, and adds the current service identifier and the target resource transfer identifier according to the association relationship in the resource mapping relationship. Mapping relationship.
在一个实施例中,如图13所示,资源映射关系建立模块650包括:In an embodiment, as shown in FIG. 13, the resource mapping relationship establishing module 650 includes:
目标资源转移服务器确定单元651,用于判断主服务器是否存在故障,如果主服务器不存在故障,则选择主服务器为目标资源转移服务器,如果主服务器存在故障,则选择主服务器对应的备份服务器为目标资源转移服务器。The target resource transfer server determining unit 651 is configured to determine whether the primary server has a fault. If the primary server does not have a fault, the primary server is selected as the target resource transfer server. If the primary server has a fault, the backup server corresponding to the primary server is selected as the target. Resource transfer server.
在一个实施例中,如图14所示,装置还包括:In an embodiment, as shown in FIG. 14, the device further includes:
资源授权转移模块660,用于如果目标资源转移服务器不存在故障,则发送资源数值转移授权请求至所述终端,资源数值转移授权请求携带目标资源转移标识,接收终端根据资源数值转移授权请求返回的资源数值转移授权信息,资源数值转移授权信息携带目标资源转移标识,将资源数值转移授权信息发送至所述目标资源转移标识对应的目标资源转移服务器。The resource authorization transfer module 660 is configured to send a resource value transfer authorization request to the terminal if the target resource transfer server does not have a fault, and the resource value transfer authorization request carries the target resource transfer identifier, and the receiving terminal returns the authorization request according to the resource value transfer request. The resource value transfer authorization information, the resource value transfer authorization information carries the target resource transfer identifier, and the resource value transfer authorization information is sent to the target resource transfer server corresponding to the target resource transfer identifier.
第二判断响应模块670,用于判断目标资源转移服务器是否存在故障, 如果存在故障,则返回第二资源转移故障响应至终端。The second judgment response module 670 is configured to determine whether the target resource transfer server has a fault, and if there is a fault, return a second resource transfer fault response to the terminal.
在一个实施例中,如图15所示,装置还包括:In one embodiment, as shown in FIG. 15, the apparatus further includes:
资源转移响应接收模块680,用于如果目标资源转移服务器不存在故障,则接收所述目标资源转移服务器返回的资源转移响应,资源转移响应根据目标资源转移标识对应的当前资源转移状态确定。The resource transfer response receiving module 680 is configured to receive a resource transfer response returned by the target resource transfer server if the target resource transfer server does not have a fault, and the resource transfer response is determined according to the current resource transfer state corresponding to the target resource transfer identifier.
应该理解的是,虽然本申请各实施例中的各个步骤并不是必然按照步骤标号指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,各实施例中至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that the various steps in the various embodiments of the present application are not necessarily performed in the order indicated by the steps. Except as explicitly stated herein, the execution of these steps is not strictly limited, and the steps may be performed in other orders. Moreover, at least some of the steps in the embodiments may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be executed at different times, and the execution of these sub-steps or stages The order is also not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of the other steps.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the above embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a non-volatile computer readable storage medium. Wherein, the program, when executed, may include the flow of an embodiment of the methods as described above. Any reference to a memory, storage, database or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization chain. Synchlink DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未 对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments may be arbitrarily combined. For the sake of brevity of description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, All should be considered as the scope of this manual.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments are merely illustrative of several embodiments of the present application, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the invention. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the present application. Therefore, the scope of the invention should be determined by the appended claims.

Claims (24)

  1. 一种资源数值转移的方法,所述方法包括:A method for resource value transfer, the method comprising:
    接入服务器接收终端发送的资源数值转移请求,所述资源数值转移请求包括当前服务标识;The access server receives a resource value transfer request sent by the terminal, where the resource value transfer request includes a current service identifier;
    所述接入服务器查询资源映射关系,获取所述当前服务标识对应的目标资源转移标识,所述目标资源转移标识存在关联的目标资源转移服务器标识;The access server queries the resource mapping relationship, and acquires a target resource transfer identifier corresponding to the current service identifier, where the target resource transfer identifier has an associated target resource transfer server identifier;
    所述接入服务器将所述资源数值转移请求转发至所述目标资源转移服务器标识对应的目标资源转移服务器;及Transmitting, by the access server, the resource value transfer request to a target resource transfer server corresponding to the target resource transfer server identifier; and
    当所述目标资源转移服务器存在故障时,所述接入服务器返回第一资源转移故障响应至所述终端。When the target resource transfer server has a failure, the access server returns a first resource transfer failure response to the terminal.
  2. 根据权利要求1所述的方法,其特征在于,所述接入服务器查询资源映射关系,获取所述当前服务标识对应的目标资源转移标识包括:The method according to claim 1, wherein the access server queries the resource mapping relationship, and the target resource transfer identifier corresponding to the current service identifier includes:
    所述接入服务器发送资源映射查询请求至资源映射服务器集群,所述资源映射查询请求包括所述当前服务标识;The access server sends a resource mapping query request to the resource mapping server cluster, where the resource mapping query request includes the current service identifier;
    所述接入服务器接收所述资源映射服务器集群根据存储的资源映射关系返回的所述当前服务标识对应的目标资源转移标识。The access server receives the target resource transfer identifier corresponding to the current service identifier returned by the resource mapping server cluster according to the stored resource mapping relationship.
  3. 根据权利要求1所述的方法,其特征在于,所述接入服务器接收终端发送的资源转移请求之后,还包括:The method according to claim 1, wherein after the access server receives the resource transfer request sent by the terminal, the method further includes:
    如果所述资源映射关系中不存在当前服务标识对应的目标资源转移标识,则所述接入服务器根据预设规则选择目标资源转移服务器,将所述资源转移请求转发至所述目标资源转移服务器,以使所述目标资源转移服务器生成所述目标资源转移标识,建立所述目标资源转移标识与目标资源转移服务器标识的关联关系,返回所述关联关系;If the target resource transfer identifier corresponding to the current service identifier does not exist in the resource mapping relationship, the access server selects the target resource transfer server according to the preset rule, and forwards the resource transfer request to the target resource transfer server. And the target resource transfer server generates the target resource transfer identifier, establishes an association relationship between the target resource transfer identifier and the target resource transfer server identifier, and returns the association relationship;
    所述接入服务器在所述资源映射关系中根据所述关联关系增加所述当前服务标识与所述目标资源转移标识的映射关系。The access server adds a mapping relationship between the current service identifier and the target resource transfer identifier according to the association relationship in the resource mapping relationship.
  4. 根据权利要求3所述的方法,其特征在于,所述接入服务器根据预设规则选择目标资源转移服务器包括:The method according to claim 3, wherein the selecting, by the access server, the target resource transfer server according to the preset rule comprises:
    如果主服务器不存在故障,则所述接入服务器选择所述主服务器为目标资源转移服务器;If the primary server does not have a fault, the access server selects the primary server as a target resource transfer server;
    如果所述主服务器存在故障,则所述接入服务器选择所述主服务器对应的备份服务器为目标资源转移服务器。If the primary server is faulty, the access server selects the backup server corresponding to the primary server as the target resource transfer server.
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    如果所述目标资源转移服务器不存在故障,则所述接入服务器发送资源数值转移授权请求至所述终端,所述资源数值转移授权请求携带所述目标资源转移标识;If the target resource transfer server does not have a fault, the access server sends a resource value transfer authorization request to the terminal, and the resource value transfer authorization request carries the target resource transfer identifier;
    所述接入服务器接收所述终端根据所述资源数值转移授权请求返回的资源数值转移授权信息,所述资源数值转移授权信息携带所述目标资源转移标识;The access server receives the resource value transfer authorization information returned by the terminal according to the resource value transfer authorization request, and the resource value transfer authorization information carries the target resource transfer identifier;
    所述接入服务器将所述资源数值转移授权信息发送至所述目标资源转移标识对应的目标资源转移服务器,如果所述目标资源转移服务器存在故障,则返回第二资源转移故障响应至所述终端。The access server sends the resource value transfer authorization information to the target resource transfer server corresponding to the target resource transfer identifier, and if the target resource transfer server has a fault, returning a second resource transfer failure response to the terminal .
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:The method of claim 5, wherein the method further comprises:
    如果所述目标资源转移服务器不存在故障,则所述接入服务器接收所述目标资源转移服务器返回的资源转移响应,所述资源转移响应根据所述目标资源转移标识对应的当前资源转移状态确定。If the target resource transfer server does not have a fault, the access server receives the resource transfer response returned by the target resource transfer server, and the resource transfer response is determined according to the current resource transfer status corresponding to the target resource transfer identifier.
  7. 一种资源数值转移的系统,其特征在于,所述系统包括:A system for resource value transfer, characterized in that the system comprises:
    接入服务器,用于接收终端发送的资源数值转移请求,所述资源数值转移请求包括当前服务标识,查询资源映射关系,获取所述当前服务标识对应的目标资源转移标识,所述目标资源转移标识存在关联的目标资源转移服务器标识,将所述资源数值转移请求转发至所述目标资源转移服务器标识对应的目标资源转移服务器;The access server is configured to receive a resource value transfer request sent by the terminal, where the resource value transfer request includes a current service identifier, a query resource mapping relationship, and a target resource transfer identifier corresponding to the current service identifier, where the target resource transfer identifier is There is an associated target resource transfer server identifier, and the resource value transfer request is forwarded to a target resource transfer server corresponding to the target resource transfer server identifier;
    目标资源转移服务器,用于根据所述资源数值转移请求返回第一资源转移响应,所述目标资源转移服务器包括主服务器或所述主服务器对应的备份 服务器;及a target resource transfer server, configured to return a first resource transfer response according to the resource value transfer request, where the target resource transfer server includes a primary server or a backup server corresponding to the primary server;
    所述接入服务器还用于当根据所述第一资源转移响应确定所述目标资源转移服务器存在故障时,返回第一资源转移故障响应至所述终端。The access server is further configured to: when it is determined that the target resource transfer server has a fault according to the first resource transfer response, return a first resource transfer fault response to the terminal.
  8. 根据权利要求7所述的系统,其特征在于,所述系统还包括:The system of claim 7 wherein said system further comprises:
    资源映射服务器集群,所述资源映射服务器集群用于接收接入服务器发送的资源映射查询请求,所述资源映射查询请求包括所述当前服务标识,根据存储的资源映射关系返回与所述当前服务标识对应的目标资源转移标识。a resource mapping server cluster, the resource mapping server cluster is configured to receive a resource mapping query request sent by the access server, where the resource mapping query request includes the current service identifier, and returns the current service identifier according to the stored resource mapping relationship. Corresponding target resource transfer identifier.
  9. 根据权利要求7所述的系统,其特征在于,所述接入服务器还用于如果所述资源映射关系中不存在当前服务标识对应的目标资源转移标识,则根据预设规则选择目标资源转移服务器,将所述资源转移请求转发至所述目标资源转移服务器;The system according to claim 7, wherein the access server is further configured to: if the target resource transfer identifier corresponding to the current service identifier does not exist in the resource mapping relationship, select the target resource transfer server according to a preset rule. Transmitting the resource transfer request to the target resource transfer server;
    所述目标资源转移服务器还用于根据所述资源转移请求生成所述目标资源转移标识,建立所述目标资源转移标识与目标资源转移服务器标识的关联关系,返回所述关联关系;The target resource transfer server is further configured to generate the target resource transfer identifier according to the resource transfer request, establish an association relationship between the target resource transfer identifier and the target resource transfer server identifier, and return the association relationship;
    所述接入服务器还用于在所述资源映射关系中根据所述关联关系增加所述当前服务标识与所述目标资源转移标识的映射关系。The access server is further configured to increase a mapping relationship between the current service identifier and the target resource transfer identifier according to the association relationship in the resource mapping relationship.
  10. 根据权利要求9所述的系统,其特征在于,所述接入服务器还用于如果主服务器不存在故障,则选择所述主服务器为目标资源转移服务器,如果所述主服务器存在故障,则选择所述主服务器对应的备份服务器为目标资源转移服务器。The system according to claim 9, wherein the access server is further configured to: if the primary server does not have a fault, select the primary server as a target resource transfer server, and if the primary server has a fault, select The backup server corresponding to the primary server is a target resource transfer server.
  11. 根据权利要求7所述的系统,其特征在于,所述接入服务器还用于如果所述目标资源转移服务器不存在故障,则发送资源数值转移授权请求至所述终端,所述资源数值转移授权请求携带所述目标资源转移标识,接收所述终端根据所述资源数值转移授权请求返回的资源数值转移授权信息,所述资源数值转移授权信息携带所述目标资源转移标识,将所述资源数值转移授权信息发送至所述目标资源转移标识对应的目标资源转移服务器;The system according to claim 7, wherein the access server is further configured to: if the target resource transfer server does not have a fault, send a resource value transfer authorization request to the terminal, the resource value transfer authorization Retrieving the target resource transfer identifier, and receiving the resource value transfer authorization information returned by the terminal according to the resource value transfer authorization request, where the resource value transfer authorization information carries the target resource transfer identifier, and the resource value is transferred The authorization information is sent to the target resource transfer server corresponding to the target resource transfer identifier;
    所述目标资源转移服务器还用于根据所述资源数值转移授权信息返回第 二资源转移响应;The target resource transfer server is further configured to return a second resource transfer response according to the resource value transfer authorization information;
    所述接入服务器还用于当根据所述第二资源转移响应确定所述目标资源转移服务器存在故障时,返回第二资源转移故障响应至所述终端。The access server is further configured to return a second resource transfer failure response to the terminal when determining that the target resource transfer server has a fault according to the second resource transfer response.
  12. 根据权利要求11所述的系统,其特征在于,所述目标资源转移服务器还用于获取所述目标资源转移标识对应的当前转移状态,如果所述当前转移状态为未转移,则根据所述资源数值转移授权信息完成资源数值转移,如果当前转移状态为已转移,则返回提醒信息。The system according to claim 11, wherein the target resource transfer server is further configured to acquire a current transfer status corresponding to the target resource transfer identifier, and if the current transfer status is not transferred, according to the resource The value transfer authorization information completes the resource value transfer, and if the current transfer status is transferred, the reminder information is returned.
  13. 一种服务器,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行如下步骤:A server comprising a memory and a processor, the memory storing computer readable instructions, the computer readable instructions being executed by the processor, such that the processor performs the following steps:
    接收终端发送的资源数值转移请求,所述资源数值转移请求包括当前服务标识;Receiving a resource value transfer request sent by the terminal, where the resource value transfer request includes a current service identifier;
    查询资源映射关系,获取所述当前服务标识对应的目标资源转移标识,所述目标资源转移标识存在关联的目标资源转移服务器标识;Querying a resource mapping relationship, and acquiring a target resource transfer identifier corresponding to the current service identifier, where the target resource transfer identifier has an associated target resource transfer server identifier;
    将所述资源数值转移请求转发至所述目标资源转移服务器标识对应的目标资源转移服务器;及Forwarding the resource value transfer request to a target resource transfer server corresponding to the target resource transfer server identifier; and
    当所述目标资源转移服务器存在故障时,返回第一资源转移故障响应至所述终端。When the target resource transfer server has a fault, returning a first resource transfer fault response to the terminal.
  14. 根据权利要求13所述的服务器,其特征在于,所述查询资源映射关系,获取所述当前服务标识对应的目标资源转移标识包括:The server according to claim 13, wherein the querying the resource mapping relationship and acquiring the target resource transfer identifier corresponding to the current service identifier comprises:
    发送资源映射查询请求至资源映射服务器集群,所述资源映射查询请求包括所述当前服务标识;Sending a resource mapping query request to the resource mapping server cluster, where the resource mapping query request includes the current service identifier;
    接收所述资源映射服务器集群根据存储的资源映射关系返回的所述当前服务标识对应的目标资源转移标识。And receiving, by the resource mapping server cluster, a target resource transfer identifier corresponding to the current service identifier returned according to the stored resource mapping relationship.
  15. 根据权利要求14所述的服务器,其特征在于,所述接收终端发送的资源转移请求之后,所述计算机可读指令还使得所述处理器执行如下步骤:The server according to claim 14, wherein said computer readable instructions further cause said processor to perform the following steps after said resource transfer request sent by said receiving terminal:
    如果所述资源映射关系中不存在当前服务标识对应的目标资源转移标识, 则根据预设规则选择目标资源转移服务器,将所述资源转移请求转发至所述目标资源转移服务器,以使所述目标资源转移服务器生成所述目标资源转移标识,建立所述目标资源转移标识与目标资源转移服务器标识的关联关系,返回所述关联关系;If the target resource transfer identifier corresponding to the current service identifier does not exist in the resource mapping relationship, the target resource transfer server is selected according to the preset rule, and the resource transfer request is forwarded to the target resource transfer server, so that the target is The resource transfer server generates the target resource transfer identifier, establishes an association relationship between the target resource transfer identifier and the target resource transfer server identifier, and returns the association relationship;
    在所述资源映射关系中根据所述关联关系增加所述当前服务标识与所述目标资源转移标识的映射关系。The mapping relationship between the current service identifier and the target resource transfer identifier is increased according to the association relationship in the resource mapping relationship.
  16. 根据权利要求15所述的服务器,其特征在于,所述根据预设规则选择目标资源转移服务器包括:The server according to claim 15, wherein the selecting the target resource transfer server according to the preset rule comprises:
    如果主服务器不存在故障,则选择所述主服务器为目标资源转移服务器;If the primary server does not have a fault, the primary server is selected as the target resource transfer server;
    如果所述主服务器存在故障,则选择所述主服务器对应的备份服务器为目标资源转移服务器。If the primary server is faulty, the backup server corresponding to the primary server is selected as the target resource transfer server.
  17. 根据权利要求13所述的服务器,其特征在于,所述计算机可读指令还使得所述处理器执行如下步骤:The server of claim 13 wherein said computer readable instructions further cause said processor to perform the following steps:
    如果所述目标资源转移服务器不存在故障,则发送资源数值转移授权请求至所述终端,所述资源数值转移授权请求携带所述目标资源转移标识;And if the target resource transfer server does not have a fault, sending a resource value transfer authorization request to the terminal, where the resource value transfer authorization request carries the target resource transfer identifier;
    接收所述终端根据所述资源数值转移授权请求返回的资源数值转移授权信息,所述资源数值转移授权信息携带所述目标资源转移标识;Receiving, by the terminal, the resource value transfer authorization information returned according to the resource value transfer authorization request, where the resource value transfer authorization information carries the target resource transfer identifier;
    将所述资源数值转移授权信息发送至所述目标资源转移标识对应的目标资源转移服务器,如果所述目标资源转移服务器存在故障,则返回第二资源转移故障响应至所述终端。Sending the resource value transfer authorization information to the target resource transfer server corresponding to the target resource transfer identifier, and returning a second resource transfer fault response to the terminal if the target resource transfer server has a fault.
  18. 根据权利要求17所述的服务器,其特征在于,所述计算机可读指令还使得所述处理器执行如下步骤:The server according to claim 17, wherein said computer readable instructions further cause said processor to perform the following steps:
    如果所述目标资源转移服务器不存在故障,则接收所述目标资源转移服务器返回的资源转移响应,所述资源转移响应根据所述目标资源转移标识对应的当前资源转移状态确定。If the target resource transfer server does not have a fault, receiving a resource transfer response returned by the target resource transfer server, where the resource transfer response is determined according to a current resource transfer state corresponding to the target resource transfer identifier.
  19. 一个或多个存储有计算机可读指令的非易失性存储介质,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行如下步 骤:One or more non-volatile storage media storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the steps of:
    接收终端发送的资源数值转移请求,所述资源数值转移请求包括当前服务标识;Receiving a resource value transfer request sent by the terminal, where the resource value transfer request includes a current service identifier;
    查询资源映射关系,获取所述当前服务标识对应的目标资源转移标识,所述目标资源转移标识存在关联的目标资源转移服务器标识;Querying a resource mapping relationship, and acquiring a target resource transfer identifier corresponding to the current service identifier, where the target resource transfer identifier has an associated target resource transfer server identifier;
    将所述资源数值转移请求转发至所述目标资源转移服务器标识对应的目标资源转移服务器;及Forwarding the resource value transfer request to a target resource transfer server corresponding to the target resource transfer server identifier; and
    当所述目标资源转移服务器存在故障时,返回第一资源转移故障响应至所述终端。When the target resource transfer server has a fault, returning a first resource transfer fault response to the terminal.
  20. 根据权利要求19所述的存储介质,其特征在于,所述查询资源映射关系,获取所述当前服务标识对应的目标资源转移标识包括:The storage medium according to claim 19, wherein the querying the resource mapping relationship, and acquiring the target resource transfer identifier corresponding to the current service identifier comprises:
    发送资源映射查询请求至资源映射服务器集群,所述资源映射查询请求包括所述当前服务标识;Sending a resource mapping query request to the resource mapping server cluster, where the resource mapping query request includes the current service identifier;
    接收所述资源映射服务器集群根据存储的资源映射关系返回的所述当前服务标识对应的目标资源转移标识。And receiving, by the resource mapping server cluster, a target resource transfer identifier corresponding to the current service identifier returned according to the stored resource mapping relationship.
  21. 根据权利要求20所述的存储介质,其特征在于,所述接收终端发送的资源转移请求之后,所述计算机可读指令还使得所述处理器执行如下步骤:The storage medium according to claim 20, wherein said computer readable instructions further cause said processor to perform the following steps after said resource transfer request sent by said receiving terminal:
    如果所述资源映射关系中不存在当前服务标识对应的目标资源转移标识,则根据预设规则选择目标资源转移服务器,将所述资源转移请求转发至所述目标资源转移服务器,以使所述目标资源转移服务器生成所述目标资源转移标识,建立所述目标资源转移标识与目标资源转移服务器标识的关联关系,返回所述关联关系;If the target resource transfer identifier corresponding to the current service identifier does not exist in the resource mapping relationship, select a target resource transfer server according to a preset rule, and forward the resource transfer request to the target resource transfer server, so that the target The resource transfer server generates the target resource transfer identifier, establishes an association relationship between the target resource transfer identifier and the target resource transfer server identifier, and returns the association relationship;
    在所述资源映射关系中根据所述关联关系增加所述当前服务标识与所述目标资源转移标识的映射关系。The mapping relationship between the current service identifier and the target resource transfer identifier is increased according to the association relationship in the resource mapping relationship.
  22. 根据权利要求19所述的存储介质,其特征在于,所述根据预设规则选择目标资源转移服务器包括:The storage medium according to claim 19, wherein the selecting the target resource transfer server according to the preset rule comprises:
    如果主服务器不存在故障,则选择所述主服务器为目标资源转移服务器;If the primary server does not have a fault, the primary server is selected as the target resource transfer server;
    如果所述主服务器存在故障,则选择所述主服务器对应的备份服务器为目标资源转移服务器。If the primary server is faulty, the backup server corresponding to the primary server is selected as the target resource transfer server.
  23. 根据权利要求19所述的存储介质,其特征在于,所述计算机可读指令还使得所述处理器执行如下步骤:The storage medium of claim 19, wherein the computer readable instructions further cause the processor to perform the following steps:
    如果所述目标资源转移服务器不存在故障,则发送资源数值转移授权请求至所述终端,所述资源数值转移授权请求携带所述目标资源转移标识;And if the target resource transfer server does not have a fault, sending a resource value transfer authorization request to the terminal, where the resource value transfer authorization request carries the target resource transfer identifier;
    接收所述终端根据所述资源数值转移授权请求返回的资源数值转移授权信息,所述资源数值转移授权信息携带所述目标资源转移标识;Receiving, by the terminal, the resource value transfer authorization information returned according to the resource value transfer authorization request, where the resource value transfer authorization information carries the target resource transfer identifier;
    将所述资源数值转移授权信息发送至所述目标资源转移标识对应的目标资源转移服务器,如果所述目标资源转移服务器存在故障,则返回第二资源转移故障响应至所述终端。Sending the resource value transfer authorization information to the target resource transfer server corresponding to the target resource transfer identifier, and returning a second resource transfer fault response to the terminal if the target resource transfer server has a fault.
  24. 根据权利要求23所述的存储介质,其特征在于,所述计算机可读指令还使得所述处理器执行如下步骤:The storage medium of claim 23, wherein the computer readable instructions further cause the processor to perform the following steps:
    如果所述目标资源转移服务器不存在故障,则接收所述目标资源转移服务器返回的资源转移响应,所述资源转移响应根据所述目标资源转移标识对应的当前资源转移状态确定。If the target resource transfer server does not have a fault, receiving a resource transfer response returned by the target resource transfer server, where the resource transfer response is determined according to a current resource transfer state corresponding to the target resource transfer identifier.
PCT/CN2018/074126 2017-02-23 2018-01-25 Method for transferring resource value, and server, system and storage medium WO2018153209A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710101008.0A CN108470298B (en) 2017-02-23 2017-02-23 Method, device and system for transferring resource numerical value
CN201710101008.0 2017-02-23

Publications (1)

Publication Number Publication Date
WO2018153209A1 true WO2018153209A1 (en) 2018-08-30

Family

ID=63253056

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/074126 WO2018153209A1 (en) 2017-02-23 2018-01-25 Method for transferring resource value, and server, system and storage medium

Country Status (2)

Country Link
CN (1) CN108470298B (en)
WO (1) WO2018153209A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110503432A (en) * 2019-08-20 2019-11-26 腾讯科技(深圳)有限公司 Processing method, device and the computer readable storage medium of resource transfers request
CN110851458A (en) * 2019-11-15 2020-02-28 江苏国泰新点软件有限公司 Resource acquisition method, device, system and storage medium
CN111190724A (en) * 2019-07-22 2020-05-22 腾讯科技(深圳)有限公司 Cross-region resource transfer method, device, server and storage medium
CN112150140A (en) * 2020-09-23 2020-12-29 支付宝(杭州)信息技术有限公司 Resource allocation method, device and system
CN112232751A (en) * 2020-09-03 2021-01-15 微民保险代理有限公司 Service data processing method, device, system, computer equipment and storage medium
CN112232810A (en) * 2020-09-24 2021-01-15 中国银联股份有限公司 Resource processing method, server, device, equipment, system and medium
CN112491900A (en) * 2020-11-30 2021-03-12 中国银联股份有限公司 Abnormal node identification method, device, equipment and medium
CN112749959A (en) * 2019-10-29 2021-05-04 腾讯科技(深圳)有限公司 Resource transfer method, system, device, equipment and storage medium
CN113283893A (en) * 2021-05-28 2021-08-20 深圳Tcl新技术有限公司 Resource transfer processing method, device, storage medium and electronic equipment

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109615423B (en) * 2018-11-29 2020-06-16 阿里巴巴集团控股有限公司 Service processing method and device
CN110633969B (en) * 2019-08-15 2023-02-07 平安普惠企业管理有限公司 Resource data transfer method, device, computer equipment and storage medium
CN110716930A (en) * 2019-09-02 2020-01-21 深圳壹账通智能科技有限公司 Numerical value transfer method, device, computer equipment and storage medium
CN110704190A (en) * 2019-09-29 2020-01-17 腾讯科技(深圳)有限公司 Virtual resource processing method, device, equipment and storage medium
CN111026572A (en) * 2019-11-15 2020-04-17 北京金山云网络技术有限公司 Fault processing method and device of distributed system and electronic equipment
CN111144859A (en) * 2019-12-27 2020-05-12 腾讯科技(深圳)有限公司 Virtual resource transfer method and device, computer equipment and storage medium
CN111181840B (en) * 2019-12-28 2023-02-24 腾讯科技(深圳)有限公司 Resource value transfer method, system and related device
CN111131490A (en) * 2019-12-30 2020-05-08 北京三快在线科技有限公司 State updating method and device, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955743A (en) * 2016-04-29 2016-09-21 腾讯科技(深圳)有限公司 Resource data transfer request generating method, device and system
CN106204217A (en) * 2016-07-08 2016-12-07 腾讯科技(深圳)有限公司 The methods, devices and systems of resource numerical value transfer, the method and apparatus of resource numerical value transfer request

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930431B (en) * 2012-10-29 2016-01-27 东莞宇龙通信科技有限公司 Paying server and payment channel identification method
CN104780137B (en) * 2014-01-09 2017-04-12 腾讯科技(深圳)有限公司 Data processing method, device and system
CN105631649A (en) * 2015-12-25 2016-06-01 深圳市金溢科技股份有限公司 Method for recharging ETC e-wallet stored-value card and prepositive server therefor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955743A (en) * 2016-04-29 2016-09-21 腾讯科技(深圳)有限公司 Resource data transfer request generating method, device and system
CN106204217A (en) * 2016-07-08 2016-12-07 腾讯科技(深圳)有限公司 The methods, devices and systems of resource numerical value transfer, the method and apparatus of resource numerical value transfer request

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111190724B (en) * 2019-07-22 2023-08-04 腾讯科技(深圳)有限公司 Cross-regional resource transfer method, device, server and storage medium
CN111190724A (en) * 2019-07-22 2020-05-22 腾讯科技(深圳)有限公司 Cross-region resource transfer method, device, server and storage medium
CN110503432A (en) * 2019-08-20 2019-11-26 腾讯科技(深圳)有限公司 Processing method, device and the computer readable storage medium of resource transfers request
CN110503432B (en) * 2019-08-20 2024-03-26 腾讯科技(深圳)有限公司 Method, device and computer readable storage medium for processing resource transfer request
CN112749959A (en) * 2019-10-29 2021-05-04 腾讯科技(深圳)有限公司 Resource transfer method, system, device, equipment and storage medium
CN112749959B (en) * 2019-10-29 2023-09-19 腾讯科技(深圳)有限公司 Resource transfer method, system, device, equipment and storage medium
CN110851458A (en) * 2019-11-15 2020-02-28 江苏国泰新点软件有限公司 Resource acquisition method, device, system and storage medium
CN110851458B (en) * 2019-11-15 2024-02-09 江苏国泰新点软件有限公司 Resource acquisition method, device, system and storage medium
CN112232751A (en) * 2020-09-03 2021-01-15 微民保险代理有限公司 Service data processing method, device, system, computer equipment and storage medium
CN112150140A (en) * 2020-09-23 2020-12-29 支付宝(杭州)信息技术有限公司 Resource allocation method, device and system
CN112232810B (en) * 2020-09-24 2024-02-23 中国银联股份有限公司 Resource processing method, server, device, equipment, system and medium
CN112232810A (en) * 2020-09-24 2021-01-15 中国银联股份有限公司 Resource processing method, server, device, equipment, system and medium
CN112491900A (en) * 2020-11-30 2021-03-12 中国银联股份有限公司 Abnormal node identification method, device, equipment and medium
CN113283893A (en) * 2021-05-28 2021-08-20 深圳Tcl新技术有限公司 Resource transfer processing method, device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN108470298B (en) 2021-10-26
CN108470298A (en) 2018-08-31

Similar Documents

Publication Publication Date Title
WO2018153209A1 (en) Method for transferring resource value, and server, system and storage medium
WO2021051880A1 (en) Resource data acquisition method and apparatus, computer device and storage medium
US20170083579A1 (en) Distributed data processing method and system
WO2017124933A1 (en) Information processing method, device and system
WO2019075978A1 (en) Data transmission method and apparatus, computer device, and storage medium
EP3889870A1 (en) Background architecture method and system for aggregation payment, computer device, and storage medium
US20110302277A1 (en) Methods and apparatus for web-based migration of data in a multi-tenant database system
US11356424B2 (en) Database synchronization system in high security zones using blockchain
CN109684414B (en) Method, device and equipment for synchronizing block data and storage medium
CN111213340A (en) Selecting and securing attestation delegations for cryptographic functions
US11539803B2 (en) Highly available private cloud service
US11953997B2 (en) Systems and methods for cross-regional back up of distributed databases on a cloud service
CN109714239B (en) Management message issuing method, VNFM (virtual network management frequency) equipment and server
WO2018201887A1 (en) Data response method, apparatus, terminal device, and medium
KR20200078419A (en) Shared secret-based blockchain storage
WO2020253634A1 (en) Data processing method, system and device
CN111405019A (en) Data processing method, data processing device, computer equipment and storage medium
US10594804B2 (en) Directory service discovery and/or learning
WO2020134606A1 (en) Method and device for invoice correction based on blockchain, and electronic equipment
US11038685B1 (en) Correcting blockchain transactions with cryptocurrency type mistakes
CN110673941A (en) Migration method of micro-services in multiple computer rooms, electronic equipment and storage medium
WO2019033741A1 (en) Investment commodity resource processing method, device, storage medium and computer apparatus
TW201727517A (en) Data storage and service processing method and device
KR20150131318A (en) A method and system for transferring data
US20180060974A1 (en) Social networking relationships processing method, system, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18758171

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18758171

Country of ref document: EP

Kind code of ref document: A1