Resource acquisition method, device, equipment and storage medium
Patent Information
- Application Number
- CN201910518861.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-06-16
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2039-06-16
AI Technical Summary
[0005]本申请实施例提供了一种资源获取方法、装置、设备及存储介质,可以用于解决相关技术中存在的获取资源的方式比较局限,灵活性不高的问题
[0118]本申请实施例中,可以先接收用户账号转移的用于获取目标资源的第一资源数值,然后查询目标资源在第一时间点之后对应的实时资源数值,响应于查询到目标资源在第一时间点之后的第二时间点对应的第二资源数值小于第一资源数值,向资源服务器对应的资源账号转移第二资源数值,以基于第二资源数值为用户账号获取目标资源,以及向用户账号转移第三资源数值,第三资源数值小于或等于第一资源数值与第二资源数值之间的差值,如此,扩展了获取资源的方式,提高了灵活性。
Smart Images

Figure CN110276659B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information technology, and in particular to a resource acquisition method, device, equipment and storage medium. Background Art
[0002] Since the resource values corresponding to the target resource may be different at different times, users may need to use different resource values to obtain the target resource at different time points. For example, if the target resource is an air ticket and the resource value corresponding to the target resource is the price of the target resource, since the ticket prices for the same route change frequently at different times, users need to pay different prices to purchase the ticket at different time points.
[0003] In the related art, when a user wants to obtain a target resource, he can first perform an order operation to obtain a resource acquisition order for the target resource, and then perform a payment operation on the resource acquisition order for the target resource to transfer a first resource value to an application account corresponding to the application server, where the first resource value is the resource value corresponding to the target resource at the current time point. After the application server receives the first resource value transferred by the user account, it immediately transfers the first resource value to the resource account corresponding to the resource server to obtain the target resource for the user based on the first resource value. For example, taking the target resource as an air ticket and the resource value corresponding to the target resource as the price, when a user purchases an air ticket on a ticket purchasing platform, he can first select a flight, then fill in an order, and then pay the order. After the user pays the order, the ticket purchasing platform can directly request the airline to issue the ticket based on the price paid by the user.
[0004] In the related art, after the user confirms to obtain the target resource, the target resource can generally only be obtained by using the resource value corresponding to the target resource at the current time. The method of obtaining the target resource is relatively limited and has low flexibility. Summary of the invention
[0005] The embodiments of the present application provide a resource acquisition method, device, equipment and storage medium, which can be used to solve the problem that the resource acquisition method in the related art is relatively limited and the flexibility is not high. The technical solution is as follows:
[0006] On the one hand, a resource acquisition method is provided, which is applied to an application server, and the method includes:
[0007] Receive a first resource value transferred by a user account, where the first resource value is triggered based on a resource acquisition order of a target resource and is used to acquire the target resource, and the first resource value is a resource value corresponding to the target resource at a first time point;
[0008] Querying the real-time resource value corresponding to the target resource after the first time point;
[0009] In response to finding that a second resource value corresponding to the target resource at a second time point after the first time point is less than the first resource value, transferring the second resource value to a resource account corresponding to the resource server, so as to obtain the target resource for the user account based on the second resource value;
[0010] A third resource value is transferred to the user account, where the third resource value is less than or equal to a difference between the first resource value and the second resource value.
[0011] Optionally, after querying the real-time resource value corresponding to the target resource after the first time point, the method further includes:
[0012] In response to finding that the real-time resource value corresponding to the target resource after the first time point is less than the first resource value, the real-time resource value is determined as the second resource value, and the time point corresponding to the real-time resource value is determined as the second time point
[0013] Optionally, before querying the real-time resource value corresponding to the target resource after the first time point, the method further includes:
[0014] Based on the historical resource values corresponding to the target resource at different times, predicting the minimum resource value corresponding to the target resource within a preset time period after the first time point;
[0015] In response to the minimum resource value being less than the first resource value, determining a prediction time range corresponding to the minimum resource value, the prediction time range being within a preset time length after the first time point;
[0016] The querying of the real-time resource value corresponding to the target resource after the first time point includes:
[0017] Querying the real-time resource value of the target resource within the predicted time range;
[0018] After querying the real-time resource value corresponding to the target resource after the first time point, the method further includes:
[0019] In response to finding that the real-time resource value of the target resource within the predicted time range is less than the first resource value, the real-time resource value is determined as the second resource value, and the time point corresponding to the real-time resource value is determined as the second time point.
[0020] Optionally, before transferring the second resource value to the resource account corresponding to the resource server, the method further includes:
[0021] Sending a first resource reservation request to the resource server, wherein the first resource reservation request carries the identifier of the target resource and is used to request reservation of a target resource whose corresponding resource value is the second resource value;
[0022] In response to receiving the first resource reservation response information returned by the resource server, a step of transferring the second resource value to a resource account corresponding to the resource server is performed based on the first resource reservation response information.
[0023] Optionally, after receiving the first resource value transferred by the user account, the method further includes:
[0024] Sending a second resource reservation request to the resource server, and receiving second resource reservation response information returned by the resource server, wherein the second resource reservation request carries the identifier of the target resource and is used to request reservation of a target resource whose corresponding resource value is the first resource value;
[0025] After sending the first resource reservation request to the resource server, the method further includes:
[0026] In response to detecting that the first resource reservation request is not responded to by the resource server, based on the second resource reservation response information, the first resource value is transferred to a resource account corresponding to the resource server to obtain the target resource for the user account based on the first resource value.
[0027] Optionally, after receiving the first resource value transferred from the user account, the method further includes:
[0028] Sending a second resource reservation request to the resource server, and receiving second resource reservation response information returned by the resource server, wherein the second resource reservation request carries the identifier of the target resource and is used to request reservation of a target resource whose corresponding resource value is the first resource value;
[0029] Query the real-time available amount of the target resource;
[0030] In response to finding that the real-time available amount of the target resource is less than a first quantity threshold, stopping querying the real-time resource value corresponding to the target resource after the first time point;
[0031] Based on the second resource reservation response information, the first resource value is transferred to a resource account corresponding to the resource server, so as to obtain the target resource for the user account based on the first resource value.
[0032] Optionally, after receiving the second resource reservation response information returned by the resource server, the method further includes:
[0033] In response to the time length between the current time point and the first time point being greater than or equal to a preset time length, stopping querying the real-time resource value corresponding to the target resource after the first time point;
[0034] Based on the second resource reservation response information, the first resource value is transferred to a resource account corresponding to the resource server, so as to obtain the target resource for the user account based on the first resource value.
[0035] Optionally, the second resource reservation response information has a validity period and automatically becomes invalid after the validity period has expired. After receiving the second resource reservation response information returned by the resource server, the method further includes:
[0036] Before finding that a second resource value corresponding to the target resource at a second time point after the first time point is less than the first resource value, in response to detecting that the second resource reservation response information is invalid, continue to send the second resource reservation request to the resource server.
[0037] Optionally, before querying the real-time resource value corresponding to the target resource after the first time point, the method further includes:
[0038] Determining whether the target resource meets the delayed acquisition condition;
[0039] In response to the target resource satisfying the delayed acquisition condition, a step of querying a real-time resource value corresponding to the target resource after the first time point is performed.
[0040] Optionally, determining whether the target resource meets a delayed acquisition condition includes:
[0041] If the target resource satisfies at least one of the following conditions, it is determined that the target resource satisfies the delayed acquisition condition:
[0042] The user corresponding to the user account is not a risky user;
[0043] The user corresponding to the user account has not requested the reimbursement information of the target resource;
[0044] The obtainable quantity of the target resource is greater than or equal to a second quantity threshold.
[0045] On the one hand, a resource acquisition method is provided, which is applied in a terminal, and the method includes:
[0046] When a value transfer operation is detected based on the resource acquisition order of the displayed target resource, the first resource value in the user account is transferred to the application account corresponding to the application server;
[0047] The first resource value is used to obtain the target resource, and the first resource value is a resource value corresponding to the target resource at a first time point;
[0048] After the first time point, receiving the target resource allocated to the user account, or receiving the target resource allocated to the user account and a third resource value transferred to the user account;
[0049] Among them, the third resource value is less than or equal to the difference between the first resource value and the second resource value, the second resource value is the resource value corresponding to the target resource at a second time point after the first time point, and the second resource value is less than the first resource value.
[0050] Optionally, the resource acquisition order of the target resource includes a delayed acquisition option, and the delayed acquisition option is used to start a delayed acquisition function, and the delayed acquisition function is used to acquire the target resource for the user account after the first time point with a second resource value that is less than the first resource value.
[0051] Optionally, a detail icon is displayed around the delayed acquisition option, and the method further includes:
[0052] In response to detecting a triggering operation on the detail icon, function detail information of the delayed acquisition function is displayed.
[0053] Optionally, after receiving the target resource allocated to the user account and the third resource value transferred to the user account, the method further includes:
[0054] The acquired prompt information of the target resource is displayed, where the acquired prompt information includes the second resource value, which is used to indicate that the user account has acquired the target resource based on the second resource value.
[0055] Optionally, the acquired prompt information also includes the third resource value, which is used to indicate that the third resource value is returned to the user account.
[0056] Optionally, the acquired prompt information further includes a return progress query entry, and the method further includes:
[0057] In response to detecting a triggering operation on the rollback progress query entry, the rollback progress of the third resource value is displayed.
[0058] On the one hand, a resource acquisition device is provided, which is applied to an application server, and the device includes:
[0059] A first receiving module is used to receive a first resource value transferred by a user account, wherein the first resource value is a resource value corresponding to the target resource at a first time point and is triggered by a resource acquisition order of a target resource, and is used to acquire the target resource;
[0060] A first query module, used to query the real-time resource value corresponding to the target resource after the first time point;
[0061] A first transfer module, configured to transfer the second resource value to a resource account corresponding to a resource server in response to finding that a second resource value corresponding to the target resource at a second time point after the first time point is less than the first resource value, so as to obtain the target resource for the user account based on the second resource value;
[0062] The second transfer module is used to transfer a third resource value to the user account, where the third resource value is less than or equal to the difference between the first resource value and the second resource value.
[0063] Optionally, the device further comprises:
[0064] The first determination module is used to determine the real-time resource value as a second resource value and the time point corresponding to the real-time resource value as the second time point in response to a query that the real-time resource value corresponding to the target resource after the first time point is less than the first resource value.
[0065] Optionally, the device further comprises:
[0066] A prediction module, configured to predict a minimum resource value corresponding to the target resource within a preset time period after the first time point based on historical resource values corresponding to the target resource at different times;
[0067] A second determination module, configured to determine, in response to the minimum resource value being less than the first resource value, a prediction time range corresponding to the minimum resource value, the prediction time range being within a preset time length after the first time point;
[0068] The first query module is used to query the real-time resource value of the target resource within the predicted time range;
[0069] The third determination module is used to determine the real-time resource value as the second resource value and the time point corresponding to the real-time resource value as the second time point in response to querying that the real-time resource value of the target resource within the predicted time range is less than the first resource value.
[0070] Optionally, the device further comprises:
[0071] A first sending module, configured to send a first resource reservation request to the resource server, wherein the first resource reservation request carries an identifier of the target resource and is configured to request to reserve a target resource whose corresponding resource value is the second resource value;
[0072] The trigger module is used to trigger the second transfer module to transfer the second resource value to the resource account corresponding to the resource server based on the first resource reservation response information in response to receiving the first resource reservation response information returned by the resource server.
[0073] Optionally, the device further comprises:
[0074] A second sending module, configured to send a second resource reservation request to the resource server after the first receiving module receives the first resource value transferred by the user account;
[0075] A second receiving module is configured to receive second resource reservation response information returned by the resource server, wherein the second resource reservation request carries the identifier of the target resource and is configured to request reservation of a target resource whose corresponding resource value is the first resource value;
[0076] A third transfer module is used to transfer the first resource value to a resource account corresponding to the resource server based on the second resource reservation response information after the first sending module sends the first resource reservation request to the resource server, in response to detecting that the first resource reservation request is not responded to by the resource server, so as to obtain the target resource for the user account based on the first resource value.
[0077] Optionally, the device further comprises:
[0078] A second sending module, configured to send a second resource reservation request to the resource server after the first receiving module receives the first resource value transferred by the user account;
[0079] A second receiving module is configured to receive second resource reservation response information returned by the resource server, wherein the second resource reservation request carries the identifier of the target resource and is configured to request reservation of a target resource whose corresponding resource value is the first resource value;
[0080] A second query module, used to query the real-time available amount of the target resource;
[0081] a trigger module, configured to trigger the first query module to stop querying the real-time resource value corresponding to the target resource after the first time point in response to finding that the real-time available amount of the target resource is less than a first quantity threshold;
[0082] The third transfer module is used to transfer the first resource value to the resource account corresponding to the resource server based on the second resource reservation response information, so as to obtain the target resource for the user account based on the first resource value.
[0083] Optionally, the
[0084] a triggering module, configured to, after the second receiving module receives the second resource reservation response information returned by the resource server, trigger the first query module to stop querying the real-time resource value corresponding to the target resource after the first time point in response to the time length between the current time point and the first time point being greater than or equal to a preset time length;
[0085] The third transfer module is used to transfer the first resource value to the resource account corresponding to the resource server based on the second resource reservation response information, so as to obtain the target resource for the user account based on the first resource value.
[0086] Optionally, the second resource reservation response information has a valid time period and automatically becomes invalid after exceeding the valid time period, and the device further includes:
[0087] a trigger module for triggering the second sending module to continue to send the second resource reservation request to the resource server in response to detecting that the second resource reservation response information is invalid before it is queried that the second resource value corresponding to the target resource at a second time point after the first time point is less than the first resource value.
[0088] Optionally, the device further comprises:
[0089] A fourth determination module, used to determine whether the target resource meets the delayed acquisition condition;
[0090] The trigger module is used to trigger the first query module to query the real-time resource value corresponding to the target resource after the first time point in response to the target resource satisfying the delayed acquisition condition.
[0091] Optionally, the fourth determining module is used to:
[0092] If the target resource satisfies at least one of the following conditions, it is determined that the target resource satisfies the delayed acquisition condition:
[0093] The user corresponding to the user account is not a risky user;
[0094] The user corresponding to the user account has not requested the reimbursement information of the target resource;
[0095] The obtainable quantity of the target resource is greater than or equal to a second quantity threshold.
[0096] In one aspect, a resource acquisition device is provided, which is applied in a terminal, and the device includes:
[0097] A transfer module, configured to transfer the first resource value in the user account to an application account corresponding to the application server when a value transfer operation is detected based on the resource acquisition order of the displayed target resource;
[0098] The first resource value is used to obtain the target resource, and the first resource value is a resource value corresponding to the target resource at a first time point;
[0099] A receiving module, configured to receive the target resource allocated to the user account after the first time point, or to receive the target resource allocated to the user account and a third resource value transferred to the user account;
[0100] Among them, the third resource value is less than or equal to the difference between the first resource value and the second resource value, the second resource value is the resource value corresponding to the target resource at a second time point after the first time point, and the second resource value is less than the first resource value.
[0101] Optionally, the resource acquisition order of the target resource includes a delayed acquisition option, and the delayed acquisition option is used to start a delayed acquisition function, and the delayed acquisition function is used to acquire the target resource for the user account after the first time point with a second resource value that is less than the first resource value.
[0102] Optionally, a detail icon is displayed around the delayed acquisition option, and the device further includes:
[0103] The display module is used to display the function detail information of the delayed acquisition function in response to detecting a trigger operation on the detail icon.
[0104] Optionally, the display module is further used for:
[0105] After the receiving module receives the target resource allocated to the user account and the third resource value transferred to the user account, it displays a prompt message indicating that the target resource has been acquired. The prompt message includes the second resource value, indicating that the user account has acquired the target resource based on the second resource value.
[0106] Optionally, the acquired prompt information also includes the third resource value, which is used to indicate that the third resource value is returned to the user account.
[0107] Optionally, the acquired prompt information also includes a rollback progress query entry, and the display module is further used to display the rollback progress of the third resource value in response to detecting a triggering operation on the rollback progress query entry.
[0108] In one aspect, a server is provided, the server comprising:
[0109] one or more processors;
[0110] one or more memories for storing the one or more processor-executable instructions;
[0111] The one or more processors are configured to execute any one of the resource acquisition methods described above.
[0112] In one aspect, a terminal is provided, the terminal comprising:
[0113] one or more processors;
[0114] one or more memories for storing the one or more processor-executable instructions;
[0115] The one or more processors are configured to execute any one of the resource acquisition methods described above.
[0116] On the one hand, a non-transitory computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of a computer, the computer is enabled to execute any of the resource acquisition methods described above.
[0117] The beneficial effects of the technical solution provided by the embodiment of the present application are:
[0118] In an embodiment of the present application, a first resource value for acquiring a target resource transferred by a user account can be first received, and then a real-time resource value corresponding to the target resource after a first time point can be queried. In response to finding that a second resource value corresponding to a second time point after the first time point is less than the first resource value, the second resource value can be transferred to a resource account corresponding to the resource server to acquire the target resource for the user account based on the second resource value, and a third resource value can be transferred to the user account, where the third resource value is less than or equal to the difference between the first resource value and the second resource value. In this way, the method of acquiring resources is expanded and flexibility is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0119] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0120] Figure 1 It is a schematic diagram of an implementation environment involved in the embodiments of the present application;
[0121] Figure 2 is a flow chart of a resource acquisition method provided in an embodiment of the present application;
[0122] Figure 3 is a schematic diagram of a ticket purchase interface provided in an embodiment of the present application;
[0123] Figure 4 is a schematic diagram of another ticket purchase interface provided in an embodiment of the present application;
[0124] Figure 5 is a schematic diagram of another ticket purchase interface provided in an embodiment of the present application;
[0125] Figure 6 It is a schematic diagram of a ticket purchasing process provided by an embodiment of the present application;
[0126] Figure 7 is a flowchart of another resource acquisition method provided in an embodiment of the present application;
[0127] Figure 8 is a structural block diagram of a resource acquisition device provided in an embodiment of the present application;
[0128] Fig. 9 is a structural block diagram of another resource acquisition device provided in an embodiment of the present application;
[0129] Fig.10 It is a structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0130] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0131] Before explaining the embodiments of the present application in detail, the application scenarios of the embodiments of the present application are first described.
[0132] The resource acquisition method provided in the embodiment of the present application can be applied to the scene of acquiring the target resource whose corresponding resource value changes over time. Among them, the target resource can be an air ticket, an attraction, a tourist route, a hotel, a cinema or a performance, etc., and the resource value corresponding to the target resource is the price of the target resource. For example, the method provided in the embodiment of the present application can be applied to obtain routes, attractions, tourist routes, cinemas or performances, etc. whose ticket prices change over time, or hotels or homestays, etc. whose house prices change over time, or items whose prices change over time.
[0133] In the related art, after the user confirms to obtain the target resource, the target resource can generally only be obtained by the resource value corresponding to the target resource at the current time. The way to obtain resources is relatively limited and not very flexible. Moreover, the resource value corresponding to the target resource at a subsequent time may decrease, which will lead to a waste of resource values. Taking the target resource as an air ticket as an example, when the user purchases an air ticket on the ticket purchasing platform, he can first select the flight, then fill in the order, and then pay the order. After the user pays the order, the ticket purchasing platform can directly request the airline to issue the ticket based on the price paid by the user. However, air ticket prices usually change frequently. If the airline adjusts the ticket price later and the ticket price decreases, the ticket purchasing platform will no longer be able to use the adjusted price to issue the ticket.
[0134] In order to expand the method of acquiring resources and save resource values used by users, the embodiment of the present application provides a method for querying lower resource values corresponding to target resources after the current time after the user confirms the acquisition of the target resource, and acquiring the target resource with the lower resource value.
[0135] Next, the implementation environment involved in the embodiments of the present application is introduced in detail. Figure 1 is a schematic diagram of the implementation environment involved in the embodiments of the present application, such as Figure 1 As shown, the implementation environment includes a terminal 10, an application server 20 and a resource server 30. The terminal 10, the application server 20 and the resource server 30 can be connected via a wired network or a wireless network.
[0136] The terminal 10 may be a mobile phone, a tablet computer or a computer, etc. The application server 20 may be a background server of a resource acquisition application, such as a background server of a third-party application for acquiring target resources, such as a background server of a third-party ticket purchasing platform. The resource server 30 refers to a server corresponding to the owner of the target resource, such as a ticketing server of an airline.
[0137] Next, the resource acquisition method involved in the embodiment of the present application is introduced in detail. Figure 2 is a flowchart of a resource acquisition method provided in an embodiment of the present application, the method is applied to Figure 1In the implementation environment shown. Figure 2 As shown, the method comprises the following steps:
[0138] Step 201: In response to detecting a value transfer operation based on a resource acquisition order of a displayed target resource, the terminal transfers a first resource value in a user account to an application account corresponding to an application server.
[0139] Among them, the target resource refers to a resource whose corresponding resource value changes over time, such as air tickets, attractions, travel routes, hotels, cinemas or performances. The resource value is the price of the target resource. The first resource value is used to obtain the target resource, and the first resource value is the resource value corresponding to the target resource at the first time point. For example, the first resource value is used to purchase the target resource, and the first resource value is the price of the target resource at the first time point. For example, the first resource value can be the amount of money paid by the user. The user account is the user account corresponding to the user identifier logged in by the terminal.
[0140] The resource acquisition order of the target resource is used to request the acquisition of the target resource, and can be triggered by the user through an order operation. For example, if the target resource is a flight ticket, the resource acquisition order of the target resource can be as follows: Figure 3 The value transfer operation may be a user's payment operation, such as an operation of clicking on a resource acquisition order to confirm a payment option. When a payment operation is detected, the first resource value paid by the user may be transferred from the user account to the application account corresponding to the application server.
[0141] At present, on e-commerce platforms, when users want to obtain target resources, they generally need to first select the target resources to be obtained, then submit a resource acquisition order, and then make payment based on the submitted resource acquisition order. As an example, in a ticket purchase scenario, the target resource is a flight ticket. After the user selects a flight on the ticket purchase platform and fills in the order, the payment can be made based on the submitted order. When the terminal detects the user's payment operation, the amount paid by the user can be transferred from the user's account to the account of the ticket purchase platform.
[0142] Step 202: The application server receives the first resource value transferred from the user account.
[0143] The application server may receive the first resource value transferred by the user account based on the application account corresponding to the application server. The first resource value is transferred based on the resource acquisition order of the target resource, and is used to acquire the target resource, and the first resource value is the resource value corresponding to the target resource at the first time point.
[0144] After receiving the first resource acquisition request, the related art generally transfers the first resource acquisition request to the resource server immediately to obtain the target resource for the user account based on the first resource value. However, in the embodiment of the present application, after receiving the first resource acquisition request, the first resource acquisition request is not immediately transferred to the resource server, but the value of the real-time resource corresponding to the target resource after the first time point is first queried. If a second resource value lower than the first resource value is queried, the second resource value is transferred to the resource server to obtain the target resource for the user account based on the second resource value. In this way, the user's resource value can be saved.
[0145] For ease of explanation, the embodiment of the present application will, after receiving the first resource value transferred by the user account, first query the second resource value corresponding to the target resource after the first time point and which is lower than the first resource value, and then obtain the target resource for the user account based on the second resource value. This function is called delayed acquisition function.
[0146] As an example, after receiving the first resource value transferred by the user account, it is also possible to first determine whether the user corresponding to the user account allows delayed acquisition of the target resource. If allowed, continue with the following process. If not allowed, immediately transfer the first resource value to the resource account corresponding to the resource server so as to obtain the target resource for the user based on the first resource value.
[0147] As an example, the resource acquisition order of the target resource displayed by the terminal includes a delayed acquisition option, which is used to start a delayed acquisition function, which is used to acquire the target resource for the user account after a first time point with a second resource value less than the first resource value.
[0148] As an example, if the delayed acquisition option is selected, it is determined that the user corresponding to the user account allows delayed acquisition of the target resource. If the delayed acquisition option is not selected, it is determined that the user corresponding to the user account does not allow delayed acquisition of the target resource.
[0149] For example, in the air ticket purchase scenario, the delayed acquisition function can be called the "price reduction protection" service. Figure 3When a user purchases an air ticket through a ticket purchase application installed in a terminal, the ticket purchase application can provide a "price reduction protection" service on the order page. If the user has checked the "price reduction protection" service, after the user submits the order and confirms the payment, it is determined that the user allows delayed ticket issuance, that is, the ticket purchase application can continuously monitor the price changes of the entire network. If the air ticket price drops, it will issue a ticket to the user at a low price. During the delayed ticket issuance process, the user's order status can also be switched to the ticket issuance status. If the user does not check the "price reduction protection" service, after the user submits the order and confirms the payment, it is determined that the user does not allow delayed ticket issuance, and the ticket purchase application needs to issue a ticket to the user immediately at the price paid by the user.
[0150] As an example, a detail icon is also displayed around the delayed acquisition option. In response to detecting a trigger operation on the detail icon, the terminal can display the function detail information of the delayed acquisition function. The function detail information is used to introduce the delayed acquisition function. For example, in response to detecting a trigger operation on the detail icon, the terminal can also display a message pop-up window, which is used to display the function detail information of the delayed acquisition function.
[0151] For examples, please refer to Figure 4 If the user clicks the question mark icon around the "price reduction protection" service, the terminal can display a pop-up message window, which is used to remind the user of the function of the "price reduction protection" service. For example, the prompt message of the pop-up message window can be "After payment, continue to monitor the changes in ticket prices across the entire network. If the ticket price drops, refund the price difference." In addition, after the user confirms the payment, the user's order can also be changed to the "payment successful waiting for ticket issuance" status, but the merchant order of the ticket purchase application is still in an unpaid state, that is, the user pays the ticket purchase money to the ticket purchase application, and the ticket purchase application does not immediately pay the airline. Instead, after finding a low-priced ticket, it pays the low-priced ticket purchase money to the airline and returns the price difference to the user after deducting the service fee.
[0152] Step 203: The application server determines whether the target resource meets the delayed acquisition condition.
[0153] As an example, if the target resource meets at least one of the following conditions, it is determined that the target resource meets the delayed acquisition condition: 1. The user corresponding to the user account allows delayed acquisition of the target resource; 2. The user corresponding to the user account is not a risky user; 3. The user corresponding to the user account has not requested reimbursement information for the target resource; 4. The obtainable quantity of the target resource is greater than or equal to the second quantity threshold.
[0154] Among them, risky users may include users with low credit, users with a high probability of maliciously acquiring target resources, competing users, or users related to the resource owner of the target resource, etc. For example, in the air ticket purchase scenario, risky users may be users working for an airline, or users working for a competing ticket purchase platform, etc. The reimbursement information of the target resource is a voucher for reimbursing the resource value used to acquire the target resource. For example, in the air ticket purchase scenario, the reimbursement information of the target resource may be an itinerary. The available amount of the target resource refers to the remaining number of the target resource. For example, in the air ticket purchase scenario, the available amount of the target resource may be the remaining space of the purchased flight. The second quantity threshold may be set by the user or by default by the application server, and the embodiments of the present application do not limit this. For example, the second quantity threshold may be 5, 6, or 10, etc.
[0155] Step 204: In response to the target resource satisfying the delayed acquisition condition, the application server queries the real-time resource value corresponding to the target resource after the first time point.
[0156] That is, if it is determined that the target resource meets the delayed acquisition condition, the real-time resource value corresponding to the target resource after the first time point can be queried, for example, the real-time price of the target resource after the first time point can be queried. As an example, after a user pays an order on a ticket purchasing platform, the ticket purchasing platform can query the real-time ticket price at a subsequent time.
[0157] It should be noted that, after receiving the first resource value transferred by the user account, the related art generally transfers the first resource value to the resource account corresponding to the resource server immediately, so as to obtain the target resource for the user account based on the first resource value. In the embodiment of the present application, after receiving the first resource value transferred by the user account, the first resource value is not immediately transferred to the resource server, but the real-time resource value corresponding to the target resource after the first time point is first queried, so that when a second resource value lower than the first resource value is queried, the target resource is obtained for the user account based on the second resource value, so that the user's resource value can be saved.
[0158] In addition, in response to the target resource not meeting the delayed acquisition condition, the application server may also directly transfer the first resource value to the application account corresponding to the resource server to obtain the target resource for the user account based on the first resource value. For example, in a ticket purchase scenario, if it is determined that the ticket purchased by the user does not meet the delayed acquisition condition, the merchant order may be immediately flipped to a paid ticket-to-be-issued state, that is, the ticket is immediately purchased for the user based on the price paid by the user.
[0159] It should be noted that step 203 is an optional step. In another embodiment, after the application server receives the first resource value transferred by the user account, it may not determine whether the target resource meets the delayed acquisition condition, and directly query the real-time resource value corresponding to the target resource after the first time point.
[0160] Step 205: In response to finding that the second resource value corresponding to the target resource at a second time point after the first time point is less than the first resource value, the application server transfers the second resource value to the resource account corresponding to the resource server to obtain the target resource for the user account based on the second resource value.
[0161] The resource server refers to the server corresponding to the owner of the target resource, such as an airline's ticketing server. After receiving the second resource value, the resource server can directly assign the target resource value to the user account based on the second resource value, or send the target resource to the application server, which will assign it to the user account.
[0162] Specifically, the operation of the application server querying the target resource for a second resource value corresponding to a second time point after the first time point, which is smaller than the first resource value, may include the following two implementations:
[0163] The first implementation method: in response to querying that the real-time resource value corresponding to the target resource after the first time point is less than the first resource value, the real-time resource value is determined as the second resource value, and the time point corresponding to the real-time resource value is determined as the second time point.
[0164] That is, after the first time point, as long as the real-time resource value corresponding to the target resource is found to be less than the first resource value, the real-time resource value at that time point can be determined as the second resource value corresponding to the target resource at the second time point. For example, after the first time point, as long as a fare lower than the price paid by the user is found, the fare can be used as the low price to be issued.
[0165] The second implementation method: before querying the real-time resource value corresponding to the target resource after the first time point, predict the minimum resource value corresponding to the target resource within a preset time length after the first time point based on the historical resource values corresponding to the target resource at different times; in response to the minimum resource value being less than the first resource value, determine the prediction time range corresponding to the minimum resource value, and the prediction time range is within the preset time length after the first time point, and then query the real-time resource value of the target resource within the prediction time range; in response to querying that the real-time resource value of the target resource within the prediction time range is less than the first resource value, determine the real-time resource value as the second resource value, and determine the time point corresponding to the real-time resource value as the second time point.
[0166] That is, based on historical data, the lowest resource value corresponding to the target resource within a preset time period after the first time point can be predicted, and then according to the time at which the lowest resource value is located, the predicted time range in which the lowest resource value may appear can be determined, and then the real-time resource value corresponding to the target resource within the predicted time range can be queried. Afterwards, as long as the real-time resource value corresponding to the target resource is found to be less than the first resource value within the predicted time range, the real-time resource value at that time point can be determined as the second resource value corresponding to the target resource at the second time point.
[0167] For example, in a ticket purchasing scenario, the ticket purchasing application can predict the lowest fare for the flight within a preset period of time after a first time point based on the historical flight fare change data of the flight corresponding to the purchased ticket, and then determine the predicted time range for the lowest price, and query the real-time fare of the flight within the predicted time range. Within the predicted time range, as long as a fare lower than the price paid by the user is found, the fare can be used as the low price for the ticket to be issued.
[0168] Furthermore, after transferring the second resource value to the resource account corresponding to the resource server, the application server may also first send a first resource reservation request to the resource server, the first resource reservation request carrying the identifier of the target resource, for requesting to reserve the target resource whose corresponding resource value is the second resource value. Afterwards, in response to receiving the first resource reservation response information returned by the resource server, the second resource value is transferred to the resource account corresponding to the resource server based on the first resource reservation response information.
[0169] The first resource reservation request may be triggered based on an order instruction of the application server. For example, the first resource reservation request may be an order request submitted by the application server to the resource server, and the first resource reservation response information may be a merchant order responded to by the resource server. Afterwards, the application server may make payment based on the merchant order.
[0170] For example, when a user purchases a flight ticket, after paying the order, if a lower-priced flight ticket is found than the price paid by the user, the user can submit an order to the airline at the found price and make payment based on the submitted order to request the airline to issue the ticket at the lower price paid. Figure 5 For example, if a user pays 1,730 yuan when paying for an order, and while the user is waiting for the ticket to be issued, if the ticket purchasing application finds that the ticket is priced at 1,430 yuan, the ticket purchasing application can place an order and make payment to the airline at the price of 1,430 yuan, allowing the airline to issue the ticket at the price of 1,430 yuan.
[0171] Step 206: The application server transfers a third resource value to the user account, where the third resource value is less than or equal to the difference between the first resource value and the second resource value.
[0172] As an example, the third resource value may be the difference between the first difference and the fourth resource value, where the first difference refers to the difference between the first resource value and the second resource value, and the fourth resource value may be a preset reference value, or may be the product of a preset ratio and the first resource value, where the preset ratio is less than 1, and this embodiment of the present application does not limit this.
[0173] For example, see Figure 5 When a user buys a ticket, the user pays 1,730 yuan when paying the order and waits for the ticket to be issued. If the subsequent ticket purchase application buys a ticket of 1,430 yuan for the same flight for the user, the price difference can be deducted from the service fee and returned to the user after the ticket is purchased. For example, the price difference is 300 yuan, and the deducted service fee is 90 yuan.
[0174] Step 207: After the first time point, the terminal receives the target resource allocated to the user account and the third resource value transferred to the user account.
[0175] As an example, after receiving the target resource assigned to the user account and the third resource value transferred to the user account, the terminal can also display a prompt information that the target resource has been acquired, and the prompt information that has been acquired includes the second resource value, which is used to indicate that the user account has acquired the target resource based on the second resource value.
[0176] As an example, the acquired prompt information may also include a third resource value, which is used to indicate that the user account is returned the third resource value.
[0177] As an example, the acquired prompt information may also include a refund progress query entry. In response to detecting a trigger operation on the refund progress query entry, the terminal may also display the refund progress of the third resource value. For example, after the ticket is issued to the user at a low price, the user may also view the refund progress in the ticketing interface. For example, the refund progress includes submitting a refund, accepting a refund, refunding, and completing a refund.
[0178] In another embodiment, if the second resource value is not found, the terminal may also receive a target resource allocated to the user account, and the resource value corresponding to the target resource is the first resource value.
[0179] Please refer to Figure 6 , Figure 6 is a schematic diagram of a ticket purchasing process provided by an embodiment of the present application, such as Figure 6As shown, after the user successfully pays, the ticket purchase application can first determine whether the user has checked the "price reduction protection" service. If the user has not checked it, the ticket will be notified to issue the ticket immediately. If the user has checked it, the user order will be flipped to the paid state, and the merchant order will still be maintained in the pending payment state. The merchant order refers to the order placed by the ticket purchase application for the user to purchase the ticket. Afterwards, it is determined whether the ticket purchased by the user meets the delayed ticket issuance conditions. If so, the user is queried for low-priced tickets according to the method provided in the embodiment of the present application. If not, the merchant order will be flipped to the paid pending ticket issuance state, and the ticket will be notified to issue the ticket immediately.
[0180] In an embodiment of the present application, a first resource value for acquiring a target resource transferred by a user account can be first received, and then a real-time resource value corresponding to the target resource after a first time point can be queried. In response to finding that a second resource value corresponding to a second time point after the first time point is less than the first resource value, the second resource value can be transferred to a resource account corresponding to the resource server to acquire the target resource for the user account based on the second resource value, and a third resource value can be transferred to the user account, where the third resource value is less than or equal to the difference between the first resource value and the second resource value. In this way, the method of acquiring resources is expanded and flexibility is improved.
[0181] Figure 7 is a flowchart of another resource acquisition method provided in an embodiment of the present application, the method is applied in an application server, such as Figure 7 As shown, the method comprises the following steps:
[0182] Step 701: Receive a first resource value transferred by a user account, where the first resource value is triggered based on a resource acquisition order of a target resource and is used to acquire the target resource, and the first resource value is a resource value corresponding to the target resource at a first time point.
[0183] Step 702: Query the real-time resource value corresponding to the target resource after the first time point.
[0184] It should be noted that the specific implementation process of steps 701-702 can refer to the above steps 202 and 204, and the embodiment of the present application will not be repeated here.
[0185] Step 703: Send a second resource reservation request to the resource server, and receive second resource reservation response information returned by the resource server.
[0186] The second resource reservation request carries the identifier of the target resource and is used to request the reservation of the target resource whose corresponding resource value is the first resource value. That is, after receiving the first resource value transferred by the user account, an order can be placed with the resource server based on the first resource value.
[0187] By sending a second resource reservation request to the resource server, a target resource whose corresponding resource value is the first resource value can be reserved, that is, the target resource requested by the user corresponding to the user account is first occupied to prevent the target resource requested by the user from being obtained by other users. In this way, it can be ensured that when a second resource value less than the first resource value cannot be queried, or the target resource cannot be obtained based on the second resource value, the target resource is obtained again with the first resource value based on the second resource reservation response information to avoid the situation where the target resource cannot be obtained.
[0188] As an example, the second resource reservation request may be triggered by an application server through an order instruction. For example, the second resource reservation request may be an order request submitted by the application server to the resource server based on the user's payment order. The second resource reservation response information is a merchant order responded to by the resource server, and the merchant order is in an unpaid state.
[0189] As an example, the second resource reservation response information has a valid time and automatically becomes invalid after the valid time has expired. After receiving the second resource reservation response information returned by the resource server, in response to detecting that the second resource reservation response information is invalid, the application server may continue to send the second resource reservation request to the resource server.
[0190] Since the order will be automatically cancelled if it is not paid for a long time, in order to ensure that the order is valid for a long time, after the order expires, a second resource reservation request can be sent to the resource server to continue to occupy the target resource requested by the user.
[0191] Step 704: Query the real-time available quantity of the target resource.
[0192] After receiving the first resource value transferred by the user account, the real-time available amount of the target resource may also be queried to determine whether the real-time available amount of the target resource is sufficient.
[0193] Step 705: In response to finding that the real-time available amount of the target resource is less than the first quantity threshold, stop querying the real-time resource value corresponding to the target resource after the first time point, and transfer the first resource value to the resource account corresponding to the resource server based on the second resource reservation response information, so as to obtain the target resource for the user account based on the first resource value.
[0194] The first quantity threshold may be preset by a user or may be set by default by the resource application server, and the present application embodiment does not limit this. For example, the first quantity threshold may be 5, 6, 10 or 20, etc.
[0195] That is, when the real-time available amount of the target resource is small, in order to avoid the situation where the target resource cannot be obtained, even if a real-time resource value lower than the first resource value has not been queried, the query will not continue. Instead, based on the second resource reservation response information, the first resource value will be transferred to the resource account corresponding to the resource server, so as to obtain the target resource for the user account based on the first resource value.
[0196] For example, in a ticket purchase scenario, when there are fewer seats on the flight purchased by the user, even if a lower-priced ticket has not been found, the query will not continue, but the ticket will be issued based on the original price.
[0197] Step 706: In response to the time length between the current time point and the first time point being greater than or equal to the preset time length, stop querying the real-time resource value corresponding to the target resource after the first time point, and transfer the first resource value to the resource account corresponding to the resource server based on the second resource reservation response information, so as to obtain the target resource for the user account based on the first resource value.
[0198] The preset duration refers to the maximum delay duration for delayed acquisition of the target resource. For example, the preset duration can be set according to actual conditions, for example, the preset duration can be 8 hours, 1 day, or 2 days. Furthermore, the preset duration can also be the distance between the first time point and the third time point, and the third time point refers to the deadline for acquiring the target resource.
[0199] That is, when the delayed time for obtaining the target resource times out, in order to avoid the situation where the target resource cannot be obtained, even if a real-time resource value lower than the first resource value has not been queried, the query will no longer continue. Instead, based on the second resource reservation response information, the target resource is obtained for the user account with the first resource value.
[0200] For example, in a ticket purchase scenario, taking the preset duration as 8 hours, after the user pays the order, if the current time has reached 8 hours from the time the user paid the order, even if a lower-priced ticket has not been found at this time, the query will no longer continue, and the ticket will be issued based on the original price.
[0201] Step 707: In response to finding that a second resource value corresponding to the target resource at a second time point after the first time point is smaller than the first resource value, a first resource reservation request is sent to a resource server.
[0202] The first resource reservation request carries an identifier of a target resource and is used to request the reservation of a target resource whose corresponding resource value is the second resource value.
[0203] Step 708: In response to receiving the first resource reservation response information returned by the resource server, based on the first resource reservation response information, transfer the second resource value to the resource account corresponding to the resource server, so as to obtain the target resource for the user account based on the second resource value.
[0204] Step 709: Transfer a third resource value to the user account, where the third resource value is less than or equal to the difference between the first resource value and the second resource value.
[0205] Among them, the specific implementation method of steps 707-709 can refer to the relevant description of the above steps 205-206, and the embodiment of the present application will not be repeated here.
[0206] As an example, the application server may also, in response to detecting that the first resource reservation request is not responded to by the resource server, transfer the first resource value to the resource account corresponding to the resource server based on the second resource reservation response information, so as to obtain the target resource for the user account based on the first resource value.
[0207] As an example, in response to detecting that the first resource reservation request is not responded to by the resource server, the first resource reservation request may continue to be sent to the resource server, and in response to the first resource reservation request being still not responded to by the resource server after repeatedly sending the first resource reservation request to the resource server N times, the first resource value is transferred to the resource account corresponding to the resource server based on the first resource reservation response information, so as to obtain the target resource for the user account based on the first resource value. Wherein, N is an integer greater than 1, and by way of example, it may be 2, 3, or 5, etc.
[0208] That is, after sending the first resource reservation request to the resource server, if it is detected that the first resource reservation request is not responded by the resource server, a retry is performed. If there is still no response after N retries, the first resource value is transferred to the resource account corresponding to the resource server based on the first resource reservation response information, so as to obtain the target resource for the user account based on the first resource value again.
[0209] For example, in a ticket purchase scenario, if the ticket purchase application finds a low-priced air ticket that is lower than the price paid by the user, the order can be placed and paid based on the low price found. If the order is successful, the payment is made directly. If the order fails, continue to try to place the order. If it still fails after N retries, it can be checked whether the original order submitted based on the original price paid by the user exists. If it exists, payment is made based on the original order to purchase the air ticket at the original price. Furthermore, if the original order does not exist, it can continue to check whether there is an original price air ticket or a low-priced air ticket. If it exists, the order is placed and paid. If it does not exist, the ticket can also be purchased using self-operated or other ticket purchase platforms.
[0210] In an embodiment of the present application, a first resource value for acquiring a target resource transferred by a user account can be first received, and then a real-time resource value corresponding to the target resource after a first time point can be queried. In response to finding that a second resource value corresponding to a second time point after the first time point is less than the first resource value, the second resource value can be transferred to a resource account corresponding to the resource server to acquire the target resource for the user account based on the second resource value, and a third resource value can be transferred to the user account, where the third resource value is less than or equal to the difference between the first resource value and the second resource value. In this way, the method of acquiring resources is expanded and flexibility is improved.
[0211] Figure 8 is a structural block diagram of a resource acquisition device provided in an embodiment of the present application, which can be integrated in an application server, see Figure 8 The device includes a first receiving module 801, a first query module 802, a first transfer module 803 and a second transfer module 804.
[0212] A first receiving module 801 is used to receive a first resource value transferred by a user account, the first resource value is triggered based on a resource acquisition order of a target resource, is used to acquire the target resource, and the first resource value is a resource value corresponding to the target resource at a first time point;
[0213] A first query module 802 is used to query the real-time resource value corresponding to the target resource after the first time point;
[0214] A first transfer module 803 is configured to transfer the second resource value to a resource account corresponding to the resource server in response to finding that the second resource value corresponding to the target resource at a second time point after the first time point is less than the first resource value, so as to obtain the target resource for the user account based on the second resource value;
[0215] The second transfer module 804 is used to transfer a third resource value to the user account, where the third resource value is less than or equal to the difference between the first resource value and the second resource value.
[0216] In an embodiment of the present application, a first resource value for acquiring a target resource transferred by a user account can be first received, and then a real-time resource value corresponding to the target resource after a first time point can be queried. In response to finding that a second resource value corresponding to a second time point after the first time point is less than the first resource value, the second resource value can be transferred to a resource account corresponding to the resource server to acquire the target resource for the user account based on the second resource value, and a third resource value can be transferred to the user account, where the third resource value is less than or equal to the difference between the first resource value and the second resource value. In this way, the method of acquiring resources is expanded and flexibility is improved.
[0217] Optionally, the device further comprises:
[0218] The first determination module is used to determine the real-time resource value as the second resource value and the time point corresponding to the real-time resource value as the second time point in response to querying that the real-time resource value corresponding to the target resource after the first time point is less than the first resource value.
[0219] Optionally, the device further comprises:
[0220] A prediction module, configured to predict a minimum resource value corresponding to the target resource within a preset time period after the first time point based on historical resource values corresponding to the target resource at different times;
[0221] A second determination module is configured to determine, in response to the minimum resource value being less than the first resource value, a prediction time range corresponding to the minimum resource value, the prediction time range being within a preset time length after the first time point;
[0222] The first query module 802 is used to query the real-time resource value of the target resource within the prediction time range;
[0223] The third determination module is used to determine the real-time resource value as the second resource value and the time point corresponding to the real-time resource value as the second time point in response to querying that the real-time resource value of the target resource within the predicted time range is less than the first resource value.
[0224] Optionally, the device further comprises:
[0225] A first sending module is used to send a first resource reservation request to the resource server, where the first resource reservation request carries the identifier of the target resource and is used to request to reserve a target resource whose corresponding resource value is the second resource value;
[0226] The trigger module is used to trigger the second transfer module to transfer the second resource value to the resource account corresponding to the resource server based on the first resource reservation response information in response to receiving the first resource reservation response information returned by the resource server.
[0227] Optionally, the device further comprises:
[0228] A second sending module, configured to send a second resource reservation request to the resource server after the first receiving module receives the first resource value transferred by the user account;
[0229] A second receiving module is used to receive second resource reservation response information returned by the resource server, wherein the second resource reservation request carries the identifier of the target resource and is used to request to reserve a target resource whose corresponding resource value is the first resource value;
[0230] The third transfer module is used to transfer the first resource value to the resource account corresponding to the resource server based on the second resource reservation response information after the first sending module sends the first resource reservation request to the resource server, in response to detecting that the first resource reservation request is not responded to by the resource server, so as to obtain the target resource for the user account based on the first resource value.
[0231] Optionally, the device further comprises:
[0232] A second sending module, configured to send a second resource reservation request to the resource server after the first receiving module receives the first resource value transferred by the user account;
[0233] A second receiving module is used to receive second resource reservation response information returned by the resource server, wherein the second resource reservation request carries the identifier of the target resource and is used to request to reserve a target resource whose corresponding resource value is the first resource value;
[0234] The second query module is used to query the real-time available amount of the target resource;
[0235] A trigger module, configured to trigger the first query module to stop querying the real-time resource value corresponding to the target resource after the first time point in response to finding that the real-time available amount of the target resource is less than the first quantity threshold;
[0236] The third transfer module is used to transfer the first resource value to the resource account corresponding to the resource server based on the second resource reservation response information, so as to obtain the target resource for the user account based on the first resource value.
[0237] Optionally, the
[0238] A triggering module, configured to, after the second receiving module receives the second resource reservation response information returned by the resource server, trigger the first query module to stop querying the real-time resource value corresponding to the target resource after the first time point in response to the time length between the current time point and the first time point being greater than or equal to the preset time length;
[0239] The third transfer module is used to transfer the first resource value to the resource account corresponding to the resource server based on the second resource reservation response information, so as to obtain the target resource for the user account based on the first resource value.
[0240] Optionally, the second resource reservation response information has a valid time period and automatically becomes invalid after exceeding the valid time period, and the device further includes:
[0241] The trigger module is used to trigger the second sending module to continue to send the second resource reservation request to the resource server in response to detecting that the second resource reservation response information is invalid before it is queried that the second resource value corresponding to the second resource value at a second time point after the first time point is less than the first resource value.
[0242] Optionally, the device further comprises:
[0243] A fourth determination module, used to determine whether the target resource meets the delayed acquisition condition;
[0244] The trigger module is used to trigger the first query module to query the real-time resource value corresponding to the target resource after the first time point in response to the target resource satisfying the delayed acquisition condition.
[0245] Optionally, the fourth determining module is used to:
[0246] If the target resource meets at least one of the following conditions, it is determined that the target resource meets the delayed acquisition condition:
[0247] The user corresponding to the user account is not a risky user;
[0248] The user corresponding to the user account has not requested the reimbursement information of the target resource;
[0249] The obtainable quantity of the target resource is greater than or equal to the second quantity threshold.
[0250] Fig. 9 is a structural block diagram of a resource acquisition device provided in an embodiment of the present application, which can be integrated in a terminal, see Fig. 9 , the device includes a transfer module 901 and a receiving module 902.
[0251] A transfer module 901, configured to transfer the first resource value in the user account to the application account corresponding to the application server when a value transfer operation is detected based on the resource acquisition order of the displayed target resource;
[0252] The first resource value is used to obtain the target resource, and the first resource value is the resource value corresponding to the target resource at the first time point;
[0253] The receiving module 902 is used to receive the target resource allocated to the user account after the first time point, or receive the target resource allocated to the user account and the third resource value transferred to the user account;
[0254] Among them, the third resource value is less than or equal to the difference between the first resource value and the second resource value, the second resource value is the resource value corresponding to the target resource at a second time point after the first time point, and the second resource value is less than the first resource value.
[0255] Optionally, the resource acquisition order for the target resource includes a delayed acquisition option, which is used to start a delayed acquisition function, and the delayed acquisition function is used to acquire the target resource for the user account after the first time point with a second resource value that is less than the first resource value.
[0256] Optionally, a detail icon is displayed around the delayed acquisition option, and the device further includes:
[0257] The display module is used to display the function detail information of the delayed acquisition function in response to detecting a trigger operation on the detail icon.
[0258] Optionally, the display module is also used for:
[0259] After the receiving module receives the target resource assigned to the user account and the third resource value transferred to the user account, it displays a prompt message indicating that the target resource has been acquired. The prompt message includes the second resource value, indicating that the user account has acquired the target resource based on the second resource value.
[0260] Optionally, the acquired prompt information also includes the third resource value, which is used to indicate that the user account is returned the third resource value.
[0261] Optionally, the acquired prompt information also includes a rollback progress query entry, and the display module is further used to display the rollback progress of the third resource value in response to detecting a trigger operation on the rollback progress query entry.
[0262] It should be noted that: the resource acquisition device provided in the above embodiment only uses the division of the above functional modules as an example to illustrate when acquiring resources. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the resource acquisition device provided in the above embodiment and the resource acquisition method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0263] Fig.10It is a structural diagram of a server 1000 provided in an embodiment of the present application. The server 1000 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 1001 and one or more memories 1002, wherein the memory 1002 stores at least one instruction, and the at least one instruction is loaded and executed by the processor 1001 to implement the resource acquisition method provided in the above-mentioned various method embodiments. Of course, the server 1000 may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The server 1000 may also include other components for implementing device functions, which will not be described in detail here.
[0264] In another embodiment, a non-transitory computer-readable storage medium is provided. When the instructions in the storage medium are executed by a processor of a computer, the computer can execute the resource acquisition methods provided in the above embodiments.
[0265] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0266] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A resource acquisition method, characterized in that: Applied in an application server, the method comprises: Receiving a resource acquisition order for a target resource, wherein the resource acquisition order for the target resource includes a delayed acquisition option, and the delayed acquisition option is used to start a delayed acquisition function; Receive a first resource value transferred by a user account, the first resource value is transferred based on a resource acquisition order of a target resource, and is used to acquire the target resource, and the first resource value is a resource value corresponding to the target resource at a first time point; the delayed acquisition function is used to acquire the target resource for the user account with a second resource value less than the first resource value after the first time point; query the real-time resource value corresponding to the target resource after the first time point; In response to finding out that the second resource value corresponding to the target resource at a second time point after the first time point is less than the first resource value, the second resource value is transferred to the resource account corresponding to the resource server, so as to obtain the target resource for the user account based on the second resource value; before finding out that the second resource value corresponding to the target resource at a second time point after the first time point is less than the first resource value, the application server does not transfer the first resource value to the resource account corresponding to the resource server; Transferring a third resource value to the user account, the third resource value being less than or equal to a difference between the first resource value and the second resource value; Before querying the real-time resource value corresponding to the target resource after the first time point, the method further includes: Based on the historical resource values corresponding to the target resource at different times, predicting the minimum resource value corresponding to the target resource within a preset time period after the first time point; In response to the minimum resource value being less than the first resource value, determining a prediction time range corresponding to the minimum resource value; The querying of the real-time resource value corresponding to the target resource after the first time point includes: Querying the real-time resource value of the target resource within the predicted time range; After querying the real-time resource value corresponding to the target resource after the first time point, the method further includes: In response to finding that the real-time resource value of the target resource within the predicted time range is less than the first resource value, the real-time resource value is determined as the second resource value, and the time point corresponding to the real-time resource value is determined as the second time point.
2. The method according to claim 1, characterized in that After querying the real-time resource value corresponding to the target resource after the first time point, the method further includes: In response to finding that the real-time resource value corresponding to the target resource after the first time point is less than the first resource value, the real-time resource value is determined as the second resource value, and the time point corresponding to the real-time resource value is determined as the second time point.
3. The method according to claim 1, characterized in that Before transferring the second resource value to the resource account corresponding to the resource server, the method further includes: Sending a first resource reservation request to the resource server, wherein the first resource reservation request carries the identifier of the target resource and is used to request reservation of a target resource whose corresponding resource value is the second resource value; In response to receiving the first resource reservation response information returned by the resource server, a step of transferring the second resource value to a resource account corresponding to the resource server is performed based on the first resource reservation response information.
4. The method according to claim 3, characterized in that After receiving the first resource value transferred from the user account, the method further includes: Sending a second resource reservation request to the resource server, and receiving second resource reservation response information returned by the resource server, wherein the second resource reservation request carries the identifier of the target resource and is used to request reservation of a target resource whose corresponding resource value is the first resource value; After sending the first resource reservation request to the resource server, the method further includes: In response to detecting that the first resource reservation request is not responded to by the resource server, based on the second resource reservation response information, the first resource value is transferred to a resource account corresponding to the resource server to obtain the target resource for the user account based on the first resource value.
5. The method according to claim 1, characterized in that After receiving the first resource value transferred from the user account, the method further includes: Sending a second resource reservation request to the resource server, and receiving second resource reservation response information returned by the resource server, wherein the second resource reservation request carries the identifier of the target resource and is used to request reservation of a target resource whose corresponding resource value is the first resource value; Query the real-time available amount of the target resource; In response to finding that the real-time available amount of the target resource is less than a first quantity threshold, stopping querying the real-time resource value corresponding to the target resource after the first time point; Based on the second resource reservation response information, the first resource value is transferred to a resource account corresponding to the resource server, so as to obtain the target resource for the user account based on the first resource value.
6. The method according to claim 5, characterized in that After receiving the second resource reservation response information returned by the resource server, the method further includes: In response to the time length between the current time point and the first time point being greater than or equal to a preset time length, stopping querying the real-time resource value corresponding to the target resource after the first time point; Based on the second resource reservation response information, the first resource value is transferred to a resource account corresponding to the resource server, so as to obtain the target resource for the user account based on the first resource value.
7. The method according to any one of claims 4 to 6, characterized in that: The second resource reservation response information has a valid time and automatically becomes invalid after the valid time has expired. After receiving the second resource reservation response information returned by the resource server, the method further includes: Before finding that a second resource value corresponding to the target resource at a second time point after the first time point is less than the first resource value, in response to detecting that the second resource reservation response information is invalid, continue to send the second resource reservation request to the resource server.
8. The method according to claim 1, characterized in that Before querying the real-time resource value corresponding to the target resource after the first time point, the method further includes: Determining whether the target resource meets the delayed acquisition condition; In response to the target resource satisfying the delayed acquisition condition, a step of querying a real-time resource value corresponding to the target resource after the first time point is performed.
9. The method according to claim 8, characterized in that The determining whether the target resource meets the delayed acquisition condition includes: If the target resource satisfies at least one of the following conditions, it is determined that the target resource satisfies the delayed acquisition condition: The user corresponding to the user account is not a risky user; The user corresponding to the user account has not requested the reimbursement information of the target resource; The obtainable quantity of the target resource is greater than or equal to a second quantity threshold.
10. A resource acquisition device, characterized in that: Applied in an application server, the device comprises: a first receiving module, for receiving a resource acquisition order for a target resource, wherein the resource acquisition order for the target resource includes a delayed acquisition option, and the delayed acquisition option is used to start a delayed acquisition function; and further for receiving a first resource value transferred by a user account, wherein the first resource value is a transfer triggered based on the resource acquisition order for the target resource, and is used to acquire the target resource, and the first resource value is a resource value corresponding to the target resource at a first point in time; the delayed acquisition function is used to acquire the target resource for the user account with a second resource value less than the first resource value after the first point in time; and a first query module, for querying a real-time resource value corresponding to the target resource after the first point in time; A first transfer module is used for transferring the second resource value to the resource account corresponding to the resource server in response to finding that the second resource value corresponding to the target resource at a second time point after the first time point is less than the first resource value, so as to obtain the target resource for the user account based on the second resource value; before finding that the second resource value corresponding to the target resource at the second time point after the first time point is less than the first resource value, the first transfer module does not transfer the first resource value to the resource account corresponding to the resource server; A second transfer module, configured to transfer a third resource value to the user account, wherein the third resource value is less than or equal to a difference between the first resource value and the second resource value; The first query module is further configured to, before querying the real-time resource value corresponding to the target resource after the first time point, predict the minimum resource value corresponding to the target resource within a preset time length after the first time point based on the historical resource values corresponding to the target resource at different times; in response to the minimum resource value being less than the first resource value, determine the predicted time range corresponding to the minimum resource value; The querying of the real-time resource value corresponding to the target resource after the first time point includes: querying the real-time resource value of the target resource within the predicted time range; after the querying of the real-time resource value corresponding to the target resource after the first time point, it also includes: in response to finding that the real-time resource value of the target resource within the predicted time range is less than the first resource value, determining the real-time resource value as the second resource value, and determining the time point corresponding to the real-time resource value as the second time point.
11. A server, characterized in that: The server comprises: one or more processors; one or more memories for storing the one or more processor-executable instructions; The one or more processors are configured to execute the resource acquisition method according to any one of claims 1 to 9.
12. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of a computer, the computer is enabled to execute the resource acquisition method described in any one of claims 1 to 9.
