Resource conversion method, device, computer device, and storage medium

By receiving the conversion relationship verification request of the resource conversion terminal in the Internet platform, obtaining the resource conversion relationship at the current time and calculating the difference, ensuring that resource conversion is carried out within the difference range, solving the problem of low resource conversion accuracy and achieving higher conversion accuracy.

CN113947481BActive Publication Date: 2025-07-22TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010689884.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-17
Publication Date
2025-07-22
Estimated Expiration
2040-07-17

AI Technical Summary

Technical Problem

During the resource conversion process of existing Internet platforms, the resource conversion value does not match the actual resource conversion relationship, resulting in low resource conversion accuracy.

Method used

By receiving the conversion relationship verification request from the resource conversion terminal, obtain the resource conversion relationship at the current time, calculate the conversion relationship difference, and send the verification results within the difference range to perform resource conversion to ensure the accuracy of the resource conversion relationship.

Benefits of technology

The accuracy of resource conversion is improved, inaccuracy caused by changes in resource conversion relationships is avoided, and the reliability of resource conversion is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113947481B_ABST
    Figure CN113947481B_ABST
Patent Text Reader

Abstract

This application relates to a resource conversion method, apparatus, computer device, and storage medium. The method includes: receiving a conversion relationship verification request sent by a resource conversion terminal, where the conversion relationship verification request carries a first resource conversion relationship between a first resource and a second resource, and the conversion relationship verification request is triggered when a resource conversion trigger operation is received, and the resource conversion trigger operation is used to trigger the conversion of the first resource into the second resource according to the first resource conversion relationship; according to the conversion relationship verification request, obtaining the current time and the second resource conversion relationship corresponding to the first resource and the second resource; obtaining a first conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship; when the first conversion relationship difference is within a first difference range, sending a conversion relationship verification passed result to the resource conversion terminal, so that the resource conversion terminal converts the first resource into the second resource according to the first resource conversion relationship, thereby improving the accuracy of resource conversion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet technologies, and particularly to a resource conversion method, apparatus, computer device, and storage medium. Background Art

[0002] With the development of Internet technologies, a resource conversion method has emerged for converting different resources with each other through the Internet. For example, users can perform currency exchange or cross-border remittance on Internet platforms.

[0003] In the traditional method, when the server of an Internet platform receives a resource conversion request sent by a user terminal, such as a request to exchange currency, it can perform resource conversion based on the resource conversion value in the received resource conversion request. However, there are often cases where the resource conversion value does not match the value obtained based on the actual resource conversion relationship, that is, the accuracy of resource conversion is relatively low. Summary of the Invention

[0004] Based on this, it is necessary to provide a resource conversion method, apparatus, computer device, and storage medium that can improve the accuracy of resource conversion for the above technical problems.

[0005] A resource conversion method, the method includes:

[0006] Receiving a conversion relationship verification request sent by a resource conversion terminal, the conversion relationship verification request carrying a first resource conversion relationship between a first resource and a second resource, the conversion relationship verification request being triggered when a resource conversion trigger operation is received, the resource conversion trigger operation being used to trigger the conversion of the first resource into the second resource according to the first resource conversion relationship;

[0007] According to the conversion relationship verification request, obtaining the current time and the second resource conversion relationship corresponding to the first resource and the second resource;

[0008] Obtaining a first conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship;

[0009] When the first conversion relationship difference is within a first difference range, sending a conversion relationship verification passed result to the resource conversion terminal, so that the resource conversion terminal converts the first resource into the second resource according to the first resource conversion relationship.

[0010] In one of the embodiments, the method further includes:

[0011] When the first conversion relationship difference is outside the first difference range, send a conversion relationship verification failure result to the resource conversion terminal, so that the resource conversion terminal responds to the conversion relationship verification failure result and performs resource conversion according to the updated resource conversion relationship.

[0012] In one embodiment, the step of sending a conversion relationship verification failure result to the resource conversion terminal when the first conversion relationship difference is outside the first difference range includes:

[0013] When the first conversion relationship difference is outside the first difference range, calculate the updated resource quantity corresponding to the first resource according to the second resource quantity corresponding to the second resource and the updated resource conversion relationship;

[0014] Send the updated resource quantity and the conversion relationship verification failure result to the resource conversion terminal, so that the resource conversion terminal responds to the conversion relationship verification failure result and updates the first resource quantity corresponding to the first resource according to the updated resource quantity.

[0015] A resource conversion device, the device includes:

[0016] A request receiving module, configured to receive a conversion relationship verification request sent by a resource conversion terminal, where the conversion relationship verification request carries a first resource conversion relationship between a first resource and a second resource, and the conversion relationship verification request is triggered when a resource conversion trigger operation is received, and the resource conversion trigger operation is used to trigger converting the first resource into the second resource according to the first resource conversion relationship;

[0017] A conversion relationship verification module, configured to obtain the current time, the second resource conversion relationship corresponding to the first resource and the second resource according to the conversion relationship verification request; obtain a first conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship;

[0018] A result sending module, configured to send a conversion relationship verification pass result to the resource conversion terminal when the first conversion relationship difference is within the first difference range, so that the resource conversion terminal converts the first resource into the second resource according to the first resource conversion relationship.

[0019] A computer device, including a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the above resource conversion method when executing the computer program.

[0020] A computer-readable storage medium, on which a computer program is stored, and the computer program implements the steps of the above resource conversion method when executed by a processor.

[0021] In the above resource conversion method, device, computer device, and storage medium, the conversion relationship verification request is triggered when a resource conversion trigger operation is received. The resource conversion trigger operation is used to trigger the conversion of the first resource to the second resource according to the first resource conversion relationship. The conversion relationship verification request sent by the resource conversion terminal is received. The conversion relationship verification request carries the first resource conversion relationship between the first resource and the second resource. According to the conversion relationship verification request, the second resource conversion relationship corresponding to the first resource and the second resource at the current time is obtained. By obtaining the first conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship, the first resource conversion relationship used for resource conversion is verified, ensuring the accuracy of the resource conversion relationship used for resource conversion. When the first conversion relationship difference is within the first difference range, a conversion relationship verification passed result is sent to the resource conversion terminal, so that the resource conversion terminal converts the first resource to the second resource according to the first resource conversion relationship. Only after the conversion relationship verification passes, the first resource is converted according to the first resource conversion relationship, avoiding inaccurate resource conversion caused by a large change in the resource conversion relationship, and effectively improving the accuracy of resource conversion.

[0022] A resource conversion method, the method comprising:

[0023] Receiving a resource conversion trigger operation, the resource conversion trigger operation being used to trigger the conversion of the first resource to the second resource according to the first resource conversion relationship;

[0024] In response to the resource conversion trigger operation, generating a conversion relationship verification request carrying the first resource conversion relationship;

[0025] Sending the conversion relationship verification request to a service server, so that the service server obtains the current time, the second resource conversion relationship corresponding to the first resource and the second resource, obtains the first conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship, and when the first conversion relationship difference is within the first difference range, sends a conversion relationship verification passed result;

[0026] When receiving the conversion relationship verification passed result returned by the service server, converting the first resource to the second resource according to the first resource conversion relationship.

[0027] In one of the embodiments, the method further comprises:

[0028] When receiving a conversion relationship verification failed result returned by the service server, in response to the conversion relationship verification failed result, performing resource conversion according to an updated resource conversion relationship, the conversion relationship verification failed result being sent by the service server when the first conversion relationship difference is outside the first difference range.

[0029] In one embodiment, when receiving the result of failed conversion relationship verification returned by the service server, in response to the result of failed conversion relationship verification, performing resource conversion according to the updated resource conversion relationship, including:

[0030] Receiving the updated resource quantity and the result of failed conversion relationship verification sent by the service server, where the updated resource quantity is calculated by the service server according to the second resource quantity corresponding to the second resource and the updated resource conversion relationship when the first conversion relationship difference is outside the first difference range;

[0031] In response to the result of failed conversion relationship verification, updating the first resource quantity corresponding to the first resource according to the updated resource quantity.

[0032] In one embodiment, the method further includes:

[0033] When receiving the result of failed resource conversion sent by the service server, presenting the result of failed resource conversion, where the result of failed resource conversion is sent by the service server when the second conversion relationship difference is outside the second difference range.

[0034] A resource conversion device, the device includes:

[0035] An operation receiving module, configured to receive a resource conversion trigger operation, where the resource conversion trigger operation is used to trigger the conversion of the first resource to the second resource according to the first resource conversion relationship; in response to the resource conversion trigger operation, generating a conversion relationship verification request carrying the first resource conversion relationship;

[0036] A verification request module, configured to send the conversion relationship verification request to the service server, so that the service server obtains the current time, the second resource conversion relationship corresponding to the first resource and the second resource, obtains the first conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship, and when the first conversion relationship difference is within the first difference range, sends a result of passed conversion relationship verification;

[0037] A resource conversion module, configured to, when receiving the result of passed conversion relationship verification returned by the service server, convert the first resource to the second resource according to the first resource conversion relationship.

[0038] A computer device includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the steps of the above resource conversion method are implemented.

[0039] A computer-readable storage medium stores a computer program thereon, and when the computer program is executed by a processor, the steps of the above-mentioned resource conversion method are implemented.

[0040] For the above-mentioned resource conversion method, device, computer device and storage medium, a resource conversion trigger operation is received. The resource conversion trigger operation is used to trigger the conversion of the first resource into the second resource according to the first resource conversion relationship. In response to the resource conversion trigger operation, a conversion relationship verification request carrying the first resource conversion relationship is generated. By sending the conversion relationship verification request to the business server, the business server can obtain the current time, the second resource conversion relationship corresponding to the first resource and the second resource, and obtain the first conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship. When the first conversion relationship difference is within the first difference range, a conversion relationship verification pass result is sent. When the conversion relationship verification pass result returned by the business server is received, the first resource is converted into the second resource according to the first resource conversion relationship. By verifying the resource conversion relationship through the business server and only performing resource conversion according to the first resource conversion relationship after the conversion relationship verification passes, it is possible to avoid inaccurate resource conversion caused by a large change in the resource conversion relationship, and effectively improve the accuracy of resource conversion.

[0041] A resource conversion method, the method includes:

[0042] Obtain the first resource conversion relationship corresponding to the resource conversion record, where the resource conversion record is generated according to a first resource conversion request, and the first resource conversion request is used to request to convert the first resource into the second resource according to the first resource conversion relationship;

[0043] Obtain the current time, and the third resource conversion relationship corresponding to the first resource and the second resource;

[0044] Obtain the second conversion relationship difference between the first resource conversion relationship and the third resource conversion relationship;

[0045] When the second conversion relationship difference is within the second difference range, send a second resource conversion request to the resource conversion server, where the second resource conversion request is used to request to convert the first resource into the second resource.

[0046] A resource conversion device, the device includes:

[0047] A conversion relationship acquisition module, configured to obtain the first resource conversion relationship corresponding to the resource conversion record, where the resource conversion record is generated according to a first resource conversion request, and the first resource conversion request is used to request to convert the first resource into the second resource according to the first resource conversion relationship;

[0048] A difference acquisition module, configured to acquire the current time and the third resource conversion relationship corresponding to the first resource and the second resource; and acquire the second conversion relationship difference between the first resource conversion relationship and the third resource conversion relationship.

[0049] A resource conversion request module, configured to send a second resource conversion request to a resource conversion server when the second conversion relationship difference is within a second difference range, where the second resource conversion request is used to request to convert the first resource into the second resource.

[0050] A computer device includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the steps of the above resource conversion method are implemented.

[0051] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above resource conversion method are implemented.

[0052] For the above resource conversion method, device, computer device, and storage medium, the first resource conversion relationship corresponding to the resource conversion record is acquired. The resource conversion record is generated according to a first resource conversion request, and the first resource conversion request is used to request to convert the first resource into the second resource according to the first resource conversion relationship. The current time and the third resource conversion relationship corresponding to the first resource and the second resource are acquired. By acquiring the second conversion relationship difference between the first resource conversion relationship and the third resource conversion relationship, the first resource conversion relationship is verified. When the second conversion relationship difference is within the second difference range, a second resource conversion request is sent to the resource conversion server, which is used to request to convert the first resource into the second resource. By verifying the conversion relationship and performing resource conversion only after the conversion relationship verification passes, it is possible to avoid inaccurate resource conversion caused by a large change in the resource conversion relationship, and effectively improve the accuracy of the resource conversion of converting the first resource into the second resource. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 It is an application environment diagram of the resource conversion method in an embodiment;

[0054] Figure 2 It is a flowchart of the resource conversion method in an embodiment;

[0055] Figure 3 It is a flowchart of verifying whether the first conversion relationship difference is within the first difference range in an embodiment;

[0056] Figure 4 It is a schematic diagram of verifying the resource conversion relationship in an embodiment;

[0057] Figure 5Schematic diagram of the interface for resource conversion by the resource conversion terminal in an embodiment;

[0058] Figure 6 Schematic diagram of the overall process corresponding to resource conversion in an embodiment;

[0059] Figure 7 Sequence diagram of the resource conversion process in an embodiment;

[0060] Figure 8 Flow schematic diagram of the resource conversion method in another embodiment;

[0061] Figure 9 Flow schematic diagram of the resource conversion method in yet another embodiment;

[0062] Figure 10 Structure block diagram of the resource conversion device in an embodiment;

[0063] Figure 11 Structure block diagram of the resource conversion device in another embodiment;

[0064] Figure 12 Structure block diagram of the resource conversion device in yet another embodiment;

[0065] Figure 13 Internal structure diagram of the computer device in an embodiment;

[0066] Figure 14 Internal structure diagram of the computer device in another embodiment. Detailed implementation

[0067] In order to make the purpose, technical solution and advantages of this application clearer, the following further details this application in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not used to limit this application.

[0068] The resource conversion method provided by this application can be applied to, for example Figure 1In the application environment shown, it includes a resource conversion terminal 102, a service server 104, and a resource conversion server 106. The resource conversion terminal 102 communicates with the service server 104 through a network, and the service server 104 can communicate with the resource conversion server 106 through the network. The service server 104 can be a server that implements services such as resource conversion relationship verification and resource conversion. The resource conversion server 106 can be a server for resource transfer, and the resource conversion terminal 102 can be a terminal held by a user. The service server 104 receives a conversion relationship verification request sent by the resource conversion terminal 102, and the conversion relationship verification request carries a first resource conversion relationship between a first resource and a second resource. The conversion relationship verification request is triggered when the resource conversion terminal 102 receives a resource conversion trigger operation, and the resource conversion trigger operation is used to trigger the conversion of the first resource into the second resource according to the first resource conversion relationship. The service server 104 obtains the current time, and the second resource conversion relationship corresponding to the first resource and the second resource according to the conversion relationship verification request. The service server 104 obtains a first conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship. When the first conversion relationship difference is within the first difference range, the service server 104 sends a conversion relationship verification passed result to the resource conversion terminal 102, so that the resource conversion terminal 102 can convert the first resource into the second resource according to the first resource conversion relationship. The resource conversion terminal 102 can execute the method provided in the embodiments of the present application, send a first resource conversion request to the service server 104, so that the service server 104 sends a second resource conversion request to the resource conversion server 106, requesting the resource conversion server 106 to convert the first resource into the second resource.

[0069] Among them, the resource conversion terminal 102 can be, but is not limited to, various personal computers, laptop computers, smart phones, tablet computers, and portable wearable devices. The service server 104 and the resource conversion server 106 can be respectively implemented by an independent server or a server cluster composed of multiple servers.

[0070] In one embodiment, as Figure 2 shown, a resource conversion method is provided. Taking the method applied to the Figure 1 service server 104 in it as an example, it includes the following steps:

[0071] Step 202, receive a conversion relationship verification request sent by the resource conversion terminal. The conversion relationship verification request carries a first resource conversion relationship between a first resource and a second resource. The conversion relationship verification request is triggered when a resource conversion trigger operation is received, and the resource conversion trigger operation is used to trigger the conversion of the first resource into the second resource according to the first resource conversion relationship.

[0072] Specifically, resources can be converted and circulated on the Internet through an electronic account, and ownership of resources can be obtained through the Internet. Resources can be virtual items, specifically including but not limited to account values, virtual recharge cards, virtual currency, or cryptocurrency, etc. For example, one type of currency can correspond to one type of resource. The quantity of resources owned by a user can be represented in an electronic form. For example, resources can specifically be currencies corresponding to various denominations, and the quantity of currency held by the user can be displayed in an electronic wallet. Among them, an electronic wallet, also known as an electronic stored-value wallet, refers to an Internet payment tool issued by a payment institution, such as a third-party payment institution, with an Internet electronic account as the carrier, which can be recharged through a fund-in channel and is used for at least one of the application scenarios of consumption, transfer, or remittance. A user refers to the user of a certain electronic wallet, and the user can be an individual or a group. Fund-in means that a user transfers funds into the electronic wallet to form the wallet balance. For example, using a bank card to recharge the wallet account. The wallet account is the capital carrier of the electronic wallet and can record account changes such as the incoming and outgoing funds of the electronic wallet in the form of a balance. The type of resources can be determined according to the specific circumstances of actual applications. For example, when the resources are specifically currency, it can specifically include types such as US dollars, RMB, or British pounds.

[0073] Resource conversion refers to converting one type of resource into another. The first resource is the original resource, which refers to the resource before resource conversion, and the second resource is the target resource, which refers to the resource after resource conversion. The first resource and the second resource are two different types of resources. The first resource can be any type of resource. For example, the first resource can specifically be RMB. The second resource can be any type of resource different from the first resource. For example, the second resource can specifically be US dollars. Specifically, resource conversion can be carried out within the account of the same user. For example, User A can convert the RMB in his account into US dollars. Resource conversion can also be carried out between the accounts of different users. For example, User A can transfer US dollars to User B, but the resources in User A's account are RMB. Resource conversion can convert the RMB in User A's account into US dollars and transfer the US dollars into User B's account. The types corresponding to the first resource and the second resource can be corresponding. For example, when the resource conversion is to convert RMB into US dollars, RMB is the first resource and US dollars are the second resource. When the resource conversion is to convert US dollars into RMB, US dollars are the first resource and RMB is the second resource.

[0074] A resource conversion relationship refers to the conversion relationship between a first resource and a second resource, which can be used to represent the relationship between the quantity of the first resource corresponding to the first resource and the quantity of the second resource corresponding to the second resource. For example, when the resource is specifically currency, the resource conversion relationship can specifically be the exchange rate between different currencies. Suppose the resource conversion relationship between currency A and currency B is 1:2. Then when the quantity of the first resource of currency A is 10, the corresponding quantity of the second resource of currency B should be 20. It can be understood that since resource conversion has a direction, when the conversion direction between the first resource and the second resource is different, the resource conversion relationship can also be different. When it is necessary to convert the first resource into the second resource, the obtained conversion relationship can be the conversion relationship for converting the first resource into the second resource. For example, when converting currency A into currency B, the corresponding resource conversion relationship is specifically 1:2. And when converting currency B into currency A, the corresponding resource conversion relationship is specifically 2:1.

[0075] Before performing resource conversion, the service server can receive a conversion relationship verification request sent by the resource conversion terminal, which is triggered when the resource conversion terminal receives a resource conversion trigger operation. The resource conversion trigger operation is used to trigger the conversion of the first resource into the second resource according to the first resource conversion relationship. Among them, the first resource conversion relationship refers to the resource conversion relationship specified by the resource conversion trigger operation. Specifically, when a user needs to convert the first resource into the second resource according to actual application requirements, the user can perform a resource conversion trigger operation through the corresponding resource conversion terminal. The resource conversion trigger operation can specifically be a touch operation, a cursor operation, a button operation, or a voice operation, etc. The touch operation can be a touch click operation or a touch press operation, etc. The touch operation can be a single-point touch operation or a multi-point touch operation. Multi-point means at least two points. The cursor operation can be a click operation or a press operation performed by controlling the cursor, etc. The button operation can specifically include a virtual button operation or a physical button operation, etc. For example, the display interface corresponding to the resource conversion terminal can include a resource conversion trigger control. When the user performs a click operation on this resource conversion trigger control, the resource conversion terminal receives the resource conversion trigger operation and triggers the generation of a conversion relationship verification request.

[0076] In one embodiment, the resource conversion terminal can receive the user's resource conversion configuration operation, determine the first resource and the second resource specified by the resource conversion configuration operation, the resource conversion terminal can obtain the first resource conversion relationship between the first resource and the second resource through the service server, and display it through the display interface. When the user confirms to perform resource conversion, the resource conversion terminal can receive the resource conversion trigger operation generated by the user based on the displayed first resource conversion relationship, and trigger the conversion of the first resource into the second resource according to the first resource conversion relationship.

[0077] For example, when the resource is specifically currency, the user can perform a resource conversion configuration operation through the input device corresponding to the resource conversion terminal, and input the two currencies to be converted. For example, the user can configure to convert RMB into US dollars. The resource conversion terminal can obtain the first resource conversion relationship for converting RMB into US dollars at the current time through the business server. The first resource conversion relationship can specifically be the first exchange rate for converting RMB into US dollars. The resource conversion terminal can display the first resource conversion relationship for the user to confirm whether to perform the resource conversion. When the resource conversion terminal receives a resource conversion trigger operation, it determines to convert RMB into US dollars according to the first resource conversion relationship. In response to the resource conversion trigger operation, the resource conversion terminal generates a conversion relationship verification request carrying the first resource conversion relationship between RMB and US dollars, and sends the conversion relationship verification request to the business server.

[0078] The business server can receive the conversion relationship verification request sent by the resource conversion terminal. The conversion relationship verification request carries the first resource conversion relationship between the first resource and the second resource. The first resource conversion relationship is the resource conversion relationship between the first resource and the second resource displayed by the resource conversion terminal to the user. The conversion relationship verification request is used to request the business server to verify the first resource conversion relationship between the first resource and the second resource.

[0079] Step 204, according to the conversion relationship verification request, obtain the current time and the second resource conversion relationship corresponding to the first resource and the second resource.

[0080] The business server can, in response to the received conversion relationship verification request, according to the conversion relationship verification request, obtain the current time and the second resource conversion relationship corresponding to the first resource and the second resource. Among them, the second resource conversion relationship is in comparison with the first resource conversion relationship. The resource conversion relationship between the first resource and the second resource may change at any time, and the resource conversion relationship between the first resource and the second resource obtained at different times may be different. The second resource conversion relationship refers to the resource conversion relationship between the first resource and the second resource at the current time obtained based on the verification of the first resource conversion relationship after the business server receives the conversion relationship verification request.

[0081] In one embodiment, after the service server receives the conversion relationship verification request sent by the resource conversion terminal, it may, in response to the received conversion relationship verification request, generate a conversion relationship query request carrying the conversion relationship between the first resource and the second resource. The service server may send the conversion relationship query request to the conversion relationship query server to request the conversion relationship query server to query the second resource conversion relationship corresponding to the first resource and the second resource at the current time. For example, when the resource is specifically currency, the conversion relationship query server may specifically be the server corresponding to the currency exchange rate institution. In response to the conversion relationship query request, the conversion relationship query server queries the second resource conversion relationship corresponding to the first resource and the second resource at the current time and feeds back the second resource conversion relationship to the service server. The service server may receive the second resource conversion relationship fed back by the conversion relationship query server to obtain the second resource conversion relationship corresponding to the first resource and the second resource at the current time.

[0082] For example, the resource may specifically be currency. The first resource that needs to be converted is specifically the Chinese yuan, and the second resource after conversion is specifically the US dollar. The first resource conversion relationship between the Chinese yuan and the US dollar obtained by the resource conversion terminal when presenting to the user is 7:1, indicating that 7 Chinese yuan can be converted into 1 US dollar. When the service server receives the conversion relationship verification request sent by the resource conversion terminal, it may, according to the conversion relationship verification request, obtain the second resource conversion relationship corresponding to the Chinese yuan and the US dollar at the current time. At the current time, the second resource conversion relationship may change to 7.2:1.

[0083] Step 206, obtain the first conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship.

[0084] The service server may obtain the first conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship. Among them, the first conversion relationship difference refers to the conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship, and the first conversion relationship difference can be used to represent the degree of change of the second resource conversion relationship compared with the first resource conversion relationship. If the first conversion relationship difference is larger, it is determined that the degree of change of the second resource conversion relationship compared with the first resource conversion relationship is larger; otherwise, it is determined that the degree of change of the second resource conversion relationship compared with the first resource conversion relationship is smaller.

[0085] Specifically, the first conversion relationship difference may be the conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship. The service server may calculate the conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship and determine the calculated conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship as the first conversion relationship difference.

[0086] In one embodiment, the first conversion relationship difference may also be the degree of fluctuation of the conversion relationship between the first resource conversion relationship and the second resource conversion relationship, and the degree of fluctuation of the conversion relationship can be used to represent the degree of fluctuation between the second resource conversion relationship and the first resource conversion relationship. The service server may calculate the conversion relationship difference between the second resource conversion relationship and the first resource conversion relationship, calculate the conversion relationship ratio between the calculated conversion relationship difference and the first resource conversion relationship, and determine the calculated conversion relationship ratio as the first conversion relationship difference.

[0087] Step 208, when the first conversion relationship difference is within the first difference range, send a conversion relationship verification passed result to the resource conversion terminal, so that the resource conversion terminal converts the first resource into the second resource according to the first resource conversion relationship.

[0088] The service server may obtain the first difference range, and the first difference range may be preset according to actual application requirements. The first difference range may correspond to the first resource and the second resource. When the first resource is different from the second resource, different first difference ranges may be set correspondingly. The first difference range may also be fixed, and different first resources and second resources may correspond to the same first difference range. The type of the first difference range corresponds to the type of the first conversion relationship difference. For example, when the first conversion relationship difference is the conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship, the first difference range is the difference range corresponding to the conversion relationship difference. When the first conversion relationship difference is the degree of fluctuation of the conversion relationship between the first resource conversion relationship and the second resource conversion relationship, the first difference range is the difference range corresponding to the degree of fluctuation of the conversion relationship.

[0089] The service server may perform resource conversion relationship verification on the first conversion relationship difference based on the first difference range. Specifically, the service server may verify whether the first conversion relationship difference is within the first difference range. When the first conversion relationship difference is within the first difference range, it is determined that the resource conversion relationship verification is passed, and the service server may send a conversion relationship verification passed result to the resource conversion terminal, so that the resource conversion terminal converts the first resource into the second resource according to the first resource conversion relationship.

[0090] In one embodiment, when the first conversion relationship difference is outside the first difference range, it indicates that the difference between the second resource conversion relationship and the first resource conversion relationship is large, and it is determined that the resource conversion relationship verification fails. If the resource conversion is performed again according to the first resource conversion relationship, the result of the resource conversion is inaccurate. The service server may send a conversion relationship verification failed result to the resource conversion terminal, prompting the resource conversion terminal to update the resource conversion relationship used for resource conversion.

[0091] In this embodiment, the resource conversion terminal triggers a conversion relationship verification request based on the received resource conversion trigger operation. The service server receives the conversion relationship verification request sent by the resource conversion terminal. The conversion relationship verification request carries the first resource conversion relationship between the first resource and the second resource. The service server obtains the second resource conversion relationship corresponding to the first resource and the second resource at the current time according to the conversion relationship verification request. By obtaining the first conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship. By obtaining the first conversion relationship difference, the first resource conversion relationship used for resource conversion is verified, ensuring the accuracy of the resource conversion relationship used for resource conversion. When the first conversion relationship difference is within the first difference range, a conversion relationship verification pass result is sent to the resource conversion terminal, so that the resource conversion terminal converts the first resource into the second resource according to the first resource conversion relationship. After the first resource conversion relationship is verified to pass, the resource conversion is performed according to the first resource conversion relationship, avoiding inaccurate resource conversion caused by a large change in the resource conversion relationship, and effectively improving the accuracy of resource conversion.

[0092] In one embodiment, before receiving the conversion relationship verification request sent by the resource conversion terminal, the above method further includes: receiving a resource quantity query request sent by the resource conversion terminal, where the resource quantity query request carries the configured first resource, second resource, and the second resource quantity corresponding to the second resource; in response to the resource quantity query request, obtaining the current time, and the first resource conversion relationship between the first resource and the second resource; calculating the first resource quantity corresponding to the first resource based on the first resource conversion relationship and the second resource quantity; sending the first resource quantity and the first resource conversion relationship to the resource conversion terminal, so that the resource conversion terminal displays the first resource quantity and the first resource conversion relationship, and receives a resource conversion trigger operation generated based on the first resource quantity and the first resource conversion relationship; wherein, the resource conversion trigger operation is used to trigger the conversion of the first resource into the second resource with the second resource quantity according to the first resource conversion relationship.

[0093] Before receiving the conversion relationship verification request sent by the resource conversion terminal, the service server can also receive a resource quantity query request sent by the resource conversion terminal. The resource quantity query request may be triggered by the resource conversion terminal receiving a resource conversion configuration operation, and the resource quantity query request is used to request the service server to query the resource quantities corresponding to the resource conversion.

[0094] Specifically, the resource conversion terminal can receive the resource conversion configuration operation of the user in the resource conversion configuration interface, determine the first resource and the second resource specified by the resource conversion configuration operation. The user can also, through the resource conversion configuration operation, configure the quantity of the second resource corresponding to the second resource. The quantity of the second resource refers to the quantity of the resource corresponding to the second resource that needs to be converted. The resource conversion terminal can, in response to the received resource conversion configuration operation, generate a resource quantity query request carrying the first resource, the second resource, and the quantity of the second resource corresponding to the second resource configured by the user, and send the resource quantity query request to the service server. For example, the resource can specifically be currency. The user can configure the currency type and the currency quantity to be converted through the resource conversion terminal. The user can configure the first resource as RMB and the second resource as US dollars, which means converting RMB into US dollars. The user can also configure the quantity of US dollars to be converted through the resource conversion configuration operation. For example, the quantity of the second resource can be configured as 500, which means converting RMB into 500 US dollars.

[0095] In one embodiment, according to actual application requirements, the first resource can be defaulted to the local currency of the usage area. The local currency refers to the legal currency in the geographical area where the user is located. The geographical area can specifically be a country or a region. For example, when the country where the user is located is China, the first resource can be defaulted to RMB. The user can only configure the second resource and the quantity of the second resource corresponding to the second resource.

[0096] The service server can receive the resource quantity query request sent by the resource conversion terminal. The resource quantity query request carries the first resource, the second resource, and the quantity of the second resource corresponding to the second resource configured by the user. The service server can, in response to the received resource quantity query request, obtain the current time and the first resource conversion relationship between the first resource and the second resource. At this time, the current time refers to the time when the service server queries the first resource conversion relationship. Specifically, the service server can query the first resource conversion relationship between the first resource and the second resource through a conversion relationship query server, or can also query the first resource conversion relationship through other means. There is no limitation on the way for the service server to obtain the first resource conversion relationship here.

[0097] The service server can calculate the first resource quantity corresponding to the first resource based on the obtained first resource conversion relationship and the second resource quantity carried in the resource quantity query request. The first resource quantity refers to the resource quantity of the first resource required to convert out the second resource of the second resource quantity. Since the first resource conversion relationship can represent the ratio of the first resource quantity to the second resource quantity, the service server can calculate the first resource quantity corresponding to the first resource based on the first resource conversion relationship and the second resource quantity. For example, assuming that the first resource conversion relationship between the Chinese yuan and the US dollar is 7:1, when the user configures to convert the Chinese yuan into 500 US dollars, the service server can calculate that the first resource quantity corresponding to the Chinese yuan is 3500 yuan.

[0098] The service server can send the obtained first resource conversion relationship and the calculated first resource quantity to the resource conversion terminal, so that the resource conversion terminal can display the required first resource quantity and the first resource conversion relationship to the user through the display interface, and prompt the user of the first resource quantity of the first resource required to convert into the second resource of the second resource quantity, for the user to confirm whether to perform resource conversion according to the first resource conversion relationship. When the user confirms to perform resource conversion according to the first resource conversion relationship, the resource conversion terminal can receive a resource conversion trigger operation generated based on the first resource quantity and the first resource conversion relationship. The resource conversion trigger operation is used to trigger the conversion of the first resource into the second resource of the second resource quantity according to the first resource conversion relationship. After receiving the resource conversion trigger operation, the resource conversion terminal can trigger the generation of a conversion relationship verification request and send the conversion relationship verification request to the service server, so that the service server can obtain the second resource conversion relationship according to the received conversion relationship verification request and verify the first resource conversion relationship.

[0099] In one embodiment, before sending the first resource conversion relationship and the first resource quantity to the resource conversion terminal, the service server can encrypt the first resource conversion relationship and the first resource quantity to be transmitted and send the encrypted data to the resource conversion terminal. The resource conversion terminal can receive the encrypted data and decrypt the encrypted data to obtain the first resource conversion relationship and the first resource quantity. By encrypting the first resource conversion relationship and the first resource quantity to be transmitted, the service server effectively improves the security of the first resource conversion relationship and the first resource quantity during the transmission process.

[0100] In one embodiment, corresponding to the quantity of the second resource configured by the user for the second resource, the user can also configure the quantity of the first resource corresponding to the first resource. The resource conversion terminal can determine the first resource specified by the resource conversion configuration operation, the quantity of the first resource corresponding to the first resource, and the second resource according to the received resource conversion configuration operation. For example, the user can configure to convert 100 RMB into US dollars. The resource quantity query request received by the service server can carry the first resource, the quantity of the first resource corresponding to the first resource, and the second resource. The service server can obtain the first resource conversion relationship at the current time, calculate the quantity of the second resource corresponding to the second resource based on the quantity of the first resource and the first resource conversion relationship, and send the first resource conversion relationship and the quantity of the second resource to the resource conversion terminal, so that the resource conversion terminal displays the first resource conversion relationship and the quantity of the second resource, prompting the user of the quantity of the second resource that can be obtained by converting the first resource of the quantity of the first resource. The resource conversion terminal can receive a resource conversion trigger operation generated based on the first resource conversion relationship and the quantity of the second resource, and trigger the conversion of the quantity of the first resource of the first resource into the second resource according to the first resource conversion relationship.

[0101] In this embodiment, by receiving the resource quantity query request sent by the resource conversion terminal, obtaining the first resource conversion relationship between the first resource and the second resource at the current time, calculating the quantity of the first resource corresponding to the first resource based on the first resource conversion relationship at the current time and the quantity of the second resource carried in the resource quantity query request, sending the quantity of the first resource and the first resource conversion relationship to the resource conversion terminal, so that the resource conversion terminal displays the quantity of the first resource and the first resource conversion relationship, receiving the resource conversion trigger operation generated based on the quantity of the first resource and the first resource conversion relationship, prompting the user of the quantity of the first resource required to convert into the second resource of the quantity of the second resource, and querying the first resource conversion relationship at the current time in real time according to the resource quantity query request, the accuracy of the calculated quantity of the first resource is effectively improved.

[0102] In one embodiment, the step of sending a conversion relationship verification passed result to the resource conversion terminal when the first conversion relationship difference is within the first difference range includes: when the first conversion relationship difference does not exceed the first upward difference threshold and is not lower than the first downward difference threshold, sending a conversion relationship verification passed result to the resource conversion terminal.

[0103] The first upward difference threshold refers to the corresponding difference threshold when the second conversion relationship fluctuates upward relative to the first conversion relationship. The first downward difference threshold refers to the corresponding difference threshold when the second conversion relationship fluctuates downward relative to the first conversion relationship. The first difference range can be determined based on the first upward difference threshold and the first downward difference threshold, and the first upward difference threshold and the first downward difference threshold can be determined according to actual application requirements. The first upward difference threshold and the first downward difference threshold can correspond to the first resource and the second resource. For different first resources and second resources, different first upward difference thresholds and first downward difference thresholds can be set correspondingly. After the service server obtains the first conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship, it can compare the first conversion relationship difference with the first upward difference threshold and the first downward difference threshold. When the first conversion relationship difference does not exceed the first upward difference threshold and is not lower than the first downward difference threshold, it is determined that the first conversion relationship difference is within the first difference range, and the resource conversion relationship verification passes. The service server can send a conversion relationship verification pass result to the resource conversion terminal.

[0104] Specifically, as Figure 3 shown, Figure 3 FIG. is a schematic flowchart for verifying whether the first conversion relationship difference is within the first difference range in an embodiment. The service server can obtain the first upward difference threshold and the first downward difference threshold (step 302), obtain the first conversion relationship difference (step 304), and detect whether the first conversion relationship difference is greater than 0 (step 306). When the first conversion relationship difference is greater than 0, it indicates that the resource conversion relationship floats upward. The service server can compare the first conversion relationship difference with the first upward difference threshold and detect whether the first conversion relationship difference exceeds the first upward difference threshold (step 308). When the first conversion relationship difference does not exceed the first upward difference threshold, it is determined that the resource conversion relationship verification passes (step 310), and a conversion relationship verification pass result is sent to the resource conversion terminal. Otherwise, it is determined that the resource conversion relationship verification fails (step 312).

[0105] Detect whether the first conversion relationship difference is less than 0 (step 314). When the first conversion relationship difference is less than 0, it indicates that the resource conversion relationship sinks downward. The service server can compare the first conversion relationship difference with the first downward difference threshold and detect whether the first conversion relationship difference is lower than the first downward difference threshold (step 316). When the first conversion relationship difference is not lower than the first downward difference threshold, it is determined that the resource conversion relationship verification passes, and a conversion relationship verification pass result is sent to the resource conversion terminal. Otherwise, it is determined that the resource conversion relationship verification fails.

[0106] When the first conversion relationship difference is equal to 0, it indicates that the first resource conversion relationship is the same as the second resource conversion relationship, and the resource conversion relationship has not changed. It is determined that the resource conversion relationship verification passes, and a conversion relationship verification pass result is sent to the resource conversion terminal.

[0107] In this embodiment, the first difference range is determined according to the first upward difference threshold and the first downward difference threshold. When the first conversion relationship difference does not exceed the first upward difference threshold and is not lower than the first downward difference threshold, it is determined that the resource conversion relationship verification passes, and a conversion relationship verification pass result is sent to the resource conversion terminal. By detecting whether the first conversion relationship difference exceeds the first upward difference threshold or is lower than the first downward difference threshold, the change degree between the first resource conversion relationship and the second resource conversion relationship is verified, avoiding resource conversion when the change degree of the resource conversion relationship is large, and effectively improving the accuracy of resource conversion.

[0108] In one embodiment, the above method further includes: when the first conversion relationship difference is outside the first difference range, a conversion relationship verification failure result is sent to the resource conversion terminal, so that the resource conversion terminal responds to the conversion relationship verification failure result and performs resource conversion according to the updated resource conversion relationship.

[0109] After the service server obtains the first conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship, it verifies whether the first conversion relationship difference is within the first difference range. When the first conversion relationship difference is outside the first difference range, it is determined that the resource conversion relationship verification fails. The service server can send a conversion relationship verification failure result to the resource conversion terminal, so that after the resource conversion terminal receives the conversion relationship verification failure result sent by the service server, it responds to the conversion relationship verification failure result and performs resource conversion according to the updated resource conversion relationship. Among them, the updated resource conversion relationship refers to the resource conversion relationship used to update the first resource conversion relationship when the first conversion relationship difference is outside the first difference range. The resource conversion terminal can use the updated resource conversion relationship to update the first resource conversion relationship and perform resource conversion according to the updated resource conversion relationship.

[0110] The updated resource conversion relationship can be actively sent by the service server to the resource conversion terminal. Specifically, when the service server determines that the first conversion relationship difference is outside the first difference range, it can obtain the updated resource conversion relationship and send the updated resource conversion relationship and the conversion relationship verification failure result to the resource conversion terminal, so that the resource conversion terminal responds to the conversion relationship verification failure result and performs resource conversion according to the updated resource conversion relationship sent by the service server.

[0111] In one embodiment, the second resource conversion relationship is obtained by the service server when verifying the resource conversion relationship, and is more accurate than the first resource conversion relationship. The service server may determine the second resource conversion relationship as the updated resource conversion relationship, and send the second resource conversion relationship and the verification failure result of the conversion relationship to the resource conversion terminal, so that the resource conversion terminal performs resource conversion according to the second resource conversion relationship.

[0112] The updated resource conversion relationship may also be actively obtained by the resource conversion terminal. Specifically, after receiving the verification failure result of the conversion relationship sent by the service server, the resource conversion terminal may, in response to the verification failure result of the conversion relationship, request the service server to obtain the updated resource conversion relationship, receive the updated resource conversion relationship returned by the service server, and perform resource conversion according to the updated resource conversion relationship.

[0113] In one embodiment, the first difference range is determined according to the first upward difference threshold and the first downward difference threshold. The service server may compare the first conversion relationship difference with the first upward difference threshold and the first downward difference threshold. When the first conversion relationship difference exceeds the first upward difference threshold or is lower than the first downward difference threshold, it is determined that the first conversion relationship difference is outside the first difference range.

[0114] In this embodiment, when the first conversion relationship difference is outside the first difference range, the service server sends a verification failure result of the conversion relationship to the resource conversion terminal, so that the resource conversion terminal, in response to the verification failure result of the conversion relationship, performs resource conversion according to the updated resource conversion relationship. By verifying the resource conversion relationship, it is avoided that the resource conversion terminal performs resource conversion according to the resource conversion relationship with verification failure. When the verification of the resource conversion relationship fails, resource conversion is performed according to the updated resource conversion relationship, avoiding the impact on resource conversion caused by a large change in the resource conversion relationship, ensuring the accuracy of the resource conversion relationship used for resource conversion, and effectively improving the accuracy of resource conversion.

[0115] In one embodiment, the step of sending a verification failure result of the conversion relationship to the resource conversion terminal when the first conversion relationship difference is outside the first difference range includes: when the first conversion relationship difference is outside the first difference range, calculating the updated resource quantity corresponding to the first resource according to the second resource quantity corresponding to the second resource and the updated resource conversion relationship; sending the updated resource quantity and the verification failure result of the conversion relationship to the resource conversion terminal, so that the resource conversion terminal, in response to the verification failure result of the conversion relationship, updates the first resource quantity corresponding to the first resource according to the updated resource quantity.

[0116] When the first conversion relationship difference is outside the first difference range, the service server can obtain an updated resource conversion relationship. The updated resource conversion relationship can be the second resource conversion relationship obtained by the service server when verifying the first resource conversion relationship, or the resource conversion relationship between the first resource and the second resource obtained in real time by the service server after determining that the first conversion relationship difference is outside the first difference range. In the conversion relationship verification request sent by the resource conversion terminal, the second resource quantity corresponding to the second resource can also be carried. The second resource quantity is the quantity of the second resource that the user configures to be transferred in. The service server can calculate the updated resource quantity corresponding to the first resource based on the second resource quantity corresponding to the second resource and the updated resource conversion relationship. The updated resource quantity corresponding to the first resource can be used to update the first resource quantity determined according to the first resource conversion relationship.

[0117] It can be understood that the first resource quantity is calculated based on the second resource quantity and the first resource conversion relationship. When the first conversion relationship difference is outside the first difference range, it is determined that the resource conversion relationship fluctuates greatly. The service server can calculate the updated resource quantity based on the updated resource conversion relationship and the second resource quantity. Using the first resource of the updated resource quantity is beneficial to more accurately convert it into the second resource of the second resource quantity, so as to meet the user's demand for more accurately converting the first resource into the second resource of the second resource quantity, and effectively improve the accuracy of resource conversion.

[0118] In one embodiment, when the resource conversion terminal determines the first resource, the first resource quantity corresponding to the first resource, and the second resource according to the resource conversion configuration operation, the service server can send the second resource quantity corresponding to the second resource calculated based on the first resource conversion relationship and the first resource quantity to the resource conversion terminal according to the resource quantity query request sent by the resource conversion terminal. When the service server receives the conversion relationship verification request sent by the resource conversion terminal based on the resource conversion trigger operation, it can verify the first resource conversion relationship. When the first resource conversion difference is outside the first difference range, the updated resource quantity corresponding to the second resource can be calculated based on the first resource quantity corresponding to the first resource and the updated resource conversion relationship. The updated resource quantity corresponding to the second resource can be used to update the second resource quantity displayed by the resource conversion terminal.

[0119] The business server can send the updated resource quantity and the conversion relationship verification failure result to the resource conversion terminal, so that the resource conversion terminal, in response to the received conversion relationship verification failure result, updates the first resource quantity corresponding to the first resource according to the updated resource quantity. The resource conversion terminal can receive the updated resource quantity and the conversion relationship verification failure result sent by the business server, and in response to the conversion relationship verification failure result, update the first resource quantity specified by the resource conversion trigger operation according to the updated resource quantity.

[0120] Specifically, the resource conversion terminal can directly update the first resource quantity corresponding to the first resource according to the updated resource quantity to obtain the updated first resource quantity. The resource conversion terminal can convert the first resource with the updated first resource quantity into the second resource with the second resource quantity.

[0121] The resource conversion terminal can also, in response to the received conversion relationship verification failure result, display a resource quantity update prompt message. The resource quantity update prompt message is used to prompt the user that the first resource quantity corresponding to the first resource needs to be updated. When the resource conversion terminal receives a confirmation update operation, in response to the confirmation update operation, it updates the first resource quantity corresponding to the first resource according to the updated resource quantity sent by the business server to obtain the updated first resource quantity. The resource conversion terminal can receive a resource conversion trigger operation generated based on the updated first resource quantity, and according to the resource conversion trigger operation, convert the first resource with the updated first resource quantity into the second resource with the second resource quantity.

[0122] For example, assume that the user configures the second resource as US dollars, and the quantity of the second resource corresponding to the second resource is 500. The user can configure the first resource as RMB or default the first resource to RMB. When the first resource conversion ratio is 7:1, the business server can, based on the resource quantity query request of the resource conversion terminal, return that the quantity of the first resource corresponding to the first resource of the resource conversion terminal is 3,500. When the resource conversion terminal receives a resource conversion trigger operation, it can send a conversion ratio verification request to the business server. The business server obtains the current time and the second resource conversion ratio between RMB and US dollars according to the conversion ratio verification request. At this time, the second resource conversion ratio between RMB and US dollars may change to 8:1. The business server verifies that the first conversion ratio difference between the second resource conversion ratio and the first resource conversion ratio is outside the first difference range. The business server can determine that the second resource conversion ratio is the updated resource conversion ratio, and calculate the updated resource quantity corresponding to the first resource as 4,000 according to the updated resource conversion ratio and the quantity of the second resource. At this time, due to the change in the resource conversion ratio, 3,500 RMB can no longer be converted into 500 US dollars. The business server can send the updated resource quantity and the conversion ratio verification failure result to the resource conversion terminal. The resource conversion terminal, in response to the conversion ratio verification failure result, displays a resource quantity update prompt message, prompting the user that the conversion ratio between RMB and US dollars has changed significantly and the quantity of the first resource corresponding to RMB needs to be updated. When the user confirms the update, the resource conversion terminal can receive the user's confirmation update operation and update the quantity of the first resource corresponding to the first resource to 4,000. When the resource conversion terminal receives a resource conversion trigger operation, it can convert 4,000 RMB into 500 US dollars.

[0123] In this embodiment, when the first conversion ratio difference is outside the first difference range, it is determined that the resource conversion ratio verification fails. According to the quantity of the second resource corresponding to the second resource and the updated resource conversion ratio, the updated resource quantity corresponding to the first resource is calculated. Due to the change in the resource conversion ratio, more accurate resource conversion can be performed using the updated resource quantity. By sending the updated resource quantity and the conversion ratio verification failure result to the resource conversion terminal, the resource conversion terminal, in response to the conversion ratio verification failure result, updates the quantity of the first resource corresponding to the first resource according to the updated resource quantity, and uses the first resource with the updated quantity of the first resource for conversion, which can be more accurately converted into the second resource with the quantity of the second resource, effectively improving the accuracy of resource conversion.

[0124] In one embodiment, the above method further includes: receiving a first resource conversion request sent by a resource conversion terminal, where the first resource conversion request is sent after receiving a result indicating that the conversion relationship verification has passed, and the first resource conversion request is used to request to convert a first resource into a second resource according to a first resource conversion relationship; in response to the first resource conversion request, transferring the first resource from the account corresponding to the resource conversion terminal and writing the first resource conversion relationship into the resource conversion record.

[0125] When the first conversion relationship difference is within the first difference range, it indicates that the first resource conversion relationship has not changed significantly compared to the second resource conversion relationship at the current time. The resource conversion can be performed according to the first resource conversion relationship, and it is determined that the conversion relationship verification has passed. The service server can send a result indicating that the conversion relationship verification has passed to the resource conversion terminal. After the resource conversion terminal receives the result indicating that the conversion relationship verification has passed, it can send a first resource conversion request to the service server, and the service server can receive the first resource conversion request sent by the resource conversion terminal. The first resource conversion request is used to request to convert a first resource into a second resource according to a first resource conversion relationship.

[0126] Specifically, after the resource conversion terminal receives the result indicating that the conversion relationship verification has passed sent by the service server, it can directly respond to the result indicating that the conversion relationship verification has passed, generate a first resource conversion request, and send the first resource conversion request to the service server, requesting the service server to convert a first resource into a second resource according to the first resource conversion relationship. The resource conversion terminal can directly trigger the first resource conversion request according to the result indicating that the conversion relationship verification has passed, without the user needing to confirm the resource conversion again. The user will not perceive the verification of the resource conversion relationship, reducing the interaction process between the resource conversion terminal and the user, saving the interaction resources of the resource conversion terminal, and improving the user experience.

[0127] In one of the embodiments, after the resource conversion terminal receives the result indicating that the conversion relationship verification has passed sent by the service server, it can also display a resource conversion confirmation interface, prompting the user that the resource conversion can be performed according to the first resource conversion relationship, and the user can confirm the resource conversion. When the resource conversion terminal receives the resource conversion operation of the user on the resource conversion confirmation interface, in response to the resource conversion operation, it generates a first resource conversion request and sends it to the service server to request the service server to perform resource conversion according to the first resource conversion relationship.

[0128] The service server can transfer the first resource from the account corresponding to the resource conversion terminal in response to the received first resource conversion request. The service server transfers the first resource from the account corresponding to the resource conversion terminal, and the quantity of the transferred first resource is the first resource quantity. The service server writes the first resource conversion relationship into the resource conversion record to record the resource conversion behavior of converting the first resource into the second resource according to the first resource conversion relationship. The resource conversion record is a record of the resource conversion behavior. The resource conversion record may include the type identifier of the first resource, the first resource quantity of the first resource, the type identifier of the second resource, the second resource quantity of the second resource, and the resource conversion relationship for resource conversion.

[0129] In one embodiment, when the resource conversion terminal performs resource conversion according to the updated resource conversion relationship in response to the conversion relationship verification failure result, the first resource conversion request sent by the resource conversion terminal is used to request the service server to convert the first resource into the second resource according to the updated resource conversion relationship. The service server can transfer the first resource with the first resource quantity updated according to the updated resource quantity from the account corresponding to the resource conversion terminal and write the updated resource conversion relationship into the resource conversion record.

[0130] In one embodiment, the first resource conversion request sent by the resource conversion terminal may carry the transferee identifier. The transferee identifier may be determined according to the resource conversion configuration operation, and the transferee identifier is used to mark the transfer object of the converted second resource. After converting the first resource transferred from the account corresponding to the resource conversion terminal into the second resource, the service server can transfer the second resource to the user account corresponding to the transferee identifier. The transfer object may be the user corresponding to the resource conversion terminal. For example, user A can convert the owned first resource into the second resource. The transfer object may also be other users. For example, user A can convert the first resource owned by user A into the second resource through the service server and transfer the second resource to the account of user B corresponding to the transferee identifier.

[0131] In this embodiment, the service server may receive a first resource conversion request sent by the resource conversion terminal after receiving the result of passing the conversion relationship verification. The first resource conversion request is used to request to convert the first resource into the second resource according to the first resource conversion relationship. The resource conversion terminal sends the first resource conversion request only after the conversion relationship verification passes, avoiding errors in the transferred first resource caused by large changes in the conversion relationship. In response to the first resource conversion request, the service server transfers the first resource from the account corresponding to the resource conversion terminal and writes the first resource conversion relationship into the resource conversion record, effectively improving the accuracy of the quantity of the transferred first resource. Moreover, in the traditional method, when the conversion relationship fluctuates greatly, the service server needs to transfer the first resource from the account corresponding to the resource conversion terminal multiple times. Compared with the traditional method, this embodiment reduces the number of times the service server transfers the first resource, effectively saving the interaction resources between the service server and the resource conversion terminal.

[0132] In one embodiment, the above method further includes: obtaining the first resource conversion relationship corresponding to the resource conversion record; obtaining the current time, the third resource conversion relationship between the first resource and the second resource; obtaining the second conversion relationship difference between the first resource conversion relationship and the third resource conversion relationship; when the second conversion relationship difference is within the second difference range, sending a second resource conversion request to the resource conversion server, and the second resource conversion request is used to request to convert the first resource into the second resource.

[0133] After the service server transfers the first resource from the account corresponding to the resource conversion terminal, it can obtain the corresponding first resource conversion relationship from the resource conversion record and convert the first resource into the second resource. Specifically, the service server can obtain the first resource conversion relationship corresponding to the unfinished resource conversion from the resource conversion record, and obtain the current time, the third resource conversion relationship between the first resource and the second resource. It can be understood that the third resource conversion relationship refers to the resource conversion relationship obtained when the service server obtains the first resource conversion relationship from the resource conversion record and converts the first resource. The current times corresponding to the third resource conversion relationship and the second resource conversion relationship are different times during the resource conversion process.

[0134] In one of the embodiments, the service server may generate a conversion relationship query request carrying the first resource and the second resource, and send the conversion relationship query request to the query server, so that the query server queries the third resource conversion relationship between the first resource and the second resource at the current time according to the conversion relationship query request, and returns the queried third resource conversion relationship to the service server. The service server receives the third resource conversion relationship fed back by the query server.

[0135] The service server can obtain the second transformation relationship difference between the first resource transformation relationship and the third resource transformation relationship. The second transformation relationship difference can specifically be the transformation relationship difference between the third resource transformation relationship and the first resource transformation relationship. The second transformation relationship difference can also specifically be the degree of fluctuation of the transformation relationship between the first resource transformation relationship and the third resource transformation relationship. Corresponding to the first transformation relationship difference, the manner in which the service server obtains the second transformation relationship difference between the first resource transformation relationship and the third resource transformation relationship is similar to the manner in which the service server obtains the first transformation relationship difference in the above embodiments, and thus will not be elaborated herein.

[0136] The service server can obtain the second difference range corresponding to the first resource and the second resource. The second difference range can be preset according to actual application requirements. The second difference range can be the same as or different from the first difference range. The service server can verify whether the second transformation relationship difference is within the second difference range.

[0137] When the second transformation relationship difference is within the second difference range, it is determined that resource transformation can be performed. The service server can send a second resource transformation request to the resource transformation server. The second resource transformation request is used to request to transform the first resource into the second resource. Wherein, when the resource is specifically currency, the resource transformation server can specifically be the server corresponding to the purchase and foreign exchange payment platform, and the resource transformation server is used to transform the first resource into the second resource. The resource transformation server can specifically transform the first resource into the second resource according to the third resource transformation relationship corresponding to the current time. Since the second transformation relationship difference between the first resource transformation relationship and the third resource transformation relationship is within the second difference range, the service server can directly request the resource transformation server to transform the first resource into the second resource, without having to transfer the first resource from the account corresponding to the resource transformation terminal, effectively reducing the interaction times between the service server and the resource transformation terminal, saving the interaction resources of the service server, and improving the user experience.

[0138] In one embodiment, the second resource transformation request can carry the transferee identifier and the quantity of the second resource of the second resource. The service server can send the second resource transformation request carrying the transferee identifier and the quantity of the second resource to the resource transformation server, so that the resource transformation server transforms the first resource into the second resource of the quantity of the second resource and transfers the second resource into the user account corresponding to the transferee identifier.

[0139] It can be understood that the process of transforming the first resource into the second resource may take a relatively long time. During the process of transforming the first resource into the second resource, the resource transformation relationship may change at any time. As Figure 4 shown, Figure 4Schematic diagram for verifying the resource conversion relationship in an embodiment. When receiving a resource conversion trigger operation, the resource conversion terminal may send a conversion relationship verification request to the service server. Before transferring the first resource from the account corresponding to the resource conversion terminal, the service server may obtain the first conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship, and verify whether the first conversion relationship difference is within the first difference range. When the first conversion relationship difference is within the first difference range, it is determined that the change in the first resource conversion relationship is within the first difference range, and the first resource can be transferred from the account. When the first conversion relationship difference is outside the first difference range, it is determined that the change in the first resource conversion relationship is large. If the resource conversion continues according to the first resource conversion relationship, it is inaccurate, and the resource conversion needs to be performed according to the updated resource conversion relationship. Correspondingly, before the service server converts the first resource into the second resource, the service server obtains the second conversion relationship difference between the first resource conversion relationship and the third resource conversion relationship corresponding to the current time. When the second conversion relationship difference is outside the second difference range, it is inaccurate to continue the resource conversion according to the first resource. When the second conversion relationship difference is within the second difference range, it can be determined to convert the first resource into the second resource. In this way, through the first difference range and the second difference range, the resource conversion relationship is verified during the resource conversion process, reducing the risk of directly converting the first resource into the second resource and effectively improving the accuracy of resource conversion.

[0140] In this embodiment, by obtaining the current time and the third resource conversion relationship corresponding to the first resource and the second resource, and obtaining the second conversion relationship difference between the first resource conversion relationship and the third resource conversion relationship, the resource conversion relationship is verified again before converting the transferred first resource into the second resource. When the second conversion relationship difference is within the second difference range, a second resource conversion request is sent to the resource conversion server, requesting the resource conversion server to convert the first resource into the second resource. By verifying the resource conversion relationship multiple times and performing the resource conversion when the resource conversion relationship passes the verification multiple times, the accuracy of resource conversion is effectively improved.

[0141] In an embodiment, when the second conversion relationship difference is outside the second difference range, it indicates that the conversion relationship difference between the first resource conversion relationship and the third resource conversion relationship is large, and the transferred first resource cannot be converted into the second resource corresponding to the quantity of the second resource. The service server may return the transferred first resource to the account corresponding to the resource conversion terminal and send a resource conversion failure result to the resource conversion terminal, so that the resource conversion terminal displays the resource conversion failure result, prompting the user that the resource conversion fails and needs to initiate the resource conversion again.

[0142] As Figure 5 shown,Figure 5 Schematic diagram of the interface for resource conversion by the resource conversion terminal in an embodiment. The resource can specifically be currency, and the user can perform cross-border remittance through the resource conversion terminal. The resource conversion terminal can receive the configuration operation of the user on the remittance currency determination interface (as shown in Figure 5 Figure a), and determine the second resource input by the user and the second resource quantity of the second resource. For example, the second resource is specifically US dollars, and the user can input the amount of US dollars to be remitted as $5000. The first resource can be default set to RMB. When the user clicks the resource quantity query control, the resource conversion terminal receives the resource quantity query operation, and sends a resource quantity query request to the business server to query the amount of RMB required for remitting $5000. The resource quantity query control can specifically be Figure 5 the "Next" control in Figure a, and the query trigger operation can specifically be a click operation.

[0143] The business server queries the first exchange rate between RMB and US dollars according to the resource quantity query request, and calculates the corresponding amount of RMB based on the first exchange rate and the US dollar amount. Assuming the first exchange rate is specifically 7:1, the business server can calculate that 35000 yuan of RMB is required. The business server can send the first exchange rate and the amount of RMB to the resource conversion terminal. The resource conversion terminal displays the first exchange rate and the amount of RMB (as shown in Figure 5 Figure b) to enable the user to confirm whether to pay RMB for resource conversion. When the user determines to pay, the resource conversion terminal can receive the resource conversion trigger operation generated by the user based on the amount of RMB and the first exchange rate. The resource conversion trigger operation can specifically be a click operation, and sends a conversion relationship verification request to the business server according to the resource conversion trigger operation. The business server can obtain the current time, the second exchange rate between RMB and US dollars, and the first exchange rate fluctuation between the first exchange rate and the second exchange rate according to the conversion relationship verification request.

[0144] When the first exchange rate fluctuation is within the first difference range, it is determined that the first exchange rate fluctuation is small, and the business server sends a conversion relationship verification passed result to the resource conversion terminal. The resource conversion terminal can display a resource conversion confirmation interface (as shown in Figure 5 Figure c) in response to the conversion relationship verification passed result. The resource conversion confirmation interface can specifically be a payment interface. When the user inputs the payment key, it is determined that the user confirms to perform resource conversion. The resource conversion terminal can send a first resource conversion request to the business server.

[0145] When the first exchange rate fluctuation is outside the first difference range, the business server sends a conversion relationship verification failed result to the resource conversion terminal. The resource conversion terminal can display a resource quantity update prompt message (as shown in Figure 5d). For example, the second exchange rate changes to 7.5:1, and the first exchange rate fluctuation between the first exchange rate and the second exchange rate is outside the first difference range. It is determined that the first exchange rate fluctuation is large, and the resource quantity update prompt information is, for example, "The current exchange rate fluctuates greatly and has changed to 7.5:1. The US dollar exchange amount needs to be calculated based on the updated exchange rate. Please confirm whether to update." After the user confirms to update the resource quantity, the RMB amount is updated according to the updated resource quantity, for example, RMB 37,500. The resource conversion terminal sends a first resource conversion request to the business server based on the updated first resource quantity (RMB 37,500).

[0146] The business server transfers RMB from the account corresponding to the resource conversion terminal according to the first resource conversion request, and the RMB amount is the amount confirmed by the user. After the business server transfers RMB from the account corresponding to the user, the resource conversion terminal can display the payment success result (such as Figure 5 e), the result of successful payment is, for example, "Payment has been successfully made, waiting for remittance", thereby prompting the user that the payment has been completed.

[0147] After the business server transfers RMB from the user's account, before initiating a remittance operation to the resource conversion server corresponding to the purchase and payment platform, it obtains the current time, the third exchange rate between RMB and USD, and obtains the second exchange rate fluctuation between the first exchange rate and the third exchange rate. When the second exchange rate fluctuation is outside the second difference range, the transferred RMB is returned to the account corresponding to the resource conversion terminal, and a resource conversion failure result is sent to the resource conversion terminal. The resource conversion terminal can display the resource conversion failure result (such as Figure 5 f), the result of resource conversion failure is, for example, "The current exchange rate fluctuates greatly, and the refund has been successful. The order is closed, please place an order again", which prompts the user that the cross-border remittance has failed and needs to be re-initiated.

[0148] In this embodiment, when the second conversion relationship difference is outside the second difference range, the transferred first resource is returned to the account corresponding to the resource conversion terminal, avoiding the conversion of the transferred first resource into the second resource when the resource conversion relationship changes significantly, effectively improving the accuracy of resource conversion, and the business server sends the resource conversion failure result to the resource conversion terminal, so that the resource conversion terminal displays the resource conversion failure result, prompting the user to re-initiate resource conversion, thereby improving the efficiency of resource conversion and user experience.

[0149] In one embodiment, the first resource conversion request carries the key resource conversion information to be verified, and the method further includes: obtaining the current time, and the fourth resource conversion relationship corresponding to the first resource and the second resource; obtaining the third conversion relationship difference between the first resource conversion relationship and the fourth resource conversion relationship, and when the third conversion relationship difference is within the second difference range, verifying the key resource conversion information; when the key resource conversion information is verified to conform to the resource conversion constraint conditions, performing the step of obtaining the current time and the third resource conversion relationship corresponding to the first resource and the second resource.

[0150] The first resource conversion request may also carry the key resource conversion information to be verified. The key resource conversion information may correspond to the actual resource conversion application scenario, and the types of key resource conversion information corresponding to different application scenarios may be different. For example, in the application scenario of studying abroad payment, the key resource conversion information may include school information, enrollment information, user identity information, etc. The service server may verify the key resource conversion information carried in the first resource conversion request. When the key resource conversion information is verified to conform to the resource conversion constraint conditions, perform the step of obtaining the current time and the third resource conversion relationship corresponding to the first resource and the second resource, and verify the second conversion relationship difference between the first resource conversion relationship and the third resource conversion relationship before sending the second resource conversion request to the resource conversion server. Among them, the resource conversion constraint conditions may be set according to the actual resource conversion application scenario and the type of key information. For example, the resource conversion constraint condition may specifically be that the key resource conversion information is all true information.

[0151] As Figure 6 shown, Figure 6 FIG. is a schematic diagram of the overall process corresponding to resource conversion in one embodiment. Before verifying the key resource conversion information, the service server may obtain the current time and the fourth resource conversion relationship corresponding to the first resource and the second resource. It can be understood that the current time corresponding to each of the first resource conversion relationship, the second resource conversion relationship, the third resource conversion relationship, and the fourth resource conversion relationship is different times during the resource conversion process. The service server may obtain the third conversion relationship difference between the first resource conversion relationship and the fourth resource conversion relationship, and when the third conversion relationship difference is within the second difference range, verify the key resource conversion information. Among them, the manner in which the service server obtains the third conversion relationship difference between the first resource conversion relationship and the fourth resource conversion relationship, and verifies whether the third conversion relationship difference is within the second difference range is similar to the manner of obtaining the second conversion relationship difference and verifying whether the second conversion relationship difference is within the second difference range in the above embodiment, so it will not be elaborated here.

[0152] In one embodiment, when the third conversion relationship difference is outside the second difference range, it is determined that the degree of change in the resource conversion relationship is large, and the transferred first resource cannot be converted into the second resource. Naturally, there is no need to verify the key information of resource conversion anymore. The service server can send a resource conversion failure result to the resource conversion terminal, so that the resource conversion terminal displays the resource conversion failure result, prompting the user that the degree of change in the resource conversion relationship is large and the resource conversion needs to be initiated again. Since verifying the key information of resource conversion may take a long time, before verifying the key information of resource conversion, first verify the resource conversion relationship. When the resource conversion relationship fluctuates greatly, directly determine that the resource conversion fails, and return the transferred first resource to the account corresponding to the resource conversion terminal, avoiding unnecessary occupation of the first resource, thereby effectively improving the user experience.

[0153] The service server can verify the key information of resource conversion carried in the first resource conversion request by itself, or can verify the key information of resource conversion through the key information verification server. As Figure 7 shown, Figure 7 FIG. is a timing diagram of the resource conversion process in one embodiment. Before verifying the key information of resource conversion, the interaction process between the service server and the resource conversion terminal is similar to the interaction process in the above embodiment, so it will not be elaborated here. When the third conversion relationship difference is within the second difference range, the service server can send a key information verification request to the key information verification server, and the key information verification request carries the key information of resource conversion to be verified. The key information verification server can respond to the key information verification request, verify the key information of resource conversion, obtain the verification result corresponding to the key information of resource conversion, and the key information verification server returns the verification result to the service server. When the verification result corresponding to the key information of resource conversion meets the resource conversion constraint conditions, the service server obtains the third resource conversion relationship between the first resource and the second resource at the current time. When the second conversion relationship difference between the first resource conversion relationship and the third resource conversion relationship is within the second difference range, send a second resource conversion request to the resource conversion server, so that the resource conversion server converts the first resource into the second resource and transfers the second resource to the transferee account.

[0154] In one embodiment, when the verification of the key information of resource conversion does not meet the resource conversion constraint conditions, it is determined that the verification of the key information of resource conversion fails. The service server returns the transferred first resource to the account corresponding to the resource conversion terminal, and sends a key information verification failure result to the resource conversion terminal, so that the resource conversion terminal displays the key information verification failure result, prompting the user to re-enter the key information of resource conversion and initiate the resource conversion again.

[0155] In this embodiment, before converting the first resource into the second resource, obtain the fourth resource conversion relationship at the current time, and obtain the third conversion relationship difference between the first resource conversion relationship and the fourth resource conversion relationship. When the third conversion relationship difference is within the second difference range, only then verify the key information of resource conversion, avoiding unnecessary occupation of the first resource, thereby effectively improving the user experience. When the verification of the key information of resource conversion conforms to the resource conversion constraint conditions, only then execute the step of obtaining the third resource conversion relationship corresponding to the first resource and the second resource at the current time, and convert the first resource into the second resource, effectively improving the security of resource conversion.

[0156] The present application also provides an application scenario that applies the above resource conversion method. Specifically, the application of the resource conversion method in this application scenario is as follows: User A in China can pay tuition fees for studying abroad at School B overseas. User A can configure the currency corresponding to School B and the tuition fee amount through resource conversion configuration operations. Suppose School B is a school in the United States, the corresponding currency is the US dollar, and the corresponding tuition fee amount is 5,000 US dollars. The terminal corresponding to User A can send a resource quantity query request to the business server. The first resource is specifically the RMB, the second resource is specifically the US dollar, the quantity of the second resource is specifically 5,000, and the resource conversion relationship between the first resource and the second resource is specifically the exchange rate of RMB to US dollar. The business server can query the current time and the first exchange rate of RMB to US dollar. Suppose the first exchange rate is specifically 7:1. The business server can calculate the required RMB amount of 35,000 yuan based on the first exchange rate. The business server can return the first exchange rate and the required RMB amount for the user to confirm. When the terminal receives a resource conversion trigger operation, it can send a conversion relationship verification request to the business server. The business server, based on the conversion relationship verification request, obtains the current time, the second exchange rate corresponding to RMB and US dollar, and obtains the first exchange rate difference between the first exchange rate and the second exchange rate. If the second exchange rate fluctuates to 8:1 and it is determined that the first exchange rate difference is outside the first difference range, the business server sends a conversion relationship verification failure result to the terminal and calculates the required RMB amount at this time as 40,000 yuan for the user to reconfirm whether to perform resource conversion. If the second exchange rate fluctuates to 7.1:1 and it is determined that the first exchange rate difference is within the first difference range, a conversion relationship verification passed result is sent to the terminal, indicating that resource conversion can be performed according to the first exchange rate. The terminal can pull up the cashier on the display interface for the user to enter the payment password. After the user enters the payment password, 35,000 yuan of RMB can be transferred out from the user's account. The user can also input key information including school information, enrollment information, admission notice, and user identity information, etc. through the terminal. The business server can send the key information to the verification server to verify the key information through the verification server. The business server can also verify the key information by itself to improve the authenticity and security of studying abroad tuition payment. Before verifying the key information, the business server can obtain the fourth exchange rate between RMB and US dollar at the current time. Similar to the second exchange rate, obtain the third exchange rate difference between the first exchange rate and the fourth exchange rate. When the third exchange rate difference is outside the second difference range, the 35,000 yuan is returned to the user's account to avoid occupying the user's funds for a long time and facilitate the user to re-initiate the payment for studying abroad. When the third exchange rate difference is within the second difference range, the key information is verified. When the verification of the key information fails, the business server can return the transferred 35,000 yuan of RMB to User A's account and prompt User A that the verification of the key information fails.Since the time consumed for verifying critical information may be relatively long, the exchange rate may fluctuate at any time during the verification process. Therefore, when the critical information verification is passed, the business server may obtain the current time, the third exchange rate between the RMB and the US dollar, and verify whether the second exchange rate difference between the third exchange rate and the first exchange rate is within the second difference range. When the second exchange rate difference is within the second difference range, a second resource conversion request is sent to the resource conversion server corresponding to the purchase and payment foreign exchange platform, so that the resource conversion server converts the RMB into 5,000 US dollars according to the exchange rate and transfers the 5,000 US dollars into the account of School B. When the second exchange rate difference is outside the second difference range, the transferred 35,000 RMB is returned to the account of User A, and User A is prompted that the overseas study payment fails and needs to initiate the payment again. By verifying the exchange rate fluctuations through the first difference range before payment and the second difference range after payment, resource conversion can be performed only when the exchange rate fluctuates within the difference range, avoiding inaccurate converted currency amounts caused by large exchange rate fluctuations, thereby effectively improving the accuracy of resource conversion.

[0157] In one embodiment, as Figure 8 shown, a resource conversion method is provided. Corresponding to the method being applied to the business server in the above embodiment, taking the method being applied to Figure 1 the resource conversion terminal 102 therein as an example for illustration, it includes the following steps:

[0158] Step 802, receive a resource conversion trigger operation, where the resource conversion trigger operation is used to trigger the conversion of the first resource into the second resource according to the first resource conversion relationship.

[0159] Step 804, in response to the resource conversion trigger operation, generate a conversion relationship verification request carrying the first resource conversion relationship.

[0160] When the user needs to convert the first resource into the second resource according to actual application requirements, the user can perform a resource conversion trigger operation through the corresponding resource conversion terminal. For example, the display interface corresponding to the resource conversion terminal may include a resource conversion trigger control. When the user clicks on the resource conversion trigger control, the resource conversion terminal receives the resource conversion trigger operation, and the resource conversion trigger operation is used to trigger the conversion of the first resource into the second resource according to the first resource conversion relationship. Among them, the first resource conversion relationship refers to the resource conversion relationship specified by the resource conversion trigger operation. The resource conversion terminal can generate a conversion relationship verification request carrying the first resource conversion relationship in response to the received resource conversion trigger operation.

[0161] Step 806: Send the conversion relationship verification request to the service server, so that the service server obtains the current time, the second resource conversion relationship corresponding to the first resource and the second resource, and obtains the first conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship. When the first conversion relationship difference is within the first difference range, send the result of passing the conversion relationship verification.

[0162] The resource conversion terminal can send the generated conversion relationship verification request to the service server, so that the service server verifies the first resource conversion relationship.

[0163] Step 808: When receiving the result of passing the conversion relationship verification returned by the service server, convert the first resource into the second resource according to the first resource conversion relationship.

[0164] When receiving the result of passing the conversion relationship verification returned by the service server, the resource conversion terminal can convert the first resource into the second resource according to the first resource conversion relationship. Specifically, the resource conversion terminal can send a first resource conversion request to the service server, and the first resource conversion request is used to request the service server to convert the first resource into the second resource according to the first resource conversion relationship. The resource conversion terminal can directly trigger the first resource conversion request according to the result of passing the conversion relationship verification, without the user having to confirm the resource conversion again. The user will not perceive the verification of the conversion relationship, reducing the interaction process between the resource conversion terminal and the user, saving the interaction resources of the resource conversion terminal, and improving the user experience.

[0165] In one embodiment, after receiving the result of passing the conversion relationship verification sent by the service server, the resource conversion terminal can also display a resource conversion confirmation interface, prompting the user that the resource conversion can be performed according to the first resource conversion relationship, and the user confirms the resource conversion. When the resource conversion terminal receives the resource conversion operation of the user on the resource conversion confirmation interface, in response to the resource conversion operation, a first resource conversion request is generated and sent to the service server to request the service server to convert the first resource into the second resource according to the first resource conversion relationship.

[0166] In this embodiment, a resource conversion trigger operation is received. The resource conversion trigger operation is used to trigger the conversion of a first resource into a second resource according to a first resource conversion relationship. In response to the resource conversion trigger operation, a conversion relationship verification request carrying the first resource conversion relationship is generated. By sending the conversion relationship verification request to the service server, the service server obtains the current time and the second resource conversion relationship corresponding to the first resource and the second resource, and obtains the first conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship. When the first conversion relationship difference is within the first difference range, a conversion relationship verification passed result is sent. When the conversion relationship verification passed result returned by the service server is received, the first resource is converted into the second resource according to the first resource conversion relationship. By verifying the resource conversion relationship by the service server and only performing resource conversion according to the first resource conversion relationship after the conversion relationship verification passes, inaccurate resource conversion caused by a large change in the resource conversion relationship is avoided, and the accuracy of resource conversion is effectively improved.

[0167] In one embodiment, the above method further includes: when the conversion relationship verification failed result returned by the service server is received, in response to the conversion relationship verification failed result, resource conversion is performed according to the updated resource conversion relationship. The conversion relationship verification failed result is sent by the service server when the first conversion relationship difference is outside the first difference range.

[0168] After obtaining the first conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship, the service server verifies whether the first conversion relationship difference is within the first difference range. When the first conversion relationship difference is outside the first difference range, it is determined that the resource conversion relationship verification fails. The service server can send a conversion relationship verification failed result to the resource conversion terminal. After the resource conversion terminal receives the conversion relationship verification failed result sent by the service server, in response to the conversion relationship verification failed result, resource conversion is performed according to the updated resource conversion relationship. The updated resource conversion relationship refers to the resource conversion relationship used to update the first resource conversion relationship when the first conversion relationship difference is outside the first difference range. The resource conversion terminal can update the first resource conversion relationship by using the updated resource conversion relationship and send a first resource conversion request to the service server according to the updated resource conversion relationship, so that the service server converts the first resource into the second resource according to the updated resource conversion relationship.

[0169] In one embodiment, when receiving the result of failed conversion relationship verification returned by the service server, in response to the result of failed conversion relationship verification, the steps of performing resource conversion according to the updated resource conversion relationship include: receiving the updated resource quantity and the result of failed conversion relationship verification sent by the service server, where the updated resource quantity is calculated by the service server according to the second resource quantity corresponding to the second resource and the updated resource conversion relationship when the first conversion relationship difference is outside the first difference range; in response to the result of failed conversion relationship verification, updating the first resource quantity corresponding to the first resource according to the updated resource quantity.

[0170] When the first conversion relationship difference is outside the first difference range, the service server can obtain the updated resource conversion relationship. Among them, the updated resource conversion relationship can be the second resource conversion relationship obtained by the service server when verifying the first resource conversion relationship, or the resource conversion relationship between the first resource and the second resource obtained by the service server in real time after determining that the first conversion relationship difference is outside the first difference range. In the conversion relationship verification request sent by the resource conversion terminal, the second resource quantity corresponding to the second resource can also be carried. The second resource quantity is the quantity of the second resource that the user configures to be transferred in. The service server can calculate the updated resource quantity corresponding to the first resource according to the second resource quantity corresponding to the second resource and the updated resource conversion relationship. The updated resource quantity corresponding to the first resource can be used to update the first resource quantity determined according to the first resource conversion relationship.

[0171] Specifically, the resource conversion terminal can also, in response to the received result of failed conversion relationship verification, display a resource quantity update prompt message. The resource quantity update prompt message is used to prompt the user that the first resource quantity corresponding to the first resource needs to be updated. When the resource conversion terminal receives a confirmation update operation, in response to the confirmation update operation, it updates the first resource quantity corresponding to the first resource according to the updated resource quantity sent by the service server to obtain the updated first resource quantity. The resource conversion terminal can receive a resource conversion trigger operation generated based on the updated first resource quantity, and according to the resource conversion trigger operation, convert the first resource with the updated first resource quantity into the second resource with the second resource quantity.

[0172] In this embodiment, when the difference in the first conversion relationship is outside the first difference range, it is determined that the verification of the resource conversion relationship fails. According to the quantity of the second resource corresponding to the second resource and the updated resource conversion relationship, the updated quantity of the first resource corresponding to the first resource is calculated. Due to the change in the resource conversion relationship, the use of the updated resource quantity can perform resource conversion more accurately. In response to the result of the failed conversion relationship verification, the resource conversion terminal updates the quantity of the first resource corresponding to the first resource according to the updated resource quantity, and uses the first resource with the updated quantity of the first resource for conversion, which can be more accurately converted into the second resource with the quantity of the second resource, effectively improving the accuracy of resource conversion.

[0173] In one embodiment, the above method further includes: when receiving the resource conversion failure result sent by the service server, displaying the resource conversion failure result, where the resource conversion failure result is sent by the service server when the difference in the second conversion relationship is outside the second difference range.

[0174] When the difference in the second conversion relationship is outside the second difference range, it indicates that the conversion relationship between the first resource conversion relationship and the third resource conversion relationship is relatively large, and the transferred first resource cannot be converted into the second resource corresponding to the quantity of the second resource. The service server can return the transferred first resource to the account corresponding to the resource conversion terminal and send a resource conversion failure result to the resource conversion terminal. The resource conversion terminal can receive the resource conversion failure result sent by the service server and display the resource conversion failure result, thereby prompting the user that the fluctuation degree of the resource conversion relationship is relatively large and the resource conversion fails, and the resource conversion needs to be initiated again.

[0175] In this embodiment, when the difference in the second conversion relationship is outside the second difference range, the service server sends a resource conversion failure result to the resource conversion terminal, and the resource conversion terminal displays the received resource conversion failure result, prompting the user to initiate the resource conversion again, improving the efficiency of resource conversion and the user experience.

[0176] In one embodiment, as Figure 9 shown, a resource conversion method is provided. Taking the method applied to the service server 104 in Figure 1 as an example for description, it includes the following steps:

[0177] Step 902, obtain the first resource conversion relationship corresponding to the resource conversion record. The resource conversion record is generated according to the first resource conversion request, and the first resource conversion request is used to request to convert the first resource into the second resource according to the first resource conversion relationship.

[0178] The resource conversion record is a record of the resource conversion behavior and is generated according to the first resource conversion request. The first resource conversion request is generated and sent to the service server by the resource conversion terminal when it receives a resource conversion operation, and is used to request the service server to convert the first resource into the second resource according to the first resource conversion relationship. The resource conversion record may include the type identifier of the first resource, the quantity of the first resource, the type identifier of the second resource, the quantity of the second resource, and the resource conversion relationship for resource conversion. After the service server transfers the first resource from the account corresponding to the resource conversion terminal, it can obtain the corresponding first resource conversion relationship from the resource conversion record and convert the first resource into the second resource.

[0179] Step 904: Obtain the current time and the third resource conversion relationship corresponding to the first resource and the second resource.

[0180] The service server can obtain the first resource conversion relationship corresponding to the uncompleted resource conversion from the resource conversion record, obtain the current time, and the third resource conversion relationship corresponding to the first resource and the second resource. It can be understood that the third resource conversion relationship refers to the resource conversion relationship obtained when the service server obtains the first resource conversion relationship from the resource conversion record and converts the first resource. The current times corresponding to the third resource conversion relationship and the second resource conversion relationship are different times during the resource conversion process.

[0181] Step 906: Obtain the second conversion relationship difference between the first resource conversion relationship and the third resource conversion relationship.

[0182] The service server can obtain the second conversion relationship difference between the first resource conversion relationship and the third resource conversion relationship. The second conversion relationship difference may specifically be the conversion relationship difference between the third resource conversion relationship and the first resource conversion relationship. The second conversion relationship difference may also specifically be the degree of fluctuation of the conversion relationship between the first resource conversion relationship and the third resource conversion relationship. Corresponding to the first conversion relationship difference, the manner in which the service server obtains the second conversion relationship difference between the first resource conversion relationship and the third resource conversion relationship is similar to the manner in which the service server obtains the first conversion relationship difference in the above embodiment, so it will not be elaborated here.

[0183] Step 908: When the second conversion relationship difference is within the second difference range, send a second resource conversion request to the resource conversion server. The second resource conversion request is used to request to convert the first resource into the second resource.

[0184] The business server can obtain the second difference range corresponding to the first resource and the second resource. The second difference range can be preset according to actual application requirements. The second difference range can be the same as or different from the first difference range. The business server can verify whether the second conversion relationship difference is within the second difference range.

[0185] When the second conversion relationship difference is within the second difference range, it is determined that resource conversion can be performed. The business server can send a second resource conversion request to the resource conversion server. The second resource conversion request is used to request converting the first resource into the second resource. Wherein, when the resource is specifically currency, the resource conversion server can specifically be the server corresponding to the purchase and foreign exchange payment platform, and the resource conversion server is used to convert the first resource into the second resource. The resource conversion server can specifically convert the first resource into the second resource according to the third resource conversion relationship corresponding to the current time. Since the second conversion relationship difference between the first resource conversion relationship and the third resource conversion relationship is within the second difference range, the business server can directly request the resource conversion server to convert the first resource into the second resource, without having to transfer the first resource from the account corresponding to the resource conversion terminal, effectively reducing the interaction times between the business server and the resource conversion terminal, saving the interaction resources of the business server, and improving the user experience.

[0186] In this embodiment, obtain the first resource conversion relationship corresponding to the resource conversion record. The resource conversion record is generated according to the first resource conversion request. The first resource conversion request is used to request converting the first resource into the second resource according to the first resource conversion relationship. Obtain the current time, the third resource conversion relationship corresponding to the first resource and the second resource. By obtaining the second conversion relationship difference between the first resource conversion relationship and the third resource conversion relationship, verify the first resource conversion relationship. When the second conversion relationship difference is within the second difference range, send a second resource conversion request to the resource conversion server, which is used to request converting the first resource into the second resource. By verifying the conversion relationship and performing resource conversion only after the conversion relationship verification passes, it avoids inaccurate resource conversion caused by a large change in the resource conversion relationship, effectively improving the accuracy of the resource conversion of converting the first resource into the second resource.

[0187] In one embodiment, when the second conversion relationship difference is outside the second difference range, it indicates that the conversion relationship difference between the first resource conversion relationship and the third resource conversion relationship is large, and the first resource transferred out cannot be converted into the second resource corresponding to the quantity of the second resource. The business server can return the first resource transferred out to the account corresponding to the resource conversion terminal and send a resource conversion failure result to the resource conversion terminal, so that the resource conversion terminal displays the resource conversion failure result, prompting the user that the resource conversion fails and needs to initiate the resource conversion again.

[0188] In one embodiment, the service server obtains the current time and the fourth resource conversion relationship corresponding to the first resource and the second resource; obtains the third conversion relationship difference between the first resource conversion relationship and the fourth resource conversion relationship, and when the third conversion relationship difference is within the second difference range, verifies the key information of resource conversion; when the key information of resource conversion is verified to meet the resource conversion constraint conditions, executes the steps of obtaining the current time and the third resource conversion relationship corresponding to the first resource and the second resource as described above.

[0189] It should be understood that although Figure 2 、 8 each step in the flowcharts of FIGS. 8 and 9 is shown sequentially according to the indication of the arrow, these steps are not necessarily executed sequentially in the order indicated by the arrow. Unless otherwise clearly stated in this article, there is no strict order limit for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 、 8 at least a part of the steps in FIGS. 10, 11, and 12 may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same moment, but can be executed at different moments, and the execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.

[0190] In one embodiment, as Figure 10 shown, a resource conversion device 1000 is provided. The device can be a software module or a hardware module, or a combination of both to become a part of a computer device. The device specifically includes: a request receiving module 1002, a conversion relationship verification module 1004, and a result sending module 1006, where:

[0191] The request receiving module 1002 is configured to receive a conversion relationship verification request sent by a resource conversion terminal. The conversion relationship verification request carries the first resource conversion relationship between the first resource and the second resource. The conversion relationship verification request is triggered when a resource conversion trigger operation is received. The resource conversion trigger operation is used to trigger the conversion of the first resource into the second resource according to the first resource conversion relationship.

[0192] The conversion relationship verification module 1004 is configured to obtain the current time and the second resource conversion relationship corresponding to the first resource and the second resource according to the conversion relationship verification request; obtain the first conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship.

[0193] A result sending module 1006, configured to send a result of passing the conversion relationship verification to a resource conversion terminal when the first conversion relationship difference is within the first difference range, so that the resource conversion terminal converts the first resource into a second resource according to the first resource conversion relationship.

[0194] In one embodiment, the above-mentioned result sending module 1006 is further configured to send a result of failing the conversion relationship verification to the resource conversion terminal when the first conversion relationship difference is outside the first difference range, so that the resource conversion terminal performs resource conversion according to the updated resource conversion relationship in response to the result of failing the conversion relationship verification.

[0195] In one embodiment, the above-mentioned result sending module 1006 is further configured to calculate an updated resource quantity corresponding to the first resource according to the second resource quantity corresponding to the second resource and the updated resource conversion relationship when the first conversion relationship difference is outside the first difference range; send the updated resource quantity and the result of failing the conversion relationship verification to the resource conversion terminal, so that the resource conversion terminal updates the first resource quantity corresponding to the first resource according to the updated resource quantity in response to the result of failing the conversion relationship verification.

[0196] In one embodiment, the above-mentioned result sending module 1006 is further configured to send a result of passing the conversion relationship verification to the resource conversion terminal when the first conversion relationship difference does not exceed the first upward difference threshold and is not lower than the first downward difference threshold.

[0197] In one embodiment, the above-mentioned resource conversion device 1000 further includes a resource conversion module, configured to receive a first resource conversion request sent by the resource conversion terminal. The first resource conversion request is sent after receiving the result of passing the conversion relationship verification, and is used to request to convert the first resource into a second resource according to the first resource conversion relationship; in response to the first resource conversion request, transfer the first resource from the account corresponding to the resource conversion terminal, and write the first resource conversion relationship into the resource conversion record.

[0198] In one embodiment, the above-mentioned resource conversion module is further configured to obtain the first resource conversion relationship corresponding to the resource conversion record; obtain the current time, and the third resource conversion relationship corresponding to the first resource and the second resource; obtain the second conversion relationship difference between the first resource conversion relationship and the third resource conversion relationship; when the second conversion relationship difference is within the second difference range, send a second resource conversion request to the resource conversion server, and the second resource conversion request is used to request to convert the first resource into a second resource.

[0199] In one embodiment, the above-mentioned resource conversion module is further configured to obtain the current time and the fourth resource conversion relationship corresponding to the first resource and the second resource; obtain the third conversion relationship difference between the first resource conversion relationship and the fourth resource conversion relationship, and when the third conversion relationship difference is within the second difference range, verify the key information of resource conversion; when the key information of resource conversion is verified to meet the resource conversion constraint conditions, execute the step of obtaining the current time and the third resource conversion relationship corresponding to the first resource and the second resource.

[0200] In one embodiment, when the second conversion relationship difference is outside the second difference range, the above-mentioned result sending module 1006 is further configured to return the transferred first resource to the account corresponding to the resource conversion terminal, and send a resource conversion failure result to the resource conversion terminal, so that the resource conversion terminal displays the resource conversion failure result.

[0201] In one embodiment, the above-mentioned resource conversion device 1000 further includes a resource quantity query module, which is configured to receive a resource quantity query request sent by the resource conversion terminal. The resource quantity query request carries the configured first resource, second resource, and the second resource quantity corresponding to the second resource; in response to the resource quantity query request, obtain the current time and the first resource conversion relationship between the first resource and the second resource; calculate the first resource quantity corresponding to the first resource based on the first resource conversion relationship and the second resource quantity; send the first resource quantity and the first resource conversion relationship to the resource conversion terminal, so that the resource conversion terminal displays the first resource quantity and the first resource conversion relationship, and receives a resource conversion trigger operation generated based on the first resource quantity and the first resource conversion relationship; wherein, the resource conversion trigger operation is used to trigger the conversion of the first resource into the second resource with the second resource quantity according to the first resource conversion relationship.

[0202] In one embodiment, as Figure 11 shown, a resource conversion device 1100 is provided. The device can be a software module, a hardware module, or a combination of both to form a part of a computer device. The device specifically includes: an operation receiving module 1102, a verification request module 1104, and a resource conversion module 1106, wherein:

[0203] The operation receiving module 1102 is configured to receive a resource conversion trigger operation, which is used to trigger the conversion of the first resource into the second resource according to the first resource conversion relationship; in response to the resource conversion trigger operation, generate a conversion relationship verification request carrying the first resource conversion relationship.

[0204] A verification request module 1104 is configured to send a conversion relationship verification request to a service server, so that the service server obtains the current time, the second resource conversion relationship corresponding to the first resource and the second resource, and obtains the first conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship. When the first conversion relationship difference is within the first difference range, a conversion relationship verification passed result is sent.

[0205] A resource conversion module 1106 is configured to, when receiving the conversion relationship verification passed result returned by the service server, convert the first resource into the second resource according to the first resource conversion relationship.

[0206] In one embodiment, the above-mentioned resource conversion module 1106 is further configured to display a resource conversion confirmation interface; when a resource conversion operation is received on the resource conversion confirmation interface, a first resource conversion request is sent to the service server, and the first resource conversion request is used to request to convert the first resource into the second resource according to the first resource conversion relationship.

[0207] In one embodiment, the above-mentioned resource conversion device 1100 further includes a resource conversion update module, which is configured to, when receiving the conversion relationship verification failed result returned by the service server, in response to the conversion relationship verification failed result, perform resource conversion according to the updated resource conversion relationship, and the conversion relationship verification failed result is sent by the service server when the first conversion relationship difference is outside the first difference range.

[0208] In one embodiment, the above-mentioned resource conversion update module is further configured to receive the updated resource quantity and the conversion relationship verification failed result sent by the service server, and the updated resource quantity is calculated by the service server according to the second resource quantity corresponding to the second resource and the updated resource conversion relationship when the first conversion relationship difference is outside the first difference range; in response to the conversion relationship verification failed result, update the first resource quantity corresponding to the first resource according to the updated resource quantity.

[0209] In one embodiment, the above-mentioned resource conversion update module is further configured to, when receiving the resource conversion failed result sent by the service server, display the resource conversion failed result, and the resource conversion failed result is sent by the service server when the second conversion relationship difference is outside the second difference range.

[0210] In one embodiment, as Figure 12 shown, a resource conversion device 1200 is provided. The device can be a software module, a hardware module, or a combination of both to form a part of a computer device. The device specifically includes: a conversion relationship acquisition module 1202, a difference acquisition module 1204, and a resource conversion request module 1206, where:

[0211] A conversion relationship acquisition module 1202, configured to acquire a first resource conversion relationship corresponding to a resource conversion record, where the resource conversion record is generated according to a first resource conversion request, and the first resource conversion request is used to request to convert a first resource into a second resource according to the first resource conversion relationship.

[0212] A difference acquisition module 1204, configured to acquire the current time, a third resource conversion relationship corresponding to the first resource and the second resource; and acquire a second conversion relationship difference between the first resource conversion relationship and the third resource conversion relationship.

[0213] A resource conversion request module 1206, configured to send a second resource conversion request to a resource conversion server when the second conversion relationship difference is within a second difference range, where the second resource conversion request is used to request to convert the first resource into the second resource.

[0214] For the specific limitations of the resource conversion device, reference may be made to the limitations on the resource conversion method in the foregoing text, which will not be elaborated here. Each module in the foregoing resource conversion device may be implemented in whole or in part by software, hardware, and their combination. The foregoing modules may be embedded in or independent of a processor in a computer device in the form of hardware, or may be stored in a memory in the computer device in the form of software, so as to facilitate the processor to call and execute the operations corresponding to the foregoing modules.

[0215] In one embodiment, a computer device is provided. The computer device may be a server, specifically, the service server in the foregoing embodiment. Its internal structure diagram may be as Figure 13 shown. The computer device includes a processor, a memory, and a network interface connected through a system bus. Wherein, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store resource conversion data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a resource conversion method is implemented.

[0216] In one embodiment, a computer device is further provided. The computer device may be a terminal, specifically, the resource conversion terminal in the foregoing embodiment. Its internal structure diagram may be as Figure 14As shown in the figure. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a carrier network, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it realizes a resource conversion method. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, a trackball, or a touchpad provided on the housing of the computer device, or an external keyboard, a touchpad, or a mouse, etc.

[0217] Those skilled in the art can understand that Figure 13 and 14 the structure shown in the figure is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0218] In one embodiment, a computer device is further provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, the steps in the above method embodiments are realized.

[0219] In one embodiment, a computer-readable storage medium is provided, storing a computer program, and when the computer program is executed by the processor, the steps in the above method embodiments are realized.

[0220] In one embodiment, a computer program product or a computer program is provided. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps in the above method embodiments.

[0221] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above various methods. Among them, any reference to a memory, storage, database, or other medium used in the various embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.

[0222] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the various technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered to be within the scope described in this specification.

[0223] The above-described embodiments merely represent several implementation manners of the present application. Their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.

Claims

1. A resource conversion method, characterized in that, The method includes: Receiving a conversion relationship verification request sent by a resource conversion terminal, where the conversion relationship verification request carries a first resource conversion relationship between a first resource and a second resource, and the conversion relationship verification request is triggered when a resource conversion trigger operation is received, and the resource conversion trigger operation is used to trigger the conversion of the first resource into the second resource according to the first resource conversion relationship; According to the conversion relationship verification request, obtaining a second resource conversion relationship corresponding to the first resource and the second resource at the current time; Obtaining a first conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship; When the first conversion relationship difference is within a first difference range, sending a conversion relationship verification passed result to the resource conversion terminal; Receiving a first resource conversion request sent by the resource conversion terminal after receiving the conversion relationship verification passed result; In response to the first resource conversion request, transferring the first resource from the account corresponding to the resource conversion terminal and writing the first resource conversion relationship into a resource conversion record; Obtaining the first resource conversion relationship corresponding to the resource conversion record; Obtaining a third resource conversion relationship corresponding to the first resource and the second resource at the current time; Obtaining a second conversion relationship difference between the first resource conversion relationship and the third resource conversion relationship; When the second conversion relationship difference is within a second difference range, sending a second resource conversion request to a resource conversion server, where the second resource conversion request is used to request the conversion of the first resource into the second resource.

2. The method according to claim 1, characterized in that, The step of when the first conversion relationship difference is within the first difference range and sending a conversion relationship verification passed result to the resource conversion terminal includes: When the first conversion relationship difference does not exceed a first upward difference threshold and is not lower than a first downward difference threshold, sending a conversion relationship verification passed result to the resource conversion terminal.

3. The method according to claim 1, wherein The first resource conversion request carries resource conversion key information to be verified, and the method further includes: Obtaining a fourth resource conversion relationship corresponding to the first resource and the second resource at the current time; Obtaining a third conversion relationship difference between the first resource conversion relationship and the fourth resource conversion relationship, and when the third conversion relationship difference is within the second difference range, verifying the resource conversion key information; When the resource conversion key information is verified to conform to resource conversion constraint conditions, performing the step of obtaining the third resource conversion relationship corresponding to the first resource and the second resource at the current time.

4. The method according to claim 3, characterized in that, The method further includes: When the second conversion relationship difference is outside the second difference range, returning the transferred first resource to the account corresponding to the resource conversion terminal and sending a resource conversion failure result to the resource conversion terminal, so that the resource conversion terminal displays the resource conversion failure result.

5. The method according to claim 1, characterized in that, Before receiving the conversion relationship verification request sent by the resource conversion terminal, the method further includes: Receive a resource quantity query request sent by the resource conversion terminal, where the resource quantity query request carries the configured first resource, second resource, and the quantity of the second resource corresponding to the second resource; In response to the resource quantity query request, obtain the current time and the first resource conversion relationship between the first resource and the second resource; Based on the first resource conversion relationship and the quantity of the second resource, calculate the quantity of the first resource corresponding to the first resource; Send the quantity of the first resource and the first resource conversion relationship to the resource conversion terminal, so that the resource conversion terminal displays the quantity of the first resource and the first resource conversion relationship, and receives a resource conversion trigger operation generated based on the quantity of the first resource and the first resource conversion relationship; Wherein, the resource conversion trigger operation is used to trigger the conversion of the first resource into the second resource with the quantity of the second resource according to the first resource conversion relationship.

6. A resource conversion method, characterized in that, The method includes: Receive a resource conversion trigger operation, where the resource conversion trigger operation is used to trigger the conversion of the first resource into the second resource according to the first resource conversion relationship; In response to the resource conversion trigger operation, generate a conversion relationship verification request carrying the first resource conversion relationship; Send the conversion relationship verification request to the service server, so that the service server obtains the second resource conversion relationship corresponding to the first resource and the second resource at the current time, obtains the first conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship, and when the first conversion relationship difference is within the first difference range, sends a conversion relationship verification passed result; When receiving the conversion relationship verification passed result returned by the service server, send a first resource conversion request to the service server, where the first resource conversion request is used to instruct the service server to transfer the first resource from the account corresponding to the resource conversion terminal and write the first resource conversion relationship into the resource conversion record; obtain the first resource conversion relationship corresponding to the resource conversion record; obtain the third resource conversion relationship corresponding to the first resource and the second resource at the current time; obtain the second conversion relationship difference between the first resource conversion relationship and the third resource conversion relationship; when the second conversion relationship difference is within the second difference range, send a second resource conversion request to the resource conversion server, where the second resource conversion request is used to request the conversion of the first resource into the second resource.

7. The method according to claim 6, wherein The conversion of the first resource into the second resource according to the first resource conversion relationship includes: Display a resource conversion confirmation interface; When a resource conversion operation is received on the resource conversion confirmation interface, send a first resource conversion request to the service server, where the first resource conversion request is used to request the conversion of the first resource into the second resource according to the first resource conversion relationship.

8. A resource conversion device, characterized in that, The device includes: A request receiving module, configured to receive a conversion relationship verification request sent by a resource conversion terminal. The conversion relationship verification request carries a first resource conversion relationship between a first resource and a second resource. The conversion relationship verification request is triggered when a resource conversion trigger operation is received, and the resource conversion trigger operation is used to trigger the conversion of the first resource into the second resource according to the first resource conversion relationship; A conversion relationship verification module, configured to obtain the current time, the second resource conversion relationship corresponding to the first resource and the second resource according to the conversion relationship verification request; obtain a first conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship; A result sending module, configured to send a conversion relationship verification passed result to the resource conversion terminal when the first conversion relationship difference is within a first difference range; A resource conversion module, configured to receive a first resource conversion request sent by the resource conversion terminal after receiving the conversion relationship verification passed result; in response to the first resource conversion request, transfer the first resource from the account corresponding to the resource conversion terminal, and write the first resource conversion relationship into a resource conversion record; obtain the first resource conversion relationship corresponding to the resource conversion record; obtain the third resource conversion relationship corresponding to the first resource and the second resource at the current time; obtain a second conversion relationship difference between the first resource conversion relationship and the third resource conversion relationship; when the second conversion relationship difference is within a second difference range, send a second resource conversion request to a resource conversion server, where the second resource conversion request is used to request to convert the first resource into the second resource.

9. The device according to claim 8, characterized in that, The result sending module is further configured to send a conversion relationship verification passed result to the resource conversion terminal when the first conversion relationship difference does not exceed a first upward difference threshold and is not lower than a first downward difference threshold.

10. The device according to claim 8, characterized in that, The first resource conversion request carries resource conversion key information to be verified. The resource conversion module is further configured to obtain the fourth resource conversion relationship corresponding to the first resource and the second resource at the current time; obtain a third conversion relationship difference between the first resource conversion relationship and the fourth resource conversion relationship. When the third conversion relationship difference is within the second difference range, verify the resource conversion key information; when the resource conversion key information is verified to meet the resource conversion constraint conditions, execute the step of obtaining the third resource conversion relationship corresponding to the first resource and the second resource at the current time.

11. The device according to claim 10, characterized in that, The result sending module is further configured to return the transferred first resource to the account corresponding to the resource conversion terminal and send a resource conversion failure result to the resource conversion terminal when the second conversion relationship difference is outside the second difference range, so that the resource conversion terminal displays the resource conversion failure result.

12. The device according to claim 8, wherein The device further includes: A resource quantity query module, configured to receive a resource quantity query request sent by the resource conversion terminal, where the resource quantity query request carries a configured first resource, a second resource, and a second resource quantity corresponding to the second resource; in response to the resource quantity query request, obtain the current time and the first resource conversion relationship between the first resource and the second resource; calculate the first resource quantity corresponding to the first resource based on the first resource conversion relationship and the second resource quantity; send the first resource quantity and the first resource conversion relationship to the resource conversion terminal, so that the resource conversion terminal displays the first resource quantity and the first resource conversion relationship, and receives a resource conversion trigger operation generated based on the first resource quantity and the first resource conversion relationship; wherein, the resource conversion trigger operation is used to trigger the conversion of the first resource into the second resource with the second resource quantity according to the first resource conversion relationship.

13. A resource conversion device, characterized in that, The device includes: An operation receiving module, configured to receive a resource conversion trigger operation, where the resource conversion trigger operation is used to trigger the conversion of the first resource into the second resource according to the first resource conversion relationship; in response to the resource conversion trigger operation, generate a conversion relationship verification request carrying the first resource conversion relationship; A verification request module, configured to send the conversion relationship verification request to a service server, so that the service server obtains the current time, the second resource conversion relationship corresponding to the first resource and the second resource, obtains a first conversion relationship difference between the first resource conversion relationship and the second resource conversion relationship, and when the first conversion relationship difference is within a first difference range, send a conversion relationship verification passed result; A resource conversion module, configured to, when receiving the conversion relationship verification passed result returned by the service server, send a first resource conversion request to the service server, where the first resource conversion request is used to instruct the service server to transfer the first resource from the account corresponding to the resource conversion terminal and write the first resource conversion relationship into a resource conversion record; obtain the first resource conversion relationship corresponding to the resource conversion record; obtain the third resource conversion relationship corresponding to the first resource and the second resource at the current time; obtain a second conversion relationship difference between the first resource conversion relationship and the third resource conversion relationship; when the second conversion relationship difference is within a second difference range, send a second resource conversion request to a resource conversion server, where the second resource conversion request is used to request to convert the first resource into the second resource.

14. The device according to claim 13, wherein The resource conversion module is further configured to display a resource conversion confirmation interface; when receiving a resource conversion operation on the resource conversion confirmation interface, send a first resource conversion request to the service server, where the first resource conversion request is used to request to convert the first resource into the second resource according to the first resource conversion relationship.

15. A computer device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.

16. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.

17. A computer program product comprising computer instructions which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Data processing method and device, server and storage medium

    CN110930013A