CN110415096A - A kind of virtual assets settlement method, device and computer equipment - Google Patents

A kind of virtual assets settlement method, device and computer equipment Download PDF

Info

Publication number
CN110415096A
CN110415096A CN201910695571.4A CN201910695571A CN110415096A CN 110415096 A CN110415096 A CN 110415096A CN 201910695571 A CN201910695571 A CN 201910695571A CN 110415096 A CN110415096 A CN 110415096A
Authority
CN
China
Prior art keywords
virtual assets
settlement
account
event
client
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
CN201910695571.4A
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.)
Guangzhou Huya Information Technology Co Ltd
Original Assignee
Guangzhou Huya Information 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 Guangzhou Huya Information Technology Co Ltd filed Critical Guangzhou Huya Information Technology Co Ltd
Priority to CN201910695571.4A priority Critical patent/CN110415096A/en
Publication of CN110415096A publication Critical patent/CN110415096A/en
Pending legal-status Critical Current

Links

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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/12Accounting
    • G06Q40/125Finance or payroll

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

This specification provides a kind of virtual assets settlement method, device and computer equipment, which comprises obtains the specified settlement time of current period;The specified settlement time is determined from historical traffic time point at a low ebb;When the specified settlement time of current period reaches, the virtual assets of all accounts are settled accounts, and update the checkout result of the virtual assets of the account.The virtual assets of all accounts are traversed when historical traffic time point at a low ebb within the current balance period, it settles accounts the virtual assets of all accounts and updates and store checkout result, the clearing of all users are carried out by Automatic-searching idle, to not have to stop the scattered clearing of user independently inquired, the demand for making full use of server resource and improving user experience is realized.

Description

A kind of virtual assets settlement method, device and computer equipment
Technical field
This specification is related to technical field of data processing more particularly to a kind of virtual assets settlement method, device and calculating Machine equipment.
Background technique
In virtual assets management, user can inquire the corresponding virtual assets situation of itself account by software platform. But virtual assets management system needs timing to be settled accounts and updated, guarantee user query to virtual assets situation be it is current most New data.In traditional settlement operations, the limitation based on server resource can stop receiving in specified settlement time The inquiry instruction of all user query current virtual properties, is just opened until clearing finish, and this measure substantially reduces user experience.
Summary of the invention
To overcome the problems in correlation technique, present description provides a kind of virtual assets settlement method, device and Computer equipment.
According to this specification embodiment in a first aspect, providing a kind of virtual assets settlement method, which comprises
Obtain the specified settlement time of current period;The specified settlement time is at a low ebb based on historical traffic It is determined in time point;
When the settlement time that current period is specified reaches, the virtual assets of all accounts are settled accounts, and update institute State the checkout result of the virtual assets of account.
According to the second aspect of this specification embodiment, a kind of method progress virtual assets knot based on first aspect is provided The method of calculation, comprising:
When triggering real time settlement event, real time settlement instruction is sent to server-side, so that server-side is to the client Virtual assets settled accounts, update the checkout result of the virtual assets of the account;Wherein, the real time settlement event includes Event, the client of client query virtual assets change the event of virtual assets, give virtual assets to other clients Event or the event for receiving the virtual assets that other clients are given.
According to the third aspect of this specification embodiment, a kind of virtual assets settlement system, including server-side and visitor are provided Family end;
The server-side is used for when client triggers real time settlement event, is carried out to the virtual assets of the client real When settle accounts, and the checkout result of update is sent to client;Wherein, the real time settlement event includes that client query is virtual The event of property, gives the event of virtual assets to other clients or receives other at the event of client change virtual assets The event for the virtual assets that client is given;
The client is for sending specified operation requests to trigger real time settlement event.
According to the fourth aspect of this specification embodiment, a kind of virtual assets checkout apparatus is provided, comprising:
Module is obtained, for obtaining the specified settlement time of current period;The specified settlement time is from historical traffic It is determined in time point at a low ebb;
Settlement module, for being carried out to the virtual assets of all accounts in the specified settlement time arrival of current period Clearing, and update the checkout result of the virtual assets of the account.
According to the 5th of this specification embodiment the aspect, provide a kind of based on fourth aspect described device progress virtual assets The device of clearing, comprising:
Real time settlement module, for sending specified operation requests to trigger real time settlement event, so that server-side is to described The virtual assets of client carry out real clearing, update the checkout result of the virtual assets of the account;Wherein, the real time settlement Event includes the event of client query virtual assets, the event of client change virtual assets, to other clients gives void The event of quasi- property or the event for receiving the virtual assets that other clients are given.
According to the 6th of this specification embodiment the aspect, a kind of computer equipment is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the step of realizing any of the above-described the method when the processor executes described program.
The technical solution that the embodiment of this specification provides can include the following benefits:
In this specification embodiment, traversal is all when historical traffic time point at a low ebb within the current balance period The virtual assets of account settle accounts the virtual assets of all accounts and update and store checkout result, simultaneously by Automatic-searching idle The clearing of all users are carried out in idle, to not have to the limitation because of server resource, are caused in the virtual assets to user Refusal receives the inquiry instruction of user when carrying out settlement operations, meets the need for making full use of server resource and improving user experience It asks.
It should be understood that above general description and following detailed description be only it is exemplary and illustrative, not This specification can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the reality for meeting this specification Example is applied, and is used to explain the principle of this specification together with specification.
Fig. 1 is a kind of this specification flow chart of virtual assets settlement method shown according to an exemplary embodiment.
Fig. 2A is the flow chart of this specification another virtual assets settlement method shown according to an exemplary embodiment.
Fig. 2 B is a kind of this specification application scenarios of virtual assets settlement method shown according to an exemplary embodiment Schematic diagram.
Fig. 2 C is a kind of this specification network structure of virtual assets settlement method shown according to an exemplary embodiment Figure.
Fig. 2 D is the network knot of this specification another virtual assets settlement method shown according to an exemplary embodiment Composition.
Fig. 3 is a kind of hardware structure diagram of computer equipment where this specification embodiment virtual assets checkout apparatus.
Fig. 4 is a kind of this specification block diagram of virtual assets checkout apparatus shown according to an exemplary embodiment.
Fig. 5 is block diagram of this specification according to Fig. 4 another virtual assets checkout apparatus for implementing to exemplify.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with this specification.On the contrary, they are only and such as institute The example of the consistent device and method of some aspects be described in detail in attached claims, this specification.
It is only to be not intended to be limiting this explanation merely for for the purpose of describing particular embodiments in the term that this specification uses Book.The "an" of used singular, " described " and "the" are also intended to packet in this specification and in the appended claims Most forms are included, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein is Refer to and includes that one or more associated any or all of project listed may combine.
It will be appreciated that though various information may be described using term first, second, third, etc. in this specification, but These information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not taking off In the case where this specification range, the first information can also be referred to as the second information, and similarly, the second information can also be claimed For the first information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... " or " in response to determination ".
In major social platform, the presence of virtual assets will increase the use viscosity of user.In general, in virtual wealth Produce management system in, user can by client send inquiry instruction to server-side come real-time query user itself or other people The corresponding virtual assets situation of account, server-side receive inquiry instruction then searched from database and update it is corresponding as a result, Updated virtual assets result is then returned to show into client.
However almost the moment is operating for the transaction of virtual assets, inquires all grasp along with the clearing of virtual assets each time Make, a large amount of server resource will be used when a large amount of user is performed simultaneously this operation, damages server overload even.Face The user huge to the order of magnitude, the server resource of quota can not meet the real-time query request of all users simultaneously, therefore empty Quasi- property management system needs at the appointed time to withdraw in clearing, and refusal receives the inquiry instruction of user, until institute is useful The virtual assets clearing at family finish just opens clothes again.Server-side settles accounts the virtual assets of all user accounts during this period And update, this measure are both the virtual assets situation in order to manage all users, also guarantee the virtual assets that subsequent user inquires Situation is current newest data, but sacrifices the real-time query demand of the user during withdrawing, causes bad user experience. Therefore, this specification provides a kind of virtual assets settlement method to solve problem above.
Next this specification embodiment is described in detail.
Embodiment one:
As shown in Figure 1, Fig. 1 is a kind of this specification virtual assets settlement method shown according to an exemplary embodiment Flow chart, comprising the following steps:
Step S101 obtains the specified settlement time of current period;The specified settlement time is in from historical traffic It is determined in the time point of low ebb;
Step S102 settles accounts the virtual assets of all accounts when the specified settlement time of current period reaches, And update the checkout result of the virtual assets of the account.
Method applied by embodiment one can be realized by the operation of server-side, according to different use demands and user Quantitative levels, operation backstage billing cycle can be designated as adaptation actual conditions value, such as billing cycle be one month or One week etc..After determining billing cycle, it can determine that settlement time, specified settlement time can be adjusted according to actual needs again It is whole.It in the present embodiment, at the time of the account settlement business free time, for example is to go through in order to save the computing power resource of server History portfolio time point at a low ebb determines specified settlement time, thus to the virtual assets of users all in system into Row clearing.In the present embodiment, historical traffic time point at a low ebb can be defined as idle, and in idle to all users The settlement method settled accounts can be defined as concentrating clearing.The present embodiment is concentrated by Automatic-searching idle and in idle Clearing, to not have to the limitation because of server resource, the inquiry for only meeting the progress of account settlement business and refusing to receive user refers to It enables, meets the needs of making full use of server resource and improving user experience.
In one embodiment, the historical traffic of a billing cycle may exist multiple low ebb time points, this explanation Book embodiment can choose several as specified settlement time, thus in different applied fields from multiple low ebb time points Can be according to use demand come customized specified settlement time under scape, a such as billing cycle is needed to settle accounts twice, is then selected more Two low ebb time points in a low ebb time point choose quantity and selection principle according to practical feelings as specified settlement time Depending on condition, this specification is not especially limited.
Such as in certain application scenarios, the low ebb time point of historical traffic is relatively stable, in one embodiment, is The operating quantity of each settlement operations of reduction can after determining specified settlement time using the low ebb time point of historical traffic To store the specified settlement time, the specified settlement time of each billing cycle is kept to immobilize.And it is answered certain With in scene, the low ebb time point of historical traffic may be different in different time sections, in order to make each settlement operations in idle Time range carries out, and in another embodiment, specified settlement time can be updated when update condition meets.Update condition can To be to reach specified time, it is also possible to will affect event of portfolio etc..For example, regularly updating specified settlement time Scene in, the low ebb time point that can use the historical traffic in a historical time section nearest apart from current time comes Determine specified settlement time.For another example, it in the case where will affect the event of portfolio, can use in historical time section The low ebb time point of historical traffic determines specified settlement time etc. during the event occurs.
The acquisition pattern of historical traffic be it is various, in one example, the history industry in each history billing cycle The acquisition pattern of business amount can be the history settlement accounts quantity by counting each time point in multiple history billing cycles to obtain , to obtain the historical traffic for meeting the clearing rule of multiple history billing cycles.The variation of history service quantity can lead to The embodiment of historical traffic curve is crossed, and the business that the characteristic point on curve can reflect the history service in the billing cycle is special Point, however, the portfolio of each low ebb time point reflection is not quite similar there are when multiple low ebb time points in historical traffic, In order to obtain the low ebb time point of reflection minimum traffic amount, it is least that reflecting history portfolio in multiple billing cycles can be chosen Low ebb time point has a large amount of at this time and fills if curve values minimum time point reflects that the account settlement business amount at the time point is minimum The server resource of foot is available.Therefore, in another embodiment, determine that the operation of specified settlement time can also be system The history settlement accounts quantity for counting each time point in multiple history billing cycles, obtains the history industry in each history billing cycle Business amount;The minimum time point of historical traffic average value in multiple history billing cycles is set as specified settlement time, is led to The average minimum for calculating the historical traffic of multiple history billing cycles is crossed, obtains the actual use rule for meeting server Idle carries out concentration clearing in idle to achieve the effect that few occupancy server resource, and it is useful not have to stopping reception institute The scattered tally order of the inquiry current virtual property at family, the user experience is improved.
Current period specified settlement time reach when, such as be the current balance period first day zero point reach when, The virtual assets of users all in system are settled accounts, after clearing, according to checkout result to the virtual wealth of the account Production is updated.
It is settled accounts about in virtual assets of the current period to account, may include to account in one embodiment The virtual assets in a upper period settled accounts, the virtual assets of current period are not settled accounts, reduce settlement operations number. In another embodiment, it can both include that the virtual assets in a upper period for account are settled accounts, and further include to current week The virtual assets of the account are settled accounts in the initial time to current time of phase, can be with for the settlement operations of current period Subsequent clearing are carried out according to last checkout result, reduce clearing calculation amount, to reduce settlement time.In order to Facilitate understanding, is properly termed as completely settling accounts for the checkout result for carrying out clearing acquisition to the virtual assets of the account in complete cycle As a result, being properly termed as partial balance knot for the checkout result for carrying out clearing acquisition to the virtual assets of the account in non-integer-period Fruit.The partial balance result that current period obtains can be used for use when next period calculating complete checkout result.
For settlement operations, in one embodiment, the virtual assets total value of the statistics account can be.For example, can be with It is to summarize the virtual assets in the account in the upper period, obtains virtual assets total value.Exemplary, virtual assets total value can To be by the quantity after virtual assets type statistics virtual assets, for example, N yacht, M golden beans and L fresh flower etc..Virtual wealth It produces total value to be also possible to for virtual assets to be converted into the total value after ideal money, for example, to can be 1w virtual for virtual assets total value Currency.In another embodiment, settlement operations include not only the virtual assets total value for counting the account, and can also include will be empty Quasi- property total value is converted into real money total value, and there is still a need for the void of inquiry corresponding account when avoiding subsequent progress realized property conversion Quasi- property total value again converts the virtual assets of the account, to reduce the inquiry operation before virtual assets conversion operation.Into One step, it can also be after obtaining real money total value, the bank account bound using real money total value pair with the account Execute transfer operation.Such as the virtual assets of the account are converted into after true property and shift this virtual assets, then resetting should The virtual assets total value of account.It is understood that transfer operation can be executed in clearing, can also meet in condition of transferring accounts Shi Zhihang.It is total virtual assets total value is converted into real money in the scene for executing transfer operation when the condition of transferring accounts meets After value, it can be updated to current granting state that can provide state.By taking the scene paid out wages as an example, reach in the time paid out wages When, if current granting state is that can provide state, operation of paying out wages can be executed.
In the interactive operation of virtual assets settlement system, client can be touched by sending various specified operation requests Send out real time settlement event.Client can be client device, be also possible to application program.Specified operation requests can be client The request of end inquiry virtual assets, the request of client change virtual assets, client give request of virtual assets etc..It can be with Understand, specifies operation requests other than it can trigger real time settlement event, also trigger finger indicated by specified operation requests Fixed operation.In one example, the server-side is also used to execute indicated by specified operation requests other than executing settlement operations Specified operation.For example, client can send specified operation requests to the server-side to trigger real time settlement event.
In another example, divide the work operation for the ease of the inside of server-side cluster, also for avoiding because of server function All operations that can limit and cannot complete this specification embodiment, specify specified operation indicated by operation requests can be by it His server-side executes, other server-sides can be business service end etc., configure with specific reference to request type and demand.For example, Client can send specified operation requests to other server-sides to trigger real time settlement event, and notify institute by other server-sides It states server-side and executes settlement operations.
The specified operation indicated by specified operation requests can be multiplicity, for example, giving virtually for client The request of property, what specified operation can be that this client gives virtual assets to other clients gives operation, is also possible to Operation is given in the reception that this client receives the virtual assets that other clients are given;Virtual assets are changed for client Request, specified operation, which can be this client and be supplemented with money or be bought to virtual assets, to be used.For server-side, no The specified operation requests of same type may include client query virtual assets, client change virtual assets (such as supplement with money, serve as Currency uses to buy), receive virtual assets that other clients are given or give virtual assets etc. to other clients to ask It asks, the specified operation requests of above multiple types can trigger settlement operations, it is possible to which it is real-time for collecting the generic operation Clearing event.When client triggers the real time settlement time, the checkout result of server-side is answered the operation at customer in response end and is updated, Therefore, in one embodiment, when client triggers real time settlement event, to the virtual wealth of the account of client binding Production is settled accounts, and updates the checkout result of the virtual assets of the account;Wherein, the real time settlement event includes client Inquire the event of virtual assets, the event of client change virtual assets, the event for giving to other clients virtual assets or Receive the event for the virtual assets that other clients are given.After client triggers real time settlement event, server-side triggering clearing Operation, fulfils clearing ahead of schedule before concentrating clearing, and real-time update triggers the corresponding checkout result of account of real time settlement event, keeps away Exempt from that the defect of checkout result can only could be updated after concentrating clearing.
Processing for each real time settlement event carries out may be used also when settlement operations every time in order to avoid repeating to settle accounts To set terms of settlement, in one embodiment, when being settled accounts every time to the virtual assets of account or after the completion of clearing, update The settlement time of the account;Execute the condition settled accounts to the virtual assets of account further include: the institute that last time updates State initial time of the settlement time earlier than current period of account.By judging the last time calculating time an of account and working as The morning and evening of the initial time in preceding period, judging result be earlier than when indicate that the account in current period did not carry out knot It calculates, it is therefore desirable to be settled accounts, avoid and account is carried out to repeat clearing.
In addition, in order to enable each real time settlement event orderly to carry out, can according to user client query elder generation Sequence carries out queuing clearing to each real time settlement event afterwards.For example, creation real time settlement event queue;Real time settlement will be triggered The account of the client of event is stored in real time settlement event queue by the sequencing of inquiry;Account quantity in the queue When greater than predetermined value, the account of laggard enqueue is deleted;Or the queue that creation is new, the account of laggard enqueue is transferred to newly In the queue of creation.By implement be lined up clearing can to avoid multiple accounts simultaneously settled accounts when because server-side settle accounts resource It is inadequate and reduce treatment effeciency.Will be greater than the laggard enqueue of account quantity predetermined value account delete purpose be, in order to Prevent server-side from being led to server overload by excessive inquiry request because the short time is inscribed.And in another example, it can pass through A queue is created, under a period of time that is delayed again after all real time settlement event handlings for waiting a upper queue is just handled The real time settlement event of one queue, while informing that client is settled accounts later.Therefore, in the present embodiment, by laggard enqueue Account be transferred in newly created queue after, the client of account into newly created queue binding sends delay inquiry Notice, guarantee the operation requests of user can sequentially operate and obtain feedback while, also avoid what server overloaded Situation.
In another example, when the account of a user is there are when the virtual assets of multiple types, as gold coin, coin or Diamond etc. can be identified by obtaining the virtual assets of account, so that the corresponding type of each virtual assets mark is virtual Property is identified according to virtual assets, is settled accounts to each virtual assets of the account, and update the virtual assets of each type Checkout result.It can be convenient for the virtual assets of server-side crawl specified type, there are multiple types by virtual assets mark Virtual assets in the case of, there are many clearing form, for example, can the virtual assets respectively to each type settle accounts, It can be settled accounts simultaneously, settlement efficiency can be accelerated using the instruction function that virtual assets identify.
Embodiment two:
It is as shown in Figure 2 A according to an exemplary implementation in order to illustrate the server-side process of real time settlement event that is triggered The flow chart of the method for another virtual assets clearing exemplified, can apply in client, which includes following step It is rapid:
Step S201, by sending specified operation requests to trigger real time settlement event, so that server-side is to client Virtual assets are settled accounts, and the checkout result of the virtual assets of the account is updated;Wherein, the real time settlement event includes visitor Event, the client of family end inquiry virtual assets change the event of virtual assets, give the thing of virtual assets to other clients Part or the event for receiving the virtual assets that other clients are given.
Method applied by embodiment two can realize that client can be client and set by the operation of client It is standby, it is also possible to application program.When the triggering of real time settlement event, client such as inquires, updates, gives to server-side transmission, The instruction of the real time settlements such as virtual assets is given in receiving, so that the real-time operation at server-side customer in response end is to the virtual of the client Property carries out real time settlement and updates corresponding checkout result, for the updated checkout result of client query.
For client, the response results of the specified operation requests can also be received.Response results may include referring to The corresponding processing result of fixed operation.In certain scenes, server-side can feed back checkout result, i.e. response results include clearing As a result;In other scenes, server-side will not feed back checkout result.
For inquiring the request of current virtual property result, client can send the current of the current logon account of inquiry The request of virtual assets result, so that server-side counts the account corresponding virtual assets numerical value and is updated, server-side is anti- The updated virtual assets numerical value of feedback is shown.Server-side counts the scope of statistics of the account corresponding virtual assets numerical value It can be, scope of statistics is determined according to the range of the inquiry request instruction of client transmission, for example, the model of inquiry instruction instruction It encloses and can be current period starting date to the starting date between current time, being also possible to a period and between the expiration date, It can be between the starting date and current time in a period, this specification embodiment is not especially limited.
When having served as multi-client while having triggered real time settlement event, in order to guarantee the real time settlement business of server-side orderly into Row can be sent the sequencing of real time settlement instruction by each client to be lined up clearing.In one embodiment, Ke Yiyou Following operation is realized in the operation of client, when sending real time settlement to server-side and instructing, so that server-side creates real time settlement Event queue;The account that the client of real time settlement event will be triggered is stored in the queue by the sequencing of inquiry;Described When account quantity in queue is greater than predetermined value, new queue is created, the account of laggard enqueue is transferred to newly created team The client of account binding in column, and into newly created queue sends the notice of delay inquiry;It receives and shows server-side The notice of the delay inquiry of transmission.Queue is settled accounts by setting, server-side is enabled to guarantee that the operation requests of user sequentially operate And while obtaining feedback, also avoiding server, there is a situation where overload.
Embodiment three:
In order to illustrate the client of this specification embodiment and the practical interactive process of server-side, below with a kind of virtual wealth The application scenarios schematic diagram for producing settlement system is illustrated, and is one kind shown according to an exemplary embodiment as shown in Figure 2 B The application scenarios schematic diagram of virtual assets settlement system, the virtual assets settlement system include server-side 21B, client 22B.In In Fig. 2 B, illustrated so that client 22B is the application program installed on mobile phone or mobile phone as an example.
Client 22B is used to send real time settlement request to server-side 21B to trigger real time settlement event.
Server-side 21B is used to carry out the virtual assets of client 22B when client 22B triggers real time settlement event Clearing, and update the checkout result of client 22B corresponding account;Wherein, the real time settlement event includes client 22B inquiry The events of virtual assets, the event of client 22B change virtual assets, the event for giving to other clients 22B virtual assets, Or receive the event for the virtual assets that other clients 22B gives.
Client 22B in embodiment three is by sending real time settlement request to server-side 21B, to trigger real time settlement Event, the real-time operation of server-side 21B customer in response end 22B simultaneously carries out real time settlement, to the virtual of client 22B corresponding account Property is settled accounts, and updates the virtual assets checkout result of the account, for the updated checkout result of client query.
Example IV:
Next illustrate the interactive process for concentrating clearing, with an application example with a kind of net of virtual assets settlement system Network structure chart carries out server-side the process of clearing is concentrated to be illustrated, and server-side includes cache server 21C, account settlement server 22C and database 23C.
It as shown in Figure 2 C, is a kind of network structure of virtual assets settlement system shown according to an exemplary embodiment Figure, interactive process are as described below:
When virtual assets a plurality of types of there are multiple accounts, account settlement server 22C is useful from database 23C acquisition institute It is bent to obtain the corresponding historical traffic of each virtual assets ID mark from database 23C for family ID mark and virtual assets ID mark Line is read billing cycle in the pre-set configuration file of operation personnel from itself, by calculating in multiple billing cycles The average minimum of historical traffic curve is determined as concentrating the customized settlement time Custom time of clearing, this time quilt It is defined as idle, is that server resource occupies one of least time point, concentrate clearing will not be to causing in this time point Server overload.
Account settlement server 22C obtains the final updating time Modify of each virtual assets from cache server 21C simultaneously Time is obtained if cache server 21C is searched less than corresponding renewal time Modify time to database 23C, from certainly The specified settlement time Settle time of billing cycle and each billing cycle is read in the configuration file of body.It is settled accounts concentrating Customized settlement time Custom time when reaching, traverse the virtual assets situation of each user account, relatively more specified clearing Time Settle time and each user account correspond to the size of the renewal time Modify time of virtual assets to be tied Calculate judgement.
In order to guarantee that each billing cycle only carries out lump-sum settlement operation, in the corresponding type of a user account In virtual assets clearing judgement, when specified settlement time Settle time is less than or equal to renewal time Modify time, Account settlement server 22C judges that the type virtual assets of the account had carried out settlement operations, is turned after also not needing clearing Account;When specified settlement time Settle time is greater than renewal time Modify time, account settlement server 22C judges the account The type virtual assets do not carried out settlement operations, settled accounts, by checkout result and renewal time Modify time It updates and is sent to cache server 21C and cached.The hard of database 23C is sent by checkout result and renewal time simultaneously It is stored in disk, loses data after avoiding cache server 21C from shutting down.
In actual concentration settlement operations, it can be the virtual assets for first carrying out the corresponding multiple types of a user account Clearing, be also possible to first carry out the clearing of the virtual assets of the corresponding multiple user accounts of a virtual assets type, it is multiple The clearing of the virtual assets of type can be sequentially to be carried out respectively, is also possible to carry out simultaneously, the present embodiment is not construed as limiting.
Embodiment five:
This specification embodiment further includes concentrating clearing other than the concentration settlement operations that previous embodiment four describes On the basis of carry out real time settlement operation, in order to further illustrate the interactive process of this specification real time settlement embodiment, below With the network structure of another virtual assets settlement system shown by embodiment five interacting to client and server-side Journey is illustrated, and client includes user terminal 21D, and server-side includes service server 22D, account settlement server 23D, caching clothes Be engaged in device 24D and database 25D.
It as shown in Figure 2 D, is the network structure of another virtual assets settlement system shown according to an exemplary embodiment Figure, interactive process are as described below:
When user terminal 21D sends inquiry request to service server 22D, real time settlement event is triggered.Business service Device 22D obtains the subsidiary virtual assets ID mark and User ID mark of inquiry request, and according to the void of these two types of ID mark instruction The virtual assets situation of quasi- type of property and account inquiries user terminal 21D corresponding account, obtaining from cache server 24D should The final updating time Modify time of the type virtual assets of account, Modify time herein can be such as embodiment The time of concentration clearing and update, the real-time operation for being also possible to service server 22D response user terminal 21D shown in four are asked It asks, if user supplements with money, buys use, gives gifts to other people or receive other people and give gifts etc. and trigger and update virtual assets total value to more The new time.If cache server device 24D does not find corresponding virtual assets renewal time Modify time, to database 25D lookup makes it feed back corresponding virtual assets renewal time Modify time.
Service server 22D is obtained in the pre-set configuration file of operation personnel from account settlement server 23D simultaneously The specified settlement time Settle time of billing cycle and each billing cycle, compares the specified settlement time of current period The size of Settle time and last time renewal time Modify time.
When the specified settlement time Settle time of current period is less than or equal to renewal time Modify time, industry Business server 22D judges that the type virtual assets of the account had carried out settlement operations, transfers accounts after also not needing clearing.
When specified settlement time Settle time is greater than renewal time Modify time, service server 22D judgement The type virtual assets of the account did not carried out settlement operations, were settled accounts, that is to say, that either concentrate clearing also It is real time settlement, lump-sum settlement operation is only carried out in a billing cycle.Therefore service server 22D marks virtual assets ID Know and User ID mark be sent to account settlement server 23D, account settlement server 23D to the virtual assets of these two types of ID mark instruction into Row clearing, checkout result and renewal time Modify time are updated and are sent to cache server 24D cache, guarantee All types of virtual assets of all users carried out settlement operations in each billing cycle.Cache server 24D simultaneously Checkout result and renewal time are sent in the hard disk of database 25D and stored, loses number after avoiding cache server 24D from shutting down According to.
Cache server 24D also request by feedback query at this time, according to the subsidiary virtual assets mark of inquiry request and user The currently stored virtual assets numerical value of the type virtual assets of the mark inquiry account.Wherein, currently stored virtual wealth Producing numerical value is account settlement server 23D according to inquiry request and its subsidiary virtual assets mark and user identifier, should to the account The virtual assets of type are transmitted to cache server 24D's after being counted.Content instruction of the scope of statistics by inquiry request, example Such as, the range of inquiry instruction instruction can be current period starting date between current time, being also possible to a period Begin to be also possible between the starting date and current time in a period, the present embodiment is not especially limited between day and expiration date.
It is searched if cache server 24D inquiry is had no result to database 25D, returns to such of the account in database 25D It is transmitted to service server 22D after the currently stored virtual assets numerical value of type virtual assets, so that service server 22D will work as The virtual assets numerical value of preceding storage is transmitted to user terminal 21D.
The checkout result of this implementation can be user's active inquiry or change (such as self inquire, supplement with money, using, give Deng operation) itself virtual assets triggering settlement operations checkout result, be also possible to other users and query or change (such as by other people Inquiry the operation such as gives by other people) checkout results of user's virtual assets triggering settlement operations, this embodiment is not limited.
Corresponding with the embodiment of preceding method, this specification additionally provides virtual assets checkout apparatus and its applied The embodiment of terminal.
The embodiment of this specification virtual assets checkout apparatus can be applied on a computing device, such as server or end End equipment.Installation practice can also be realized by software realization by way of hardware or software and hardware combining.With soft It is to be deposited by the processor of file process where it by non-volatile as the device on a logical meaning for part is realized Corresponding computer program instructions are read into memory what operation was formed in reservoir.For hardware view, as shown in figure 3, being A kind of hardware structure diagram of computer equipment where this specification embodiment virtual assets checkout apparatus, in addition to place shown in Fig. 3 It manages except device 310, memory 330, network interface 320 and nonvolatile memory 340, virtual assets clearing dress in embodiment The server or electronic equipment where 331 are set, can also include that other are hard generally according to the actual functional capability of the computer equipment Part repeats no more this.
Embodiment six:
As shown in figure 4, Fig. 4 is a kind of this specification virtual assets checkout apparatus shown according to an exemplary embodiment Block diagram, described device include:
Module 41 is obtained, for obtaining the specified settlement time of current period;The specified settlement time is from history service It measures in time point at a low ebb and determines.
Settlement module 42, in the specified settlement time arrival of current period, to the virtual assets of all accounts into Row clearing, and update the checkout result of the virtual assets of the account.
The virtual assets checkout apparatus of the present embodiment six, the specified settlement time of current period can be determined by obtaining module 41 Historical traffic time point at a low ebb, settlement module 42 can within the current balance period historical traffic it is at a low ebb Time point when traverse the virtual assets of all accounts, settle accounts the virtual assets of all accounts and update and storage checkout result, The clearing of all users are carried out by Automatic-searching idle and in idle, to not have to the limitation because of server resource, are caused When the virtual assets to user carry out settlement operations, refusal receives the inquiry instruction of user, and satisfaction makes full use of server resource With the demand for improving user experience.
In one embodiment, the module 41 that obtains is also used to count going through for each time point in multiple history billing cycles History settlement accounts quantity obtains the historical traffic in each history billing cycle;By history industry in multiple history billing cycles Business amount average value minimum time point is set as the specified settlement time.
In one embodiment, there are the virtual assets of multiple types, the settlement module 42 to be also used to obtain for the account The virtual assets of the account are taken to identify;It being identified according to virtual assets, the virtual assets to the account per middle type are settled accounts, And update the checkout result of the virtual assets of each type.
In one embodiment, described device further includes real time settlement module 43 (being not shown in Fig. 4), for working as client When triggering real time settlement event, the virtual assets of the account of client binding are settled accounts, and update the account The checkout result of virtual assets;Wherein, the real time settlement event include the event of client query virtual assets, client more Change the event of virtual assets, give the event of virtual assets to other clients or receives the virtual wealth that other clients are given The event of production.
In one embodiment, described device further includes update module 44 (being not shown in Fig. 4), for every time to account Virtual assets when being settled accounts or after the completion of clearing, update the settlement time of the account;Wherein, it executes to the virtual of account The condition that property is settled accounts further include: the settlement time for the account that last time updates is earlier than this current billing cycle Initial time.
In one embodiment, described device further includes Queue module 45 (being not shown in Fig. 4), for creating real time settlement Event queue;The account that the client of real time settlement event will be triggered is stored in the queue by the sequencing of inquiry;Described When account quantity in queue is greater than predetermined value, the account of laggard enqueue is deleted;Or the queue that creation is new, it joins the team laggard The account of column is transferred in newly created queue.
In one embodiment, the Queue module 45 (being not shown in Fig. 4) is also used to turn the account of laggard enqueue After moving in newly created queue, the client of the account binding into newly created queue sends the notice of delay inquiry.
Embodiment seven:
In the scene that can carry out real time settlement, the present embodiment seven introduces a kind of virtual assets clearing from client angle Device, as shown in figure 5, Fig. 5 is the frame of another virtual assets checkout apparatus of this specification shown according to Fig. 4 embodiment six Figure, described device include:
Real time settlement module 51, for sending specified operation requests to trigger real time settlement event, so that server-side is to visitor The virtual assets at family end are settled accounts, and the checkout result of the virtual assets of the account is updated;Wherein, the real time settlement event The event of event, client change virtual assets including client query virtual assets gives virtual wealth to other clients The event of production or the event for receiving the virtual assets that other clients are given.
In one embodiment, when the enquiry module 51 is also used to send real time settlement instruction to server-side, so that clothes Business end creates real time settlement event queue;The account of the client of real time settlement event will be triggered by the sequencing deposit of inquiry The queue;When account quantity in the queue is greater than predetermined value, new queue is created, the account of laggard enqueue is turned It moves in newly created queue, and the client of the account binding into newly created queue sends the notice of delay inquiry.
In one embodiment, described device further includes display module 52 (being not shown in Fig. 5), for receiving and showing clothes The notice for the delay inquiry that business end is sent.
The virtual assets checkout apparatus of the present embodiment seven, real time settlement module 51 can send specified operation requests to touch It sends out real time settlement event and updates the virtual assets of the account so that server-side settles accounts the virtual assets of client Checkout result, for the updated checkout result of client query.
Embodiment eight:
Correspondingly, this specification also provides a kind of computer equipment, the computer equipment includes memory, processor And store the computer program that can be run on a memory and on a processor.
The function of modules and the realization process of effect are specifically detailed in the above method corresponding in above-mentioned computer equipment The realization process of step, it is similar that the realization principle and technical effect are similar, and details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The module of explanation may or may not be physically separated, and the component shown as module can be or can also be with It is not physical module, it can it is in one place, or may be distributed on multiple network modules.It can be according to actual The purpose for needing to select some or all of the modules therein to realize this specification scheme.Those of ordinary skill in the art are not In the case where making the creative labor, it can understand and implement.
Embodiment nine:
Correspondingly, this specification embodiment also provides a kind of computer storage medium, journey is stored in the storage medium The step of sequence instruction, any of the above-described the method is realized in described program instruction.
This specification embodiment can be used one or more wherein include the storage medium of program code (including but not Be limited to magnetic disk storage, CD-ROM, optical memory etc.) on the form of computer program product implemented.Computer is available to be deposited Storage media includes permanent and non-permanent, removable and non-removable media, can be accomplished by any method or technique letter Breath storage.Information can be computer readable instructions, data structure, the module of program or other data.The storage of computer is situated between The example of matter includes but is not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory Device (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), the read-only storage of electrically erasable Device (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices or any other non-biography Defeated medium, can be used for storage can be accessed by a computing device information.
The function of the program instruction stored in computer storage medium described in embodiment nine and the realization process tool of effect Body is detailed in the realization process that step is corresponded in the above method, and it is similar that the realization principle and technical effect are similar, and details are not described herein.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can With or may be advantageous.
Those skilled in the art will readily occur to this specification after considering specification and practicing the invention applied here Other embodiments.This specification is intended to cover any variations, uses, or adaptations of this specification, these modifications, Purposes or adaptive change follow the general principle of this specification and do not apply in the art including this specification Common knowledge or conventional techniques.The description and examples are only to be considered as illustrative, the true scope of this specification and Spirit is indicated by the following claims.
It should be understood that this specification is not limited to the precise structure that has been described above and shown in the drawings, And various modifications and changes may be made without departing from the scope thereof.The range of this specification is only limited by the attached claims System.
The foregoing is merely the preferred embodiments of this specification, all in this explanation not to limit this specification Within the spirit and principle of book, any modification, equivalent substitution, improvement and etc. done should be included in the model of this specification protection Within enclosing.

Claims (13)

1. a kind of virtual assets settlement method characterized by comprising
Obtain the specified settlement time of current period;The specified settlement time is from historical traffic time point at a low ebb It determines;
When the specified settlement time of current period reaches, the virtual assets of all accounts are settled accounts, and update the account The checkout result of the virtual assets at family.
2. the method according to claim 1, wherein the specified settlement time is set by following steps:
The history settlement accounts quantity for counting each time point in multiple history billing cycles, obtains in each history billing cycle Historical traffic;
The minimum time point of historical traffic average value in multiple history billing cycles is set as the specified settlement time.
3. the method according to claim 1, wherein there are the virtual assets of multiple types, reconciliations for the account The process that the virtual assets at family are settled accounts includes:
Obtain the virtual assets mark of the account;
It is identified, the account each type of virtual assets is settled accounts, and update the virtual of each type according to virtual assets The checkout result of property.
4. the method according to claim 1, wherein the method also includes:
When client triggers real time settlement event, the virtual assets of the account of client binding are settled accounts, and more The checkout result of the virtual assets of the new account;Wherein, the real time settlement event includes client query virtual assets Event, gives the event of virtual assets to other clients or receives other clients at the event of client change virtual assets The event for the virtual assets given.
5. according to the method described in claim 4, it is characterized in that, the method also includes: every time to the virtual assets of account When being settled accounts or after the completion of clearing, the settlement time of the account is updated;
Execute the condition settled accounts to the virtual assets of account further include: the settlement time for the account that last time updates Earlier than the initial time of current period.
6. according to the method described in claim 4, it is characterized in that, the method also includes:
Create real time settlement event queue;
The account that the client of real time settlement event will be triggered is stored in the queue by the sequencing of inquiry;
When account quantity in the queue is greater than predetermined value, the account of laggard enqueue is deleted;Or the queue that creation is new, The account of laggard enqueue is transferred in newly created queue.
7. according to the method described in claim 6, it is characterized in that, the account of laggard enqueue is transferred to newly created queue In after, further includes:
The client of account binding into newly created queue sends the notice of delay inquiry.
8. a kind of method for carrying out virtual assets clearing based on the described in any item methods of claim 4 to 7, which is characterized in that Include:
By sending specified operation requests to trigger real time settlement event, so that server-side ties the virtual assets of client It calculates, updates the checkout result of the virtual assets of the account;Wherein, the real time settlement event includes the virtual wealth of client query The event of production, gives the event of virtual assets to other clients or receives other visitors at the event of client change virtual assets The event for the virtual assets that family end is given.
9. according to the method described in claim 8, it is characterized in that, the method also includes:
When sending real time settlement instruction to server-side, so that server-side creates real time settlement event queue;Real time settlement will be triggered The account of the client of event is stored in the queue by the sequencing of inquiry;Account quantity in the queue is greater than predetermined When value, new queue is created, the account of laggard enqueue is transferred in newly created queue, and into newly created queue The client of account binding sends the notice of delay inquiry;
Receive and show the notice for the delay inquiry that server-side is sent.
10. a kind of virtual assets settlement system, which is characterized in that including client and server-side;
The client is for sending specified operation requests to trigger real time settlement event;
The server-side is used to settle accounts the virtual assets of the client when client triggers real time settlement event, And update the checkout result of the client corresponding account;Wherein, the real time settlement event includes the virtual wealth of client query The event of production, gives the event of virtual assets to other clients or receives other visitors at the event of client change virtual assets The event for the virtual assets that family end is given.
11. a kind of virtual assets checkout apparatus, which is characterized in that described device includes:
Module is obtained, for obtaining the specified settlement time of current period;The specified settlement time is in from historical traffic It is determined in the time point of low ebb;
Settlement module, for being settled accounts to the virtual assets of all accounts in the specified settlement time arrival of current period, And update the checkout result of the virtual assets of the account.
12. a kind of device for carrying out virtual assets clearing based on claim 11 described device, which is characterized in that described device packet It includes:
Real time settlement module, for sending specified operation requests to trigger real time settlement event, so that server-side is to the client The virtual assets at end are settled accounts, and the checkout result of the virtual assets of the account is updated;Wherein, the real time settlement event package It includes the event of client query virtual assets, the event of client change virtual assets, give virtual assets to other clients Event or receive the events of the virtual assets that other clients are given.
13. a kind of computer equipment characterized by comprising
Memory, processor and storage are on a memory and the computer program that can run on a processor, wherein the processing Device realizes the step of any one of claim 1 to 9 the method when executing described program.
CN201910695571.4A 2019-07-30 2019-07-30 A kind of virtual assets settlement method, device and computer equipment Pending CN110415096A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910695571.4A CN110415096A (en) 2019-07-30 2019-07-30 A kind of virtual assets settlement method, device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910695571.4A CN110415096A (en) 2019-07-30 2019-07-30 A kind of virtual assets settlement method, device and computer equipment

Publications (1)

Publication Number Publication Date
CN110415096A true CN110415096A (en) 2019-11-05

Family

ID=68364291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910695571.4A Pending CN110415096A (en) 2019-07-30 2019-07-30 A kind of virtual assets settlement method, device and computer equipment

Country Status (1)

Country Link
CN (1) CN110415096A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113592472A (en) * 2021-06-30 2021-11-02 北京健康之家科技有限公司 Pharmacy data processing method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080234038A1 (en) * 2006-03-27 2008-09-25 Huawei Technologies Co. Ltd. System and Method for Renting Virtual Articles
CN107123013A (en) * 2017-03-01 2017-09-01 阿里巴巴集团控股有限公司 Exchange method and device under line based on augmented reality
CN108777683A (en) * 2018-05-30 2018-11-09 腾讯科技(深圳)有限公司 Data processing method, device, terminal, application server and storage medium
CN108881936A (en) * 2018-07-18 2018-11-23 上海掌门科技有限公司 Resource share method, electronic equipment and medium is broadcast live
CN109377216A (en) * 2018-08-07 2019-02-22 阿里巴巴集团控股有限公司 A kind of method of commerce and system for depositing card based on centralization clearing and block chain

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080234038A1 (en) * 2006-03-27 2008-09-25 Huawei Technologies Co. Ltd. System and Method for Renting Virtual Articles
CN107123013A (en) * 2017-03-01 2017-09-01 阿里巴巴集团控股有限公司 Exchange method and device under line based on augmented reality
CN108777683A (en) * 2018-05-30 2018-11-09 腾讯科技(深圳)有限公司 Data processing method, device, terminal, application server and storage medium
CN108881936A (en) * 2018-07-18 2018-11-23 上海掌门科技有限公司 Resource share method, electronic equipment and medium is broadcast live
CN109377216A (en) * 2018-08-07 2019-02-22 阿里巴巴集团控股有限公司 A kind of method of commerce and system for depositing card based on centralization clearing and block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吕苏环: "有色冶化企业MES软件开发中数据库设计与应用", 《自动化技术与应用》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113592472A (en) * 2021-06-30 2021-11-02 北京健康之家科技有限公司 Pharmacy data processing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
Chen et al. Pricing and matching with forward-looking buyers and sellers
Benjaafar et al. Outsourcing via service competition
WO2020050873A1 (en) System and method for ride order dispatching and vehicle repositioning
CN107316167A (en) A kind of allocator and device based on shops position of distributors
KR20130021467A (en) Game system, and computer program and server device used therefor
CN109802998A (en) A kind of mist network cooperating scheduling motivational techniques and system based on game
CN103748602B (en) Pay non-settlement bargain
CN108364146A (en) Logistics distribution emulation mode and device
US20090287614A1 (en) Dynamic transferring of avatars between virtual universes
WO2019056006A1 (en) Method for producing a dynamically ordered queue
CN108574645A (en) A kind of array dispatching method and device
US20220020084A1 (en) Account assignment manager for collection and recovery
CN106600284A (en) Credit limit authorizing method and apparatus
CN109325671A (en) A kind of online method for allocating tasks of space-time crowdsourcing and system
CN109254726A (en) QoS guarantee method, control node and system in distributed memory system
CN110363621A (en) A kind of order information supplying system based on artificial intelligence technology
CN109426989A (en) A kind of subscription process method provides method for reserving service and equipment
CN106127464A (en) A kind of guest room payment management method and device
CN109711610A (en) A kind of order allocation method of 3D printing platform
CN110415096A (en) A kind of virtual assets settlement method, device and computer equipment
CN100388183C (en) Server load equalization method for implementing weighted minimum linked allocation
CN107886428A (en) A kind of method and payment clearance system for determining to pay clearing rate
Gupta et al. The Internet: A future tragedy of the commons?
CN112035681A (en) Credit card rate information determination method and device based on knowledge graph
CN112541610A (en) Robot control method, device, electronic device and storage 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191105