Resource value transfer method, device, equipment and storage medium
By adjusting the numerical transfer of resources in real time according to the exposure data during the promotion process of promotion information, the problem of single resource transfer method in the existing technology is solved, and the applicability and flexibility of resource transfer are improved.
Patent Information
- Application Number
- CN202010152683.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-06
- Publication Date
- 2025-08-12
- Estimated Expiration
- 2040-03-06
AI Technical Summary
In the prior art, the resource numerical transfer method is single and has poor applicability. Especially when the value of the subscription resource for promotion information changes, the resource numerical transfer needs to be waited for the promotion to be completed before the promotion can be re-transfer.
During the promotion process of promotion information, in response to the resource transfer time, the exposure data within the first time period is determined, and the target resource value is transferred from the first user account to the second user account of the promotion platform based on the data. If the subscription resource value changes and becomes smaller, the resource value is returned from the second user account to the first user account.
Realize instant adjustments during the numerical transfer of resources, avoiding waiting for promotion to be completed before transfer, and improving the applicability and flexibility of numerical transfer of resources.
Smart Images

Figure CN111353102B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information processing technology, and in particular to a method, device, equipment and storage medium for transferring resource values. Background Art
[0002] With the rapid development of network technology, if there is a need to promote promotion information, the owner of the promotion information can request some promoters to publish the promotion information on the promotion platform.
[0003] In related technologies, the owner of promotional information can submit an order to a promotion platform through a device such as a terminal. The order may include the content of the promotional information and information such as the owner's user account, which may store the reserved resource value for the promotional information. The promotion platform can promote the promotional information according to a specific strategy and, during the promotion process, transfer the corresponding resource value from the owner's user account to the promoter's user account based on data such as the actual number of impressions of the promotional information.
[0004] However, if the reserved resource value in the order changes, such as the reserved resource value becomes smaller, the promotion platform needs to re-transfer the resource value based on the change after the promotion ends. However, this results in a relatively simple method of resource value transfer and poor applicability. Summary of the Invention
[0005] This application provides a method, device, equipment, and storage medium for transferring resource values, which can improve the problem that the resource value transfer method in related technologies is relatively simple and has poor applicability. The technical solution is as follows:
[0006] In one aspect, a method for transferring resource values is provided, the method comprising:
[0007] In response to the current time reaching a resource transfer moment, determining first exposure data of the promotional information within a first time period, where the resource transfer moment is one of multiple moments of resource transfer during the promotion of the promotional information, and the first time period is a time period before the current time and a reference time from the current time;
[0008] Based on the first exposure data, transferring a target resource value from a first user account corresponding to the promotion information to a second user account corresponding to the promotion platform, the target resource value being determined based on the first exposure data;
[0009] In response to the first reserved resource value being changed to a second reserved resource value, and the second reserved resource value being less than the first reserved resource value, the resource value is transferred from the second user account to the first user account, the first reserved resource value and the second reserved resource value being the resource value before the change and the resource value after the change, respectively, pre-stored in the first user account for the promotional information.
[0010] In another aspect, a device for transferring resource values is provided, the device comprising:
[0011] a determination module configured to determine, in response to a current time reaching a resource transfer moment, first exposure data of the promotional information within a first time period, wherein the resource transfer moment is one of multiple moments at which resource transfer occurs during the promotion of the promotional information, and the first time period is a time period before the current time and a reference time from the current time;
[0012] a first transfer module configured to transfer, based on the first exposure data, a target resource value from a first user account corresponding to the promotion information to a second user account corresponding to the promotion platform, the target resource value being determined based on the first exposure data;
[0013] a second transfer module configured to transfer a resource value from the second user account to the first user account in response to a change in the first reserved resource value to a second reserved resource value, the second reserved resource value being less than the first reserved resource value, wherein the first reserved resource value and the second reserved resource value are respectively the resource value before the change and the resource value after the change pre-stored in the first user account for the promotion information.
[0014] On the other hand, a device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the resource value transfer method described above.
[0015] On the other hand, a computer-readable storage medium is provided, wherein the storage medium stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the resource value transfer method described above.
[0016] On the other hand, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the resource value transfer method described above.
[0017] The technical solution provided by this application can at least bring the following beneficial effects:
[0018] In response to the current time reaching the resource transfer moment, the first exposure data of the promotional information within the first time period is determined. Based on the first exposure data, the target resource value is transferred from the first user account corresponding to the promotional information to the second user account corresponding to the promotion platform. If the first reserved resource value is changed to the second reserved resource value, it is necessary to determine whether an excess resource value has been transferred. If the second reserved resource value is less than the first reserved resource value, it indicates that an excess transfer must have occurred. Therefore, the resource value is transferred from the second user account to the first user account. In this way, during the resource value transfer process, once the first reserved resource value is determined to have changed, the resource value is immediately returned, avoiding the need to wait until the promotion ends before re-transferring the resource value. This increases the number of resource value transfer methods and improves applicability. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. 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 any creative work.
[0020] Figure 1 This is a schematic diagram of an implementation environment provided by an embodiment of the present application;
[0021] Figure 2 This is a flow chart of a method for transferring resource values provided in an embodiment of the present application;
[0022] Figure 3 This is a flowchart of another resource value transfer method provided in an embodiment of the present application;
[0023] Figure 4 This is a flowchart of another resource value transfer method provided in an embodiment of the present application;
[0024] Figure 5 This is a flowchart of another resource value transfer method provided in an embodiment of the present application;
[0025] Figure 6 This is a schematic diagram of the structure of a resource value transfer device provided in an embodiment of the present application;
[0026] Figure 7 It is a structural diagram of a device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0028] Before explaining in detail the resource value transfer method provided in the embodiment of the present application, a brief introduction to the implementation environment provided in the embodiment of the present application is first given.
[0029] Please refer to Figure 1 , Figure 1 FIG. 1 is a schematic diagram of an implementation environment provided according to an exemplary embodiment. The implementation environment may include a promotion platform 110 and a terminal 120 , wherein a communication connection is established between the terminal 120 and the promotion platform 110 .
[0030] The promotion platform 110 is generally a platform developed by a promoter and can be used to deliver promotional information. The promotion platform 110 can also be used to perform operations such as order management and resource value transfer. Furthermore, the promotion platform 110 can also be used to play videos, publish messages, etc.
[0031] The promotion platform 110 may be a server, or a server cluster consisting of multiple servers. Figure 1 The promotion platform 110 may include a resource value management server 1101, an order management server 1102 and an exposure data management server 1103. The combination of these multiple servers can implement the resource value transfer method provided in the embodiment of the present application.
[0032] The terminal 120 is used by the owner of the promotional information. For example, when the owner of the promotional information wants to promote the promotional information, he or she can request the promotion platform 110 to promote the information through the terminal 120. As an example, the terminal 120 can be a device such as a mobile phone, a tablet computer, a laptop computer, or a desktop computer, which is not limited in this embodiment of the present application.
[0033] After introducing the implementation environment provided by the embodiment of the present application, the resource value transfer method provided by the embodiment of the present application will be explained in detail with reference to the accompanying drawings.
[0034] Figure 2 This is a flow chart of a method for transferring resource values provided in an embodiment of the present application. This method can be applied to the above Figure 1 Please refer to the implementation environment shown. Figure 2 , the method may include the following implementation steps.
[0035] Step 201: In response to the current time reaching the resource transfer moment, determine the first exposure data of the promotional information within the first time period, where the resource transfer moment refers to one of multiple moments of resource transfer during the promotion process of the promotional information, and the first time period is a time period before the current time and a reference time from the current time.
[0036] The reference duration can be set by the user according to actual needs or by default by the promotion platform, and the present embodiment does not limit this. For example, the reference duration can be 1 day.
[0037] The first exposure data may include one or more of exposure duration and exposure times.
[0038] Exemplarily, if the first exposure data includes the number of exposures and the reference time period is 1 day, then the first exposure data of the promotion information in the first time period refers to the number of exposures of the promotion information in one day.
[0039] The multiple times for resource transfer during the promotion of the promotion information can be set according to actual needs, such as being set by default by the promotion platform, for example, at 24:00 every day.
[0040] That is, whenever the resource transfer time is reached, the first exposure data of the promotion information in the first time period is determined. For example, if the current time reaches 24:00 every day, the promotion platform can determine the first exposure data of the day.
[0041] As an example, if the promotion platform includes an exposure data management server, the exposure data management platform can count the first exposure data in the first time period when it is determined that the current time has reached the resource transfer moment, and the resource value management server obtains the first exposure data from the exposure data management server.
[0042] Step 202: Based on the first exposure data, transfer a target resource value from the first user account corresponding to the promotion information to a second user account corresponding to the promotion platform, where the target resource value is determined based on the first exposure data.
[0043] The promotional information typically corresponds to a first user account, which can provide a reserved resource value required for delivering the promotional information. For example, the first user account can store at least a first reserved resource value. Of course, the total resource value in the first user account can be greater than the first reserved resource value, which is not limited in this embodiment of the present application.
[0044] In implementation, the promotion platform can determine a target resource value based on the first exposure data. For example, assuming the first exposure data includes the number of exposures, the first exposure data within the first time period can be directly determined as the target resource value. For another example, assuming a designated resource value is provided, the designated resource value refers to the resource value required to deliver a promotional message once. In this case, the target resource value can be obtained by multiplying the first exposure data within the first time period by the designated resource value.
[0045] The designated resource value may be set by the promoter of the promotion information, or may be set by default by the promotion platform. This embodiment of the present application does not limit this. For example, the designated resource value may be 1 or 2.
[0046] Afterwards, the promotion platform can transfer the target resource value from the first user account corresponding to the promotion information to the second user account, that is, transfer it to its own second user account. For example, if the target resource value is determined to be A, A will be transferred from the first user account to the second user account.
[0047] As an example, if the promotion platform includes a resource value management server, the resource value management server may determine a target resource value based on the first exposure data, and then transfer the target resource value from the first user account to the second user account.
[0048] Step 203: In response to the first reserved resource value being changed to a second reserved resource value, and the second reserved resource value being less than the first reserved resource value, the resource value is transferred from the second user account to the first user account, where the first reserved resource value and the second reserved resource value are, respectively, the resource value before the change and the resource value after the change pre-stored in the first user account for the promotion information.
[0049] The first reserved resource value can be set by the owner of the promotion information according to the promotion requirements of the promotion information. For example, assuming that the resource value required to promote the promotion information once is 1, if the promotion is to be carried out 100,000 times, the first reserved resource value is 100,000.
[0050] As an example, the first reserved resource value can usually be obtained from the order of the promotion information. For example, the promotion platform can receive the order sent by the terminal, that is, the owner of the promotion information can provide the order to the promotion platform through the terminal. In this way, the promotion platform can obtain the first reserved resource value from the order.
[0051] As an example, the order may also include but is not limited to the content of the promotional information, the first user account and other information.
[0052] In some embodiments, as Figure 3 As shown, due to some reasons, the owner of the promotion information may need to change the first reserved resource value in the order during the promotion process of the promotion information. In this embodiment of the present application, after each transfer operation of the target resource value is performed, it can be checked whether the first reserved resource value in the order of the promotion information has changed.
[0053] As an example, if the promotion platform includes a resource value management server and an order management server, the resource value management server in the promotion platform can send a query request to the order management server. This query request can be used to instruct the order management server to query whether the order has been updated and return the query result. For example, if the order has not been changed, the query result may include first indication information indicating that the order has not been changed. For another example, if the order has been changed, the query result may include second indication information indicating that the order has been changed. Furthermore, the query result may also include the changed second reserved resource value.
[0054] If the first reserved resource value is changed to a second reserved resource value, and the second reserved resource value is less than the first reserved resource value, it means that a certain resource value needs to be returned to the first user account. To this end, the resource value can be transferred from the second user account to the first user account.
[0055] As an example, the specific implementation of transferring resource values from the second user account to the first user account may include: determining a target total resource value before the current time, the target total resource value is determined based on first exposure data in at least one first time period before the current time, in response to the second reserved resource value being less than the target total resource value, determining a first excess resource value based on the target total resource value and the second reserved resource value, and transferring the first excess resource value from the second user account to the first user account.
[0056] In other words, the total amount of target resource values transferred from the first user account to the second user account before the current time can be determined, i.e., the total target resource value can be determined. If the total target resource value is greater than the second reserved resource value, it indicates that an excess amount of resources has been transferred. In this case, the promotion platform can determine a first excess resource value based on the total target resource value and the second reserved resource value, i.e., the amount of resources that have been transferred in excess.
[0057] As an example, based on the target total resource value and the second reserved resource value, the specific implementation of determining the first excess resource value may include: determining the difference between the target total resource value and the second reserved resource value, and determining the difference as the first excess resource value.
[0058] That is, the first excess resource value may be determined by the difference between the target total resource value and the second reserved resource value.
[0059] Then, the first excess resource value is transferred from the second user account to the first user account, that is, the first excess resource value is returned from the second user account to the first user account, for example, Figure 4 shown.
[0060] For example, assuming that the first reserved resource value is 100,000, the second reserved resource value is 70,000, and the total target resource value is 80,000, it means that an additional 10,000 resource value has been transferred from the first user account. At this time, the promotion platform can transfer 10,000 resource value from the second user account to the first user account.
[0061] In the above implementation, the promotion platform may terminate the promotion of the promotion information. That is, since the delivery requirement of the second reserved resource value has been reached after the above resource value transfer, the promotion platform may no longer promote the promotion information.
[0062] As another example, the specific implementation of transferring the resource value from the second user account to the first user account may include: determining a target total resource value before the current time, in response to the target total resource value being less than the second reserved resource value, determining a difference between the first reserved resource value and the second reserved resource value to obtain a second excess resource value, and transferring the second excess resource value from the second user account to the first user account.
[0063] That is, if the second reserved resource value is less than the first reserved resource value, the total target resource value transferred from the first user account to the second user account before the current time can be determined, that is, the total target resource value can be determined. In one possible implementation, the total target resource value may be less than the second reserved resource value.
[0064] If the target total resource value is less than the second reserved resource value, the resource value can be transferred from the second user account to the first user account at the current time. It's easy to understand that since the first reserved resource value is greater than the second reserved resource value, if the promotional information is delivered in the current manner, an excess of resource value will inevitably be transferred. For example, if the first reserved resource value is 100,000, the second reserved resource value is 70,000, and the target total resource value is 50,000, then after the promotional information delivery ends, an excess of 30,000 resource value will be transferred to the second user account.
[0065] In this embodiment, if the second reserved resource value is less than the first reserved resource value, and the total target resource value is less than the second reserved resource value, a second excess resource value can be determined at the current moment. For example, the difference between the first reserved resource value and the second reserved resource value can be determined to obtain the second excess resource value. The second excess resource value can then be transferred from the second user account to the first user account. For example, continuing with the above example, if the first reserved resource value is 100,000 and the second reserved resource value is 70,000, then 30,000 excess resources can be transferred from the second user account to the first user account.
[0066] Furthermore, the method further includes: returning to the operation of determining first exposure data of the promotion information within the first time period in response to the current time reaching the resource transfer moment. In response to the total promotion duration being equal to the total reserved duration of the promotion information, or in response to the total number of target resources being equal to the second reserved resource value, terminating the promotion of the promotion information, where the total promotion duration is the sum of at least one reference duration.
[0067] The total booking duration may be set by the user according to actual needs, or may be set by default by the promotion platform, which is not limited in the embodiment of the present application.
[0068] That is, after the promotion platform transfers the resource value from the second user account to the first user account, it can continue to obtain the first exposure value in the next first time period, such as Figure 5 As shown, based on the first exposure data, the target resource value corresponding to the next first time period is transferred from the first user account corresponding to the promotion information to the second user account corresponding to the promotion platform. This continues until the total promotion duration equals the total reserved duration of the promotion information, or, in response to the total target resource value equaling the second reserved resource value, the promotion of the promotion information is considered complete, at which point the promotion of the promotion information can be terminated.
[0069] As an example, after transferring the second excess resource value from the second user account to the first user account, the promotion platform continues to return to the above step 201 until the total promotion duration is equal to the total reservation duration of the promotion information, or, in response to the total target resource value being equal to the second reservation resource value, terminates the promotion of the promotion information.
[0070] For example, if the total target resource value is 50,000 and the second reserved resource value is 70,000, the promotion platform will transfer the 20,000 resource value from the second user account to the first user account, and then continue to promote the promotion information according to the original promotion strategy. At the next resource transfer moment, the promotion information will be determined. The first exposure data within a time period and subsequent operations will be performed.
[0071] It should be noted that the method provided in the embodiments of this application is applicable to scenarios where orders are modifiable. That is, in the contract, the promotion platform allows the owner of the promotion information to change the reserved resource values in the order at any time. Furthermore, before executing this embodiment, the promotion platform can determine the contract agreement of the promotion information to determine whether order modification is allowed. If it is determined that order modification is allowed, the above method is executed.
[0072] Furthermore, the above-mentioned transfer of resource values from the second user account to the first user account can be implemented by a separate server. For example, when the resource value management server determines that the first reserved resource value is changed to the second reserved resource value and the second reserved resource value is less than the first reserved resource value, it can notify the server, and then the server performs the operation of transferring the resource value from the second user account to the first user account.
[0073] As an example, before transferring resource values from the second user account to the first user account, the smart contract of the order can also be obtained. The smart contract includes a resource value transfer strategy. The resource value transfer strategy is used to indicate the strategy for transferring resource values from the second user account to the first user account. Afterwards, the resource value can be transferred from the second user account to the first user account according to the resource value transfer strategy in the smart contract.
[0074] The resource value transfer strategy can be set by the user according to actual needs, or it can be set by default by the promotion platform. This embodiment of the present application does not limit this.
[0075] For example, the resource value transfer strategy may include a strategy for how to determine the target resource value that needs to be transferred. For another example, the resource value transfer strategy may also include the specified resource value required for each exposure of the promotional information, so that the promotion platform can determine the target resource value that needs to be transferred based on the specified resource value.
[0076] As an example, one order may correspond to one smart contract, and the resource value transfer strategies in different smart contracts may be the same or different.
[0077] That is, when the promotion platform needs to transfer resource values from the second user account to the first user account, it can determine the target resource values that need to be transferred based on the resource value transfer strategy, thereby transferring the target resource values from the second user account to the first user account, thereby realizing the resource value return operation.
[0078] Furthermore, the promotion platform may also generate order change records and / or resource value transfer records, and upload the order change records and / or resource value transfer records to a designated blockchain for storage.
[0079] Among them, the designated blockchain can be selected according to actual needs, and the promotion platform can establish a communication connection with the designated blockchain.
[0080] That is, when an order change is detected, the promotion platform can generate an order change record and upload it to a designated blockchain for storage. This allows users to retrieve the order change record from the designated blockchain when they need to query it. Alternatively, after transferring resource values from a second user account to a first user account, the promotion platform can generate a resource value transfer record and upload it to a designated blockchain for storage, allowing users to query it. Alternatively, the promotion platform can generate both an order change record and a resource value transfer record, and upload both to a designated blockchain for information storage, allowing users to query it.
[0081] In an embodiment of the present application, in response to the current time reaching the resource transfer moment, the first exposure data of the promotion information within the first time period is determined, and based on the first exposure data, the target resource value is transferred from the first user account corresponding to the promotion information to the second user account corresponding to the promotion platform. If the first reserved resource value is changed to the second reserved resource value, it is necessary to determine whether the resource value has been transferred too much. If the second reserved resource value is less than the first reserved resource value, it means that there must be an over-transfer, so the resource value is transferred from the second user account to the first user account. In this way, in the process of resource value transfer, once the change of the first reserved resource value is determined, the resource value is immediately returned, avoiding the need to wait until the end of the promotion to re-transfer the resource value, increasing the way of resource value transfer and improving applicability.
[0082] Figure 6This is a schematic diagram of the structure of a resource value transfer device provided by an embodiment of the present application. The resource value transfer device can be implemented by software, hardware or a combination of both to become part or all of the promotion platform. Please refer to Figure 6 , the device comprises:
[0083] Determining module 610 is configured to determine, in response to the current time reaching a resource transfer moment, first exposure data of the promotional information within a first time period, where the resource transfer moment is one of multiple moments during the promotion of the promotional information, and the first time period is a time period before the current time and a reference time from the current time;
[0084] A first transfer module 620 is configured to transfer, based on the first exposure data, a target resource value from a first user account corresponding to the promotion information to a second user account corresponding to the promotion platform, the target resource value being determined based on the first exposure data;
[0085] The second transfer module 630 is configured to transfer the resource value from the second user account to the first user account in response to the first reserved resource value being changed to a second reserved resource value, where the second reserved resource value is less than the first reserved resource value, where the first reserved resource value and the second reserved resource value are respectively the resource value before the change and the resource value after the change pre-stored in the first user account for the promotion information.
[0086] In a possible implementation of the present application, the second transfer module 630 is configured to:
[0087] determining a target resource total value before a current time, where the target resource total value is determined based on first exposure data in at least one first time period before the current time;
[0088] In response to the second reserved resource value being less than the target total resource value, determining a first excess resource value based on the target total resource value and the second reserved resource value;
[0089] The first excess resource value is transferred from the second user account to the first user account.
[0090] In a possible implementation of the present application, the second transfer module 630 is configured to:
[0091] Determining a difference between the target total resource value and the second reserved resource value;
[0092] The difference is determined as the first excess resource value.
[0093] In a possible implementation of the present application, the second transfer module 630 is configured to:
[0094] In response to the target total resource value being less than the second reserved resource value, determining a difference between the first reserved resource value and the second reserved resource value to obtain a second excess resource value;
[0095] The second excess resource value is transferred from the second user account to the first user account.
[0096] In a possible implementation of the present application, the second transfer module 630 is further configured to:
[0097] Continuing to return to executing the operation of determining the first exposure data of the promotion information within the first time period in response to the current time reaching the resource transfer moment;
[0098] In response to the total promotion duration being equal to the total reserved duration of the promotion information, or in response to the total target resource value being equal to the second reserved resource value, the promotion of the promotion information is terminated, where the total promotion duration is the sum of at least one reference duration.
[0099] In a possible implementation of the present application, the second transfer module 630 is further configured to:
[0100] Generate order change records and / or resource value transfer records;
[0101] Upload the order change record and / or the resource value transfer record to the designated blockchain for storage.
[0102] In a possible implementation of the present application, the second transfer module 630 is further configured to:
[0103] Obtaining a smart contract for the order, the smart contract including a resource value transfer policy, the resource value transfer policy being used to indicate a policy for transferring resource values from the second user account to the first user account;
[0104] Transfer the resource value from the second user account to the first user account according to the resource value transfer policy in the smart contract.
[0105] In an embodiment of the present application, in response to the current time reaching the resource transfer moment, the first exposure data of the promotion information within the first time period is determined, and based on the first exposure data, the target resource value is transferred from the first user account corresponding to the promotion information to the second user account corresponding to the promotion platform. If the first reserved resource value is changed to the second reserved resource value, it is necessary to determine whether the resource value has been transferred too much. If the second reserved resource value is less than the first reserved resource value, it means that there must be an over-transfer, so the resource value is transferred from the second user account to the first user account. In this way, in the process of resource value transfer, once the change of the first reserved resource value is determined, the resource value is immediately returned, avoiding the need to wait until the end of the promotion to re-transfer the resource value, increasing the way of resource value transfer and improving applicability.
[0106] It should be noted that the resource value transfer device provided in the above embodiment only uses the division of the above functional modules as an example to illustrate the implementation of the resource value transfer method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the resource value transfer device provided in the above embodiment and the resource value transfer method embodiment are of the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0107] Figure 7 7 is a schematic diagram of the structure of a device provided in an embodiment of the present application. The device 700 includes a central processing unit (CPU) 701, a system memory 704 including a random access memory (RAM) 702 and a read-only memory (ROM) 703, and a system bus 705 connecting the system memory 704 and the central processing unit 701. The device 700 also includes a basic input / output system (I / O system) 706 that helps transfer information between various components within the computer, and a large-capacity storage device 707 for storing an operating system 713, application programs 714, and other program modules 715.
[0108] The basic input / output system 706 includes a display 708 for displaying information and an input device 709, such as a mouse and keyboard, for user input. Both the display 708 and the input device 709 are connected to the central processing unit 701 via an input / output controller 710 connected to the system bus 705. The basic input / output system 706 may also include an input / output controller 710 for receiving and processing input from a variety of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, the input / output controller 710 also provides output to a display screen, printer, or other types of output devices.
[0109] The mass storage device 707 is connected to the central processing unit 701 through a mass storage controller (not shown) connected to the system bus 705. The mass storage device 707 and its associated computer-readable media provide non-volatile storage for the device 700. That is, the mass storage device 707 may include computer-readable media (not shown) such as a hard disk or CD-ROM drive.
[0110] Without loss of generality, computer-readable media may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, Electrical Programmable Read Only Memory (EPROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other solid-state storage technologies, CD-ROM, DVD or other optical storage, tape cassettes, magnetic tape, disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media are not limited to the above-mentioned ones. The above-mentioned system memory 704 and mass storage device 707 can be collectively referred to as memory.
[0111] According to various embodiments of the present application, the device 700 may also be connected to a remote computer on a network such as the Internet for operation. That is, the device 700 may be connected to a network 712 via a network interface unit 711 connected to the system bus 705, or the network interface unit 711 may be used to connect to other types of networks or remote computer systems (not shown).
[0112] The memory also includes one or more programs, which are stored in the memory and configured to be executed by the CPU.
[0113] In some embodiments, a computer-readable storage medium is further provided, wherein the storage medium stores at least one instruction, at least one program, code set, or instruction set. The at least one instruction, at least one program, code set, or instruction set is loaded and executed by a processor to implement the resource value transfer method described in the above embodiments. For example, the computer-readable storage medium may be a ROM, RAM, CD-ROM, magnetic tape, floppy disk, or optical data storage device.
[0114] It is worth noting that the computer-readable storage medium mentioned in this application may be a non-volatile storage medium, in other words, a non-transitory storage medium.
[0115] It should be understood that all or part of the steps for implementing the above embodiments may be implemented using software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the steps may be implemented in the form of a computer program product. The computer program product may include one or more computer instructions. The computer instructions may be stored in the computer-readable storage medium.
[0116] That is, in some embodiments, a computer program product including instructions is further provided, which, when executed on a computer, enables the computer to execute the resource value transfer method described above.
[0117] The above description is an embodiment provided for this application and is not intended to limit this application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application should be included in the scope of protection of this application.
Claims
1. A method for transferring resource values, characterized in that: The method comprises: In response to the current time reaching a resource transfer moment, determining first exposure data of the promotional information within a first time period, where the resource transfer moment is one of multiple moments of resource transfer during the promotion of the promotional information, and the first time period is a time period before the current time and a reference time distance from the current time; Based on the first exposure data, transferring a target resource value from a first user account corresponding to the promotion information to a second user account corresponding to the promotion platform, the target resource value being determined based on the first exposure data; Each time a target resource value transfer operation is performed, querying whether the first reserved resource value in the order of the promotion information has changed; In response to the first reserved resource value being changed to a second reserved resource value, and the second reserved resource value being less than the first reserved resource value, determining a target total resource value before the current time, the target total resource value being determined based on first exposure data in at least one first time period before the current time; In response to the second reserved resource value being less than the target total resource value, determining a difference between the target total resource value and the second reserved resource value as a first excess resource value, and transferring the first excess resource value from the second user account to the first user account; In response to the target total resource value being less than the second reserved resource value, determining a difference between the first reserved resource value and the second reserved resource value as a second excess resource value, and transferring the second excess resource value from the second user account to the first user account; The first reserved resource value and the second reserved resource value are respectively the resource value before the change and the resource value after the change pre-stored in the first user account according to the promotion requirements of the promotion information.
2. The method according to claim 1, wherein The method further comprises: Continuing to return to executing the operation of determining the first exposure data of the promotion information in the first time period in response to the current time reaching the resource transfer moment; In response to the total promotion duration being equal to the total reserved duration of the promotion information, or in response to the total target resource value being equal to the second reserved resource value, the promotion of the promotion information is terminated, where the total promotion duration is the sum of at least one reference duration.
3. The method according to claim 1, wherein The method further comprises: Generate order change records and / or resource value transfer records; The order change record and / or the resource value transfer record are uploaded to a designated blockchain for storage.
4. The method according to claim 1, wherein The method further comprises: Obtaining a smart contract for the order, the smart contract including a resource value transfer policy, the resource value transfer policy being used to indicate a policy for transferring resource values from the second user account to the first user account; Transfer the resource value from the second user account to the first user account according to the resource value transfer policy in the smart contract.
5. A resource value transfer device, characterized in that: The device comprises: a determination module configured to determine, in response to a current time reaching a resource transfer moment, first exposure data of the promotional information within a first time period, wherein the resource transfer moment is one of multiple moments at which resource transfer occurs during the promotion of the promotional information, and the first time period is a time period before the current time and a reference time from the current time; a first transfer module configured to transfer, based on the first exposure data, a target resource value from a first user account corresponding to the promotion information to a second user account corresponding to the promotion platform, the target resource value being determined based on the first exposure data; a second transfer module configured to query whether a first reserved resource value in the order of the promotion information has changed each time a target resource value transfer operation is performed; in response to the first reserved resource value changing to a second reserved resource value, and the second reserved resource value being less than the first reserved resource value, determine a target resource total value before the current time, the target resource total value being determined based on first exposure data in at least one first time period before the current time; in response to the second reserved resource value being less than the target resource total value, determine a difference between the target resource total value and the second reserved resource value as a first excess resource value, and transfer the first excess resource value from the second user account to the first user account; and in response to the target resource total value being less than the second reserved resource value, determine a difference between the first reserved resource value and the second reserved resource value as a second excess resource value, and transfer the second excess resource value from the second user account to the first user account; wherein the first reserved resource value and the second reserved resource value are, respectively, the resource values before and after the change, pre-stored in the first user account based on the promotion requirements of the promotion information.
6. The device according to claim 5, characterized in that The second transfer module is further configured to: Continuing to return to executing the operation of determining the first exposure data of the promotion information in the first time period in response to the current time reaching the resource transfer moment; In response to the total promotion duration being equal to the total reserved duration of the promotion information, or in response to the total target resource value being equal to the second reserved resource value, the promotion of the promotion information is terminated, where the total promotion duration is the sum of at least one reference duration.
7. The device according to claim 5, characterized in that The second transfer module is further configured to: Generate order change records and / or resource value transfer records; The order change record and / or the resource value transfer record are uploaded to a designated blockchain for storage.
8. The device according to claim 5, wherein The second transfer module is further configured to: Obtaining a smart contract for the order, the smart contract including a resource value transfer policy, the resource value transfer policy being used to indicate a policy for transferring resource values from the second user account to the first user account; Transfer the resource value from the second user account to the first user account according to the resource value transfer policy in the smart contract.
9. A device, characterized in that The device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the resource value transfer method as described in any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the resource value transfer method as described in any one of claims 1 to 4.
11. A computer program product, characterized in that The computer program product comprises instructions, and when the instructions are executed on a computer, the computer is caused to execute the resource value transfer method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Method and device for determining resource values of promotion resources
CN110134857A
Resource acquisition method, device and equipment and storage medium
CN110276659A