CN106161490A - A kind of user's online behavior state update method, Apparatus and system - Google Patents

A kind of user's online behavior state update method, Apparatus and system Download PDF

Info

Publication number
CN106161490A
CN106161490A CN201510130195.6A CN201510130195A CN106161490A CN 106161490 A CN106161490 A CN 106161490A CN 201510130195 A CN201510130195 A CN 201510130195A CN 106161490 A CN106161490 A CN 106161490A
Authority
CN
China
Prior art keywords
user
target account
online behavior
state
behavior state
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
CN201510130195.6A
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.)
Chengdu Kingsoft Digital Entertainment Co Ltd
Zhuhai Kingsoft Online Game Technology Co Ltd
Original Assignee
Chengdu Kingsoft Digital Entertainment Co Ltd
Zhuhai Kingsoft Online Game 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 Chengdu Kingsoft Digital Entertainment Co Ltd, Zhuhai Kingsoft Online Game Technology Co Ltd filed Critical Chengdu Kingsoft Digital Entertainment Co Ltd
Priority to CN201510130195.6A priority Critical patent/CN106161490A/en
Publication of CN106161490A publication Critical patent/CN106161490A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Abstract

The embodiment of the invention discloses a kind of user's online behavior state update method, Apparatus and system, relate to Internet technical field, wherein, above-mentioned method is applied to during user terminal include: at described user terminal after target account Successful login server, it is thus achieved that the user operation records that described server feeds back according to described target account;Judge whether described user operation records meets the user's online behavior state more new regulation preset in described user terminal;If meeting, update the online behavior state of user of described target account.The scheme that the application embodiment of the present invention provides updates the online behavior state of user, it is possible to makes user can know current user online behavior state update status in the case of unstable networks in time, improves Consumer's Experience.

Description

A kind of user's online behavior state update method, Apparatus and system
Technical field
The present invention relates to Internet technical field, particularly to a kind of user's online behavior state update method, Apparatus and system.
Background technology
Along with popularizing of computer technology, increasing user passes through computer, panel computer, mobile phone etc. Network communication apparatus accesses various application softwaries, such as, game class, video class, communication class application software etc.. But, user for a long time may by the user terminal access application software being arranged in network communication apparatus Affect work, the learning efficiency and vision etc., accordingly it is desirable to access the situation of application according to user, Take the different online behavior states of Policy Updates user, so that user combines currently employed user's shape State updates rule adjustment factum.Such as, network game server passes through online game account user After login, the playtime of this online game account of user is started timing from 0, and according to timing time This online game account is carried out playtime monitoring, then within the different time periods, whole online game System sends effective information to this online game account user, and reduces game profit, promotees Make user stop game in time to roll off the production line rest.It is assumed that a certain game class application X that account A is user to be registered Account, below in case of user accesses X after A logging in online game server, illustrate existing Technology is how to update user online status information, user online status information here it is to be understood that Game income.
After network game server determines that user terminal is with A Successful login, when starting to monitor A accumulative online Between;Judge 3 hours < A accumulative line duration < 5 hours in the case of, determine that more new regulation is: Game income with 50% record user of normal game income;Judging to obtain the accumulative line duration > 5 of A In the case of hour, determine that more new regulation is: with the game income of 0% record user of normal game income; After network game server determines above-mentioned more new regulation, more new regulation determined by general is sent to user terminal, So that user gets information about current more new regulation, and network game server and user terminal according to Game income is done corresponding process by more new regulation determined by above-mentioned.
When applying above-mentioned game income update method more new game income, the user discover that the time accessing game After reaching certain numerical value, game income can not normally increase, so the interest continuing to access game can be reduced, And then stop game etc..Owing to above-mentioned game is online game, some data of game are positioned at network trip Play server side, rather than it is entirely located in subscriber terminal side, so, can be convenient in network game server side Record and update the game income of its each account serviced.But, in actual application, it is contemplated that net , may there is the situation of unstable networks in the factors such as network bandwidth, online user's quantity, again owing to being by net The game income to be used that network game server determines according to the accumulative line duration that user is current updates Rule, so, when current network plays pendulum, user terminal cannot know online game in time The content of income more new regulation of playing determined by server side, and then user the most just cannot adjust oneself in time Behavior, the problem of delay can be brought bad experience to user, in turn result in customer loss, therefore run Business wishes that the scheme using more high-quality, to reach more preferably effect, promotes the experience of user.
Summary of the invention
The embodiment of the invention discloses a kind of user's online behavior state update method, Apparatus and system, so that Obtain user and can know that in the case of unstable networks the online behavior state of current user updates feelings in time Condition, improves Consumer's Experience.
For reaching above-mentioned purpose, the embodiment of the invention discloses a kind of user's online behavior state update method, Being applied to user terminal, described method includes:
At described user terminal after target account Successful login server, it is thus achieved that described server is according to institute State the user operation records of target account feedback;Judge whether described user operation records meets described user eventually The user's online behavior state more new regulation preset in end;If meeting, the user updating described target account exists Line behavior state.
In a kind of specific implementation of the present invention, meet described user terminal at described user operation records In preset user's online behavior state more new regulation in the case of, also include:
Generate the online behavior state of user for described target account and update prompting message, wherein, described use The online behavior state in family updates prompting message and includes: with the user's online behavior shape updating described target account The information that the rule that state is used is relevant.
In a kind of specific implementation of the present invention, at the described server of described acquisition according to described target account Number feedback user operation records after, also include:
According to described user operation records, it is thus achieved that the accumulative Offtime of described target account;Described accumulative Offtime is more than or equal to the off-line state time threshold Th presetoIn the case of, do not generate for described mesh The online behavior state of user of mark account updates prompting message;At described accumulation Offtime less than ThoSituation Under, generate the online behavior state of user for described target account and update prompting message.
In a kind of specific implementation of the present invention, described user operation records at least includes: target account Number accumulative line duration, wherein, the accumulative line duration of described target account is: institute from predetermined time State target account and be in the time cumulation sum of line states.
In a kind of specific implementation of the present invention, described user online behavior state update method also includes:
According to the system clock of described user terminal, update the described target account of record in described user terminal Accumulative line duration.
In a kind of specific implementation of the present invention, described server according to the system clock of described server, Update in described server record in the accumulative line duration of the described target account of record and described server The online behavior state of described target account.
In a kind of specific implementation of the present invention, described generation is online for the user of described target account Behavior state updates prompting message, including:
Judge that whether the accumulative line duration of described target account is more than or equal to the resting state time threshold preset Thr;If more than or equal to Thr, it is determined that described target account is in resting state, and generates pin under current state The online behavior state of user of described target account is updated prompting message;If less than Thr, then described mesh is judged Whether the accumulative line duration of mark account is more than or equal to the fatigue state time threshold Th presetf, wherein, Thf < Thr;If more than or equal to Thf, it is determined that described target account is in fatigue state, and generates under current state The online behavior state of user for described target account updates prompting message;If less than Thf, then according to described The system clock of user terminal updates the accumulative line duration of described target account, and described mesh in the updated In the case of the accumulative line duration of mark account meets default user online behavior state more new regulation, generate The online behavior state of user for described target account updates prompting message.
In a kind of specific implementation of the present invention, described user online behavior state update method also includes:
Accumulative line duration >=Th in described target accountrIn the case of, send for stopping to described server The online behavior state of first user of breath state updates instruction, so that described server is used according to described first The online behavior state in family updates instruction and updates user's online behavior state information of described target account;At Thf≤ The accumulative line duration < Th of described target accountrIn the case of, send for fatigue state to described server Second the online behavior state of user update instruction so that described server is online according to described second user Behavior state updates instruction and updates user's online behavior state information of described target account;Wherein, described One user online status renewal instruction and described second user online status update instruction and include: with renewal institute State the information that rule that the online behavior state of user of target account used is relevant.
In a kind of specific implementation of the present invention, described user online behavior state update method also includes:
Send the account for described target account to described server and publish request, so that described server The user operation records of described target account is updated according to the request of publishing of described account.
In a kind of specific implementation of the present invention, described default user online behavior state more new regulation Relevant at least one in following information:
The age of user that current account is corresponding;The application type of current application;During current account accumulative online Between;The accumulative Offtime of current account.
For reaching above-mentioned purpose, the embodiment of the invention discloses a kind of user's online behavior state update method, Being applied to server, described method includes:
Determine user terminal after server described in target account Successful login, according to described target account Obtain user operation records;Described user operation records is sent to described user terminal, so that described user Terminal obtains after described user operation records, judge described user operation records meets described user terminal In preset user's online behavior state more new regulation in the case of, the user updating described target account is online Behavior state.
In a kind of specific implementation of the present invention, described according to described target account acquisition user operation note Record, including:
According to described target account, it is thus achieved that in described server, the last time of the described target account of record steps on Go out the moment;The moment is published, tiring out in conjunction with described target account according to current time and the last time obtained Meter Offtime, updates the accumulative Offtime of described target account;Whether judge described accumulative Offtime More than or equal to the off-line state time threshold Th preseto;If more than or equal to Tho, then described target account is set Accumulative line duration is zero, and to arrange described accumulative Offtime be zero, wherein, and described target account tired Meter line duration is: from predetermined time, described target account is in the time cumulation sum of line states;Obtain Obtaining the user operation records of described target account, wherein, the user operation records of described target account includes institute State the accumulative line duration of target account.
In a kind of specific implementation of the present invention, described user online behavior state update method also includes:
The account for described target account receiving the transmission of described user terminal publishes request;According to described account The request of number publishing updates the user operation records of the described target account of record in described server.
In a kind of specific implementation of the present invention, described user online behavior state update method also includes:
Receive the online behavior state of the user for the current state renewal instruction that described user terminal sends, and Update instruction according to the online behavior state of described user and update user's online behavior state letter of described target account Breath.
In a kind of specific implementation of the present invention, described user online behavior state update method also includes:
According to the system clock of described server, update the tired of the described target account of record in described server The online behavior state of user of the described target account of record in meter line duration and described server;Described use Family terminal, according to the system clock of described user terminal, updates the described target account of record in described user terminal Number accumulative line duration and described user terminal in user's online behavior shape of described target account of record State.
In a kind of specific implementation of the present invention, described user online behavior state update method also includes:
Judge that whether the accumulative line duration of described target account is more than or equal to the resting state time threshold preset Thr;If more than or equal to Thr, it is determined that described target account is in resting state, generates for resting state The 3rd online behavior state of user updates instruction, and updates instruction according to the described 3rd online behavior state of user Update user's online behavior state information of described target account;If less than Thr, then described target account is judged Accumulative line duration whether more than or equal to the fatigue state time threshold Th presetf, wherein, Thf< Thr; If more than or equal to Thf, it is determined that described target account is in fatigue state, generates for the under fatigue state The four online behavior states of user update instruction, and update instruction more according to the online behavior state of described fourth user User's online behavior state information of new described target account;If less than Thf, then perform described according to described clothes The system clock of business device, updates the step of the accumulative line duration of the described target account of record in described server Suddenly.
For reaching above-mentioned purpose, the embodiment of the invention discloses a kind of user's online behavior state updating device, Being applied to user terminal, described device includes:
Operation note receiver module, is used at described user terminal after target account Successful login server, Obtain the user operation records that described server feeds back according to described target account;
Operation note judge module, is used for judging whether described user operation records meets in described user terminal The user's online behavior state more new regulation preset;
Behavior state more new module, is yes for the judged result at described user operation records judge module In the case of, update the online behavior state of user of described target account.
In a kind of specific implementation of the present invention, described user online behavior state updating device also includes:
Prompting message generation module, for preset in described user operation records meets described user terminal In the case of user's online behavior state more new regulation, generate the online behavior of user for described target account State update prompting message, wherein, the online behavior state of described user update prompting message include: with more The information that the rule that the online behavior state of user of new described target account is used is relevant.
In a kind of specific implementation of the present invention, described user online behavior state updating device also includes:
Offtime obtains module, after receiving user operation records at described operation note receiver module, According to described user operation records, it is thus achieved that the accumulative Offtime of described target account;
Offtime judge module, for the off-line state being more than or equal to preset at described accumulative Offtime Time threshold ThoIn the case of, do not generate the online behavior state of user for described target account and update prompting Message;At described accumulation Offtime less than ThoIn the case of, generate the user for described target account and exist Line behavior state updates prompting message.
In a kind of specific implementation of the present invention, described user operation records at least includes: target account Number accumulative line duration, wherein, the accumulative line duration of described target account is: institute from predetermined time State target account and be in the time cumulation sum of line states.
In a kind of specific implementation of the present invention, described user online behavior state updating device includes:
First line duration more new module, for the system clock according to described user terminal, updates described use The accumulative line duration of the described target account of record in the terminal of family.
In a kind of specific implementation of the present invention, described prompting message generation module, including: first The line time judge submodule, the first prompting message generate submodule, the second line duration judge submodule, the Two prompting messages generate submodule and the 3rd prompting message generates submodule;
Wherein, described first line duration judges submodule, for judging the accumulative online of described target account Whether the time is more than or equal to the resting state time threshold Th presetrIf, more than or equal to Thr, trigger described first Prompting message generates submodule and generates prompting message, if less than Thr, trigger described second line duration and judge son Accumulative line duration is judged by module;
Described first prompting message generates submodule, is used for determining that described target account is in resting state, and Generate the user's online behavior state renewal prompting message for described target account under current state;
Described second line duration judges submodule, for judging that the accumulative line duration of described target account is No more than or equal to the fatigue state time threshold Th presetf, wherein, Thf< ThrIf, more than or equal to Thf, touch Send out the second prompting message described and generate submodule and generate prompting message, if less than Thf, trigger described 3rd prompting Message generates submodule and generates prompting message;
Described second prompting message generates submodule, is used for determining that described target account is in fatigue state, and Generate the user's online behavior state renewal prompting message for described target account under current state;
Described 3rd prompting message generates submodule, updates institute for the system clock according to described user terminal State the accumulative line duration of target account, and the accumulative line duration of described target account in the updated meets In the case of the user's online behavior state more new regulation preset, generate the user for described target account and exist Line behavior state updates prompting message.
In a kind of specific implementation of the present invention, described user online behavior state updating device also includes:
First updates instruction sending module, for the accumulative line duration >=Th in described target accountrSituation Under, send the online behavior state of first user for resting state to described server and update instruction, so that Obtain described server and update the use of the instruction described target account of renewal according to the online behavior state of described first user Family online behavior state information;
Second updates instruction sending module, at ThfThe accumulative line duration < Th of≤described target accountr In the case of, send the second online behavior state of user for fatigue state to described server and update instruction, So that described server updates instruction according to the described second online behavior state of user updates described target account User's online behavior state information;
Wherein, described first user presence updates instruction and described second user online status updates instruction Include: the information relevant to the rule that the online behavior state of user updating described target account is used.
In a kind of specific implementation of the present invention, described user online behavior state updating device also includes:
Publish request sending module, publish for sending the account for described target account to described server Request, so that described server updates the user operation of described target account according to the request of publishing of described account Record.
In a kind of specific implementation of the present invention, described default user online behavior state more new regulation Relevant at least one in following information:
The age of user that current account is corresponding;The application type of current application;During current account accumulative online Between;The accumulative Offtime of current account.
For reaching above-mentioned purpose, the embodiment of the invention discloses a kind of user's online behavior state updating device, Being applied to server, described device includes:
Operation note obtains module, for determining that user terminal is with server described in target account Successful login Afterwards, user operation records is obtained according to described target account;
Operation note sending module, for sending described user operation records to described user terminal, so that Described user terminal judge described user operation records meet in described user terminal preset user online In the case of behavior state more new regulation, update the online behavior state of user of described target account.
In a kind of specific implementation of the present invention, described operation note obtains module, including:
Publish moment acquisition submodule, for according to described target account, it is thus achieved that record in described server The last time of described target account publishes the moment;
Offtime calculating sub module, for publishing the moment according to current time and the last time obtained, In conjunction with the accumulative Offtime of described target account, update the accumulative Offtime of described target account;
Offtime judges submodule, for judge described accumulative Offtime whether more than or equal to preset from Line states time threshold Tho
Offtime arranges submodule, for judging that the judged result of submodule is as yes at described Offtime In the case of, the accumulative line duration arranging described target account is zero, and arranges described accumulative Offtime and be Zero, wherein, the accumulative line duration of described target account is: from predetermined time, described target account is in The time cumulation sum of presence;
Operation note obtains submodule, for obtaining the user operation records of described target account, wherein, institute The user operation records stating target account includes the accumulative line duration of described target account.
In a kind of specific implementation of the present invention, described user online behavior state updating device also includes:
Publish request receiver module, for receiving the account for described target account that described user terminal sends Number publish request;
Publish moment more new module, record in the request of publishing updates described server according to described account The user operation records of described target account.
In a kind of specific implementation of the present invention, described user online behavior state updating device also includes:
First state information updating module, for receiving the use for current state that described user terminal sends The online behavior state in family updates instruction, and updates the instruction described mesh of renewal according to the online behavior state of described user User's online behavior state information of mark account.
In a kind of specific implementation of the present invention, described user online behavior state updating device also includes:
Second line duration more new module, for the system clock according to described server, updates described service The described target account of record in the accumulative line duration of the described target account recorded in device and described server The online behavior state of user, wherein, described user terminal is according to the system clock of described user terminal, more Record in the accumulative line duration of the described target account recorded in new described user terminal and described user terminal The online behavior state of user of described target account.
In a kind of specific implementation of the present invention, described user online behavior state updating device also includes: First line duration judge module, the second state information updating module, the second line duration judge module and Three condition information updating module;
Wherein, described first line duration judge module, during for judging described target account accumulative online Between whether more than or equal to the resting state time threshold Th presetrIf, more than or equal to Thr, trigger described second shape State information updating module updates the online behavior state information of user, if less than Thr, trigger described second online Time judgment module carries out accumulative line duration and judges;
Described second state information updating module, is used for determining that described target account is in resting state, generates The 3rd online behavior state of user for resting state updates instruction, and according to the described 3rd online row of user Update instruction for state and update user's online behavior state information of described target account;
Whether described second line duration judge module, for judging the accumulative line duration of described target account More than or equal to the fatigue state time threshold Th presetf, wherein, Thf< ThrIf, more than or equal to Thf, trigger Described third state information updating module updates the online behavior state information of user, if less than Thf, trigger institute State line duration more new module and update accumulative line duration;
Described third state information updating module, is used for determining that described target account is in fatigue state, generates Instruction is updated for the online behavior state of the fourth user under fatigue state, and online according to described fourth user Behavior state updates instruction and updates user's online behavior state information of described target account.
For reaching above-mentioned purpose, the embodiment of the invention discloses a kind of online behavior state of user and update system, Described system includes:
Apply the user terminal of above-mentioned user behavior state updating device and apply above-mentioned user behavior state to update The server of device.
As seen from the above, in the scheme that the present embodiment provides, take with target account Successful login at user terminal After business device, user terminal obtains user operation records from server, and judge user operation records is full In the case of the user's online behavior state more new regulation preset in foot user terminal, user terminal more fresh target The online behavior state of user of account.Compared with prior art, in the scheme that the present embodiment provides, by user Terminal is according to user operation records and wherein default user's online behavior state more new regulation, it is determined whether more The online behavior state of user of fresh target account, and the online behavior state of user of the most more fresh target account, Rather than it is sent to user terminal by information determined by network general again after being determined above-mentioned information by server, institute With, even if current network plays pendulum, user also is able to know active user from user terminal in time Terminal and server are how to update the online behavior state of user, and then can adjust factum in time, Improve Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to enforcement In example or description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that, describe below In accompanying drawing be only some embodiments of the present invention, for those of ordinary skill in the art, do not paying On the premise of going out creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 updates the structural representation of system for the online behavior state of a kind of user that the embodiment of the present invention provides;
Fig. 2 updates the first signaling process of system for the online behavior state of user that the embodiment of the present invention provides Schematic diagram;
Fig. 3 updates the second signaling process of system for the online behavior state of user that the embodiment of the present invention provides Schematic diagram;
The first flow process signal of user's online behavior state update method that Fig. 4 provides for the embodiment of the present invention Figure;
The second flow process signal of user's online behavior state update method that Fig. 5 provides for the embodiment of the present invention Figure;
The third flow process signal of user's online behavior state update method that Fig. 6 provides for the embodiment of the present invention Figure;
4th kind of flow process signal of user's online behavior state update method that Fig. 7 provides for the embodiment of the present invention Figure;
5th kind of flow process signal of user's online behavior state update method that Fig. 8 provides for the embodiment of the present invention Figure;
The first structural representation of user's online behavior state updating device that Fig. 9 provides for the embodiment of the present invention Figure;
The second structural representation of user's online behavior state updating device that Figure 10 provides for the embodiment of the present invention Figure.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly Chu, be fully described by, it is clear that described embodiment be only a part of embodiment of the present invention rather than Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation The every other embodiment obtained under property work premise, broadly falls into the scope of protection of the invention.
User's online behavior state update method, Apparatus and system that the embodiment of the present invention provides are generally used for In network application software, i.e. some data of application software are positioned at server-side, rather than are entirely located in user In terminal, these application softwaries can be game class application software, video class application software, communication class application Software etc..The most first the several nouns related in the embodiment of the present invention are introduced.
Network communication apparatus can be computer, panel computer, mobile phone, bracelet, game paddle, Brilliant Eyes Mirror, smart mobile phone, mobile device etc..
Network system includes user terminal and server.User terminal can be mounted in each network communication and set Application software client in Bei.Server can be distributed across the server of high in the clouds or LAN, is responsible for Work have: the management of all user accounts, record whole system desired data, especially record user behaviour Note down and user's online behavior state data etc..
Target account can include the username and password corresponding with user.
User operation records can include the login moment of target account, the moment of publishing, accumulative line duration or Person adds up the records relevant to user operation such as Offtime.
The online behavior state of user can include residing for target account by use state (such as, busy, from Open, stealthy etc.), the grade point of target account, empirical value, game income current state, or this target The grade point of each role, empirical value and game income state on the same day etc. under account.
Fig. 1 updates the structural representation of system for the online behavior state of user that the embodiment of the present invention provides, should System includes: user terminal 101 and server 102.
At user terminal 101 after target account Successful login server 102, user terminal 101 is from server After 102 obtain user operation records, it is judged that it is pre-whether above-mentioned user operation records meets in user terminal 101 If user's online behavior state more new regulation, if meet, the user of user terminal 101 more fresh target account exists Line behavior state.
Wherein, user terminal 101 can by the following method in one obtain user operation from server 102 Record.Method one: after server 102 determines that user terminal 101 is with target account Successful login, according to target Account obtains user operation records, and sends above-mentioned user operation records, user terminal to user terminal 101 101 receive the user operation records sent by server 102.Method two: user terminal 101 becomes with target account After merit login service device 102, user terminal 101 sends user operation records to server 102 and obtains request, clothes Business device 102 obtains the user operation note of the information acquisition target account carried in request according to user operation records Record, and the user operation records obtained is fed back to user terminal 101 as result.Method three: user is eventually End 101 with target account Successful login server 102 after, user terminal 101 to server 102 send user behaviour Acquisition of noting down is asked, and server 102 obtains the user operation records that target account is corresponding, then user terminal 101 obtain user operation records from server 102.
Preset it addition, the user operation records judging above-mentioned at user terminal 101 meets in user terminal 101 User's online behavior state more new regulation in the case of, it is also possible to generate online for the user of target account Behavior state update prompting message so that user browse to the online behavior state of above-mentioned user update carry After showing message, the content in conjunction with message adjusts user's factum.
Wherein, the online behavior state of above-mentioned user updates in prompting message and at least includes: with more fresh target account Number the relevant information of the rule that used of the online behavior state of user.
The user's online behavior state more new regulation preset can be relevant at least one in following information: when Age of user corresponding to front account, the application type of current application software, the accumulative line duration of current account, The accumulative Offtime of current account.Age of user can be the date of birth of date, it is also possible to be the age. The application type of current application software, can be that the title of this application software, path etc. can indicate that this application The information of software features.Certainly, the application simply illustrates as a example by above-mentioned, presets in actual application The relevant information of user's online behavior state more new regulation is not limited only to above-mentioned several.
In one particular embodiment of the present invention, above-mentioned user operation records can at least include: mesh The accumulative line duration of mark account, wherein, the accumulative line duration of target account is: mesh from predetermined time Mark account is in the time cumulation sum of line states.User uses same mesh in different application softwaries The phenomenon of mark account login service device is the most universal, and therefore server can record target account Number in login moment of multiple application softwaries with publish the moment, calculate according to these information of server record The accumulative line duration of this target account, i.e. can obtain the online of all application softwaries under accumulative this target account Time sum, accumulative line duration is calculated by server and record, or is calculated acquisition by user terminal. In one particular embodiment of the present invention, above-mentioned user operation records can at least include: target account Number accumulative Offtime, wherein, the accumulative Offtime of target account is: this target account is in off-line The time cumulation sum of state.Certainly, in actual application, above-mentioned user operation records can also include Other information, such as: when the last login moment of target account, the last time of target account publish Carving and the whole of target account log in and publish moment etc., this is not defined by the application.Its In, predetermined time is timing initial time set in advance, when can be to publish the last time of target account Carve, the accumulative Offtime of target account is more than or equal to moment being set to 0 etc. after the threshold value preset.
Whether user terminal 101, after server 102 obtains user's operation information, is judging user operation records Before meeting the user's online behavior state more new regulation preset in user terminal 101, or judge user every time Whether operation note meets between the user's online behavior state more new regulation preset in user terminal 101, target The user operation of account there occurs change, and based on this, it is all right that above-mentioned user online status updates system Including: user terminal 101, according to the system clock of user terminal, updates the target of record in user terminal 101 The accumulative line duration of account.
In one particular embodiment of the present invention, user terminal 101 obtains user operation letter from server 102 After breath, it is thus achieved that the accumulative Offtime of target account, if when accumulative Offtime and the off-line state preset Between threshold value ThoCompare, when accumulative Offtime is more than or equal to ThoIn the case of, user terminal 101 does not regenerates The online behavior state of user for target account is become to update prompting message;When accumulative Offtime is less than Tho's In the case of, user terminal 101 generates the online behavior state of the user for target account and updates prompting message.Example As, when the accumulative Offtime of user be 3 little time, default off-line state time threshold ThoIt it is 5 hours, then User terminal 101 generates information: " your Offtime is not up to 5 hours, it is proposed that you continue off-line and stop Breath ", if now user is continuing with application software, then continue accumulative line duration, and income of playing is 0.If the accumulative Offtime of user is 5 hours or 6 hours, then user terminal 101 not regeneration prompting letter Breath, it is allowed to user uses application software normally, and is reset by accumulative line duration, cumulative calculation again Accumulative line duration.
In another specific embodiment of invention, user terminal 101 obtains user operation letter from server 102 Breath copy, this user's operation information copy includes accumulative line duration, and does not include accumulative Offtime.Tired Meter Offtime is only located at server 102, after server 102 obtains user's operation information, and server 102 basis In user's operation information, the last time of the target account of record publishes the moment and this logs in the moment, will publish last time Moment and this difference logging in the moment are accumulated in accumulative Offtime, it is thus achieved that during the accumulative off-line of target account Between, if accumulative Offtime and the off-line state time threshold Th presetoCompare, when accumulative Offtime is big In or equal to ThoIn the case of, the accumulative line duration in user's operation information is reset by server 102, and And accumulative Offtime is reset.Such as, accumulative Offtime is currently 4 hours, then publishes the moment last time Logging in moment with this and subtract each other equal to 2, then server 102 obtains the accumulative Offtime of target account is 6 little Time, it is more than default off-line state time threshold 5 hours, then server is by clear for local accumulative line duration Zero, local accumulative Offtime also resets simultaneously, and accumulative Offtime will recalculate.
It addition, the accumulative line duration of target account and accumulative Offtime are carried out above-mentioned clear by server 102 After zero processes, it is also possible to obtain the user operation records of target account, wherein, the user operation of target account Record can include the accumulative line duration of target account.
In the optional embodiment of one of the present invention, we arrange some time thresholds, such as fatigue state Time threshold Thf, resting state time threshold Thr, wherein, Thf< Thr.User terminal 101 generates for mesh When the online behavior state of user of mark account updates prompting message, can first judge the accumulative online of target account Whether the time is more than or equal to the resting state time threshold Th presetr, it is more than at above-mentioned accumulative line duration In ThrIn the case of, determine that target account is in resting state, and generate under current state for target account The online behavior state of user update prompting message.And at above-mentioned accumulative line duration less than ThrIn the case of, Determine whether that whether above-mentioned accumulative line duration is more than or equal to the fatigue state time threshold Th presetf, this Time, if the accumulative line duration judging above-mentioned is more than or equal to Thf, it is determined that target account is in fatigue state, And generate under current state for target account the online behavior state of user update prompting message, and if judge Obtain above-mentioned accumulative line duration less than Thf, the most current accumulative line duration had both been unsatisfactory for fatigue State is also unsatisfactory for resting state, when being in the healthy time period, at this time has only to update accumulative line duration, But being as being accumulated at the renewal of line time, the time after renewal may need raw because meeting more new regulation Become prompting message.Therefore time according to system clock more fresh target account accumulative online of user terminal 101 self Between, and the accumulative line duration of target account in the updated meet the online behavior state of default user update In the case of rule, generate the online behavior state of user for target account and update prompting message.Need Bright, the accumulative line duration of target account in the updated meets the online behavior state of default user more In the case of new regulation, when generating the user's online behavior state renewal prompting message for target account, can To generate the online behavior state of the user for target account with reference to the user terminal 101 provided in the present embodiment Update the scheme of prompting message.
Wherein, the online behavior state of user updating described target account can be that user terminal 101 updates user The online behavior state of user of the local described target account of terminal 101, can also include user terminal 101 certainly Notice server 102 updates the online behavior state of user of the local described target account of server 102.
Those skilled in the art are it is understood that during user offline, user terminal 101 is to server 102 Sending the account for target account and publish request, server 102 receives the above-mentioned account that user terminal 101 sends After number publishing request, the user operation records asking more fresh target account can be published according to this account, such as, Server 102 receives after the account that user terminal 101 sends publishes request, by publishing of currently publishing specifically Moment records in user operation records, and server 102 or user terminal 101 can be according to stepping on for the last time Go out publishes the moment and the last accordingly log in the moment and calculate when obtaining target account accumulative online Between, it is also possible to calculate acquisition target account according to the login moment publishing moment and login next time that this is published Number accumulative Offtime.By described above it is known that server 102 can record target account The last time publishes the information such as moment, in consideration of it, in the optional embodiment of another kind of the present invention, service When device 102 obtains user operation records according to target account, can be first according to target account, it is thus achieved that server 102 The last time of the target account of middle record publishes the moment, further according to current time and the last time obtained Publish the moment, calculate the accumulative Offtime of target account, be more than at the accumulative Offtime judging above-mentioned Equal to ThoIn the case of to arrange the accumulative line duration of target account be zero, the most again start from scratch accumulative The accumulative line duration of target account, then, when server is according to target account accumulative online after updating Between etc. information, it is thus achieved that the user operation records of target account, it should be noted that the obtained user of server Can include the accumulative line duration after updating in operation note, such client is obtaining server feedback After user operation records, it is not necessary to calculate, current accumulative line duration can be obtained.
Further it will be understood that for ensureing the user of target account in user terminal 101 and server 102 The concordance of online behavior state, updates the online behavior state of user of local target account at user terminal 101 While, also should update user's online behavior shape of the local target account of server 102 in server 102 Below by two specific embodiments, state, illustrates that server 102 is the online row of user of the most more fresh target account For state.
In one particular embodiment of the present invention, Fig. 2 is seen, it is provided that the online behavior state of user updates system The first signaling process schematic diagram of system, in the present embodiment, on the basis of embodiment described in Fig. 1, also includes:
At ThfThe accumulative line duration < Th of≤target accountrIn the case of, user terminal 101 is to server 102 Sending the second online behavior state of user for fatigue state and update instruction (S201), server 102 receives After updating instruction to the second online behavior state of user, according to the online row of user of this instruction more fresh target account For status information (S202);
Accumulative line duration >=Th in target accountrIn the case of, user terminal 101 sends to server 102 The online behavior state of first user for resting state updates instruction (S203), and server 102 receives the After the one online behavior state of user updates instruction, according to user's online behavior shape of this instruction more fresh target account State information (S204).
Wherein, first user presence updates instruction and the second user online status updates in instruction and can wrap Include: information relevant to the rule that the online behavior state of user of more fresh target account is used etc..Such as: According to user's game income in gaming, record new game income numerical value.
So when user terminal 101 determines the online behavior state of user updating local target account, also lead to The online behavior state of user of the local target account of cicada server 102 synchronized update server 102, so, Ensure that user terminal 101 is consistent with the online behavior state of user of target account in server 102.Such as, User's game income in gaming, needs record in server 102, and the technical program can keep user Terminal 101 is consistent with the income numerical value of record in server 102.
In another specific embodiment of the present invention, see Fig. 3, it is provided that the online behavior state of user updates The second signaling process schematic diagram of system, in the present embodiment, on the basis of embodiment described in Fig. 1, with Family terminal 101, according to the system clock of user terminal 101, updates the target account of record in user terminal 101 In accumulative line duration and user terminal 101 in the case of the online behavior of user of the target account of record, also wrap Include: server 102, according to the system clock of server 102 self, updates the target account of record in server 102 Number accumulative line duration (S301) and server 102 in the online behavior state of user of target account of record, Concrete, server 102 is according to the user of the accumulative line duration more fresh target account of the target account after updating Online behavior state (S302).
Concrete, server 102 is according to the accumulative line duration more fresh target account of the target account after updating During the online behavior state of user, can first judge that whether the accumulative line duration of target account is more than or equal to Thr, At above-mentioned accumulative line duration more than or equal to ThrIn the case of, determine that target account is in resting state, raw The 3rd online behavior state of user for resting state is become to update instruction, and according to the 3rd online behavior of user State updates the user's online behavior state information instructing more fresh target account, at above-mentioned accumulative line duration Less than ThrIn the case of, determine whether that whether above-mentioned accumulative line duration is more than or equal to ThfIf judging Above-mentioned accumulative line duration is more than or equal to Thf, determine that target account is in fatigue state, generate for fatigue The online behavior state of fourth user under state updates instruction, and updates according to the online behavior state of fourth user Instruct user's online behavior state information of more fresh target account, if the above-mentioned accumulative line duration judged is little In Thf, according to the system clock of server 102 self, in renewal server 102, the target account of record is tired Meter line duration.
So user terminal 101 and server 102 updates each self-corresponding mesh according to the system clock of self respectively The accumulative line duration of mark account, the most respectively in user terminal 101 and server 102 more fresh target account The online behavior state of user, eliminates communication between the two, although the system clock of user terminal 101 and clothes The system clock of business device 102 there may be certain error, but this error is the least, does not affect user and makes With application software, thereby it is ensured that the user of target account is online in user terminal 101 and server 102 Behavior state is consistent.
As a specific embodiment of the present invention, user terminal 101 obtains user operation letter from server 102 Breath, this user's operation information copy includes accumulative line duration, and does not include accumulative Offtime.Add up from The line time is only located at server 102, and after server 102 obtains user's operation information, server 102 is according to target Published the moment last time of account and this logged in moment calculating and obtains the last Offtime, then with former Accumulative Offtime is added the accumulative Offtime obtaining target account, if accumulative Offtime with preset Off-line state time threshold ThoCompare, when accumulative Offtime is more than or equal to ThoIn the case of, server 102 Being reset by accumulative line duration, add up Offtime simultaneously and also to reset, then server 102 starts to continue from 0 Continue accumulative line duration, and user terminal 101 is 0 from the accumulative line duration that server 102 obtains, and uses Family terminal 101 starts to continue the accumulative line duration in accumulative this locality from 0;When accumulative Offtime is less than ThoSituation Under, server 102 continues accumulative line duration, and user terminal 101 obtains accumulative online from server 102 The accumulative line duration in accumulative this locality is continued after time.In this technical scheme, user terminal 101 need not be concerned about tired Meter Offtime.Such as, when the accumulative Offtime of user be 3 little time, default off-line state time threshold ThoIt is 5 hours, if now user is continuing with application software, then user terminal 101 and server 102 points Ji Xu not add up line duration, and game income now is 0.If the accumulative Offtime of user is 5 Hour or 6 hours, then accumulative line duration is reset by server 102, user terminal 101 and server 102 points Do not start cumulative calculation from 0 and add up line duration.
It addition, the accumulative line duration of target account and accumulative Offtime are carried out above-mentioned clear by server 102 After zero processes, it is also possible to obtain the user operation records of target account, wherein, the user operation of target account Record can include the accumulative line duration of target account.
As a specific embodiment of the present invention, for avoiding system clock and the server of user terminal 101 The error of the system clock of 102, we provide a kind of revision function, when user terminal 101 is published, will use The information of family terminal 101 record is sent to server 102, and server is according to the record of user terminal 101, revision The record of self, it is ensured that at final server 102, the user data of record is just.In fact user terminal and Communication error between server, it should be maintained at fairly small level, even if network has delayed data also will not Difference is too big, and when data are revised by server 102, server 102 compares user terminal 101 and service The data difference of device 102, if data difference in both sides is relatively big, when being more than conventional threshold value, it can be determined that go out use Family terminal 101 is maliciously kidnapped, and this is also the side that a kind of effective judgement communication network device employs externally hung software Method, can objectively judge account in violation of rules and regulations, and then this target account can be carried out at title by server 102 Reason.
As seen from the above, in the scheme that the various embodiments described above provide, successfully step on target account at user terminal After record server, user terminal obtains user operation records from server, and is judging to obtain user operation note In the case of record meets the user's online behavior state more new regulation preset in user terminal, user terminal updates The online behavior state of user of target account.Compared with prior art, in the scheme that the various embodiments described above provide, By user terminal according to user operation records and wherein default user's online behavior state more new regulation, determine The more online behavior state of the user of fresh target account, and the online row of user of the most more fresh target account For state, rather than after being determined above-mentioned information by server again will determined by information be sent to user terminal, institute With, even if current network plays pendulum, user also is able to know active user from user terminal in time Terminal and server are how to update the online behavior state of user, and then can adjust factum in time, Improve Consumer's Experience.
The application compared with prior art has the following advantages: (1) is suitable for multiple user terminal and uses multiple restriction The situation of rule, such as, the game of certain money uses the accumulative little limit of line duration 3, and certain money uses Being the accumulative little limit of line duration 4, certain money uses and only adds up Offtime restriction, and the game of each money is each When having difference, these several moneys game application software all can realize the control of Different Rule at user terminal.(2) Carry the function of the online behavior state of user of more fresh target account due to user terminal, repair in research and development department Change and upgrade user terminal time more convenient, amendment user's online behavior state more new regulation or update mesh During the solution of the online behavior state of user of mark account, once upgrading makes mistakes, and only influences whether this upgrading The user terminal of version, large area will not affect all users that server end covers.Owing to server is main Being engaged in the writing task of data, research and development department need not revise server too much.
The first flow process signal of user's online behavior state update method that Fig. 4 provides for the embodiment of the present invention Figure, the method is applied to user terminal, including:
S401: at user terminal after target account Successful login server, it is thus achieved that server is according to target The user operation records of account feedback.
It should be noted that the server in the present embodiment functionally needs have account management function, Can determine whether user terminal can normally be stepped on according to information such as the target account that user terminal sends, passwords Record, it addition, this server should also have data storage function, it is possible to stores the user operation note of each account The information such as record, server here can correspond to a hardware entities server, it is also possible to corresponding to multiple stage Hardware entities server, such as, for carrying out the hardware entities server of account management, for carrying out user The hardware entities server etc. of operation note storage.
Concrete, user operation records at least needs include: the accumulative line duration of target account, wherein, The accumulative line duration of target account is: from predetermined time, target account is in the time cumulation of line states Sum.It addition, user operation records can also include: the accumulative Offtime of target account, target account Number the last log in the moment, the last time of target account publishes moment etc., the application is not to this It is defined.
The user's online behavior state more new regulation preset can be relevant at least one in following information: when Age of user corresponding to front account, the application type of current application software, the accumulative line duration of current account, The accumulative Offtime of current account.
Wherein, age of user corresponding to current account can be obtained by account log-on message, such as, and account Identification card number in log-on message, the date of birth information filled in etc.;The application type of current application software, Such as, the title of game class application software, communication class application software, video class application software etc., code name, Routing information etc.;The accumulative line duration of current account, this time can be continuous print, it is also possible to is not connect Continuing, such as, the last online hours of target account are: 1 hour, it is little that these online hours have reached 1 Time, then the accumulative line duration of current goal account is: 2 hours, if target account is not logged off, then with The accumulative line duration of the passage target account the time gradually adds up.It addition, current account is accumulative online Time can also be when there being time cumulation demand, by the current time of client terminal system clock and target account Number the last difference logging in the moment, add up line duration addition calculation with the last time of current account and obtain 's.
The application simply illustrates as a example by above-mentioned, and the online behavior state of user preset in actual application is more The relevant information of new regulation is not limited only to above-mentioned several.
User terminal can obtain user operation records by the one in following several ways from server: side After method one, server determine that user terminal is with target account Successful login, obtain user behaviour according to target account Noting down, and send above-mentioned user operation records to user terminal, user terminal receives and is sent by server User operation records;After method two, user terminal are with target account Successful login server, user terminal Sending user operation records to server and obtain request, server obtains in request according to user operation records and takes The user operation records of information acquisition target account of band, and using the user operation records that obtained as result Feed back to user terminal;After method three, user terminal are with target account Successful login server, user terminal Sending user operation records to server and obtain request, server obtains the user operation note that target account is corresponding Record, then user terminal obtains user operation records from server.
S402: judge whether user operation records meets the online behavior state of user preset in user terminal more New regulation, if meeting, performing S403, otherwise, performing S404.
By above description it is recognised that default user online behavior state more new regulation can be with currently The rule of the accumulative online time correlation of account, so, can be by judging that user operation is remembered in actual application Whether the accumulative line duration of the target account comprised in record meets the online behavior state of user preset updates rule Then, it is determined whether the more online behavior state of the user of fresh target account, and the use of the most more fresh target account The online behavior state in family.
Concrete, it is judged that process may include that
Judge that whether the accumulative line duration of target account is more than or equal to the resting state time threshold Th presetr
If more than or equal to Thr, it is determined that user operation records meets the user's online behavior shape preset in user terminal State more new regulation, in this case, determines that target account is in resting state, generates for resting state The online behavior state of user updates instruction, and instructs the online behavior of user of more fresh target account according to this renewal Status information;If less than Thr, determine whether that whether the accumulative line duration of target account is more than or equal to presetting Fatigue state time threshold Thf
If more than or equal to Thf, it is determined that user operation records meets the user's online behavior shape preset in user terminal State more new regulation, in this case, determines that target account is in fatigue state, generates for fatigue state The online behavior state of user updates instruction, and instructs the online behavior of user of more fresh target account according to this renewal Status information;If less than Thf, it is determined that user operation records is unsatisfactory in user terminal the online row of user preset For state more new regulation, in this case, according to the system clock of user terminal, update user operation records The accumulative line duration of the target account included.
Wherein, Thf< Thr
Fatigue state is it is to be understood that to access time of application longer due to user, and brain, eyes etc. enter Enter fatigue state;Resting state is it is to be understood that owing to user accesses the overlong time of application, brain, eye Eyeballs etc. need to enter resting state.For judging that the time threshold of fatigue state and resting state can be by right Most users carries out testing the empirical value obtained.
A kind of specific implementation of above-mentioned simply this step, in actual application, those skilled in the art can To be extended obtaining other similar implementations according to this thinking.
S403: the more online behavior state of the user of fresh target account.
Due to user terminal every time with target account Successful login server after, all first can obtain this from server The user's operation information that account is corresponding, so, the online row of user of local target account is updated at user terminal While state, in addition it is also necessary at the online row of user of server side synchronized update server local target account For state, during to ensure user terminal next time with target account login service device, the user operation obtained Information is correct.
The online behavior state of user preset in user terminal owing to judging user operation records whether to meet again is more The step of new regulation completes at user terminal, so, in order to ensure that server side can use and user The online behavior state of user of the Policy Updates target account that terminal is identical, the one in the present invention implements In mode, user terminal can also be at the accumulative line duration >=Th of target accountrIn the case of, to server Send the online behavior state of first user for resting state and update instruction, so that server is according to first The online behavior state of user updates instruction and updates user's online behavior state letter of server local target account Breath;
Can be at ThfThe accumulative line duration < Th of≤target accountrIn the case of, send for tired to server The second online behavior state of user of labor state updates instruction, so that server is according to the second online row of user The user's online behavior state information instructing more fresh target account is updated for state.
Wherein, first user presence updates instruction and the second user online status updates in instruction and at least needs Including the information relevant to the rule that the online behavior state of user of more fresh target account is used, above-mentioned more New instruction can also include the information such as accumulative line duration of target account.
The information relevant to the rule that the online behavior state of user of more fresh target account is used, it is possible to understand that For: the more online behavior state of the user of fresh target account, such as, in game class application software, with just The often game income of 50% more fresh target account of income;In communication class application software, increase with normal empirical value The empirical value of the 30% of speed more fresh target account;In video class application software, limit user and again watch shadow The quantity of sheet;In application software with credit score function, cut down the credit score of user, there is no integration Cannot buy and use relevant function;In the application software providing electronic publication, only user carries For the electronic publication through limiting screening, it is provided that brief electronic publication does not reoffer when needing to spend longer Between electronic publication;In the application software having advertisement insertion, time interval one step that user breaks for commercialsy Step shortens so that user can only watch advertisement, and in input application that can not be too much etc..
S404: process ends.
In one particular embodiment of the present invention, user terminal obtains after user's operation information from server, Obtain the accumulative Offtime of target account, if accumulative Offtime and the off-line state time threshold preset ThoCompare, when accumulative Offtime is more than or equal to ThoIn the case of, user terminal not regeneration is for target The online behavior state of user of account updates prompting message;When accumulative Offtime is less than ThoIn the case of, use Family terminal generates the online behavior state of user for target account and updates prompting message.Such as, when user's Accumulative Offtime is 3 hours, the off-line state time threshold Th presetoBe 5 hours, then user terminal generates Information: " your Offtime is not up to 5 hours, it is proposed that you continue off-line and have a rest ", if now user It is continuing with application software, then continues accumulative line duration, and income of playing is 0.If user's is accumulative Offtime is 5 hours or 6 hours, then user terminal not regeneration information, it is allowed to user makes normally With application software, and being reset by accumulative line duration, cumulative calculation adds up line duration again.
Owing to user terminal is after server obtains user's operation information, judging that user operation records is the fullest Before the user's online behavior state more new regulation preset in foot user terminal, the user's operation information obtained can Can change, such as the accumulative line duration increase etc. of target account, so, need to be according to practical situation The more user's operation information of fresh target account.It addition, the user's operation information obtained under current state may It is unsatisfactory in user terminal the user's online behavior state more new regulation preset, and along with the carrying out of user operation, The user's operation information obtained changes, and the user's operation information after change may meet user terminal In preset user's online behavior state more new regulation, so, be also required to more fresh target account in this case User's operation information.The technical scheme of the application can effectively solve this problem, user terminal, server End calculates the respective accumulative line duration of acquisition according to the machine time of the machine respectively, and user terminal need not be again Transferring accumulative line duration by network to server end, this will save portion of time, user's operation information Change can be obtained in time, in follow-up judgement.To this end, the one in the present invention is concrete real In existing mode, above-mentioned user online behavior state update method can also include: according to user terminal is System clock, updates user operation records, and user operation records includes the accumulative line duration of target account.
It should be noted that when user operation records also includes other information, it is possible to it is updated in the lump.
When target account is converted to off-line state by presence, user terminal sends account to server and steps on Go out request, when publishing successfully this target account of server record publish the moment, have accumulative online time function User terminal and server be both needed to stop the accumulative line duration of accumulative target account.
This technical scheme is in the case of user terminal is maliciously kidnapped, even if Malware can revise user Terminal stops the online behavior state of user of more fresh target account, and the statistical data of server is also correct, Because the data of server depend on the machine time of the machine, such as, the game income of game class application software Halve still according to correct mode, be zero, it is achieved that real effective control.Concrete, user terminal Adding up according to the time of oneself the machine respectively with server and control, user terminal oneself monitors and reaches Time threshold, just sends information to user, the more online behavior state of the user of fresh target account Rule, server oneself monitoring reaches time threshold, just updates in the machine note voluntarily according to more new regulation The online behavior state of user of the target account of record, both mutually need not be mutual, the most also prevents band of being held as a hostage The data exception come, beneficial effect is clearly.
We are after target account is published, and the user that can also effectively find user terminal is used by server The probability of illegal program,
In view of above-mentioned situation, in a kind of specific implementation of the present invention, the online behavior of above-mentioned user State updating method can also include: sends the account for target account to server and publishes request, so that Obtain server and publish the user operation records asking more fresh target account according to above-mentioned account.
When the scheme that application above-described embodiment provides updates user's online behavior state, due to not at user terminal In directly present the rule that used when updating the online behavior state of user, so, a lot of in the case of user need The change that application software to be examined is occurred could find the rule used, the most intuitively.Therefore exist In one specific embodiment of the present invention, see Fig. 5, it is provided that the of user's online behavior state update method Two kinds of schematic flow sheets, compared with embodiment illustrated in fig. 4, in the present embodiment, meet at user operation records and use In the case of the user's online behavior state more new regulation preset in the terminal of family, also include:
S405: generate the online behavior state of user for target account and update prompting message.
Wherein, user's online behavior state renewal prompting message includes: exist with the user of more fresh target account The information etc. that the rule that line behavior state is used is relevant.
Concrete, the user's online behavior state renewal for target account can be generated by following steps and carry Show message:
Judge that whether the accumulative line duration of target account is more than or equal to the resting state time threshold Th presetr
If more than or equal to Thr, it is determined that target account is in resting state, and generates under current state for mesh The online behavior state of user of mark account updates prompting message;
If less than Thr, then judge that whether the accumulative line duration of target account is more than or equal to the fatigue state preset Time threshold Thf, wherein, Thf< Thr
If more than or equal to Thf, it is determined that target account is in fatigue state, and generates under current state for mesh The online behavior state of user of mark account updates prompting message;
If less than Thf, according to the accumulative line duration of the system clock more fresh target account of user terminal, and The accumulative line duration of the target account after renewal meets the feelings of default user online behavior state more new regulation Under condition, generate the online behavior state of user for target account and update prompting message.
As seen from the above, in the scheme that the various embodiments described above provide, successfully step on target account at user terminal After record server, user terminal obtains user operation records from server, and is judging to obtain user operation note In the case of record meets the user's online behavior state more new regulation preset in user terminal, user terminal updates The online behavior state of user of target account.Compared with prior art, in the scheme that the various embodiments described above provide, By user terminal according to user operation records and wherein default user's online behavior state more new regulation, determine The more online behavior state of the user of fresh target account, and the online row of user of the most more fresh target account For state, rather than after being determined above-mentioned information by server again will determined by information be sent to user terminal, institute With, even if current network plays pendulum, user also is able to know active user from user terminal in time Terminal and server are how to update the online behavior state of user, and then can adjust factum in time, Improve Consumer's Experience.
Below user terminal is introduced with target account login service device.
Here server can be divided into according to concrete function: application runtime server and account management clothes Business device, wherein, application runtime server is for the properly functioning offer service for one or more application, account Number management server for management one application or multiple application user account, checking user identity.
In a kind of specific implementation, when user terminal is with target account login service device, user terminal is to answering Send logging request with runtime server, wherein, this logging request comprise the account information of target account, In addition to above-mentioned information, this logging request can also comprise checking password, user name, intended application The information such as mark;After server receives the logging request that user terminal sends, forward the request to user The account management server that intended application is corresponding;When this account management server authentication target account failure, should Account management service sends authentication failed message to application runtime server, and this is tested by application runtime server again Card failed message is transmitted to user terminal, and user terminal generates and shows pop-up, in order to prompt the user with login Failure, now, user terminal cannot log in application runtime server and access intended application;When this account management The success of server authentication target account, this account management service sends to application operation service and is proved to be successful message, This is proved to be successful message and is transmitted to user terminal by application runtime server again, and now, user terminal can be visited Ask intended application, and perform user's online behavior state update method that each above-mentioned embodiment provides.
As seen from the above, above-mentioned account management server is not the institute serviced by application runtime server There is application to provide account management function, but provide account management function for one of them or several application, Therefore, application runtime server one or more application software corresponding, and corresponding one can be distinguished Individual or multiple account management servers.One application software can a corresponding account management server.This Planting the layout type of server, being suitable for a company's operation has the situation of multiple application software, and the said firm answers With the corresponding multiple application softwaries of runtime server, and the user of different application softwaries is different, and an application is soft The corresponding account management server of part.Certainly, for the convenience of account management, this operator is all right On the basis of multiple account management servers, then set up a total account management server, be used for back up and Collect the account information of all application softwaries.The advantage of this layout is, a corresponding account of application software Number management system, account logs in speed, and the account management system malfunctions of an application software Time do not interfere with logging in of other application softwaries, account management system suffers that attack does not results in other should With the leakage of software account, safety is good.But user terminal is with target account login service in prior art During device, although server therein can also be divided by function as application runtime server and account management clothes Business device, but all application that account management server here is serviced by application runtime server provide account Number management function, all application that the most multiple application runtime servers are serviced provide account management function. In this case, when account management server goes wrong, account corresponding to all application all cannot log in Corresponding server, and in the above embodiments of the present application due to an account management server only manage one or The account of the multiple application of person, so, once make mistakes, only affect the login of these application, hence it is evident that affect model Enclose less.
Below by an instantiation, the application is described in detail.
It is assumed that user terminal with target account B Successful login the server of game Y, default tired shape State time threshold is 3 hours, and the resting state time threshold preset is 5 hours, for the use of fatigue state The online behavior state in family updates instruction and includes: with 50% more new game income of normal game income, for stopping The online behavior state of user of breath state updates instruction and includes: receive with 0% more new game of normal game income Benefit.User terminal sends logging request, server record target account stepping at this application software to server In the record moment, then user terminal obtains the accumulative line duration of target account, accumulative off-line to server request Time.Target account may all have login in different application softwaries and publish behavior, therefore accumulative online Time is calculated and records this data by server, more convenient.Certainly, user terminal can also be from server Getting in target account login several times, publish the moment, user terminal is according to upper login several times and publishes Moment and this login moment, during in conjunction with the former accumulative line duration obtained from server and former accumulative off-line Between, calculate voluntarily and obtain the current accumulative line duration of target account, current accumulative Offtime.
According to S401: the user's operation information that user terminal receives includes: the accumulative line duration of B 4 hours.
According to S402: owing to the accumulative line duration of B is more than the fatigue state time threshold 3 preset in 4 hours Hour, so, need to be according to the 50% of normal game income more new game income, meanwhile, comprising and " root The 50% more new game income according to normal earning " the online behavior state of user of relevant information updates instruction and sends out Give server so that server updates the game income of B according to this renewal instruction.User terminal is all right Pop-up prompting user " you have been enter into the tired time, and the income now beginning to you will halve, rest of please rolling off the production line, Strengthen physical training ", and also can drop at the machine display game role that article probability reduces, empirical value subtracts The game effect of half.
According to S403: 50% according to normal game income updates the game income of B in the user terminal.
As a detailed description of the invention, after server authorized user terminal logs in, little constantly login 3 The automatic data to user of beginning carry out income and halve.Now, user terminal is not necessarily this thing to server Sending income and halve instruction, user terminal is decided prompting user's income in its sole discretion and is halved and do income and halve work, Server carries out income voluntarily and halves work.Log in reach 5 little constantly, server carries out income automatically It is the work of zero, the most more new game income numerical value.
If the user while on user terminal interface click on exit button, user terminal send account publish request to Server, server receives to send after above-mentioned account publishes request publishes information to account management server, Account management server records this and is accumulated at the line time, and publishes process, send publish successfully instruct to Server, server sends to publish and successfully instructs to user terminal, user terminal power cut-off.
The third flow process signal of user's online behavior state update method that Fig. 6 provides for the embodiment of the present invention Figure, the method is applied to server, including:
S601: determining that user terminal, after target account Successful login server, obtains according to target account Obtain user operation records.
When server obtains user operation records according to target account, can be the operation that actively carries out of server, It can also be the operation passively carried out.
Concrete, server can detect user terminal success with target account logged in server it After, i.e. start actively to obtain the user operation records that target account is corresponding, and send request without user terminal Instruction.It addition, user terminal is after target account Successful login server, user terminal can also be to Server sends user operation records solicited message, after server receives this solicited message, just starts to obtain The user operation records that target account is corresponding.
Concrete, when server obtains user operation records according to target account, can first according to target account, Obtaining the last time of the target account of record in server publishes the moment, further according to current time with obtained The last time publish the moment, be calculated the last off-line duration of target account, and with former add up from The line time is accumulated, and then judges that whether accumulative Offtime is more than or equal to the off-line state time threshold preset Value ThoIf, more than or equal to Tho, then server arranges the accumulative line duration of target account is zero, and add up from The line time resets.It addition, on the accumulative line duration of target account and accumulative Offtime carry out by server After the clearing stated processes, it is also possible to obtain the user operation records of target account, wherein, the use of target account Family operation note can include the accumulative line duration of target account.
Wherein, the accumulative line duration of target account is: from predetermined time, target account is in line states Time cumulation sum.
S602: send user operation records to user terminal.
Those skilled in the art are it is understood that server sends user operation records to user terminal Can be understood as following several situation: situation one: server determines that user terminal is with target account successful log Afterwards, need not in the case of server sends user operation records acquisition request at user terminal, directly The user operation records obtained is sent to user terminal;Situation two: user terminal determines with target account After login service device, send user operation records to server and obtain request, after server receives this request, Again the user operation records obtained is sent to user terminal.
Server is after user terminal sends user operation records, and user terminal may determine that received user Whether operation note meets the user's online behavior state more new regulation preset in user terminal, in judged result In the case of meeting, the more online behavior state of the user of fresh target account.More fresh target account referred herein Number the online behavior state of user, can be by user terminal and/or server update respectively this locality target The online behavior state of user of account.
When target account is converted to off-line state by presence, user terminal and server are both needed to stop tiring out The accumulative line duration of meter target account, server also needs to start the accumulative Offtime of accumulative target account, After thinking that user terminal is with target account Successful login server next time, updating user online status provides letter Breath, so, when the state of target account occurs above-mentioned conversion, server need to update the target wherein recorded The user operation records of account.
In consideration of it, in one particular embodiment of the present invention, above-mentioned user's online behavior state renewal side Method can also include: the account for target account receiving user terminal transmission publishes request, and according to upper The account the stated request of publishing updates the user operation records of the target account of record in server, concrete, example As, more the last time of fresh target account publishes the moment, stops the accumulative line duration etc. of more fresh target account.
So server at least can update record in server with the account request of publishing as foundation timely The user operation records of target account.
Due to user terminal every time with target account Successful login server after, all first can obtain this from server The user's operation information that account is corresponding, so, at user's online behavior shape of user terminal more fresh target account While state, in addition it is also necessary at the online behavior state of user of server side synchronized update target account, to ensure When user terminal is next time with target account login service device, the user's operation information obtained is correct.
The online behavior state of user preset in user terminal owing to judging user operation records whether to meet again is more The step of new regulation completes at user terminal, so, in order to ensure that server side can use and user The online behavior state of user of the Policy Updates target account that terminal is identical, it need to be used by user terminal The relevant information of rule sends to server.
Based on considerations above, in one particular embodiment of the present invention, Fig. 7 is seen, it is provided that user is online 4th kind of schematic flow sheet of behavior state update method, compared with embodiment illustrated in fig. 6, also includes:
S603: receive the online behavior state of the user for the current state renewal instruction that user terminal sends, And user's online behavior state information of more fresh target account is instructed according to the renewal of user's online behavior state.
For different account status, the online behavior state of above-mentioned user updates instruction and can correspond to difference Instruction, such as, for fatigue state the online behavior state of user update instruction, for resting state The online behavior state of user updates instruction etc..
Those skilled in the art are it is understood that along with the carrying out of user operation, the use of target account Family operation information can change, and user terminal can update in the operation of user's user terminal according to user The user's operation information of target account, for keeping the user operation of the target account of user terminal and server side Information is consistent, is also required to the user's operation information of more fresh target account in server side.
Concrete, during the accumulative line duration of server update target account, can be according to the system of server Clock, updates the accumulative line duration of the target account of record in server.
The information so sending the accumulative online time correlation with target account without user terminal to server is Can complete to update operation.
In actual application, server side is except needing the user's operation information of more fresh target account, such as, tired Meter line duration etc., in addition it is also necessary to along with the user the being updated target account online behavior shape of user operation State, and need to be consistent with the online behavior state of user of the target account that user terminal updates.
To this end, in another specific embodiment of the present invention, see Fig. 8, it is provided that user's online behavior shape 5th kind of schematic flow sheet of state update method, compared with embodiment illustrated in fig. 6, in the present embodiment, also includes:
S604: judge that whether the accumulative line duration of target account is more than or equal to the resting state time threshold preset Value ThrIf, more than or equal to Thr, perform S605, if less than Thr, perform S606.
S605: determine that target account is in resting state, generate the 3rd online row of user for resting state Update instruction for state, and update the user instructing more fresh target account according to the 3rd online behavior state of user Online behavior state information.
S606: judge that whether the accumulative line duration of target account is more than or equal to the fatigue state time threshold preset Value ThfIf, more than or equal to Thf, perform S607, if less than Thf, perform S608.Wherein, Thf< Thr
S607: determine that target account is in fatigue state, generate online for the fourth user under fatigue state Behavior state updates instruction, and updates the use instructing more fresh target account according to the online behavior state of fourth user Family online behavior state information.
S608: according to the system clock of server, in renewal server, the target account of record is accumulative online Time.
As seen from the above, in the scheme that the various embodiments described above provide, successfully step on target account at user terminal After record server, user terminal receives the user operation records that server sends, and is judging to obtain user behaviour Note down in the case of meeting the user's online behavior state more new regulation preset in user terminal, more fresh target The online behavior state of user of account.Compared with prior art, in the scheme that the various embodiments described above provide, by User terminal determines whether according to user operation records and the user's online behavior state more new regulation wherein preset User's online behavior shape of the more online behavior state of the user of fresh target account and the most more fresh target account State, so, even if current network plays pendulum, it is currently the most more that user also is able to know in time The new online behavior state of user, and then factum can be adjusted in time, improve Consumer's Experience.
Below by an instantiation, the application is described in detail.It is assumed that user terminal is with target account Number C Successful login server of game Z, default fatigue state time threshold is: 3 hours, presets Resting state time threshold be 5 hours, for fatigue state the online behavior state of user update instruction bag Include: with 50% more new game income of normal game income, for the online behavior state of user of resting state Renewal instruction includes: with 0% more new game income of normal game income.
The user's operation information that S601: server obtains includes: the accumulative line duration of C is 4 hours.
S602: send above-mentioned user operation records to user terminal.
After user terminal receives user operation records, it is judged that the accumulative line duration obtaining C is more than pre-for 4 hours If fatigue state time threshold 3 hours, so, need to receive according to the 50% of normal game income more new game Benefit, and in the user terminal according to normal game income 50% renewal C game income.
S604: server judge the accumulative line duration 4 hours of C less than the resting state time threshold preset It is worth 5 hours, performs S606.
S606: judge the accumulative line duration 4 hours of C is little more than the fatigue state time threshold 3 preset Time, perform S607.
S607: determine that C is in fatigue state, according to the game income of 50% renewal C of normal game income.
Corresponding with above-mentioned user's online behavior state update method, the embodiment of the present invention additionally provides one User's online behavior state updating device.
The first structural representation of user's online behavior state updating device that Fig. 9 provides for the embodiment of the present invention Figure, this device is applied to user terminal, including: operation note receiver module 901, operation note judge module 902 and behavior state more new module 903.
Wherein, operation note receiver module 901, for taking with target account Successful login at described user terminal After business device, receive the user operation records that described server feeds back according to described target account;
Operation note judge module 902, is used for judging whether described user operation records meets described user terminal In preset user's online behavior state more new regulation;
Behavior state more new module 903, for the judged result at described user operation records judge module 902 In the case of being, update the online behavior state of user of described target account.
Concrete, above-mentioned user online behavior state updating device can also include: prompting message generates mould Block (not shown).
Wherein, prompting message generation module, in described user operation records meets described user terminal In the case of the user's online behavior state more new regulation preset, generate the user for described target account and exist Line behavior state updates prompting message, and wherein, the online behavior state of described user updates prompting message and includes: The information relevant to the rule that the online behavior state of user updating described target account is used.
Concrete, above-mentioned user online behavior state updating device can also include: Offtime obtains mould Block and Offtime judge module (not shown).
Wherein, Offtime obtains module, for receiving user operation note at described operation note receiver module After record, according to described user operation records, it is thus achieved that the accumulative Offtime of described target account;
Offtime judge module, for the off-line state being more than or equal to preset at described accumulative Offtime Time threshold ThoIn the case of, do not generate the online behavior state of user for described target account and update prompting Message;At described accumulation Offtime less than ThoIn the case of, generate the user for described target account and exist Line behavior state updates prompting message.
Concrete, above-mentioned user operation records at least includes: the accumulative line duration of target account, its In, the accumulative line duration of described target account is: from predetermined time, described target account is in wire The time cumulation sum of state.
Concrete, above-mentioned user online behavior state updating device can also include: the first line duration is more New module (not shown).
Wherein, the first line duration more new module, for the system clock according to described user terminal, update The accumulative line duration of the described target account of record in described user terminal.
Concrete, above-mentioned prompting message generation module may include that the first line duration judge submodule, First prompting message generates submodule, the second line duration judges submodule, the second prompting message generates submodule Block and the 3rd prompting message generate submodule (not shown).
Wherein, described first line duration judges submodule, for judging the accumulative online of described target account Whether the time is more than or equal to the resting state time threshold Th presetrIf, more than or equal to Thr, trigger described first Prompting message generates submodule and generates prompting message, if less than Thr, trigger described second line duration and judge son Accumulative line duration is judged by module;
Described first prompting message generates submodule, is used for determining that described target account is in resting state, and Generate the user's online behavior state renewal prompting message for described target account under current state;
Described second line duration judges submodule, for judging that the accumulative line duration of described target account is No more than or equal to the fatigue state time threshold Th presetf, wherein, Thf< ThrIf, more than or equal to Thf, touch Send out the second prompting message described and generate submodule and generate prompting message, if less than Thf, trigger described 3rd prompting Message generates submodule and generates prompting message;
Described second prompting message generates submodule, is used for determining that described target account is in fatigue state, and Generate the user's online behavior state renewal prompting message for described target account under current state;
Described 3rd prompting message generates submodule, updates institute for the system clock according to described user terminal State the accumulative line duration of target account, and the accumulative line duration of described target account in the updated meets In the case of the user's online behavior state more new regulation preset, generate the user for described target account and exist Line behavior state updates prompting message.
Concrete, above-mentioned user online behavior state updating device can also include: first updates instruction sends out Module and second is sent to update instruction sending module (not shown).
Wherein, first updates instruction sending module, for the accumulative line duration >=Th in described target accountr In the case of, send the online behavior state of first user for resting state to described server and update instruction, So that described server updates instruction according to the online behavior state of described first user updates described target account User's online behavior state information;
Second updates instruction sending module, at ThfThe accumulative line duration < Th of≤described target accountr In the case of, send the second online behavior state of user for fatigue state to described server and update instruction, So that described server updates instruction according to the described second online behavior state of user updates described target account User's online behavior state information;
Wherein, described first user presence updates instruction and described second user online status updates instruction Include: the information relevant to the rule that the online behavior state of user updating described target account is used.
Concrete, above-mentioned user online behavior state updating device can also include: the request of publishing sends mould Block (not shown).
Wherein, publish request sending module, for sending the account for described target account to described server Number publish request, so that described server updates described in server local according to the request of publishing of described account The user operation records of target account.
Concrete, the user's online behavior state more new regulation preset is relevant at least one in following information: The age of user that current account is corresponding;The application type of current application;The accumulative line duration of current account.
As seen from the above, in the scheme that the present embodiment provides, take with target account Successful login at user terminal After business device, user terminal receives the user operation records that server sends, and is judging to obtain user operation note In the case of record meets the user's online behavior state more new regulation preset in user terminal, more fresh target account The online behavior state of user.Compared with prior art, in the scheme that the present embodiment provides, by user terminal More fresh target is determined whether according to user operation records and the user's online behavior state more new regulation wherein preset The online behavior state of user of account and the online behavior state of user of the most more fresh target account, so, Even if current network plays pendulum, user also is able to know in time to be currently that how to update user online Behavior state, and then factum can be adjusted in time, improve Consumer's Experience.
The second structural representation of user's online behavior state updating device that Figure 10 provides for the embodiment of the present invention Figure, this device is applied to server, including: operation note obtains module 1001 and operation note sending module 1002。
Wherein, operation note obtains module 1001, for determining that user terminal is with target account Successful login After described server, obtain user operation records according to described target account;
Operation note sending module 1002, for sending described user operation records to described user terminal, with Make described user terminal judge described user operation records meet in described user terminal preset user In the case of online behavior state more new regulation, update the online behavior state of user of described target account.
Concrete, above-mentioned operation note obtain module 1001 may include that publish the moment obtain submodule, Offtime calculating sub module, Offtime judge that submodule, Offtime arrange submodule and operation note Obtain submodule (not shown).
Wherein, moment acquisition submodule is published, for according to described target account, it is thus achieved that in described server The last time of the described target account of record publishes the moment;
Offtime calculating sub module, for publishing the moment according to current time and the last time obtained, In conjunction with the accumulative Offtime of described target account, update the accumulative Offtime of described target account;
Offtime judges submodule, for judge described accumulative Offtime whether more than or equal to preset from Line states time threshold Tho
Offtime arranges submodule, for judging that the judged result of submodule is as yes at described Offtime In the case of, then the accumulative line duration arranging described target account is zero, and arranges described accumulative Offtime Being zero, wherein, the accumulative line duration of described target account is: from predetermined time at described target account Time cumulation sum in presence;
Operation note obtains submodule, for obtaining the user operation records of described target account, wherein, institute The user operation records stating target account includes the accumulative line duration of described target account.
Concrete, above-mentioned user online behavior state updating device can also include: the request of publishing receives mould Block and publish moment more new module (not shown).
Wherein, publish request receiver module, for receive described user terminal send for described target account Number account publish request;
Publish moment more new module, record in the request of publishing updates described server according to described account The user operation records of described target account.
Concrete, above-mentioned user online behavior state updating device can also include: the first status information is more New module (not shown).
Wherein, the first state information updating module, for receive described user terminal send for current shape The online behavior state of user of state updates instruction, and updates instruction renewal according to the online behavior state of described user User's online behavior state information of described target account.
Concrete, above-mentioned user online behavior state updating device can also include: the second line duration is more New module (not shown).
Wherein, the second line duration more new module, for the system clock according to described server, update institute State in server the described mesh of record in the accumulative line duration of the described target account of record and described server The online behavior state of user of mark account, wherein, when described user terminal is according to the system of described user terminal Clock, updates the accumulative line duration of the described target account of record in described user terminal and described user terminal The online behavior state of user of the described target account of middle record.
Concrete, above-mentioned user online behavior state updating device can also include: the first line duration is sentenced Disconnected module, the second state information updating module, the second line duration judge module and third state information updating Module (not shown).
Wherein, described first line duration judge module, during for judging described target account accumulative online Between whether more than or equal to the resting state time threshold Th presetrIf, more than or equal to Thr, trigger described second shape State information updating module updates the online behavior state information of user, if less than Thr, trigger described second online Time judgment module carries out accumulative line duration and judges;
Described second state information updating module, is used for determining that described target account is in resting state, generates The 3rd online behavior state of user for resting state updates instruction, and according to the described 3rd online row of user Update instruction for state and update user's online behavior state information of described target account;
Whether described second line duration judge module, for judging the accumulative line duration of described target account More than or equal to the fatigue state time threshold Th presetf, wherein, Thf< ThrIf, more than or equal to Thf, trigger Described third state information updating module updates the online behavior state information of user, if less than Thf, trigger institute State line duration more new module and update accumulative line duration;
Described third state information updating module, is used for determining that described target account is in fatigue state, generates Instruction is updated for the online behavior state of the fourth user under fatigue state, and online according to described fourth user Behavior state updates instruction and updates user's online behavior state information of described target account.
Wherein, the 3rd user and the online behavior state of fourth user update instruction, are to be generated and root by server Perform to update operation according to this instruction, or be sent to server after being generated by user terminal, then by server root Perform to update operation according to this instruction.
As seen from the above, in the scheme that the present embodiment provides, take with target account Successful login at user terminal After business device, user terminal receives the user operation records that server sends, and is judging to obtain user operation note In the case of record meets the user's online behavior state more new regulation preset in user terminal, more fresh target account The online behavior state of user.Compared with prior art, in the scheme that the present embodiment provides, by user terminal More fresh target is determined whether according to user operation records and the user's online behavior state more new regulation wherein preset The online behavior state of user of account and the online behavior state of user of the most more fresh target account, so, Even if current network plays pendulum, user also is able to know in time to be currently that how to update user online Behavior state, and then factum can be adjusted in time, improve Consumer's Experience.
For system, device embodiment, owing to it is substantially similar to embodiment of the method, so describe Fairly simple, relevant part sees the part of embodiment of the method and illustrates.It should be noted that herein In, the relational terms of such as first and second or the like be used merely to by an entity or operation and another Entity or operating space separate, and not necessarily require or imply these entities or operation between exist any this Plant actual relation or order.And, term " includes ", " comprising " or its any other variant are intended to contain Comprising of lid nonexcludability, so that include the process of a series of key element, method, article or equipment not Only include those key elements, but also include other key elements being not expressly set out, or also include for this The key element that process, method, article or equipment are intrinsic.In the case of there is no more restriction, by statement " bag Include one ... " key element that limits, it is not excluded that including the process of described key element, method, article or setting Other identical element is there is also in Bei.One of ordinary skill in the art will appreciate that realizing said method implements All or part of step in mode can be by program and completes to instruct relevant hardware, described journey Sequence can be stored in computer read/write memory medium, the storage medium obtained designated herein, such as: ROM/RAM, magnetic disc, CD etc..The foregoing is only presently preferred embodiments of the present invention, be not intended to Limit protection scope of the present invention.All made within the spirit and principles in the present invention any amendment, equivalent Replacement, improvement etc., be all contained in protection scope of the present invention.

Claims (32)

1. user's online behavior state update method, is applied to user terminal, it is characterised in that described Method includes:
At described user terminal after target account Successful login server, it is thus achieved that described server is according to institute State the user operation records of target account feedback;
Judge whether described user operation records meets the online behavior state of user preset in described user terminal More new regulation;
If meeting, update the online behavior state of user of described target account.
Method the most according to claim 1, it is characterised in that meet institute at described user operation records In the case of stating the user's online behavior state more new regulation preset in user terminal, also include:
Generate the online behavior state of user for described target account and update prompting message, wherein, described use The online behavior state in family updates prompting message and includes: with the user's online behavior shape updating described target account The information that the rule that state is used is relevant.
Method the most according to claim 1, it is characterised in that the described server of described acquisition according to After the user operation records of described target account feedback, also include:
According to described user operation records, it is thus achieved that the accumulative Offtime of described target account;
At described accumulative Offtime more than or equal to the off-line state time threshold Th presetoIn the case of, no Generate the online behavior state of user for described target account and update prompting message;
At described accumulation Offtime less than ThoIn the case of, generate online for the user of described target account Behavior state updates prompting message.
4. according to the method according to any one of claim 1-3, it is characterised in that described user operation records In at least include: the accumulative line duration of target account, wherein, the accumulative line duration of described target account For: from predetermined time, described target account is in the time cumulation sum of line states.
Method the most according to claim 4, it is characterised in that described method also includes:
According to the system clock of described user terminal, update the described target account of record in described user terminal Accumulative line duration.
Method the most according to claim 5, it is characterised in that described server is according to described server System clock, update in described server the accumulative line duration of the described target account of record and described clothes The online behavior state of the described target account of record in business device.
Method the most according to claim 5, it is characterised in that described generation is for described target account The online behavior state of user update prompting message, including:
Judge that whether the accumulative line duration of described target account is more than or equal to the resting state time threshold preset Thr
If more than or equal to Thr, it is determined that described target account is in resting state, and generates pin under current state The online behavior state of user of described target account is updated prompting message;
If less than Thr, then judge that whether the accumulative line duration of described target account is more than or equal to the fatigue preset State for time threshold value Thf, wherein, Thf< Thr
If more than or equal to Thf, it is determined that described target account is in fatigue state, and generates pin under current state The online behavior state of user of described target account is updated prompting message;
If less than Thf, then the accumulative online of described target account is updated according to the system clock of described user terminal Time, and the accumulative line duration of described target account in the updated meets default user online behavior shape In the case of state more new regulation, generate the user's online behavior state renewal prompting for described target account and disappear Breath.
Method the most according to claim 7, it is characterised in that described method also includes:
Accumulative line duration >=Th in described target accountrIn the case of, send for stopping to described server The online behavior state of first user of breath state updates instruction, so that described server is used according to described first The online behavior state in family updates instruction and updates user's online behavior state information of described target account;
At ThfThe accumulative line duration < Th of≤described target accountrIn the case of, send pin to described server The second online behavior state of user of fatigue state is updated instruction, so that described server is according to described the The two online behavior states of user update instruction and update user's online behavior state information of described target account;
Wherein, described first user presence updates instruction and described second user online status updates instruction Include: the information relevant to the rule that the online behavior state of user updating described target account is used.
9. according to the method according to any one of claim 1-3, it is characterised in that described method also includes:
Send the account for described target account to described server and publish request, so that described server The user operation records of described target account is updated according to the request of publishing of described account.
10. according to the method according to any one of claim 1-3, it is characterised in that described default user Online behavior state more new regulation is relevant at least one in following information:
The age of user that current account is corresponding;
The application type of current application;
The accumulative line duration of current account;
The accumulative Offtime of current account.
11. 1 kinds of user's online behavior state update methods, are applied to server, it is characterised in that described Method includes:
Determine user terminal after server described in target account Successful login, according to described target account Obtain user operation records;
Described user operation records is sent, so that described user terminal obtains described use to described user terminal After the operation note of family, judge described user operation records meet in described user terminal preset user exist In the case of line behavior state more new regulation, update the online behavior state of user of described target account.
12. methods according to claim 11, it is characterised in that described obtain according to described target account Obtain user operation records, including:
According to described target account, it is thus achieved that in described server, the last time of the described target account of record steps on Go out the moment;
Publish the moment according to current time and the last time obtained, in conjunction with described target account add up from The line time, update the accumulative Offtime of described target account;
Judge that whether described accumulative Offtime is more than or equal to the off-line state time threshold Th preseto
If more than or equal to Tho, then the accumulative line duration arranging described target account is zero, and arranges described tired Meter Offtime is zero, and wherein, the accumulative line duration of described target account is: described from predetermined time Target account is in the time cumulation sum of line states;
Obtain the user operation records of described target account, wherein, the user operation records of described target account Accumulative line duration including described target account.
13. methods according to claim 11, it is characterised in that described method also includes:
The account for described target account receiving the transmission of described user terminal publishes request;
The user operation of the described target account of record in described server is updated according to the request of publishing of described account Record.
14. according to the method according to any one of claim 11-13, it is characterised in that described method is also wrapped Include:
Receive the online behavior state of the user for the current state renewal instruction that described user terminal sends, and Update instruction according to the online behavior state of described user and update user's online behavior state letter of described target account Breath.
15. according to the method according to any one of claim 11-13, it is characterised in that described method is also wrapped Include:
According to the system clock of described server, update the tired of the described target account of record in described server The online behavior state of user of the described target account of record in meter line duration and described server;
Described user terminal, according to the system clock of described user terminal, updates record in described user terminal In the accumulative line duration of described target account and described user terminal, the user of the described target account of record exists Line behavior state.
16. methods according to claim 15, it is characterised in that described method also includes:
Judge that whether the accumulative line duration of described target account is more than or equal to the resting state time threshold preset Thr
If more than or equal to Thr, it is determined that described target account is in resting state, generates for resting state The 3rd online behavior state of user updates instruction, and updates instruction according to the described 3rd online behavior state of user Update user's online behavior state information of described target account;
If less than Thr, then judge that whether the accumulative line duration of described target account is more than or equal to the fatigue preset State for time threshold value Thf, wherein, Thf< Thr
If more than or equal to Thf, it is determined that described target account is in fatigue state, generates under fatigue state The online behavior state of fourth user update instruction, and according to the online behavior state of described fourth user update refer to Order updates user's online behavior state information of described target account;
If less than Thf, then perform the described system clock according to described server, update in described server and remember The step of the accumulative line duration of the described target account of record.
17. 1 kinds of user's online behavior state updating devices, are applied to user terminal, it is characterised in that institute State device to include:
Operation note receiver module, is used at described user terminal after target account Successful login server, Obtain the user operation records that described server feeds back according to described target account;
Operation note judge module, is used for judging whether described user operation records meets in described user terminal The user's online behavior state more new regulation preset;
Behavior state more new module, is yes for the judged result at described user operation records judge module In the case of, update the online behavior state of user of described target account.
18. devices according to claim 17, it is characterised in that described device also includes:
Prompting message generation module, for preset in described user operation records meets described user terminal In the case of user's online behavior state more new regulation, generate the online behavior of user for described target account State update prompting message, wherein, the online behavior state of described user update prompting message include: with more The information that the rule that the online behavior state of user of new described target account is used is relevant.
19. devices according to claim 17, it is characterised in that described device also includes:
Offtime obtains module, after receiving user operation records at described operation note receiver module, According to described user operation records, it is thus achieved that the accumulative Offtime of described target account;
Offtime judge module, for the off-line state being more than or equal to preset at described accumulative Offtime Time threshold ThoIn the case of, do not generate the online behavior state of user for described target account and update prompting Message;At described accumulation Offtime less than ThoIn the case of, generate the user for described target account and exist Line behavior state updates prompting message.
20. according to the device according to any one of claim 17-19, it is characterised in that described user operation At least including in record: the accumulative line duration of target account, wherein, adding up of described target account is online Time is: from predetermined time, described target account is in the time cumulation sum of line states.
21. devices according to claim 20, it is characterised in that described device includes:
First line duration more new module, for the system clock according to described user terminal, updates described use The accumulative line duration of the described target account of record in the terminal of family.
22. devices according to claim 21, it is characterised in that described prompting message generation module, Including: the first line duration judges that submodule, the first prompting message generate submodule, the second line duration is sentenced Disconnected submodule, the second prompting message generate submodule and the 3rd prompting message generates submodule;
Wherein, described first line duration judges submodule, for judging the accumulative online of described target account Whether the time is more than or equal to the resting state time threshold Th presetrIf, more than or equal to Thr, trigger described first Prompting message generates submodule and generates prompting message, if less than Thr, trigger described second line duration and judge son Accumulative line duration is judged by module;
Described first prompting message generates submodule, is used for determining that described target account is in resting state, and Generate the user's online behavior state renewal prompting message for described target account under current state;
Described second line duration judges submodule, for judging that the accumulative line duration of described target account is No more than or equal to the fatigue state time threshold Th presetf, wherein, Thf< ThrIf, more than or equal to Thf, touch Send out the second prompting message described and generate submodule and generate prompting message, if less than Thf, trigger described 3rd prompting Message generates submodule and generates prompting message;
Described second prompting message generates submodule, is used for determining that described target account is in fatigue state, and Generate the user's online behavior state renewal prompting message for described target account under current state;
Described 3rd prompting message generates submodule, updates institute for the system clock according to described user terminal State the accumulative line duration of target account, and the accumulative line duration of described target account in the updated meets In the case of the user's online behavior state more new regulation preset, generate the user for described target account and exist Line behavior state updates prompting message.
23. devices according to claim 22, it is characterised in that described device also includes:
First updates instruction sending module, for the accumulative line duration >=Th in described target accountrSituation Under, send the online behavior state of first user for resting state to described server and update instruction, so that Obtain described server and update the use of the instruction described target account of renewal according to the online behavior state of described first user Family online behavior state information;
Second updates instruction sending module, at ThfThe accumulative line duration < Th of≤described target accountr In the case of, send the second online behavior state of user for fatigue state to described server and update instruction, So that described server updates instruction according to the described second online behavior state of user updates described target account User's online behavior state information;
Wherein, described first user presence updates instruction and described second user online status updates instruction Include: the information relevant to the rule that the online behavior state of user updating described target account is used.
24. according to the device according to any one of claim 17-19, it is characterised in that described device also wraps Include:
Publish request sending module, publish for sending the account for described target account to described server Request, so that described server updates the user operation of described target account according to the request of publishing of described account Record.
25. according to the device according to any one of claim 17-19, it is characterised in that described default use Family online behavior state more new regulation is relevant at least one in following information:
The age of user that current account is corresponding;
The application type of current application;
The accumulative line duration of current account;
The accumulative Offtime of current account.
26. 1 kinds of user's online behavior state updating devices, are applied to server, it is characterised in that described Device includes:
Operation note obtains module, for determining that user terminal is with server described in target account Successful login Afterwards, user operation records is obtained according to described target account;
Operation note sending module, for sending described user operation records to described user terminal, so that Described user terminal judge described user operation records meet in described user terminal preset user online In the case of behavior state more new regulation, update the online behavior state of user of described target account.
27. devices according to claim 26, it is characterised in that described operation note obtains module, Including:
Publish moment acquisition submodule, for according to described target account, it is thus achieved that record in described server The last time of described target account publishes the moment;
Offtime calculating sub module, for publishing the moment according to current time and the last time obtained, In conjunction with the accumulative Offtime of described target account, update the accumulative Offtime of described target account;
Offtime judges submodule, for judge described accumulative Offtime whether more than or equal to preset from Line states time threshold Tho
Offtime arranges submodule, for judging that the judged result of submodule is as yes at described Offtime In the case of, the accumulative line duration arranging described target account is zero, and arranges described accumulative Offtime and be Zero, wherein, the accumulative line duration of described target account is: from predetermined time, described target account is in The time cumulation sum of presence;
Operation note obtains submodule, for obtaining the user operation records of described target account, wherein, institute The user operation records stating target account includes the accumulative line duration of described target account.
28. devices according to claim 26, it is characterised in that described device also includes:
Publish request receiver module, for receiving the account for described target account that described user terminal sends Number publish request;
Publish moment more new module, record in the request of publishing updates described server according to described account The user operation records of described target account.
29. according to the device according to any one of claim 26-28, it is characterised in that described device also wraps Include:
First state information updating module, for receiving the use for current state that described user terminal sends The online behavior state in family updates instruction, and updates the instruction described mesh of renewal according to the online behavior state of described user User's online behavior state information of mark account.
30. according to the device according to any one of claim 26-28, it is characterised in that described device also wraps Include:
Second line duration more new module, for the system clock according to described server, updates described service The described target account of record in the accumulative line duration of the described target account recorded in device and described server The online behavior state of user, wherein, described user terminal is according to the system clock of described user terminal, more Record in the accumulative line duration of the described target account recorded in new described user terminal and described user terminal The online behavior state of user of described target account.
31. devices according to claim 30, it is characterised in that described device also includes: first Line time judgment module, the second state information updating module, second line duration judge module and the third state Information updating module;
Wherein, described first line duration judge module, during for judging described target account accumulative online Between whether more than or equal to the resting state time threshold Th presetrIf, more than or equal to Thr, trigger described second shape State information updating module updates the online behavior state information of user, if less than Thr, trigger described second online Time judgment module carries out accumulative line duration and judges;
Described second state information updating module, is used for determining that described target account is in resting state, generates The 3rd online behavior state of user for resting state updates instruction, and according to the described 3rd online row of user Update instruction for state and update user's online behavior state information of described target account;
Whether described second line duration judge module, for judging the accumulative line duration of described target account More than or equal to the fatigue state time threshold Th presetf, wherein, Thf< ThrIf, more than or equal to Thf, trigger Described third state information updating module updates the online behavior state information of user, if less than Thf, trigger institute State line duration more new module and update accumulative line duration;
Described third state information updating module, is used for determining that described target account is in fatigue state, generates Instruction is updated for the online behavior state of the fourth user under fatigue state, and online according to described fourth user Behavior state updates instruction and updates user's online behavior state information of described target account.
32. 1 kinds of online behavior states of user update system, it is characterised in that described system includes:
In the user terminal of device according to any one of application claim 17-25 and application claim 26-31 The server of device described in any one.
CN201510130195.6A 2015-03-23 2015-03-23 A kind of user's online behavior state update method, Apparatus and system Pending CN106161490A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510130195.6A CN106161490A (en) 2015-03-23 2015-03-23 A kind of user's online behavior state update method, Apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510130195.6A CN106161490A (en) 2015-03-23 2015-03-23 A kind of user's online behavior state update method, Apparatus and system

Publications (1)

Publication Number Publication Date
CN106161490A true CN106161490A (en) 2016-11-23

Family

ID=58063682

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510130195.6A Pending CN106161490A (en) 2015-03-23 2015-03-23 A kind of user's online behavior state update method, Apparatus and system

Country Status (1)

Country Link
CN (1) CN106161490A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106846201A (en) * 2017-01-25 2017-06-13 福建天晴数码有限公司 A kind of class hour management method based on Web education
CN107395450A (en) * 2017-06-15 2017-11-24 腾讯科技(深圳)有限公司 Using the monitoring method and device, storage medium, electronic installation of the situation of login
CN110248217A (en) * 2019-07-08 2019-09-17 中国联合网络通信集团有限公司 A kind of user data synchronization method and device
CN110493075A (en) * 2019-08-01 2019-11-22 京信通信系统(中国)有限公司 The method, apparatus and system of equipment on-line duration monitoring

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030220143A1 (en) * 2002-05-24 2003-11-27 Koninklijke Philips Electronics N.V. On-line gaming spectator
CN1858759A (en) * 2006-03-10 2006-11-08 华为技术有限公司 Method and system for limiting time of network gaming user
CN103095532A (en) * 2013-02-01 2013-05-08 起于凡信息技术(上海)有限公司 System and method for online game pug-in prevention and plug-in prevention server-side
CN103532736A (en) * 2013-08-29 2014-01-22 华为技术有限公司 Visual network management method and user terminal
CN103543901A (en) * 2013-11-14 2014-01-29 华为技术有限公司 Method and device for generating menus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030220143A1 (en) * 2002-05-24 2003-11-27 Koninklijke Philips Electronics N.V. On-line gaming spectator
CN1858759A (en) * 2006-03-10 2006-11-08 华为技术有限公司 Method and system for limiting time of network gaming user
CN103095532A (en) * 2013-02-01 2013-05-08 起于凡信息技术(上海)有限公司 System and method for online game pug-in prevention and plug-in prevention server-side
CN103532736A (en) * 2013-08-29 2014-01-22 华为技术有限公司 Visual network management method and user terminal
CN103543901A (en) * 2013-11-14 2014-01-29 华为技术有限公司 Method and device for generating menus

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106846201A (en) * 2017-01-25 2017-06-13 福建天晴数码有限公司 A kind of class hour management method based on Web education
CN107395450A (en) * 2017-06-15 2017-11-24 腾讯科技(深圳)有限公司 Using the monitoring method and device, storage medium, electronic installation of the situation of login
CN110248217A (en) * 2019-07-08 2019-09-17 中国联合网络通信集团有限公司 A kind of user data synchronization method and device
CN110248217B (en) * 2019-07-08 2022-04-22 中国联合网络通信集团有限公司 User data synchronization method and device
CN110493075A (en) * 2019-08-01 2019-11-22 京信通信系统(中国)有限公司 The method, apparatus and system of equipment on-line duration monitoring

Similar Documents

Publication Publication Date Title
US10754631B2 (en) Tenant upgrade analytics
CN103955405B (en) A kind of application management method and its device
CN108776929A (en) Bill processing method, system based on block chain database and readable storage medium storing program for executing
US9871824B2 (en) Unified policy over heterogenous device types
CN106484622A (en) Method of testing, apparatus and system
CN106161490A (en) A kind of user's online behavior state update method, Apparatus and system
CN101763287A (en) Surplus resource management system, method and server
CN107888397A (en) The method and apparatus for determining fault type
CN105208088B (en) Evaluation number determines method and apparatus
CN104468137B (en) Web conference control method and device
CN109660400A (en) Flow control configuration method and system
US20200164275A1 (en) Cognitive user experience optimization
CN106102850A (en) Games system, memory control device, program and information storage medium
CN110275746A (en) The control method and device of page presentation
CN104518873A (en) Anonymous login method and device
CN107959891A (en) A kind of live broadcast system
CN110474812A (en) Sample rate self-adapting regulation method and device
CN110324407A (en) Access control method, device and the storage medium of background server
CN107018159A (en) Service request processing method and device and service request method and device
CN102761438A (en) Method, server and system for counting on-line user population of website
CN105335266B (en) Method for determining the failure of tested equipment
CN1649299B (en) Comlex management system and complex conversation management server for applicating programme
US8083584B2 (en) Method for permitting cancellation of a wager
CN109062578B (en) Development platform based on APP modularization
CN100534038C (en) Network system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20161123

RJ01 Rejection of invention patent application after publication