Movatterモバイル変換


[0]ホーム

URL:


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
CN110415096ACN201910695571.4ACN201910695571ACN110415096ACN 110415096 ACN110415096 ACN 110415096ACN 201910695571 ACN201910695571 ACN 201910695571ACN 110415096 ACN110415096 ACN 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 LtdfiledCriticalGuangzhou Huya Information Technology Co Ltd
Priority to CN201910695571.4ApriorityCriticalpatent/CN110415096A/en
Publication of CN110415096ApublicationCriticalpatent/CN110415096A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

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 calculatingMachine 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 mostNew data.In traditional settlement operations, the limitation based on server resource can stop receiving in specified settlement timeThe 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 andComputer 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 trafficIt 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 instituteState 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 providedThe 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 clientVirtual assets settled accounts, update the checkout result of the virtual assets of the account;Wherein, the real time settlement event includesEvent, the client of client query virtual assets change the event of virtual assets, give virtual assets to other clientsEvent 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 providedFamily end;
The server-side is used for when client triggers real time settlement event, is carried out to the virtual assets of the client realWhen settle accounts, and the checkout result of update is sent to client;Wherein, the real time settlement event includes that client query is virtualThe event of property, gives the event of virtual assets to other clients or receives other at the event of client change virtual assetsThe 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 trafficIt 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 periodClearing, 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 assetsThe 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 describedThe virtual assets of client carry out real clearing, update the checkout result of the virtual assets of the account;Wherein, the real time settlementEvent includes the event of client query virtual assets, the event of client change virtual assets, to other clients gives voidThe 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 periodThe virtual assets of account settle accounts the virtual assets of all accounts and update and store checkout result, simultaneously by Automatic-searching idleThe 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 userRefusal receives the inquiry instruction of user when carrying out settlement operations, meets the need for making full use of server resource and improving user experienceIt asks.
It should be understood that above general description and following detailed description be only it is exemplary and illustrative, notThis 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 specificationExample 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 embodimentSchematic diagram.
Fig. 2 C is a kind of this specification network structure of virtual assets settlement method shown according to an exemplary embodimentFigure.
Fig. 2 D is the network knot of this specification another virtual assets settlement method shown according to an exemplary embodimentComposition.
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 toWhen attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodimentDescribed in embodiment do not represent all embodiments consistent with this specification.On the contrary, they are only and such as instituteThe 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 usesBook.The "an" of used singular, " described " and "the" are also intended to packet in this specification and in the appended claimsMost forms are included, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein isRefer 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, butThese 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 offIn 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 claimedFor 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 wealthProduce management system in, user can by client send inquiry instruction to server-side come real-time query user itself or other peopleThe 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 timeMake, a large amount of server resource will be used when a large amount of user is performed simultaneously this operation, damages server overload even.FaceThe 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 emptyQuasi- property management system needs at the appointed time to withdraw in clearing, and refusal receives the inquiry instruction of user, until institute is usefulThe virtual assets clearing at family finish just opens clothes again.Server-side settles accounts the virtual assets of all user accounts during this periodAnd update, this measure are both the virtual assets situation in order to manage all users, also guarantee the virtual assets that subsequent user inquiresSituation 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 embodimentFlow chart, comprising the following steps:
Step S101 obtains the specified settlement time of current period;The specified settlement time is in from historical trafficIt 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 userQuantitative levels, operation backstage billing cycle can be designated as adaptation actual conditions value, such as billing cycle be one month orOne week etc..After determining billing cycle, it can determine that settlement time, specified settlement time can be adjusted according to actual needs againIt 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 serverHistory portfolio time point at a low ebb determines specified settlement time, thus to the virtual assets of users all in system intoRow clearing.In the present embodiment, historical traffic time point at a low ebb can be defined as idle, and in idle to all usersThe settlement method settled accounts can be defined as concentrating clearing.The present embodiment is concentrated by Automatic-searching idle and in idleClearing, 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 toIt 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 explanationBook embodiment can choose several as specified settlement time, thus in different applied fields from multiple low ebb time pointsCan 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 moreTwo low ebb time points in a low ebb time point choose quantity and selection principle according to practical feelings as specified settlement timeDepending 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, isThe operating quantity of each settlement operations of reduction can after determining specified settlement time using the low ebb time point of historical trafficTo store the specified settlement time, the specified settlement time of each billing cycle is kept to immobilize.And it is answered certainWith 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 idleTime range carries out, and in another embodiment, specified settlement time can be updated when update condition meets.Update condition canTo be to reach specified time, it is also possible to will affect event of portfolio etc..For example, regularly updating specified settlement timeScene in, the low ebb time point that can use the historical traffic in a historical time section nearest apart from current time comesDetermine specified settlement time.For another example, it in the case where will affect the event of portfolio, can use in historical time sectionThe 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 cycleThe 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 toThe 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 specialPoint, 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 chosenLow 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 minimumThe server resource of foot is available.Therefore, in another embodiment, determine that the operation of specified settlement time can also be systemThe history settlement accounts quantity for counting each time point in multiple history billing cycles, obtains the history industry in each history billing cycleBusiness amount;The minimum time point of historical traffic average value in multiple history billing cycles is set as specified settlement time, is led toThe average minimum for calculating the historical traffic of multiple history billing cycles is crossed, obtains the actual use rule for meeting serverIdle carries out concentration clearing in idle to achieve the effect that few occupancy server resource, and it is useful not have to stopping reception instituteThe 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 accountProduction is updated.
It is settled accounts about in virtual assets of the current period to account, may include to account in one embodimentThe 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 weekThe 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 periodSubsequent clearing are carried out according to last checkout result, reduce clearing calculation amount, to reduce settlement time.In order toFacilitate 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 cycleAs 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-periodFruit.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 withIt is to summarize the virtual assets in the account in the upper period, obtains virtual assets total value.Exemplary, virtual assets total value canTo be by the quantity after virtual assets type statistics virtual assets, for example, N yacht, M golden beans and L fresh flower etc..Virtual wealthIt 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 valueCurrency.In another embodiment, settlement operations include not only the virtual assets total value for counting the account, and can also include will be emptyQuasi- 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 conversionQuasi- property total value again converts the virtual assets of the account, to reduce the inquiry operation before virtual assets conversion operation.IntoOne step, it can also be after obtaining real money total value, the bank account bound using real money total value pair with the accountExecute transfer operation.Such as the virtual assets of the account are converted into after true property and shift this virtual assets, then resetting shouldThe virtual assets total value of account.It is understood that transfer operation can be executed in clearing, can also meet in condition of transferring accountsShi 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 meetsAfter 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 wagesWhen, 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 requestsSend out real time settlement event.Client can be client device, be also possible to application program.Specified operation requests can be clientThe request of end inquiry virtual assets, the request of client change virtual assets, client give request of virtual assets etc..It can be withUnderstand, specifies operation requests other than it can trigger real time settlement event, also trigger finger indicated by specified operation requestsFixed operation.In one example, the server-side is also used to execute indicated by specified operation requests other than executing settlement operationsSpecified 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 functionAll operations that can limit and cannot complete this specification embodiment, specify specified operation indicated by operation requests can be by itHis 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-sidesIt states server-side and executes settlement operations.
The specified operation indicated by specified operation requests can be multiplicity, for example, giving virtually for clientThe request of property, what specified operation can be that this client gives virtual assets to other clients gives operation, is also possible toOperation is given in the reception that this client receives the virtual assets that other clients are given;Virtual assets are changed for clientRequest, specified operation, which can be this client and be supplemented with money or be bought to virtual assets, to be used.For server-side, noThe specified operation requests of same type may include client query virtual assets, client change virtual assets (such as supplement with money, serve asCurrency uses to buy), receive virtual assets that other clients are given or give virtual assets etc. to other clients to askIt 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 operationClearing 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 bindingProduction is settled accounts, and updates the checkout result of the virtual assets of the account;Wherein, the real time settlement event includes clientInquire the event of virtual assets, the event of client change virtual assets, the event for giving to other clients virtual assets orReceive the event for the virtual assets that other clients are given.After client triggers real time settlement event, server-side triggering clearingOperation, 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 awayExempt 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 accountsTo 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, updateThe settlement time of the account;Execute the condition settled accounts to the virtual assets of account further include: the institute that last time updatesState initial time of the settlement time earlier than current period of account.By judging the last time calculating time an of account and working asThe 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 knotIt 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 generationSequence carries out queuing clearing to each real time settlement event afterwards.For example, creation real time settlement event queue;Real time settlement will be triggeredThe account of the client of event is stored in real time settlement event queue by the sequencing of inquiry;Account quantity in the queueWhen 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 newlyIn the queue of creation.By implement be lined up clearing can to avoid multiple accounts simultaneously settled accounts when because server-side settle accounts resourceIt is inadequate and reduce treatment effeciency.Will be greater than the laggard enqueue of account quantity predetermined value account delete purpose be, in order toPrevent 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 throughA 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 handledThe real time settlement event of one queue, while informing that client is settled accounts later.Therefore, in the present embodiment, by laggard enqueueAccount be transferred in newly created queue after, the client of account into newly created queue binding sends delay inquiryNotice, guarantee the operation requests of user can sequentially operate and obtain feedback while, also avoid what server overloadedSituation.
In another example, when the account of a user is there are when the virtual assets of multiple types, as gold coin, coin orDiamond etc. can be identified by obtaining the virtual assets of account, so that the corresponding type of each virtual assets mark is virtualProperty is identified according to virtual assets, is settled accounts to each virtual assets of the account, and update the virtual assets of each typeCheckout result.It can be convenient for the virtual assets of server-side crawl specified type, there are multiple types by virtual assets markVirtual 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 triggeredThe flow chart of the method for another virtual assets clearing exemplified, can apply in client, which includes following stepIt is rapid:
Step S201, by sending specified operation requests to trigger real time settlement event, so that server-side is to clientVirtual assets are settled accounts, and the checkout result of the virtual assets of the account is updated;Wherein, the real time settlement event includes visitorEvent, the client of family end inquiry virtual assets change the event of virtual assets, give the thing of virtual assets to other clientsPart 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 clientIt 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 clientProperty 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 toThe corresponding processing result of fixed operation.In certain scenes, server-side can feed back checkout result, i.e. response results include clearingAs 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 inquiryThe 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 valueIt 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 instructionIt 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 intoRow can be sent the sequencing of real time settlement instruction by each client to be lined up clearing.In one embodiment, Ke YiyouFollowing 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 settlementEvent queue;The account that the client of real time settlement event will be triggered is stored in the queue by the sequencing of inquiry;DescribedWhen account quantity in queue is greater than predetermined value, new queue is created, the account of laggard enqueue is transferred to newly created teamThe client of account binding in column, and into newly created queue sends the notice of delay inquiry;It receives and shows server-sideThe 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 operateAnd 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 wealthThe 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 BThe application scenarios schematic diagram of virtual assets settlement system, the virtual assets settlement system include server-side 21B, client 22B.InIn 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 eventClearing, and update the checkout result of client 22B corresponding account;Wherein, the real time settlement event includes client 22B inquiryThe 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 settlementEvent, 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 accountProperty 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 systemNetwork structure chart carries out server-side the process of clearing is concentrated to be illustrated, and server-side includes cache server 21C, account settlement server22C 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 embodimentFigure, 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 instituteIt 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 markLine is read billing cycle in the pre-set configuration file of operation personnel from itself, by calculating in multiple billing cyclesThe average minimum of historical traffic curve is determined as concentrating the customized settlement time Custom time of clearing, this time quiltIt is defined as idle, is that server resource occupies one of least time point, concentrate clearing will not be to causing in this time pointServer overload.
Account settlement server 22C obtains the final updating time Modify of each virtual assets from cache server 21C simultaneouslyTime is obtained if cache server 21C is searched less than corresponding renewal time Modify time to database 23C, from certainlyThe specified settlement time Settle time of billing cycle and each billing cycle is read in the configuration file of body.It is settled accounts concentratingCustomized settlement time Custom time when reaching, traverse the virtual assets situation of each user account, relatively more specified clearingTime Settle time and each user account correspond to the size of the renewal time Modify time of virtual assets to be tiedCalculate judgement.
In order to guarantee that each billing cycle only carries out lump-sum settlement operation, in the corresponding type of a user accountIn 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 clearingAccount;When specified settlement time Settle time is greater than renewal time Modify time, account settlement server 22C judges the accountThe type virtual assets do not carried out settlement operations, settled accounts, by checkout result and renewal time Modify timeIt updates and is sent to cache server 21C and cached.The hard of database 23C is sent by checkout result and renewal time simultaneouslyIt 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 accountClearing, 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 multipleThe 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 describesOn the basis of carry out real time settlement operation, in order to further illustrate the interactive process of this specification real time settlement embodiment, belowWith the network structure of another virtual assets settlement system shown by embodiment five interacting to client and server-sideJourney is illustrated, and client includes user terminal 21D, and server-side includes service server 22D, account settlement server 23D, caching clothesBe 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 embodimentFigure, interactive process are as described below:
When user terminal 21D sends inquiry request to service server 22D, real time settlement event is triggered.Business serviceDevice 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 instructionThe virtual assets situation of quasi- type of property and account inquiries user terminal 21D corresponding account, obtaining from cache server 24D shouldThe final updating time Modify time of the type virtual assets of account, Modify time herein can be such as embodimentThe 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 askedIt 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 moreThe new time.If cache server device 24D does not find corresponding virtual assets renewal time Modify time, to database25D 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 simultaneouslyThe specified settlement time Settle time of billing cycle and each billing cycle, compares the specified settlement time of current periodThe 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, industryBusiness 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 judgementThe type virtual assets of the account did not carried out settlement operations, were settled accounts, that is to say, that either concentrate clearing alsoIt is real time settlement, lump-sum settlement operation is only carried out in a billing cycle.Therefore service server 22D marks virtual assets IDKnow 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 intoRow clearing, checkout result and renewal time Modify time are updated and are sent to cache server 24D cache, guaranteeAll types of virtual assets of all users carried out settlement operations in each billing cycle.Cache server 24D simultaneouslyCheckout result and renewal time are sent in the hard disk of database 25D and stored, loses number after avoiding cache server 24D from shutting downAccording to.
Cache server 24D also request by feedback query at this time, according to the subsidiary virtual assets mark of inquiry request and userThe currently stored virtual assets numerical value of the type virtual assets of the mark inquiry account.Wherein, currently stored virtual wealthProducing numerical value is account settlement server 23D according to inquiry request and its subsidiary virtual assets mark and user identifier, should to the accountThe virtual assets of type are transmitted to cache server 24D's after being counted.Content instruction of the scope of statistics by inquiry request, exampleSuch as, the range of inquiry instruction instruction can be current period starting date between current time, being also possible to a periodBegin 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 25DIt 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 asThe 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, giveDeng operation) itself virtual assets triggering settlement operations checkout result, be also possible to other users and query or change (such as by other peopleInquiry 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 appliedThe embodiment of terminal.
The embodiment of this specification virtual assets checkout apparatus can be applied on a computing device, such as server or endEnd equipment.Installation practice can also be realized by software realization by way of hardware or software and hardware combining.With softIt 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 realizedCorresponding computer program instructions are read into memory what operation was formed in reservoir.For hardware view, as shown in figure 3, beingA kind of hardware structure diagram of computer equipment where this specification embodiment virtual assets checkout apparatus, in addition to place shown in Fig. 3It manages except device 310, memory 330, network interface 320 and nonvolatile memory 340, virtual assets clearing dress in embodimentThe 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 equipmentPart 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 embodimentBlock diagram, described device include:
Module 41 is obtained, for obtaining the specified settlement time of current period;The specified settlement time is from history serviceIt 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 intoRow 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 41Historical traffic time point at a low ebb, settlement module 42 can within the current balance period historical traffic it is at a low ebbTime 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 causedWhen the virtual assets to user carry out settlement operations, refusal receives the inquiry instruction of user, and satisfaction makes full use of server resourceWith 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 cyclesHistory settlement accounts quantity obtains the historical traffic in each history billing cycle;By history industry in multiple history billing cyclesBusiness 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 accountThe 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 clientWhen triggering real time settlement event, the virtual assets of the account of client binding are settled accounts, and update the accountThe checkout result of virtual assets;Wherein, the real time settlement event include the event of client query virtual assets, client moreChange the event of virtual assets, give the event of virtual assets to other clients or receives the virtual wealth that other clients are givenThe event of production.
In one embodiment, described device further includes update module 44 (being not shown in Fig. 4), for every time to accountVirtual 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 accountThe condition that property is settled accounts further include: the settlement time for the account that last time updates is earlier than this current billing cycleInitial time.
In one embodiment, described device further includes Queue module 45 (being not shown in Fig. 4), for creating real time settlementEvent queue;The account that the client of real time settlement event will be triggered is stored in the queue by the sequencing of inquiry;DescribedWhen 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 laggardThe 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 enqueueAfter 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 angleDevice, 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 sixFigure, 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 visitorThe 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 eventThe event of event, client change virtual assets including client query virtual assets gives virtual wealth to other clientsThe 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 clothesBusiness 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 inquiryThe queue;When account quantity in the queue is greater than predetermined value, new queue is created, the account of laggard enqueue is turnedIt 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 clothesThe 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 touchIt sends out real time settlement event and updates the virtual assets of the account so that server-side settles accounts the virtual assets of clientCheckout 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, processorAnd 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 equipmentThe 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 realityApply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unitThe module of explanation may or may not be physically separated, and the component shown as module can be or can also be withIt is not physical module, it can it is in one place, or may be distributed on multiple network modules.It can be according to actualThe 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 notIn 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 mediumThe 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 notBe limited to magnetic disk storage, CD-ROM, optical memory etc.) on the form of computer program product implemented.Computer is available to be depositedStorage media includes permanent and non-permanent, removable and non-removable media, can be accomplished by any method or technique letterBreath storage.Information can be computer readable instructions, data structure, the module of program or other data.The storage of computer is situated betweenThe example of matter includes but is not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memoryDevice (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), the read-only storage of electrically erasableDevice (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-biographyDefeated 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 effectBody 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 claimsIt 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 embodimentIt executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitableSequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also canWith or may be advantageous.
Those skilled in the art will readily occur to this specification after considering specification and practicing the invention applied hereOther 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 specificationCommon knowledge or conventional techniques.The description and examples are only to be considered as illustrative, the true scope of this specification andSpirit 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 claimsSystem.
The foregoing is merely the preferred embodiments of this specification, all in this explanation not to limit this specificationWithin the spirit and principle of book, any modification, equivalent substitution, improvement and etc. done should be included in the model of this specification protectionWithin enclosing.

Claims (13)

CN201910695571.4A2019-07-302019-07-30A kind of virtual assets settlement method, device and computer equipmentPendingCN110415096A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910695571.4ACN110415096A (en)2019-07-302019-07-30A kind of virtual assets settlement method, device and computer equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910695571.4ACN110415096A (en)2019-07-302019-07-30A kind of virtual assets settlement method, device and computer equipment

Publications (1)

Publication NumberPublication Date
CN110415096Atrue CN110415096A (en)2019-11-05

Family

ID=68364291

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910695571.4APendingCN110415096A (en)2019-07-302019-07-30A kind of virtual assets settlement method, device and computer equipment

Country Status (1)

CountryLink
CN (1)CN110415096A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113592472A (en)*2021-06-302021-11-02北京健康之家科技有限公司Pharmacy data processing method and device and electronic equipment
CN114612088A (en)*2022-03-142022-06-10北京乐我无限科技有限责任公司Virtual property settlement method, device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20080234038A1 (en)*2006-03-272008-09-25Huawei Technologies Co. Ltd.System and Method for Renting Virtual Articles
CN107123013A (en)*2017-03-012017-09-01阿里巴巴集团控股有限公司Exchange method and device under line based on augmented reality
CN108777683A (en)*2018-05-302018-11-09腾讯科技(深圳)有限公司Data processing method, device, terminal, application server and storage medium
CN108881936A (en)*2018-07-182018-11-23上海掌门科技有限公司Resource share method, electronic equipment and medium is broadcast live
CN109377216A (en)*2018-08-072019-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 numberPriority datePublication dateAssigneeTitle
US20080234038A1 (en)*2006-03-272008-09-25Huawei Technologies Co. Ltd.System and Method for Renting Virtual Articles
CN107123013A (en)*2017-03-012017-09-01阿里巴巴集团控股有限公司Exchange method and device under line based on augmented reality
CN108777683A (en)*2018-05-302018-11-09腾讯科技(深圳)有限公司Data processing method, device, terminal, application server and storage medium
CN108881936A (en)*2018-07-182018-11-23上海掌门科技有限公司Resource share method, electronic equipment and medium is broadcast live
CN109377216A (en)*2018-08-072019-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 (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113592472A (en)*2021-06-302021-11-02北京健康之家科技有限公司Pharmacy data processing method and device and electronic equipment
CN114612088A (en)*2022-03-142022-06-10北京乐我无限科技有限责任公司Virtual property settlement method, device, electronic equipment and storage medium

Similar Documents

PublicationPublication DateTitle
Chen et al.Pricing and matching with forward-looking buyers and sellers
Benjaafar et al.Outsourcing via service competition
Bitran et al.An application of yield management to the hotel industry considering multiple day stays
US20200057918A1 (en)Systems and methods for training artificial intelligence to predict utilization of resources
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
US7870074B2 (en)Dynamic transferring of avatars between virtual universes
CN109583799A (en)The method and device of region division, electronic equipment
US20190089713A1 (en)System and method for producing a dynamically ordered queue
JP2006502506A (en) Method and apparatus for managing demand and inventory
CN109711989A (en) Repayment transaction data processing method, device, computer equipment and storage medium
CN108628769A (en)A kind of cache allocation method and equipment
WO2005098723A2 (en)Method and computer program for tax sensitive investment portfolio management
CN110415096A (en)A kind of virtual assets settlement method, device and computer equipment
CN109426989A (en)A kind of subscription process method provides method for reserving service and equipment
US20220020084A1 (en)Account assignment manager for collection and recovery
CN109146349A (en)Order allocation method and device
CN105654326B (en)A kind of information processing system and method
CN103713852B (en)A kind of information processing method, service platform and electronic equipment
Gupta et al.The Internet: a future tragedy of the commons?
CN110262998A (en)A kind of reconciliation data processing method and device
CN108280134A (en)The data system for the distribution of commodities and method, storage medium, terminal based on the control of account amount
CN108989387A (en)Control the method, device and equipment of Asynchronous Request
KR20110131596A (en) Integrated account management system and account transfer processing
CN112035681A (en)Credit card rate information determination method and device based on knowledge graph

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20191105


[8]ページ先頭

©2009-2025 Movatter.jp