Summary of the invention
The main purpose of the application is to provide a kind of content release processing method, client, server for community,
To solve the problems, such as that content publication review efficiency is low.
To achieve the goals above, it is provided a kind of in community according to the one aspect of the application in client
Hold release processing method.
The content release processing method for community according to the application includes: to generate first content and send described first
The posting request of content;Receive by after asynchronous process, by machine learning audit pass through according to preset interface data format
To the data of the first content typesetting.
Further, machine learning audit include: it is preparatory obtain audit by and unsanctioned second content, and will
Second content obtains default learning model as training sample training;The default learning model is used for as audit foot
This filters the pending first content.
Further, the result for receiving the asynchronous process includes: that the data of the first content are stored in a queue
In log and log recording ID is returned to, and by obtaining the log recording ID and patrolling with the associated business of the first content
Volume, and the processing result after being delivered in queue service.
Further, it is described receive the asynchronous process after further include: the step of asynchronous compensation, the asynchronous compensation
Step includes: to check queue stl status by timed task, judges whether queue task handles success;If it fails, then
The corresponding request task of queue log of abnormal state is carried out retrying processing or alarm operation.
A kind of content release processing method for community is provided in server end according to the one aspect of the application.
The content release processing for community according to the application includes: to receive the posting request of the first content;It will
The data of the first content are stored in a queue log and return to log recording ID;Obtain the log recording ID and with institute
The associated service logic of first content is stated, and is delivered in queue service, so as to carry out asynchronous execution in queue handler;
It is audited through the queue handler using machine learning model to the processing result of the first content;If using machine
Learning model audit passes through, then returns according to preset interface data format to the data of the first content typesetting.
Further, the processing by the queue handler to the first content is audited using machine learning model
Result include: it is preparatory obtain audit by and unsanctioned second content, and second content is trained as training sample
Obtain machine learning model;The machine learning model is used to filter the pending first content as audit script.
Further, the asynchronous process includes: that the data of the first content are stored in a queue log and are returned
Return log recording ID, and by obtain the log recording ID and with the associated service logic of the first content, and deliver
Into queue service, so as to carry out asynchronous execution in queue handler.
Further, the asynchronous process further include: the step of asynchronous compensation, the step of asynchronous compensation includes: logical
It crosses timed task and checks queue stl status, judge whether queue task handles success;If it fails, then to abnormal state
The corresponding request task of queue log carries out retrying processing or alarm operation.
To achieve the goals above, according to the another aspect of the application, a kind of content release office for community is provided
The client of reason, including the content release processing method for community in the client.
To achieve the goals above, according to the another aspect of the application, a kind of content release office for community is provided
The server of reason is configured as executing the content release processing method for community in the server end
In the embodiment of the present application, by the way of generating first content and sending the posting request of the first content,
By receiving by after asynchronous process, by machine learning audit pass through according to preset interface data format in described first
The data for holding typesetting have achieved the purpose that the invalid publication content of automatic fitration, to realize the compliance for guaranteeing content
Technical effect, and then solve the low technical problem of content publication review efficiency.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only
The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people
Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection
It encloses.
It should be noted that the description and claims of this application and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to embodiments herein described herein.In addition, term " includes " and " tool
Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing a series of steps or units
Process, method, system, product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include without clear
Other step or units listing to Chu or intrinsic for these process, methods, product or equipment.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
As shown in Figure 1, this method includes the following steps, namely S102 to step S104:
Step S102 generates first content and sends the posting request of the first content;
First content to be released is generated on the client, and the hair of first content is then sent by user end to server
Cloth request.
The generation first content is suitable for the application scenarios such as community, forum, Ask-Answer Community, Commentary Systems, comprising: post,
Send back to multiple, hair comment, the first content replying comment and being related to when executing aforesaid operations.
The client can provide client-side interface using modes such as H5, application programs.
Step S104, receives by after asynchronous process, by machine learning audit pass through according to preset interface data lattice
Data of the formula to the first content typesetting.
What is received in the client is after asynchronous process and needs content auditing mechanism via machine learning
Audit the data of the first content typesetting passed through.That is, content publication can be first carried out in the client, it is rear to carry out
The content auditing mechanism of the machine learning of content is audited.The publication of the first content generated and sent in the client
Request, needs in server end to being stored, and then inquiry needs the first content issued in the database again.And described
What client received needs to meet server end different according to data of the preset interface data format to the first content typesetting
The related request of step processing and review mechanism.
It, can be by server end by by those data packets in the data for the first content typesetting that client receives
Dress up client needs format i.e. to the first content progress typesetting, without first store again from data base querying just now
The content of storage.And the data of the first content typesetting received in the client, it is also possible to be united by server end
The one data-interface format provided, inquires the publication content just stored again from database.No matter and it should be noted that
Using any content issue mechanism, require to pass through by the asynchronous process and content auditing of server end.
Specifically, first content auditing related procedure is launched into queue service using the mode of asynchronous process, is given
Queue handler processing.And it is divided into automatic audit and manual examination and verification, the automatic content auditing audited by machine learning in audit
Mechanism audits script automatic fitration, and the content that can not be filtered enters artificial pending list and carries out manual examination and verification.
Content auditing mechanism by the machine learning provided in the embodiment of the present application, passes through audit or unacceptable
Content sample is trained, by machine learning, reinforce content first issue audit afterwards or Li Fali show in audit script
Auditing capabilities, the invalid publication content of automatic fitration, guarantee the compliance of content.
It can be seen from the above description that the application realizes following technical effect:
In the embodiment of the present application, by the way of generating first content and sending the posting request of the first content,
By receiving by after asynchronous process, by machine learning audit pass through according to preset interface data format in described first
The data for holding typesetting have achieved the purpose that the invalid publication content of automatic fitration, to realize the compliance for guaranteeing content
Technical effect, and then solve the low technical problem of content publication review efficiency.
According to the embodiment of the present application, as preferred in the present embodiment, as shown in Fig. 2, machine learning audit includes:
Step S202, acquisition audit in advance passes through and unsanctioned second content, and using second content as training
Sample training obtains default learning model;
The second content that audit passes through and the audit fails is obtained in advance in server end, and second content is as machine
The positive negative sample of device study, to obtain default learning model for second content as training sample training.
It should be noted that those skilled in the art can obtain default learning model using various ways training, at this
It is not defined in application, as long as can satisfy the condition of the default learning model of training.
The default learning model is used to filter the pending first content as audit script by step S204.
The learning model obtained in above-mentioned steps is used for pending as audit script filtering in server end learning model
The first content of core.
Specifically, by providing a kind of content auditing mechanism of machine learning, audit is passed through or unacceptable content
Sample is trained, and by machine learning, can reinforce the auditing capabilities of the audit script in review mechanism, automatic fitration is invalid
Publication content, guarantee the compliance of content.
According to the embodiment of the present application, as preferred in the present embodiment, as shown in figure 3, receiving the knot of the asynchronous process
Fruit includes:
The data of the first content are stored in a queue log and return to log recording ID by step S302, and
By obtain the log recording ID and with the associated service logic of the first content, and the place after being delivered in queue service
Manage result.
In server end first by the first content typesetting after the data that return be stored in a queue log and obtain
Return to log recording ID.In the step, perform asynchronous process on the server, the client can receive by
The first publication contents processing result after asynchronous process.It handles by using asynchronous logic, relative to simultaneously operating, provides
To the core content publication data of user, there is no missings, but also user experience does not lose substantially.
Specifically, include in the asynchronous process that server end executes, according to preset interface data described in above-mentioned steps
When format is to the data returned after the first content typesetting, i.e., while content returns to the client, by all data
It is stored in a queue log and returns log recording ID, by log recording ID and all service logics relevant with content
It is all delivered in queue service, transfers to dequeue processing routine asynchronous execution.
According to the embodiment of the present application, as preferred in the present embodiment, as shown in figure 4, described receive the asynchronous process
Later further include: the step of asynchronous compensation, the step of asynchronous compensation includes:
Step S402 checks queue stl status by timed task, judges whether queue task handles success;
The state of queue log can be checked by the timed task in the server end, and is sentenced in server end
Whether success is handled when disconnected queue task.
Step S404, if it fails, then carrying out retrying processing to the corresponding request task of queue log of abnormal state
Or alarm operation.
If processing is unsuccessful when the server end judges queue task, need in server end to abnormal state
The corresponding request task of queue log carry out retrying processing or alarm operation.
, the queue service on the server end is not
It centainly can once run succeeded, only after queue task is handled successfully, log recording can be corresponded in asynchronous process
Status indication is processing success status.Then, queue log shape can be checked by generating timed task in the server end
State, and can the corresponding request task of queue log to abnormal state retry processing or alarm operation, guarantee asynchronous
The reliable execution of task.Compare synchronously disposable request, and the asynchronous compensation of queue log is used in the server end
Mechanism can automatically attempt to repetitive requests, guarantee the success rate of request processing.
Based on above-mentioned, present invention also provides a kind of clients of content release processing for community, including above-mentioned
The content release processing method for community executed on the client.Its realization principle and beneficial effect are as described above, herein
No longer repeated.
In another embodiment of the application, the content release processing method for community is additionally provided, as shown in figure 5,
Include:
Step S502 receives the posting request of the first content;
In received server-side to the posting request of the first content sent by the client.The server be used for
Client provides fixed data interface format, and can satisfy by the fixed data interface format the of the client
The posting request of one content.
It should be noted that the server end is to can be by those after the posting request of the first content received
Data are packaged into the format that the client needs, and inquire again to also not need first to be stored on the server.
The data of the first content are stored in a queue log and return to log recording ID by step S504;
In server end first by the first content typesetting after the data that return be stored in a queue log and obtain
Return to log recording ID.
Step S506, obtain the log recording ID and with the associated service logic of the first content, and be delivered to team
In column service, so as to carry out asynchronous execution in queue handler;
The server end by obtain the log recording ID and with the associated service logic of the first content, and
It is delivered in queue service, so as to carry out asynchronous execution in queue handler.
Step S508 audits the processing by the queue handler to the first content using machine learning model
As a result;
Specifically, by providing a kind of content auditing mechanism of machine learning, audit is passed through or unacceptable content
Sample is trained, and by machine learning, can reinforce the auditing capabilities of the audit script in review mechanism, automatic fitration is invalid
Publication content, guarantee the compliance of content.
Step S510 is returned according to preset interface data format if passed through using machine learning model audit to institute
State the data of first content typesetting.
The posting request of the first content generated and sent in the client is needed in server end to progress
Storage, then inquiry needs the first content issued in the database again.And it is connect what the client received according to default
Mouth data format needs to meet server end asynchronous process and machine learning review mechanism to the data of the first content typesetting
Related request.
It, can be by server end by by those data packets in the data for the first content typesetting that client receives
Dress up client needs format i.e. to the first content progress typesetting, without first store again from data base querying just now
The content of storage.And the data of the first content typesetting received in the client, it is also possible to be united by server end
The one data-interface format provided, inquires the publication content just stored again from database.No matter and it should be noted that
Using any content issue mechanism, requires by the asynchronous process of server end and examined content based on machine learning model
Core passes through.
Further, it returns according to preset interface data format in the server end to the number of the first content typesetting
According to, and need first to store, then inquire the data of storage.Simultaneously without the business processing logic for considering complexity.Institute
State the data being returned only in server end according to preset interface data format to the first content typesetting.It should be noted that by
In can be unitized data-interface according to preset interface data format in the return, so by under the server end
Hair according to data of the preset interface data format to the first content typesetting there is unified content to export.And by institute
Very simple queue is only performed when stating server-side publication content and launches logic, will not be malfunctioned, be returned to substantially simultaneously
The operation complexity of the client is close to zero, so interface error rate also can be ignored.So that error rate is essentially
Zero.
Specifically, first content auditing related procedure is launched into queue service using the mode of asynchronous process, is given
Queue handler processing.And it is divided into automatic audit and manual examination and verification, the automatic content auditing audited by machine learning in audit
Mechanism audits script automatic fitration, and the content that can not be filtered enters artificial pending list and carries out manual examination and verification.
According to the embodiment of the present application, as preferred in the present embodiment, as shown in fig. 6, being audited using machine learning model
Include: by processing result of the queue handler to the first content
Step S602, acquisition audit in advance passes through and unsanctioned second content, and using second content as training
Sample training obtains machine learning model;The machine learning model is used to filter pending described the as audit script
One content.
The second content that audit passes through and the audit fails is obtained in advance in server end, and second content is as machine
The positive negative sample of device study, to obtain default learning model for second content as training sample training.
It should be noted that those skilled in the art can obtain default learning model using various ways training, at this
It is not defined in application, as long as can satisfy the condition of the default learning model of training.
The learning model obtained in above-mentioned steps is used for pending as audit script filtering in server end learning model
The first content of core.
Specifically, by providing a kind of content auditing mechanism of machine learning, audit is passed through or unacceptable content
Sample is trained, and by machine learning, can reinforce the auditing capabilities of the audit script in review mechanism, automatic fitration is invalid
Publication content, guarantee the compliance of content.
According to the embodiment of the present application, as preferred in the present embodiment, as shown in fig. 7, the asynchronous process includes:
The data of the first content are stored in a queue log and return to log recording ID by step S702, and
By obtain the log recording ID and with the associated service logic of the first content, and be delivered in queue service so that
Asynchronous execution is carried out in queue handler.
In server end first by the first content typesetting after the data that return be stored in a queue log and obtain
Return to log recording ID.In the step, perform asynchronous process on the server, the client can receive by
The first publication contents processing result after asynchronous process.It handles by using asynchronous logic, relative to simultaneously operating, provides
To the core content publication data of user, there is no missings, but also user experience does not lose substantially.
Specifically, include in the asynchronous process that server end executes, according to preset interface data described in above-mentioned steps
When format is to the data returned after the first content typesetting, i.e., while content returns to the client, by all data
It is stored in a queue log and returns log recording ID, by log recording ID and all service logics relevant with content
It is all delivered in queue service, transfers to dequeue processing routine asynchronous execution.
According to the embodiment of the present application, as preferred in the present embodiment, as shown in figure 8, the asynchronous process further include: different
The step of step compensation, the step of asynchronous compensation include:
Step S802 checks queue stl status by timed task, judges whether queue task handles success;
The state of queue log can be checked by the timed task in the server end, and is sentenced in server end
Whether success is handled when disconnected queue task.
Step S804, if it fails, then carrying out retrying processing to the corresponding request task of queue log of abnormal state
Or alarm operation.
If processing is unsuccessful when the server end judges queue task, need in server end to abnormal state
The corresponding request task of queue log carry out retrying processing or alarm operation.
, the queue service on the server end is not
It centainly can once run succeeded, only after queue task is handled successfully, log recording can be corresponded in asynchronous process
Status indication is processing success status.Then, queue log shape can be checked by generating timed task in the server end
State, and can the corresponding request task of queue log to abnormal state retry processing or alarm operation, guarantee asynchronous
The reliable execution of task.Compare synchronously disposable request, and the asynchronous compensation of queue log is used in the server end
Mechanism can automatically attempt to repetitive requests, guarantee the success rate of request processing.
Based on above-mentioned, present invention also provides a kind of servers of content release processing for community, including above-mentioned
The content release processing method for community executed on server end.Its realization principle and beneficial effect as described above,
This is no longer repeated.
It should be noted that step shown in the flowchart of the accompanying drawings can be in such as a group of computer-executable instructions
It is executed in computer system, although also, logical order is shown in flow charts, and it in some cases, can be with not
The sequence being same as herein executes shown or described step.
Obviously, those skilled in the art should be understood that each module of above-mentioned the application or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
Be performed by computing device in the storage device, perhaps they are fabricated to each integrated circuit modules or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.In this way, the application be not limited to it is any specific
Hardware and software combines.
The foregoing is merely preferred embodiment of the present application, are not intended to limit this application, for the skill of this field
For art personnel, various changes and changes are possible in this application.Within the spirit and principles of this application, made any to repair
Change, equivalent replacement, improvement etc., should be included within the scope of protection of this application.