CN107391536A - The comment processing method of community application, device and system - Google Patents
The comment processing method of community application, device and system Download PDFInfo
- Publication number
- CN107391536A CN107391536A CN201710271334.6A CN201710271334A CN107391536A CN 107391536 A CN107391536 A CN 107391536A CN 201710271334 A CN201710271334 A CN 201710271334A CN 107391536 A CN107391536 A CN 107391536A
- Authority
- CN
- China
- Prior art keywords
- service data
- data request
- comment
- community application
- application
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
Abstract
The embodiment of the present application discloses a kind of comment processing method of community application, device and application system, and this method includes:Operated according to first comment of the user to the first entry content of community application, the comment result of the comment operation of display first, first service data request corresponding to the comment operation of generation first, and the first attended operation is carried out to the review record of first entry content in the offline database of the community application, the review record not yet obtains submitting parameter corresponding to the service data request confirmed for recording first entry content;When the community application is in presence, the at least one service data request not yet submitted in the community application is sent to the service server of the community application, the submission result of the service server feedback of the community application is received, and the second attended operation is carried out to the review record of each entry contents in offline database according to submission result.The embodiment of the present application can improve the fluency of user comment operation, there is provided more preferable Consumer's Experience.
Description
Technical field
The application is related to computer software technical field, more particularly to a kind of comment processing method of community application, device
And system.
Background technology
In the application of community's class, increasingly tend to be commented in this fashion for clarity, participate in content interaction.Thumb up,
The comment function such as pay close attention to, like, it is brief due to operating, only need a mouse clicking operation to can be achieved, thus obtained extensively
Use.
In existing brief comment processing method, if user carries out comment operation under off-line state, user can obtain
To the prompt message of the submission failure of application feedback;If user carries out comment operation, user in the larger situation of network delay
It is also required to the result of server feedback for waiting the long period to be applied.In existing brief comment processing method
In, user is inconvenient for operation, and Consumer's Experience is poor.
How to ensure the fluency of user's operation, improve Consumer's Experience, be that the embodiment of the present application technology to be solved is asked
Topic.
The content of the invention
The purpose of the embodiment of the present application is to provide a kind of comment processing method of community application, device and application system, with
The fluency of the comment operation of user is improved, provides the user more preferable Consumer's Experience.
In order to solve the above technical problems, what the embodiment of the present application was realized in:
First aspect, there is provided a kind of comment processing method of community application, this method include:
Operated according to first comment of the user to the first entry content of community application, show commenting for the first comment operation
By result, and the first service data request corresponding to the first comment operation is generated, and in the offline database of the community application
In the first attended operation is carried out to the review record of the first entry content, the review record is used to record the first entry content
Not yet obtain submitting parameter corresponding to the service data request confirmed;
, please by least one business datum not yet submitted in the community application when the community application is in presence
The service server for being sent to the community application is sought, and receives the submission result of the service server feedback of the community application, and
Second attended operation is carried out to the review record of each entry contents in offline database according to the submission result.
Second aspect, there is provided a kind of comment processing unit of community application, the device include:
Display unit, operated according to first comment of the user to the first entry content of community application, show that this first is commented
By the comment result of operation;
Service data request unit, generate the first service data request corresponding to the first comment operation;
Maintenance unit, first is carried out to the review record of the first entry content in the offline database of the community application
Attended operation, the review record not yet obtain submitting corresponding to the service data request confirmed for recording the first entry content
Parameter;
Transmitting element, it is at least one by what is not yet submitted in the community application when the community application is in presence
Service data request is sent to the service server of the community application;
Receiving unit, receive the submission result of the service server feedback of the community application;
The maintenance unit, second is carried out to the review record of each entry contents in offline database always according to the submission result
Attended operation.
The third aspect, there is provided a kind of comment processing unit of community application, the device include:
Processor;And
It is arranged to store the memory of computer executable instructions, the executable instruction makes the processor when executed
Perform following operate:
Operated according to first comment of the user to the first entry content of community application, show commenting for the first comment operation
By result, and the first service data request corresponding to the first comment operation is generated, and in the offline database of the community application
In the first attended operation is carried out to the review record of the first entry content, the review record is used to record the first entry content
Not yet obtain submitting parameter corresponding to the service data request confirmed;
, please by least one business datum not yet submitted in the community application when the community application is in presence
The service server for being sent to the community application is sought, and receives the submission result of the service server feedback of the community application, and
Second attended operation is carried out to the review record of each entry contents in offline database according to the submission result.
Fourth aspect, there is provided a kind of community application system, the system includes second aspect or the community of the third aspect should
Comment processing unit.
5th aspect, it is proposed that a kind of computer-readable recording medium, the computer-readable recording medium storage one or
Multiple programs, one or more programs are when the electronic equipment for being included multiple application programs performs so that the electronic equipment
Perform following operate:
Operated according to first comment of the user to the first entry content of community application, show commenting for the first comment operation
By result, and the first service data request corresponding to the first comment operation is generated, and in the offline database of the community application
In the first attended operation is carried out to the review record of the first entry content, the review record is used to record the first entry content
Not yet obtain submitting parameter corresponding to the service data request confirmed;
, please by least one business datum not yet submitted in the community application when the community application is in presence
The service server for being sent to the community application is sought, and receives the submission result of the service server feedback of the community application, and
Second attended operation is carried out to the review record of each entry contents in offline database according to the submission result.
The technical scheme provided from above the embodiment of the present application, the embodiment of the present application is by by the comment result of user
Directly display and store in offline database, and when community application is in presence by the comment result of offline database
The server of the community application is submitted to, and the comment result in offline database is safeguarded according to the submission result of feedback so that
The comment result that user can be commented on community application and be shown independent of network environment, so as to ensure to use
The fluency of family comment operation, provides the user more preferable Consumer's Experience.
Brief description of the drawings
, below will be to embodiment or existing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments described in application, for those of ordinary skill in the art, do not paying the premise of creative labor
Under, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of the comment processing method of one embodiment community application of the application.
Fig. 2 is the interaction diagrams of the comment processing method of one embodiment community application of the application.
One embodiment service data request that Fig. 3 is the application enters the scene that the processing operation after queue is submitted in comment
Schematic diagram.
Another embodiment service data request that Fig. 4 is the application enters the field that the processing operation after queue is submitted in comment
Scape schematic diagram.
The further embodiment service data request that Fig. 5 is the application enters the field that the processing operation after queue is submitted in comment
Scape schematic diagram.
Fig. 6 is the interaction diagrams of the comment processing method of another embodiment community application of the application.
Fig. 7 is the structural representation of one embodiment electronic equipment of the application.
Fig. 8 is the structural representation of one embodiment comment processing unit of the application.
Embodiment
The embodiment of the present application provides a kind of comment processing method of community application, device and application system.
In order that those skilled in the art more fully understand the technical scheme in the application, it is real below in conjunction with the application
The accompanying drawing in example is applied, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described implementation
Example only some embodiments of the present application, rather than whole embodiments.It is common based on the embodiment in the application, this area
The every other embodiment that technical staff is obtained under the premise of creative work is not made, it should all belong to the application protection
Scope.
Fig. 1 is the flow chart of the comment processing method of one embodiment community application of the application.Fig. 1 method is by commenting on
Processing unit performs.In specific application, the comment processing unit can be the One function module of community application.Fig. 1's
Method may include:
S101, operated according to first comment of the user to the first entry content of community application, show first comment behaviour
The comment result of work, and the first service data request corresponding to the first comment operation is generated, and in the offline of the community application
The first attended operation is carried out to the review record of the first entry content in database.
The review record not yet obtains submitting corresponding to the service data request confirmed for recording the first entry content
Parameter.
It should be understood that in the embodiment of the present application, the entry contents can be active user or other users in community application
Some viewpoint delivered, or active user or other users are to reply content of the viewpoint, etc..
It should be understood that in the embodiment of the present application, the first comment operation is the comment to some entry contents of community application
Operation.Specifically, comment operation may include such as to thumb up, cancel and thumb up, pay close attention to, cancel concern, like, not liking a needs
Carry out the i.e. achievable brief comment of simple clicking operation to operate, or the comment such as text reply to entry contents is grasped
Make.
S102, when the community application is in presence, at least one business for will not yet being submitted in the community application
Request of data is sent to the service server of the community application, and receives the submission knot of the service server feedback of the community application
Fruit, and the second attended operation is carried out to the review record of each entry contents in offline database according to the submission result.
In the embodiment of the present application, directly displayed by the result for operating the comment of user, corresponding to generation comment operation
Service data request, and the parameter of storage service request of data, business number is then submitted when community application is in presence
According to request, and the parameter according to corresponding to the submission result of feedback safeguards service data request in offline database so that Yong Huke
The comment result that the entry contents of community application are commented on the quality independent of network environment and shown rapidly,
So as to ensure the fluency of user comment operation, more preferable Consumer's Experience is provided the user.
In addition, the method for the embodiment of the present application, safeguards that service data request is corresponding in offline database according to feedback result
Parameter, rather than display to user is directly updated according to feedback result as a result, it is possible to avoid because submit unsuccessfully cause to
The display result at family is return back to before user carries out comment operation, has provided the user more preferable Consumer's Experience.
Alternatively,, should after the first service data request corresponding to the first comment operation is generated in step S101
Method also includes:Queue is submitted in the comment that first service data request is added to the community application, and queue is submitted in the comment
The processing queue of comment result is submitted for the community application;
Wherein, in step s 102, at least one service data request not yet submitted in the community application is sent to
The service server of the community application, specifically can be achieved be:According to service data request the comment submit queue in order,
At least one service data request is sent to the service server of the community application.
In the embodiment of the present application, queue is submitted by the way that service data request is added into comment so that user can be not required to
The submission result of service data request corresponding to operation is once commented on before receiving, you can carry out next comment and operate and show
Show, can be further ensured that user comment on the fluency of operation, provide the user more preferable Consumer's Experience.
Especially, when community application is in off-line state, or when the network delay of community application is more than predetermined threshold,
By submitting service data request in the form of queue, the fluency of user comment operation can be greatly reinforced, is obtained more preferable
Consumer's Experience.
Alternatively, the first attended operation includes:One or more in addition operation, deletion action and modification operation.
Below, by the particular type according to the first attended operation, illustrate how in the offline database of the community application
First attended operation is carried out to the review record of the first entry content.
Alternatively, as one embodiment, in step S101, in the offline database of the community application to this first
The review records of entry contents carries out the first attended operation, specifically can be achieved be:In the review record of the first entry content
Add parameter corresponding to first service data request.
Further, ginseng corresponding to first service data request is added in the review record of the first entry content
Number, including:It is not present if the comment is submitted in queue and the first comment operation mutual exclusion or the comment operation pair cancelled out each other
The service data request answered, then ginseng corresponding to first service data request is added in the review record of the first entry content
Number.
In the embodiment of the present application, by being not present in submitting queue in comment and the described first comment operation mutual exclusion or mutual
Parameter corresponding to directly adding the first service data request during service data request corresponding to the comment operation of counteracting, can be avoided
After parameter corresponding to the first service data request is added in offline database, then operation is merged to offline database, carried
The high operating efficiency of offline database.Alternatively, in step S101, in the offline database of the community application to this
The review records of one entry contents carries out the first attended operation, specifically can be achieved be:To the first business number in first entry content
Processing is merged according to parameter corresponding to request;In at least one service data request hair that will not yet be submitted in the community application
Before giving the service server of the community application, this method may also include:Queue is submitted to merge processing comment.
Further, in a kind of specific implementation of the present embodiment, if the comment, which is submitted, has second in queue
Service data request, and second service data request is the user after the second comment operation is carried out to the first entry content
The service data request of generation, and the second comment operation is that the comment cancelled out each other operates with the first comment operation, then in the society
The first attended operation is carried out to the review record of the first entry content in the offline database of area's application, specifically can be achieved be:
Second service data request and first service data request are deleted in queue is submitted in the comment;
Wherein, in step S101, the comment note in the offline database of the community application to the first entry content
Record carry out the first attended operation, specifically can be achieved be:The second business number is deleted in the review record of the first entry content
According to parameter corresponding to request.
It should be understood that the second comment operation is that the comment cancelled out each other operates with the first comment operation, and specifically, the second comment
Operation is to cancel the comment operation of the first comment operation, or the first comment operation is to cancel the comment behaviour of the second comment operation
Make.For example, when the first comment operation is thumbs up operation, the second comment operation thumbs up operation for cancellation;When this first is commented
During by operation to cancel concern operation, the second comment operation is concern operation, etc..Assuming that user under off-line state to bar
Mesh content 1 thumbs up, and then again entry contents 1 is cancelled with thumbing up, then two operations are cancelled out each other, and are equivalent to entry contents 1
Do not perform and thumb up, also do not perform cancellation and thumb up operation.
In the embodiment of the present application, comment operation is specified to carry out with cancelling by the specified comment operation to same entry contents
Merge, can need not submit the comment operating process of entry contents and only submit the comment knot of recent comment operation
Fruit, so as to reduce the data traffic of upload, reduce the backstage load of community application.
Or further, in a kind of specific implementation of the present embodiment, exist if the comment is submitted in queue
3rd service data request, and the 3rd service data request is that the user is carrying out the 3rd comment behaviour to the first entry content
The service data request generated after work, and the 3rd comment operation is that the comment for belonging to mutual exclusion with the first comment operation operates,
The first attended operation then is carried out to the review record of the first entry content in the offline database of the community application, specifically may be used
It is embodied as:The 3rd service data request is deleted in queue is submitted in the comment and retains first service data request;
Wherein, in step S101, the comment note in the offline database of the community application to the first entry content
Record carry out the first attended operation, specifically can be achieved be:By the 3rd business number described in the review record of the first entry content
Parameter corresponding to first service data request is revised as according to parameter corresponding to request.
It should be understood, of course, that modification operation can also use deletion action and addition two steps of operation to realize, now, in the community
The first attended operation is carried out to the review record of the first entry content in the offline database of application, is implemented as:At this
Parameter corresponding to the 3rd service data request is deleted in the review record of first entry content, and adds first business datum
Parameter corresponding to request.
It should be understood that the relation of the 3rd comment operation and the first comment operation is the comment operative relationship of mutual exclusion, mutual exclusion
Comment operation in last time comment operation can cover above comment operation.For example, it is exactly a pair to like and do not like
The comment operation of mutual exclusion.Assuming that user's currently comment to entry contents 2 is neutral (not yet evaluating), if user first clicks on happiness
The comment operation of joyous entry contents 2, then click on the comment operation for not liking entry contents 2, then result is finally commented on not like
Entry contents 2;If user first clicks on the comment operation for not liking entry contents 2, then clicks on and like the comment of entry contents 2 to grasp
Make, then finally comment result is to like entry contents 2.
In the embodiment of the present application, merged by two comment operations of the mutual exclusion to same entry contents, after use
The comment of the previous comment operation of comment result covering of one comment operation is as a result, it is possible to which commenting for entry contents need not be submitted
The comment result of recent comment operation is only submitted by operating process, so as to reduce the data traffic of upload, is subtracted
The backstage load of small community application.
It should be understood that comment processing unit can determine the second service data request or the 3rd business be present in offline database
After the parameter of request of data, queue is submitted to merge operation comment;Or comment processing unit can safeguard off-line data
Before storehouse, first search whether that second business datum corresponding with the first service data request be present asks in queue is submitted in comment
Ask or the 3rd service data request, and it is determined that comment submit queue in corresponding second service data request or the 3rd industry be present
After request of data of being engaged in, safeguard in offline database and join corresponding to corresponding second service data request or the 3rd service data request
Number;Or comment processing unit safeguards that the operation of offline database submits the operation of queue can not be mutually interdependent with merging comment
Rely, individually judge.
Alternatively, the second attended operation includes:One or more in deletion action, modification operation and reservation operations.
Below, by the particular type according to the second attended operation, illustrate how according to the submission result to offline database
In each entry contents review record carry out the second attended operation.
Alternatively, as one embodiment, in step s 102, according to the submission result to each entry in offline database
The review record of content carries out the second attended operation, specifically can be achieved be:If the 4th business datum of second entry content please
The submission result asked then is deleted the 4th in the review record of the second entry content to submit successfully in the offline database
Parameter corresponding to service data request.
It should be understood that in the embodiment of the present application, second entry content and first entry content can be in same entry
Hold, or different entry contents, the embodiment of the present application are not restricted to this.Similarly, the 4th service data request and the
One service data request can be same service data request or different service data requests, the embodiment of the present application
This is not also restricted.
In the embodiment of the present application, by deleting industry in offline database after being submitted successfully in the comment result of entry contents
Parameter corresponding to request of data of being engaged in, can effectively reduce offline database, avoid the unrestricted growth of offline database.In addition,
The method of the embodiment of the present application, offline database can be also avoided to repeat to submit, to improve the backstage resource utilization of community application.
Alternatively, as another embodiment, in step s 102, according to the submission result to each bar in offline database
The review record of mesh content carries out the second attended operation, specifically can be achieved be:If the 4th business number of the second entry content
Fail according to the submission result of request to submit, then retain in the review record of the offline database second entry content this
Parameter corresponding to four service data requests.
In the embodiment of the present application, by retaining industry in offline database after submitting failure in the comment result of entry contents
Parameter corresponding to request of data of being engaged in so that community application can continue to upload service data request in the follow-up time.
Alternatively, in a specific implementation of the embodiment of the present application, counted according to the submission result to offline
The second attended operation is carried out according to the review record of each entry contents in storehouse, this method also includes:After first scheduled time, base
The parameter of each service data request regenerates service data request in the offline database, and is sent to the community application
Service server.
In this implementation, by after the scheduled time based on the service data request retained in the offline database
Corresponding parameter submits service data request, can strengthen the submission success rate of service data request.
Alternatively, in a specific implementation of the embodiment of the present application, after step s 102, this method is also wrapped
Include:
Show the menu option uploaded again;
, please based on each business datum in the current time offline database when detecting that the user clicks on the menu option
The parameter asked regenerates service data request, and is sent to the service server of the community application.
In this implementation, by showing the menu option uploaded again to user, and user click is being detected
After the menu option, service data request is submitted based on parameter corresponding to the service data request retained in the offline database,
Allow users to, to whether uploading service data request progress decision-making again, provide the user more preferable Consumer's Experience.
It should be understood, of course, that in the above two specific implementation of the present embodiment, community application is regenerating business
Request of data is simultaneously sent to after the service server of the community application, and the server feedback that can also receive the community application carries
Knot fruit, and the review record of each entry contents in the offline database is safeguarded according to the submission result, specific implementation refers to
Step S102.
Alternatively, in step S102, sent at least one service data request that will not yet be submitted in the community application
After the service server of the community application, this method may also include:
To at least one service data request, corresponding review record carries out third dimension shield behaviour in the offline database
Make, state parameter corresponding at least one service data request is revised as submission state, and/or by least one industry
Timestamp parameter corresponding to business request of data is revised as sending the time of at least one service data request.
It should be understood that in the offline database in parameter corresponding to service data request, timestamp can be used for tagged traffic
The submission time of request of data, state can be used for the state of tagged traffic request of data, specifically may include wait state, submit shape
State, completion status and status of fail etc..In this application, timestamp and state are all alternatively.
As one embodiment, when third dimension shield operation is used for state corresponding at least one service data request
When parameter is revised as submission state, second is carried out to the review record of each entry contents in offline database according to the submission result
Attended operation, including:
If the submission result of the 4th service data request of second entry content is submits successfully, in the off-line data
In the review record of the storehouse second entry content, the state parameter of the 4th service data request is revised as completion status;Or
Person
If the submission result of the 4th service data request of second entry content fails to submit, in the off-line data
In the review record of the storehouse second entry content, the state parameter of the 4th service data request is revised as status of fail.
Further, in the present embodiment, each entry contents are commented according to the submission result to offline database
After carrying out the second attended operation by record, this method may also include:It is completion periodically to delete state in the offline database
Parameter corresponding to the service data request of state.State is deleted as corresponding to the service data request of completion status by periodicity
Parameter, offline database can be avoided unrestrictedly to increase, be advantageous to maintenance of the community application to offline database.
Alternatively, as one embodiment, when third dimension shield operation is used to correspond at least one service data request
Timestamp parameter be revised as sending time of at least one service data request constantly, according to the submission result to offline
After the review record of each entry contents carries out the second attended operation in database, this method also includes:
If timestamp corresponding to the 5th service data request is more than predetermined with current time interval in the offline database
Time, then
5th business datum is regenerated according to parameter corresponding to the 5th service data request in the offline database
Request Concurrency gives the service server of the community application;Or
The timeout error message of 5th service data request is sent to the service server of the community application, the time-out
The service server that error message is used for the community application is counted.
Alternatively, as one embodiment, exit the community application in the user and lay equal stress on after new login, this method can also wrap
Include:According to parameter corresponding to each service data request in the offline database, generate service data request and be sent to the community
The service server of application.
It is concurrent by generating service data request according to offline database after login community is applied in the embodiment of the present application
Send, at least one service data request that user can be caused not yet to be submitted in the previous login community application of current mobile terminal
The chance that can be submitted again.
Below, the method for the embodiment of the present application will be further described in conjunction with specific embodiments.
Fig. 2 is the interaction diagrams of the comment processing method of one embodiment community application of the application.Shown in Fig. 2
In interaction diagrams, off-line module and UI modules are the functional modules of community application, before Sync gateways, worm hole server, business
It is to belong to the server or functional module of community application service end to put service end and business background server.It should be understood that in this Shen
Please be in embodiment, worm hole server is the server for handling offlineization associative operation, the worm hole clothes in embodiment illustrated in fig. 6
Business device is similar, repeats no more.
201, community application receives the comment operation of user.
Community application can receive comment operation of the user to community application.
It should be understood that in the embodiment of the present application, when community application is in off-line state or presence, community application is all
Comment operation of the user to user interface (User Interface, UI) interface of community application, the embodiment of the present application can be received
This is not restricted.
It should be understood that the comment of user operates commented on entry contents, can be the active user in some community application
Or some viewpoint that other users deliver, or active user or other users are to reply content of the viewpoint, etc..
It should be understood that reality application in, the comment operation may include as thumb up, cancel thumb up, pay close attention to, cancel concern,
Like, do not like etc. only to need to carry out the i.e. achievable brief comment operation of simple clicking operation, or to entry contents
Text reply etc. comment operation.
202, successfully interface is commented in community application displaying.
In the embodiment of the present application, community application receive UE comment operation after, can show directly on UI comment on into
Work(interface.
For example, user, after being thumbed up to entry contents 1, community application can directly display what entry contents 1 were thumbed up
Result is commented on, without showing that user thumbs up again after thumbing up comment to the submission of community application service end and obtaining feedback result
Comment result.
203, community application generation service data request is simultaneously sent.
Specifically, community application can operate according to the comment of user, construct business datum parameter, generation business datum please
Ask.The service data request is used to ask the comment result for submitting comment operation.
Specifically, in the service data request, it may include the mark of entry contents and the type of comment operation.
Alternatively, when the type of comment operation is replied for text, content of text is may also include in the service data request
Deng.
After community application generation service data request, business number can be sent to community application service end by Sync gateways
According to request.
If community application is in off-line state, service data request can be lined up by community application is put into evaluation submission queue
In, wait to be committed.The service data request data up as Sync, it can pass through when community application is in presence
Sync gateways are submitted to community application service end.
If community application is in presence when user carries out comment operation, community application can be commented directly according to user
Service data request is generated by the comment result of operation and is sent.
It should be understood, of course, that if community application is in presence, service data request can also be lined up and put by community application
Enter evaluation to submit in queue, wait to be committed.When the network delay of community application is more than predetermined threshold, by the way that business datum is asked
Ask and be put into evaluation submission queue, it may not be necessary to which whether latency services request of data is completed to submit the comment that can be carried out next time
Operation.
In addition, when a new service data request enters evaluation and submits queue, community application can be according to business datum
The mark of entry contents in request and the type of comment operation, it is determined whether merge operation.The union operation can be
Community application is carried out when being in off-line state.
It might as well assume that new the first service data request for entering evaluation submission queue is commented the first of first entry content
Valency operates.
If the comment, which is submitted in queue, has the second service data request, and second service data request is the user
The service data request generated after the second comment operation is carried out to the first entry content, and the second comment operation is commented with first
It is that the comment cancelled out each other operates by operation, then community application can delete second business datum in queue is submitted in the comment and ask
Sum first service data request.
One embodiment service data request that Fig. 3 is the application enters the scene that the processing operation after queue is submitted in comment
Schematic diagram.As shown in figure 3, current queue includes the service data request for 5 ID that CommentId is 1-5, comment corresponding to it
It is 1 (thumbing up), 1 (thumbing up), 0 (cancellation thumbs up), 0 (cancellation thumbs up), 1 (thumbing up) respectively by action type.
As shown in figure 3, as new service data request (CommentId:2, type:0) after entering comment submission queue, by
Service data request (CommentId present in queue is submitted in comment:2, type:1) service data request with newly entering
It is a pair of comment operations that can be cancelled out each other, therefore community application is deleted the union operation of the two service data requests
The two service data requests.Now comment submits remaining service data request in queue to include CommentId for 1,3,4,5
Entry contents corresponding to service data request.
If the comment, which is submitted in queue, has the 3rd service data request, and the 3rd service data request is the user
The service data request generated after the 3rd comment operation is carried out to the first entry content, and the 3rd comment operation is commented with first
Operated by the comment that operation is mutual exclusion, then community application can delete the 3rd service data request simultaneously in queue is submitted in the comment
Retain first service data request.
Another embodiment service data request that Fig. 4 is the application enters the field that the processing operation after queue is submitted in comment
Scape schematic diagram.As shown in figure 4, current queue includes the service data request for 5 ID that CommentId is 1-5, corresponding to it
It is 1 (liking), 1 (liking), 0 (not liking), 0 (not liking), 1 (liking) respectively to comment on action type.
As shown in figure 4, as new service data request (CommentId:2, type:0) after entering comment submission queue, by
Service data request (CommentId present in queue is submitted in comment:2, type:1) service data request with newly entering
It is the comment operation of a pair of mutual exclusions, the latter comment operation to same entry contents can cover previous comment and operate.Now
Comment submits remaining service data request in queue to include business corresponding to the entry contents that CommentId is 1,2,3,4,5
Request of data, but CommentId be 2 entry contents corresponding to the comment type of service data request be 0 (not liking), covering
Original result, and be moved to comment and submit the last of queue.
If the comment, which is submitted in queue, has the 4th service data request, and the 4th service data request is the user
The service data request generated after the 4th comment operation is carried out to the first entry content, and the 4th comment operation is commented with first
By operation neither the comment of mutual exclusion operates, nor the comment operation cancelled out each other, then community application can be submitted in the comment
Retain the 4th service data request and first service data request in queue.
The further embodiment service data request that Fig. 5 is the application enters the field that the processing operation after queue is submitted in comment
Scape schematic diagram.Current queue includes the service data request for 5 ID that CommentId is 1-5, comment operation class corresponding to it
Type is 1 (liking), 1 (liking), 0 (not liking), 0 (not liking), 1 (liking) respectively.
As shown in figure 5, as new service data request (CommentId:2, type:2) after entering comment submission queue, by
Service data request (CommentId present in queue is submitted in comment:2, type:1) service data request with newly entering
Neither the comment operation of mutual exclusion, nor the comment operation cancelled out each other, community application can retain two service data requests.
Certainly, community application can also merge to the two service data requests, may include that two are commented in a service data request
By action type.
When community application is in presence, community application can be by sending service data request, warp to Sync gateways
Long connection is established by the worm hole server of Sync gateways and community application service end.Then, community application can be according to business datum
The order in queue is submitted in comment is asked, service data request is submitted by Sync.
It should be understood, of course, that community application can not also submit the service data request in queue to merge operation comment.
204, community application renewal offline database.
It should be understood that while service data request is generated, community application can also count the service data request offline
According to being safeguarded in review record corresponding to the entry contents in storehouse.The review record can be store corresponding to service data request
Parameter.
Alternatively, parameter corresponding to service data request may include the mark of entry contents and the type of comment operation.
Alternatively, parameter corresponding to service data request may also include the data that the object of service data request is changed.
In addition, when community application submits service data request, community application also can be according to submitted business datum
Request, safeguards parameter corresponding to the service data request in offline database.
Alternatively, parameter corresponding to service data request may also include timestamp when user carries out comment operation, community
Using can service data request submission after, by the timestamp label of corresponding service data request in offline database for submit
Time.
Alternatively, parameter corresponding to service data request may also include the state of service data request, such as wait state,
Submission state, completion status and status of fail etc., wherein
Wait state is used to represent that service data request is etc. to be committed;
Submission state is used to represent that service data request is submitted, waits feedback result;
Completion status is used to represent that service data request is submitted and receives the successful feedback result of submission;
Status of fail is used to represent that service data request is submitted and receives the feedback result for submitting failure.
Community application according to user comment Operation and Maintenance offline database in corresponding service data request parameter when,
Can be wait state by the status indication of the service data request.
Community application can be after service data request submission, by the state of corresponding service data request in offline database
Labeled as the state of submission.
For ease of understanding, form 1 shows a kind of schematical data structure of off-line data library format.
Form 1:
One specific example of offline database is as shown in Table 2.
Form 2:
Attribute | Type | Explanation |
ID | int | 1000061650 |
Type | int | 0 |
SubType | String | FOLLOW |
Content Data | String | “follow_type:0” |
Create Time | String | 1488202985590 |
Status | String | COMPLETE |
Wherein, type TYPE is 0, represents worm hole type.
It should be understood, of course, that parameter corresponding to service data request may also include other fields in offline database.It is optional
Ground, for example, when the type of comment operation is replied for text, parameter corresponding to service data request may also include comment operation pair
Content of text answered, etc..
Alternatively, when the first service data request is stored in offline database, if having second in offline database
Service data request, mark and the entry contents of the first service data request of the entry contents of second service data request
Identify identical, and the comment operation of the second service data request is that the comment cancelled out each other operates with the first service data request,
Then community application can delete the parameter of the second service data request, while not store the parameter of the first service data request.
Or alternatively, when the first service data request is stored in offline database, if existed in offline database
3rd service data request, the entry contents of the 3rd service data request are identified in the entry with the first service data request
The mark of appearance is identical, and the comment operation of the 3rd service data request and the comment operation that the first service data request is mutual exclusion,
Then community application can use the parameter of the service data request of parameters distribution first of the 3rd service data request.
Certainly, if there is no the second service data request corresponding with the first service data request or the 3rd business datum
Request, community application can directly store the parameter of first service data request in offline database.
If in addition, the 4th service data request in offline database be present, in the entry of the 4th service data request
The mark of appearance is identical with the mark of the entry contents of the first service data request, and the 4th the first business datum of service data request
Request is neither the comment cancelled out each other operates the comment operation nor mutual exclusion, then community application can ask the second business datum
Parameter and the parameter asked of the 3rd business datum be merged into a review record.Certainly, community application is also divided into multiple comment
By record storage.
Certainly, if community application does not submit the service data request in queue to merge comment in step 203
Operation, then parameter corresponding to service data request directly can be added to commenting for offline database by community application in step 204
By in record.
205, Sync gateways send service data request.
When community application is in presence, community application can be by Sync gateway service request of data, so as to build
The vertical long connection with worm hole server.
206, the virtual RPC interfaces of worm hole server access.
Worm hole server passes through the virtual long invocation of procedure (Remote Procedure Call, RPC) interface access service
Preposition service end (mFinSnsProd).
207, the preposition service end access service backstage comment interface of business.
The preposition service end of business (mFinSnsProd) further may have access to business backstage corresponding to service data request and comment on
Interface.For example, when service data request is to thumb up operation, after the preposition service end of business (mFinSnsProd) may have access to business
Platform thumbs up interface, etc..
208, business background server feedback comments operating result.
Business background server (seccommunity) is according to the preposition service end of business (mFinSnsProd) to business backstage
The access of interface is commented on, feedback comments operating result is to the preposition service end of business (mFinSnsProd).
209, the preposition service end of business passes through virtual RPC interfaces feedback comments operating result.
The comment that the preposition service end of business (mFinSnsProd) is fed back according to business background server (seccommunity)
Operating result, worm hole server is fed back to by virtual RPC interfaces.
210, worm hole server issues comment operating result.
Worm hole server feeds back to Sync gateways by operating result is commented on.
It should be understood that the specific implementation in step 205 to step 210 refers to prior art, the embodiment of the present application to this not
It is restricted.In addition, community application can also be sent service data request to community application service end using other modes, and connect
Feedback of the community application service end to service data request is received, the embodiment of the present application is not restricted to this.
211, community application renewal offline database.
The comment operating result that community application can be fed back according to Sync gateways, directly updates offline database.
Specifically, if comment operating result shows the submission result to service data request to submit successfully, community
Using parameter corresponding to the service data request can be deleted in the offline database.
Or if comment operating result shows that submission result to service data request fails to submit, this from
In line database, retain parameter corresponding to the service data request.
Alternatively, when parameter corresponding to the service data request includes the state of service data request, if comment
Operating result shows submission result to service data request to submit successfully, then community application can in the offline database incite somebody to action
The status indication of the service data request is completion status;Or if comment operating result shows to service data request
Result is submitted to fail to submit, then community application can lose the status indication of the service data request in the offline database
Lose state.
Further, community application can also periodically delete the business number that state in the offline database is completion status
According to parameter corresponding to request.
Fig. 6 is the interaction diagrams of the comment processing method of another embodiment community application of the application.Shown in Fig. 6
Interaction diagrams in, off-line module and UI modules are the functional modules of community application, Sync gateways, worm hole server, business
Preposition service end and business background server is to belong to the server or functional module of community application service end.
601, community application generates service data request according to offline database and sent.
In the embodiment of the present application, the specific Format Reference embodiment illustrated in fig. 2 of offline database.
Alternatively, in a kind of application scenarios, when community application because a variety of causes exits, the society is logged in again in the user
After area's application, according to the review record of each entry contents in the offline database, service data request is generated.
Or alternatively, in another application scenarios, community application can receive the feedback result of submission failure
Afterwards, the menu option uploaded again can be shown to user, and when detecting that the user clicks on the menu option, based on working as
The parameter of each service data request regenerates service data request in the offline database of preceding moment.
Or alternatively, in another application scenarios, community application can also business in periodic test offline database
Timestamp in parameter corresponding to request of data.If in the offline database timestamp corresponding to service data request with it is current
Time interval was more than for second scheduled time, then community application parameter according to corresponding to the service data request in the offline database
Regenerate the service data request.
After community application generation service data request, it can be transmitted to Sync gateways.
602, Sync gateways send service data request.
603, the virtual RPC interfaces of worm hole server access.
604, the preposition service end access service backstage comment interface of business.
605, business background server feedback comments operating result.
606, the preposition service end of business passes through virtual RPC interfaces feedback comments operating result.
607, worm hole server issues comment operating result.
608, community application renewal offline database.
Step 602-608 specific implementation refers to the step 205-211 of embodiment illustrated in fig. 2, and the embodiment of the present application exists
This is repeated no more.
Fig. 7 is the structural representation of one embodiment electronic equipment of the application.Fig. 7 is refer to, in hardware view, the electricity
Sub- equipment includes processor, alternatively also includes internal bus, network interface, memory.Wherein, memory may include interior
Deposit, such as high-speed random access memory (Random-Access Memory, RAM), it is also possible to also including non-volatile memories
Device (non-volatile memory), for example, at least 1 magnetic disk storage etc..Certainly, the electronic equipment is also possible that other
Hardware required for business.
Processor, network interface and memory can be connected with each other by internal bus, and the internal bus can be ISA
(Industry Standard Architecture, industry standard architecture) bus, PCI (Peripheral
Component Interconnect, Peripheral Component Interconnect standard) bus or EISA (Extended Industry Standard
Architecture, EISA) bus etc..The bus can be divided into address bus, data/address bus, control always
Line etc..For ease of representing, only represented in Fig. 7 with a four-headed arrow, it is not intended that an only bus or a type of
Bus.
Memory, for depositing program.Specifically, program can include program code, and the program code includes computer
Operational order.Memory can include internal memory and nonvolatile memory, and provide instruction and data to processor.
Processor read from nonvolatile memory corresponding to computer program into internal memory then run, in logical layer
Formed on face and cut short comment processing unit.Processor, the program that memory is deposited is performed, and specifically for performing following grasp
Make:
Operated according to first comment of the user to the first entry content of community application, show commenting for the first comment operation
By result, and the first service data request corresponding to the first comment operation is generated, and in the offline database of the community application
In the first attended operation is carried out to the review record of the first entry content, the review record is used to record the first entry content
Not yet obtain submitting parameter corresponding to the service data request confirmed;
, please by least one business datum not yet submitted in the community application when the community application is in presence
The service server for being sent to the community application is sought, and receives the submission result of the service server feedback of the community application, and
Second attended operation is carried out to the review record of each entry contents in offline database according to the submission result.
The method that the above-mentioned comment processing unit as disclosed in the application Fig. 1, Fig. 2, embodiment illustrated in fig. 6 performs can be applied
Realized in processor, or by processor.Processor is probably a kind of IC chip, has the disposal ability of signal.
In implementation process, each step of the above method can pass through the integrated logic circuit or software form of the hardware in processor
Instruction complete.Above-mentioned processor can be general processor, including central processing unit (Central Processing
Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital
Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit,
ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other FPGAs
Device, discrete gate or transistor logic, discrete hardware components.It can realize or perform the public affairs in the embodiment of the present application
Each method, step and the logic diagram opened.General processor can be microprocessor or the processor can also be it is any often
Processor of rule etc..The step of method with reference to disclosed in the embodiment of the present application, can be embodied directly in hardware decoding processor and hold
Row is completed, or performs completion with the hardware in decoding processor and software module combination.Software module can be located at deposits at random
Reservoir, flash memory, read-only storage, this area such as programmable read only memory or electrically erasable programmable memory, register
In ripe storage medium.The storage medium is located at memory, and processor reads the information in memory, is completed with reference to its hardware
The step of above method.
The electronic equipment can also carry out Fig. 1 method, and realize comment processing unit in Fig. 1, Fig. 2, embodiment illustrated in fig. 6
Function, the embodiment of the present application will not be repeated here.
Certainly, in addition to software realization mode, the electronic equipment of the application is not precluded from other implementations, for example patrols
Collect mode of device or software and hardware combining etc., that is to say, that the executive agent of following handling process is not limited to each patrol
Collect unit or hardware or logical device.
The embodiment of the present application also proposed a kind of computer-readable recording medium, the computer-readable recording medium storage one
Individual or multiple programs, one or more programs include instruction, and the instruction is when the portable electronic for being included multiple application programs
When equipment performs, the method for portable electric appts execution embodiment illustrated in fig. 1 can be made.
Fig. 8 is the structural representation of one embodiment comment processing unit 800 of the application.Fig. 8 is refer to, a kind of soft
In part embodiment, comment processing unit 800 may include:Display unit 810, generation unit 820, maintenance unit 830, transmission are single
Member 840 and receiving unit 850.
Display unit 810, operated according to first comment of the user to the first entry content of community application, show this first
Comment on the comment result of operation;
Generation unit 820, generate the first service data request corresponding to the first comment operation;
Maintenance unit 830, the review record of the first entry content is carried out in the offline database of the community application
First attended operation, the review record are used to record the service data request pair that the first entry content not yet obtains submitting confirmation
The parameter answered;
Transmitting element 840, when the community application is in presence, will not yet be submitted in the community application at least one
Individual service data request is sent to the service server of the community application;
Receiving unit 850, receive the submission result of the service server feedback of the community application;
The maintenance unit 830, the review record of each entry contents in offline database is carried out always according to the submission result
Second attended operation.
In the embodiment of the present application, comment processing unit 800 by by the comment result of user directly display and store from
In line database, and the comment result of offline database is submitted to the community application when community application is in presence
Server, and safeguard according to the submission result of feedback the comment result in offline database so that user can be independent of net
The comment result that network environment is commented on community application and shown, so as to ensure the smoothness of user comment operation
Property, provide the user more preferable Consumer's Experience.
Alternatively, as one embodiment, first service data request is also added to the community by transmitting element 840 should
Queue is submitted in comment, and it is the processing queue that the community application submits comment result that queue is submitted in the comment;Wherein, send single
Order of the member 840 according to service data request in queue is submitted in the comment, the service data request is sent into the community should
Service server.
Alternatively, the first attended operation includes:One or more in addition operation, deletion action and modification operation.
Alternatively, as one embodiment, maintenance unit 830 added in the review record of the first entry content this
Parameter corresponding to one service data request, is specifically included:Maintenance unit 830 adds in the review record of the first entry content
Parameter corresponding to first service data request.
Further, maintenance unit 830 adds first business datum in the review record of the first entry content and asked
Corresponding parameter is sought, is specifically included:If the comment is submitted to be not present in queue and operation mutual exclusion or mutually supported with first comment
Disappear comment operation corresponding to service data request, then maintenance unit 830 added in the review record of the first entry content
Parameter corresponding to first service data request.
Comment processing unit 800 may also include merging treatment unit 860.
Alternatively, as one embodiment, if the comment, which is submitted in queue, has the second service data request, and this
Two service data requests are the service data requests that the user generates after the second comment operation is carried out to the first entry content,
And the second comment operation and the first comment operation are that the comment cancelled out each other operates, then in transmitting element 840 by the community
At least one service data request not yet submitted in is sent to before the service server of the community application, merging treatment
Unit 860 can delete second service data request and first service data request in queue is submitted in the comment;Safeguard single
Member 830 can delete parameter corresponding to second service data request in the review record of the first entry content.
Alternatively, as another embodiment, if the comment, which is submitted, has the 3rd service data request in queue, and should
3rd service data request is that the business datum that the user generates after the 3rd comment operation is carried out to the first entry content please
Ask, and the 3rd comment operation is that the comment for belonging to mutual exclusion with the first comment operation operates, then transmitting element 840 is by the society
At least one service data request not yet submitted in area's application is sent to before the service server of the community application, at merging
Reason unit 860 can delete the 3rd service data request in queue is submitted in the comment and retain first service data request;
Parameter corresponding to 3rd service data request can be revised as by maintenance unit 830 in the review record of the first entry content
Parameter corresponding to first service data request.It should be understood, of course, that maintenance unit 830 also can commenting in the first entry content
By deleting parameter corresponding to the 3rd service data request in record, and add parameter corresponding to first service data request.
Alternatively, the second attended operation includes:One or more in deletion action, modification operation and reservation operations.
Alternatively, as one embodiment, if the submission result of the 4th service data request of second entry content is
Submit successfully, then maintenance unit 830 carries out the according to the submission result to the review record of each entry contents in offline database
Two attended operations, it may include:Maintenance unit 830 is deleted in the offline database to be somebody's turn to do in the review record of the second entry content
Parameter corresponding to 4th service data request.
Alternatively, as another embodiment, if the submission knot of the 4th service data request of the second entry content
Fruit fails to submit, then maintenance unit 830 enters according to the submission result to the review record of each entry contents in offline database
The attended operation of row second, it may include:Maintenance unit 830 retains in the review record of the offline database second entry content
Parameter corresponding to 4th service data request.
Further, generation unit 820 can also be after first scheduled time, based on each business number in the offline database
Service data request is regenerated according to the parameter of request, and the business service of the community application is sent to by transmitting element 840
Device.
Alternatively, as one embodiment, maintenance unit 830 according to the submission result to offline database in each entry
After the review record of content carries out the second attended operation, display unit 810 may also display the menu option uploaded again;Generation
After unit 820 can also click on the menu option detecting the user, based on each business number in the current time offline database
Service data request is regenerated according to the parameter of request, and the business service of the community application is sent to by transmitting element 840
Device.
Alternatively, as one embodiment, at least one industry that transmitting element 840 will not yet be submitted in the community application
Business request of data is sent to after the service server of the community application, and maintenance unit 830 is also at least one business datum
Request corresponding review record in the offline database carries out third dimension shield operation, by least one service data request
Corresponding state parameter is revised as submission state, and/or timestamp parameter corresponding at least one service data request is repaiied
It is changed to send the time of at least one service data request.
Further, when third dimension shield operation is used to repair state parameter corresponding at least one service data request
When being changed to submission state, maintenance unit 830 enters according to the submission result to the review record of each entry contents in offline database
The attended operation of row second, it may include:If the submission result of the 4th service data request of second entry content for submit into
Work(, then maintenance unit 830 can be in the review record of the offline database second entry content, please by the 4th business datum
The state parameter asked is revised as completion status;Or the if submission result of the 4th service data request of second entry content
Fail to submit, then maintenance unit 830 can be in the review record of the offline database second entry content, by the 4th industry
The state parameter of business request of data is revised as status of fail.
Further, maintenance unit 830 according to the submission result to offline database in each entry contents comment remember
After record carries out the second attended operation, it is completion status that maintenance unit 830, which can also periodically delete state in the offline database,
Service data request corresponding to parameter.
Further, when third dimension shield operation is used to repair timestamp parameter corresponding at least one service data request
When being changed to send the time of at least one service data request, if the 5th service data request is corresponding in the offline database
Timestamp and current time interval be more than for second scheduled time, then generation unit 820 can be according to this in the offline database the
Parameter corresponding to five service data requests regenerates the 5th service data request, and is sent to this by transmitting element 840
The service server of community application.
Or further, when third dimension shield operation is used for timestamp corresponding at least one service data request
When parameter is revised as sending the time of at least one service data request, if the 5th business datum please in the offline database
Timestamp was more than for second scheduled time with current time interval corresponding to asking, then transmitting element 840 can be by the 5th business datum
The timeout error message of request is sent to the service server of the community application, and the timeout error message is used for the community application
Service server is counted.
Alternatively, as one embodiment, generation unit 820 can also exit the community application in the user and lay equal stress on Xindeng
After record, according to parameter corresponding to each service data request in the offline database, service data request is generated, and it is single by sending
Member 840 is sent to the service server of the community application.
In the embodiment of the present application, comment processing unit 800 can also carry out Fig. 1 method, and realize that comment processing unit exists
Fig. 1, Fig. 2, embodiment illustrated in fig. 6 function, the embodiment of the present application will not be repeated here.
The embodiment of the present application additionally provides a kind of community application system, includes the comment processing unit of embodiment illustrated in fig. 8
800, or Fig. 7 is the comment processing unit that is stored of one embodiment electronic equipment of the application.
The embodiment of the present application additionally provides a kind of computer-readable recording medium, the computer-readable recording medium storage one
Individual or multiple programs, one or more programs include instruction, and the instruction is held when the electronic equipment for being included multiple application programs
During row so that the electronic equipment performs following operate:
Operated according to first comment of the user to the first entry content of community application, show commenting for the first comment operation
By result, and the first service data request corresponding to the first comment operation is generated, and in the offline database of the community application
In the first attended operation is carried out to the review record of the first entry content, the review record is used to record the first entry content
Not yet obtain submitting parameter corresponding to the service data request confirmed;
, please by least one business datum not yet submitted in the community application when the community application is in presence
The service server for being sent to the community application is sought, and receives the submission result of the service server feedback of the community application, and
Second attended operation is carried out to the review record of each entry contents in offline database according to the submission result.
In a word, the preferred embodiment of the application is the foregoing is only, is not intended to limit the protection domain of the application.
All any modification, equivalent substitution and improvements within spirit herein and principle, made etc., should be included in the application's
Within protection domain.
System, device, module or the unit that above-described embodiment illustrates, it can specifically be realized by computer chip or entity,
Or realized by the product with certain function.One kind typically realizes that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cell phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet PC, wearable device or these equipment
The combination of equipment.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moved
State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.Define, calculate according to herein
Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability
Comprising so that process, method, commodity or equipment including a series of elements not only include those key elements, but also wrapping
Include the other element being not expressly set out, or also include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described
Other identical element also be present in the process of element, method, commodity or equipment.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment
Divide mutually referring to what each embodiment stressed is the difference with other embodiment.It is real especially for system
For applying example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method
Part explanation.
Claims (18)
1. a kind of comment processing method of community application, including:
Operated according to first comment of the user to the first entry content of community application, the comment of display the first comment operation
As a result, and the first service data request corresponding to the first comment operation is generated, and in the off-line data of the community application
The first attended operation is carried out to the review record of the first entry content in storehouse, the review record is used to record described first
Entry contents not yet obtain submitting parameter corresponding to the service data request confirmed;
, please by least one business datum not yet submitted in the community application when the community application is in presence
The service server for being sent to the community application is sought, and receives the submission knot of the service server feedback of the community application
Fruit, and the second attended operation is carried out to the review record of each entry contents in offline database according to the submission result.
2. the method as described in claim 1,
After the first service data request corresponding to the first comment operation is generated, methods described also includes:By described
Queue is submitted in the comment that one service data request is added to the community application, and it is the community application that queue is submitted in the comment
Submit the processing queue of comment result;
Wherein, at least one service data request not yet submitted in the community application is sent to the industry of the community application
Business server includes:According to order of the service data request in queue is submitted in the comment, by least one business number
The service server of the community application is sent to according to request.
3. method as claimed in claim 2, first attended operation includes:Addition operation, deletion action and modification operation
In one or more.
4. method as claimed in claim 3, it is characterised in that
The first attended operation is carried out to the review record of the first entry content in the offline database of the community application
Including:
Parameter corresponding to first service data request is added in the review record of the first entry content.
5. method as claimed in claim 4, the first business number is added in the review record of the first entry content
According to parameter corresponding to request, including:
It is not present if the comment is submitted in queue and the described first comment operation mutual exclusion or the comment operation pair cancelled out each other
The service data request answered, added in the review record of the first entry content corresponding to first service data request
Parameter.
6. method as claimed in claim 3,
If the comment, which is submitted in queue, has the second service data request, and second service data request is the use
The service data request that family generates after the second comment operation is carried out to the first entry content, and the second comment operation
It is that the comment cancelled out each other operates with the described first comment operation, then at least one by what is not yet submitted in the community application
Service data request is sent to before the service server of the community application, and methods described also includes:Submitted in the comment
Second service data request and first service data request are deleted in queue;
Wherein, the first maintenance is carried out to the review record of the first entry content in the offline database of the community application
Operation, including:Parameter corresponding to second service data request is deleted in the review record of the first entry content.
7. method as claimed in claim 3,
If the comment, which is submitted in queue, has the 3rd service data request, and the 3rd service data request is the use
The service data request that family generates after the 3rd comment operation is carried out to the first entry content, and the 3rd comment operation
It is that the comment for belonging to mutual exclusion with the described first comment operation operates, then at least one by what is not yet submitted in the community application
Service data request is sent to before the service server of the community application, and methods described also includes:Submitted in the comment
The 3rd service data request is deleted in queue and retains first service data request;
Wherein, the first maintenance is carried out to the review record of the first entry content in the offline database of the community application
Operation, including:Parameter corresponding to 3rd service data request described in the review record of the first entry content is revised as
Parameter corresponding to first service data request.
8. the method as described in claim 1,
Second attended operation includes:One or more in deletion action, modification operation and reservation operations.
9. method as claimed in claim 8,
Carrying out the second attended operation to the review record of each entry contents in offline database according to the submission result includes:
If the submission result of the 4th service data request of second entry content is submits successfully, in the offline database
Parameter corresponding to 4th service data request described in the middle review record for deleting the second entry content;Or
If the submission result of the 4th service data request of the second entry content fails to submit, in the offline number
Stated according to place and retain parameter corresponding to the 4th service data request in the review record of second entry content.
10. method as claimed in claim 8, the comment of each entry contents according to the submission result to offline database
After record carries out the second attended operation, methods described also includes:
After first scheduled time, the parameter based on each service data request in the offline database regenerates business number
The service server of the community application is given according to request Concurrency.
11. method as claimed in claim 8,
At least one service data request not yet submitted in the community application is being sent to the business of the community application
After server, methods described also includes:
To at least one service data request, corresponding review record carries out third dimension shield behaviour in the offline database
Make, state parameter corresponding at least one service data request is revised as submission state, and/or at least one by described in
Timestamp parameter corresponding to individual service data request is revised as sending the time of at least one service data request.
12. method as claimed in claim 11,
When third dimension shield operation is used to be revised as submitting by state parameter corresponding at least one service data request
During state, the second attended operation bag is carried out to the review record of each entry contents in offline database according to the submission result
Include:
If the submission result of the 4th service data request of second entry content is submits successfully, in the offline database
In the review record of the second entry content, the state parameter of the 4th service data request is revised as completion status;
Or
If the submission result of the 4th service data request of second entry content fails to submit, in the offline database
In the review record of the second entry content, the state parameter of the 4th service data request is revised as status of fail.
13. method as claimed in claim 12, according to comment of the submission result to each entry contents in offline database
After record carries out the second attended operation, methods described also includes:
It is parameter corresponding to the service data request of completion status periodically to delete state in the offline database.
14. method as claimed in claim 11,
When third dimension shield operation is used to be revised as timestamp parameter corresponding at least one service data request to send institute
When stating the time of at least one service data request, each entry contents are commented according to the submission result to offline database
After carrying out the second attended operation by record, methods described also includes:
If timestamp corresponding to the 5th service data request and current time interval are pre- more than second in the offline database
Fix time, then
Parameter corresponding to the 5th service data request regenerates the 5th business number according to the offline database
The service server of the community application is given according to request Concurrency;Or
The timeout error message of 5th service data request is sent to the service server of the community application, it is described super
When error message be used for the community application service server counted.
15. such as the method any one of claim 1-14, exit the community application in the user and lay equal stress on new login
Afterwards, methods described also includes:
According to parameter corresponding to each service data request in the offline database, generate service data request and be sent to described
The service server of community application.
16. a kind of comment processing unit of community application, including:
Display unit, operated according to first comment of the user to the first entry content of community application, display first comment
The comment result of operation;
Service data request unit, the first service data request corresponding to generation the first comment operation;
Maintenance unit, first is carried out to the review record of the first entry content in the offline database of the community application
Attended operation, the review record are used to record the service data request pair that the first entry content not yet obtains submitting confirmation
The parameter answered;
Transmitting element, it is at least one by what is not yet submitted in the community application when the community application is in presence
Service data request is sent to the service server of the community application;
Receiving unit, receive the submission result of the service server feedback of the community application;
The maintenance unit, second is carried out to the review record of each entry contents in offline database always according to the submission result
Attended operation.
17. a kind of comment processing unit of community application, including:
Processor;And
It is arranged to store the memory of computer executable instructions, the executable instruction makes the processor when executed
Perform following operate:
Operated according to first comment of the user to the first entry content of community application, the comment of display the first comment operation
As a result, and the first service data request corresponding to the first comment operation is generated, and in the off-line data of the community application
The first attended operation is carried out to the review record of the first entry content in storehouse, the review record is used to record described first
Entry contents not yet obtain submitting parameter corresponding to the service data request confirmed;
, please by least one business datum not yet submitted in the community application when the community application is in presence
The service server for being sent to the community application is sought, and receives the submission knot of the service server feedback of the community application
Fruit, and the second attended operation is carried out to the review record of each entry contents in offline database according to the submission result.
18. a kind of computer-readable recording medium, the computer-readable recording medium storage one or more program, described one
Individual or multiple programs are when the electronic equipment for being included multiple application programs performs so that the electronic equipment performs following grasp
Make:
Operated according to first comment of the user to the first entry content of community application, the comment of display the first comment operation
As a result, and the first service data request corresponding to the first comment operation is generated, and in the off-line data of the community application
The first attended operation is carried out to the review record of the first entry content in storehouse, the review record is used to record described first
Entry contents not yet obtain submitting parameter corresponding to the service data request confirmed;
, please by least one business datum not yet submitted in the community application when the community application is in presence
The service server for being sent to the community application is sought, and receives the submission knot of the service server feedback of the community application
Fruit, and the second attended operation is carried out to the review record of each entry contents in offline database according to the submission result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710271334.6A CN107391536A (en) | 2017-04-24 | 2017-04-24 | The comment processing method of community application, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710271334.6A CN107391536A (en) | 2017-04-24 | 2017-04-24 | The comment processing method of community application, device and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107391536A true CN107391536A (en) | 2017-11-24 |
Family
ID=60338873
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710271334.6A Pending CN107391536A (en) | 2017-04-24 | 2017-04-24 | The comment processing method of community application, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107391536A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110134880A (en) * | 2019-05-20 | 2019-08-16 | 北京字节跳动网络技术有限公司 | Offer, display methods, device, electronic equipment and the storage medium of comment data |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1929405A (en) * | 2006-08-21 | 2007-03-14 | 华为技术有限公司 | Off-line configuration management system and method based on client/server structure |
CN101167046A (en) * | 2005-04-22 | 2008-04-23 | 微软公司 | Sync manager conflict resolution |
CN101212793A (en) * | 2006-12-28 | 2008-07-02 | 中国移动通信集团公司 | Service processing system and method |
CN102457499A (en) * | 2010-10-26 | 2012-05-16 | 腾讯科技(深圳)有限公司 | Offline working method for client, and offline working client |
-
2017
- 2017-04-24 CN CN201710271334.6A patent/CN107391536A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101167046A (en) * | 2005-04-22 | 2008-04-23 | 微软公司 | Sync manager conflict resolution |
CN1929405A (en) * | 2006-08-21 | 2007-03-14 | 华为技术有限公司 | Off-line configuration management system and method based on client/server structure |
CN101212793A (en) * | 2006-12-28 | 2008-07-02 | 中国移动通信集团公司 | Service processing system and method |
CN102457499A (en) * | 2010-10-26 | 2012-05-16 | 腾讯科技(深圳)有限公司 | Offline working method for client, and offline working client |
Non-Patent Citations (1)
Title |
---|
金兆毅: "智能客户端离线关键技术研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110134880A (en) * | 2019-05-20 | 2019-08-16 | 北京字节跳动网络技术有限公司 | Offer, display methods, device, electronic equipment and the storage medium of comment data |
CN110134880B (en) * | 2019-05-20 | 2022-04-15 | 北京字节跳动网络技术有限公司 | Comment data providing method, comment data displaying method, comment data providing device, comment data displaying device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110163590B (en) | Payment withholding method and device based on block chain, electronic equipment and storage medium | |
US9092575B2 (en) | System and method for providing access to data in a plurality of software development systems | |
US8819617B1 (en) | System and method for providing access to data in a plurality of software development systems | |
CN110147990B (en) | Payment withholding subscription method and device based on block chain and electronic equipment | |
US11301136B2 (en) | Capacity forecasting based on capacity policies and transactions | |
CN105005532B (en) | A kind of system and method for automatic test application programming interfaces stability | |
JP4536817B2 (en) | Dynamic relocation of workflow by end user | |
CN107395665A (en) | A kind of block chain service handling and business common recognition method and device | |
CN104216912A (en) | Method and device for achieving non-intrusive service form workflow | |
CN106201481A (en) | Assembly management method and apparatus in application development system | |
CN106649788A (en) | Database data transmission method and device | |
CN105009089B (en) | For promoting the device and method of the management to instruction violation behavior | |
CN106599018A (en) | Inventory operation method and system | |
CN109600724A (en) | A kind of method and apparatus that short message is sent | |
CN108491163A (en) | A kind of big data processing method, device and storage medium | |
CN106294151A (en) | Daily record method of testing and device | |
US8463755B2 (en) | System and method for providing collaborative master data processes | |
US10838698B2 (en) | Providing a reuse capability for visual programming logic within a building tool | |
CN107391536A (en) | The comment processing method of community application, device and system | |
Romero et al. | Integration of DevOps practices on a noise monitor system with CircleCI and Terraform | |
US10798191B1 (en) | Processor for analyzing heterogeneous data streams across multiple modes and multiple parties | |
CN110362294A (en) | Development task executes method, apparatus, electronic equipment and storage medium | |
US20060136924A1 (en) | Workflow process management system including shadow process instances | |
US20150169433A1 (en) | Automated Generation of Semantically Correct Test Data for Application Development | |
CN110888695A (en) | Method and device for generating page based on permission |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 1247305 Country of ref document: HK |
|
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171124 |
|
RJ01 | Rejection of invention patent application after publication |