CN107038175B - virtual resource object sending method and device - Google Patents

virtual resource object sending method and device Download PDF

Info

Publication number
CN107038175B
CN107038175B CN201610081086.4A CN201610081086A CN107038175B CN 107038175 B CN107038175 B CN 107038175B CN 201610081086 A CN201610081086 A CN 201610081086A CN 107038175 B CN107038175 B CN 107038175B
Authority
CN
China
Prior art keywords
virtual resource
resource object
object data
server
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610081086.4A
Other languages
Chinese (zh)
Other versions
CN107038175A (en
Inventor
张悦
张正
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610081086.4A priority Critical patent/CN107038175B/en
Publication of CN107038175A publication Critical patent/CN107038175A/en
Application granted granted Critical
Publication of CN107038175B publication Critical patent/CN107038175B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/83Querying

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of virtual resource object sending method and devices.This method includes:First server obtains virtual resource object data from presetting database;First server executes verification to virtual resource object data;First server is in the case where determining virtual resource object data by verification, virtual resource object data are sent to second server, wherein, second server is used to obtain the default character data using main body, judge to preset using whether main body meets preset rules according to the default character data using main body and virtual resource object data, and sends the corresponding virtual resource object of virtual resource object data and apply main body to the default of preset rules is met.The present invention solves the technical problem of the autgmentability difference of virtual resource object data in the related technology.

Description

Virtual resource object sending method and device
Technical field
The present invention relates to internet arenas, in particular to a kind of virtual resource object sending method and device.
Background technology
Currently, by virtual resource object be sent to it is default using main body using by the way of presetting and independently being asked using main body. For example, the default application is game application.Fig. 1 is the flow chart according to virtual resource object sending method in the related technology. As shown in Figure 1, the virtual resource object sending method includes:Step S101 ', click get virtual resource object button or Icon;Step S102 ', client uplink get the request command of virtual resource object to server, which matches It is set to static state;Step S103 ', server receive the request command for getting virtual resource object;Step S104 ', server inspection Whether the data for looking into the virtual resource object are legal;After server checks that the corresponding data of the virtual resource object are legal, Step S105 ' is executed, server obtains the default data using main body;Step S106 ' sentences according to default using the data of main body The disconnected default condition for whether meeting the virtual resource object for obtaining default application using main body;If it is determined that default full using main body After foot obtains the condition of the virtual resource object of default application, step S107 ' is executed, virtual resource object is stored in default Using the storage container of main body.
Fig. 2 is the screenshotss schematic diagram according to game application interface in the related technology.As shown in Fig. 2, game application circle Face is designed with the button or icon for obtaining virtual resource object, that is, " I will get ", virtual resource object is gift bag " etc. Grade reaches 20 grades, and country is added ", " supplementing 5000 ingots with money ", " registering within continuous seven days ".Operation personnel will be with getting the pre- of qualification If the identity number (Identification, referred to as ID) using main body imports in white list, hereafter, game application master Body can pass through the Webpage acquisition request virtual resource object of game application.When default application is preset by swimming using main body Webpage acquisition request virtual resource object after, internet (WEB) page uplink acquisition request virtual resource object Request message, server obtains the virtual resource object of static configuration, and is sent to by mailing system and default applies main body.
Since virtual resource object configures static state, when virtual resource object data configuration malfunctions, server is needed to stop Processing, is modified, also poor to cannot achieve deployment, scalability online.
For the problem of the autgmentability difference of virtual resource object data in the related technology, effective solution is not yet proposed at present Scheme.
Invention content
An embodiment of the present invention provides a kind of virtual resource object sending method and devices, at least to solve in the related technology The technical problem of the autgmentability difference of virtual resource object virtual resource object data.
One side according to the ... of the embodiment of the present invention provides a kind of virtual resource object sending method.The virtual resource Object sending method includes:First server obtains virtual resource object data from presetting database;First server is to void Quasi- resource object data execute verification;First server is sent in the case where determining virtual resource object data by verification Virtual resource object data are to second server, wherein second server is used to obtain the default character data using main body, root Judge to preset whether meet preset rules using main body according to the default character data using main body and virtual resource object data, and It sends the corresponding virtual resource object of virtual resource object data and applies main body to the default of preset rules is met, wherein is default Rule is for judging the default rule whether legal using main body.
One side according to the ... of the embodiment of the present invention additionally provides a kind of virtual resource object sending method.This is virtually provided Source object sending method includes:Second server receives the virtual resource object data from first server, wherein the first clothes Device be engaged in for obtaining virtual resource object data from presetting database, verification is executed to virtual resource object data, and true In the case of determining virtual resource object data by verification, virtual resource object data are sent to second server;Second service Device obtains the default character data using main body;Second server is according to virtual resource object data and the default angle using main body Chromatic number is it is judged that whether default meet preset rules using main body, wherein preset rules are to be for judging to preset using main body No legal rule;If second server is judged according to virtual resource object data and the default character data for applying main body It is default to meet preset rules using main body, the corresponding virtual resource object of virtual resource object data is sent to default application master Body.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of virtual resource object sending device.This is virtually provided Source object sending device includes:Acquiring unit, for obtaining virtual resource object data from presetting database;Verification unit, For executing verification to virtual resource object data;Transmission unit, for determining that virtual resource object data pass through verification In the case of, virtual resource object data are sent to second server, wherein second server is used to obtain and preset using main body Whether character data is preset according to the default character data using main body and the judgement of virtual resource object data and is met using main body Preset rules, and the corresponding virtual resource object of virtual resource object data is sent to the default application master for meeting preset rules Body, wherein preset rules are for judging the default rule whether legal using main body.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of virtual resource object sending device.This is virtually provided Source object sending device includes:Receiving unit, for receiving the virtual resource object data from first server, wherein the One server is used to obtain virtual resource object data from presetting database, and verification is executed to virtual resource object data, and In the case where determining virtual resource object data by verification, virtual resource object data are sent to second server;It obtains Unit, for obtaining the default character data using main body;Judging unit, for being answered with default according to virtual resource object data Judge to preset whether meet preset rules using main body with the character data of main body, wherein preset rules are for judging to preset Using the whether legal rule of main body;Transmission unit, for according to virtual resource object data and the default angle using main body Chromatic number meets preset rules it is judged that going out to preset using main body, sends the corresponding virtual resource object of virtual resource object data extremely It is default to apply main body.
In embodiments of the present invention, first server obtains virtual resource object data from presetting database;First clothes Business device executes verification to virtual resource object data;First server is determining the case where virtual resource object data pass through verification Under, virtual resource object data are sent to second server, second server is used to obtain the default character data using main body, Judge to preset whether meet preset rules using main body according to the default character data using main body and virtual resource object data, And send the corresponding virtual resource object of virtual resource object data and apply main body to the default of preset rules is met, to realize The technique effect of the autgmentability of virtual resource object is improved, and then the technology for solving the autgmentability difference of virtual resource object asks Topic.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and is constituted part of this application, this hair Bright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is the flow chart according to virtual resource object sending method in the related technology;
Fig. 2 is the screenshotss schematic diagram according to game application interface in the related technology;
Fig. 3 is the hardware block diagram for the terminal that virtual resource object according to the ... of the embodiment of the present invention is sent;
Fig. 4 is the flow chart of virtual resource object sending method according to a first embodiment of the present invention;
Fig. 5 is the flow chart of virtual resource object sending method according to a second embodiment of the present invention;
Fig. 6 is the schematic diagram of the Configuration Online of game gift bag data according to the ... of the embodiment of the present invention;
Fig. 7 is the schematic diagram that virtual resource object according to the ... of the embodiment of the present invention is sent;
Fig. 8 is the sequential flow chart that virtual resource object according to the ... of the embodiment of the present invention is sent;
Fig. 9 is the screenshotss schematic diagram of the transmission effect of game gift bag according to the ... of the embodiment of the present invention;
Figure 10 is the schematic diagram of virtual resource object sending device according to a first embodiment of the present invention;
Figure 11 is the schematic diagram of virtual resource object sending device according to a second embodiment of the present invention;And
Figure 12 is the structure diagram of terminal according to the ... of the embodiment of the present invention.
Specific implementation mode
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The every other embodiment that member is obtained without making creative work should all belong to the model that the present invention protects It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, " Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this way Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover It includes to be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment to cover non-exclusive Those of clearly list step or unit, but may include not listing clearly or for these processes, method, product Or the other steps or unit that equipment is intrinsic.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment of virtual resource object sending method is provided, it should be noted that Step shown in the flowchart of the accompanying drawings can execute in the computer system of such as a group of computer-executable instructions, and It, in some cases, can be to execute institute different from sequence herein and although logical order is shown in flow charts The step of showing or describing.
The embodiment of the method that the embodiment of the present application one is provided can be in mobile terminal, terminal or similar fortune It calculates and is executed in device.For running on computer terminals, Fig. 3 is that virtual resource object according to the ... of the embodiment of the present invention is sent Terminal hardware block diagram.As shown in figure 3, terminal 300 may include one or more (only shows in figure Going out one) (processor 302 can include but is not limited to Micro-processor MCV or programmable Scene device FPGAs etc. to processor 302 Processing unit), memory 304 for storing data and the transmitting device 306 for communication function.This field is common Technical staff is appreciated that structure shown in Fig. 3 is only to illustrate, and does not cause to limit to the structure of above-mentioned electronic device.Example Such as, terminal 300 may also include than shown in Fig. 3 more either less components or with different as shown in figure 3 Configuration.
Memory 304 can be used for storing the software program and module of default application software, in the embodiment of the present invention Corresponding program instruction/the module of virtual resource object sending method, processor 302 are stored in by operation in memory 304 Software program and module realize above-mentioned virtual resource pair to perform various functions default application and data processing As sending method.Memory 304 may include high speed random access memory, may also include nonvolatile memory, such as one or more A magnetic storage device, flash memory or other non-volatile solid state memories.In some instances, memory 304 can be further Include the memory remotely located relative to processor 302, these remote memories can pass through network connection to computer end End 300.The example of above-mentioned network includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Transmitting device 306 is used to receive via a network or transmission data.Above-mentioned network specific example may include The wireless network that the communication providers of terminal 300 provide.In an example, transmitting device 306 includes a network Adapter (Network Interface Controller, referred to as NIC), can be connected by base station with other network equipments So as to be communicated with internet.In an example, transmitting device 306 can be radio frequency (Radio Frequency, letter Referred to as RF) module, it is used to wirelessly be communicated with internet.
Under above-mentioned running environment, this application provides virtual resource object sending methods as shown in Figure 4.This is virtually provided Source object sending method can be preset applied in intelligent terminal, be executed by the processor in intelligent terminal, intelligence Terminal device can be smart mobile phone, tablet computer etc..At least one default application program is installed in intelligent terminal, this Inventive embodiments do not limit the type of default application program, can be the default application program of system class, or software The default application program of class.
Fig. 4 is the flow chart of virtual resource object sending method according to a first embodiment of the present invention.As shown in figure 4, should A kind of optional scheme of virtual resource object sending method includes the following steps:
Step S402, first server obtain virtual resource object data from presetting database.
In the scheme that the application above-mentioned steps S402 is provided, presetting database is used to store virtual resource object data, Storaging medium as virtual resource object data.The presetting database can be according to the structure of virtual resource object data to void Quasi- resource object data are organized and managed, and to effectively utilize and manage virtual resource object data, have High Level Structured storage feature.Virtual resource object data are the data for the virtual resource object for generating default application.For example, obtaining The service data of virtual resource object, to the name data of the configuration data of virtual resource object, virtual resource object, right The end of the suggestion content data of virtual resource object, beginning the sending time data, virtual resource object of virtual resource object Sending time data, the transmission condition data of virtual resource object, particular content data of virtual resource object etc..
First server obtains virtual resource object data from presetting database, which is server, can The flow of the default application of login to control user terminal, forwards the message of various functions server, and energy and preset data Library carries out data interaction.
Optionally, presetting database is used to store the game gift bag data of game application, as depositing for game gift bag data Medium is stored up, can be game database.The game database can be according to the structure of game gift bag data to gift bag data of playing It is organized and managed, to effectively utilize and manage game gift bag data.Game gift bag data are to generate game application The data of game gift bag.For example, obtaining the service data of game gift bag, the configuration data to gift bag of playing, game gift bag Name data, to play gift bag suggestion content data, play gift bag beginnings sending time data, game gift bag end Sending time data, the transmission condition data for gift bag of playing, the particular content data etc. for gift bag of playing.It can by game database The operations such as insertion, modification, deletion with realization game gift bag data.
Game database can execute change with the carry out process of game application, that is, the game gift of game database Bag data need not alternate with game application version, but be configured in time with the operation demand of game application And deployment can also be in time to gift of playing even if the configuration and deployment of the game gift bag data of game database are out of joint Bag data such as is inserted into, is changed, being deleted at the operations, improves the scalability of game gift bag data, and then is effectively alleviated Accident of game application during operation improves the flexibility of game gift bag data.First server is from game database Middle acquisition game application data, the first server can be the World servers of game, which can be responsible for User terminal can and be played in the login process of game application, the message of the function servers such as forwarding mailbox server Database interacts.
The embodiment of the present invention obtains virtual resource object data, preset data by first server from presetting database Library is the number for the virtual resource object for generating game application for storing virtual resource object data, virtual resource object data According to realize acquisition of the first server to virtual resource object data.
Step S404, first server execute verification to virtual resource object data.
In the scheme that the application above-mentioned steps S404 is provided, virtual money is obtained from presetting database in first server After source object data, first server executes verification to virtual resource object data, for example, verification virtual resource object data Format it is whether correct, whether verification virtual resource object data legal etc., so that it is determined that the availability of virtual resource object.Than Such as, presetting database is to have the characteristics that the database of highly structural, data pass through the structure language (Structured Query Language, referred to as SQL) it is stored, then whether the format for verifying virtual resource object data meets SOL language Storage format.When storage format is extensible markup language (Extensible Markup Language, referred to as XML) lattice Whether the format of formula, verification virtual resource object data meets XML format, wherein XML format can be stored in presetting database In String data type String types and binary large object (Binary Large Object, referred to as Blob) number It is more flexible to the logical description of virtual resource object data changeable according in the field of type.
Whether legal verification virtual resource object data include verifying whether the protocol package of virtual resource object data is pseudo- Whether the protocol package made, time window setting are reasonable etc., to prevent false virtual resource object data, for example, false obtains Take the data of virtual resource object service request.First server executes verification to virtual resource object data, obtains verification knot Fruit.First server determines whether verification passes through according to check results.For example, if check results are verification virtual resource object The format of data is correct, and verification virtual resource object data are legal, then first server determines virtual money according to check results Source object data pass through verification.
The operations such as the insertion to virtual resource object data, modification, deletion may be implemented by presetting database.Present count Change can be executed with the carry out process of default application according to library, that is, the virtual resource object data of presetting database are not required to It to alternate with default application version, but as the operation demand of default application carries out Configuration Online and portion in time Administration, and then effectively alleviate the default accident applied during operation.
Optionally, in World servers after obtaining game gift bag data in game database, World servers pair Game gift bag data execute verification, for example, whether the format of verification game gift bag data is correct, whether verification game gift bag data It is legal etc..For example, game database is to have the characteristics that the database of highly structural, data are stored by sql like language, then Whether the format of verification game gift bag data meets the storage format of SOL language.When storage format is expandable mark language XML Whether the format of format, verification game gift bag data meets XML format, more flexible more to the logical description for gift bag data of playing Become.Verification game gift bag data it is whether legal include verification game gift bag data protocol package whether be forge protocol package, when Between window setting it is whether reasonable etc., to prevent false game gift bag data, for example, false acquisition sends game gift bag service Request data.World servers execute verification to game gift bag data, obtain check results.World servers are tied according to verification Fruit determines whether verification passes through.For example, if check results be verification game gift bag data format it is correct, and verify game gift Bag data is legal, then World servers determine that game gift bag data pass through verification according to check results.
The embodiment of the present invention executes verification by first server to the virtual resource object data in presetting database, from And determine the availability of virtual resource object.
Step S406, first server send virtual money in the case where determining virtual resource object data by verification Source object data are to second server.
In the scheme that the application above-mentioned steps S406 is provided, first server is determining that virtual resource object data pass through In the case of verification, virtual resource object data are sent to second server, that is, first server will be in presetting database Virtual resource object data forwarding is to second server.Optionally, second server is server.Second server is for obtaining The default character data using main body judges default answer according to the default character data using main body and virtual resource object data Whether meet preset rules with main body, which is for judging the default rule whether legal using main body, that is, root Judge to preset using whether main body meets the virtual money of acquisition according to the default character data using main body and virtual resource object data The condition of source object, and the corresponding virtual resource object of virtual resource object data is sent to the default application for meeting preset rules Main body.Second server can be the Scene servers or scene server of default application, control the various of default application Operation logic can obtain default using the data of main body at runtime on second server.
Optionally, the virtual objects for controlling or playing the part of in game application for player using main body are preset, that is, virtually Game role.Game entry data include that game application main body logs in the time of game application, logs in the login of game application The data such as the grade of number and game application main body in game application.Second server obtains the role of game application main body Then data judge whether game application main body meets according to the character data of game application main body and virtual resource object data Preset rules, for example, second server logs in the time of game application according to game application main body, logs in the login of game application The grade and service data of number and game application main body in game application, to the configuration number of virtual resource object Start to send according to the name data of, virtual resource object, to the suggestion content data of virtual resource object, virtual resource object Time data, the end sending time data of virtual resource object, the transmission condition data of virtual resource object, virtual resource pair Particular content data of elephant etc. judge whether game application main body meets preset rules, and send virtual resource object data and correspond to Virtual resource object to the game application main body for meeting preset rules, wherein preset rules include stepping on for game application main body The validity rule of record condition and virtual resource object data.
Optionally, World servers send game gift bag data in the case where determining game gift bag data by verification To Scene servers, that is, World servers are by the game gift bag data forwarding in game database to Scene servers. Wherein, Scene servers are after the character data for obtaining game application main body, according to the character data of game application main body and Game gift bag data judge whether game application main body meets preset rules, and send the corresponding game gift bag of game gift bag data To the game application main body for meeting preset rules.Wherein, preset rules include registration conditions and the game gift of game application main body The validity rule of bag data.
The embodiment of the present invention by first server in the case where determining virtual resource object data by verification, will be pre- If the virtual resource object data in database are sent to second server, second server is used to obtain and preset using main body Whether character data is preset according to the default character data using main body and the judgement of virtual resource object data and is met using main body Preset rules, and the corresponding virtual resource object of virtual resource object data is sent to the default application master for meeting preset rules Body has achieved the purpose that be sent to virtual resource to preset to apply main body, and has been used as virtual resource pair by presetting database The storaging medium of image data improves the technique effect of the autgmentability of virtual resource object data.
S402 to step S406 through the above steps, scheme provided by the invention may be implemented through first server from pre- If obtaining virtual resource object data in database, presetting database is for storing virtual resource object data, virtual resource pair Image data is the data for the virtual resource object for generating default application;First server executes school to virtual resource object data It tests;First server sends virtual resource object data to the in the case where determining virtual resource object data by verification Two servers, wherein second server is used to obtain the default character data using main body, according to the default role using main body Data and virtual resource object data judge to preset using whether main body meets preset rules, and send virtual resource object data Corresponding virtual resource object applies main body to the default of preset rules is met, and has reached virtual resource being sent to default application The purpose of main body is improved since the Configuration Online to virtual resource object data and deployment may be implemented by presetting database The scalabilities of virtual resource object data.
As an alternative embodiment, first server obtains virtual resource object data packet from presetting database It includes:First server loads newest virtual resource object data by call back function timing from presetting database.Call back function For the function called by function pointer, that is, another parameter is passed to using the pointer of function as parameter, this pointer quilt For calling the function pointed by it.Call back function can separate caller and callee, allow the method that will be called Pointer passes to a function as a parameter, so that the function can neatly use not when handling similar case Same method.First server loads virtual resource object data by call back function from presetting database, improves virtual The scalability of resource object data.
Presetting database stores new virtual resource object data at regular intervals, and first server passes through call back function Timing loads newest virtual resource object data from presetting database.Optionally, one is provided in first server to determine When device Timer.Timer Timer is the timer of server, for driving server to execute work at the time of specified, than Such as, driving server executes the verification of the calling, data of function.Timer Timer starts execution one at regular intervals Secondary call back function asks newest virtual resource object data from presetting database.When virtual resource object data all add It carries after completing, first server executes verification to virtual resource object data, to make acquisition virtual resource object data not The service request that game player oneself actively sends acquisition request virtual resource object data is relied on, simply by first server Virtual resource object data are handled with second server, the multiple forwarding of virtual resource object data is avoided, avoids The possibility of virtual resource object data packetloss, reduces the risk of plug-in intervention, at the same avoid due to client or The active operation of third-party platform impacts the acquisition of virtual resource object data, improves virtual resource object data and obtains The safety taken.For example, avoiding game forges the service request for obtaining virtual resource object data when program is leaky, from And first server is avoided due to handling the bad risk for causing virtual resource object to be requested acquisition repeatedly.
The timing of timer is uniformly distributed with default using the login time of main body, and second server sends empty Intend the corresponding virtual resource object of resource object data to the default sending time using main body also to scatter, it is pre- to alleviate If using main body concentrate obtain virtual resource object when caused by first server and second server pressure.
Optionally, World servers load most recent games gift bag data by call back function timing from game database. World servers load game gift bag data by call back function from game database, improve game gift bag and obtain data Scalability.A timer Timer is provided on World servers, timer Timer starts at regular intervals A call back function is executed, newest game gift bag data are asked from game database.When game gift bag data all load After completion, World servers execute verification to game gift bag data, are played to make acquisition game gift bag data not depend on game Family oneself sends the service request of acquisition request game gift bag data, avoids the multiple forwarding of virtual resource object data, keeps away The possibility for having exempted from virtual resource object data packetloss reduces the risk of plug-in intervention, avoids due to client or The active operation of tripartite's platform impacts the acquisition for gift bag data of playing, and improves the flexibility of game gift bag data acquisition And safety.For example, avoiding game player forges the service request for obtaining game gift bag data when program is leaky, to World servers are avoided due to handling the bad risk for causing game gift bag data to be requested acquisition repeatedly.
Optionally, the timing of timer is uniformly distributed with the login time of game application main body, Scene services The sending time that device sends corresponding game gift bag to the game application main body of game gift bag data also scatter, to alleviate trip Play using main body concentrate obtain game gift bag when caused by World servers and Scene servers pressure.
In embodiments of the present invention, first server is loaded by call back function timing from presetting database newest virtual Resource object data realize first server and obtain virtual resource object data from presetting database, avoid virtual money The multiple forwarding of source object data, avoids the possibility of virtual resource object data packetloss, reduces the risk of plug-in intervention, It avoids since client or the active operation of third-party platform impact the acquisition of virtual resource object data, improves The scalability of virtual resource object data and safety.
As an optional implementation manner, second server is multiple, sends virtual resource object data to the second clothes Business device include:First server sends virtual resource object data to multiple second servers, wherein multiple second servers will Virtual resource object data preserve in memory.Optionally, in first server by call back function timing from presetting database After the middle newest virtual resource object data of load, and first server is determining feelings of the virtual resource object data by verification Under condition, virtual resource object data are sent to multiple second servers, multiple second servers are by newest virtual resource object number According to preserving in memory, multiple second servers are according to the different playing method logics that default application may be implemented.
Optionally, Scene servers are multiple, send game gift bag data to Scene servers and include:Send game gift Bag data is to multiple Scene servers, wherein multiple Scene servers gift bag data that will play preserve in memory.It is optional Ground, World servers by call back function timing from game database load most recent games gift bag data after, and In the case where determining game gift bag data by verification, transmission game gift bag data to multiple Scene service World servers Device, multiple Scene servers preserve most recent games gift bag data in memory.Multiple Scene servers are responsible for game and are answered Various playing method logics obtain the operation data of game application main body on multiple Scene servers.
As an alternative embodiment, first server obtains virtual resource object data packet from presetting database It includes:First server obtains XML format virtual resource object data from presetting database, and first server is to virtual resource pair Image data executes verification:First server executes verification to XML format virtual resource object data, and first server is true In the case of determining virtual resource object data by verification, sending virtual resource object data to second server includes:First Server sends XML format virtual resource object number in the case where determining XML format virtual resource object data by verification According to second server, wherein second server receives the XML format virtual resource object data from first server, right XML format virtual resource object data execute unserializing processing, the virtual resource object data of unserializing are obtained, according to anti- The virtual resource object data of serializing and the default character data using main body judge it is default whether meet using main body it is default Rule.
As an alternative embodiment, first server obtains XML format virtual resource pair from presetting database Image data includes:First server obtains the XML format virtual resource object number of UNION type arrays from presetting database According to, wherein the XML format virtual resource object data of UNION type arrays preserve in preset field in the preset database, The type of each element in UNION type arrays is marked by TYPE.
The embodiment of the present invention sends virtual resource object data to multiple second servers, Duo Ge by first server Two servers preserve virtual resource object data in memory, realize first server and send virtual resource object data extremely Second server.
The embodiment of the present invention additionally provides a kind of virtual resource object sending method.
Fig. 5 is the flow chart of virtual resource object sending method according to a second embodiment of the present invention.As shown in figure 5, should The optional scheme of another kind of virtual resource object sending method includes the following steps:
Step S502, second server receive the virtual resource object data from first server.
In the scheme that the application above-mentioned steps S502 is provided, second server receives the virtual money from first server Source object data.First server is used to obtain virtual resource object data from presetting database, to virtual resource object number According to executing verification, and in the case where determining virtual resource object data by verification, virtual resource object data are sent to the Two servers, virtual resource object data are the data for the virtual resource object for generating default application.Due to passing through preset data The Configuration Online to virtual resource object data and deployment may be implemented in library, improves the expansible of virtual resource object data Property.Optionally, the various operations of the default application of second server control can obtain default using main body on second server Data at runtime.It is the virtual objects that player controls or played the part of in game application to preset using main body, that is, Virtual game role.
Optionally, the second server of the embodiment is Scene servers, and first server is World servers, virtually Resource object is the game gift bag of game application, and virtual resource object data are game gift bag data, and presetting database is game Database.Scene servers receive the game gift bag data from World servers.World servers are used for from preset data Game gift bag data are obtained in library, verification are executed to game gift bag data, and determining feelings of the gift bag data by verification of playing Under condition, game gift bag data are sent to Scene servers, game gift bag data are the number for the game gift bag for generating game application According to.
The embodiment of the present invention receives the virtual resource object data from first server by second server, to real Existing acquisition of the second server to virtual resource object data.
Step S504, second server obtain the default character data using main body.
In the scheme that the application above-mentioned steps S504 is provided, first server is determining that virtual resource object data pass through In the case of verification, virtual resource object data are sent to second server, that is, first server will be in presetting database Virtual resource object is forwarded to second server.It includes that default logged in using main body presets the time of application, logs in log in data The data such as the login times of default application and the default grade using main body in default application.Second server obtains default Using the character data of main body.
Optionally, World sends game gift bag data extremely in the case where determining game gift bag data by verification Scene servers, that is, World servers are by the game gift bag data forwarding in game database to Scene servers, Scene servers obtain the character data of game application main body.
Step S506, second server judge pre- according to virtual resource object data and the default character data using main body If whether meeting preset rules using main body.
In the scheme that the application above-mentioned steps S506 is provided, default role's number using main body is obtained in second server According to later, according to the default character data using main body and virtual resource object data judge it is default whether meet using main body it is pre- If regular, for example, second server is according to the default login time for logging in the time of default application using main body, logging in default application Number and default grade and service data using main body in default application, to the configuration data of virtual resource object, The name data of virtual resource object, the suggestion content data to virtual resource object, when starting to send of virtual resource object Between data, the end sending time data of virtual resource object, the transmission condition data of virtual resource object, virtual resource object The judgements such as particular content data default whether meet preset rules using main body, wherein preset rules include default application master The validity rule of the registration conditions and virtual resource object data of body.The validity of the virtual resource object data of the embodiment Rule can be whether the corresponding virtual resource object of virtual resource object data is in sending time, send virtual resource object Switch the validity rules such as whether open.
Optionally, after the character data that Scene servers obtain game application main body, according to game application main body Character data and game gift bag data judge whether game application main body meets preset rules, for example, Scene servers are according to trip Play logs in time, the login times for logging in game application and the game application main body of game application in game application using main body In grade and service data, to play gift bag configuration data, play gift bag name data, to game gift bag carry Show the beginning sending time data of content-data, gift bag of playing, the end sending time data for gift bag of playing, the hair of game gift bag Condition data, the particular content data etc. for gift bag of playing is sent to judge whether game application main body meets preset rules, wherein default Rule includes the validity rule of the registration conditions and game gift bag data of game application main body.The game gift bag number of the embodiment According to validity rule can be whether the corresponding game gift bag of game gift bag data is in sending time, send gift bag of playing Whether switch the validity rules such as opens.
The embodiment of the present invention is by second server according to virtual resource object data and default role's number using main body It is judged that whether default meet preset rules using main body.
Step S508 sends the corresponding virtual resource object of virtual resource object data and applies main body to default.
In the scheme that the application above-mentioned steps S508 is provided, if second server according to virtual resource object data and The default character data using main body is judged to preset meets preset rules using main body, sends virtual resource object data and corresponds to Virtual resource object to it is default apply main body.The virtual resource object data of the embodiment do not depend on player oneself and send request The service request for obtaining virtual resource object data, simply by first server and second server to virtual resource object number According to being handled, the multiple forwarding of virtual resource object data is avoided, the possibility of virtual resource object data packetloss is avoided Property, reduces the risk of plug-in intervention, while avoiding since client or the active operation of third-party platform are to virtually providing The acquisition of source object data impacts, and improves virtual resource object Information Security.
For game player from after logging in game application, second server is provided with a timer Timer, the timer The effect of Timer is at regular intervals to verify currently available virtual resource object data one by one.Can first it confirm virtual The validity of resource object, for example, whether virtual resource object sends the switch of virtual resource object in the period sent Whether open.It is compared then in conjunction with the logon data of game application main body, virtual resource object condition is sent to having Game application main body carry out virtual resource object transmission operation.Because the virtual resource object data of game application main body are big Part is all loaded in the memory of second server, so carrying out actual transmission operation on second server has centainly Convenience.
Optionally, if Scene servers are judged according to the character data of game gift bag data and game application main body Game application main body meets preset rules, sends the corresponding game gift bag of game gift bag data to game application main body.The implementation The game gift bag data of example do not depend on the service request that game player oneself sends acquisition request game gift bag data, simply by World servers and Scene servers handle game gift bag data, avoid the multiple forwarding of game gift bag data, The possibility for avoiding game gift bag data packetloss, reduces the risk of plug-in intervention, at the same avoid due to client or The active operation of third-party platform impacts the acquisition for gift bag data of playing, and improves expanding for game gift bag data acquisition Malleability and safety.
Optionally, for game player from after logging in game application, Scene servers are provided with a timer Timer, should The effect of timer Timer is at regular intervals to verify currently available game gift bag data one by one.It can first confirm trip The validity of play gift bag, for example, whether game gift bag is in the period sent, whether the switch for sending gift bag of playing is opened Deng.It is compared then in conjunction with the logon data of game application main body, to the game application master for sending game gift bag condition Body carries out the transmission operation of game gift bag.Because the game gift bag data of game application main body are largely all loaded in Scene In the memory of server, so carrying out actual transmission operation on Scene servers has certain convenience.
S502 to step S508 through the above steps, scheme provided by the invention may be implemented second server reception and come from The virtual resource object data of first server, wherein first server is used to obtain virtual resource pair from presetting database Image data, first server execute verification to virtual resource object data, and are determining that virtual resource object data pass through verification In the case of, virtual resource object data are sent to second server, and virtual resource object data are to generate the void of default application The data of quasi- resource object;Second server obtains the default character data using main body;Second server is according to virtual resource Object data and the default character data using main body judge to preset whether meet preset rules using main body;If second service Device is judged to preset according to virtual resource object data and the default character data using main body meets preset rules using main body, Send the corresponding virtual resource object of virtual resource object data and apply main body to default, reached virtual resource is sent to it is pre- If using the purpose of main body, since the Configuration Online to virtual resource object data and portion may be implemented by presetting database Administration, improves the scalability of virtual resource object data, and then improve the flexibility of virtual resource object data, to real Show the technique effect for improving the scalability that virtual resource object is sent, solves the scalability of virtual resource object transmission The technical problem of difference.
As an alternative embodiment, second server receives the virtual resource object data from first server Including:Virtual resource object data of the second server timing receipt from first server, obtain newest virtual resource object Optionally timer Timer is arranged in data on second server, and the effect of timer Timer is at regular intervals will Current virtual resource object data verify one by one, the validity of virtual resource object data are confirmed, for example, virtual resource object Whether the corresponding virtual resource object of data is in sending time, and whether the switch for sending virtual resource object data is opened. By virtual resource object data of the timer Timer timing receipts from first server, newest virtual resource object is obtained Data.
Second server obtains to preset:Second server obtains newest virtual resource pair Image data, optionally, the newest virtual resource object data are by first server by timer Timer periodically from preset data Library obtains and then is forwarded to second server via first server, and second server passes through timer Timer timing acquisitions Newest virtual resource object data.
Second server judges default application master according to virtual resource object data and the default character data using main body Whether body meets preset rules:Second server is according to newest virtual resource object data and the default role using main body Data judge to preset whether meet preset rules using main body, that is, second server is according to newest virtual resource object data Judge the default condition for whether meeting acquisition virtual resource object using main body with the default character data using main body.It is optional Ground is compared in conjunction with newest virtual resource object data and the default data that log in for applying main body, and virtual money is sent to having The default operation that gift bag transmission is carried out using main body of source object condition.Because the default data using main body are largely all added It is loaded in the memory of Scene servers, so carrying out the actual operation tool for sending virtual resource object on Scene servers There is certain convenience.
Second server sends the corresponding virtual resource object of virtual resource object data to default application main body:Such as Fruit second server judges default application master according to default character data and newest virtual resource object data using main body Body meets preset rules, that is, second server is according to newest virtual resource object data and default role's number using main body It is judged that default meet the condition for obtaining virtual resource object using main body, the corresponding void of newest virtual resource object data is sent Quasi- resource object applies main body to default.
The embodiment of the present invention is obtained by virtual resource object data of the second server timing receipt from first server To newest virtual resource object data, second server obtains newest virtual resource object data, and second server is according to newest Virtual resource object data and the default character data using main body judge to preset whether meet preset rules using main body, if Second server is judged default using main body according to default character data and newest virtual resource object data using main body Meet preset rules, sends the corresponding virtual resource object of newest virtual resource object data and apply main body, virtual money to default Source object data do not depend on the service request that player oneself sends acquisition request virtual resource object data, simply by the first clothes Business device and second server handle virtual resource object data, avoid the multiple forwarding of virtual resource object data, The possibility for avoiding virtual resource object data packetloss, reduces the risk of plug-in intervention, while avoiding due to client Or the active operation of third-party platform impacts the acquisition of virtual resource object data, improves virtual resource object number According to the safety of acquisition.The timing of timer is uniformly distributed with default using the login time of main body, second service Device sends the corresponding virtual resource object of virtual resource object data to the default sending time using main body and also scatter, to It alleviates and default concentrates when obtaining virtual resource object the pressure caused by first server and second server using main body.
As an alternative embodiment, receiving the virtual resource object number from first server in second server According to later, second server executes verification to virtual resource object data, wherein second server is according to virtual resource object number Include according to the default character data using main body judges to preset using whether main body meets preset rules:It is true in second server In the case of determining virtual resource object data by verification, according to virtual resource object data and default role's number using main body It is judged that whether default meet preset rules using main body.
Optionally, after second server receives the virtual resource object data from first server, second service Device obtains data of the game application main body when game application is run, and the school in various playing methods is executed to virtual resource object data It tests, in the case where second server determines virtual resource object data by verification, checks the shape of virtual resource object data State is compared in conjunction with the character data of game application main body, is determined whether game application main body meets and is obtained game application pair The condition answered, to improve the validity of virtual resource object data.
The embodiment of the present invention executes verification by second server to virtual resource object data, is determined in second server In the case that virtual resource object data are by verification, according to virtual resource object data and the default character data using main body Judge to preset and whether meet preset rules using main body, to improve the validity of virtual resource object data.
As an alternative embodiment, sending the corresponding virtual resource object of virtual resource object data to default Before main body, mail requests order is sent to the default mailbox server using main body, wherein mail requests order is to use The order of virtual resource object data is received in the default mailbox server using main body of request, presets and is taken using the mailbox of main body Business device determines whether to receive the corresponding virtual resource object of virtual resource object data according to mail requests order.The mailbox takes Business device may be the server received in default application corresponding to the container of virtual resource object, for example, with default application In role the corresponding server of knapsack.
Optionally, sending the corresponding virtual resource object of virtual resource object data to default application main body includes:It is swimming Play will receive the corresponding virtual money of virtual resource object data using the mailbox server of main body according to mail requests order determination After source object, the corresponding virtual resource object of virtual resource object data is sent to the mailbox of game application main body, Jin Ershi Show and has sent virtual resource object data to the purpose of game application main body.
The embodiment of the present invention is by sending the corresponding virtual resource object of virtual resource object data to default application master Before body, mail requests order is sent to the default mailbox server using main body, in the default mailbox server using main body After receiving the corresponding virtual resource object of virtual resource object data according to mail requests order determination, virtual resource is sent The corresponding virtual resource object of object data realizes to the default mailbox using main body and sends virtual resource object data To the default purpose using main body.
As an alternative embodiment, virtual resource object data are XML format, come from second server reception After the virtual resource object data of first server, second server executes inverted sequence to XML format virtual resource object data Rowization processing, obtains the virtual resource object data of unserializing, wherein second server according to virtual resource object data and The default character data using main body judges to preset using whether main body meets preset rules:Second server is according to inverted sequence The virtual resource object data of rowization and the default character data using main body judge to preset whether meet default rule using main body Then.
Optionally, virtual resource object data are stored in xml format in the preset database, virtual resource object number According to the transmission game gift bag condition data and bonus data that can be game application, it is respectively used to determine the item for sending game gift bag The content of part and reward.Virtual resource object data be stored in preset data String data type String types and In the field of Blob data types, keep the description of virtual resource object data more flexible changeable.Second server is to XML format Virtual resource object data execute unserializing processing by game services frame TDR components, and game services frame TDR components are Tencent research and development Tencent's game services frame (Tencent Service Framework for Game, referred to as TSF4G a component), wherein the file of XML format is that the message object that game services frame TDR components are supported describes lattice Binary message can be decoded by formula, the file that game services frame TDR components are described using XML format, antitone sequence Chemical conversion memory object is stored, for second server processing.
The embodiment of the present invention may be used various ways and execute unserializing processing to virtual resource object data, obtain anti- The virtual resource object data of serializing, the mode of above-mentioned unserializing are merely a preferred embodiment of the present invention, and do not represent this The unserializing method of inventive embodiments only includes aforesaid way.Optionally, virtual resource object data in this embodiment When inverted sequence is melted into memory object, the scheme of same effect can be played with similar unserializing method to be used, for example, In the preset database store one section meet Google companies formulation structural data storage format (Protocol Buffer, Referred to as protobuff) agreement binary data, carried out unserializing into memory object with protobuff agreements It may be implemented to execute the purpose that unserializing is handled to virtual resource object data, to obtain the virtual resource pair of unserializing Image data.
The embodiment of the present invention can also store one section of virtual machine explanation type script Lua/ in the preset database The similar script of Python utilizes the logic of script and second server after timer Timer pulls second server Relationship interacts to judge the transmission condition of virtual resource object and to provide content also possible.
As an alternative embodiment, XML format virtual resource object data are with sharing body (UNION) type array It preserves in preset field in the preset database, for example, XML format virtual resource object data are protected with UNION type arrays There are in the field of String types or Blob types.The type of each element in UNION type arrays passes through type (TYPE) it marks, the corresponding concrete type of each element in array to make virtual resource object data composition is combined into phase The XML format data file answered.Meeting the XML format virtual resource object data of TDR specifications allows the combination of TYPE+UNION Form, can be directly by TDR unserializings to the memory object of the combining form of the TYPE+UNION of C/C++ specifications, at this time Program can directly manipulate the memory object and generate various logic combination, in this way in second server to virtual resource object number When according to being parsed, for example, second server judges according to virtual resource object data and the default character data using main body It is default when whether meeting preset rules using main body, can using TDR the XML unserializings at the memory pair of TYPE+UNION As.
Optionally, virtual resource object data include reward of gift bag, such as money, equipment, stage property etc., can also be passed through The XML format is stored in UNION type arrays in the preset field in database, each element in UNION type arrays Type marked by TYPE.Preset field can store the virtual resource object data of full dose in this way.After in addition, if It needs to extend virtual resource object data, need not also break original data structure frame, improve virtual resource object number According to scalability, and then improve virtual resource object transmission flexibility.
The embodiment of the present invention is stored in UNION type arrays in database by the resource object data of XML format In preset field, the type of each element in UNION type arrays is marked by TYPE, improves virtual resource object data Scalability, and then improve virtual resource object transmission flexibility.
As an alternative embodiment, virtual resource object data are following by SQL statement execution in the database At least one online change:It is inserted into, modification, deletes, improve the scalability of virtual resource object data, improve virtual money The flexibility that source object is sent, the behaviour such as the insertion, modification, deletion of virtual resource object data may be implemented by presetting database Make.
Optionally, presetting database can execute change with the carry out process of game application, that is, presetting database Virtual resource object data need not alternate with game application version, but as the operation demand of game application carries out Configuration Online and deployment in time, even if the configuration and deployment of the virtual resource object data of presetting database are out of joint In time virtual resource object data can be inserted into, change, delete etc. with operations, improve virtual resource object data Scalability, and then effectively alleviate accident of game application during operation.Due to can be real by presetting database The now Configuration Online to virtual resource object data and deployment improve the scalability of virtual resource object data, improve The flexibility of virtual resource object data, that is, improving the flexibility of virtual resource object data transmission.
As an alternative embodiment, resource object data include the multiple condition datas and content number of resource object According to second server is combined multiple condition datas according to logic of propositions, obtains combination condition data, wherein send empty Intending the corresponding virtual resource object of resource object data to default application main body includes:Content number is sent according to combination condition data According to corresponding virtual resource object main body is applied to default.
It is illustrated with reference to preferred embodiment.
The game application of the embodiment is The Magic Blade online game.The game gift bag data of The Magic Blade are with data Medium of the library as game gift bag data storage, compared with game gift bag is in such a way that document form is stored, database It is with the obvious advantage.The Heterosis of database both ways, first, database have height structured storage, powerful SQL Sentence can extremely advantageously operate game gift bag data, for example, insertion, modification, the deletion of game gift bag data.The Two, database can carry out various operations with the progress of game application, that is, game gift bag data need not be with game The update of application version and alternate, but carry out Configuration Online and deployment in time with the operation demand of game application. Even if game gift bag data have gone out mistake, game gift bag data can also be inserted into time using SQL statement, change, delete Division operation effectively alleviates the degree of operation accident,
In the transmission of the game gift bag of the The Magic Blade online game of the embodiment, game gift bag data are that game is answered The bonus data of the condition data and game gift bag of game gift bag is obtained with main body, wherein game application main body obtains game gift The condition data namely server of packet send the condition of game gift bag data.Game gift bag data are stored as XML format, are protected There are in the specific field of the String types of database or Blob types.Game gift bag data, which are stored as XML format, to be made The logical description for gift bag data of playing is more flexible changeable.The game gift bag data of XML format are executed at TDR unserializings Reason, obtains the game gift bag data of unserializing.The game gift bag data of XML format are stored in data with UNION type arrays In preset field in library, the type of each element in UNION type arrays becomes memory object by TYPE marks, at this time Program can directly manipulate the various logic combination of memory object generation.
For example, for player levels constraint condition may be 0 to 99 integer number, but for player log in when Between may be 2015-11-25 08:00:The UNIX timestamps of 00 format.Can be the game gift bag in database according to demand The different condition field of design data, for example, rating conditions field type is integer type int data types, the time of login Condition field type is date date data type.But it will will be added in database when subsequently needing expansion condition Its field, game gift bag data when such in database are very inflexible, also increase game gift bag data maintenance at This.
Optionally, the condition data for sending game gift bag data is designed to the array of UNION types, is marked using TYPE The corresponding concrete type of each element in array, thus by each element combinations at the game gift bag data of XML format, in this way In the resolving of Scene servers, TDR can be utilized the game gift bag data unserializing of the XML format at TYPE The memory object being jointly processed by with UNION.Optionally, the condition data design method in above-mentioned transmission game gift bag data is same Bonus data design method of the sample suitable for gift bag of playing.Game gift bag data in bonus data be also likely to be money, equipment, Stage property etc..Then a series of field of String types can store the condition data in the game gift bag data of full dose and reward Data.In addition, if needing expansion condition data or bonus data later, original data structure frame need not be broken. Since the Configuration Online to gift bag data of playing and deployment may be implemented by database, improve what gift bag was sent to realize The technique effect of scalability.
Fig. 6 is the schematic diagram of the Configuration Online of game gift bag data according to the ... of the embodiment of the present invention.As shown in fig. 6, box The part enclosed is that gift bag data configuration of playing gets condition, the respectively rating conditions " Level of game application main body Type " and establishment account time " creat_time_bef ", while money and two class of stage property also having been given to compensate, respectively " money Type " and " accy_data ".The condition (condition) of game gift bag in the embodiment has chosen the logic " with (and) ", That is, being 1 at " op_type ", wherein 1 indicates " with (and) " logic, and 2 are expressed as " or (or) " logic.The processing of server Several conditions can be screened by certain logic in the process, to realize the technology for the scalability for improving gift bag data Effect.
Fig. 7 is the schematic diagram that virtual resource object according to the ... of the embodiment of the present invention is sent.As shown in fig. 7, virtual resource pair The transmission of elephant needs presetting database 701, first server 702, second server 703, second server 704, second service Device 705, game application main body 707 and 707 collective effect of game application main body are completed.First server 702 is provided with timing Device Timer, which starts at regular intervals executes a call back function, and timing, which is sent, obtains virtual resource object data Request command to presetting database 701, after virtual resource object data all complete by load, first server 702 is right Virtual resource object data are simply verified, and can be verified to the format of virtual resource object data, legitimacy. After first server 702 completes virtual resource object data check, first server 702 pushes away virtual resource object data It send to second server 703, second server 704, second server 705.Second server 703, second server 704, Two servers 705 store newest virtual resource object data in memory.Game player is after logging in game application, and Two servers are also provided with a timer Timer, and the effect of timer Timer is at regular intervals will be currently available Virtual resource object data verify one by one.First determine virtual resource object validity, for example, virtual resource object whether In sending time, whether the switch for sending virtual resource object is opened, then in conjunction with the logon data of game application main body It is compared, to the game application main body 707 with acquisition virtual resource object condition, game application main body 707 carries out virtually The transmission of resource object operates, and can be sent to virtual resource object in the corresponding mailbox of virtual objects.Due to game application The virtual resource object data of main body are largely all loaded in the memory of second server, so enterprising in second server The transmission operation of the actual virtual resource object of row has certain convenience.
Optionally, presetting database 701 is game database, and first server 702 is World servers, second service Device 703, second server 704 and second server 705 are all Scene servers, game application main body 707 and game application master Body 707 is the virtual objects in game application.World servers are provided with timer Timer, and the timer is at regular intervals Start and execute a call back function, timing sends the request command for obtaining game gift bag to game database, when game gift bag number After all load is completed, World servers simply verify game gift bag data, can be to gift bag data of playing Format, legitimacy verified.
After World servers complete game gift bag data check, World servers will game gift bag data-pushing To Scene servers.Scene servers store newest game gift bag data in memory.Game player is logging in game Using later, Scene servers are also provided with a timer Timer, and the effect of timer Timer is when one section Between currently available game gift bag data are verified one by one.First determine game gift bag validity, for example, game gift bag whether In sending time, whether the switch for sending game gift bag is opened, then in conjunction with the login of the game player in game application Data are compared, and the operation of game gift bag is sent to being executed with the virtual objects for obtaining game gift bag condition, can will be swum Play gift bag is sent in the corresponding mailbox of virtual objects.Since the game gift bag data of virtual objects are largely all loaded in In the memory of Scene servers, so the transmission operation for carrying out actual game gift bag on Scene servers has centainly Convenience.
Fig. 8 is the sequential flow chart that virtual resource object according to the ... of the embodiment of the present invention is sent.As shown in figure 8, this is virtual Resource object sending method includes the following steps:
Step S801, world server timing send the request command of acquisition request game gift bag to game database.
World server by timer Timer timing send acquisition request play gift bag request command to game data Library.
Step S802, game database is configured according to the request command of game gift bag and deployment game gift bag data.
Game database can be with Configuration Online and deployment game gift bag data, to make according to the request command of game gift bag World server obtains game gift bag data.
Step S803, world server execute verification to game gift bag data.
Whether the format of world server verification game gift bag data is correct, and whether verification game gift bag data are legal etc., So that it is determined that the availability of game gift bag.
Step S804, world server send game gift bag data to logical server.
Verification is executed to game gift bag data in world server, and available in game gift bag data, sent Gift bag data of playing are to logical server.
Step S805, logical server timing execute verification to game gift bag data, and with the logon data of game player It is compared.
After logical server receives the game gift bag data from world server, logical server passes through timer Timer timings execute verification to game gift bag data, and are compared with the logon data of game player.Logical server obtains Data of the game application main body when game application is run execute the verification in various playing methods to virtual resource object data, In the case that second server determines virtual resource object data by verification, the state of virtual resource object data, knot are checked The character data for closing game application is compared, and determines whether game theme meets the corresponding condition of acquisition game, to improve The validity of virtual resource object data.
Step S806, after logical server verifies successfully, to being sent with the game player for obtaining game gift bag condition Mail requests order is to mailbox server.
After logical server is to game gift bag data check success, to being played with the game for obtaining game gift bag condition Family sends mail requests order to mailbox server, and mail requests order is the mailbox server for asking game application main body The order of virtual resource object data is received, the mailbox server of game application main body is determined whether to according to mail requests order Receive the corresponding virtual resource object of virtual resource object data.The mailbox server may be that void is received in game application Server corresponding to the container of quasi- resource object, for example, the corresponding server of the knapsack of the game role in game application.Into And it realizes and sends virtual resource object data to the purpose of game application main body.
Step S807, mailbox server send game gift bag to virtual objects.
The mailbox server of game application main body will receive virtual resource object data pair according to mail requests order determination The virtual resource object answered sends game gift bag to virtual objects.
The transmission flow of entire game gift bag is the timer by being arranged on World servers and Scene servers Timer drivings, it is independently initiated and is completed by World servers and Scene servers, do not depend on client and third-party platform Request, avoid game player forge obtain game gift bag request command, avoid and caused since server process is bad Gift bag of playing is requested the risk obtained repeatedly, more effectively prevents plug-in intervention, to anti-plug-in and server load Preferable effect is played in equilibrium, improves the safety that game gift bag is sent.
In addition, timer Timer timing driving servers, make to be arranged the timing in game player with game player Time for logging in and be uniformly distributed, therefore, the time for sending game gift bag is also broken up, and alleviates the trip of user terminal centralized operation Play application, make game application main body obtain game gift bag and caused by server pressure.
The embodiment of the present invention by world server timing send acquisition request play gift bag request command to number of playing According to library, game database is configured according to the request command of game gift bag and deployment game gift bag data, and world server is to game Gift bag data execute verification, and world server sends game gift bag data to logical server, and logical server timing is to game Gift bag data execute verification, and are compared with the logon data of game player, after logical server verifies successfully, to having The game player for obtaining game gift bag condition sends mail requests order to mailbox server, and mailbox server sends game gift bag It shields client to make the design logic of the game gift bag data all in server side to virtual objects or third party is flat Platform influences caused by being got on gift bag (such as WEB page), avoids game player's forgery gift bag and gets message, server process is not Gift bag is played caused by good by the risk of swipe repeatedly, avoid game gift bag data by the existing packet loss of repeatedly forwarding can Energy property is made that the operation for getting game gift bag is not answered but so as to avoid user terminal by game application main body It answers, operator can dispose game gift bag data online, need not withdraw operation, avoid once game gift bag data The case where configuration error needs to withdraw urgent amendment, modification and closing for gift bag data of playing can also be by changing data The game gift bag data in library are completed, and processing need not be also withdrawn, and are improved the scalability of game gift bag data, are avoided game Player gets game gift bag because of concentration leads to service caused by the instantaneous pressure of server is excessive, server process is not smooth enough The risk of device collapse.Game gift bag design can dynamically combine the condition that existing game gift bag is sent, difference of arranging in pairs or groups out Game gift bag get scheme, autgmentability is strong, improve game gift bag data flexibility, to realize improve game gift bag The technique effect of the flexibility of transmission.
Fig. 9 is the screenshotss schematic diagram of the transmission effect of game gift bag according to the ... of the embodiment of the present invention.As shown in figure 9, default Application program The Magic Blade celebrates the operation activity that the primary game gift bag of outlet South Korea is sent.The corresponding game of user terminal Using main body play gift bag send during do not have a premonition, do not need user terminal actively carry out click get game gift bag Button or icon.Operation personnel only needs the data description for gift bag of playing being inserted into database, the corresponding trip of user terminal Play only needs to stay for some time online using main body, and game gift bag can voluntarily enter the corresponding game application master of user terminal In the mailbox or knapsack of body, and there is corresponding prompt message, for example, " congratulating, your Mu Yutian has sent two gift bags To your mailbox, please check and accept ", the flexibility that game gift bag is sent is improved, experience property of the user terminal to game application is improved Energy.
It should be noted that for each method embodiment above-mentioned, for simple description, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the described action sequence because According to the present invention, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical scheme of the present invention is substantially in other words to existing The part that technology contributes can be expressed in the form of software products, which is stored in a storage Medium, for example, read-only memory (Read-Only Memory, referred to as ROM)/random access memory (Random Access Memory, referred to as RAM), magnetic disc, in CD, including some instructions are used so that a station terminal equipment (can be mobile phone, meter Calculation machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, a kind of device for implementing above-mentioned virtual resource object sending method is additionally provided. Figure 10 is the schematic diagram of virtual resource object sending device according to a first embodiment of the present invention.As shown in Figure 10, the virtual money Source object sending device includes:Acquiring unit 10, verification unit 20 and transmission unit 30.
Acquiring unit 10, for obtaining virtual resource object data from presetting database, wherein virtual resource object number According to the data of the virtual resource object to generate default application.
Verification unit 20, for executing verification to virtual resource object data.
Transmission unit 30, in the case where determining virtual resource object data by verification, sending virtual resource pair Image data is to second server, wherein second server is used to obtain the default character data using main body, according to default application The character data and virtual resource object data of main body judge to preset using whether main body meets preset rules, and send virtual money For the corresponding virtual resource object of source object data to the default using main body of preset rules is met, preset rules are pre- for judging If using the whether legal rule of main body.
In the virtual resource object sending device of the embodiment, acquiring unit 10 can be used for executing the embodiment of the present invention In step S402, verification unit 20 can be used for executing the step S404 in the embodiment of the present invention, and transmission unit 30 can use In executing the step S406 in the embodiment of the present invention.
The above-mentioned acquiring unit of the application 10 can be used for obtaining the service request of virtual resource object in the preset database Data, to the name data of the configuration data of virtual resource object, virtual resource object, to the suggestion content of virtual resource object Data, the beginning sending time data of virtual resource object, the end sending time data of virtual resource object, virtual resource pair The virtual resource objects data such as the transmission condition data of elephant, the particular content data of virtual resource object.Pass through presetting database The operations such as the insertion, modification, deletion of virtual resource object data may be implemented.Presetting database can with default application into Row process executes change, Configuration Online and deployment in time is carried out with the operation demand of default application, even if presetting database Virtual resource object data configuration and deployment it is out of joint, virtual resource object data can also be inserted in time The operations such as enter, change, deleting, improving the scalability of virtual resource object data, and then effectively alleviate default application Accident during operation.Since the Configuration Online to virtual resource object data and portion may be implemented by presetting database Administration, improves the scalability of virtual resource object data, and then improve the flexibility of virtual resource object data.
The above-mentioned verification unit 20 of the application first server obtained from presetting database virtual resource object data it Afterwards, verification unit 20 executes verification to virtual resource object data, for example, just whether the format of verification virtual resource object data Really, whether verification virtual resource object data are legal etc., so that it is determined that the availability of virtual resource object.Verify virtual resource pair Whether the whether legal protocol package including verification virtual resource object data of image data is the protocol package forged, time window setting is It is no rationally etc., to prevent false virtual resource object data.Verification unit 20 executes verification to virtual resource object data, Check results are obtained, optionally, verification unit 20 determines whether verification passes through according to check results.
The above-mentioned transmission unit 30 of the application is used in the case where determining virtual resource object data by verification, is sent empty Quasi- resource object data are to second server, that is, transmission unit 30 turns the virtual resource object data in presetting database It is sent to second server.Second server is used to obtain the default character data using main body, according to the default angle using main body Chromatic number evidence and virtual resource object data judge to preset using whether main body meets preset rules, and send virtual resource object number According to corresponding virtual resource object main body is applied to the default of preset rules is met.Second server, which obtains, to be preset using main body Character data, whether then default character data and virtual resource object the data judgement using main body of basis is default applies main body Meet preset rules, and sends the corresponding virtual resource object of virtual resource object data to the default application for meeting preset rules Main body, wherein preset rules include the validity rule of default registration conditions and virtual resource object data using main body.
As an alternative embodiment, acquiring unit 10 is used to add from presetting database by call back function timing Carry newest virtual resource object data.
As an alternative embodiment, transmission unit 30 is for sending virtual resource object data to multiple second clothes Business device, wherein multiple second servers preserve virtual resource object data in memory.
As an alternative embodiment, acquiring unit 10 is used to add from presetting database by call back function timing Carry newest virtual resource object data.
As an alternative embodiment, second server is multiple, transmission unit 30 is for sending virtual resource pair Image data is to multiple second servers, wherein multiple second servers preserve virtual resource object data in memory.
The embodiment of the present invention obtains virtual resource object data, preset data by acquiring unit 10 from presetting database Library is the number for the virtual resource object for generating default application for storing virtual resource object data, virtual resource object data According to;Verification is executed to virtual resource object data by verification unit 20;Virtual resource object is being determined by transmission unit 30 In the case that data are by verification, virtual resource object data are sent to second server, second server is default for obtaining Using the character data of main body, default application master is judged according to the default character data using main body and virtual resource object data Whether body meets preset rules, and sends the corresponding virtual resource object of virtual resource object data to meeting the pre- of preset rules If using main body, achieved the purpose that by virtual resource be sent to it is default apply main body, due to can be real by presetting database The now Configuration Online to virtual resource object data and deployment improve the flexibility of virtual resource object data, to realize The technique effect for the scalability that virtual resource object is sent is improved, and then solves the expansible of virtual resource object transmission Property difference technical problem.
According to embodiments of the present invention, a kind of device for implementing above-mentioned virtual resource object sending method is additionally provided. Figure 11 is the schematic diagram of virtual resource object sending device according to a second embodiment of the present invention, as shown in figure 11, the device packet It includes:Receiving unit 40, acquiring unit 50, judging unit 60 and transmission unit 70.
Receiving unit 40, for receiving the virtual resource object data from first server.
Acquiring unit 50, for obtaining the default character data using main body.
Judging unit 60, for judging default answer according to virtual resource object data and the default character data using main body Whether meet preset rules with main body.
Transmission unit 70, for judged according to virtual resource object data and the default character data using main body it is pre- If meeting preset rules using main body, sends the corresponding virtual resource object of virtual resource object data and apply main body to default.
In the virtual resource object sending device of the embodiment, receiving unit 40 can be used for executing the embodiment of the present invention In step S502, acquiring unit 50 can be used for executing the step S504 in the embodiment of the present invention, and judging unit 60 can use In executing the step S506 in the embodiment of the present invention, transmission unit 70 can be used for executing the step in the embodiment of the present invention S508。
The above-mentioned receiving unit 40 of the application receives the virtual resource object data from first server.First server is used In obtaining virtual resource object data from presetting database, verification is executed to virtual resource object data, and virtual determining In the case that resource object data are by verification, virtual resource object data are sent to second server, virtual resource object number According to the data for the virtual resource object for generating default application.
The above-mentioned acquiring unit 50 of the application is used to determine that virtual resource object data pass through verification in first server In the case of, after sending virtual resource object data to second server, obtain the default character data using main body.Log in number Exist using main body according to including presetting the time using the default application of main body login, logging in preset the login times of application and preset The data such as the grade in default application.
The above-mentioned judging unit 60 of the application applies main body after the default character data using main body of acquisition according to default Character data and virtual resource object data judge default whether meet preset rules using main body, wherein preset rules are For judging the default rule whether legal using main body, including default registration conditions and virtual resource object number using main body According to validity rule.The validity rule of the virtual resource object data of the embodiment can be virtual resource object data pair Whether the virtual resource object answered is in sending time, and whether the switch for sending virtual resource object the validity rules such as opens.
The above-mentioned transmission unit 70 of the application, if it is determined that unit 60 is according to virtual resource object data and presets using main body Character data judge default to meet preset rules, the corresponding virtual resource pair of transmission virtual resource object data using main body As applying main body to default.The virtual resource object data of the embodiment do not depend on player oneself and send acquisition request virtual resource The service request of object data is handled virtual resource object data simply by first server and second server, The multiple forwarding for avoiding virtual resource object data, avoids the possibility of virtual resource object data packetloss, reduces outer The risk of intervention is hung, while being avoided since client or the active operation of third-party platform are to virtual resource object data Acquisition impacts, and improves the safety of virtual resource object data.
As an alternative embodiment, receiving unit 40 is used for virtual resource of the timing receipt from first server Object data, obtains newest virtual resource object data, and acquiring unit 50 judges for obtaining newest virtual resource object data Unit 60 is used to be judged according to newest virtual resource object data and the default character data using main body It is no to meet preset rules, transmission unit 70 be used for second server according to the default character data using main body and it is newest virtually Resource object data are judged default when meeting preset rules using main body, send the corresponding void of newest virtual resource object data Quasi- resource object applies main body to default.
As an alternative embodiment, virtual resource object sending device further includes verification unit, for second After server receives the virtual resource object data from first server, verification is executed to virtual resource object data.Sentence Disconnected unit 60 is used in the case where determining virtual resource object data by verification, according to virtual resource object data and is preset Judge to preset whether meet preset rules using main body using the character data of main body.
As an alternative embodiment, transmission unit 70 is additionally operable to send mail requests order to default using main body Mailbox server, wherein mail requests order is for asking the default mailbox server using main body to receive virtual resource The order of object data, the default mailbox server using main body determine whether to receive virtual resource according to mail requests order The corresponding virtual resource object of object data.Transmission unit 70 is ordered using the mailbox server of main body according to mail requests default After enabling determination to receive the corresponding virtual resource object of virtual resource object data, it is corresponding to send virtual resource object data Virtual resource object is to the default mailbox using main body.
As an alternative embodiment, virtual resource object data are XML format, virtual resource object sending device Further include processing unit, for after receiving the virtual resource object data from first server, second server to be to XML Format virtual resource object data execute the processing of TDR unserializings, obtain the virtual resource object data of unserializing, wherein Judging unit 60 is used to be judged according to the virtual resource object data of unserializing and the default character data using main body default Whether meet preset rules using main body.
Optionally, the resource object data of XML format are stored in the preset field in database with UNION type arrays In, the type of each element in UNION type arrays is marked by TYPE.
Optionally, resource object data execute following at least one online change by SQL statement in the database:It inserts Enter, change, delete.
As an alternative embodiment, resource object data include the multiple condition datas and content number of resource object According to second server is combined multiple condition datas according to logic of propositions, obtains combination condition data, wherein send single Member 70 applies main body for sending the corresponding virtual resource object of content-data according to combination condition data to default.
The embodiment of the present invention is deposited during the entire process of playing gift bag granting using the structuring of database as gift bag data Medium is stored up, freely loads, change and deletes using SQL statement, convenient online deployment.It is sent out using timer Timer as gift bag Driving force is put, it is safer efficient instead of the way of client uplink agreement, so that server load is more uniformly distributed, and utilize For unserializing technology TDR the description load of binary gift bag at memory object, format is flexible and changeable, obtains the item of game gift bag Part can be freely combined, and scalability is stronger, and flexibility is good.
The embodiment of the present invention receives the virtual resource object data from first server by receiving unit 40, by obtaining Take unit 50 by obtaining the default character data using main body, by judging unit 60 according to virtual resource object data and in advance If judging to preset whether meet preset rules using main body using the character data of main body, by transmission unit 70 according to virtual Resource object data and the default character data using main body are judged to preset meets preset rules using main body, sends virtual money The corresponding virtual resource object of source object data applies main body to default, has reached to be sent to virtual resource to preset and has applied main body Purpose improve void since the Configuration Online to virtual resource object data and deployment may be implemented by presetting database The scalability of quasi- resource object data, and then the flexibility of virtual resource object data is improved, improve void to realize The technique effect for the scalability that quasi- resource object is sent, the technology for solving the poor expandability of virtual resource object transmission are asked Topic.
Embodiment 3
The embodiments of the present invention also provide a kind of storage mediums.Optionally, in the present embodiment, above-mentioned storage medium can For preserving the program code performed by a kind of virtual resource object sending method of above-described embodiment.
Optionally, in the present embodiment, above-mentioned storage medium can be located in multiple network equipments of computer network At least one network equipment.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps:
The first step, first server obtain virtual resource object data from presetting database.
Second step, first server execute verification to virtual resource object data.
Third walks, and first server sends virtual resource in the case where determining virtual resource object data by verification Object data is to second server, wherein second server is used to obtain the default character data using main body, is answered according to default Judge to preset using whether main body meets preset rules with the character data and virtual resource object data of main body, and sends virtual The corresponding virtual resource object of resource object data applies main body to the default of preset rules is met, wherein preset rules are to use In the default rule whether legal using main body of judgement.
Optionally, storage medium is also configured to store the program code for executing following steps:First server is logical It crosses call back function timing and loads newest virtual resource object data from presetting database.
Optionally, storage medium is also configured to store the program code for executing following steps:Send virtual resource Object data is to multiple second servers, wherein multiple second servers preserve virtual resource object data in memory.
Optionally, first server obtains virtual resource object data from presetting database and includes:First server from XML format virtual resource object data are obtained in presetting database, first server executes verification to virtual resource object data Including:First server executes verification to XML format virtual resource object data, and first server is determining virtual resource object In the case that data are by verification, sending virtual resource object data to second server includes:First server is determining XML In the case that format virtual resource object data are by verification, transmission XML format virtual resource object data to second server, Wherein, second server receives the XML format virtual resource object data from first server, to XML format virtual resource Object data executes unserializing processing, the virtual resource object data of unserializing is obtained, according to the virtual money of unserializing Source object data and the default character data using main body judge to preset whether meet preset rules using main body.
Optionally, first server obtains XML format virtual resource object data from presetting database and includes:First clothes Business device obtains the XML format virtual resource object data of UNION type arrays from presetting database, wherein UNION number of types The XML format virtual resource object data of group preserve in preset field in the preset database, every in UNION type arrays The type of a element is marked by TYPE.
Optionally, in the present embodiment, storage medium is also configured to store the program code for executing following steps:
The first step, second server receive the virtual resource object data from first server, wherein first server For obtaining virtual resource object data from presetting database, verification is executed to virtual resource object data, and empty determining In the case that quasi- resource object data are by verification, virtual resource object data are sent to second server.
Second step, second server obtain the default character data using main body.
Third walks, and second server judges default according to virtual resource object data and the default character data using main body Whether meet preset rules using main body, wherein preset rules are for judging the default rule whether legal using main body.
4th step, if second server judges according to virtual resource object data and the default character data using main body Go out to preset and meet preset rules using main body, sends the corresponding virtual resource object of virtual resource object data to default application master Body.
Optionally, storage medium is also configured to store the program code for executing following steps:Second server connects Receiving the virtual resource object data from first server includes:Second server timing receipt is from the virtual of first server Resource object data, obtain newest virtual resource object data, and second server obtains the default character data packet using main body It includes:Second server obtains newest virtual resource object data, and second server is answered according to virtual resource object data with default Include with the character data of main body judges to preset using whether main body meets preset rules:Second server is according to newest virtual money Source object data and the default character data using main body judge to preset whether meet preset rules using main body, send virtual money The corresponding virtual resource object of source object data to default application main body includes:If second server applies main body according to default Character data and newest virtual resource object data judge default to meet preset rules, the newest virtual money of transmission using main body The corresponding virtual resource object of source object data applies main body to default.
Optionally, storage medium is also configured to store the program code for executing following steps:In second server After receiving the virtual resource object data from first server, second server executes school to virtual resource object data It tests, wherein second server judges default application master according to virtual resource object data and the default character data using main body Whether body meets preset rules:In the case where second server determines virtual resource object data by verification, according to Virtual resource object data and the default character data using main body judge to preset whether meet preset rules using main body.
Optionally, storage medium is also configured to store the program code for executing following steps:Sending virtual money Before the corresponding virtual resource object of source object data to default application main body, sends mail requests order and apply main body to default Mailbox server, wherein mail requests order is for asking the default mailbox server using main body to receive virtual resource The order of object data, the default mailbox server using main body determine whether to receive virtual resource according to mail requests order The corresponding virtual resource object of object data, wherein send the corresponding virtual resource object of virtual resource object data to default Include using main body:Virtual resource object will be received according to mail requests order determination using the mailbox server of main body default After the corresponding virtual resource object of data, the corresponding virtual resource object of virtual resource object data is sent to default application master The mailbox of body.
Optionally, storage medium is also configured to store the program code for executing following steps:Virtual resource object Data are XML format, after second server receives the virtual resource object data from first server, second server The processing of TDR unserializings is executed to XML format virtual resource object data, obtains the virtual resource object data of unserializing, Wherein, XML format virtual resource object data are stored in UNION type arrays in the preset field in presetting database, The type of each element in UNION type arrays is marked by TYPE, wherein second server is according to virtual resource object number Include according to the default character data using main body judges to preset using whether main body meets preset rules:Second server according to The virtual resource object data of unserializing and the default character data using main body judge it is default whether meet using main body it is pre- If regular.
Optionally, storage medium is also configured to store the program code for executing following steps:Resource object data Multiple condition datas including resource object and content-data, second server carry out multiple condition datas according to logic of propositions Combination, obtains combination condition data, wherein sends the corresponding virtual resource object of virtual resource object data to default application master Body includes:The corresponding virtual resource object of content-data, which is sent, according to combination condition data applies main body to default.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read only memory ROM, with Machine accesses the various media that can store program code such as memory RAM, mobile hard disk, magnetic disc or CD.
Embodiment 4
The embodiment of the present invention also provides a kind of terminal, which can be in terminal group Any one computer terminal.Optionally, in the present embodiment, above computer terminal can also replace with mobile terminal Equal terminal devices.
Optionally, in the present embodiment, above computer terminal can be located in multiple network equipments of computer network At least one network equipment.
Optionally, Figure 12 is the structure diagram of terminal according to the ... of the embodiment of the present invention.As shown in figure 12, the calculating Machine terminal A may include:One or more (one is only shown in figure) processors 121, memory 123 and transmitting device 125。
Wherein, memory 123 can be used for storing software program and module, such as the virtual resource pair in the embodiment of the present invention As sending method and the corresponding program instruction/module of device, processor 121 is stored in the software in memory 123 by operation Program and module realize above-mentioned virtual resource object hair to perform various functions default application and data processing Delivery method.Memory 123 may include high speed random access memory, can also include nonvolatile memory, such as one or more Magnetic storage device, flash memory or other non-volatile solid state memories.In some instances, memory 123 can be wrapped further The memory remotely located relative to processor 121 is included, these remote memories can pass through network connection to terminal A.The example of above-mentioned network includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 125 is used to receive via a network or transmission data.Above-mentioned network specific example It may include cable network and wireless network.In an example, transmitting device 125 includes a network adapter NIC, can be led to Cable is crossed to be connected with other network equipments with router so as to be communicated with internet or LAN.In an example, Transmitting device 125 is radio frequency module, is used to wirelessly be communicated with internet.
Wherein, specifically, memory 123 is used to store information, the Yi Jiying of deliberate action condition and default access user Use program.
Processor 121 can call the information and application program that memory 123 stores by transmitting device, following to execute Step:
Optionally, the program code of following steps can also be performed in above-mentioned processor 121:
The first step, first server obtain virtual resource object data from presetting database.
Second step, first server execute verification to virtual resource object data.
Third walks, and first server sends virtual resource in the case where determining virtual resource object data by verification Object data is to second server, wherein second server is used to obtain the default character data using main body, is answered according to default Judge to preset using whether main body meets preset rules with the character data and virtual resource object data of main body, and sends virtual The corresponding virtual resource object of resource object data applies main body to the default of preset rules is met, and preset rules is for judging The default rule whether legal using main body.
Optionally, the program code of following steps can also be performed in above-mentioned processor 121:
The first step, second server receive the virtual resource object data from first server, wherein first server For obtaining virtual resource object data from presetting database, verification is executed to virtual resource object data, and empty determining In the case that quasi- resource object data are by verification, virtual resource object data are sent to second server.
Second step, second server obtain the default character data using main body;Second server is according to virtual resource pair Image data and the default character data using main body judge to preset whether meet preset rules using main body, wherein preset rules For for judging the default rule whether legal using main body.
Third walks, if second server judges according to virtual resource object data and the default character data using main body Go out to preset and meet preset rules using main body, sends the corresponding virtual resource object of virtual resource object data to default application master Body.
Optionally, the specific example in the present embodiment can refer to showing described in above-described embodiment 1 and embodiment 2 Example, details are not described herein for the present embodiment.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product Sale in use, can be stored in the storage medium that above computer can be read.Based on this understanding, skill of the invention Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention State all or part of step of method.
In the above embodiment of the present invention, all emphasizes particularly on different fields to the description of each embodiment, do not have in some embodiment The part of detailed description may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, for example, the unit division, only one Kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module It connects, can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (18)

1. a kind of virtual resource object sending method, which is characterized in that including:
First server obtains virtual resource object data from presetting database;
The first server executes verification to the virtual resource object data;And
The first server sends the virtual resource in the case where determining the virtual resource object data by verification Object data is to second server, wherein the second server is used to obtain the default character data using main body, according to institute Stating default character data and the virtual resource object data using main body, to judge whether the default application main body meets pre- If it is regular, and send the corresponding virtual resource object of the virtual resource object data and answered to the default of the preset rules is met With main body, wherein the preset rules are for judging the default rule whether legal using main body.
2. according to the method described in claim 1, it is characterized in that, the first server is obtained from the presetting database The virtual resource object data include:The first server is loaded by call back function timing from the presetting database Newest virtual resource object data.
3. according to the method described in claim 1, it is characterized in that, the second server is multiple, the virtual money is sent Source object data to the second server includes:First server sends the virtual resource object data to multiple described the Two servers, wherein multiple second servers preserve the virtual resource object data in memory.
4. according to the method described in claim 1, it is characterized in that,
The first server obtains the virtual resource object data from the presetting database:The first service Device obtains XML format virtual resource object data from the presetting database,
The first server executes verification to the virtual resource object data:The first server is to the XML Format virtual resource object data execute verification,
The first server sends the virtual resource in the case where determining the virtual resource object data by verification Object data to the second server includes:The first server is determining the XML format virtual resource object data In the case of by verification, the XML format virtual resource object data are sent to the second server, wherein described Two servers receive the XML format virtual resource object data from the first server, to the XML format virtual resource Object data executes unserializing processing, the virtual resource object data of unserializing is obtained, according to the void of the unserializing It is described pre- that quasi- resource object data and the default character data using main body judge whether the default application main body meets If regular.
5. according to the method described in claim 4, it is characterized in that, the first server is obtained from the presetting database The XML format virtual resource object data include:The first server obtains UNION type arrays from presetting database XML format virtual resource object data, wherein the XML format virtual resource object data of the UNION types array preserve In preset field in the presetting database, the type of each element in the UNION types array is marked by TYPE Note.
6. a kind of virtual resource object sending method, which is characterized in that including:
Second server receive the virtual resource object data from first server, wherein the first server be used for from Virtual resource object data are obtained in presetting database, verification are executed to the virtual resource object data, and described in determination In the case that virtual resource object data are by verification, the virtual resource object data are sent to the second server;
The second server obtains the default character data using main body;
The second server judges institute according to the virtual resource object data and the default character data using main body It states and default whether meets preset rules using main body, wherein the preset rules is for judging that the default application main body is No legal rule;And
If the second server is according to the virtual resource object data and described default sentences using the character data of main body Break and the default application main body and meet the preset rules, sends the corresponding virtual resource pair of the virtual resource object data As extremely described default using main body.
7. according to the method described in claim 6, it is characterized in that,
The second server receives the virtual resource object data from first server:The second server timing The virtual resource object data from the first server are received, newest virtual resource object data are obtained,
The second server judges institute according to the virtual resource object data and the default character data using main body It states to preset using whether main body meets preset rules and includes:The second server is according to the newest virtual resource object data Judge whether the default application main body meets preset rules with the default character data using main body,
Sending the corresponding virtual resource object of the virtual resource object data to the default application main body includes:If described Second server is judged described default according to the default character data and newest virtual resource object data using main body Meet the preset rules using main body, sends the corresponding virtual resource object of the newest virtual resource object data to described It is default to apply main body.
8. according to the method described in claim 6, coming from the first service it is characterized in that, being received in the second server After the virtual resource object data of device, the method further includes:
The second server executes verification to the virtual resource object data,
Wherein, the second server described default is sentenced according to the virtual resource object data and using the character data of main body Whether the default application main body of breaking, which meets the preset rules, includes:The virtual resource pair is determined in the second server In the case that image data is by verification, described default sentence according to the virtual resource object data and using the character data of main body Whether the default application main body of breaking meets the preset rules.
9. according to the method described in claim 6, it is characterized in that, corresponding virtual sending the virtual resource object data Before resource object to the default application main body, the method further includes:
Mail requests order is sent to the default mailbox server using main body, wherein the mail requests order is to use In the order for asking the default mailbox server using main body to receive the virtual resource object data, the default application The mailbox server of main body determines whether to receive the virtual resource object data corresponding according to the mail requests order Virtual resource object,
Wherein, sending the corresponding virtual resource object of the virtual resource object data to the default application main body includes: The default mailbox server using main body will receive the virtual resource object number according to the mail requests order determination After corresponding virtual resource object, sends the corresponding virtual resource object of the virtual resource object data and preset to described Using the mailbox of main body.
10. according to the method described in claim 6, it is characterized in that, the virtual resource object data are XML format, in institute After stating virtual resource object data of the second server reception from the first server, the method further includes:
The second server executes unserializing processing to the XML format virtual resource object data, obtains unserializing Virtual resource object data, wherein the XML format virtual resource object data are stored in described with UNION type arrays In preset field in presetting database, the type of each element in the UNION types array is marked by TYPE,
Wherein, the second server described default is sentenced according to the virtual resource object data and using the character data of main body Whether the default application main body of breaking, which meets the preset rules, includes:The second server is according to the void of the unserializing It is described pre- that quasi- resource object data and the default character data using main body judge whether the default application main body meets If regular.
11. according to the method described in claim 6, it is characterized in that, the virtual resource object data in the database Following at least one online change is executed by SQL statement:It is inserted into, modification, deletes.
12. according to the method described in claim 6, it is characterized in that, the virtual resource object data include the virtual money The multiple condition datas and content-data of source object, the second server to the multiple condition data according to logic of propositions into Row combination, obtains combination condition data, wherein sends the corresponding virtual resource object of the virtual resource object data to described It is default to include using main body:The corresponding virtual resource object of the content-data is sent to described according to the combination condition data It is default to apply main body.
13. a kind of virtual resource object sending device, which is characterized in that including:
Acquiring unit, for obtaining virtual resource object data from presetting database;
Verification unit, for executing verification to the virtual resource object data;And
Transmission unit, in the case where determining the virtual resource object data by verification, sending the virtual resource Object data is to second server, wherein the second server is used to obtain the default character data using main body, according to institute Stating default character data and the virtual resource object data using main body, to judge whether the default application main body meets pre- If it is regular, and send the corresponding virtual resource object of the virtual resource object data and answered to the default of the preset rules is met With main body, wherein the preset rules are for judging the default rule whether legal using main body.
14. device according to claim 13, which is characterized in that the acquiring unit be used for by call back function periodically from Newest virtual resource object data are loaded in the presetting database.
15. device according to claim 13, which is characterized in that the second server is multiple, the transmission unit For sending the virtual resource object data to multiple second servers, wherein multiple second servers are by institute Virtual resource object data are stated to preserve in memory.
16. a kind of virtual resource object sending device, which is characterized in that including:
Receiving unit, for receiving the virtual resource object data from first server, wherein the first server is used for Virtual resource object data are obtained from presetting database, verification are executed to the virtual resource object data, and determining In the case of virtual resource object data are stated by verification, the virtual resource object data are sent to second server;
Acquiring unit, for obtaining the default character data using main body;
Judging unit, described in being judged according to the virtual resource object data and the default character data using main body It is default whether to meet preset rules using main body, wherein the preset rules are for whether judging the default application main body Legal rule;And
Transmission unit, for described default judging according to the virtual resource object data and using the character data of main body The default application main body meets the preset rules, sends the corresponding virtual resource object of the virtual resource object data extremely It is described default using main body.
17. device according to claim 16, which is characterized in that including:
The receiving unit is used for virtual resource object data of the timing receipt from the first server, obtains newest virtual Resource object data,
The judging unit is used for according to the newest virtual resource object data and the default character data using main body Judge whether the default application main body meets preset rules,
The transmission unit is used for according to described default using the character data of main body and the judgement of newest virtual resource object data Go out the default application main body and meet the preset rules, sends the corresponding virtual resource of the newest virtual resource object data Object to it is described it is default apply main body.
18. device according to claim 16, which is characterized in that the virtual resource object data are XML format, described Device further includes:
Processing unit, for the second server receive the virtual resource object data from the first server it Afterwards, unserializing processing is executed to the XML format virtual resource object data, obtains the virtual resource object number of unserializing According to, wherein the XML format virtual resource object data are stored in pre- in the presetting database with UNION type arrays If in field, the type of each element in the UNION types array is marked by TYPE,
Wherein, virtual resource object data and the default application of the default application of the judging unit according to the unserializing The character data of main body judges whether the default application main body meets the preset rules.
CN201610081086.4A 2016-02-04 2016-02-04 virtual resource object sending method and device Active CN107038175B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610081086.4A CN107038175B (en) 2016-02-04 2016-02-04 virtual resource object sending method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610081086.4A CN107038175B (en) 2016-02-04 2016-02-04 virtual resource object sending method and device

Publications (2)

Publication Number Publication Date
CN107038175A CN107038175A (en) 2017-08-11
CN107038175B true CN107038175B (en) 2018-07-20

Family

ID=59532538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610081086.4A Active CN107038175B (en) 2016-02-04 2016-02-04 virtual resource object sending method and device

Country Status (1)

Country Link
CN (1) CN107038175B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108197976B (en) * 2017-12-18 2022-03-18 Oppo广东移动通信有限公司 Reward issuing method, device and server
CN110339575B (en) * 2018-04-08 2022-08-26 腾讯科技(深圳)有限公司 Method and device for determining cheating users in online game

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739628A (en) * 2008-11-07 2010-06-16 新契机国际商机整合有限公司 Playful electronic commerce website
CN101751507A (en) * 2008-12-04 2010-06-23 广州万达信息技术有限公司 Network game server system
CN101753566B (en) * 2009-12-25 2012-09-05 北京畅游天下网络技术有限公司 Multi-application inter-system data application method and system
CN102104600B (en) * 2011-01-11 2014-01-08 广州懒游网络技术有限公司 Distributed pluggable game server platform and cooperative working method thereof
CN202094929U (en) * 2011-06-15 2011-12-28 北京朗玛数联科技有限公司 Game server cluster architecture

Also Published As

Publication number Publication date
CN107038175A (en) 2017-08-11

Similar Documents

Publication Publication Date Title
CN108510389A (en) Intelligent contract call method, equipment and readable storage medium storing program for executing based on block chain
US7305679B2 (en) Portal using model view controller
CN103841134B (en) Based on API transmission, the method for receive information, apparatus and system
CN109831456A (en) Information push method, device, equipment and storage medium
CN108446225A (en) Creating device, method and the computer readable storage medium of analog interface
CN107222530A (en) Service asynchronous exchange method, equipment, system and computer-readable recording medium
CN102710534A (en) Cross-application network communication method and device
TW201235072A (en) Method and apparatus for gaming based on mobile terminal
CN109614209A (en) A kind of task processing method, application server and system
CN103716356B (en) Storing process operating method, device and system based on web
CN106075911B (en) A kind of generation method and device at the micro- end of web game
CN111582961B (en) Information processing method and device
CN106528193A (en) Application update method and terminal
CN108062221A (en) Processing method, device, storage medium and the processor of Software Development Kit
CN108024136A (en) Load method, smart television and the computer-readable recording medium of user interface
CN109327380A (en) Public platform management method, device, computer equipment and storage medium
CN105931107A (en) Sharing method and apparatus
CN108379845A (en) Information processing method, device and storage medium
CN110120970A (en) Data processing method, device and gateway system based on car networking
CN108600331A (en) Interactive interface rendering method, client, terminal and system
CN104462237A (en) Method and device for displaying public information
CN107038175B (en) virtual resource object sending method and device
CN106027620A (en) Data migration system based on cloud computing
CN108022126A (en) Definite method, apparatus, server and the storage medium of prize drawing qualification
CN110728558A (en) Virtual article package sending method, device, equipment 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
GR01 Patent grant
GR01 Patent grant