CN111612520A - Resource processing method, device, server and storage medium - Google Patents

Resource processing method, device, server and storage medium Download PDF

Info

Publication number
CN111612520A
CN111612520A CN202010307404.0A CN202010307404A CN111612520A CN 111612520 A CN111612520 A CN 111612520A CN 202010307404 A CN202010307404 A CN 202010307404A CN 111612520 A CN111612520 A CN 111612520A
Authority
CN
China
Prior art keywords
resource allocation
virtual
virtual resource
account
resources
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010307404.0A
Other languages
Chinese (zh)
Inventor
李洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuba Co Ltd
Original Assignee
Wuba Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN202010307404.0A priority Critical patent/CN111612520A/en
Publication of CN111612520A publication Critical patent/CN111612520A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0236Incentive or reward received by requiring registration or ID from user
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0208Trade or exchange of goods or services in exchange for incentives or rewards
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0211Determining the effectiveness of discounts or incentives

Abstract

The invention discloses a resource processing method, a resource processing device, a server and a storage medium, wherein the method comprises the following steps: when a virtual resource allocation request sent by a target account for a target resource allocation event is received, acquiring a parameter N, the number M of times that the target account has participated in virtual resource allocation of the target resource allocation event and the remaining duration T of the virtual resource allocation validity period of the target resource allocation event, wherein N is a lower limit value of the number of times that the account needs to participate in virtual resource allocation when virtual resources in one account are converted into actual resources; according to M, T and N, calculating the probability P that the target account can be allocated to the virtual resource when participating in the virtual resource allocation at the M +1 th timeM+1And assigning a random number S to the target accountM+1(ii) a If SM+1≤PM+1Then, the number X of virtual resources that can be allocated to the target account when participating in the virtual resource allocation at the M +1 th time is determinedM+1(ii) a Assigning X to target accountM+1A number of virtual resources.

Description

Resource processing method, device, server and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a resource processing method, an apparatus, a server, and a storage medium.
Background
With the development of network technology, network service providers often allocate some virtual resources to users to improve the liveness and stickiness of users. In the prior art, most of the methods for providing virtual resources for users by network service providers are distributed according to the first-come first-obtained principle, and users participating later cannot obtain the virtual resources provided by the network service providers, so that the resource distribution efficiency in the whole virtual resource distribution process is low.
Disclosure of Invention
The embodiment of the invention provides a resource processing method, a resource processing device, a server and a storage medium, and aims to solve the technical problem of low resource allocation efficiency in the prior art.
According to a first aspect of the present invention, a resource processing method is disclosed, the method comprising:
when a virtual resource allocation request sent by a target account for a target resource allocation event is received, acquiring a parameter N, the number M of times that the target account has participated in virtual resource allocation of the target resource allocation event, and a remaining duration T of a virtual resource allocation validity period of the target resource allocation event, wherein N is a lower limit value of the number of times that the account needs to participate in virtual resource allocation when virtual resources in one account are converted into actual resources;
according to the M, T and the N, calculating the probability P that the target account can be allocated to the virtual resource when participating in the virtual resource allocation at the M +1 th timeM+1And assigning a random number S to said target accountM+1Wherein said SM+1A random number, S, corresponding to the target account in the M +1 th participation in the virtual resource allocationM+1∈[0,1];
If SM+1≤PM+1Determining the number X of virtual resources which can be allocated to the target account when participating in virtual resource allocation at the M +1 th timeM+1
Assigning the X to the target accountM+1A number of virtual resources.
Optionally, as an embodiment, the calculating, according to the M, T and the N, a probability P that the target account can be allocated to the virtual resource when participating in the virtual resource allocation at the M +1 th timeM+1The method comprises the following steps:
calculating the probability P that the target account can be allocated to the virtual resource when participating in the virtual resource allocation at the M +1 th timeM+1=(N-M)/T。
Alternatively,as an embodiment, the determining the number X of virtual resources that the target account can allocate to when participating in the virtual resource allocation at the M +1 th timeM+1The method comprises the following steps:
acquiring a virtual resource value interval corresponding to the M +1 th participation of the account in virtual resource allocation from a preset relation table, wherein a plurality of mapping relations are recorded in the preset relation table, and each mapping relation comprises the corresponding relation between the number of times of participation of the account in virtual resource allocation and the virtual resource value interval;
randomly selecting a value from the obtained virtual resource value interval, and determining the selected value as the number X of the virtual resources which can be allocated to the target account when the target account participates in the virtual resource allocation at the M +1 th timeM+1
Optionally, as an embodiment, the X is allocated to the target accountM+1After the step of counting the number of virtual resources, further comprising:
determining whether the number of times that the target account has participated in virtual resource allocation reaches N-1;
if the number of times that the target account participates in virtual resource allocation reaches N-1, calculating the number X of virtual resources which can be allocated to the target account when the target account participates in virtual resource allocation for the Nth timeN
If X1+,…,+XM+1+XNAnd if the number of the virtual resources is more than or equal to Y, calculating the probability Z that the target account can convert the distributed virtual resources into actual resources after participating in the virtual resource distribution for N times, and distributing a random number Q to the target account, wherein X isiI is more than or equal to 1 and less than or equal to M +1 for the number of virtual resources allocated to the target account when the target account participates in the virtual resource allocation for the ith time, Y is the lower limit value of the number of virtual resources in the account when the virtual resources in one account can be converted into actual resources, Q is a random number corresponding to the target account after participating in the virtual resource allocation for the N times, and Q ∈ [0,1];
And if Q is less than or equal to Z, converting the virtual resources obtained by the allocation in the target account into actual resources after the target account participates in the virtual resource allocation for N times.
Optionally, as an embodiment, the calculating a probability Z that the target account can convert the allocated virtual resource into an actual resource after participating in the virtual resource allocation for N times includes:
acquiring the number R of first-stage candidate accounts participating in the target resource allocation event and the budget investment total S of actual resources; on the day that the target account participates in virtual resource allocation for the Nth time, the frequency that the first-stage candidate account already participates in virtual resource allocation reaches N, and the quantity of the allocated virtual resources reaches Y;
according to the R, S and Y, calculating the probability Z that the target account can convert the allocated virtual resources into actual resources after participating in the virtual resource allocation for N times, wherein the probability Z is S/(R Y).
Optionally, as an embodiment, the method further includes:
determining a second level candidate account participating in the target resource allocation event; the second-level candidate account is an account which can convert the virtual resources into actual resources on the day when the target account participates in virtual resource allocation for the Nth time;
and if the actual resources corresponding to the virtual resource sum of the second-level candidate account exceed Y, intercepting the virtual resource conversion exceeding Y.
Optionally, as an embodiment, the converting, after the target account participates in virtual resource allocation for N times, the virtual resource allocated in the target account into an actual resource includes:
if X1+,…,+XM+1+XN>Y, when the target account actually participates in the Nth virtual resource allocation, allocating Y- (X) to the target account1+,…,+XM+1) A number of virtual resources;
and converting the virtual resources allocated by the target account into actual resources.
Optionally, as an embodiment, the target resource allocation event is an APP operation event, the virtual resource is a virtual prize in the APP operation event, the virtual prize includes a red packet or a score, the actual resource is an actual prize in the APP operation event, and the actual prize includes cash or a real object.
According to a second aspect of the present invention, there is disclosed a resource processing apparatus, the apparatus comprising:
a first obtaining module, configured to, when a virtual resource allocation request sent by a target account for a target resource allocation event is received, obtain a parameter N, a number M of times that the target account has participated in virtual resource allocation of the target resource allocation event, and a remaining duration T of a virtual resource allocation validity period of the target resource allocation event, where N is a lower limit of the number of times that the account needs to participate in virtual resource allocation when virtual resources in one account are converted into actual resources;
a first calculating module, configured to calculate, according to the M, T and the N, a probability P that the virtual resource can be allocated to the target account when participating in virtual resource allocation for the M +1 th timeM+1
A first allocation module, configured to allocate a random number S to the target accountM+1Wherein said SM+1A random number, S, corresponding to the target account in the M +1 th participation in the virtual resource allocationM+1∈[0,1];
A first determination module for determining SM+1≤PM+1Determining the number X of virtual resources which can be allocated to the target account when participating in the virtual resource allocation at the M +1 th timeM+1
A second allocating module for allocating the X to the target accountM+1A number of virtual resources.
Optionally, as an embodiment, the first computing module includes:
a first calculation submodule, configured to calculate a probability P that the target account can be allocated to a virtual resource when participating in virtual resource allocation for the (M + 1) th timeM+1=(N-M)/T。
Optionally, as an embodiment, the first determining module includes:
a first acquisition submodule for obtaining SM+1≤PM+1In the case ofAcquiring a virtual resource value interval corresponding to the M +1 th participation of the account in virtual resource allocation from a preset relation table, wherein a plurality of mapping relations are recorded in the preset relation table, and each mapping relation comprises the corresponding relation between the number of times of participation of the account in virtual resource allocation and the virtual resource value interval;
a determining submodule, configured to randomly select a value from the obtained virtual resource value interval, and determine the selected value as the number X of virtual resources that can be allocated to the target account when participating in virtual resource allocation for the (M + 1) th timeM+1
Optionally, as an embodiment, the apparatus further includes:
a second determining module for allocating the X to the target account at the second allocating moduleM+1After the number of virtual resources is counted, determining whether the number of times that the target account has participated in virtual resource allocation reaches N-1;
a second calculating module, configured to calculate, when the number of times that the target account has participated in virtual resource allocation reaches N-1, a virtual resource number X that can be allocated to the target account when participating in virtual resource allocation for the nth timeN
A third calculation module for calculating at X1+,…,+XM+1+XNIn the case of Y or more, calculating the probability Z that the target account can convert the allocated virtual resources into actual resources after participating in the virtual resource allocation for N times, wherein X isiThe number of the virtual resources allocated to the target account in the ith participation of the virtual resource allocation is more than or equal to 1 and less than or equal to M +1, and Y is the lower limit value of the number of the virtual resources in the account when the virtual resources in one account can be converted into actual resources;
a third allocation module, configured to allocate a random number Q to the target account, where Q is a random number corresponding to the target account after participating in virtual resource allocation for N times, and Q belongs to [0,1 ];
and the conversion module is used for converting the virtual resources obtained by the allocation in the target account into actual resources after the target account participates in the virtual resource allocation for N times under the condition that Q is less than or equal to Z.
Optionally, as an embodiment, the third computing module includes:
a second acquisition submodule for acquiring at X1+,…,+XM+1+XNUnder the condition that the number of the first-level candidate accounts participating in the target resource allocation event is larger than or equal to Y, acquiring the number R of the first-level candidate accounts and the budget investment total amount S of the actual resources; on the day that the target account participates in virtual resource allocation for the Nth time, the frequency that the first-stage candidate account already participates in virtual resource allocation reaches N, and the quantity of the allocated virtual resources reaches Y;
and the second calculation submodule is used for calculating the probability Z (S/(R) Y) that the target account can convert the virtual resources obtained by allocation into the actual resources after participating in the virtual resource allocation for N times according to the R, S and the Y.
Optionally, as an embodiment, the apparatus further includes:
a third determination module for determining a second level candidate account participating in the target resource allocation event; the second-level candidate account is an account which can convert the virtual resources into actual resources on the day when the target account participates in virtual resource allocation for the Nth time;
and the intercepting module is used for intercepting the virtual resource conversion exceeding Y under the condition that the actual resource corresponding to the virtual resource sum of the second-level candidate account exceeds Y.
Optionally, as an embodiment, the conversion module includes:
an allocation submodule for allocating at X1+,…,+XM+1+XN>Y, when the target account actually participates in the Nth virtual resource allocation, allocating Y- (X) to the target account1+,…,+XM+1) A number of virtual resources;
and the conversion sub-module is used for converting the virtual resources allocated by the target account into actual resources.
Optionally, as an embodiment, the target resource allocation event is an APP operation event, the virtual resource is a virtual prize in the APP operation event, the virtual prize includes a red packet or a score, the actual resource is an actual prize in the APP operation event, and the actual prize includes cash or a real object.
According to a third aspect of the present invention, there is disclosed a server comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the resource handling method of the first aspect.
According to a fourth aspect of the present invention, a computer readable storage medium is disclosed, having a computer program stored thereon, which, when being executed by a processor, carries out the steps of the resource handling method of the first aspect.
In the embodiment of the invention, when receiving the virtual resource allocation request sent by the target account, the virtual resources can be allocated to the target account according to the lower limit value N of the number of times that the account needs to participate in virtual resource allocation when the virtual resources in one account can be converted into actual resources, the number M of times that the target account already participates in virtual resource allocation and the remaining duration T of the virtual resource allocation validity period, so that the probability of acquiring the virtual resources is available for the user to participate in allocation at any time within the virtual resource allocation validity period, thereby improving the resource allocation efficiency.
Drawings
FIG. 1 is a flow diagram of a resource processing method of one embodiment of the invention;
FIG. 2 is a flow diagram of a resource handling method of another embodiment of the invention;
FIG. 3 is a diagram of an application scenario of a resource handling method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a resource processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
With the development of network technology, network service providers often allocate some virtual resources to users to improve the liveness and stickiness of users. In the prior art, most of the methods for providing virtual resources for users by network service providers are distributed according to the first-come first-obtained principle, and users participating later cannot obtain the virtual resources provided by the network service providers, so that the resource distribution efficiency in the whole virtual resource distribution process is low.
In order to solve the above technical problem, embodiments of the present invention provide a resource processing method, device, server, and storage medium.
For ease of understanding, some concepts involved in embodiments of the present invention will be described first below.
The target resource allocation event may include two phases: the virtual resource allocation phase (also referred to as the "allocation phase") and the virtual resource conversion to actual resource phase (also referred to as the "extraction phase").
For an account participating in a target resource allocation event, the account firstly enters a virtual resource allocation stage, whether the account is qualified for being allocated with virtual resources or not is mainly calculated in the virtual resource allocation stage, and if the account is qualified for being allocated with the virtual resources, a certain amount of virtual resources are allocated into the account; if the number of times that the account participates in virtual resource allocation in the virtual resource allocation stage reaches a certain number (denoted by "N" in the embodiment of the present invention), and the cumulative number of virtual resources in the account reaches a certain numerical value (denoted by "Y" in the embodiment of the present invention), the account may enter a stage of converting virtual resources into actual resources; in the stage of converting the virtual resources into the actual resources, whether the account is qualified for converting the virtual resources in the account into the actual resources is mainly calculated, and if the account is qualified for converting the virtual resources in the account into the actual resources, the virtual resources in the account are converted into the actual resources.
Next, a resource processing method provided in an embodiment of the present invention is described.
The virtual resource processing method in the embodiment shown in fig. 1 describes a virtual resource allocation phase of a target resource allocation event, by taking virtual resource allocation of one account as an example; the virtual resource processing method in the embodiment shown in fig. 2 also takes the example of converting a virtual resource of one account into an actual resource, and describes the stage of converting a virtual resource of a target resource allocation event into an actual resource.
Fig. 1 is a flowchart of a resource processing method according to an embodiment of the present invention, which is executed by a server, as shown in fig. 1, and the method may include the following steps: step 101, step 102, step 103 and step 104, wherein,
in step 101, when a virtual resource allocation request sent by a target account for a target resource allocation event is received, a parameter N, a number M of times that the target account has participated in virtual resource allocation of the target resource allocation event, and a remaining duration T of a virtual resource allocation validity period of the target resource allocation event are obtained, where N is a lower limit value of the number of times that the account needs to participate in virtual resource allocation when virtual resources in one account are converted into actual resources.
In the embodiment of the present invention, an account can enter a stage of converting virtual resources from a virtual resource allocation stage into actual resources, and two preconditions need to be satisfied: one precondition is that the number of times of the account participating in virtual resource allocation reaches N times, and the other precondition is that the number of virtual resources accumulatively allocated to the account in the virtual resource allocation stage reaches a value Y, that is, the account needs to participate in virtual resource allocation at least N times, and the number of virtual resources accumulated in the account is at least Y, so that the virtual resource allocation stage can enter the virtual resource conversion stage into the actual resource stage.
In the embodiment of the invention, in consideration of timeliness of the target resource allocation event, the virtual resource allocation stage is configured with a validity period, so that the account can be allocated with the virtual resource only when participating in virtual resource allocation in the validity period, and cannot be allocated with the virtual resource when participating outside the validity period.
In the embodiment of the present invention, M is the number of times that the target account has participated in virtual resource allocation in the virtual resource allocation stage of the target resource allocation event.
In the embodiment of the present invention, the purpose of obtaining the parameters N, M and T is: whether the target account qualifies for allocated virtual resources is calculated based on N, M and T, and the specific calculation process is shown in step 102.
In step 102, according to M, T and N, the probability P that the target account can be allocated to the virtual resource when participating in the virtual resource allocation at the M +1 th time is calculatedM+1And assigning a random number S to the target accountM+1Wherein S isM+1A random number, S, corresponding to the target account in the M +1 th participation in the virtual resource allocationM+1∈[0,1]。
In the examples of the present invention, PM+1The larger the value of (A), SM+1Falls into (0, P)M+1) The greater the probability of (a) indicates the greater the probability that the target account may be allocated to a virtual resource.
In an embodiment of the present invention, the step 102 may specifically include the following steps:
calculating the probability P that the target account can be allocated to the virtual resource when participating in the virtual resource allocation at the M +1 th timeM+1=(N-M)/T。
In one example, if N is set to be 3 and the validity period of the virtual resource allocation phase is set to be 7, then when the target account participates in virtual resource allocation on day 1 for the first time, M may be obtained to be 0, T may be obtained to be 7, and P is calculated to be obtained1(3-0)/7-3/7-0.428; when the target account participates in the virtual resource allocation 2 times on day 2, M may be obtained as 1, T may be obtained as 6, and P is calculated2(3-1)/6-1/3-0.333; target account on day 3When the 3 rd time participates in the virtual resource allocation, M can be obtained as 2, T can be obtained as 5, and P is obtained through calculation3=(3-2)/5=1/5=0.2。
Therefore, through the above calculation mode, for the account participating in virtual resource allocation in the early stage, the probability of entering the stage of converting virtual resources into actual resources is naturally decreased along with time, but after the account participates for multiple times, the account can enter the stage of converting virtual resources into actual resources; for the account participating in the virtual resource allocation later, as long as the remaining time is enough in the validity period of the virtual resource allocation stage, the virtual resource is still obtained with probability, and finally the virtual resource is converted into the actual resource stage.
In step 103, if SM+1≤PM+1Then, the number X of virtual resources that can be allocated to the target account when participating in the virtual resource allocation at the M +1 th time is determinedM+1
In the embodiment of the invention, if SM+1≤PM+1Then, it indicates that the target account is qualified for being allocated with virtual resources, and at this time, further calculates how much virtual resources are allocated for the target account.
In an embodiment of the present invention, the step 103 may specifically include the following steps (not shown in the figure): steps 1031 and 1032, wherein,
in step 1031, a virtual resource value interval corresponding to the M +1 th participation of the account in virtual resource allocation is obtained from a preset relationship table, wherein a plurality of mapping relationships are recorded in the preset relationship table, and each mapping relationship includes a corresponding relationship between the number of times the account participates in virtual resource allocation and the virtual resource value interval.
In an example, as shown in table 1, a preset relationship table is recorded, and the relationship table has 3 mapping relationships, which are respectively: the mapping relation comprises a mapping relation 1, a mapping relation 2 and a mapping relation 3, wherein the mapping relation 1 comprises a corresponding relation between account participation 1 time of virtual resource allocation and a virtual resource value interval [0,50], the mapping relation 2 comprises a corresponding relation between account participation 2 times of virtual resource allocation and a virtual resource value interval [0,30], and the mapping relation 3 comprises a corresponding relation between account participation 3 times of virtual resource allocation and a virtual resource value interval [0,10 ].
Figure BDA0002456266250000091
Figure BDA0002456266250000101
TABLE 1
In step 1032, a value is randomly selected from the obtained virtual resource value interval, and the selected value is determined as the number X of virtual resources that can be allocated to the target account in the (M + 1) th participation in virtual resource allocationM+1
In step 104, X is assigned to the target accountM+1A number of virtual resources.
As can be seen from the foregoing embodiments, in this embodiment, when receiving a virtual resource allocation request sent by a target account, virtual resources may be allocated to the target account according to a lower limit N of the number of times that the account needs to participate in virtual resource allocation when virtual resources in one account are converted into actual resources, the number M of times that the target account has participated in virtual resource allocation, and a remaining duration T of a virtual resource allocation validity period, so that as long as the virtual resource allocation validity period is within, a user has a probability of acquiring virtual resources at any time when participating in allocation, thereby improving resource allocation efficiency.
Fig. 2 is a flowchart of a resource processing method according to another embodiment of the present invention, which is executed by a server, as shown in fig. 2, and the method may include the following steps: step 201, step 202, step 203, step 204, step 205, step 206 and step 207, wherein,
in step 201, when receiving a virtual resource allocation request sent by a target account for a target resource allocation event, a parameter N, a number M of times that the target account has participated in virtual resource allocation of the target resource allocation event, and a remaining duration T of a virtual resource allocation validity period of the target resource allocation event are obtained, where N is a lower limit value of the number of times that the account needs to participate in virtual resource allocation when virtual resources in one account are converted into actual resources.
In step 202, according to M, T and N, the probability P that the target account can be allocated to the virtual resource when participating in the virtual resource allocation at the M +1 th time is calculatedM+1And assigning a random number S to the target accountM+1Wherein S isM+1A random number, S, corresponding to the target account in the M +1 th participation in the virtual resource allocationM+1∈[0,1]。
In step 203, if S isM+1≤PM+1Then, the number X of virtual resources that can be allocated to the target account when participating in the virtual resource allocation at the M +1 th time is determinedM+1
In step 204, X is assigned to the target accountM+1A number of virtual resources.
Steps 201 to 204 in the embodiment of the present invention are similar to steps 101 to 104 in the embodiment shown in fig. 1, and are not repeated here, for details, please refer to the contents in the embodiment shown in fig. 1.
In step 205, it is determined whether the number of times that the target account has participated in the virtual resource allocation reaches N-1, and if yes, the number X of virtual resources that can be allocated to the target account in the nth participation in the virtual resource allocation is calculatedN
In the embodiment of the invention, whether the number of times that the target account has participated in the virtual resource allocation reaches N-1 or not can be determined by comparing the sizes of M +1 and N-1, and if M +1 is equal to N-1, the number of times that the target account has participated in the virtual resource allocation reaches N-1 is determined.
In the embodiment of the present invention, a precondition that an account can enter a virtual resource conversion stage from a virtual resource allocation stage is as follows: the number of times of the account participating in the virtual resource allocation reaches N times, so that when the number of times of the target account participating in the virtual resource allocation stage reaches N-1 times, whether the target account can enter the stage of converting the virtual resource into the actual resource can be estimated when the target account participates in the virtual resource allocation next time (namely, Nth time).
In the embodiment of the invention, whether the virtual resource can be accessed to be converted into the actual resource or not is estimated when the target account participates in the virtual resource allocation next time (namely Nth time)In the stage, the virtual resource quantity X which can be distributed when the target account participates in the virtual resource distribution for the Nth time can be simulated and calculatedN,XNIs calculated by the method of (1) andM+1the calculation is similar; then allocating the virtual resource quantity X allocated to the target account from the 1 st time to the M +1 st time when participating in the virtual resource allocation1,…,XM+1(number of virtual resources actually allocated in virtual resource allocation stage) and number of virtual resources X obtained by simulation calculationNAnd (actually, no allocation is performed), if the summation result reaches Y, the target account meets two preconditions of entering the virtual resource to actual resource stage from the virtual resource allocation stage, that is, the target account has the qualification of entering the virtual resource to actual resource stage after participating in the virtual resource allocation for N times.
In step 206, if X1+,…,+XM+1+XNAnd if the number of the virtual resources is more than or equal to Y, calculating the probability Z that the target account can convert the distributed virtual resources into actual resources after participating in the virtual resource distribution for N times, and distributing a random number Q to the target account, wherein X isiThe number of virtual resources allocated to the target account when participating in the virtual resource allocation for the ith time is more than or equal to 1 and less than or equal to M +1, Y is the lower limit value of the number of virtual resources in the account when the virtual resources in one account can be converted into actual resources, Q is a random number corresponding to the target account after participating in the virtual resource allocation for N times, Q ∈ [0,1]。
In the examples of the present invention, if M +1 is N-1 and X is1+,…,+XM+1+XNAnd if the number of the virtual resources is more than or equal to Y, indicating that the target account has the qualification of entering the stage of converting the virtual resources into the actual resources after participating in the virtual resource allocation for N times. However, it should be noted that an account qualifies to enter a stage of converting virtual resources into actual resources, and does not represent that the account qualifies to convert virtual resources in the account into actual resources, that is, after the account enters the stage of converting virtual resources into actual resources, it needs to further determine whether the account qualifies to convert virtual resources in the account into actual resources.
In the embodiment of the invention, when determining whether an account is qualified for converting virtual resources in the account into actual resources, the account can be determined by calculating Z and comparing the sizes of Z and Q, and if Q is less than or equal to Z, the account is qualified for converting virtual resources in the account into actual resources.
In the embodiment of the present invention, the larger the value of Z is, the larger the probability that Q falls into (0, Z) is, which indicates that the probability that virtual resources allocated in the target account can be converted into actual resources is also larger.
In an embodiment of the present invention, the step 206 may specifically include the following steps (not shown in the figure): a step 2061 and a step 2062, wherein,
in step 2061, acquiring the number R of first-stage candidate accounts participating in the target resource allocation event and the budget investment total S of the actual resource; on the day that the target account participates in virtual resource allocation for the Nth time, the number of times that the first-level candidate account participates in virtual resource allocation reaches N, and the number of virtual resources obtained through allocation reaches Y.
In the embodiment of the present invention, the first-level candidate account refers to an account qualified for entering a stage of converting a virtual resource into an actual resource.
In step 2062, according to R, S and Y, the probability Z/(R × Y) that the target account can convert the allocated virtual resource into the actual resource after participating in the virtual resource allocation N times is calculated.
In step 207, if Q is less than or equal to Z, the virtual resources allocated in the target account are converted into actual resources after the target account participates in the virtual resource allocation for N times.
In the embodiment of the invention, if Q is less than or equal to Z, the target account is qualified for converting virtual resources in the account into actual resources, at the moment, the number of virtual resources which are distributed after the target account actually participates in virtual resource distribution for N times is further calculated, and then the virtual resources distributed in the account are converted into the actual resources.
In an embodiment of the present invention, the step 207 may specifically include the following steps (not shown in the figure): step 2071 and step 2072, wherein,
in step 2071, if X1+,…,+XM+1+XN>Y, allocating Y- (X) to the target account when the target account actually participates in the Nth virtual resource allocation1+,…,+XM+1) A number of virtual resources.
If X is1+,…,+XM+1+XN>Y, indicates if according to the prediction (i.e. X)N) In this case, the actual resources converted when the plurality of accounts perform resource conversion may exceed the budget investment total amount of the actual resources.
In view of the above problem, in the embodiment of the present invention, when the target user participates in the nth virtual resource allocation, the estimation result (i.e. X) is not determinedN) Virtual resources are allocated to the target account, but instead according to Y- (X)1+,…,+XM+1) And allocating virtual resources to the target account, so that the virtual resources finally allocated to a single account are controlled within a certain range, and the converted actual resources are ensured within a certain range.
In step 2072, the virtual resources allocated to the target account are converted into actual resources.
In the embodiment of the invention, after the target account participates in the virtual resource allocation for N times, the number of the virtual resources allocated in the account is Y, and the virtual resources with the number of Y are converted into the actual resources.
As can be seen from the foregoing embodiments, in this embodiment, when receiving a virtual resource allocation request sent by a target account, virtual resources may be allocated to the target account according to a lower limit N of the number of times that the account needs to participate in virtual resource allocation when virtual resources in one account are converted into actual resources, the number M of times that the target account has participated in virtual resource allocation, and a remaining duration T of a virtual resource allocation validity period, so that as long as the virtual resource allocation validity period is within, a user has a probability of acquiring virtual resources at any time when participating in allocation, thereby improving resource allocation efficiency. In addition, when the virtual resource in the target account is converted into the actual resource, the convertible actual resource can be ensured not to exceed the budget total investment amount of the actual resource.
In another embodiment provided by the present invention, virtual resource conversion exceeding the budget total amount can be intercepted to avoid exceeding the budget investment total amount of the actual resource, at this time, the resource processing method in the embodiment of the present invention may further add the following steps on the basis of the embodiment shown in fig. 2:
determining second-level candidate accounts participating in the target resource allocation event; the second-level candidate account is an account which can convert the virtual resources into actual resources on the day when the target account participates in virtual resource allocation for the Nth time; and if the actual resources corresponding to the virtual resource sum of the second-level candidate account exceed Y, intercepting the virtual resource conversion exceeding Y.
In the embodiment of the present invention, the second-level candidate account refers to an account qualified to convert a virtual resource in the account into an actual resource.
For the convenience of understanding, the accounts participating in the target resource allocation event are described with reference to the scenario diagram shown in fig. 3, where, as shown in fig. 3, accounts 1 to D are full accounts participating in the virtual resource allocation phase of the target resource allocation event, accounts 1 to 4 are accounts eligible to enter the virtual resource conversion phase (i.e., first-level candidate accounts), and accounts 1 to 3 are accounts eligible to convert the virtual resource into an actual resource (i.e., second-level candidate accounts).
In a specific application scenario provided by the present invention, the resource processing method provided by the present invention may be applied to an APP operation scenario, in this case, the target resource allocation event may be an APP operation event, the virtual resource may be a virtual prize in the APP operation event, the virtual prize may include a red packet or a score, the actual resource may be an actual prize in the APP operation event, and the actual prize may include cash or a real object.
In the embodiment of the present invention, the APP operation event may include two stages: the method comprises an allocation stage and an extraction stage, wherein the allocation stage refers to a stage of an allocable reward period, in the stage, an account participates in allocation and can obtain rewards (namely virtual resources), the rewards can be in the forms of points, red packages and the like, when a certain numerical value is reached, other physical or cash rewards (namely actual resources) can be exchanged, and the allocation stage is generally divided into a plurality of rounds; the extraction stage refers to another stage of the assignable reward period, the obtained reward can be exchanged by real objects, cash and the like, and the extraction stage is generally entered after the reward participates in assignment for many times; the participation distribution means that when the account actively participates in the operation activity, the reward distribution is acquired with a certain probability; obtaining the reward refers to judging that the account successfully obtains the reward through probability calculation after the account participates in distribution.
Therefore, the resource processing method provided by the invention is applied to the APP operation scene, and the following effects can be realized: in the operation period, the probability that the user is rewarded when the user participates in the distribution at any time is high, so that the user can perceive relative fairness; extractable rewards do not exceed budget limits; from the perspective of all users, the total reward value distributed by all users is far larger than the invested budget amount, so that the limited economic investment is amplified by multiple times, and the participation effect of the users in operation is improved.
Fig. 4 is a schematic structural diagram of a resource processing apparatus according to an embodiment of the present invention, the apparatus is applied to a server, and as shown in fig. 4, the resource processing apparatus 400 may include: a first acquisition module 401, a first calculation module 402, a first assignment module 403, a first determination module 404, and a second assignment module 405, wherein,
a first obtaining module 401, configured to, when receiving a virtual resource allocation request sent by a target account for a target resource allocation event, obtain a parameter N, a number M of times that the target account has participated in virtual resource allocation of the target resource allocation event, and a remaining duration T of a virtual resource allocation validity period of the target resource allocation event, where N is a lower limit of the number of times that the account needs to participate in virtual resource allocation when a virtual resource in one account is converted into an actual resource;
a first calculation module 402, configured to calculate, according to the M, T and the N, that the target account is assignable to when participating in the virtual resource allocation at the M +1 th timeProbability of virtual resource PM+1
A first allocating module 403, configured to allocate a random number S to the target accountM+1Wherein said SM+1A random number, S, corresponding to the target account in the M +1 th participation in the virtual resource allocationM+1∈[0,1];
A first determining module 404 for determining SM+1≤PM+1Determining the number X of virtual resources which can be allocated to the target account when participating in the virtual resource allocation at the M +1 th timeM+1
A second allocating module 405, configured to allocate the X to the target accountM+1A number of virtual resources.
As can be seen from the foregoing embodiments, in this embodiment, when receiving a virtual resource allocation request sent by a target account, virtual resources may be allocated to the target account according to a lower limit N of the number of times that the account needs to participate in virtual resource allocation when virtual resources in one account are converted into actual resources, the number M of times that the target account has participated in virtual resource allocation, and a remaining duration T of a virtual resource allocation validity period, so that as long as the virtual resource allocation validity period is within, a user has a probability of acquiring virtual resources at any time when participating in allocation, thereby improving resource allocation efficiency.
Optionally, as an embodiment, the first calculating module 402 may include:
a first calculation submodule, configured to calculate a probability P that the target account can be allocated to a virtual resource when participating in virtual resource allocation for the (M + 1) th timeM+1=(N-M)/T。
Optionally, as an embodiment, the first determining module 404 may include:
a first acquisition submodule for obtaining SM+1≤PM+1Under the condition, acquiring a virtual resource value interval corresponding to the M +1 th participation of the account in the virtual resource allocation from a preset relation table, wherein a plurality of mapping relations are recorded in the preset relation table, and each mapping relation comprises the corresponding relation between the number of times of participation of the account in the virtual resource allocation and the virtual resource value interval;
a determining submodule, configured to randomly select a value from the obtained virtual resource value interval, and determine the selected value as the number X of virtual resources that can be allocated to the target account when participating in virtual resource allocation for the (M + 1) th timeM+1
Optionally, as an embodiment, the resource processing apparatus 400 may further include:
a second determining module, configured to assign the X to the target account at the second assigning module 405M+1After the number of virtual resources is counted, determining whether the number of times that the target account has participated in virtual resource allocation reaches N-1;
a second calculating module, configured to calculate, when the number of times that the target account has participated in virtual resource allocation reaches N-1, a virtual resource number X that can be allocated to the target account when participating in virtual resource allocation for the nth timeN
A third calculation module for calculating at X1+,…,+XM+1+XNIn the case of Y or more, calculating the probability Z that the target account can convert the allocated virtual resources into actual resources after participating in the virtual resource allocation for N times, wherein X isiThe number of the virtual resources allocated to the target account in the ith participation of the virtual resource allocation is more than or equal to 1 and less than or equal to M +1, and Y is the lower limit value of the number of the virtual resources in the account when the virtual resources in one account can be converted into actual resources;
a third allocation module, configured to allocate a random number Q to the target account, where Q is a random number corresponding to the target account after participating in virtual resource allocation for N times, and Q belongs to [0,1 ];
and the conversion module is used for converting the virtual resources obtained by the allocation in the target account into actual resources after the target account participates in the virtual resource allocation for N times under the condition that Q is less than or equal to Z.
Optionally, as an embodiment, the third computing module may include:
a second acquisition submodule for acquiring at X1+,…,+XM+1+XNUnder the condition that the number of the first-level candidate accounts participating in the target resource allocation event is larger than or equal to Y, acquiring the number R of the first-level candidate accounts and the budget investment total amount S of the actual resources; on the day that the target account participates in virtual resource allocation for the Nth time, the frequency that the first-stage candidate account already participates in virtual resource allocation reaches N, and the quantity of the allocated virtual resources reaches Y;
and the second calculation submodule is used for calculating the probability Z (S/(R) Y) that the target account can convert the virtual resources obtained by allocation into the actual resources after participating in the virtual resource allocation for N times according to the R, S and the Y.
Optionally, as an embodiment, the resource processing apparatus 400 may further include:
a third determination module for determining a second level candidate account participating in the target resource allocation event; the second-level candidate account is an account which can convert the virtual resources into actual resources on the day when the target account participates in virtual resource allocation for the Nth time;
and the intercepting module is used for intercepting the virtual resource conversion exceeding Y under the condition that the actual resource corresponding to the virtual resource sum of the second-level candidate account exceeds Y.
Optionally, as an embodiment, the conversion module may include:
an allocation submodule for allocating at X1+,…,+XM+1+XN>Y, when the target account actually participates in the Nth virtual resource allocation, allocating Y- (X) to the target account1+,…,+XM+1) A number of virtual resources;
and the conversion sub-module is used for converting the virtual resources allocated by the target account into actual resources.
Optionally, as an embodiment, the target resource allocation event is an APP operation event, the virtual resource is a virtual prize in the APP operation event, the virtual prize includes a red packet or a score, the actual resource is an actual prize in the APP operation event, and the actual prize includes cash or a real object.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
According to an embodiment of the present invention, there is also provided a server including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the resource handling method according to any of the embodiments described above.
According to an embodiment of the present invention, the present invention further provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps in the resource processing method according to any one of the above-mentioned embodiments.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The resource processing method, device, server and storage medium provided by the present invention are introduced in detail, and a specific example is applied in the present document to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (18)

1. A method for processing resources, the method comprising:
when a virtual resource allocation request sent by a target account for a target resource allocation event is received, acquiring a parameter N, the number M of times that the target account has participated in virtual resource allocation of the target resource allocation event, and a remaining duration T of a virtual resource allocation validity period of the target resource allocation event, wherein N is a lower limit value of the number of times that the account needs to participate in virtual resource allocation when virtual resources in one account are converted into actual resources;
according to the M, T and the N, calculating the probability P that the target account can be allocated to the virtual resource when participating in the virtual resource allocation at the M +1 th timeM+1And assigning a random number S to said target accountM+1Wherein said SM+1A random number, S, corresponding to the target account in the M +1 th participation in the virtual resource allocationM+1∈[0,1];
If SM+1≤PM+1Determining the number X of virtual resources which can be allocated to the target account when participating in virtual resource allocation at the M +1 th timeM+1
Assigning the X to the target accountM+1A number of virtual resources.
2. The method according to claim 1, wherein the probability P that the target account can be allocated to the virtual resource at the M +1 th participation in the virtual resource allocation is calculated according to the M, T and the NM+1The method comprises the following steps:
calculating the probability P that the target account can be allocated to the virtual resource when participating in the virtual resource allocation at the M +1 th timeM+1=(N-M)/T。
3. The method of claim 1, wherein the determining the number X of virtual resources that the target account can allocate to when participating in the virtual resource allocation at M +1 th time is performedM+1The method comprises the following steps:
acquiring a virtual resource value interval corresponding to the M +1 th participation of the account in virtual resource allocation from a preset relation table, wherein a plurality of mapping relations are recorded in the preset relation table, and each mapping relation comprises the corresponding relation between the number of times of participation of the account in virtual resource allocation and the virtual resource value interval;
randomly selecting a value from the obtained virtual resource value interval, and determining the selected value as the number X of the virtual resources which can be allocated to the target account when the target account participates in the virtual resource allocation at the M +1 th timeM+1
4. The method of claim 1, wherein the X is assigned to the target accountM+1After the step of counting the number of virtual resources, further comprising:
determining whether the number of times that the target account has participated in virtual resource allocation reaches N-1;
if the number of times that the target account participates in virtual resource allocation reaches N-1, calculating the number X of virtual resources which can be allocated to the target account when the target account participates in virtual resource allocation for the Nth timeN
If X1+,…,+XM+1+XNGreater than or equal to Y, then calculateThe target account can convert the virtual resources obtained by the allocation into the probability Z of the actual resources after participating in the virtual resource allocation for N times, and a random number Q is allocated to the target account, wherein XiI is more than or equal to 1 and less than or equal to M +1 for the number of virtual resources allocated to the target account when the target account participates in the virtual resource allocation for the ith time, Y is the lower limit value of the number of virtual resources in the account when the virtual resources in one account can be converted into actual resources, Q is a random number corresponding to the target account after participating in the virtual resource allocation for the N times, and Q ∈ [0,1];
And if Q is less than or equal to Z, converting the virtual resources obtained by the allocation in the target account into actual resources after the target account participates in the virtual resource allocation for N times.
5. The method according to claim 4, wherein the calculating the probability Z that the target account can convert the allocated virtual resource into an actual resource after participating in the virtual resource allocation for N times comprises:
acquiring the number R of first-stage candidate accounts participating in the target resource allocation event and the budget investment total S of actual resources; on the day that the target account participates in virtual resource allocation for the Nth time, the frequency that the first-stage candidate account already participates in virtual resource allocation reaches N, and the quantity of the allocated virtual resources reaches Y;
according to the R, S and Y, calculating the probability Z that the target account can convert the allocated virtual resources into actual resources after participating in the virtual resource allocation for N times, wherein the probability Z is S/(R Y).
6. The method of claim 5, further comprising:
determining a second level candidate account participating in the target resource allocation event; the second-level candidate account is an account which can convert the virtual resources into actual resources on the day when the target account participates in virtual resource allocation for the Nth time;
and if the actual resources corresponding to the virtual resource sum of the second-level candidate account exceed Y, intercepting the virtual resource conversion exceeding Y.
7. The method according to claim 4, wherein the converting the virtual resource allocated in the target account into an actual resource after the target account participates in the virtual resource allocation for N times includes:
if X1+,…,+XM+1+XN>Y, when the target account actually participates in the Nth virtual resource allocation, allocating Y- (X) to the target account1+,…,+XM+1) A number of virtual resources;
and converting the virtual resources allocated by the target account into actual resources.
8. The method according to any one of claims 1 to 7, wherein the target resource allocation event is an APP operation event, the virtual resource is a virtual prize in the APP operation event, the virtual prize includes a red packet or a score, the actual resource is an actual prize in the APP operation event, and the actual prize includes cash or a real object.
9. An apparatus for resource handling, the apparatus comprising:
a first obtaining module, configured to, when a virtual resource allocation request sent by a target account for a target resource allocation event is received, obtain a parameter N, a number M of times that the target account has participated in virtual resource allocation of the target resource allocation event, and a remaining duration T of a virtual resource allocation validity period of the target resource allocation event, where N is a lower limit of the number of times that the account needs to participate in virtual resource allocation when virtual resources in one account are converted into actual resources;
a first calculating module, configured to calculate, according to the M, T and the N, a probability P that the virtual resource can be allocated to the target account when participating in virtual resource allocation for the M +1 th timeM+1
A first allocation module, configured to allocate a random number S to the target accountM+1Wherein said SM+1A random number, S, corresponding to the target account in the M +1 th participation in the virtual resource allocationM+1∈[0,1];
A first determination module for determining SM+1≤PM+1Determining the number X of virtual resources which can be allocated to the target account when participating in the virtual resource allocation at the M +1 th timeM+1
A second allocating module for allocating the X to the target accountM+1A number of virtual resources.
10. The apparatus of claim 9, wherein the first computing module comprises:
a first calculation submodule, configured to calculate a probability P that the target account can be allocated to a virtual resource when participating in virtual resource allocation for the (M + 1) th timeM+1=(N-M)/T。
11. The apparatus of claim 9, wherein the first determining module comprises:
a first acquisition submodule for obtaining SM+1≤PM+1Under the condition, acquiring a virtual resource value interval corresponding to the M +1 th participation of the account in the virtual resource allocation from a preset relation table, wherein a plurality of mapping relations are recorded in the preset relation table, and each mapping relation comprises the corresponding relation between the number of times of participation of the account in the virtual resource allocation and the virtual resource value interval;
a determining submodule, configured to randomly select a value from the obtained virtual resource value interval, and determine the selected value as the number X of virtual resources that can be allocated to the target account when participating in virtual resource allocation for the (M + 1) th timeM+1
12. The apparatus of claim 9, further comprising:
a second determining module for allocating the X to the target account at the second allocating moduleM+1After the number of virtual resources, the number of virtual resources is determinedWhether the number of times that the target account has participated in virtual resource allocation reaches N-1 or not;
a second calculating module, configured to calculate, when the number of times that the target account has participated in virtual resource allocation reaches N-1, a virtual resource number X that can be allocated to the target account when participating in virtual resource allocation for the nth timeN
A third calculation module for calculating at X1+,…,+XM+1+XNIn the case of Y or more, calculating the probability Z that the target account can convert the allocated virtual resources into actual resources after participating in the virtual resource allocation for N times, wherein X isiThe number of the virtual resources allocated to the target account in the ith participation of the virtual resource allocation is more than or equal to 1 and less than or equal to M +1, and Y is the lower limit value of the number of the virtual resources in the account when the virtual resources in one account can be converted into actual resources;
a third allocation module, configured to allocate a random number Q to the target account, where Q is a random number corresponding to the target account after participating in virtual resource allocation for N times, and Q belongs to [0,1 ];
and the conversion module is used for converting the virtual resources obtained by the allocation in the target account into actual resources after the target account participates in the virtual resource allocation for N times under the condition that Q is less than or equal to Z.
13. The apparatus of claim 12, wherein the third computing module comprises:
a second acquisition submodule for acquiring at X1+,…,+XM+1+XNUnder the condition that the number of the first-level candidate accounts participating in the target resource allocation event is larger than or equal to Y, acquiring the number R of the first-level candidate accounts and the budget investment total amount S of the actual resources; on the day that the target account participates in virtual resource allocation for the Nth time, the frequency that the first-stage candidate account already participates in virtual resource allocation reaches N, and the quantity of the allocated virtual resources reaches Y;
and the second calculation submodule is used for calculating the probability Z (S/(R) Y) that the target account can convert the virtual resources obtained by allocation into the actual resources after participating in the virtual resource allocation for N times according to the R, S and the Y.
14. The apparatus of claim 13, further comprising:
a third determination module for determining a second level candidate account participating in the target resource allocation event; the second-level candidate account is an account which can convert the virtual resources into actual resources on the day when the target account participates in virtual resource allocation for the Nth time;
and the intercepting module is used for intercepting the virtual resource conversion exceeding Y under the condition that the actual resource corresponding to the virtual resource sum of the second-level candidate account exceeds Y.
15. The apparatus of claim 12, wherein the conversion module comprises:
an allocation submodule for allocating at X1+,…,+XM+1+XN>Y, when the target account actually participates in the Nth virtual resource allocation, allocating Y- (X) to the target account1+,…,+XM+1) A number of virtual resources;
and the conversion sub-module is used for converting the virtual resources allocated by the target account into actual resources.
16. The apparatus according to any one of claims 9 to 15, wherein the target resource allocation event is an APP operation event, the virtual resource is a virtual prize in the APP operation event, the virtual prize includes a red envelope or a score, the actual resource is an actual prize in the APP operation event, and the actual prize includes cash or a real object.
17. A server, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the resource handling method according to any of claims 1 to 8.
18. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the resource processing method according to any one of claims 1 to 8.
CN202010307404.0A 2020-04-17 2020-04-17 Resource processing method, device, server and storage medium Pending CN111612520A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010307404.0A CN111612520A (en) 2020-04-17 2020-04-17 Resource processing method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010307404.0A CN111612520A (en) 2020-04-17 2020-04-17 Resource processing method, device, server and storage medium

Publications (1)

Publication Number Publication Date
CN111612520A true CN111612520A (en) 2020-09-01

Family

ID=72199642

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010307404.0A Pending CN111612520A (en) 2020-04-17 2020-04-17 Resource processing method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN111612520A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112508641A (en) * 2020-12-01 2021-03-16 数字广东网络建设有限公司 Method and device for distributing articles, computer equipment and storage medium
CN116431347A (en) * 2023-04-14 2023-07-14 北京达佳互联信息技术有限公司 Method, device, electronic equipment and storage medium for resource processing

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577722A (en) * 2014-10-16 2016-05-11 腾讯科技(深圳)有限公司 Credit exchange method and apparatus thereof
CN107302488A (en) * 2016-04-14 2017-10-27 阿里巴巴集团控股有限公司 Distribution method, system and the server of virtual objects
CN109034892A (en) * 2018-07-19 2018-12-18 腾讯科技(深圳)有限公司 Resource allocation methods, device, computer readable storage medium and computer equipment
CN109615434A (en) * 2018-12-14 2019-04-12 中国平安人寿保险股份有限公司 A kind of method, apparatus, electronic equipment and storage medium promoting user activity
CN110175860A (en) * 2019-04-09 2019-08-27 阿里巴巴集团控股有限公司 Virtual resource allocation method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577722A (en) * 2014-10-16 2016-05-11 腾讯科技(深圳)有限公司 Credit exchange method and apparatus thereof
CN107302488A (en) * 2016-04-14 2017-10-27 阿里巴巴集团控股有限公司 Distribution method, system and the server of virtual objects
CN109034892A (en) * 2018-07-19 2018-12-18 腾讯科技(深圳)有限公司 Resource allocation methods, device, computer readable storage medium and computer equipment
CN109615434A (en) * 2018-12-14 2019-04-12 中国平安人寿保险股份有限公司 A kind of method, apparatus, electronic equipment and storage medium promoting user activity
CN110175860A (en) * 2019-04-09 2019-08-27 阿里巴巴集团控股有限公司 Virtual resource allocation method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112508641A (en) * 2020-12-01 2021-03-16 数字广东网络建设有限公司 Method and device for distributing articles, computer equipment and storage medium
CN116431347A (en) * 2023-04-14 2023-07-14 北京达佳互联信息技术有限公司 Method, device, electronic equipment and storage medium for resource processing
CN116431347B (en) * 2023-04-14 2024-03-26 北京达佳互联信息技术有限公司 Method, device, electronic equipment and storage medium for resource processing

Similar Documents

Publication Publication Date Title
CN109783224B (en) Task allocation method and device based on load allocation and terminal equipment
CN103699445A (en) Task scheduling method, device and system
CN111612520A (en) Resource processing method, device, server and storage medium
CN107360117B (en) Data processing method, device and system
CN110636388A (en) Service request distribution method, system, electronic equipment and storage medium
CN110933136A (en) Service node selection method, device, equipment and readable storage medium
CN111176833A (en) Task allocation method and system for multiprocessing nodes
CN111338575B (en) Storage service quality control method, device, equipment and storage medium
CN109597680B (en) Task queuing response parameter estimation method and device
CN115794421B (en) Resource allocation method and device and electronic equipment
CN111988388A (en) Flow distribution method and device, electronic equipment and storage medium
CN111401772A (en) Customer service request distribution method, device and equipment
CN110096352A (en) Process management method, device and computer readable storage medium
CN111769984A (en) Method for adding nodes in block chain network and block chain system
CN111651274A (en) Business distribution method based on micro-service architecture and related device
CN111124672A (en) Data distribution method based on Redis cluster and related equipment
WO2018205890A1 (en) Task assignment method and system of distributed system, computer readable storage medium and computer device therefor
CN116150067A (en) Bandwidth adjustment method, device, electronic equipment and storage medium
CN110681159A (en) Team forming method, device and equipment
CN112256420B (en) Task allocation method and device and electronic equipment
CN110708374B (en) Distribution method and distribution device of edge nodes and readable storage medium
CN109522118B (en) Service processing method, device, server and readable storage medium
CN112070349A (en) Order allocation method, device, equipment and storage medium
CN112114949A (en) Service scheduling method and system for cloud computing
CN112418670A (en) Case allocation method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination