CN109862062B - Content uploading management method and device, electronic equipment and storage medium - Google Patents
Content uploading management method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN109862062B CN109862062B CN201811246891.3A CN201811246891A CN109862062B CN 109862062 B CN109862062 B CN 109862062B CN 201811246891 A CN201811246891 A CN 201811246891A CN 109862062 B CN109862062 B CN 109862062B
- Authority
- CN
- China
- Prior art keywords
- user
- content
- authority
- information
- auditing
- 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.)
- Active
Links
Images
Landscapes
- Storage Device Security (AREA)
Abstract
The embodiment of the invention provides a content uploading management method, a content uploading management device, electronic equipment and a storage medium, and relates to the technical field of machine learning. The method comprises the following steps: acquiring user information for uploading content to be published; acquiring authority information and authority value information of a user based on the user information to judge whether the user has uploading authority; when the user is judged to have the uploading right, auditing the content to be issued based on a file auditing model and generating an auditing log; judging whether the content to be issued passes the audit or not according to the audit information in the audit log; and after the verification is judged to be passed, allowing the user to upload the content to be issued to a production environment. The technical scheme of the embodiment of the invention can finely manage the authority of the user to avoid the problem of excessive authority, and can effectively audit the uploaded content of the user to avoid file uploading accidents.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a content upload management method, a content upload management apparatus, an electronic device, and a computer-readable storage medium.
Background
With the development of internet technology and the increase of the number of internet users, more and more websites open uploading permissions to users. The CMS (Content Management System) is an application System specifically oriented to Content editing and publishing on internet websites, and can standardize background information Management procedures and unify data storage formats.
At present, in CMSs in related technologies, such as OpenCMS (open source website content management system), an existing rights management scheme is difficult to finely manage rights of users, and cannot effectively audit uploaded content. On one hand, the user permission is inundated because the user permission cannot be finely managed; on the other hand, the uploaded content of the user cannot be effectively audited, so that file uploading accidents in a production environment are easily caused.
It is noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the invention and therefore it may contain information that does not form the prior art that is already known to a person of ordinary skill in the art.
Disclosure of Invention
Embodiments of the present invention provide a content upload management method, a content upload management apparatus, an electronic device, and a computer-readable storage medium, so as to overcome, at least to a certain extent, the problem that an upload accident in a production environment is caused by an overflow of user rights due to limitations and defects of related technologies and an inability to effectively audit uploaded content of a user.
According to a first aspect of embodiments of the present invention, a content upload management method is provided, including: acquiring user information for uploading content to be published; acquiring authority information and authority value information of a user based on the user information to judge whether the user has uploading authority; when the user is judged to have the uploading right, auditing the content to be issued based on a file auditing model and generating an auditing log; judging whether the content to be issued passes the audit or not according to the audit information in the audit log; and after the verification is judged to be passed, allowing the user to upload the content to be issued to a production environment.
In some example embodiments of the present invention, based on the foregoing scheme, the obtaining the authority and the authority value of the user to determine whether the user has an upload authority includes: based on the user information of the user, acquiring role identification information of the user in a user role association table; acquiring authority information and authority value information of the user in a role authority association table based on the role identification information of the user; and judging whether the user has the uploading authority or not according to the authority information and the authority value information of the user.
In some example embodiments of the present invention, based on the foregoing solution, there is a one-to-one or one-to-many relationship between the user information in the user role association table and the role identification information of the user, and the role in the role permission association table is a set of a predetermined number of permissions, and each permission is provided with a permission value.
In some example embodiments of the present invention, based on the foregoing scheme, the auditing the content to be published and generating an audit log based on a file audit model includes: acquiring all keywords of the text content of the content to be released, and generating a bag-of-word vector of the text content based on all the keywords of the text content; inputting the bag-of-word vector of the text content of the content to be issued into a trained file auditing model, and outputting the category and the auditing result of the content to be issued; and generating an audit log based on the category of the content to be issued and the audit result.
In some example embodiments of the present invention, based on the foregoing solution, the content upload management method further includes: obtaining a sample file in a pre-established file auditing database and a label of the sample file; acquiring all keywords of the sample file, and generating a bag-of-words vector of the sample file according to the keywords; and training the file auditing model according to the bag-of-word vector of the sample file and the label of the sample file.
In some example embodiments of the present invention, based on the foregoing scheme, the generating a bag-of-words vector of the sample file according to the keyword includes: determining a weight value of a word frequency-inverse document frequency of each keyword of the sample file in the file auditing database; and generating a bag-of-words vector of the sample file based on the weight value of the word frequency-inverse document frequency.
In some example embodiments of the present invention, based on the foregoing scheme, the document audit model is any one of a support vector machine model, a convolutional neural network model, or a decision tree model.
According to a second aspect of an embodiment of the present invention, there is provided a content upload management apparatus including: the information acquisition unit is used for acquiring the user information of the uploaded content to be published; the authority judgment unit is used for acquiring authority information and authority value information of a user based on the user information so as to judge whether the user has uploading authority; an audit log generation unit, configured to, when it is determined that the user has the upload right, audit the content to be issued based on a file audit model and generate an audit log; the content auditing unit is used for judging whether the content to be issued passes the auditing according to the auditing information in the auditing log; and the content uploading unit is used for allowing the user to upload the content to be issued to a production environment after the verification is judged to be passed.
According to a third aspect of embodiments of the present invention, there is provided an electronic apparatus, including: a processor; and a memory having computer readable instructions stored thereon, the computer readable instructions, when executed by the processor, implementing the content upload management method according to any of the above.
According to a fourth aspect of embodiments of the present invention, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a content upload management method according to any one of the above.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the content uploading management method in the exemplary embodiment of the invention, when the uploading operation is detected, the user information of the content to be issued is obtained, and the authority information and the authority value information of the user are obtained according to the user information; when the user is judged to have the uploading authority based on the authority information and the authority value information of the user, the content to be issued is sent to a file auditing model for auditing and generating an auditing log, and whether the content to be issued passes or not is judged according to the auditing log; and when the verification is judged to pass, allowing the user to upload the content to be issued to the production environment. On one hand, the authority information and the authority value information preset by the user are obtained according to the user information, the uploading authority of the user is judged based on the authority information and the authority value information, the authority of the user can be finely managed, the uploading process is standardized, and the problem of the excessive authority is solved; on the other hand, the contents uploaded by the user are audited according to the file audit model to generate audit logs, and whether the contents to be issued meet the upload conditions or not is judged, so that the uploaded contents of the user can be effectively audited, file uploading accidents are avoided, and the operation safety of the production environment is ensured.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
FIG. 1 schematically illustrates a flow schematic block diagram of a content upload management method according to some embodiments of the present invention;
fig. 2 schematically illustrates a schematic block diagram of a content upload management apparatus according to some embodiments of the present invention;
FIG. 3 schematically illustrates a schematic block diagram of a computer system of an electronic device, in accordance with some embodiments of the present invention;
FIG. 4 schematically illustrates a schematic block diagram of a computer-readable storage medium according to some embodiments of the present invention.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals denote the same or similar parts in the drawings, and thus, a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the invention. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations or operations have not been shown or described in detail to avoid obscuring aspects of the invention.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
In the present exemplary embodiment, a content upload management method is first provided, and fig. 1 schematically illustrates a flow schematic block diagram of a content upload management method according to some embodiments of the present invention. Referring to fig. 1, the content upload management method includes the following steps:
step S110, acquiring user information of uploaded to-be-released content;
step S120, acquiring authority information and authority value information of a user based on the user information to judge whether the user has uploading authority;
step S130, when the user is judged to have the uploading authority, auditing the content to be issued based on a file auditing model and generating an auditing log;
step S140, judging whether the content to be issued passes the audit according to the audit information in the audit log;
and step S150, after the verification is judged to be passed, allowing the user to upload the content to be issued to a production environment.
According to the content uploading management method in the embodiment, on one hand, the authority information and the authority value information preset by the user are obtained according to the user information, the uploading authority of the user is judged based on the authority information and the authority value information, the authority of the user can be finely managed, the uploading process is standardized, and the problem of authority inundation is solved; on the other hand, the contents uploaded by the user are audited according to the file audit model to generate audit logs, and whether the contents to be issued meet the upload conditions or not is judged, so that the uploaded contents of the user can be effectively audited, file uploading accidents are avoided, and the operation safety of the production environment is ensured.
Next, the content upload management method of the present exemplary embodiment will be further described.
Referring to fig. 1, in step S110, user information of content to be published is acquired.
In some example embodiments of the present invention, whether content to be published is uploaded is detected, and when the content to be published is monitored, information of an uploading user of the content to be published is obtained. For example, in OpenCMS there are typically the following types of users: the general administrator is responsible for the development, maintenance and operation of the whole website; the file editor is responsible for editing, modifying and deleting the file, but can not release the file; the file publisher is responsible for auditing the edited, modified and deleted contents and publishing the edited, modified and deleted contents after confirming that the edited, modified and deleted contents are correct; and the user manager is responsible for creating a new user and modifying the authority and the password of the existing user.
In step S120, based on the user information, authority information and authority value information of the user are obtained to determine whether the user has an upload authority.
In some example embodiments of the present invention, the role identification information of the user is obtained from the user role association table according to the information of the uploaded user obtained in step S110. The user role association table may include: user ID, role ID, user's role can be: when a user is newly established, one or more roles can be given to the user, and the relationship between the user and the roles is stored in a user role relationship table. The user and the role can be in one-to-one or one-to-many relationship, that is, one user can have multiple roles, for example, the role of the user can be administrator, project administrator, template developer.
In some exemplary embodiments of the present invention, the authority and authority value of the user are obtained from the role authority association table according to the role identification information of the user obtained in the above steps. The role authority association table may include: the role can be a set of a certain number of permissions, each permission is correspondingly provided with a permission value, whether the user has an uploading permission is judged according to the permission value information of the user, for example, openCMS has five permissions: read, write, view, control, direct Publish; the authority values of the respective authorities are different, for example, the authority value of Read is 1, the authority value of Write is 3, the authority value of View is 5, the authority value of Control is 7, and the authority value of Direct Publish is 9.
In step S130, when it is determined that the user has the upload right, the content to be published is audited based on a file audit model, and an audit log is generated.
In some example embodiments of the present invention, when it is determined that the user has the uploading authority according to the authority value information of the user in step S120, the uploaded content to be published is sent to the file model for auditing. The auditing of the contents to be issued can be carried out in batch, so that the file auditing model generates auditing logs according to the auditing result, and the auditing logs can comprise: the method comprises the steps of obtaining information such as a user ID, an audit result, a category of content to be published, a bag of words vector of the content to be published and the like, wherein the bag of words vector refers to a text, the word order, the grammar and the syntax of the text are ignored, the text is only regarded as a word set or a combination of words, the appearance of each word in the text is independent and does not depend on whether other words appear or not, and each word does not exist independently under the influence of the preceding sentence. And the manager can screen the files which do not pass the audit through the audit log to carry out manual audit and upload the content to be issued which passes the audit.
In some exemplary embodiments of the present invention, the text content of the content to be distributed may be participled by Word2vec (a relevant model for generating Word vectors), for example, for a file (1) i likes to watch movies, he also likes to watch movies "and a file (2) i also likes to watch basketball game" 9 keywords such as "me '," like ', "watch '," movie ', "same '," basketball ', "match '," he ', "and" also ' can be obtained after participled. <xnotran> , , "(1) , " "(2) " "'', '', '', '', '', '', '', '', ''", 9 , 9 , (1) [1,2,2,2,0,0,0,1,1], (2) [1,1,1,0,1,1,1,0,0], , (1) 1 2, "" (1) 1, "" (1) 2. </xnotran> And inputting the generated word bag vector of the text content into the trained file auditing model for auditing, determining the category and the auditing result of the content to be issued, and generating an auditing log according to the category and the auditing result of the content to be issued.
Further, a sample file in a file auditing database and a label of the sample file are obtained, wherein the label of the sample file refers to a mark performed on the sample file type after the sample file is manually audited, and the training of a corresponding model is completed through the mark, for example, the file types of confidential files, illegal files and the like which can not be audited are marked as 0, and the file types of ordinary files and the like which can be audited are marked as 1. The file auditing database is established according to manually audited files, a plurality of sample files and auditing result information corresponding to the sample files are recorded in the file auditing database, and the auditing information of the files can comprise the types of the files and the auditing results of the files, for example, the auditing results of confidential files and illegal file types are that the auditing fails, and the auditing result of common files is that the auditing passes. The obtained sample file can be subjected to Word segmentation processing through Word2vec, all keywords of the sample file are obtained, a bag-of-words vector of the sample file is generated according to the keywords, and a file auditing model is trained based on the bag-of-words vector of the sample file and a label of the sample file.
Further, when generating a corresponding bag-of-words vector according to a keyword of a sample file, first determining a weight value of a Term Frequency-Inverse Document Frequency (TF-IDF) of the keyword of the sample file in a file audit database, where the Term Frequency-Inverse Document Frequency is used to represent an importance degree of a certain keyword or Term to one of files in a file set or a corpus, and a Term Frequency-Inverse Document Frequency calculation formula is shown as formula (3):
H TF =H 1 /H 2 (1)
H IDF =log[H 3 /(H 4 +1)] (2)
TF-IDF=H TF *H IDF (3)
wherein H TF Denotes Term Frequency (TF), H 1 Indicates the number of occurrences of a keyword in an article, H 2 Indicates the total number of words, H, of the article IDF Denotes an Inverse Document Frequency (IDF), H 3 Document representing corpus of the keywordTotal number, H 4 Indicating the number of documents containing the word, TF-IDF indicating the word frequency-inverse document frequency. The larger the TF-IDF value of a word, the higher the importance of the word to the article. And according to the weighted value of the word frequency-inverse document frequency, the keywords of the sample file can be accurately and efficiently screened out, and the obtained keyword groups are used for generating the bag-of-word vector of the sample file.
It should be noted that, in the exemplary embodiment of the present invention, the document auditing model may be any one of a machine learning model, such as a support vector machine model, a convolutional neural network model, or a decision tree model.
In step S140, whether the content to be issued passes the audit is determined according to the audit information in the audit log.
In some example embodiments of the present invention, whether the content to be published passes the audit is determined according to the audit information in the audit log, for example, the type of the content to be published and the audit result of the content to be published. For example, the content to be published belongs to a confidential file, the audit result is not passed, the content to be published is finally judged to be not passed, the audit result is sent to a user uploading the content to be published at the moment, the user can continue to apply for audit, the content to be published, which is not passed by the first audit, is sent to the manual processing module after receiving the second audit request, and related personnel perform secondary audit to prevent misjudgment and special file conditions.
In step S150, after the verification is determined to be passed, the user is allowed to upload the content to be published to a production environment.
In some exemplary embodiments of the present invention, after the content to be published is determined to be approved in step S140, the user is notified to allow the user to upload the content to be published to the production environment, and the content to be published and the related information are sent to the mailbox of the related person in charge.
In some example embodiments of the present invention, after a user uploads content each time, the operation of the user and the result of the review of the content uploaded by the user are recorded, and the weight of the role of the user is modified and increased according to the number of times of the operation of the user and the result of the review of the uploaded content. If the number of operations of the user reaches a predetermined number, for example, the number of operations is 20, and the verification results of the uploaded content are all passed, the user may be determined as a user who logs in frequently and has a good quality, and the weight of the user role is increased. When the uploaded content of the user who logs in frequently and is high in quality is judged to be not passed, the user does not need to apply for second verification, the content to be issued, which is not passed through verification, is directly sent to the manual processing module, related personnel conduct verification, and the verification standard of the uploaded content of the user can be properly reduced during manual verification.
Further, after the uploaded content of the user fails to be checked for multiple times, the level of the user is reduced and the user is determined as an alert user, or the role authority of the user is blocked, for example, the number of times of the failed checking reaches 10 times, the user is determined as the alert user, the weight of the role of the user is reduced, and the number of times of the failed checking reaches 20 times or more, the role authority of the user is blocked. When the uploaded content of the warning user passes the judgment, the uploaded content also needs to be sent to the manual processing module for secondary verification, and the verification standard of the uploaded content of the user needs to be properly improved during manual verification.
It is noted that although the steps of the methods of the present invention are depicted in the drawings in a particular order, this does not require or imply that the steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
In addition, in the embodiment of the invention, a content uploading management device is also provided. Referring to fig. 2, the content upload management apparatus 200 includes: an information obtaining unit 210, a right judging unit 220, an audit log generating unit 230, a content auditing unit 240, and a content uploading unit 250. Wherein: the information obtaining unit 210 is configured to obtain user information of content to be published; the permission judging unit 220 is configured to obtain permission information and permission value information of a user based on the user information, so as to judge whether the user has an upload permission; the audit log generating unit 230 is configured to, when it is determined that the user has the upload right, audit the content to be issued based on a file audit model and generate an audit log; the content auditing unit 240 is configured to determine whether the content to be issued passes auditing according to the auditing information in the auditing log; the content uploading unit 250 is configured to allow the user to upload the content to be published to a production environment after the audit is determined to pass.
In some example embodiments of the present invention, based on the foregoing scheme, the permission judging unit 220 is configured to: based on the user information of the user, acquiring role identification information of the user in a user role association table; acquiring authority information and authority value information of the user in a role authority association table based on the role identification information of the user; and judging whether the user has the uploading authority or not according to the authority information of the user and the authority value information.
In some example embodiments of the present invention, based on the foregoing scheme, the audit log generating unit 230 is configured to: acquiring all keywords of the text content of the content to be released, and generating a bag-of-words vector of the text content based on all the keywords of the text content; inputting the bag-of-word vector of the text content of the content to be issued into a trained file auditing model, and outputting the category and auditing result of the content to be issued; and generating an audit log based on the category of the content to be issued and the audit result.
In some example embodiments of the present invention, based on the foregoing solution, the content upload management apparatus 200 further includes: the system comprises a sample file acquisition unit, a sample file verification unit and a sample file verification unit, wherein the sample file acquisition unit is used for acquiring a sample file and a label of the sample file in a pre-established file verification database; the bag-of-words vector generation unit is used for acquiring all keywords of the sample file and generating bag-of-words vectors of the sample file according to the keywords; and the training unit is used for training the file auditing model according to the bag-of-word vector of the sample file and the label of the sample file.
In some example embodiments of the present invention, based on the foregoing scheme, the bag of words vector unit is configured to: determining a weight value of a word frequency-inverse document frequency of each keyword of the sample file in the file auditing database; and generating a bag-of-words vector of the sample file based on the weight value of the word frequency-inverse document frequency.
Since each functional module of the content upload management apparatus 200 according to the exemplary embodiment of the present invention corresponds to the step of the exemplary embodiment of the content upload management method, it is not described herein again.
It should be noted that although in the above detailed description several modules or units of the content upload management apparatus are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit according to an embodiment of the invention. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the content upload management method is also provided.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Accordingly, various aspects of the disclosure may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.), or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 300 according to this embodiment of the present disclosure is described below with reference to fig. 3. The electronic device 300 shown in fig. 3 is only an example and should not bring any limitation to the function and the scope of use of the embodiments of the present disclosure.
As shown in fig. 3, electronic device 300 is in the form of a general purpose computing device. The components of electronic device 300 may include, but are not limited to: the at least one processing unit 310, the at least one memory unit 320, a bus 330 connecting different system components (including the memory unit 320 and the processing unit 310), and a display unit 340.
Wherein the storage unit stores program code that is executable by the processing unit 310 to cause the processing unit 310 to perform steps according to various exemplary embodiments of the present disclosure described in the above section "exemplary methods" of this specification. For example, the processing unit 310 may execute step S110 shown in fig. 1, and acquire user information of content to be published; step S120, based on the user information, acquiring the authority information and the authority value information of the user to judge whether the user has the uploading authority; step S130, when the user is judged to have the uploading right, auditing the content to be issued based on a file auditing model and generating an auditing log; step S140, judging whether the content to be issued passes the audit according to the audit information in the audit log; and S150, after the verification is judged to be passed, allowing the user to upload the content to be issued to a production environment.
The storage unit 320 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM) 321 and/or a cache memory unit 322, and may further include a read-only memory unit (ROM) 323.
The storage unit 320 may also include a program/utility 324 having a set (at least one) of program modules 325, such program modules 325 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The electronic device 300 may also communicate with one or more external devices 370 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 300, and/or with any device (e.g., router, modem, etc.) that enables the electronic device 300 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 350. Also, the electronic device 300 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 360. As shown, network adapter 360 communicates with the other modules of electronic device 300 via bus 330. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, various aspects of the disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the disclosure as described in the "exemplary methods" section above of this specification, when the program product is run on the terminal device.
Referring to fig. 4, a program product 400 for implementing the above method according to an embodiment of the present disclosure is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not so limited, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In situations involving remote computing devices, the remote computing devices may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to external computing devices (e.g., through the internet using an internet service provider).
Furthermore, the above-described drawings are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily appreciated that the processes illustrated in the above figures are not intended to indicate or limit the temporal order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice in the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.
Claims (10)
1. A method for managing content upload, comprising:
acquiring user information for uploading content to be published;
acquiring authority information and authority value information of a user based on the user information to judge whether the user has uploading authority;
when the user is judged to have the uploading right, auditing the content to be issued based on a file auditing model and generating an auditing log;
judging whether the content to be issued passes the audit or not according to the audit information in the audit log;
after the verification is judged to be passed, allowing the user to upload the content to be issued to a production environment; recording the operation of the user and the verification result of the uploaded content of the user after the user uploads the content each time, and modifying the weight of the role of the user according to the recorded operation times of the user and the verification result of the uploaded content; and if the user operation times reach a preset number and the uploaded content is approved, judging the grade of the user as a user who logs in frequently and has high quality, and increasing the weight of the user role.
2. The content upload management method according to claim 1, wherein the obtaining the authority and the authority value of the user to determine whether the user has the upload authority comprises:
based on the user information of the user, acquiring role identification information of the user in a user role association table;
acquiring authority information and authority value information of the user in a role authority association table based on the role identification information of the user;
and judging whether the user has the uploading authority or not according to the authority information of the user and the authority value information.
3. The content upload management method according to claim 2, wherein there is a one-to-one or one-to-many relationship between the user information in the user role association table and the role identification information of the user, the role in the role authority association table is a set of a predetermined number of authorities, and each authority has a authority value.
4. The content upload management method according to claim 1, wherein the auditing and generating an audit log for the content to be published based on a file audit model includes:
acquiring all keywords of the text content of the content to be released, and generating a bag-of-words vector of the text content based on all the keywords of the text content;
inputting the bag-of-word vector of the text content of the content to be issued into a trained file auditing model, and outputting the category and the auditing result of the content to be issued;
and generating an audit log based on the category of the content to be issued and the audit result.
5. The content upload management method according to claim 1, wherein the content upload management method further comprises:
obtaining a sample file in a pre-established file auditing database and a label of the sample file;
acquiring all keywords of the sample file, and generating a bag-of-words vector of the sample file according to the keywords;
and training the file auditing model according to the bag-of-word vector of the sample file and the label of the sample file.
6. The content upload management method according to claim 5, wherein the generating bag-of-word vectors of the sample files according to the keywords comprises:
determining a weight value of a word frequency-inverse document frequency of each keyword of the sample file in the file auditing database;
and generating a bag-of-words vector of the sample file based on the weight value of the word frequency-inverse document frequency.
7. The content upload management method according to claim 5, wherein the document audit model is any one of a support vector machine model, a convolutional neural network model or a decision tree model.
8. A content upload management apparatus, comprising:
the information acquisition unit is used for acquiring the user information of the uploaded content to be published;
the authority judgment unit is used for acquiring the authority information and the authority value information of the user based on the user information so as to judge whether the user has the uploading authority;
the audit log generation unit is used for auditing the content to be issued and generating an audit log based on a file audit model when the user is judged to have the uploading authority;
the content auditing unit is used for judging whether the content to be issued passes the auditing according to the auditing information in the auditing log;
the content uploading unit is used for allowing the user to upload the content to be issued to a production environment after the verification is judged to be passed; recording the operation of the user and the verification result of the uploaded content of the user after the user uploads the content each time, and modifying the weight of the role of the user according to the recorded operation times of the user and the verification result of the uploaded content; and if the user operation times reach a preset number and the uploaded content is approved, judging the grade of the user as a user who logs in frequently and has high quality, and increasing the weight of the user role.
9. An electronic device, comprising:
a processor; and
a memory having stored thereon computer readable instructions which, when executed by the processor, implement the content upload management method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the content upload management method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811246891.3A CN109862062B (en) | 2018-10-24 | 2018-10-24 | Content uploading management method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811246891.3A CN109862062B (en) | 2018-10-24 | 2018-10-24 | Content uploading management method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109862062A CN109862062A (en) | 2019-06-07 |
CN109862062B true CN109862062B (en) | 2022-10-18 |
Family
ID=66889775
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811246891.3A Active CN109862062B (en) | 2018-10-24 | 2018-10-24 | Content uploading management method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109862062B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110958292A (en) * | 2019-09-17 | 2020-04-03 | 平安银行股份有限公司 | File uploading method, electronic device, computer equipment and storage medium |
CN110929055B (en) * | 2019-11-15 | 2023-05-02 | 北京达佳互联信息技术有限公司 | Multimedia quality detection method and device, electronic equipment and storage medium |
CN113761110B (en) * | 2020-06-28 | 2024-10-18 | 北京沃东天骏信息技术有限公司 | Information issuing method, device, equipment and storage medium |
CN111985760B (en) * | 2020-06-30 | 2024-02-13 | 北京百度网讯科技有限公司 | Data content evaluation method and device, electronic equipment and storage medium |
CN111832072B (en) * | 2020-07-02 | 2021-06-04 | 上海识装信息科技有限公司 | Method and system for preventing illegal operation of log platform |
CN112287270A (en) * | 2020-09-28 | 2021-01-29 | 珠海大横琴科技发展有限公司 | Content auditing method and device |
CN112418740A (en) * | 2020-12-28 | 2021-02-26 | 济南大象信息技术有限公司 | Application software content management method, system, terminal and storage medium |
CN113448673A (en) * | 2021-07-14 | 2021-09-28 | 中国银行股份有限公司 | Issue solution issuing method and device, storage medium and electronic device |
CN113743895A (en) * | 2021-08-30 | 2021-12-03 | 深圳壹账通智能科技有限公司 | Component management method and device, computer equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101051259A (en) * | 2006-03-31 | 2007-10-10 | 佳能株式会社 | Device managing system, information process apparatus, managing apparatus, and control method |
CN102930194A (en) * | 2012-09-20 | 2013-02-13 | 无锡华御信息技术有限公司 | Data security operating system and method based on authority management and control |
CN108647977A (en) * | 2018-04-25 | 2018-10-12 | 合肥上城信息技术有限公司 | A kind of trade company audit evaluation and test platform and its method |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040032424A1 (en) * | 2001-11-06 | 2004-02-19 | Florschuetz Alan Scott | Method and system for producing and administering a web-cast event |
CN101446970B (en) * | 2008-12-15 | 2012-07-04 | 腾讯科技(深圳)有限公司 | Method for censoring and process text contents issued by user and device thereof |
CN103685423B (en) * | 2012-09-24 | 2018-09-04 | 腾讯科技(深圳)有限公司 | A kind of method, apparatus and system that information receives |
US20150095356A1 (en) * | 2013-09-27 | 2015-04-02 | Konica Minolta Laboratory U.S.A., Inc. | Automatic keyword tracking and association |
CN103544572A (en) * | 2013-11-05 | 2014-01-29 | 镇江硅谷信息科技有限公司 | Refined management system |
CN104580529B (en) * | 2015-02-03 | 2018-03-23 | 郑州悉知信息科技股份有限公司 | A kind of signal auditing method and device |
CN105046446B (en) * | 2015-08-14 | 2019-11-05 | 北京京东尚科信息技术有限公司 | A kind of customized permission process method and system based on workflow framework |
CN106022009B (en) * | 2016-05-06 | 2021-09-07 | 腾讯科技(深圳)有限公司 | Media information sharing processing method and device and computer readable medium |
CN108133134B (en) * | 2017-12-21 | 2020-11-10 | 浙江科澜信息技术有限公司 | Method, device and equipment for managing authority of map resource and storage medium |
-
2018
- 2018-10-24 CN CN201811246891.3A patent/CN109862062B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101051259A (en) * | 2006-03-31 | 2007-10-10 | 佳能株式会社 | Device managing system, information process apparatus, managing apparatus, and control method |
CN102930194A (en) * | 2012-09-20 | 2013-02-13 | 无锡华御信息技术有限公司 | Data security operating system and method based on authority management and control |
CN108647977A (en) * | 2018-04-25 | 2018-10-12 | 合肥上城信息技术有限公司 | A kind of trade company audit evaluation and test platform and its method |
Non-Patent Citations (2)
Title |
---|
"基于门户网站的信息发布管理系统研究";常晓鹏等;《中州大学学报》;20131220;第30卷(第6期);118-123 * |
"数字化定密管理系统的设计与实现";翟佩佩;《中国优秀硕士学位论文全文数据库》;20160415;I138-50 * |
Also Published As
Publication number | Publication date |
---|---|
CN109862062A (en) | 2019-06-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109862062B (en) | Content uploading management method and device, electronic equipment and storage medium | |
US10318412B1 (en) | Systems, methods, and apparatus for dynamic software generation and testing | |
US20230281012A1 (en) | Systems and methods for automating and monitoring software development operations | |
US8127365B1 (en) | Origination-based content protection for computer systems | |
AU2020200909A1 (en) | Evaluation control | |
US8280838B2 (en) | Evidence evaluation system and method based on question answering | |
CN114981821A (en) | System and method for data driven infrastructure control | |
CN103514154B (en) | Method and system for dynamic translation substitution | |
KR101747016B1 (en) | Method and apparatus for producing regulatory-compliant software | |
US8595628B2 (en) | Method and system for reviewing text files using distributable review data packets | |
US11074119B2 (en) | Automatic root cause analysis for web applications | |
CN111638908A (en) | Interface document generation method and device, electronic equipment and medium | |
US20230393832A1 (en) | Automated translation of computer languages to extract and deploy computer systems and software | |
US11743133B2 (en) | Automatic anomaly detection | |
US10372828B2 (en) | Assessing translation quality | |
US9256661B2 (en) | Indicating level of confidence in digital content | |
CN107015794A (en) | Software is service reference flow extensible authentication framework | |
US11321165B2 (en) | Data selection and sampling system for log parsing and anomaly detection in cloud microservices | |
US11074160B2 (en) | Automated test script generator | |
CN114118047A (en) | Report generation method, device, equipment and computer storage medium | |
CN116628211A (en) | Data classification method and device, storage medium and electronic equipment | |
US10776248B2 (en) | Automated source code writing style evaluation, validation, and modification | |
US11321792B2 (en) | Enforceable contract generation | |
CN111126947B (en) | Integrated management method, device, medium and electronic equipment for business data | |
US20190164092A1 (en) | Determining risk assessment based on assigned protocol values |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |