CN109785178A - Method and apparatus for generating information - Google Patents
Method and apparatus for generating information Download PDFInfo
- Publication number
- CN109785178A CN109785178A CN201910107771.3A CN201910107771A CN109785178A CN 109785178 A CN109785178 A CN 109785178A CN 201910107771 A CN201910107771 A CN 201910107771A CN 109785178 A CN109785178 A CN 109785178A
- Authority
- CN
- China
- Prior art keywords
- producer
- virtual objects
- production
- manufacturer information
- time
- 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.)
- Granted
Links
Landscapes
- Information Transfer Between Computers (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the present disclosure discloses the method and apparatus for generating information.One specific embodiment of this method includes: the inquiry request for receiving terminal and sending, wherein inquiry request includes user identifier;Obtain the attribute information table in virtual objects corresponding with user identifier source, and manufacturer information table corresponding with virtual objects source;According to attribute information table and manufacturer information table, producer's timeline is generated;According to producer's timeline and attribute information table, query result information is generated, and query result information is sent to terminal, so that terminal is shown.The embodiment, which is realized, generates query result information based on the single attribute information table that gets of inquiry database and manufacturer information, to reduce the number of inquiry database, improves the efficiency for generating information.
Description
Technical field
The embodiment of the present disclosure is related to field of computer technology, and in particular to the method and apparatus for generating information.
Background technique
With the development of internet technology with the diversification of terminal function, people increasingly like through network and other people
Carry out information sharing.For example, carrying out letter based on social networks in GH (Growth hacking increases hacker) application scenarios
Breath is propagated, and has spread speed fast, influences the advantages such as face is big, and operation is convenient.Therefore, diffusion of information quilt is carried out based on social tool
All kinds of internet products are widely used.These internet products by starting social circle's strength, complete certain task, such as spell by auxiliary
Group, knocks down-price, so that more new users be attracted to be added, promotes product influence power, brings user volume and income increase.In general, this
A little internet products are that excitation old user invites more new users to be added, can be to old user after inviting new user's success
It is rewarded, and prize outcome client used in old user is shown.
Summary of the invention
The embodiment of the present disclosure proposes the method and apparatus for generating information.
In a first aspect, the embodiment of the present disclosure provides a kind of method for generating information, this method comprises: receiving terminal
The inquiry request of transmission, wherein above-mentioned inquiry request includes user identifier;Obtain virtual objects corresponding with above-mentioned user identifier
The attribute information table in source, and manufacturer information table corresponding with above-mentioned virtual objects source, wherein in above-mentioned manufacturer information table
Manufacturer information include production hour, above-mentioned use is increased by preset throughput rate based on the above-mentioned virtual objects source of production hour
Family identifies corresponding virtual objects;According to above-mentioned attribute information table and above-mentioned manufacturer information table, producer's timeline is generated,
In, above-mentioned producer's timeline is used to indicate the corresponding expectation of production hour of the manufacturer information in above-mentioned manufacturer information table
Initial time and desired end time;According to above-mentioned producer's timeline and above-mentioned attribute information table, query result information is generated,
And above-mentioned query result information is sent to above-mentioned terminal, so that above-mentioned terminal is shown.
In some embodiments, before the inquiry request that above-mentioned reception terminal is sent, the above method further include: in response to
The target registered request that invited user is sent based on Object linking is received, is invited to use to above-mentioned according to the request of above-mentioned target registered
It is registered at family, wherein above-mentioned Object linking includes above-mentioned user identifier;Above-mentioned be invited to is recorded in above-mentioned manufacturer information table
The information of user is as manufacturer information.
In some embodiments, above-mentioned attribute information table includes that above-mentioned virtual objects source has produced virtual objects amount, above-mentioned
Manufacturer information in manufacturer information table further includes producer's number and registion time;And it is above-mentioned according to above-mentioned attribute information
Table and above-mentioned manufacturer information table generate producer's timeline, comprising: produce from least one of above-mentioned manufacturer information table
Target producer number is chosen in person's number;When numbering the registration of corresponding target manufacturer information according to the above-mentioned target producer
Between, from above-mentioned manufacturer information table obtain including above-mentioned target manufacturer information, at least one manufacturer information;Make
Producer's timeline is generated at least one acquired manufacturer information.
In some embodiments, above-mentioned to generate producer's timeline, packet using at least one acquired manufacturer information
It includes: above-mentioned target producer number being numbered as sequence on time shaft in the primary producer, determines above-mentioned target production
Expectation initial time and desired end time of person's number on above-mentioned time shaft;At least one acquired producer is believed
Manufacturer information in breath, in addition to above-mentioned target manufacturer information, executes following sequence step: according to the manufacturer information
In registion time, production hour and the manufacturer information the previous producer of producer's number number the corresponding phase
It hopes the end time, determines that the producer of the manufacturer information numbers the expectation initial time on above-mentioned time shaft and expectation and terminates
Time;According to identified expectation initial time and desired end time, in the manufacturer information on above-mentioned time shaft
Producer's number is ranked up;Using above-mentioned ranking results as producer's timeline.
In some embodiments, above-mentioned attribute information table includes maximum virtual objects capacity and user's the last time to above-mentioned
The virtual objects that virtual objects source generates execute the newest of null clear operation and empty the time;And it is above-mentioned according to above-mentioned producer's time
Line and above-mentioned attribute information table generate query result information, comprising: determine that the greatest hope on above-mentioned producer's timeline terminates
Whether the time is later than or is equal to current time, wherein the above-mentioned greatest hope end time refers to last on above-mentioned producer's timeline
The expectation end time of one producer number;When being later than in response to the determination above-mentioned greatest hope end time or being equal to current
Between, further determine that whether the first production hour is greater than the second production hour, wherein above-mentioned first production hour refers to above-mentioned production
On person's timeline from it is above-mentioned it is newest empty the time to the cumulative production working hour current time, on above-mentioned second production hour refers to
State working hour needed for virtual objects source reaches above-mentioned maximum virtual objects capacity;It is greater than in response to above-mentioned first production hour of determination
Above-mentioned second production hour, determine that the following first information is query result information: virtual objects source state: production is completely suspended in pond,
Current virtual article throughput: the corresponding virtual objects quantity of above-mentioned maximum virtual objects capacity, current producer's number: above-mentioned mesh
Mark producer's number;It is less than or equal to above-mentioned second working hour in response to determination above-mentioned first working hour, determines that following second information is
Query result information: virtual objects source state: in production, current virtual article throughput: above-mentioned first working hour and throughput rate it
Product, current producer's number: above-mentioned target producer number.
In some embodiments, above-mentioned according to above-mentioned producer's timeline and above-mentioned attribute information table, generate query result
Information, further includes: in response to the determination above-mentioned greatest hope end time earlier than current time, further determine that above-mentioned first production
Whether working hour is greater than above-mentioned second production hour;It is greater than above-mentioned second working hour in response to determination above-mentioned first working hour, determines above-mentioned
Third information is query result information: virtual objects source state: production is completely suspended in pond, current virtual article throughput: above-mentioned maximum
The corresponding virtual objects quantity of virtual objects capacity, current producer's number: above-mentioned target producer number;In response in determination
It stated for the first working hour less than or equal to above-mentioned second working hour, determines following 4th information as query result information: resource pool state:
Stop production, current virtual article throughput: the product in above-mentioned first working hour and throughput rate, current producer's number: vacancy.
Second aspect, the embodiment of the present disclosure provide a kind of for generating the device of information, and device includes: receiving unit,
It is configured to receive the inquiry request of terminal transmission, wherein above-mentioned inquiry request includes user identifier;Acquiring unit is configured
At the attribute information table for obtaining virtual objects corresponding with above-mentioned user identifier source, and life corresponding with above-mentioned virtual objects source
Production person's information table, wherein the manufacturer information in above-mentioned manufacturer information table includes production hour, is based on the above-mentioned void of production hour
Quasi- article source increases the corresponding virtual objects of above-mentioned user identifier by preset throughput rate;First generation unit, is configured to
According to above-mentioned attribute information table and above-mentioned manufacturer information table, producer's timeline is generated, wherein above-mentioned producer's timeline is used
At the end of the corresponding expectation initial time of production hour and expectation for indicating the manufacturer information in above-mentioned manufacturer information table
Between;Second generation unit is configured to generate query result letter according to above-mentioned producer's timeline and above-mentioned attribute information table
Breath, and above-mentioned query result information is sent to above-mentioned terminal, so that above-mentioned terminal is shown.
In some embodiments, above-mentioned apparatus further include: registering unit is configured in response to receive invited user's base
In the target registered request that Object linking is sent, above-mentioned invited user is registered according to the request of above-mentioned target registered, wherein
Above-mentioned Object linking includes above-mentioned user identifier;Recording unit, be configured to record in above-mentioned manufacturer information table it is above-mentioned by
Invite the information of user as manufacturer information.
In some embodiments, above-mentioned attribute information table includes that above-mentioned virtual objects source has produced virtual objects amount, above-mentioned
Manufacturer information in manufacturer information table further includes producer's number and registion time;And above-mentioned first production unit packet
It includes: choosing module, be configured to choose the target producer from least one producer number in above-mentioned manufacturer information table
Number;Module is obtained, is configured to number the registion time of corresponding target manufacturer information according to the above-mentioned target producer, from
Including above-mentioned target manufacturer information, at least one manufacturer information is obtained in above-mentioned manufacturer information table;Generate mould
Block is configured to generate producer's timeline using at least one acquired manufacturer information.
In some embodiments, above-mentioned generation module is further configured to: when the above-mentioned target producer is numbered conduct
Between on axis sequence numbered in the primary producer, determine expectation starting of the above-mentioned target producer number on above-mentioned time shaft
Time and desired end time;For it is at least one acquired manufacturer information, except above-mentioned target manufacturer information it
Outer manufacturer information executes following sequence step: according to registion time, the production hour in the manufacturer information, and should
The previous producer of producer's number of manufacturer information numbers the corresponding expectation end time, determines the manufacturer information
Expectation initial time and desired end time of producer's number on above-mentioned time shaft;According to identified expectation initial time
With the desired end time, producer's number in the manufacturer information is ranked up on above-mentioned time shaft;By above-mentioned sequence
As a result it is used as producer's timeline.
In some embodiments, above-mentioned attribute information table includes maximum virtual objects capacity and user's the last time to above-mentioned
The virtual objects that virtual objects source generates execute the newest of null clear operation and empty the time;And above-mentioned second generation unit is further
It is configured to: determining whether the greatest hope end time on above-mentioned producer's timeline is later than or is equal to current time, wherein
The above-mentioned greatest hope end time refers to the expectation end time that the last one producer numbers on above-mentioned producer's timeline;Response
In determining that the above-mentioned greatest hope end time is later than or is equal to current time, further determine that whether the first production hour is greater than the
Two production hours, wherein above-mentioned first production hour, which refers to, newest empties the time to current from above-mentioned on above-mentioned producer's timeline
Cumulative production working hour between time, above-mentioned second production hour refer to that above-mentioned virtual objects source reaches above-mentioned maximum virtual objects and holds
Working hour needed for amount;It is greater than above-mentioned second production hour in response to above-mentioned first production hour of determination, determines the following first information
For query result information: virtual objects source state: production is completely suspended in pond, current virtual article throughput: above-mentioned maximum virtual objects
The corresponding virtual objects quantity of capacity, current producer's number: above-mentioned target producer number;In response to above-mentioned first work of determination
When be less than or equal to above-mentioned second working hour, determine that following second information is query result information: virtual objects source state: production
In, current virtual article throughput: the product in above-mentioned first working hour and throughput rate, current producer's number: the above-mentioned target producer
Number.
In some embodiments, above-mentioned second generation unit is further configured to: in response to the above-mentioned greatest hope of determination
End time earlier than current time, further determines that whether above-mentioned first production hour is greater than above-mentioned second production hour;Response
In determine above-mentioned first working hour be greater than above-mentioned second working hour, determine above-mentioned third information be query result information: virtual objects source
State: production is completely suspended in pond, current virtual article throughput: the corresponding virtual objects quantity of above-mentioned maximum virtual objects capacity, when
Preceding producer's number: above-mentioned target producer number;It is less than or equal to above-mentioned second working hour in response to determination above-mentioned first working hour,
It determines following 4th information as query result information: resource pool state: stopping producing, current virtual article throughput: above-mentioned the
The product in one working hour and throughput rate, current producer's number: vacancy.
The third aspect, the embodiment of the present disclosure provide a kind of server, which includes: one or more processors;
Storage device is stored thereon with one or more programs, when said one or multiple programs are by said one or multiple processors
When execution, so that said one or multiple processors realize the method as described in implementation any in first aspect.
Fourth aspect, the embodiment of the present disclosure provide a kind of computer-readable medium, are stored thereon with computer program,
In, the method as described in implementation any in first aspect is realized when which is executed by processor.
The method and apparatus for generating information that the embodiment of the present disclosure provides obtain mark with user in inquiry request first
The attribute information table in corresponding virtual objects source, and manufacturer information table corresponding with virtual objects source are known, then according to category
Property information table and manufacturer information table generate producer's timeline, finally according to producer's timeline and attribute information table generation look into
Result information is ask, and query result information is sent to terminal, so that terminal is shown.The embodiment of the present disclosure, which realizes, to be based on
The attribute information table and manufacturer information that single inquiry database is got generate query result information, to reduce inquiry number
According to the number in library, the efficiency for generating information is improved.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the disclosure is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is that one embodiment of the disclosure can be applied to exemplary system architecture figure therein;
Fig. 2 is the flow chart according to one embodiment of the method for generating information of the disclosure;
Fig. 3 is based on producer's timeline obtained by least one manufacturer information shown in table 1;
Fig. 4 is the schematic diagram according to an application scenarios of the method for generating information of the disclosure;
Fig. 5 is the flow chart according to another embodiment of the method for generating information of the disclosure;
Fig. 6 is the structural schematic diagram according to one embodiment of the device for generating information of the disclosure;
Fig. 7 is adapted for the structural schematic diagram for the computer system for realizing the server of the embodiment of the present disclosure.
Specific embodiment
The disclosure is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to
Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the disclosure can phase
Mutually combination.The disclosure is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can the method for generating information using the embodiment of the present disclosure or the device for generating information
Exemplary system architecture 100.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network 104 and server 105.
Network 104 between terminal device 101,102,103 and server 105 to provide the medium of communication link.Network 104 can be with
Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 101,102,103 and be interacted by network 104 with server 105, to receive or send out
Send message etc..Various telecommunication customer end applications, such as game class application, purchase can be installed on terminal device 101,102,103
Species application, searching class application, instant messaging tools, mailbox client, social platform software etc..
Terminal device 101,102,103 can be hardware, be also possible to software.When terminal device 101,102,103 is hard
When part, it can be the various electronic equipments with display screen and supported web page browsing, including but not limited to smart phone, plate
Computer, E-book reader, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic
Image expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV, move
State image expert's compression standard audio level 4) player, pocket computer on knee and desktop computer etc..When terminal is set
Standby 101,102,103 when being software, may be mounted in above-mentioned cited electronic equipment.Its may be implemented into multiple softwares or
Software module (such as providing Distributed Services), also may be implemented into single software or software module.It does not do herein specific
It limits.
Server 105 can be to provide the server of various services, such as to showing on terminal device 101,102,103
Information provides the background server supported.Background server can carry out the data such as the inquiry request received analyzing etc.
Reason, and processing result (such as query result information) is fed back into terminal device 101,102,103.
It should be noted that server 105 can be hardware, it is also possible to software.It, can when server 105 is hardware
To be implemented as the distributed server cluster that multiple servers form, individual server also may be implemented into.When server 105 is
When software, multiple softwares or software module (such as providing Distributed Services) may be implemented into, also may be implemented into single
Software or software module.It is not specifically limited herein.
It should be understood that the number of terminal device, network and server in Fig. 1 is only schematical.According to realization need
It wants, can have any number of terminal device, network and server.
It should be noted that the method provided by the embodiment of the present disclosure for generating information is generally held by server 105
Row, correspondingly, the device for generating information is generally positioned in server 105.
With continued reference to Fig. 2, the process of one embodiment of the method for generating information according to the disclosure is shown
200.The method for being used to generate information, comprising the following steps:
Step 201, the inquiry request that terminal is sent is received.
It in the present embodiment, can be with for generating the executing subject (such as server 105 shown in FIG. 1) of the method for information
It is received by wired connection mode or radio connection from terminal (such as terminal device shown in FIG. 1 101,102,103)
Inquiry request.Here, inquiry request can be what user was sent by terminal, is also possible to terminal and sends automatically.For example,
Terminal can send one query request to executing subject every scheduled duration, with information shown by real-time update terminal.Its
In, above-mentioned inquiry request may include user identifier, and herein, user identifier can be used for one user of unique identification.
Step 202, obtain virtual objects corresponding with user identifier source attribute information table, and with virtual objects source pair
The manufacturer information table answered.
In the present embodiment, the category in multiple virtual objects sources can be previously stored in the database that executing subject is connected
Property information table, can also be stored with multiple manufacturer information tables.It wherein, may include user identifier in each attribute information table, respectively
Manufacturer information table may include user identifier, the corresponding mark in virtual objects source etc..In this way, executing subject can root
The user identifier in inquiry request received according to step 201 obtains the attribute in virtual objects corresponding with user identifier source
Information table, and manufacturer information table corresponding with the virtual objects source of acquisition.
In practice, user can use the application installed in terminal and obtain virtual objects.The application can be every pre- timing
It is long to send one query request to executing subject, to update shown information related with virtual objects.Herein, virtual object
Product can refer to game class ideal money, can be used for exchanging for other virtual objects.With the virtual objects of acquisition for virtual gold mine
For the game class application of stone, after registration is completed in game class application, executing subject can determine user for the user
One unique user identifier.Later, executing subject can be that user distributes a virtual gold mine for the user identifier, i.e., empty
Quasi- article source.In the case where meeting certain condition, which can produce virtual objects with certain throughput rate.Execute master
Body can set configuration information while distributing virtual objects source for the virtual objects source, and configuration information is written and is configured
Information table.Here, configuration information is used to define the performance in the virtual objects source.For example, may include in configuration information table
Production efficiency, maximum virtual objects capacity have produced virtual objects amount etc..Wherein, production efficiency can be used for describing the void
The amount of virtual objects produced in quasi- article source unit time (for example, 1S).Maximum virtual objects capacity can be used to indicate that
The upper limit value of the quantity of the corresponding maximum virtual objects in virtual objects source.That is, if virtual objects source corresponding virtual objects
Quantity is equal to maximum virtual objects capacity, then virtual objects source will not continue to production virtual objects.At this point, at virtual objects source
In " completely suspending production in pond " state.In practice, after user executes acquisition operation by terminal, the corresponding virtual object in virtual objects source
The quantity of product will become zero, while increase corresponding numerical value in the account of user.At this point, if working condition meets, virtual object
Product source will be in " in production " state.Virtual objects amount has been produced to start to increase user identifier pair for indicating that virtual objects are originated from
The quantity for the virtual objects answered starts, to current time it is total increased virtual objects quantity.
It is to be appreciated that virtual objects source can not really produce virtual objects, virtually for executing subject
Article source is a special identifier.The special identifier can be corresponding with a numerical value, the i.e. yield of virtual objects.It should
The corresponding numerical value of special identifier is not fixed and invariable.When meeting some scheduled conditions, the special identifier
Corresponding numerical value can change.For example, the special identifier is corresponding after if user executes acquisition operation by terminal
Numerical value then become zero, while increasing corresponding numerical value in the account of user.In another example this is special when meeting certain condition down
The corresponding numerical value of identifier can also increase.
Herein, the manufacturer information in manufacturer information table may include production hour, be based on production hour virtual object
Product source can be increased the corresponding virtual objects of user identifier by preset throughput rate.Herein, virtual objects source has by pre-
If throughput rate increases the ability of the corresponding virtual objects quantity of user identifier.It can be unlimited but do not represent virtual objects source
When, quantity-unlimiting any production virtual objects.Production hour, which then defines virtual objects source, can produce the duration of virtual objects.
For example, production hour is 2 hours, then it represents that in the case where meeting other conditions, virtual objects source can be in 2 hours by pre-
If throughput rate increase the corresponding virtual objects of user identifier.Wherein, this 2 hours initial time can be according to preset rule
Then determine.
Step 203, according to attribute information table and manufacturer information table, producer's timeline is generated.
In the present embodiment, executing subject can generate production according to above-mentioned attribute information table and above-mentioned manufacturer information table
Person's timeline.Herein, above-mentioned producer's timeline is used to indicate the production of the manufacturer information in above-mentioned manufacturer information table
Working hour corresponding expectation initial time and desired end time.Herein, false it is expected that initial time and desired end time refer to
If virtual objects source is constantly in state " in production ", the production hour of each manufacturer information in manufacturer information table
Initial time and end time.
As an example it is supposed that once the quantity of the corresponding virtual objects in virtual objects source is equal to maximum virtual objects capacity,
Then user executes acquisition operation by terminal, becomes zero the quantity of the corresponding virtual objects in virtual objects source, i.e. virtual objects
Source is constantly in state " in production ".Here, it according to a plurality of manufacturer information for including in manufacturer information table, can obtain multiple
Production hour.And each corresponding expectation initial time of production hour and desired end time determine the effective of the production hour
Time, for example, the production hour in some manufacturer information is 1 hour, it is expected that initial time is 03:00 on January 1st, 2018,
It is expected that the end time is 04:00 on January 1st, 2018, then it represents that in 04:00 on January 1,03:00 to 2018 years on the 1st January in 2018
Period, virtual objects source are increased the quantity of the corresponding virtual objects of user identifier by preset throughput rate.
In some optional implementations of the present embodiment, manufacturer information in above-mentioned manufacturer information table can be with
Including producer's number and registion time.Herein, the corresponding user of each manufacturer information in manufacturer information table,
That is a producer.The time that the producer is registered in above-mentioned executing subject is the registion time of the manufacturer information.
The time that executing subject can also be registered according to the producer, the producer generated for the producer number.For example, working as
When there are multiple producers to register successively, numbers, press by the producer that the sequencing of registion time generates multiple producers
Registion time is by the sequence after arriving first, the ascending producer's number for generating multiple producers.
Herein, step 203 specific as follows can carry out:
Step S1 chooses target producer number from least one producer number in manufacturer information table.
It may include at least one manufacturer information, every production in above-mentioned manufacturer information table in this implementation
Person's information includes producer's number.Executing subject is selected in can numbering from least one producer in manufacturer information table
Producer's number is taken out to number as the target producer.As an example, following formula, which can be used, in executing subject determines mesh
Mark producer's number:Wherein,
To be rounded symbol downwards.Single producer's life cycle yield indicates the virtual objects in the corresponding production hour of a producer
Source increased virtual objects quantity.
Step S2 numbers the registion time of corresponding target manufacturer information according to the target producer, from manufacturer information
Including target manufacturer information, at least one manufacturer information is obtained in table.
In this implementation, executing subject can number the note of corresponding target manufacturer information according to the target producer
Volume the time, from manufacturer information table obtain including target manufacturer information, at least one manufacturer information.As showing
Example, the available target manufacturer information of executing subject and registion time are after the registion time of target manufacturer information
Manufacturer information.
Step S3 generates producer's timeline using at least one acquired manufacturer information.
In this implementation, when the acquired at least one manufacturer information generation producer can be used in executing subject
Between line.As an example, executing subject can be numbered ascending sequence by the producer, on a timeline by above-mentioned at least one
Producer's number in manufacturer information is ranked up, wherein each producer's number is not overlapped on a timeline, and in time shaft
On span be equal to production hour.
In some optional implementations, step S3 specific as follows can be carried out:
Target producer number is numbered as sequence on time shaft in the primary producer, determines target by step S31
The producer numbers expectation initial time and desired end time on a timeline.
In this implementation, executing subject can be numbered the target producer as sequence on time shaft primary
Producer's number, and determine that first producer numbers expectation initial time and the desired end time on a timeline.As
Example, executing subject can determine the expectation initial time and desired end time that the target producer numbers in the following manner:
If the registion time of target manufacturer information is later than or empties the time equal to newest, it is expected that initial time=note
The volume time.
If the registion time of target manufacturer information empties the time earlier than newest, it is expected that initial time=newest empty
Time.
It is expected that end time=expectation initial time+target producer numbers the corresponding surplus working hours.Wherein, target produces
Person's number corresponding surplus working hours can be calculated by the following formula to obtain:
Wherein, refer to the sum of the production hour in manufacturer information table in each manufacturer information when producer chief engineer.It has adopted
Collect virtual objects amount, refers to that the corresponding numerical value in virtual objects source is reset by clicking the pre-set button of terminal and increase account by user
Add the mode of respective value and obtains numerical value.Producer's yield in unit time refers to unit time (for example, 1 second) interior virtual objects
The quantity of source virtual objects produced.
Step S32, for production at least one acquired manufacturer information, in addition to target manufacturer information
Person's information executes following sequence step: being believed according to registion time, production hour and producer in the manufacturer information
The previous producer of producer's number of breath numbers the corresponding expectation end time, determines that the producer of the manufacturer information compiles
Expectation initial time and desired end time number on a timeline;At the end of identified expectation initial time and expectation
Between, producer's number in the manufacturer information is ranked up on a timeline.
In this implementation, for it is at least one acquired manufacturer information, except target manufacturer information it
Outer manufacturer information, executing subject can execute following sequence step:
1) it is numbered according to the producer of registion time, production hour and the manufacturer information in the manufacturer information
The previous producer number corresponding expectation end time, determine producer's number of the manufacturer information on a timeline
It is expected that initial time and desired end time.
As an example, executing subject can determine that the producer of the manufacturer information numbers in time shaft in the following manner
On expectation initial time and the desired end time.
If the registion time of the manufacturer information numbers the corresponding expectation end time earlier than or equal to the previous producer,
Then it is expected that initial time=previous producer numbers the corresponding expectation end time.
If the registion time of the manufacturer information, which is later than the previous producer, numbers the corresponding expectation end time, it is expected that
Initial time=registion time.
It is expected that end time=expectation initial time+production hour.
2) according to identified expectation initial time and desired end time, on a timeline in the manufacturer information
Producer's number is ranked up.
Step S33, using ranking results as producer's timeline.
As an example it is supposed that target producer number is 1, at least one acquired manufacturer information is as shown in table 1 below:
Producer's number | Registion time | Production hour (hour) |
1 | 3:00 | 1 |
2 | 3:10 | 1 |
3 | 3:20 | 1 |
4 | 5:00 | 1 |
5 | 18:00 | 1 |
6 | 20:00 | 1 |
Then according to the available producer's timeline as shown in Figure 3 of this implementation.It should be noted that due to space
It is limited, therefore the intermediate time is indicated with broken line in Fig. 3.
Step 204, according to producer's timeline and attribute information table, query result information is generated, and by query result
Information is sent to terminal, so that terminal is shown.
In the present embodiment, executing subject can generate query result letter according to producer's timeline and attribute information table
Breath, and query result information is sent to terminal.Terminal can be shown after receiving query result information.At this
In, query result information may include various information, for example, may include the corresponding virtual objects in current time virtual objects source
Quantity, i.e. current virtual article throughput.
In some optional implementations of the present embodiment, above-mentioned attribute information table may include that maximum virtual objects hold
Amount and user's the last time execute the newest of null clear operation to the virtual objects that virtual objects source generates and empty the time.
Herein, step 204 can specifically include the following contents:
Firstly, determining whether the greatest hope end time on producer's timeline is later than or is equal to current time.
In this implementation, greatest hope end time on producer's timeline can refer to last on production line
The expectation end time of one producer number.
Secondly, further determining that the first production in response to determining that the greatest hope end time is later than or is equal to current time
Whether working hour is greater than the second production hour.
In this implementation, if the greatest hope end time on producer's timeline is later than or is equal to current
Between, then executing subject needs further judge whether the first production hour is greater than the second production hour.Here, the first production hour
Refer to and empty the time to the cumulative production working hour current time from newest on producer's timeline, the second production hour refers to virtually
Working hour needed for article source reaches maximum virtual objects capacity.
Then, in response to determining that the first production hour is greater than the second production hour, it is determined that the following first information is inquiry
Result information:
Virtual objects source state: completely suspend production in pond;
Current virtual article throughput: the corresponding virtual objects quantity of maximum virtual objects capacity;
Current producer's number: target producer number.
It should be noted that the current virtual article throughput in the first information is that maximum virtual objects capacity is corresponding virtual
The numerical value of number of articles, current producer's number are that the target producer numbers corresponding number value.Finally, in response to determining first
Working hour was less than or equal to for the second working hour, determined that following second information is query result information:
Virtual objects source state: in production;
Current virtual article throughput: the product in the first working hour and throughput rate;
Current producer's number: target producer number.
It should be noted that the current virtual article throughput in the second information is the product correspondence of the first working hour and throughput rate
Numerical value, current producer number is that the target producer numbers corresponding number value.
In some optional implementations, step 204 can also include the following contents:
Firstly, in response to determining that the greatest hope end time earlier than current time, then further determines that the first production hour
Whether the second production hour is greater than.
Then, in response to determining that the first working hour greater than the second working hour, determined that following third information was query result information:
Virtual objects source state: completely suspend production in pond;
Current virtual article throughput: the corresponding virtual objects quantity of maximum virtual objects capacity;
Current producer's number: target producer number.
It should be noted that the current virtual article throughput in third information is that maximum virtual objects capacity is corresponding virtual
The numerical value of number of articles, current producer's number are that the target producer numbers corresponding number value.
Finally, determining following 4th information as inquiry knot in response to determining that the first working hour was less than or equal to for the second working hour
Fruit information:
Resource pool state: stop production;
Current virtual article throughput: the product in the first working hour and throughput rate;
Current producer's number: vacancy.
It should be noted that the current virtual article throughput in the 4th information is the product correspondence of the first working hour and throughput rate
Numerical value.
With continued reference to the signal that Fig. 4, Fig. 4 are according to the application scenarios of the method for generating information of the present embodiment
Figure.In the application scenarios of Fig. 4, terminal 401 sends an inquiry request to server 402 first, which includes using
Family mark.Later, the attribute information table in available virtual objects corresponding with the user identifier source of server 402, and with void
The quasi- corresponding manufacturer information table of article source, wherein the manufacturer information in manufacturer information table includes production hour, based on life
The corresponding virtual objects of user identifier can be increased by preset throughput rate by producing working hour virtual objects source.Then, server 402
Producer's timeline can be produced, wherein producer's timeline is used to indicate life according to attribute information table and manufacturer information table
The corresponding expectation initial time of the production hour of manufacturer information in production person's information table and desired end time.Finally, service
Device 402 can generate query result information, and query result information is sent to according to producer's timeline and attribute information table
Terminal 401, so that terminal 401 is shown.
When the method provided by the above embodiment of the disclosure generates the producer according to attribute information table and manufacturer information table
Between line, and query result information is generated based on producer timeline, is got to realize based on single inquiry database
Attribute information table and manufacturer information generate query result information, to reduce the number of inquiry database, improve generation
The efficiency of information.
With further reference to Fig. 5, it illustrates the processes 500 of another embodiment of the method for generating information.The use
In the process 500 for the method for generating information, comprising the following steps:
Step 501, it is requested in response to receiving invited user based on the target registered that Object linking is sent, is infused according to target
Invited user is registered in volume request.
In the present embodiment, for generating the executing subject (such as server 105 shown in FIG. 1) of the method for information first
It can receive the target registered request that invited user is sent based on Object linking.Here, Object linking can refer to other users
It is sent to the link of invited user, which may include the user identifier of sender.Invited user can by clicking the link
To reach specified enrollment page, and target registered request is sent to above-mentioned executing subject by the enrollment page.Herein, mesh
Mark registration request may include various information for registration, for example, can include but is not limited to register used user name,
The personal information of password and invited user, e.g., gender, age etc..In addition, target registered request can also include target
The user identifier of sender in link.Later, executing subject can request to register invited user according to target registered.
Step 502, the information of invited user is recorded in manufacturer information table as manufacturer information.
In the present embodiment, executing subject can record the information of above-mentioned invited user as life in manufacturer information table
Production person's information.As an example, completing when invited user registers, executing subject can produce a producer for the invited user and compile
Number and production hour, for example, by registion time the successive generation producer number, and for each invited user set one finger
The short production hour of fixed length.Later, executing subject can be by the registion time of the invited user, producer's number, production hour
Manufacturer information table is recorded Deng as manufacturer information.
Step 503, the inquiry request that terminal is sent is received.
In this implementation, above-mentioned inquiry request includes user identifier.Object chain in the user identifier and step 501
User identifier in connecing is identical.
Step 504, obtain virtual objects corresponding with user identifier source attribute information table, and with virtual objects source pair
The manufacturer information table answered.
Step 505, according to attribute information table and manufacturer information table, producer's timeline is generated.
Step 506, according to producer's timeline and attribute information table, query result information is generated, and by query result
Information is sent to terminal, so that terminal is shown.
In the present embodiment, step 503- step 506 it is specific processing and its brought technical effect respectively with Fig. 2 institute
Show step 201- step 204 type of embodiment, details are not described herein.
From figure 5 it can be seen that the method for generating information compared with the corresponding embodiment of Fig. 2, in the present embodiment
Process 500 highlight into manufacturer information table record manufacturer information the step of.The scheme of the present embodiment description can as a result,
Manufacturer information table is generated with the target registered request sent based on invited user, is produced in manufacturer information table to realize
The generation of person's information.Meanwhile realizing the attribute information table and manufacturer information generation got based on single inquiry database
Query result information improves the efficiency for generating information to reduce the number of inquiry database.
With further reference to Fig. 6, as the realization to method shown in above-mentioned each figure, present disclose provides one kind for generating letter
One embodiment of the device of breath, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which can specifically answer
For in various electronic equipments.
As shown in fig. 6, the present embodiment includes: receiving unit 601, acquiring unit for generating the device 600 of information
602, the first generation unit 603 and the second generation unit 604.Wherein, receiving unit 601 is configured to receive looking into for terminal transmission
Ask request, wherein above-mentioned inquiry request includes user identifier;Acquiring unit 602 is configured to obtain and above-mentioned user identifier pair
The attribute information table in the virtual objects source answered, and manufacturer information table corresponding with above-mentioned virtual objects source, wherein above-mentioned life
Manufacturer information in production person's information table includes production hour, based on the above-mentioned virtual objects source of production hour by preset production speed
Rate increases the corresponding virtual objects of above-mentioned user identifier;First generation unit 603 be configured to according to above-mentioned attribute information table and
Above-mentioned manufacturer information table generates producer's timeline, wherein above-mentioned producer's timeline is used to indicate above-mentioned manufacturer information
The corresponding expectation initial time of the production hour of manufacturer information in table and desired end time;Second generation unit, 604 quilt
It is configured to generate query result information, and above-mentioned inquiry is tied according to above-mentioned producer's timeline and above-mentioned attribute information table
Fruit information is sent to above-mentioned terminal, so that above-mentioned terminal is shown.
In the present embodiment, for generating receiving unit 601, the generation of acquiring unit 602, first of the device 600 of information
The specific processing of unit 603 and the second generation unit 604 and its brought technical effect can refer to Fig. 2 corresponding embodiment respectively
Middle step 201, step 202, the related description of step 203 and step 204, details are not described herein.
In some optional implementations of the present embodiment, above-mentioned apparatus 600 further include: registering unit (is not shown in figure
Out), it is configured in response to receive the target registered request that invited user is sent based on Object linking, be infused according to above-mentioned target
Above-mentioned invited user is registered in volume request, wherein above-mentioned Object linking includes above-mentioned user identifier;Recording unit is (in figure
It is not shown), it is configured to record the information of above-mentioned invited user as manufacturer information in above-mentioned manufacturer information table.
In some optional implementations of the present embodiment, above-mentioned attribute information table includes that above-mentioned virtual objects source has been given birth to
Virtual objects amount is produced, the manufacturer information in above-mentioned manufacturer information table further includes producer's number and registion time;On and
Stating the first production unit 603 includes: to choose module (not shown), is configured to from above-mentioned manufacturer information table at least
Target producer number is chosen in one producer's number;Module (not shown) is obtained, is configured to according to above-mentioned target
The producer numbers the registion time of corresponding target manufacturer information, and obtaining from above-mentioned manufacturer information table includes above-mentioned target
Including manufacturer information, at least one manufacturer information;Generation module (not shown), is configured to using acquired
At least one manufacturer information generates producer's timeline.
In some optional implementations of the present embodiment, above-mentioned generation module is further configured to: by above-mentioned mesh
Producer's number is marked as sequence on time shaft to number in the primary producer, determines above-mentioned target producer number above-mentioned
Expectation initial time and desired end time on time shaft;For it is at least one acquired manufacturer information, except upper
The manufacturer information except target manufacturer information is stated, following sequence step is executed: when according to registration in the manufacturer information
Between, the previous producer of producer's number of production hour and the manufacturer information number the corresponding expectation end time,
Determine that the producer of the manufacturer information numbers expectation initial time and desired end time on above-mentioned time shaft;According to institute
Determining expectation initial time and desired end time, on above-mentioned time shaft to the producer in the manufacturer information number into
Row sequence;Using above-mentioned ranking results as producer's timeline.
In some optional implementations of the present embodiment, above-mentioned attribute information table include maximum virtual objects capacity and
User's the last time executes the newest of null clear operation to the virtual objects that above-mentioned virtual objects source generates and empties the time;And it is above-mentioned
Second generation unit 604 is further configured to: determining whether the greatest hope end time on above-mentioned producer's timeline is late
In or equal to current time, wherein the above-mentioned greatest hope end time refers to the last one producer on above-mentioned producer's timeline
The expectation end time of number;It is later than or is equal to current time in response to the determination above-mentioned greatest hope end time, further really
Whether fixed first production hour is greater than the second production hour, wherein above-mentioned first production hour refers on above-mentioned producer's timeline
From it is above-mentioned it is newest empty the time to the cumulative production working hour current time, above-mentioned second production hour refers to above-mentioned virtual objects
Working hour needed for source reaches above-mentioned maximum virtual objects capacity;It is raw to be greater than above-mentioned second in response to above-mentioned first production hour of determination
Working hour is produced, determines that the following first information is query result information: virtual objects source state: completely suspending production, current virtual object in pond
Product yield: the corresponding virtual objects quantity of above-mentioned maximum virtual objects capacity, current producer's number: the above-mentioned target producer compiles
Number;It is less than or equal to above-mentioned second working hour in response to determination above-mentioned first working hour, determines following second information for query result letter
Breath: virtual objects source state: in production, current virtual article throughput: the product in above-mentioned first working hour and throughput rate, it is current to produce
Person's number: above-mentioned target producer number.
In some optional implementations of the present embodiment, above-mentioned second generation unit 604 is further configured to: being rung
, earlier than current time, it should further determine that whether above-mentioned first production hour is greater than in determining the above-mentioned greatest hope end time
State the second production hour;It is greater than above-mentioned second working hour in response to determination above-mentioned first working hour, determines above-mentioned third information for inquiry
Result information: virtual objects source state: production is completely suspended in pond, current virtual article throughput: above-mentioned maximum virtual objects capacity pair
The virtual objects quantity answered, current producer's number: above-mentioned target producer number;It is less than in response to determination above-mentioned first working hour
Or it is equal to above-mentioned second working hour, it determines following 4th information as query result information: resource pool state: stopping production, currently
Virtual objects yield: the product in above-mentioned first working hour and throughput rate, current producer's number: vacancy.
Below with reference to Fig. 7, it illustrates the electronic equipment that is suitable for being used to realize embodiment of the disclosure, (example is as shown in figure 1
Server) 700 structural schematic diagram.Server shown in Fig. 7 is only an example, should not be to the function of embodiment of the disclosure
Any restrictions can be brought with use scope.
As shown in fig. 7, electronic equipment 700 may include processing unit (such as central processing unit, graphics processor etc.)
701, random access can be loaded into according to the program being stored in read-only memory (ROM) 702 or from storage device 708
Program in memory (RAM) 703 and execute various movements appropriate and processing.In RAM 703, it is also stored with electronic equipment
Various programs and data needed for 700 operations.Processing unit 701, ROM 702 and RAM703 are connected with each other by bus 704.
Input/output (I/O) interface 705 is also connected to bus 704.
In general, following device can connect to I/O interface 705: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph
As the input unit 706 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration
The output device 707 of dynamic device etc.;Storage device 708 including such as tape, hard disk etc.;And communication device 709.Communication device
709, which can permit electronic equipment 700, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 7 shows tool
There is the electronic equipment 700 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with
Alternatively implement or have more or fewer devices.Each box shown in Fig. 7 can represent a device, can also root
According to needing to represent multiple devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communication device 709, or from storage device 708
It is mounted, or is mounted from ROM 702.When the computer program is executed by processing unit 701, the implementation of the disclosure is executed
The above-mentioned function of being limited in the method for example.
It is situated between it should be noted that computer-readable medium described in embodiment of the disclosure can be computer-readable signal
Matter or computer readable storage medium either the two any combination.Computer readable storage medium for example can be with
System, device or the device of --- but being not limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or it is any more than
Combination.The more specific example of computer readable storage medium can include but is not limited to: have one or more conducting wires
Electrical connection, portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type are programmable
Read-only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic are deposited
Memory device or above-mentioned any appropriate combination.In embodiment of the disclosure, computer readable storage medium, which can be, appoints
What include or the tangible medium of storage program that the program can be commanded execution system, device or device use or and its
It is used in combination.And in embodiment of the disclosure, computer-readable signal media may include in a base band or as carrier wave
The data-signal that a part is propagated, wherein carrying computer-readable program code.The data-signal of this propagation can be adopted
With diversified forms, including but not limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal is situated between
Matter can also be any computer-readable medium other than computer readable storage medium, which can be with
It sends, propagate or transmits for by the use of instruction execution system, device or device or program in connection.Meter
The program code for including on calculation machine readable medium can transmit with any suitable medium, including but not limited to: electric wire, optical cable,
RF (radio frequency) etc. or above-mentioned any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not
It is fitted into the electronic equipment.Above-mentioned computer-readable medium carries one or more program, when said one or more
When a program is executed by the electronic equipment, so that the electronic equipment: receiving the inquiry request that terminal is sent, wherein above-mentioned inquiry
Request includes user identifier;Obtain virtual objects corresponding with above-mentioned user identifier source attribute information table, and with above-mentioned void
The quasi- corresponding manufacturer information table of article source, wherein the manufacturer information in above-mentioned manufacturer information table includes production hour, base
Increase the corresponding virtual objects of above-mentioned user identifier by preset throughput rate in the above-mentioned virtual objects source of production hour;According to upper
Attribute information table and above-mentioned manufacturer information table are stated, generates producer's timeline, wherein above-mentioned producer's timeline is used to indicate
The corresponding expectation initial time of the production hour of manufacturer information in above-mentioned manufacturer information table and desired end time;According to
Above-mentioned producer's timeline and above-mentioned attribute information table generate query result information, and above-mentioned query result information are sent
To above-mentioned terminal, so that above-mentioned terminal is shown.
The behaviour for executing embodiment of the disclosure can be write with one or more programming languages or combinations thereof
The computer program code of work, described program design language include object oriented program language-such as Java,
Smalltalk, C++ further include conventional procedural programming language-such as " C " language or similar program design language
Speech.Program code can be executed fully on the user computer, partly be executed on the user computer, as an independence
Software package execute, part on the user computer part execute on the remote computer or completely in remote computer or
It is executed on server.In situations involving remote computers, remote computer can pass through the network of any kind --- packet
It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit
It is connected with ISP by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in embodiment of the disclosure can be realized by way of software, can also be passed through
The mode of hardware is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor
Including receiving unit, acquiring unit, the first generation unit and the second generation unit.Wherein, the title of these units is in certain feelings
The restriction to the unit itself is not constituted under condition, for example, receiving unit is also described as " receiving the inquiry that terminal is sent
The unit of request ".
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art
Member it should be appreciated that embodiment of the disclosure involved in invention scope, however it is not limited to the specific combination of above-mentioned technical characteristic and
At technical solution, while should also cover do not depart from foregoing invention design in the case where, by above-mentioned technical characteristic or its be equal
Feature carries out any combination and other technical solutions for being formed.Such as disclosed in features described above and embodiment of the disclosure (but
It is not limited to) technical characteristic with similar functions is replaced mutually and the technical solution that is formed.
Claims (14)
1. a kind of method for generating information, comprising:
Receive the inquiry request that terminal is sent, wherein the inquiry request includes user identifier;
The attribute information table in virtual objects corresponding with user identifier source is obtained, and corresponding with the virtual objects source
Manufacturer information table;
According to the attribute information table and the manufacturer information table, producer's timeline is generated;
According to producer's timeline and the attribute information table, query result information is generated, and by the query result
Information is sent to the terminal, so that the terminal is shown.
2. according to the method described in claim 1, wherein, before the inquiry request that the reception terminal is sent, the method
Further include:
The target registered request sent in response to receiving invited user based on Object linking, according to target registered request pair
The invited user registers, wherein the Object linking includes the user identifier;
The information of the invited user is recorded in the manufacturer information table as manufacturer information.
3. according to the method described in claim 1, wherein, the manufacturer information in the manufacturer information table further includes the producer
Number and registion time;And
It is described according to the attribute information table and the manufacturer information table, generate producer's timeline, comprising:
Target producer number is chosen from least one producer number in the manufacturer information table;
The registion time that corresponding target manufacturer information is numbered according to the target producer, from the manufacturer information table
Obtain including the target manufacturer information, at least one manufacturer information;
Producer's timeline is generated using at least one acquired manufacturer information.
4. according to the method described in claim 3, wherein, described generated using at least one acquired manufacturer information is produced
Person's timeline, comprising:
Target producer number is numbered as sequence on time shaft in the primary producer, determines the target production
Person numbers expectation initial time and desired end time on the time axis;
For manufacturer information at least one acquired manufacturer information, in addition to the target manufacturer information,
Execute following sequence step: according to the production of registion time, production hour and the manufacturer information in the manufacturer information
The previous producer of person's number numbers the corresponding expectation end time, determines that the producer of the manufacturer information numbers described
Expectation initial time and desired end time on time shaft;According to identified expectation initial time and desired end time,
Producer's number in the manufacturer information is ranked up on the time axis;
Using the ranking results as producer's timeline.
5. according to the method described in claim 1, wherein, the attribute information table include maximum virtual objects capacity and user most
The newest of null clear operation once closely is executed to the virtual objects that the virtual objects source generates and empties the time;And
It is described according to producer's timeline and the attribute information table, generate query result information, comprising:
Determine whether the greatest hope end time on producer's timeline is later than or is equal to current time, wherein described
The greatest hope end time refers to the expectation end time that the last one producer numbers on producer's timeline;
It is later than or is equal to current time in response to the determination greatest hope end time, further determines that the first production hour is
It is no to be greater than the second production hour, wherein first production hour refer on producer's timeline from it is described it is newest empty when
Between to the cumulative production working hour between current time, second production hour refers to that the virtual objects source reaches described maximum empty
Working hour needed for quasi- article capacity;
It is greater than second production hour in response to determination first production hour, determines that the following first information is query result
Information: virtual objects source state: production is completely suspended in pond, current virtual article throughput: the maximum virtual objects capacity is corresponding
Virtual objects quantity, current producer's number: the target producer number;
It is less than or equal to second working hour in response to determination first working hour, determines following second information for query result letter
Breath: virtual objects source state: in production, current virtual article throughput: the product in first working hour and throughput rate, it is current to produce
Person's number: the target producer number.
It is described according to producer's timeline and the attribute information table 6. according to the method described in claim 5, wherein,
Generate query result information, further includes:
In response to the determination greatest hope end time earlier than current time, whether first production hour is further determined that
Greater than second production hour;
It is greater than second working hour in response to determination first working hour, determines that the third information is query result information: empty
Quasi- article source state: production is completely suspended in pond, current virtual article throughput: the corresponding virtual objects of the maximum virtual objects capacity
Quantity, current producer's number: the target producer number;
It is less than or equal to second working hour in response to determination first working hour, determines following 4th information as query result
Information: resource pool state: stop production, current virtual article throughput: the product in first working hour and throughput rate, it is current to produce
Person's number: vacancy.
7. a kind of for generating the device of information, comprising:
Receiving unit is configured to receive the inquiry request of terminal transmission, wherein the inquiry request includes user identifier;
Acquiring unit, be configured to obtain virtual objects corresponding with user identifier source attribute information table, and with institute
State the corresponding manufacturer information table in virtual objects source;
First generation unit is configured to generate producer's time according to the attribute information table and the manufacturer information table
Line;
Second generation unit is configured to generate query result letter according to producer's timeline and the attribute information table
Breath, and the query result information is sent to the terminal, so that the terminal is shown.
8. device according to claim 7, wherein described device further include:
Registering unit is configured in response to receive the target registered request that invited user is sent based on Object linking, according to
The invited user is registered in the target registered request, wherein the Object linking includes the user identifier;
Recording unit, the information for being configured to record the invited user in the manufacturer information table are believed as the producer
Breath.
9. device according to claim 7, wherein the manufacturer information in the manufacturer information table further includes the producer
Number and registion time;And
First production unit includes:
Module is chosen, is configured to choose the target producer from least one producer number in the manufacturer information table
Number;
Module is obtained, is configured to number the registion time of corresponding target manufacturer information according to the target producer, from
Including the target manufacturer information, at least one manufacturer information is obtained in the manufacturer information table;
Generation module is configured to generate producer's timeline using at least one acquired manufacturer information.
10. device according to claim 9, wherein the generation module is further configured to:
Target producer number is numbered as sequence on time shaft in the primary producer, determines the target production
Person numbers expectation initial time and desired end time on the time axis;
For manufacturer information at least one acquired manufacturer information, in addition to the target manufacturer information,
Execute following sequence step: according to the production of registion time, production hour and the manufacturer information in the manufacturer information
The previous producer of person's number numbers the corresponding expectation end time, determines that the producer of the manufacturer information numbers described
Expectation initial time and desired end time on time shaft;According to identified expectation initial time and desired end time,
Producer's number in the manufacturer information is ranked up on the time axis;
Using the ranking results as producer's timeline.
11. device according to claim 7, wherein the attribute information table includes maximum virtual objects capacity and user
The last time executes the newest of null clear operation to the virtual objects that the virtual objects source generates and empties the time;And
Second generation unit is further configured to:
Determine whether the greatest hope end time on producer's timeline is later than or is equal to current time, wherein described
The greatest hope end time refers to the expectation end time that the last one producer numbers on producer's timeline;
It is later than or is equal to current time in response to the determination greatest hope end time, further determines that the first production hour is
It is no to be greater than the second production hour, wherein first production hour refer on producer's timeline from it is described it is newest empty when
Between to the cumulative production working hour between current time, second production hour refers to that the virtual objects source reaches described maximum empty
Working hour needed for quasi- article capacity;
It is greater than second production hour in response to determination first production hour, determines that the following first information is query result
Information: virtual objects source state: production is completely suspended in pond, current virtual article throughput: the maximum virtual objects capacity is corresponding
Virtual objects quantity, current producer's number: the target producer number;
It is less than or equal to second working hour in response to determination first working hour, determines following second information for query result letter
Breath: virtual objects source state: in production, current virtual article throughput: the product in first working hour and throughput rate, it is current to produce
Person's number: the target producer number.
12. device according to claim 11, wherein second generation unit is further configured to:
In response to the determination greatest hope end time earlier than current time, whether first production hour is further determined that
Greater than second production hour;
It is greater than second working hour in response to determination first working hour, determines that the third information is query result information: empty
Quasi- article source state: production is completely suspended in pond, current virtual article throughput: the corresponding virtual objects of the maximum virtual objects capacity
Quantity, current producer's number: the target producer number;
It is less than or equal to second working hour in response to determination first working hour, determines following 4th information as query result
Information: resource pool state: stop production, current virtual article throughput: the product in first working hour and throughput rate, it is current to produce
Person's number: vacancy.
13. a kind of server, comprising:
One or more processors;
Storage device is stored thereon with one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
Now such as method as claimed in any one of claims 1 to 6.
14. a kind of computer-readable medium, is stored thereon with computer program, wherein real when described program is executed by processor
Now such as method as claimed in any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910107771.3A CN109785178B (en) | 2019-01-31 | 2019-01-31 | Method and apparatus for generating information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910107771.3A CN109785178B (en) | 2019-01-31 | 2019-01-31 | Method and apparatus for generating information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109785178A true CN109785178A (en) | 2019-05-21 |
CN109785178B CN109785178B (en) | 2021-03-26 |
Family
ID=66503998
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910107771.3A Active CN109785178B (en) | 2019-01-31 | 2019-01-31 | Method and apparatus for generating information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109785178B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110400105A (en) * | 2019-06-13 | 2019-11-01 | 天津五八到家科技有限公司 | Order allocation method, equipment, system and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1615471A (en) * | 2000-06-27 | 2005-05-11 | 皇家菲利浦电子有限公司 | Method of determining a schedule, scheduler and system |
CN1710585A (en) * | 2004-06-18 | 2005-12-21 | 华为技术有限公司 | Game virtual-article data processing method, game platform system and game system |
JP2007048054A (en) * | 2005-08-10 | 2007-02-22 | Canon Inc | Information processing apparatus and method, and storage medium with the information processing method recorded thereon |
CN101068194A (en) * | 2007-06-15 | 2007-11-07 | 腾讯科技(深圳)有限公司 | Method and system for realizing on-line game invitation |
CN103593419A (en) * | 2013-10-30 | 2014-02-19 | 华为技术有限公司 | Method, device, server and system for inquiring data |
CN106485458A (en) * | 2015-08-28 | 2017-03-08 | 阿里巴巴集团控股有限公司 | Gunter drawing generating method and device, webpage generating method and device |
-
2019
- 2019-01-31 CN CN201910107771.3A patent/CN109785178B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1615471A (en) * | 2000-06-27 | 2005-05-11 | 皇家菲利浦电子有限公司 | Method of determining a schedule, scheduler and system |
CN1710585A (en) * | 2004-06-18 | 2005-12-21 | 华为技术有限公司 | Game virtual-article data processing method, game platform system and game system |
JP2007048054A (en) * | 2005-08-10 | 2007-02-22 | Canon Inc | Information processing apparatus and method, and storage medium with the information processing method recorded thereon |
CN101068194A (en) * | 2007-06-15 | 2007-11-07 | 腾讯科技(深圳)有限公司 | Method and system for realizing on-line game invitation |
CN103593419A (en) * | 2013-10-30 | 2014-02-19 | 华为技术有限公司 | Method, device, server and system for inquiring data |
CN106485458A (en) * | 2015-08-28 | 2017-03-08 | 阿里巴巴集团控股有限公司 | Gunter drawing generating method and device, webpage generating method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110400105A (en) * | 2019-06-13 | 2019-11-01 | 天津五八到家科技有限公司 | Order allocation method, equipment, system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109785178B (en) | 2021-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110096344A (en) | Task management method, system, server cluster and computer-readable medium | |
CN109669924A (en) | Sharing method, device, electronic equipment and the storage medium of online document | |
CN106911697B (en) | Access rights setting method, device, server and storage medium | |
CN109872242A (en) | Information-pushing method and device | |
CN109976997A (en) | Test method and device | |
CN107426328A (en) | Information-pushing method and device | |
CN109862100A (en) | Method and apparatus for pushed information | |
CN109598571A (en) | Spell folk prescription method and relevant apparatus | |
CN109803008A (en) | Method and apparatus for showing information | |
CN109582873A (en) | Method and apparatus for pushed information | |
CN108776692A (en) | Method and apparatus for handling information | |
CN109727047A (en) | A kind of method and apparatus, data recommendation method and the device of determining data correlation degree | |
CN110286928A (en) | Interface element update method, device, electronic equipment and the storage medium of application program | |
CN110070394A (en) | Data processing method, system, medium and calculating equipment | |
CN110007936A (en) | Data processing method and device | |
CN110046571A (en) | The method and apparatus at age for identification | |
CN108549586A (en) | Information processing method and device | |
CN110347926A (en) | Method and apparatus for pushed information | |
CN110223694A (en) | Method of speech processing, system and device | |
CN109598344A (en) | Model generating method and device | |
CN110134480A (en) | Processing method, device, electronic equipment and the storage medium of user's trigger action | |
CN109785178A (en) | Method and apparatus for generating information | |
CN109597912A (en) | Method for handling picture | |
WO2019033676A1 (en) | Order processing method and device | |
CN110473108A (en) | Contract generation method and device based on block chain |
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 |