CN105677339A - Virtual gift configuration method and device based on Internet - Google Patents

Virtual gift configuration method and device based on Internet Download PDF

Info

Publication number
CN105677339A
CN105677339A CN201511034302.1A CN201511034302A CN105677339A CN 105677339 A CN105677339 A CN 105677339A CN 201511034302 A CN201511034302 A CN 201511034302A CN 105677339 A CN105677339 A CN 105677339A
Authority
CN
China
Prior art keywords
present
precious case
database
configuration table
case
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201511034302.1A
Other languages
Chinese (zh)
Inventor
黄立尧
陈建湖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Huaduo Network Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201511034302.1A priority Critical patent/CN105677339A/en
Publication of CN105677339A publication Critical patent/CN105677339A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/9038Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The embodiment of the invention discloses a virtual gift configuration method and device based on the Internet. The technical problems that at present, due to the fact that after virtual gift data reaches a service process, when a treasure container is generated to be given to a corresponding channel, and timeout does not occur, the situation that treasure containers are overlapped at one same channel, and some channels receive insufficient treasure containers or do not receive the treasure containers possibly occurs, and due to the fact that each treasure container is provided with multiple inlets, the thread security of the data needs to be paid attention to, public data is prone to be changed by other places, and atomicity operation consideration needs to be conducted, the experience property is poor, and data processing is complex are solved. The virtual gift configuration method comprises the steps that corresponding treasure containers are generated in a preset configuration table according to the received gift data and pressed into a processing queue; data of the treasure containers in the processing queue is extracted, and the treasure containers are pushed to the front end to be displayed in a visual mode; an instruction, triggered at the front end, for reading the treasure containers is obtained, and gifts, corresponding to the treasure containers, in the preset configuration table are distributed to the front end.

Description

A kind of virtual present configuration method based on internet and device
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of virtual present configuration method based on internet and device.
Background technology
Virtual present is exactly the present in the virtual world, in the virtual world, and the article mutually presented for linking up emotion between virtual role. Numeral fresh flower, game item, game money etc. are all virtual objects.
After current virtual present data arrive business process, when corresponding channel given by the precious case of generation, and there is no the overtime time, the situation of the precious case overlap of same channel then likely occur, lead less or do not receive, precious case has multiple entrance (the multi-thread journey of multi-process is called) simultaneously, should be noted that the thread-safe of data, common data easily gives other local change, it is necessary to accomplish that atomicity operation is considered, thus result in that experience property is low and the technical problem of data processing complex.
Summary of the invention
A kind of virtual present configuration method based on internet that the embodiment of the present invention provides and device, after solving current virtual present data arrival business process, when corresponding channel given by the precious case of generation, and there is no the overtime time, the situation of the precious case overlap of same channel then likely occurs, lead less or do not receive, precious case has multiple entrance simultaneously, should be noted that the thread-safe of data, common data easily gives other local change, need to accomplish that atomicity operation is considered, and the experience property caused is low and the technical problem of data processing complex.
A kind of virtual present configuration method based on internet that the embodiment of the present invention provides, comprising:
In preset configuration table, produce corresponding precious case according to the present data received and it is pressed in processing queue;
The data being extracted in precious case described in described processing queue, and described precious case is pushed to front end with visual pattern and shows;
Get the described precious case instruction of the reading triggered in described front end, at described preset configuration table, the present corresponding with described precious case is distributed to described front end.
Can selection of land, also comprise before producing corresponding precious case in preset configuration table according to the present data received and being pressed in processing queue:
Using present identifier as the index of database, set up corresponding preset configuration table in the database.
Can selection of land, using present identifier as the index of database, set up corresponding preset configuration table in the database and specifically comprise:
Using present identifier as the index of database, set up corresponding preset configuration table in the database;
And, according to the configuration update process carrying out described database every the first preset time period.
Can selection of land, in preset configuration table, produce corresponding precious case according to the present data received and be pressed in processing queue and specifically comprise:
The described present data corresponding with the present that user sends are got by present process;
In described preset configuration table, corresponding described precious case is produced by described present identifier according to described present data;
Described precious case is pressed in queue database, and carries out breathing out uncommon process in units of channel.
Can selection of land, be extracted in described in described processing queue the data of precious case, and described precious case pushed to front end with visual pattern and shows and specifically comprise:
Described queue database is scanned according to the regulation every the 2nd preset time by the timer of process, if there is described precious case, then the described present data corresponding with described precious case are extracted from described queue database, and put into the buffer memory of database;
Described buffer memory according to described database ejects visual described precious case, and shows that the visual additional effect corresponding with described precious case is to described front end, and disposes the described present data in described queue database.
Can selection of land, get the described precious case instruction of the reading triggered in described front end, at described preset configuration table, the present corresponding with described precious case distributed to described front end and specifically comprise:
Get the described precious case instruction of reading triggered by described front end, judge whether there is described precious case, whether the described present identifier that described precious case is corresponding is consistent with the present identifier in the described precious case instruction read, and whether described precious case has been triggered and had opened, if described front end given by then corresponding according to the present interval range random assignment of described preset configuration table present;
Until the present distribution of described preset configuration table reaches the upper limit of described present interval range, then stop described front end and trigger the described precious case instruction of reading.
A kind of virtual present inking device based on internet that the embodiment of the present invention provides, comprising:
Precious case generation unit, for producing the precious case of correspondence and be pressed in processing queue according to the present data received in preset configuration table;
Extract and push unit, for being extracted in the data of precious case described in described processing queue, and described precious case is pushed to front end with visual pattern and shows;
Present allocation units, for getting the described precious case instruction of the reading triggered in described front end, distribute to described front end at described preset configuration table by the present corresponding with described precious case.
Can selection of land, the described virtual present inking device based on internet also comprises:
Arrangement unit, for the index using present identifier as database, sets up corresponding preset configuration table in the database.
Can selection of land, arrangement unit specifically comprises:
Set up subelement, for the index using present identifier as database, set up corresponding preset configuration table in the database;
Update process subelement, for according to the configuration update process carrying out described database every the first preset time period.
Can selection of land, precious case generation unit specifically comprises:
Obtain subelement, for getting the described present data corresponding with the present that user sends by present process;
Precious case produces subelement, for producing corresponding described precious case by described present identifier according to described present data in described preset configuration table;
Queue press-in subelement, for being pressed in queue database by described precious case, and carries out breathing out uncommon process in units of channel.
Can selection of land, extract push unit specifically comprise:
Scanning subelement, for described queue database being scanned according to the regulation every the 2nd preset time by the timer of process, if there is described precious case, then the described present data corresponding with described precious case are extracted from described queue database, and put into the buffer memory of database;
Visual presentation subelement, for ejecting visual described precious case according to the described buffer memory of described database, and shows that the visual additional effect corresponding with described precious case is to described front end, and disposes the described present data in described queue database.
Can selection of land, present allocation units specifically comprise:
Judgment sub-unit, the described precious case instruction of reading triggered by described front end for getting, judge whether there is described precious case, whether the described present identifier that described precious case is corresponding is consistent with the present identifier in the described precious case instruction read, and whether described precious case has been triggered and had opened, if described front end given by then corresponding according to the present interval range random assignment of described preset configuration table present;
Stopping process subelement, for until the present distribution of described preset configuration table reaches the upper limit of described present interval range, then stopping described front end and trigger the described precious case instruction of reading.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages:
A kind of virtual present configuration method based on internet that the embodiment of the present invention provides and device, wherein, virtual present configuration method based on internet comprises: produces corresponding precious case in preset configuration table according to the present data received and is pressed in processing queue, the data being extracted in precious case described in described processing queue, and described precious case is pushed to front end with visual pattern and shows, get the described precious case instruction of the reading triggered in described front end, at described preset configuration table, the present corresponding with described precious case is distributed to described front end. in the present embodiment, by producing the precious case of correspondence according to the present data received in preset configuration table and be pressed in processing queue, then the data of precious case described in described processing queue it are extracted in, and described precious case is pushed to front end with visual pattern and shows, finally get the described precious case instruction of the reading triggered in described front end, at described preset configuration table, the present corresponding with described precious case is distributed to described front end, after solving current virtual present data arrival business process, when corresponding channel given by the precious case of generation, and there is no the overtime time, the situation of the precious case overlap of same channel then likely occurs, lead less or do not receive, precious case has multiple entrance simultaneously, should be noted that the thread-safe of data, common data easily gives other local change, need to accomplish that atomicity operation is considered, and the experience property caused is low and the technical problem of data processing complex, it is applicable to all rob precious case, rob red packet, rob the business such as red brill, reduce the development time, optimizing user is experienced.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, it is briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
The schematic flow sheet of an embodiment of a kind of virtual present configuration method based on internet that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of another embodiment of a kind of virtual present configuration method based on internet that Fig. 2 provides for the embodiment of the present invention;
The schematic flow sheet of another embodiment of a kind of virtual present configuration method based on internet that Fig. 3 provides for the embodiment of the present invention;
The structural representation of an embodiment of a kind of virtual present inking device based on internet that Fig. 4 provides for the embodiment of the present invention;
The structural representation of an embodiment of a kind of virtual present inking device based on internet that Fig. 5 provides for the embodiment of the present invention;
Fig. 6 is preset configuration hoist pennants;
Fig. 7 is application examples schematic diagram.
Embodiment
A kind of virtual present configuration method based on internet that the embodiment of the present invention provides and device, after solving current virtual present data arrival business process, when corresponding channel given by the precious case of generation, and there is no the overtime time, the situation of the precious case overlap of same channel then likely occurs, lead less or do not receive, precious case has multiple entrance simultaneously, should be noted that the thread-safe of data, common data easily gives other local change, need to accomplish that atomicity operation is considered, and the experience property caused is low and the technical problem of data processing complex.
Ssdb is a high performance NoSQL database of increasing income being used for storing 1,000,000,000 rank table datas fast.
NoSQL, the database of general reference non-relational. Along with the rise of web2.0 website, internet, traditional relational database is dealing with web2.0 website, particularly the pure dynamic website of web2.0 of the ultra-large SNS type concurrent with height has seemed unable to do what one wishes, exposing the problem being much difficult to overcome, the database of non-relational then develops very rapidly owing to itself feature obtains. Producing of NoSQL database is exactly to solve the challenge that large-scale data set multiple data kind is brought, an especially big market demand difficult problem.
For making goal of the invention, the feature of the present invention, advantage can be more obvious and understandable, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, the embodiments described below are only the present invention's part embodiments, and the embodiment of not all. Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
Referring to Fig. 1, an embodiment of a kind of virtual present configuration method based on internet that the embodiment of the present invention provides comprises:
101, in preset configuration table, produce corresponding precious case according to the present data received and it is pressed in processing queue;
In the present embodiment, when inside the business revenue activity of internet, often there is the distribution of virtual present, such as rob red packet, rob precious case, rob the activities such as red brill, first need in preset configuration table, to produce corresponding precious case according to the present data received and be pressed in processing queue.
102, the data being extracted in processing queue precious case, and treasured case is pushed to front end displaying with visual pattern;
After producing corresponding precious case in preset configuration table according to the present data that receive and being pressed in processing queue, it is necessary to the data being extracted in processing queue precious case, and treasured case is pushed to front end displaying with visual pattern.
103, get the precious case instruction of the reading triggered in front end, at preset configuration table, the present corresponding with precious case is distributed to front end.
When the data being extracted in processing queue precious case, and treasured case is pushed to after front end shows with visual pattern, it is necessary to get the precious case instruction of the reading triggered in front end, at preset configuration table, the present corresponding with treasured case is distributed to front end.
In the present embodiment, by producing the precious case of correspondence according to the present data received in preset configuration table and be pressed in processing queue, then the data being extracted in processing queue precious case, and treasured case is pushed to front end with visual pattern and shows, finally get the precious case instruction of the reading triggered in front end, at preset configuration table, the present corresponding with precious case is distributed to front end, after solving current virtual present data arrival business process, when corresponding channel given by the precious case of generation, and there is no the overtime time, the situation of the precious case overlap of same channel then likely occurs, lead less or do not receive, precious case has multiple entrance simultaneously, should be noted that the thread-safe of data, common data easily gives other local change, need to accomplish that atomicity operation is considered, and the experience property caused is low and the technical problem of data processing complex, it is applicable to all rob precious case, rob red packet, rob the business such as red brill, reduce the development time, optimizing user is experienced.
The process that the above is the virtual present configuration method based on internet is described in detail, it is described in detail to the process producing corresponding precious case in preset configuration table according to the present data that receive and being pressed into processing queue below, referring to Fig. 2, a kind of another embodiment based on the virtual present configuration method of internet that the embodiment of the present invention provides comprises:
201, using present identifier as the index of database, corresponding preset configuration table is set up in a database;
In the present embodiment, when inside the business revenue activity of internet, often there is the distribution of virtual present, such as rob red packet, rob precious case, before robbing the activities such as red brill, first need the index using present identifier as database, set up corresponding preset configuration table in a database.
202, according to the configuration update process carrying out database every the first preset time period;
When the index using present identifier as database, while setting up corresponding preset configuration table in a database or afterwards, it is necessary to according to the configuration update process carrying out database every the first preset time period.
203, the present data corresponding with the present that user sends are got by present process;
After step 201 and step 202, it is necessary to get the present data corresponding with the present that user sends by present process.
204, in preset configuration table, corresponding precious case is produced by present identifier according to present data;
After got the present data corresponding with the present that user sends by present process, it is necessary to produce corresponding precious case by present identifier according to present data in preset configuration table.
205, treasured case is pressed in queue database, and carries out breathing out uncommon process in units of channel;
After producing corresponding precious case by present identifier according to present data in preset configuration table, it is necessary to treasured case is pressed in queue database, and carries out breathing out uncommon process in units of channel.
206, the data being extracted in processing queue precious case, and treasured case is pushed to front end displaying with visual pattern;
When being pressed in queue database by treasured case, and after carrying out breathing out uncommon process in units of channel, it is necessary to the data being extracted in processing queue precious case, and treasured case is pushed to front end displaying with visual pattern.
207, get the precious case instruction of the reading triggered in front end, at preset configuration table, the present corresponding with precious case is distributed to front end.
When the data being extracted in processing queue precious case, and treasured case is pushed to after front end shows with visual pattern, it is necessary to get the precious case instruction of the reading triggered in front end, at preset configuration table, the present corresponding with treasured case is distributed to front end.
It should be noted that, the database mentioned in the present embodiment is ssdb database.
In the present embodiment, by producing the precious case of correspondence according to the present data received in preset configuration table and be pressed in processing queue, then the data being extracted in processing queue precious case, and treasured case is pushed to front end with visual pattern and shows, finally get the precious case instruction of the reading triggered in front end, at preset configuration table, the present corresponding with precious case is distributed to front end, after solving current virtual present data arrival business process, when corresponding channel given by the precious case of generation, and there is no the overtime time, the situation of the precious case overlap of same channel then likely occurs, lead less or do not receive, precious case has multiple entrance simultaneously, should be noted that the thread-safe of data, common data easily gives other local change, need to accomplish that atomicity operation is considered, and the experience property caused is low and the technical problem of data processing complex, it is applicable to all rob precious case, rob red packet, rob the business such as red brill, reduce the development time, optimizing user is experienced, simultaneously, that supports configurability goes out precious case scheme, support module multiplexing, it is applicable to all rob precious case, rob red packet, rob the business such as red brill, reduce the development time, employing is pressed onto queue database, simultaneously to channel delivery, ensure that data can not be lost and can process in time, only just can remove after processing.
Above the process producing corresponding precious case in preset configuration table according to the present data that receive and being pressed into processing queue is described in detail, to show treasured case is pushed to front end with visual pattern below, and at preset configuration table, the process that front end distributed to by the present corresponding with precious case is described in detail, referring to Fig. 3, a kind of another embodiment based on the virtual present configuration method of internet that the embodiment of the present invention provides comprises:
301, using present identifier as the index of database, corresponding preset configuration table is set up in a database;
In the present embodiment, when inside the business revenue activity of internet, often there is the distribution of virtual present, such as rob red packet, rob precious case, before robbing the activities such as red brill, first need the index using present identifier as database, set up corresponding preset configuration table in a database.
302, according to the configuration update process carrying out database every the first preset time period;
When the index using present identifier as database, while setting up corresponding preset configuration table in a database or afterwards, it is necessary to according to the configuration update process carrying out database every the first preset time period.
303, the present data corresponding with the present that user sends are got by present process;
After step 301 and step 302, it is necessary to get the present data corresponding with the present that user sends by present process.
304, in preset configuration table, corresponding precious case is produced by present identifier according to present data;
After got the present data corresponding with the present that user sends by present process, it is necessary to produce corresponding precious case by present identifier according to present data in preset configuration table.
305, treasured case is pressed in queue database, and carries out breathing out uncommon process in units of channel;
After producing corresponding precious case by present identifier according to present data in preset configuration table, it is necessary to treasured case is pressed in queue database, and carries out breathing out uncommon process in units of channel.
306, according to the regulation every the 2nd preset time, queue database being scanned by the timer of process, if there is precious case, then performing step 307;
When being pressed in queue database by treasured case, and after carrying out breathing out uncommon process in units of channel, it is necessary to scanned by queue database according to the regulation every the 2nd preset time by the timer of process, if there is precious case, then perform step 307.
307, the present data corresponding with precious case are extracted from queue database, and put into the buffer memory of database;
When scanning existence treasured case, then the present data corresponding with precious case are extracted from queue database, and put into the buffer memory of database.
308, buffer memory according to database ejects visual precious case, and shows that the visual additional effect corresponding with treasured case is to front end, and disposes the present data in queue database;
When the present data corresponding with precious case are extracted from queue database, and after putting into the buffer memory of database, the buffer memory according to database is needed to eject visual precious case, and show that the visual additional effect corresponding with precious case is to front end, and dispose the present data in queue database.
309, getting the precious case instruction of the reading triggered by front end, judge whether there is precious case, whether the present identifier that precious case is corresponding is consistent with the present identifier in the precious case instruction read, and whether treasured case has been triggered and opened, if, then execution step 310;
When ejecting visual precious case according to the buffer memory of database, and show that the visual additional effect corresponding with precious case is to front end, and after disposing the present data in queue database, need to get the precious case instruction of reading triggered by front end, judging whether there is precious case, whether the present identifier that precious case is corresponding is consistent with the present identifier in the precious case instruction read, and whether treasured case has been triggered and opened, if then performing step 310.
310, according to present corresponding to the present interval range random assignment of preset configuration table to front end;
When there being precious case, the present identifier that precious case is corresponding is consistent with the present identifier in the precious case instruction of reading, and treasured case has been triggered and opened, then according to present corresponding to the present interval range random assignment of preset configuration table to front end.
311 until the present distribution of preset configuration table reaches the upper limit of present interval range, then stop front end and trigger the precious case instruction of reading.
After present corresponding to the present interval range random assignment according to preset configuration table is to front end, it is necessary to until the present distribution of preset configuration table reaches the upper limit of present interval range, then stops front end and trigger and read precious case instruction.
It should be noted that, the database mentioned in the present embodiment is ssdb database.
Fig. 3 embodiment being described with an embody rule scene below, as shown in Figure 7, application examples comprises:
A. configuration data is stored in mysql, it is database index with present identifier, set up the data sheet treasure_box table of preset configuration table, such present will corresponding generation precious case, precious case can configure corresponding individual and get the red brill upper limit, lower limit number, getting total value, go out a number at random according to bound interval and get respective activity red brill when user gets, database configuration is that timing upgrades simultaneously, within one minute, upgrading once, preset configuration list structure is as shown in Figure 6.
B. when user sends a special present, the present information that present process is sent can be received, the present producing precious case is identified in configuration the inside, then processing queue it is pressed into, both can support bringing up the rear of a present precious case, and also support the disposable process of bringing up the rear sending multiple present to produce a precious case, support many queue processing in addition, breathe out by channel uncommon, avoid the data producing different channel to pile up like this;
C. the timer of minimum process every second is from scan-data inside queue, if there is precious case, then this blocks of data is taken out inside queue, put into inside a block cache of ssdb, this channel is started evaluation time simultaneously, until finishing animation, robbing after precious case time point arrives, just having allowed to eject the next treasured case of this channel.
D., after ejecting precious case, broadcast tells that corresponding channel to be shown animation effect and precious case, it is possible to supporting this channel, signing channel and all-channel show precious case effect, and this data of row the inside of simultaneously falling behind clearly, does corresponding data statistics.
E., after precious case is shown in front end, user robs precious case action, and backstage judges whether there is precious case, whether whether precious case identifier be the precious case identifier that user robs, and robbed, if had, just according to the red brill number in the bound interval in configuration, the corresponding red brill value of random assignment is to user; Red brill number in the precious case reaching configuration, does not just allow to have robbed again.
In the present embodiment, by producing the precious case of correspondence according to the present data received in preset configuration table and be pressed in processing queue, then the data being extracted in processing queue precious case, and treasured case is pushed to front end with visual pattern and shows, finally get the precious case instruction of the reading triggered in front end, at preset configuration table, the present corresponding with precious case is distributed to front end, after solving current virtual present data arrival business process, when corresponding channel given by the precious case of generation, and there is no the overtime time, the situation of the precious case overlap of same channel then likely occurs, lead less or do not receive, precious case has multiple entrance simultaneously, should be noted that the thread-safe of data, common data easily gives other local change, need to accomplish that atomicity operation is considered, and the experience property caused is low and the technical problem of data processing complex, it is applicable to all rob precious case, rob red packet, rob the business such as red brill, reduce the development time, optimizing user is experienced, simultaneously, that supports configurability goes out precious case scheme, support module multiplexing, it is applicable to all rob precious case, rob red packet, rob the business such as red brill, reduce the development time, employing is pressed onto ssdb queue, simultaneously to channel delivery, ensure that data can not be lost and can process in time, only just can remove after processing, delivery press-in respective queue is carried out according to channel number, can carry out channel data operation in a large number all can not be congested, it is apt to use minimum process, inside a timer, process is done in timing, solve thread synchronization and the problem of precious case time-out, support when user robs precious case that atomicity deducts red brill.
Referring to Fig. 4, an embodiment of a kind of virtual present inking device based on internet provided in the embodiment of the present invention comprises:
Precious case generation unit 401, for producing the precious case of correspondence and be pressed in processing queue according to the present data received in preset configuration table;
Extract and push unit 402, for the data being extracted in processing queue precious case, and treasured case is pushed to front end displaying with visual pattern;
Present allocation units 403, for getting the precious case instruction of the reading triggered in front end, distribute to front end at preset configuration table by the present corresponding with precious case.
In the present embodiment, in preset configuration table, produce corresponding precious case by precious case generation unit 401 according to the present data received and it is pressed in processing queue, then the data pushing unit 402 and being extracted in processing queue precious case are extracted, and treasured case is pushed to front end with visual pattern and shows, last present allocation units 403 get the precious case instruction of the reading triggered in front end, at preset configuration table, the present corresponding with precious case is distributed to front end, after solving current virtual present data arrival business process, when corresponding channel given by the precious case of generation, and there is no the overtime time, the situation of the precious case overlap of same channel then likely occurs, lead less or do not receive, precious case has multiple entrance simultaneously, should be noted that the thread-safe of data, common data easily gives other local change, need to accomplish that atomicity operation is considered, and the experience property caused is low and the technical problem of data processing complex.
The above is that each unit to the virtual present inking device based on internet is described in detail, subelement and extra cell will be described in detail below, referring to Fig. 5, a kind of another embodiment based on the virtual present inking device of internet provided in the embodiment of the present invention comprises:
Arrangement unit 501, for the index using present identifier as database, sets up corresponding preset configuration table in a database.
Arrangement unit 501 specifically comprises:
Set up subelement 5011, for the index using present identifier as database, set up corresponding preset configuration table in a database;
Update process subelement 5012, for according to the configuration update process carrying out database every the first preset time period.
Precious case generation unit 502, for producing the precious case of correspondence and be pressed in processing queue according to the present data received in preset configuration table;
Precious case generation unit 502 specifically comprises:
Obtain subelement 5021, for getting the present data corresponding with the present that user sends by present process;
Precious case produces subelement 5022, for producing corresponding precious case by present identifier according to present data in preset configuration table;
Queue press-in subelement 5023, for being pressed in queue database by treasured case, and carries out breathing out uncommon process in units of channel.
Extract and push unit 503, for the data being extracted in processing queue precious case, and treasured case is pushed to front end displaying with visual pattern;
Extract propelling movement unit 503 specifically to comprise:
Scanning subelement 5031, for queue database being scanned according to the regulation every the 2nd preset time by the timer of process, if there is precious case, then the present data corresponding with precious case are extracted from queue database, and put into the buffer memory of database;
Visual presentation subelement 5032, for ejecting visual precious case according to the buffer memory of database, and shows that the visual additional effect corresponding with precious case is to front end, and disposes the present data in queue database.
Present allocation units 504, for getting the precious case instruction of the reading triggered in front end, distribute to front end at preset configuration table by the present corresponding with precious case.
Present allocation units 504 specifically comprise:
Judgment sub-unit 5041, the precious case instruction of reading triggered by front end for getting, judge whether there is precious case, whether the present identifier that precious case is corresponding is consistent with the present identifier in the precious case instruction read, and whether precious case has been triggered and had opened, if, then according to present corresponding to the present interval range random assignment of preset configuration table to front end;
Stopping process subelement 5042, for until the present distribution of preset configuration table reaches the upper limit of present interval range, then stopping front end and trigger the precious case instruction of reading.
It should be noted that, the database mentioned in the present embodiment is ssdb database.
In the present embodiment, in preset configuration table, produce corresponding precious case by precious case generation unit 502 according to the present data received and it is pressed in processing queue, then the data pushing unit 503 and being extracted in processing queue precious case are extracted, and treasured case is pushed to front end with visual pattern and shows, last present allocation units 504 get the precious case instruction of the reading triggered in front end, at preset configuration table, the present corresponding with precious case is distributed to front end, after solving current virtual present data arrival business process, when corresponding channel given by the precious case of generation, and there is no the overtime time, the situation of the precious case overlap of same channel then likely occurs, lead less or do not receive, precious case has multiple entrance simultaneously, should be noted that the thread-safe of data, common data easily gives other local change, need to accomplish that atomicity operation is considered, and the experience property caused is low and the technical problem of data processing complex, it is applicable to all rob precious case, rob red packet, rob the business such as red brill, reduce the development time, optimizing user is experienced, simultaneously, that supports configurability goes out precious case scheme, support module multiplexing, it is applicable to all rob precious case, rob red packet, rob the business such as red brill, reduce the development time, employing is pressed onto queue database, simultaneously to channel delivery, ensure that data can not be lost and can process in time, only just can remove after processing, delivery press-in respective queue is carried out according to channel number, can carry out channel data operation in a large number all can not be congested, it is apt to use minimum process, inside a timer, process is done in timing, solve thread synchronization and the problem of precious case time-out, support when user robs precious case that atomicity deducts red brill.
The technician of art can be well understood to, for convenience and simplicity of description, and the concrete working process of the system of foregoing description, device and unit, it is possible to reference to the corresponding process in aforementioned embodiment of the method, do not repeat them here.
In several embodiments that the application provides, it should be appreciated that, disclosed system, device and method, it is possible to realize by another way. Such as, device embodiment described above is only schematic, such as, the division of described unit, being only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can ignore, or do not perform. Another point, shown or discussed coupling each other or directly coupling or communication connection can be the indirect coupling by some interfaces, device or unit or communication connection, it is possible to be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or can also be distributed on multiple NE. Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to is that the independent physics of each unit exists, it is also possible to two or more unit are in a unit integrated. Above-mentioned integrated unit both can adopt the form of hardware to realize, it is also possible to adopts the form of software functional unit to realize.
If described integrated unit realize using the form of software functional unit and as independent production marketing or when using, it is possible to be stored in a computer read/write memory medium.Based on such understanding, the technical scheme of the present invention in essence or says that part prior art contributed or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage media, comprise some instructions with so that a computer equipment (can be Personal Computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention. And aforesaid storage media comprises: USB flash disk, portable hard drive, read-only storage (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
The above, above embodiment only in order to the technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment to invention has been detailed description, it will be understood by those within the art that: the technical scheme described in foregoing embodiments still can be modified by it, or wherein part technology feature is carried out equivalent replacement; And these amendments or replacement, do not make the spirit and scope of the essence disengaging various embodiments of the present invention technical scheme of appropriate technical solution.

Claims (12)

1. the virtual present configuration method based on internet, it is characterised in that, comprising:
In preset configuration table, produce corresponding precious case according to the present data received and it is pressed in processing queue;
The data being extracted in precious case described in described processing queue, and described precious case is pushed to front end with visual pattern and shows;
Get the described precious case instruction of the reading triggered in described front end, at described preset configuration table, the present corresponding with described precious case is distributed to described front end.
2. the virtual present configuration method based on internet according to claim 1, it is characterised in that, also comprise before producing corresponding precious case in preset configuration table according to the present data received and being pressed in processing queue:
Using present identifier as the index of database, set up corresponding preset configuration table in the database.
3. the virtual present configuration method based on internet according to claim 2, it is characterised in that, using present identifier as the index of database, set up corresponding preset configuration table in the database and specifically comprise:
Using present identifier as the index of database, set up corresponding preset configuration table in the database;
And, according to the configuration update process carrying out described database every the first preset time period.
4. the virtual present configuration method based on internet according to claim 3, it is characterised in that, in preset configuration table, produce corresponding precious case according to the present data received and it is pressed in processing queue and specifically comprises:
The described present data corresponding with the present that user sends are got by present process;
In described preset configuration table, corresponding described precious case is produced by described present identifier according to described present data;
Described precious case is pressed in queue database, and carries out breathing out uncommon process in units of channel.
5. the virtual present configuration method based on internet according to claim 4, it is characterised in that, it is extracted in the data of precious case described in described processing queue, and described precious case is pushed to front end displaying with visual pattern and specifically comprises:
Described queue database is scanned according to the regulation every the 2nd preset time by the timer of process, if there is described precious case, then the described present data corresponding with described precious case are extracted from described queue database, and put into the buffer memory of database;
Described buffer memory according to described database ejects visual described precious case, and shows that the visual additional effect corresponding with described precious case is to described front end, and disposes the described present data in described queue database.
6. the virtual present configuration method based on internet according to claim 5, it is characterized in that, get the described precious case instruction of the reading triggered in described front end, at described preset configuration table, the present corresponding with described precious case distributed to described front end and specifically comprise:
Get the described precious case instruction of reading triggered by described front end, judge whether there is described precious case, whether the described present identifier that described precious case is corresponding is consistent with the present identifier in the described precious case instruction read, and whether described precious case has been triggered and had opened, if described front end given by then corresponding according to the present interval range random assignment of described preset configuration table present;
Until the present distribution of described preset configuration table reaches the upper limit of described present interval range, then stop described front end and trigger the described precious case instruction of reading.
7. the virtual present inking device based on internet, it is characterised in that, comprising:
Precious case generation unit, for producing the precious case of correspondence and be pressed in processing queue according to the present data received in preset configuration table;
Extract and push unit, for being extracted in the data of precious case described in described processing queue, and described precious case is pushed to front end with visual pattern and shows;
Present allocation units, for getting the described precious case instruction of the reading triggered in described front end, distribute to described front end at described preset configuration table by the present corresponding with described precious case.
8. the virtual present inking device based on internet according to claim 7, it is characterised in that, the described virtual present inking device based on internet also comprises:
Arrangement unit, for the index using present identifier as database, sets up corresponding preset configuration table in the database.
9. the virtual present inking device based on internet according to claim 8, it is characterised in that, arrangement unit specifically comprises:
Set up subelement, for the index using present identifier as database, set up corresponding preset configuration table in the database;
Update process subelement, for according to the configuration update process carrying out described database every the first preset time period.
10. the virtual present inking device based on internet according to claim 9, it is characterised in that, precious case generation unit specifically comprises:
Obtain subelement, for getting the described present data corresponding with the present that user sends by present process;
Precious case produces subelement, for producing corresponding described precious case by described present identifier according to described present data in described preset configuration table;
Queue press-in subelement, for being pressed in queue database by described precious case, and carries out breathing out uncommon process in units of channel.
The 11. virtual present inking devices based on internet according to claim 10, it is characterised in that, extract propelling movement unit and specifically comprise:
Scanning subelement, for described queue database being scanned according to the regulation every the 2nd preset time by the timer of process, if there is described precious case, then the described present data corresponding with described precious case are extracted from described queue database, and put into the buffer memory of database;
Visual presentation subelement, for ejecting visual described precious case according to the described buffer memory of described database, and shows that the visual additional effect corresponding with described precious case is to described front end, and disposes the described present data in described queue database.
The 12. virtual present inking devices based on internet according to claim 11, it is characterised in that, present allocation units specifically comprise:
Judgment sub-unit, the described precious case instruction of reading triggered by described front end for getting, judge whether there is described precious case, whether the described present identifier that described precious case is corresponding is consistent with the present identifier in the described precious case instruction read, and whether described precious case has been triggered and had opened, if described front end given by then corresponding according to the present interval range random assignment of described preset configuration table present;
Stopping process subelement, for until the present distribution of described preset configuration table reaches the upper limit of described present interval range, then stopping described front end and trigger the described precious case instruction of reading.
CN201511034302.1A 2015-12-31 2015-12-31 Virtual gift configuration method and device based on Internet Pending CN105677339A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511034302.1A CN105677339A (en) 2015-12-31 2015-12-31 Virtual gift configuration method and device based on Internet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511034302.1A CN105677339A (en) 2015-12-31 2015-12-31 Virtual gift configuration method and device based on Internet

Publications (1)

Publication Number Publication Date
CN105677339A true CN105677339A (en) 2016-06-15

Family

ID=56190040

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511034302.1A Pending CN105677339A (en) 2015-12-31 2015-12-31 Virtual gift configuration method and device based on Internet

Country Status (1)

Country Link
CN (1) CN105677339A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106028165A (en) * 2016-06-17 2016-10-12 武汉斗鱼网络科技有限公司 Method and system for realizing lucky draw in mobile terminal of live broadcasting website
CN106506627A (en) * 2016-10-26 2017-03-15 北京奇虎科技有限公司 The processing method and processing device of user interaction activity
CN106651497A (en) * 2016-09-29 2017-05-10 广州华多网络科技有限公司 Method and device for sending gift identification list
CN107038065A (en) * 2017-03-01 2017-08-11 武汉斗鱼网络科技有限公司 Information processing method and device
CN109087081A (en) * 2018-07-23 2018-12-25 腾讯科技(深圳)有限公司 A kind of sub conditione electronics red packet processing method and processing device
CN112616091A (en) * 2020-12-18 2021-04-06 北京达佳互联信息技术有限公司 Virtual article sending method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090043657A1 (en) * 2007-08-06 2009-02-12 Palm, Inc. System and methods for selecting advertisements based on caller identifier information
CN101646208A (en) * 2008-08-07 2010-02-10 上海华为技术有限公司 Message processing method, device and communication system
CN103368824A (en) * 2013-04-08 2013-10-23 广州华多网络科技有限公司 Virtual item transmission method and device, and virtual studio control method and device
CN103414627A (en) * 2013-04-10 2013-11-27 广州华多网络科技有限公司 Virtual gift display method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090043657A1 (en) * 2007-08-06 2009-02-12 Palm, Inc. System and methods for selecting advertisements based on caller identifier information
CN101646208A (en) * 2008-08-07 2010-02-10 上海华为技术有限公司 Message processing method, device and communication system
CN103368824A (en) * 2013-04-08 2013-10-23 广州华多网络科技有限公司 Virtual item transmission method and device, and virtual studio control method and device
CN103414627A (en) * 2013-04-10 2013-11-27 广州华多网络科技有限公司 Virtual gift display method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HENGYUNABC: "利用redis+lua解决抢红包高并发的问题", 《HTTPS://BLOG.CSDN.NET/HENGYUNABC/ARTICLE/DETAILS/19433779/》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106028165A (en) * 2016-06-17 2016-10-12 武汉斗鱼网络科技有限公司 Method and system for realizing lucky draw in mobile terminal of live broadcasting website
CN106651497A (en) * 2016-09-29 2017-05-10 广州华多网络科技有限公司 Method and device for sending gift identification list
CN106506627A (en) * 2016-10-26 2017-03-15 北京奇虎科技有限公司 The processing method and processing device of user interaction activity
CN106506627B (en) * 2016-10-26 2019-06-25 北京奇虎科技有限公司 The processing method and processing device of user interaction activity
CN107038065A (en) * 2017-03-01 2017-08-11 武汉斗鱼网络科技有限公司 Information processing method and device
CN109087081A (en) * 2018-07-23 2018-12-25 腾讯科技(深圳)有限公司 A kind of sub conditione electronics red packet processing method and processing device
CN109087081B (en) * 2018-07-23 2024-01-09 腾讯科技(深圳)有限公司 Conditional electronic red envelope processing method and device
CN112616091A (en) * 2020-12-18 2021-04-06 北京达佳互联信息技术有限公司 Virtual article sending method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105677339A (en) Virtual gift configuration method and device based on Internet
CN104866366B (en) Application program method for cleaning and device
CN102567799B (en) For the method and system of the vncsion history in document
CN109032793A (en) Method, apparatus, terminal and the storage medium of resource distribution
CN107704576A (en) data display optimization method, device, terminal device and storage medium
CN106502700A (en) Page assembly edit methods and device
US10438443B2 (en) Game system, and control method and storage medium used in same
CN105955748A (en) Return scene processing method and device of application program
CN106919709A (en) Associate the data capture method and system of form
CN106294827A (en) The caching method of multimedia resource and device
CN105892833A (en) Popup message processing method and device
CN106445651A (en) Task executing method and system
CN109800074A (en) Task data concurrently executes method, apparatus and electronic equipment
CN103700137A (en) Space-time related hierachical shielding removal method
CN105261053A (en) Image rendering method
CN104580398B (en) A kind of Web content method for pushing, device and Web content displaying client
CN106131020A (en) The module of a kind of firewall virtualization and management method
CN107967216B (en) Code detection method and device, equipment and computer readable storage medium
CN106446046B (en) A method of quickly analysis records in time in relational database
CN114546385A (en) Landing page generation method, device, equipment and storage medium
CN107766460A (en) Synchronous timing method, device, terminal device and storage medium based on reading
CN102752525B (en) It is a kind of that the method and device for broadcasting list is created based on script
CN101431819A (en) Text message displaying method
CN108401174A (en) One kind is with virtual live streaming room live broadcast system and its implementation
CN203909920U (en) Split type automatic medicine vending machine

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 511442 floor 28 floor B1 of Wanda Plaza, Panyu District South Village, Guangzhou City, Guangdong

Applicant after: Guangzhou Huaduo Network Technology Co., Ltd.

Address before: 510665, Guangzhou, Whampoa Avenue, No. 2, creative industrial park, building 3-08,

Applicant before: Guangzhou Huaduo Network Technology Co., Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20160615

RJ01 Rejection of invention patent application after publication