CN110992077B - Advertisement fee settlement method, device, electronic equipment and storage medium - Google Patents

Advertisement fee settlement method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110992077B
CN110992077B CN201911061347.6A CN201911061347A CN110992077B CN 110992077 B CN110992077 B CN 110992077B CN 201911061347 A CN201911061347 A CN 201911061347A CN 110992077 B CN110992077 B CN 110992077B
Authority
CN
China
Prior art keywords
virtual
pool
fee
charge
expense
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.)
Active
Application number
CN201911061347.6A
Other languages
Chinese (zh)
Other versions
CN110992077A (en
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.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology 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 Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201911061347.6A priority Critical patent/CN110992077B/en
Publication of CN110992077A publication Critical patent/CN110992077A/en
Application granted granted Critical
Publication of CN110992077B publication Critical patent/CN110992077B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/0241Advertisements
    • G06Q30/0273Determination of fees for advertising

Abstract

The embodiment of the disclosure provides an advertisement fee settlement method and device. The method comprises the following steps: creating a plurality of virtual charge pools according to the total payment charge of a service party; allocating a total payment fee to a plurality of virtual fee pools; establishing a mapping relation between at least one account identifier and one virtual pool identifier; when the first settlement account needs to be settled, acquiring a first account identifier of the first settlement account and the expense to be settled; acquiring a first virtual pool identifier according to the mapping relation; acquiring first residual cost in a first virtual cost pool; when the first residual expense is more than or equal to the expense to be settled, deducting the expense to be settled from the first virtual expense pool; when the first residual charge is less than the charge to be settled, deducting the first residual charge from the first virtual charge pool; calculating a difference charge between the charge to be settled and the first remaining charge; acquiring a second virtual expense pool; and deducting the differential cost from the second virtual cost pool. The present disclosure may reduce the deduction failure and timeout probability.

Description

Advertisement fee settlement method, device, electronic equipment and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of advertisements, and in particular relates to an advertisement fee calculation method, an advertisement fee calculation device, electronic equipment and a storage medium.
Background
In order to better provide advertisement delivery service for large clients (KA), advertisers provide a special advertisement delivery platform for KA, and can deliver advertisement consumption generated by thousands of stores in batches at the same time.
The fund of the KA advertisement is collected and managed by a brand headquarters, and thousands of shops share one fund pool. When the advertisement consumption is generated due to the advertisement putting, the total capital pool needs to be deducted. And because the deduction operation of the advertising expense needs locking, the time consumption is long, therefore, when the deduction of the advertising expense is generated at thousands of shops at the same time, great pressure is caused to the system, and the deduction failure and overtime are easily caused.
Disclosure of Invention
The embodiment of the disclosure provides an advertisement fee settlement method, an advertisement fee settlement device, electronic equipment and a storage medium, which are used for relieving the pressure on a system caused by simultaneous deduction of multiple stores and reducing the probability of deduction failure and overtime.
According to a first aspect of embodiments of the present disclosure, there is provided an advertisement fee settlement method including:
creating a plurality of virtual charge pools according to the total payment charge of a service party; each virtual charge pool corresponds to a virtual pool identifier, the service party comprises a plurality of settlement accounts, and each settlement account corresponds to an account identifier;
allocating the total payment fee to the plurality of virtual fee pools;
establishing a mapping relation between at least one account identifier and one virtual pool identifier by using a consistent hash algorithm;
when the advertisement expense generated by a first settlement account needs to be settled, acquiring a first account identifier of the first settlement account and the expense to be settled corresponding to the first settlement account;
acquiring a first virtual pool identifier corresponding to the first account identifier according to a mapping relation between the account identifier and the virtual pool identifier;
acquiring first residual cost in a first virtual cost pool corresponding to the first virtual pool identifier;
when the first residual expense is more than or equal to the expense to be settled, deducting the expense to be settled from the first virtual expense pool;
when the first residual charge is less than the charge to be settled, deducting the first residual charge from the first virtual charge pool;
calculating a differential charge between the charge to be settled and the first remaining charge;
acquiring a second virtual expense pool;
and deducting the differential charge from the second virtual charge pool.
Optionally, when the first remaining fee is less than the fee to be settled, after deducting the first remaining fee from the first virtual fee pool, the method further includes:
marking a status of the first virtual expense pool as an unavailable status;
the obtaining a second virtual cost pool includes:
and acquiring a virtual expense pool with a mark state as an available state from the plurality of virtual expense pools as the second virtual expense pool according to the mark state of the virtual expense pool.
Optionally, after the obtaining a second virtual cost pool and deducting the differential cost from the second virtual cost pool, the method further includes:
acquiring the available number of the virtual expense pools in an available state in a plurality of virtual expense pools;
acquiring a second remaining charge of the virtual charge pool in an available state under the condition that the available number is smaller than a charge pool number threshold;
under the condition that the second residual cost is larger than a cost threshold value, a plurality of new virtual cost pools are created according to the second residual cost;
allocating the second remaining cost to a plurality of the new virtual cost pools.
According to a second aspect of embodiments of the present disclosure, there is provided an advertisement fee settlement apparatus including:
the virtual charge pool creating module is used for creating a plurality of virtual charge pools according to the total payment charge of the service party; each virtual charge pool corresponds to a virtual pool identifier, the service party comprises a plurality of settlement accounts, and each settlement account corresponds to an account identifier;
a total payment fee distribution module for distributing the total payment fee to the plurality of virtual fee pools;
the mapping relation establishing module is used for establishing a mapping relation between at least one account identifier and one virtual pool identifier by utilizing a consistent hash algorithm;
the system comprises a to-be-settled fee acquisition module, a to-be-settled fee acquisition module and a to-be-settled fee acquisition module, wherein the to-be-settled fee acquisition module is used for acquiring a first account identifier of a first settlement account and the to-be-settled fee corresponding to the first settlement account when the advertisement fee generated by the first settlement account needs to be settled;
the first pool identification acquisition module is used for acquiring a first virtual pool identification corresponding to the first account identification according to the mapping relation between the account identification and the virtual pool identification;
a first remaining charge obtaining module, configured to obtain a first remaining charge in a first virtual charge pool corresponding to the first virtual pool identifier;
when the first residual expense is more than or equal to the expense to be settled, deducting the expense to be settled from the first virtual expense pool;
the first residual fee deduction module is used for deducting the first residual fee from the first virtual fee pool when the first residual fee is less than the fee to be settled;
a difference charge calculation module for calculating a difference charge between the charge to be settled and the first remaining charge;
the second virtual pool acquisition module is used for acquiring a second virtual expense pool;
and the difference fee deduction module is used for deducting the difference fee from the second virtual fee pool.
Optionally, the method further comprises:
an unavailable state marking module, configured to mark a state of the first virtual expense pool as an unavailable state;
the second virtual pool acquisition module includes:
and the second virtual pool acquisition submodule is used for acquiring a virtual cost pool with an available state as the second virtual cost pool from the plurality of virtual cost pools according to the mark state of the virtual cost pool.
Optionally, the method further comprises:
an available quantity obtaining module, configured to obtain an available quantity of a virtual expense pool in an available state from among the plurality of virtual expense pools;
the second residual charge obtaining module is used for obtaining the second residual charge of the virtual charge pool in the available state under the condition that the available number is smaller than the charge pool number threshold value;
a new virtual pool creating module, configured to create a plurality of new virtual pool pools according to the second remaining cost when the second remaining cost is greater than a cost threshold;
a second remaining charge allocation module for allocating the second remaining charge to the plurality of new virtual charge pools.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor, a memory, and a computer program stored on the memory and operable on the processor, the processor implementing the method of settlement of advertising fees as set forth in any one of the above when executing the program.
According to a fourth aspect of embodiments of the present disclosure, there is provided a readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform any one of the above advertisement fee settlement methods.
The embodiment of the disclosure provides an advertisement fee settlement scheme, which includes creating a plurality of virtual fee pools according to the total payment fee of a service party, wherein each virtual fee pool corresponds to a virtual pool identifier, the service party includes a plurality of settlement accounts, each settlement account corresponds to an account identifier, distributing the total payment fee to the plurality of virtual fee pools, establishing a mapping relation between at least one account identifier and one virtual pool identifier by using a consistent hash algorithm, when the advertisement fee generated by a first settlement account needs to be settled, acquiring a first account identifier of the first settlement account and a fee to be settled corresponding to the first settlement account, acquiring a first virtual pool identifier corresponding to the first account identifier according to the mapping relation between the account identifier and the virtual pool identifier, acquiring a first residual fee in the first virtual fee pool corresponding to the first virtual pool identifier, and when the first residual expense is more than or equal to the expense to be settled, deducting the expense to be settled from the first virtual expense pool, when the first residual expense is less than the expense to be settled, deducting the first residual expense from the first virtual expense pool, calculating the difference expense between the expense to be settled and the first residual expense, acquiring a second virtual expense pool, and deducting the difference expense from the second virtual expense pool. According to the embodiment of the disclosure, a plurality of virtual expense pools are created, and after the fund consumption in a certain virtual expense pool is finished, the next available virtual expense pool can be automatically searched, so that the advertisement expenses generated by a plurality of shops can be prevented from being deducted from one fund pool, the pressure on the system can be reduced, and the probability of deduction failure and overtime is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings needed to be used in the description of the embodiments of the present disclosure will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a flowchart illustrating steps of a method for settling advertising fees according to an embodiment of the present disclosure;
FIG. 2 is a flowchart illustrating steps of a method for settling advertising fees according to an embodiment of the present disclosure;
FIG. 2a is a schematic diagram of fund pool division provided by an embodiment of the present disclosure;
FIG. 2b is a schematic illustration of a fund pool allocation provided by an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an advertisement fee settlement apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an advertisement fee settlement apparatus according to an embodiment of the present disclosure.
Detailed Description
Technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are some, but not all, of the embodiments of the present disclosure. All other embodiments, which can be obtained by a person skilled in the art without making creative efforts based on the embodiments of the present disclosure, belong to the protection scope of the embodiments of the present disclosure.
Example one
Referring to fig. 1, a flowchart illustrating steps of an advertisement fee settlement method provided by an embodiment of the present disclosure is shown, where the fee settlement method may specifically include the following steps:
step 101: a plurality of virtual charge pools are created based on a total payment of the business parties.
In an embodiment of the present disclosure, the business party may be a party with numerous stores, i.e., KA client.
The total payment fee refers to the total fee paid by the business party for the advertisement placement.
The virtual fee pool is used for creating a virtual pool for storing the payment of the advertisement fee of the service party for the service party by the advertisement platform.
After the advertisement platform obtains the total payment fee of the service party, a plurality of virtual fee pools may be created according to the total payment fee of the service party, for example, referring to fig. 2a, a schematic diagram of fund pool division provided by an embodiment of the present disclosure is shown, as shown in fig. 2a, in an initial state, N virtual fee pools, such as virtual fund pool 0, virtual fund pool 4, virtual fund pool 8, virtual fund pool 12, and the like, may be divided according to the total payment fee.
Of course, in the present disclosure, the number of divided virtual cost pools may be a power of 2.
After the virtual charge pools are created, a virtual pool identifier can be respectively allocated to each virtual charge pool, and the service side can comprise a plurality of settlement accounts, and each settlement account is allocated with a corresponding account identifier by the advertisement platform.
After creating a plurality of virtual fee pools based on the total payment by the business party, step 102 is performed.
Step 102: allocating the total payment fee to the plurality of virtual fee pools.
After creating the plurality of virtual fee pools, a total payment fee of the business party may be allocated to the plurality of virtual fee pools.
In some examples, the total payment of the business party may be evenly distributed to a plurality of virtual fee pools, for example, the total payment of the business party is 8000, the number of the virtual fee pools is 8, and 1000 fees may be distributed to each virtual fee pool.
In some examples, the total payment fee of the business party may be randomly allocated to a plurality of virtual fee pools, for example, the total payment fee of the business party is 8000, the number of virtual fee pools is 3, the first virtual fee pool is allocated with a fee of 2000, the second virtual fee pool is allocated with a fee of 3500, the third virtual fee pool is allocated with a fee of 2500, and so on.
It is to be understood that the above examples are only examples set forth for a better understanding of the technical solutions of the embodiments of the present disclosure, and are not to be taken as the only limitations on the embodiments of the present disclosure.
After the total payment fee is allocated to the plurality of virtual fee pools, step 103 is performed.
Step 103: and establishing a mapping relation between at least one account identifier and one virtual pool identifier by using a consistent hash algorithm.
The consistent hashing algorithm is a distributed algorithm and is commonly used for load balancing.
After creating a plurality of virtual charge pools according to the total payment charge of the service party and allocating the total payment charge to the plurality of virtual charge pools, a mapping relationship between at least one account identifier and one virtual pool identifier may be established by using a consistent hashing algorithm, and specifically, the account identifier and the virtual pool identifier may be mapped to binary values of fixed length by using the consistent hashing algorithm, that is, an account identifier binary value and a virtual pool identifier binary value, and a mapping relationship between at least one account identifier binary value and one virtual pool identifier binary value, that is, a mapping relationship between at least one account identifier and one virtual pool identifier is established.
After the mapping relationship between at least one account id and one virtual pool id is established by using the consistent hashing algorithm, the mapping relationship may be saved in the advertisement platform, and then step 104 is executed.
Step 104: when the advertisement fee generated by the first settlement account needs to be settled, a first account identifier of the first settlement account and the fee to be settled corresponding to the first settlement account are obtained.
In the embodiment of the disclosure, the first settlement account is an account corresponding to one or more stores where the business party puts the advertisement on the advertisement platform. The business party can be a party with a plurality of stores, namely a KA client.
Account identifications corresponding to a plurality of settlement accounts under the service party are prestored on the advertisement platform.
In some examples, the account ids corresponding to the plurality of settlement accounts of the business party may be digital ids, for example, the plurality of settlement accounts of the business party include an account a, an account B, and an account C, the account id corresponding to the account a is 1, the account id corresponding to the account B is 2, the account id corresponding to the account C is 3, and the like.
In some examples, the account ids corresponding to the plurality of settlement accounts of the business party may be english character ids, for example, the plurality of settlement accounts of the business party include an account a, an account B, and an account C, where the account id corresponding to the account a is a, the account id corresponding to the account B is B, the account id corresponding to the account C is C, and the like.
It should be understood that the foregoing examples are merely examples listed for better understanding of technical solutions of the embodiments of the present disclosure, and are not limited to the embodiments of the present disclosure, and in a specific implementation, the identifier of the settlement account may also adopt other expression manners, such as an upper case english character A, B, C, and the like, and in particular, may be determined according to business requirements, and the embodiments of the present disclosure do not limit this.
When the first settlement account puts the advertisement on the advertisement platform, the advertisement platform generates advertisement fee, and the advertisement platform can settle the advertisement fee generated by the first settlement account.
The charge to be settled refers to the unsettled charge generated by the advertisement putting of the first settlement account on the advertisement platform.
When the advertisement fee generated by the first settlement account needs to be settled, a first account identifier corresponding to the first settlement account can be acquired, and an account to be settled corresponding to the first settlement account is calculated.
When the advertisement fee generated by the first settlement account needs to be settled, after the first account identifier of the first settlement account and the fee to be settled corresponding to the first settlement account are acquired, step 105 is executed.
Step 105: and acquiring a first virtual pool identifier corresponding to the first account identifier according to the mapping relation between the account identifier and the virtual pool identifier.
In this disclosure, the advertisement platform may create a plurality of virtual fee pools for the service party according to the total payment fee of the service party, where each virtual fee pool corresponds to a virtual pool identifier, for example, 8 virtual fee pools are created for the service party, and the identifiers of the 8 virtual fee pools are: virtual pool identification 1, virtual pool identification 2, virtual pool identification 8, and then the total payment of the business side is distributed to the 8 virtual fee pools on average.
After creating the plurality of virtual fee pools, a mapping relationship between the virtual pool identifier of each virtual fee pool and the account identifiers of one or more settlement accounts can be established according to a plurality of settlement accounts corresponding to the service party, and the advertisement platform can store the mapping relationship.
After obtaining the first account identifier of the first settlement account, the first virtual pool identifier corresponding to the first account identifier may be obtained according to a mapping relationship between the account identifier and the virtual pool identifier, for example, the mapping relationship between the account identifier and the virtual pool identifier stored on the advertisement platform may be as shown in table 1 below:
Figure BDA0002258032430000081
Figure BDA0002258032430000091
as shown in table 1, when the account identifier of the first settlement account is account 1, the first virtual pool identifier is the virtual pool 1; and when the account identifier of the first settlement account is the account 4, the first virtual pool identifier is the virtual pool 2.
It is to be understood that the above examples are only examples set forth for a better understanding of the technical solutions of the embodiments of the present disclosure, and are not to be taken as the only limitations on the embodiments of the present disclosure.
After the first virtual pool identifier corresponding to the first account identifier is obtained according to the mapping relationship between the account identifier and the virtual pool identifier, step 106 is executed.
Step 106: and acquiring a first residual charge in a first virtual charge pool corresponding to the first virtual pool identifier.
The first virtual expense pool is a virtual expense pool corresponding to the first virtual pool identifier.
The first remaining fee refers to the fee of the remaining paid advertisements in the virtual fee pool corresponding to the first virtual identifier.
After obtaining the first virtual pool identifier corresponding to the first account identifier, the advertisement platform may obtain remaining charges in the first virtual charge pool, that is, a first remaining charge.
After acquiring the first remaining charge in the first virtual charge pool corresponding to the first virtual pool identifier, step 107 is executed, or step 108 is executed.
Step 107: and when the first residual expense is more than or equal to the expense to be settled, deducting the expense to be settled from the first virtual expense pool.
After acquiring the first remaining fee within the first virtual fee, the first remaining fee may be compared with the fee to be settled.
When the first remaining fee is larger than or equal to the fee to be settled, the fee to be settled can be directly deducted from the first virtual fee pool, and the settlement of the advertisement fee of the first settlement account is completed.
Step 108: and when the first residual charge is less than the charge to be settled, deducting the first residual charge from the first virtual charge pool.
After acquiring the first remaining fee within the first virtual fee, the first remaining fee may be compared with the fee to be settled.
When the first remaining fee is larger than or equal to the fee to be settled, the fee to be settled can be directly deducted from the first virtual fee pool, and the settlement of the advertisement fee of the first settlement account is completed.
When the first residual charge is less than the charge to be settled, the first residual charge can be deducted from the first virtual charge pool, and then the price difference can be deducted from other virtual charge pools.
After deducting the first remaining fee from within the first virtual fee pool, step 109 is performed.
Step 109: calculating a differential charge between the charge to be settled and the first remaining charge.
The differential charge is a difference between the charge to be settled and the first remaining charge when the first remaining charge is less than the charge to be settled, that is, the differential charge is the charge to be settled — the first remaining charge, or the differential charge is the first remaining charge — the charge to be settled, and then takes a positive value.
After the first remaining fee is deducted from the first virtual fee pool, a differential fee between the fee to be settled and the first remaining fee may be calculated, and step 110 is performed.
Step 110: a second virtual cost pool is obtained.
The second virtual charge pool is an available virtual charge pool which is created by the advertisement platform for the service party and is other than the first virtual charge pool, namely, the remaining charges in the second virtual charge pool can be used for settling the advertisement charges generated by the settlement account of the service party.
After calculating the difference between the charge to be settled and the first remaining charge, a second virtual charge pool can be available from the other virtual charge pools of the service side.
After the second virtual cost pool is acquired, step 111 is performed.
Step 111: and deducting the differential charge from the second virtual charge pool.
After the second virtual charge pool is acquired, the differential charge may be deducted from the second virtual charge pool, thereby completing settlement of the advertisement charges generated by the first settlement account.
The embodiment of the disclosure can automatically find the next available virtual expense pool to finish the settlement of the advertisement expense after the fund in a certain virtual expense pool is consumed by creating a plurality of virtual expense pools.
The advertisement fee settlement method provided by the embodiment of the disclosure includes creating a plurality of virtual fee pools according to the total payment fee of a business party, wherein each virtual fee pool corresponds to a virtual pool identifier, the business party comprises a plurality of settlement accounts, each settlement account corresponds to an account identifier, the total payment fee is distributed to the plurality of virtual fee pools, a mapping relation between at least one account identifier and one virtual pool identifier is established by utilizing a consistent hash algorithm, when the advertisement fee generated by a first settlement account needs to be settled, a first account identifier of the first settlement account and the fee to be settled corresponding to the first settlement account are obtained, a first virtual pool identifier corresponding to the first account identifier is obtained according to the mapping relation between the account identifier and the virtual pool identifier, and a first residual fee in the first virtual fee pool corresponding to the first virtual pool identifier is obtained, and when the first residual expense is more than or equal to the expense to be settled, deducting the expense to be settled from the first virtual expense pool, when the first residual expense is less than the expense to be settled, deducting the first residual expense from the first virtual expense pool, calculating the difference expense between the expense to be settled and the first residual expense, acquiring a second virtual expense pool, and deducting the difference expense from the second virtual expense pool. According to the embodiment of the disclosure, a plurality of virtual expense pools are created, and after the fund consumption in a certain virtual expense pool is finished, the next available virtual expense pool can be automatically searched, so that the advertisement expenses generated by a plurality of shops can be prevented from being deducted from one fund pool, the pressure on the system can be reduced, and the probability of deduction failure and overtime is reduced.
Example two
Referring to fig. 2, a flowchart illustrating steps of an advertisement fee settlement method provided by an embodiment of the present disclosure is shown, where the fee settlement method may specifically include the following steps:
step 201: a plurality of virtual charge pools are created based on a total payment of the business parties.
In an embodiment of the present disclosure, the business party may be a party with numerous stores, i.e., KA client.
The total payment fee refers to the total fee paid by the business party for the advertisement placement.
The virtual fee pool is used for creating a virtual pool for storing the payment of the advertisement fee of the service party for the service party by the advertisement platform.
After the advertisement platform obtains the total payment fee of the service party, a plurality of virtual fee pools may be created according to the total payment fee of the service party, for example, referring to fig. 2a, a schematic diagram of fund pool division provided by an embodiment of the present disclosure is shown, as shown in fig. 2a, in an initial state, N virtual fee pools, such as virtual fund pool 0, virtual fund pool 4, virtual fund pool 8, virtual fund pool 12, and the like, may be divided according to the total payment fee.
Of course, in the present disclosure, the number of divided virtual cost pools may be a power of 2.
After the virtual charge pools are created, a virtual pool identifier can be respectively allocated to each virtual charge pool, and the service side can comprise a plurality of settlement accounts, and each settlement account is allocated with a corresponding account identifier by the advertisement platform.
After creating a plurality of virtual fee pools based on the total payment by the business party, step 202 is performed.
Step 202: allocating the total payment fee to the plurality of virtual fee pools.
After creating the plurality of virtual fee pools, a total payment fee of the business party may be allocated to the plurality of virtual fee pools.
In some examples, the total payment of the business party may be evenly distributed to a plurality of virtual fee pools, for example, the total payment of the business party is 8000, the number of the virtual fee pools is 8, and 1000 fees may be distributed to each virtual fee pool.
In some examples, the total payment fee of the business party may be randomly allocated to a plurality of virtual fee pools, for example, the total payment fee of the business party is 8000, the number of virtual fee pools is 3, the first virtual fee pool is allocated with a fee of 2000, the second virtual fee pool is allocated with a fee of 3500, the third virtual fee pool is allocated with a fee of 2500, and so on.
It is to be understood that the above examples are only examples set forth for a better understanding of the technical solutions of the embodiments of the present disclosure, and are not to be taken as the only limitations on the embodiments of the present disclosure.
After the total payment fee is allocated to the plurality of virtual fee pools, step 203 is performed.
Step 203: and establishing a mapping relation between at least one account identifier and one virtual pool identifier by using a consistent hash algorithm.
The consistent hashing algorithm is a distributed algorithm and is commonly used for load balancing.
After creating a plurality of virtual charge pools according to the total payment charge of the service party and allocating the total payment charge to the plurality of virtual charge pools, a mapping relationship between at least one account identifier and one virtual pool identifier may be established by using a consistent hashing algorithm, and specifically, the account identifier and the virtual pool identifier may be mapped to binary values of fixed length by using the consistent hashing algorithm, that is, an account identifier binary value and a virtual pool identifier binary value, and a mapping relationship between at least one account identifier binary value and one virtual pool identifier binary value, that is, a mapping relationship between at least one account identifier and one virtual pool identifier is established.
After the mapping relationship between at least one account id and one virtual pool id is established by using the consistent hashing algorithm, the mapping relationship may be saved in the advertisement platform, and then step 204 is executed.
Step 204: when the advertisement fee generated by the first settlement account needs to be settled, a first account identifier of the first settlement account and the fee to be settled corresponding to the first settlement account are obtained.
In the embodiment of the disclosure, the first settlement account is an account corresponding to one or more stores where the business party puts the advertisement on the advertisement platform.
Account identifications corresponding to a plurality of settlement accounts under the service party are prestored on the advertisement platform.
In some examples, the account ids corresponding to the plurality of settlement accounts of the business party may be digital ids, for example, the plurality of settlement accounts of the business party include an account a, an account B, and an account C, the account id corresponding to the account a is 1, the account id corresponding to the account B is 2, the account id corresponding to the account C is 3, and the like.
In some examples, the account ids corresponding to the plurality of settlement accounts of the business party may be english character ids, for example, the plurality of settlement accounts of the business party include an account a, an account B, and an account C, where the account id corresponding to the account a is a, the account id corresponding to the account B is B, the account id corresponding to the account C is C, and the like.
It should be understood that the foregoing examples are merely examples listed for better understanding of technical solutions of the embodiments of the present disclosure, and are not limited to the embodiments of the present disclosure, and in a specific implementation, the identifier of the settlement account may also adopt other expression manners, such as an upper case english character A, B, C, and the like, and in particular, may be determined according to business requirements, and the embodiments of the present disclosure do not limit this.
When the first settlement account puts the advertisement on the advertisement platform, the advertisement platform generates advertisement fee, and the advertisement platform can settle the advertisement fee generated by the first settlement account.
When the first settlement account puts an advertisement on the advertisement platform, a charging request may be generated, for example, referring to fig. 2b, a schematic diagram illustrating fund pool allocation provided by the embodiment of the present disclosure is shown, as shown in fig. 2b, when a charging request of the KA store 1 is received, a charging account number, i.e., an account number identifier, of the KA store 1 may be obtained; when receiving a charging request of the KA store 2, a charging account, i.e., an account id, of the KA store 2 may be obtained.
It is to be understood that the above examples are only examples set forth for a better understanding of the technical solutions of the embodiments of the present disclosure, and are not to be taken as the only limitations on the embodiments of the present disclosure.
The charge to be settled refers to the unsettled charge generated by the advertisement putting of the first settlement account on the advertisement platform.
When the advertisement fee generated by the first settlement account needs to be settled, a first account identifier corresponding to the first settlement account can be acquired, and an account to be settled corresponding to the first settlement account is calculated.
When the advertisement fee generated by the first settlement account needs to be settled, after the first account identifier of the first settlement account and the fee to be settled corresponding to the first settlement account are acquired, step 205 is executed.
Step 205: and acquiring a first virtual pool identifier corresponding to the first account identifier according to the mapping relation between the account identifier and the virtual pool identifier.
In this disclosure, the advertisement platform may create a plurality of virtual fee pools for the service party according to the total payment fee of the service party, where each virtual fee pool corresponds to a virtual pool identifier, for example, 8 virtual fee pools are created for the service party, and the identifiers of the 8 virtual fee pools are: virtual pool identification 1, virtual pool identification 2, virtual pool identification 8, and then the total payment of the business side is distributed to the 8 virtual fee pools on average.
After creating the plurality of virtual fee pools, a mapping relationship between the virtual pool identifier of each virtual fee pool and the account identifiers of one or more settlement accounts can be established according to a plurality of settlement accounts corresponding to the service party, and the advertisement platform can store the mapping relationship.
After obtaining the first account identifier of the first settlement account, the first virtual pool identifier corresponding to the first account identifier may be obtained according to a mapping relationship between the account identifier and the virtual pool identifier, for example, the mapping relationship between the account identifier and the virtual pool identifier stored on the advertisement platform may be as shown in table 2 below:
account identification Virtual pool identification
Account 1 Virtual pool 1
Account 2 Virtual pool 2
Account 3 Virtual pool 3
Account 4 Virtual pool 2
As shown in table 2, when the account identifier of the first settlement account is account 1, the first virtual pool identifier is the virtual pool 1; and when the account identifier of the first settlement account is the account 4, the first virtual pool identifier is the virtual pool 2.
It is to be understood that the above examples are only examples set forth for a better understanding of the technical solutions of the embodiments of the present disclosure, and are not to be taken as the only limitations on the embodiments of the present disclosure.
After the first virtual pool identifier corresponding to the first account identifier is obtained according to the mapping relationship between the account identifier and the virtual pool identifier, step 206 is executed.
Step 206: and acquiring a first residual charge in a first virtual charge pool corresponding to the first virtual pool identifier.
The first virtual expense pool is a virtual expense pool corresponding to the first virtual pool identifier.
The first remaining fee refers to the fee of the remaining paid advertisements in the virtual fee pool corresponding to the first virtual identifier.
After obtaining the first virtual pool identifier corresponding to the first account identifier, the advertisement platform may obtain remaining charges in the first virtual charge pool, that is, a first remaining charge.
After acquiring the first remaining charge in the first virtual charge pool corresponding to the first virtual pool identifier, step 207 is executed, or step 208 is executed.
Step 207: and when the first residual expense is more than or equal to the expense to be settled, deducting the expense to be settled from the first virtual expense pool.
After acquiring the first remaining fee within the first virtual fee, the first remaining fee may be compared with the fee to be settled.
When the first remaining fee is larger than or equal to the fee to be settled, the fee to be settled can be directly deducted from the first virtual fee pool, and the settlement of the advertisement fee of the first settlement account is completed.
Step 208: and when the first residual charge is less than the charge to be settled, deducting the first residual charge from the first virtual charge pool.
After acquiring the first remaining fee within the first virtual fee, the first remaining fee may be compared with the fee to be settled.
When the first remaining fee is less than the fee to be settled, the first remaining fee may be deducted from the first virtual fee pool, and then the spread may be deducted from the other virtual fee pools.
After the first remaining charge is deducted from the first virtual charge pool, step 209 is performed, and step 210 is performed.
Step 209: marking a status of the first virtual expense pool as unavailable.
After the first remaining fee is deducted from the first virtual fee, the fee in the first virtual fee pool is 0, and at this time, the status of the first virtual fee pool may be marked as unavailable, that is, the first virtual fee pool is marked as unavailable
The first virtual cost pool has been voided.
Step 210: calculating a differential charge between the charge to be settled and the first remaining charge.
The differential charge is a difference between the charge to be settled and the first remaining charge when the first remaining charge is less than the charge to be settled, that is, the differential charge is the charge to be settled — the first remaining charge, or the differential charge is the first remaining charge — the charge to be settled, and then takes a positive value.
After the first remaining fee is deducted from the first virtual fee pool, a differential fee between the fee to be settled and the first remaining fee may be calculated, and step 211 is performed.
Step 211: and acquiring a virtual expense pool with a mark state as an available state from the plurality of virtual expense pools as the second virtual expense pool according to the mark state of the virtual expense pool.
The second virtual charge pool is an available virtual charge pool which is created by the advertisement platform for the service party and is other than the first virtual charge pool, namely, the remaining charges in the second virtual charge pool can be used for settling the advertisement charges generated by the settlement account of the service party.
After calculating the difference between the fee to be settled and the first remaining fee, the virtual fee pool in an available state may be obtained from other virtual fee pools of the business side as a second virtual fee pool.
After acquiring a virtual expense pool marked as an available state from the plurality of virtual expense pools according to the marked states of the virtual expense pools, the step 212 is executed.
Step 212: and deducting the differential charge from the second virtual charge pool.
After the second virtual charge pool is acquired, the differential charge may be deducted from the second virtual charge pool, thereby completing settlement of the advertisement charges generated by the first settlement account.
The embodiment of the disclosure can automatically find the next available virtual expense pool to finish the settlement of the advertisement expense after the fund in a certain virtual expense pool is consumed by creating a plurality of virtual expense pools.
After the differential charge is deducted from the second virtual charge pool, the advertisement charge settlement of the first settlement account is completed, and then, step 213 may be performed.
Step 213: and acquiring the available number of the virtual expense pools in the available state in a plurality of the virtual expense pools.
The available quantity refers to the quantity of the virtual expense pools which are in an available state in a plurality of virtual expense pools which are created by the advertising platform for the business party.
In the above process, after settlement of the advertisement charges generated by the first settlement account is completed, an available number of virtual charge pools in an available state among the plurality of virtual charge pools may be acquired.
After obtaining the available number of the virtual expense pools in the available state from the plurality of virtual expense pools, step 214 is performed.
Step 214: and acquiring a second residual expense of the virtual expense pool in the available state under the condition that the available quantity is smaller than the expense pool quantity threshold value.
The charge pool number threshold refers to the number of virtual charge pools in an available state preset by a service person, and may be an integer value such as 4, 5, 8, and specifically may be determined according to a service requirement.
The second remaining charge refers to a total remaining charge in the virtual charge pool in an available state.
After obtaining the available number of the virtual cost pool in an available state from the plurality of virtual cost pools, the available number may be compared to a cost pool number threshold.
When the available number is less than the charge pool number threshold, a second remaining charge for the virtual charge pool in the available state may be obtained and step 215 is performed.
Step 215: and under the condition that the second residual expense is greater than an expense threshold value, creating a plurality of new virtual expense pools according to the second residual expense.
The fee threshold refers to a threshold of the remaining fee preset by the service personnel, and a specific value of the fee threshold may be determined according to the service requirement, which is not limited by the embodiment of the present disclosure.
After obtaining a second remaining cost for the virtual cost pool in the available state, the second remaining cost may be compared to a cost threshold.
And when the second residual cost is less than or equal to the cost threshold, not triggering the virtual cost pool to be re-divided, and continuously consuming the residual cost in the virtual cost pool in the residual available state.
And when the second remaining cost is greater than the cost threshold, a repartition of the virtual cost pool may be triggered to create a plurality of new virtual cost pools.
In the case that the second remaining charge is greater than the charge threshold, step 216 is performed after creating a plurality of new virtual charge pools according to the second remaining charge.
Step 216: allocating the second remaining cost to a plurality of the new virtual cost pools.
After the plurality of new virtual charge pools are created, the second remaining charge can be distributed to the plurality of new virtual charge pools, so that the problem that the system is stressed due to the fact that the advertisement charge is deducted from one virtual charge pool by the multi-settlement account due to the fact that too few virtual charge pools remain can be avoided.
The advertisement fee settlement method provided by the embodiment of the disclosure includes creating a plurality of virtual fee pools according to the total payment fee of a business party, wherein each virtual fee pool corresponds to a virtual pool identifier, the business party comprises a plurality of settlement accounts, each settlement account corresponds to an account identifier, the total payment fee is distributed to the plurality of virtual fee pools, a mapping relation between at least one account identifier and one virtual pool identifier is established by utilizing a consistent hash algorithm, when the advertisement fee generated by a first settlement account needs to be settled, a first account identifier of the first settlement account and the fee to be settled corresponding to the first settlement account are obtained, a first virtual pool identifier corresponding to the first account identifier is obtained according to the mapping relation between the account identifier and the virtual pool identifier, and a first residual fee in the first virtual fee pool corresponding to the first virtual pool identifier is obtained, and when the first residual expense is more than or equal to the expense to be settled, deducting the expense to be settled from the first virtual expense pool, when the first residual expense is less than the expense to be settled, deducting the first residual expense from the first virtual expense pool, calculating the difference expense between the expense to be settled and the first residual expense, acquiring a second virtual expense pool, and deducting the difference expense from the second virtual expense pool. According to the embodiment of the disclosure, a plurality of virtual expense pools are created, and after the fund consumption in a certain virtual expense pool is finished, the next available virtual expense pool can be automatically searched, so that the advertisement expenses generated by a plurality of shops can be prevented from being deducted from one fund pool, the pressure on the system can be reduced, and the probability of deduction failure and overtime is reduced.
EXAMPLE III
Referring to fig. 3, a schematic structural diagram of an advertisement fee settlement apparatus provided in an embodiment of the present disclosure is shown, and the fee settlement apparatus may specifically include the following modules:
a virtual fee pool creating module 301, configured to create a plurality of virtual fee pools according to the total payment fee of the service party; each virtual charge pool corresponds to a virtual pool identifier, the service party comprises a plurality of settlement accounts, and each settlement account corresponds to an account identifier;
a total payment fee distribution module 302 for distributing the total payment fee to the plurality of virtual fee pools;
a mapping relationship establishing module 303, configured to establish a mapping relationship between at least one account identifier and one virtual pool identifier by using a consistent hash algorithm;
a to-be-settled fee obtaining module 304, configured to obtain a first account identifier of a first settlement account and a to-be-settled fee corresponding to the first settlement account when an advertisement fee generated by the first settlement account needs to be settled;
a first pool identifier obtaining module 305, configured to obtain, according to a mapping relationship between an account identifier and a virtual pool identifier, a first virtual pool identifier corresponding to the first account identifier;
a first remaining cost obtaining module 306, configured to obtain a first remaining cost in a first virtual cost pool corresponding to the first virtual pool identifier;
a to-be-settled fee deduction module 307, configured to deduct the to-be-settled fee from the first virtual fee pool when the first remaining fee is greater than or equal to the to-be-settled fee;
a first remaining fee deduction module 308, configured to deduct the first remaining fee from the first virtual fee pool when the first remaining fee is less than the fee to be settled;
a difference charge calculation module 309, configured to calculate a difference charge between the charge to be settled and the first remaining charge;
a second virtual pool obtaining module 310, configured to obtain a second virtual cost pool;
a difference fee deduction module 311, configured to deduct the difference fee from the second virtual fee pool.
The advertisement fee settlement device provided by the embodiment of the disclosure establishes a plurality of virtual fee pools according to the total payment fee of a business party, each virtual fee pool corresponds to one virtual pool identifier, the business party comprises a plurality of settlement accounts, each settlement account corresponds to one account identifier, the total payment fee is distributed to the plurality of virtual fee pools, a mapping relation between at least one account identifier and one virtual pool identifier is established by utilizing a consistent hash algorithm, when the advertisement fee generated by a first settlement account needs to be settled, a first account identifier of the first settlement account and the fee to be settled corresponding to the first settlement account are acquired, a first virtual pool identifier corresponding to the first account identifier is acquired according to the mapping relation between the account identifier and the virtual pool identifier, and a first residual fee in the first virtual fee pool corresponding to the first virtual pool identifier is acquired, and when the first residual expense is more than or equal to the expense to be settled, deducting the expense to be settled from the first virtual expense pool, when the first residual expense is less than the expense to be settled, deducting the first residual expense from the first virtual expense pool, calculating the difference expense between the expense to be settled and the first residual expense, acquiring a second virtual expense pool, and deducting the difference expense from the second virtual expense pool. According to the embodiment of the disclosure, a plurality of virtual expense pools are created, and after the fund consumption in a certain virtual expense pool is finished, the next available virtual expense pool can be automatically searched, so that the advertisement expenses generated by a plurality of shops can be prevented from being deducted from one fund pool, the pressure on the system can be reduced, and the probability of deduction failure and overtime is reduced.
Example four
Referring to fig. 4, a schematic structural diagram of an advertisement fee settlement apparatus provided in an embodiment of the present disclosure is shown, and the fee settlement apparatus may specifically include the following modules:
a virtual fee pool creating module 401, configured to create a plurality of virtual fee pools according to the total payment fee of the service party; each virtual charge pool corresponds to a virtual pool identifier, the service party comprises a plurality of settlement accounts, and each settlement account corresponds to an account identifier;
a total payment fee distribution module 402 for distributing the total payment fee to the plurality of virtual fee pools;
a mapping relationship establishing module 403, configured to establish a mapping relationship between at least one account identifier and one virtual pool identifier by using a consistent hash algorithm;
a to-be-settled fee obtaining module 404, configured to obtain a first account identifier of a first settlement account and a to-be-settled fee corresponding to the first settlement account when an advertisement fee generated by the first settlement account needs to be settled;
a first pool identifier obtaining module 405, configured to obtain, according to a mapping relationship between an account identifier and a virtual pool identifier, a first virtual pool identifier corresponding to the first account identifier;
a first remaining cost obtaining module 406, configured to obtain a first remaining cost in a first virtual cost pool corresponding to the first virtual pool identifier;
a to-be-settled fee deduction module 407, configured to deduct the to-be-settled fee from the first virtual fee pool when the first remaining fee is greater than or equal to the to-be-settled fee;
a first remaining fee deduction module 408, configured to deduct the first remaining fee from the first virtual fee pool when the first remaining fee is less than the fee to be settled;
an unavailable state marking module 409, configured to mark the state of the first virtual cost pool as an unavailable state;
a differential charge calculation module 410 for calculating a differential charge between the charge to be settled and the first remaining charge;
a second virtual pool obtaining module 411, configured to obtain a second virtual cost pool;
a difference fee deduction module 412, configured to deduct the difference fee from the second virtual fee pool;
an available amount obtaining module 413, configured to obtain an available amount of a virtual charge pool in an available state from among the plurality of virtual charge pools;
a second remaining charge obtaining module 414, configured to obtain a second remaining charge of the virtual charge pool in an available state if the available number is smaller than the charge pool number threshold;
a new virtual pool creating module 415, configured to create a plurality of new virtual pool pools according to the second remaining cost if the second remaining cost is greater than a cost threshold;
a second remaining charge allocation module 416, configured to allocate the second remaining charge to a plurality of the new virtual charge pools.
Optionally, the second virtual pool acquiring module 411 includes:
a second virtual pool obtaining sub-module 4111, configured to obtain, according to a tag state of a virtual cost pool, one virtual cost pool from the multiple virtual cost pools, where the tag state of the virtual cost pool is an available state, as the second virtual cost pool.
The advertisement fee settlement device provided by the embodiment of the disclosure establishes a plurality of virtual fee pools according to the total payment fee of a business party, each virtual fee pool corresponds to one virtual pool identifier, the business party comprises a plurality of settlement accounts, each settlement account corresponds to one account identifier, the total payment fee is distributed to the plurality of virtual fee pools, a mapping relation between at least one account identifier and one virtual pool identifier is established by utilizing a consistent hash algorithm, when the advertisement fee generated by a first settlement account needs to be settled, a first account identifier of the first settlement account and the fee to be settled corresponding to the first settlement account are acquired, a first virtual pool identifier corresponding to the first account identifier is acquired according to the mapping relation between the account identifier and the virtual pool identifier, and a first residual fee in the first virtual fee pool corresponding to the first virtual pool identifier is acquired, and when the first residual expense is more than or equal to the expense to be settled, deducting the expense to be settled from the first virtual expense pool, when the first residual expense is less than the expense to be settled, deducting the first residual expense from the first virtual expense pool, calculating the difference expense between the expense to be settled and the first residual expense, acquiring a second virtual expense pool, and deducting the difference expense from the second virtual expense pool. According to the embodiment of the disclosure, a plurality of virtual expense pools are created, and after the fund consumption in a certain virtual expense pool is finished, the next available virtual expense pool can be automatically searched, so that the advertisement expenses generated by a plurality of shops can be prevented from being deducted from one fund pool, the pressure on the system can be reduced, and the probability of deduction failure and overtime is reduced.
An embodiment of the present disclosure also provides an electronic device, including: a processor, a memory, and a computer program stored on the memory and executable on the processor, the processor implementing the advertisement fee settlement method of the foregoing embodiment when executing the program.
Embodiments of the present disclosure also provide a readable storage medium, in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the advertisement fee settlement method of the foregoing embodiments.
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.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, embodiments of the present disclosure are not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the embodiments of the present disclosure as described herein, and any descriptions of specific languages are provided above to disclose the best modes of the embodiments of the present disclosure.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the disclosure may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the disclosure, various features of the embodiments of the disclosure are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that is, claimed embodiments of the disclosure require more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of an embodiment of this disclosure.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
The various component embodiments of the disclosure may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be understood by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in a motion picture generating device according to an embodiment of the present disclosure. Embodiments of the present disclosure may also be implemented as an apparatus or device program for performing a portion or all of the methods described herein. Such programs implementing embodiments of the present disclosure may be stored on a computer readable medium or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit embodiments of the disclosure, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. Embodiments of the disclosure may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The above description is only for the purpose of illustrating the preferred embodiments of the present disclosure and is not to be construed as limiting the embodiments of the present disclosure, and any modifications, equivalents, improvements and the like that are made within the spirit and principle of the embodiments of the present disclosure are intended to be included within the scope of the embodiments of the present disclosure.
The above description is only a specific implementation of the embodiments of the present disclosure, but the scope of the embodiments of the present disclosure is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the embodiments of the present disclosure, and all the changes or substitutions should be covered by the scope of the embodiments of the present disclosure. Therefore, the protection scope of the embodiments of the present disclosure shall be subject to the protection scope of the claims.

Claims (6)

1. An advertisement fee settlement method, comprising:
creating a plurality of virtual charge pools according to the total payment charge of a service party; each virtual charge pool corresponds to a virtual pool identifier, the service party comprises a plurality of settlement accounts, and each settlement account corresponds to an account identifier;
allocating the total payment fee to the plurality of virtual fee pools;
establishing a mapping relation between at least one account identifier and one virtual pool identifier by using a consistent hash algorithm;
when the advertisement expense generated by a first settlement account needs to be settled, acquiring a first account identifier of the first settlement account and the expense to be settled corresponding to the first settlement account;
acquiring a first virtual pool identifier corresponding to the first account identifier according to a mapping relation between the account identifier and the virtual pool identifier;
acquiring first residual cost in a first virtual cost pool corresponding to the first virtual pool identifier;
when the first residual expense is more than or equal to the expense to be settled, deducting the expense to be settled from the first virtual expense pool;
when the first residual charge is less than the charge to be settled, deducting the first residual charge from the first virtual charge pool;
calculating a differential charge between the charge to be settled and the first remaining charge;
acquiring a second virtual expense pool;
deducting the differential cost from the second virtual cost pool;
acquiring the available number of the virtual expense pools in an available state in a plurality of virtual expense pools;
acquiring a second remaining charge of the virtual charge pool in an available state under the condition that the available number is smaller than a charge pool number threshold;
under the condition that the second residual cost is larger than a cost threshold value, a plurality of new virtual cost pools are created according to the second residual cost;
allocating the second remaining cost to a plurality of the new virtual cost pools.
2. The method of claim 1, wherein after deducting the first remaining fee from the first virtual fee pool when the first remaining fee is less than the fee to be settled, further comprising:
marking a status of the first virtual expense pool as an unavailable status;
the obtaining a second virtual cost pool includes:
and acquiring a virtual expense pool with a mark state as an available state from the plurality of virtual expense pools as the second virtual expense pool according to the mark state of the virtual expense pool.
3. An advertisement fee settlement apparatus, comprising:
the virtual charge pool creating module is used for creating a plurality of virtual charge pools according to the total payment charge of the service party; each virtual charge pool corresponds to a virtual pool identifier, the service party comprises a plurality of settlement accounts, and each settlement account corresponds to an account identifier;
a total payment fee distribution module for distributing the total payment fee to the plurality of virtual fee pools;
the mapping relation establishing module is used for establishing a mapping relation between at least one account identifier and one virtual pool identifier by utilizing a consistent hash algorithm;
the system comprises a to-be-settled fee acquisition module, a to-be-settled fee acquisition module and a to-be-settled fee acquisition module, wherein the to-be-settled fee acquisition module is used for acquiring a first account identifier of a first settlement account and the to-be-settled fee corresponding to the first settlement account when the advertisement fee generated by the first settlement account needs to be settled;
the first pool identification acquisition module is used for acquiring a first virtual pool identification corresponding to the first account identification according to the mapping relation between the account identification and the virtual pool identification;
a first remaining charge obtaining module, configured to obtain a first remaining charge in a first virtual charge pool corresponding to the first virtual pool identifier;
the charge deduction module to be settled is used for deducting the charge to be settled from the first virtual charge pool when the first residual charge is more than or equal to the charge to be settled;
the first residual fee deduction module is used for deducting the first residual fee from the first virtual fee pool when the first residual fee is less than the fee to be settled;
a difference charge calculation module for calculating a difference charge between the charge to be settled and the first remaining charge;
the second virtual pool acquisition module is used for acquiring a second virtual expense pool;
a difference fee deduction module, configured to deduct the difference fee from the second virtual fee pool;
an available quantity obtaining module, configured to obtain an available quantity of a virtual expense pool in an available state from among the plurality of virtual expense pools;
the second residual charge obtaining module is used for obtaining the second residual charge of the virtual charge pool in the available state under the condition that the available number is smaller than the charge pool number threshold value;
a new virtual pool creating module, configured to create a plurality of new virtual pool pools according to the second remaining cost when the second remaining cost is greater than a cost threshold;
a second remaining charge allocation module for allocating the second remaining charge to the plurality of new virtual charge pools.
4. The apparatus of claim 3, further comprising:
an unavailable state marking module, configured to mark a state of the first virtual expense pool as an unavailable state;
the second virtual pool acquisition module includes:
and the second virtual pool acquisition submodule is used for acquiring a virtual cost pool with an available state as the second virtual cost pool from the plurality of virtual cost pools according to the mark state of the virtual cost pool.
5. An electronic device, comprising:
processor, memory and computer program stored on the memory and executable on the processor, which when executed by the processor implements the method of settlement of advertising fees according to any one of claims 1 to 2.
6. A readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the advertisement fee settlement method of any one of method claims 1 to 2.
CN201911061347.6A 2019-11-01 2019-11-01 Advertisement fee settlement method, device, electronic equipment and storage medium Active CN110992077B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911061347.6A CN110992077B (en) 2019-11-01 2019-11-01 Advertisement fee settlement method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911061347.6A CN110992077B (en) 2019-11-01 2019-11-01 Advertisement fee settlement method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110992077A CN110992077A (en) 2020-04-10
CN110992077B true CN110992077B (en) 2022-01-14

Family

ID=70082980

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911061347.6A Active CN110992077B (en) 2019-11-01 2019-11-01 Advertisement fee settlement method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110992077B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112465537A (en) * 2020-10-27 2021-03-09 北京智能广宣科技有限公司 Automatic settling system and method for cinema advertisement playing cost
CN112488758A (en) * 2020-11-30 2021-03-12 上海酷量信息技术有限公司 Multi-platform advertisement fee management system and method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101271564A (en) * 2008-04-30 2008-09-24 中国工商银行股份有限公司 System and method for processing client protocol capital pool data based on network
CN105224392A (en) * 2015-10-13 2016-01-06 中国联合网络通信集团有限公司 A kind of virtual computing resource quota management method and platform
CN106228359A (en) * 2016-08-12 2016-12-14 北京东方车云信息技术有限公司 The billing settlement method of driver's client, taxi take system server and related system
CN107222430A (en) * 2016-03-22 2017-09-29 阿里巴巴集团控股有限公司 A kind of resource allocation methods and device
CN108985828A (en) * 2018-07-04 2018-12-11 厦门美柚信息科技有限公司 Method, system, electronic equipment and its medium for preventing advertising expenditure excess from deducting
CN109242526A (en) * 2018-07-18 2019-01-18 北京三快在线科技有限公司 A kind of advertisement settlement method and device
CN109670957A (en) * 2018-12-24 2019-04-23 恒生电子股份有限公司 The processing method and processing device of fictitious assets data
CN110033361A (en) * 2019-03-26 2019-07-19 阿里巴巴集团控股有限公司 A kind of method and apparatus that resource is produced based on virtual set of books

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030311A (en) * 2007-04-16 2007-09-05 中国工商银行股份有限公司 One to multiple account processing system
US20170169404A1 (en) * 2015-12-10 2017-06-15 Kasturi Mudulodu System and method for sub-merchant funding

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101271564A (en) * 2008-04-30 2008-09-24 中国工商银行股份有限公司 System and method for processing client protocol capital pool data based on network
CN105224392A (en) * 2015-10-13 2016-01-06 中国联合网络通信集团有限公司 A kind of virtual computing resource quota management method and platform
CN107222430A (en) * 2016-03-22 2017-09-29 阿里巴巴集团控股有限公司 A kind of resource allocation methods and device
CN106228359A (en) * 2016-08-12 2016-12-14 北京东方车云信息技术有限公司 The billing settlement method of driver's client, taxi take system server and related system
CN108985828A (en) * 2018-07-04 2018-12-11 厦门美柚信息科技有限公司 Method, system, electronic equipment and its medium for preventing advertising expenditure excess from deducting
CN109242526A (en) * 2018-07-18 2019-01-18 北京三快在线科技有限公司 A kind of advertisement settlement method and device
CN109670957A (en) * 2018-12-24 2019-04-23 恒生电子股份有限公司 The processing method and processing device of fictitious assets data
CN110033361A (en) * 2019-03-26 2019-07-19 阿里巴巴集团控股有限公司 A kind of method and apparatus that resource is produced based on virtual set of books

Also Published As

Publication number Publication date
CN110992077A (en) 2020-04-10

Similar Documents

Publication Publication Date Title
CN110992077B (en) Advertisement fee settlement method, device, electronic equipment and storage medium
CN109191202B (en) Resource allocation method, device, electronic equipment and computer readable storage medium
CN108154298B (en) Distribution task allocation method and device, electronic equipment and computer storage medium
CN106779910B (en) Distribution order distribution method and device
CN109919551B (en) Logistics service providing method and device, electronic equipment and readable storage medium
CN110648047A (en) Task scheduling method, device, system and storage medium
CN109544015A (en) A kind of method for allocating tasks and relevant device based on data processing
CN111401703B (en) Resource information scheduling method and device
CN111190910B (en) Method and device for processing quota resources, electronic equipment and readable storage medium
CN112651739A (en) Resource transfer method, device, electronic equipment and storage medium
CN112446793A (en) Client insurance business data query method and device and electronic equipment
CN112837128B (en) Order assignment method, order assignment device, computer equipment and computer readable storage medium
CN108665177A (en) Resource allocation methods and device
CN111429056B (en) Express item material sales method, device, equipment and storage medium
CN114493772A (en) Order processing method and device, electronic equipment and readable storage medium
CN112819508B (en) Electronic resource allocation method and device
CN114493756A (en) Resource management method, device, equipment and storage medium
CN110738495A (en) Member resource allocation method and device
CN112241855A (en) Inventory management method, inventory management device, storage medium and electronic equipment
CN104834570A (en) Cloud computing platform resource management method and cloud computing platform resource management system based on resource pools
CN111292143A (en) Electronic invoice issuing method, device and computer system
KR101744315B1 (en) Method of paying credit account for group and apparatus thereof
CN111080426A (en) Fee distribution method and device, electronic equipment and computer readable storage medium
CN111179004A (en) Data processing method, device, server, driver terminal and storage medium
CN112101720B (en) Method and system for distributing group resources

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
GR01 Patent grant
GR01 Patent grant