CN110134605A - Method, apparatus, computer equipment and the storage medium of Validation Code - Google Patents
Method, apparatus, computer equipment and the storage medium of Validation Code Download PDFInfo
- Publication number
- CN110134605A CN110134605A CN201910411164.6A CN201910411164A CN110134605A CN 110134605 A CN110134605 A CN 110134605A CN 201910411164 A CN201910411164 A CN 201910411164A CN 110134605 A CN110134605 A CN 110134605A
- Authority
- CN
- China
- Prior art keywords
- audit
- condition
- code
- auditing result
- source terminal
- 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
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3604—Software analysis for verifying properties of programs
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The disclosure is directed to a kind of method, apparatus of Validation Code, computer equipment and storage mediums, are related to field of computer technology.The described method includes: receiving the pending code that source terminal is sent;It determines the corresponding multiple audit accounts of pending code, and determines the corresponding audit condition of pending code, wherein audit condition includes at least audit and passes through condition;To the target terminal of the corresponding multiple audit Account Logons of pending code, pending code is sent respectively;The auditing result of at least one target terminal transmission is received, if the auditing result received meets audit by condition, audit is sent to source terminal and passes through notice.Using the disclosure, multiple and different target terminals can carry out review operations to pending code simultaneously, and when auditing result meets audit and passes through condition, server can determine that pending code audit passes through, audit is sent by notice to source terminal, improves the operating efficiency of audit code.
Description
Technical field
This disclosure relates to field of computer technology more particularly to a kind of method, apparatus of Validation Code, computer equipment and
Storage medium.
Background technique
During exploitation code, due to the great complexity of exploitation code, programmer, which is easy to write out, to be existed
The code paragraph of mistake.It in the related art, can be by the code copies write to finger after programmer writes code
Determine in the computer of programmer, to allow designated program person to be audited.After audit is completed, which can will be audited
As a result inform and write the programmer of code, if auditing result is that audit passes through, the programmer for writing code can continue into
Row is handled in next step.
During the code that audit writes, programmer is needed to copy another designated program to from a computer
In the computer of member, after audit is completed, also want designated program person that auditing result is informed to the programmer for writing code, it is such
The operating efficiency for auditing code is lower.
Summary of the invention
The disclosure provides the method, apparatus, computer equipment and storage medium of a kind of Validation Code, at least to solve correlation
The lower problem of the operating efficiency of code is audited in technology.The technical solution of the disclosure is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of method of Validation Code is provided, comprising:
Receive the pending code that source terminal is sent;
It determines the corresponding multiple audit accounts of the pending code, and determines the corresponding audit item of the pending code
Part, wherein the audit condition includes at least audit and passes through condition;
To the target terminals of the corresponding multiple audit Account Logons of the pending code, the pending generation is sent respectively
Code;
The auditing result of at least one target terminal transmission is received, if the auditing result received meets the audit and leads to
Condition is crossed, then sends audit to the source terminal and passes through notice.
Optionally, the corresponding multiple audit accounts of the determination pending code, and determine the pending code
Corresponding audit condition, comprising:
The corresponding multiple audit accounts of the pending code and audit condition for receiving that the source terminal sends.
Optionally, the corresponding multiple audit accounts of the determination pending code, and determine the pending code
Corresponding audit condition, comprising:
The corresponding relationship of source account according to the pre-stored data and audit account, determines the source account that the source terminal currently logs in
The corresponding multiple audit accounts in family, as the corresponding multiple audit accounts of the pending code;
The corresponding relationship of source account according to the pre-stored data and audit condition, determines the source account that the source terminal currently logs in
The corresponding audit condition in family, as the corresponding audit condition of the pending code.
Optionally, the audit condition further includes that audit does not pass through condition, the method also includes:
If the auditing result received meets the audit not by condition, it is obstructed that audit is sent to the source terminal
Cross notice.
Optionally, it if the auditing result received meets the audit by condition, is sent out to the source terminal
Core of submitting to a higher level for approval or revision passes through notice, comprising:
If the auditing result received be audit pass through and the number of auditing result that receives be equal to it is the multiple
The total number of account is audited, then sends audit to the source terminal and passes through notice;
If the auditing result received meets the audit not by condition, sends and audit to the source terminal
Do not pass through notice, comprising:
If any auditing result in the auditing result received is that audit does not pass through, sends and examine to the source terminal
Core does not pass through notice.
Optionally, it if the auditing result received meets the audit by condition, is sent out to the source terminal
Core of submitting to a higher level for approval or revision passes through notice, comprising:
If received auditing result is that audit passes through at first, audit is sent to the source terminal and passes through notice;
If the auditing result received meets the audit not by condition, sends and audit to the source terminal
Do not pass through notice, comprising:
If received auditing result is that audit does not pass through at first, audit is sent to the source terminal and does not pass through notice.
Optionally, it if the auditing result received meets the audit by condition, is sent out to the source terminal
Core of submitting to a higher level for approval or revision passes through notice, comprising:
If audited in the auditing result received between the number passed through and the total number of the multiple audit account
Ratio is more than or equal to preset first fractional threshold, then sends audit to the source terminal and pass through notice;
If the auditing result received meets the audit not by condition, sends and audit to the source terminal
Do not pass through notice, comprising:
If audited in the auditing result received between unacceptable number and the total number of the multiple audit account
Ratio be greater than preset second fractional threshold, then to the source terminal send audit do not pass through notice, wherein it is described preset
Second fractional threshold is equal to 1 value for subtracting preset first fractional threshold.
Optionally, it if the auditing result received meets the audit by condition, is sent out to the source terminal
Core of submitting to a higher level for approval or revision passes through notice, comprising:
If the auditing result received meets the audit by condition, to the source terminal and the multiple audit
The target terminal of Account Logon sends audit respectively and passes through notice.
According to the second aspect of an embodiment of the present disclosure, a kind of device of Validation Code is provided, comprising:
Receiving module is configured as receiving the pending code that source terminal is sent;
Determining module is configured to determine that the corresponding multiple audit accounts of the pending code, and determination is described pending
The corresponding audit condition of core code, wherein the audit condition includes at least audit and passes through condition;
Sending module is configured as the target terminals to the corresponding multiple audit Account Logons of the pending code, point
The pending code is not sent;
The receiving module is configured as receiving the auditing result of at least one target terminal transmission;
The sending module is configured as when the auditing result received meets the audit and passes through condition, Xiang Suoshu
Source terminal sends audit and passes through notice.
Optionally, the determining module, is configured as:
The corresponding multiple audit accounts of the pending code and audit condition for receiving that the source terminal sends.
Optionally, the determining module, is configured as:
The corresponding relationship of source account according to the pre-stored data and audit account, determines the source account that the source terminal currently logs in
The corresponding multiple audit accounts in family, as the corresponding multiple audit accounts of the pending code;
The corresponding relationship of source account according to the pre-stored data and audit condition, determines the source account that the source terminal currently logs in
The corresponding audit condition in family, as the corresponding audit condition of the pending code.
Optionally, the audit condition further includes audit not by condition, and the sending module is also configured to
When the auditing result received, which meets the audit, does not pass through condition, Xiang Suoshu source terminal sends audit and does not pass through
Notice.
Optionally, the sending module, is configured as:
If the auditing result received be audit pass through and the number of auditing result that receives be equal to it is the multiple
The total number of account is audited, then sends audit to the source terminal and passes through notice;
If any auditing result in the auditing result received is that audit does not pass through, sends and examine to the source terminal
Core does not pass through notice.
Optionally, the sending module, is configured as:
If received auditing result is that audit passes through at first, audit is sent to the source terminal and passes through notice;
If received auditing result is that audit does not pass through at first, audit is sent to the source terminal and does not pass through notice.
Optionally, the sending module, is configured as:
If audited in the auditing result received between the number passed through and the total number of the multiple audit account
Ratio is more than or equal to preset first fractional threshold, then sends audit to the source terminal and pass through notice;
If audited in the auditing result received between unacceptable number and the total number of the multiple audit account
Ratio be greater than preset second fractional threshold, then to the source terminal send audit do not pass through notice, wherein it is described preset
Second fractional threshold is equal to 1 value for subtracting preset first fractional threshold.
Optionally, the sending module, is configured as:
If the auditing result received meets the audit by condition, to the source terminal and the multiple audit
The target terminal of Account Logon sends audit respectively and passes through notice.
According to the third aspect of an embodiment of the present disclosure, a kind of server is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to the method for executing the Validation Code that embodiment of the present disclosure first aspect provides.
According to a fourth aspect of embodiments of the present disclosure, a kind of non-transitorycomputer readable storage medium is provided, when described
When instruction in storage medium is executed by the processor of server, so that the server is able to carry out the embodiment of the present disclosure first
The method for the Validation Code that aspect provides.
According to a fifth aspect of the embodiments of the present disclosure, a kind of application program is provided, comprising:
Receive the pending code that source terminal is sent;
It determines the corresponding multiple audit accounts of the pending code, and determines the corresponding audit item of the pending code
Part, wherein the audit condition includes at least audit and passes through condition;
To the target terminals of the corresponding multiple audit Account Logons of the pending code, the pending generation is sent respectively
Code;
The auditing result of at least one target terminal transmission is received, if the auditing result received meets the audit and leads to
Condition is crossed, then sends audit to the source terminal and passes through notice.
The technical scheme provided by this disclosed embodiment at least bring it is following the utility model has the advantages that
The method provided by the embodiment of the present disclosure, server can receive the pending code of source terminal transmission;It determines
The corresponding multiple audit accounts of pending code, and determine the corresponding audit condition of pending code;It is corresponding to pending code
Multiple audit Account Logons target terminal, send pending code respectively;Receive examining at least one target terminal transmission
Core sends audit to source terminal and passes through notice as a result, if the auditing result received meets audit by condition.In this way,
Audit user can check pending code by target terminal, and auditing result is inputted in target terminal.Multiple and different mesh
Review operations can be carried out to pending code simultaneously by marking terminal, and when auditing result meets audit and passes through condition, service
Device can determine that pending code audit passes through, and send audit by notice to source terminal, improve the operating efficiency of audit code.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure, do not constitute the improper restriction to the disclosure.
Fig. 1 is a kind of structural schematic diagram of the system of Validation Code shown according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of the method for Validation Code shown according to an exemplary embodiment;
Fig. 3 is a kind of structural schematic diagram of the system of Validation Code shown according to an exemplary embodiment;
Fig. 4 is a kind of flow chart of the method for Validation Code shown according to an exemplary embodiment;
Fig. 5 is a kind of device block diagram of Validation Code shown according to an exemplary embodiment;
Fig. 6 is a kind of structural schematic diagram of server shown according to an exemplary embodiment.
Specific embodiment
In order to make ordinary people in the field more fully understand the technical solution of the disclosure, below in conjunction with attached drawing, to this public affairs
The technical solution opened in embodiment is clearly and completely described.
It should be noted that the specification and claims of the disclosure 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 embodiment of the disclosure described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.Embodiment described in following exemplary embodiment does not represent and disclosure phase
Consistent all embodiments.On the contrary, they are only and as detailed in the attached claim, the disclosure some aspects
The example of consistent device and method.
The method for the Validation Code that the embodiment of the present disclosure provides can execute in the system of Validation Code.As shown in Figure 1,
The system of Validation Code may include server and multiple terminals.Wherein, terminal can be desktop computer, laptop etc.
Equipment may include source terminal and target terminal.Programmer can write code in source terminal, the pending generation that will have been write
Code is uploaded onto the server.Server can send multiple target terminals for pending code.Auditing user can be at target end
Pending code to be audited in end, the auditing result for auditing user's input can be returned to server by target terminal, by
Server carries out subsequent processing according to auditing result.It should be noted that can be installed respectively in source terminal and target terminal
Auditing system for being audited to code can upload pending code in the auditing system of source terminal, at target end
Pending code is audited in the auditing system at end.
Fig. 2 is a kind of flow chart of the method for Validation Code shown according to an exemplary embodiment, as shown in Fig. 2, testing
The method for demonstrate,proving code is used in server, while can also assist completing by different terminals, may comprise steps of.
In step s 110, server receives the pending code write that source terminal uploads.
In an implementation, programmer can write code in source terminal, it is to be programmed finish after, it is wrong in code in order to reduce
The accidentally appearance of situation can audit the code write by auditing user.Programmer can will write in source terminal
Pending code is uploaded onto the server.Server can receive the pending code of source terminal transmission.
In the step s 120, server determines that the corresponding multiple audit accounts of pending code and pending code are corresponding
Audit condition.
Wherein, audit condition, which includes at least to audit, passes through condition.Audit can be used for subsequent server by condition and receive
After the auditing result returned to target terminal, judge whether auditing result meets audit and pass through condition.Audit condition is in addition to can
To include audit by that except condition, can also include audit not by condition, audit modification condition etc., can be needed based on practical
It asks, the type of audit condition and the content of specific audit condition is set.
In an implementation, server can determine the corresponding multiple audit accounts of pending code and audit condition.Server
The corresponding multiple audit accounts of pending code and audit condition can be determined based on the source account for uploading pending code,
The corresponding multiple audit accounts of pending code and audit condition actively can be arranged in source terminal by programmer, server is from source
The corresponding multiple audit accounts of pending code and audit condition are obtained in terminal.Server can also determine by other means
The corresponding multiple audit accounts of pending code and audit condition.
Optionally, server can be pending with the corresponding relationship and upload of account according to the pre-stored data and audit account
The source account of core code determines the corresponding multiple audit accounts of pending code.Account according to the pre-stored data and audit condition
Corresponding relationship and source account, determine pending code corresponding target audit condition.
Audit condition is audit by condition, and server can be with the correspondence of source account according to the pre-stored data and audit account
Relationship determines the corresponding multiple audit accounts of source account that source terminal currently logs in, corresponding multiple careful as pending code
Core account.Server can determine that source terminal is currently stepped on the corresponding relationship of source account according to the pre-stored data and audit condition
The corresponding audit condition of the source account of record passes through condition as the corresponding audit of pending code.
Source account, after logining successfully, programmer are logged in the auditing system that programmer can install in source terminal
Pending code can be uploaded in auditing system by uploading entrance.After having uploaded pending code, programmer can
It is sent with confirming, source terminal can send the mark of pending code and source account to server at this time, and server can be with
Determine the source account for uploading pending code.
If audit account and audit are that server automatically determines non-programmers and is actively entered by condition, server
It can determine that the corresponding multiple audit accounts of pending code and audit pass through item based on the source account for uploading pending code
Part.Account can be pre-established in the server and audits the corresponding relationship of account, determining the source account for uploading pending code
After family, it can be based on above-mentioned corresponding relationship, determine that the corresponding multiple audit accounts of source account, multiple audit account can be made
For the audit account for auditing pending code.Account and audit can also be pre-established in the server to close by the corresponding of condition
System can be based on above-mentioned corresponding relationship, determine the corresponding target of source account after determining the source account for uploading pending code
Audit is by condition, the auditing result that subsequent server can be returned based on target terminal, judge auditing result whether meet to
The corresponding audit of audit code passes through condition.
For example, the source account for uploading pending code is an A account, server can determine supervisor's account of an A account
Such as Lee's B account.Since an A is managed by Lee B, can default after uploading pending code by A account, by
It is responsible for account Lee B account and audits to pending code.Meanwhile server is also based on and pre-establishes account and audit
By the corresponding relationship of condition, determines that the corresponding target audit of an A account is all passed through by for example all audit accounts of condition and just calculate
Pass through condition.
Other than aforesaid way, account level can also be pre-established in the server and audits the corresponding of account and is closed
System can determine the rank of source account after determining the source account for uploading pending code, be based on above-mentioned corresponding relationship, really
Determine the corresponding multiple audit accounts of rank of source account, multiple audit account can be used as the audit account for auditing pending code
Family.The corresponding relationship of account level and audit by condition can be pre-established in the server, upload pending generation determining
After the source account of code, the rank of source account can be determined, be based on above-mentioned corresponding relationship, determine the corresponding mesh of the rank of source account
The auditing result that mark audit can be returned by condition, subsequent server based on target terminal, judges whether auditing result meets
Corresponding audit of pending code passes through condition.
If the rank of source account is higher, the higher audit account of rank can be determined to carry out examining for pending code
Core operation, so higher audit account of rank are easier to find the problems in pending code.If the rank of source account is lower,
The rank audit account higher than the rank of source account can be determined to carry out the review operations of pending code, in this way audit to
Audit the available reasonable utilization of human resources of code.
For example, the source account for uploading pending code is an A account, the rank of A account is primary, and server can be true
Determining the corresponding audit account of primary account is middle rank or premium account such as Lee B account and king's C account.Therefore server can be true
Determining the corresponding audit account of pending code is Lee B account and king's C account.Meanwhile the account that server can also pre-establish
Rank and audit determine that the corresponding target audit of primary account passes through for example all audit accounts of condition by the corresponding relationship of condition
All pass through condition by just calculating.
Optionally, source terminal can receive the corresponding multiple audit accounts of pending code of programmer's input and audit is led to
Condition is crossed, the corresponding multiple audit accounts of pending code and audit are sent to server by condition.Server can connect
The corresponding multiple audit accounts of pending code and audit for receiving source terminal transmission pass through condition.
The programmer for writing code, can also be corresponding multiple careful by pending code while uploading pending code
Core account and audit by condition entry arrive source terminal, by source terminal together by the corresponding multiple audit accounts of pending code with
Audit is sent to server by condition.At this point, the corresponding multiple audit accounts of pending code and audit can be with by condition
Personal settings are carried out by programmer, can be specified by programmer oneself.
For example, the programmer for writing code is an A, A can fill in window in preset audit account and fill in multiple examine
Core user account such as Lee B account and king's C account.Meanwhile A can also select window selection to examine in preset audit by condition
Core passes through condition.Then, source terminal can lead to the audit of the corresponding Lee B account of pending code and king C account and selection
The condition of mistake is sent to server.
In step s 130, server determines the target terminal of multiple audit Account Logons, and pending code is sent to
In each target terminal.
In an implementation, server can determine the target terminal of multiple audit Account Logons, corresponding to pending code
The target terminal of multiple audit Account Logons, sends pending code respectively.In this way, audit user can step in target terminal
Record audit account, and check the pending code received, pending code is audited in target terminal.Optionally, in target
After terminal receives pending code, pop-up prompt can be carried out, audit user audits pending code with prompt.
Audit user can provide the opinion of oneself based on the concrete condition of pending code, and defeated in target terminal
Enter opinion, including audits to pass through or audit and not pass through.
In step S140, server receives the audit knot of the transmission of at least one target terminal in all target terminals
Fruit, judges whether the auditing result received can satisfy the corresponding audit of pending code by condition, if receive
Auditing result can satisfy the corresponding audit of pending code by condition, then sends audit to source terminal and pass through notice.
In an implementation, target terminal can receive the auditing result of audit user's input, and the auditing result of input is sent
To server.Server can receive the auditing result of at least one target terminal transmission, if the auditing result received is full
Foot audit then sends audit to source terminal and passes through notice by condition.
As shown in figure 3, source terminal A, server, target terminal B and target terminal C can form a Validation Code be
System.As shown in figure 4, source terminal A can upload pending code, and multiple audit accounts and audit condition are sent to server.
Pending code can be respectively sent to the target terminal of multiple audit Account Logons by server, may include target terminal B
With target terminal C.Audit user can input auditing result, target terminal B and target in target terminal B and target terminal C
Auditing result can be sent to server by terminal C.For example, target terminal B will be audited by being sent to server, target terminal
C will be audited by being sent to server.The auditing result that server is sent based on target terminal B and target terminal C, determines pending
Core code sends audit by notice by audit, and to source terminal A, while can also send out to target terminal B and target terminal C
Core of submitting to a higher level for approval or revision passes through notice.
Optionally, audit condition can also include audit not by condition, and the method that the embodiment of the present disclosure provides can be with
Include: that server receives the auditing result that at least one target terminal in all target terminals is sent, judges the auditing result
Whether pending code corresponding audit can satisfy not by condition, if to meet pending code corresponding for the auditing result
Audit then sends audit to source terminal and does not pass through notice not by condition.
Server can receive the auditing result of at least one target terminal transmission, if the auditing result received meets
Audit then sends audit to source terminal and does not pass through notice not by condition.Audit not can be used for subsequent server by condition
After the auditing result for receiving target terminal return, judge whether auditing result meets audit not by condition, if met
Audit does not pass through condition, it is determined that pending code audit does not pass through.Audit condition in addition to may include audit by condition it
Outside, it can also include audit not by condition, audit modification condition etc., actual demand can be based on, the class of audit condition is set
The content of type and specific audit condition.In addition, if the auditing result that at least one received target terminal of server is sent is not
The corresponding audit of pending code be can satisfy by condition, then can also determine that pending code audit does not pass through, and to source
Terminal sends audit and does not pass through notice.
For example, audit is passed through by the auditing result that the target terminal that condition is one third is sent for audit, so that it may
It determines that pending code audit passes through, then audits the audit not sent by the target terminal that condition may be greater than 2/3rds
As a result do not pass through for audit, so that it may determine that pending code audit does not pass through.Alternatively, audit is one third by condition
The auditing result that target terminal is sent is that audit passes through, so that it may determine that pending code audit passes through.If be an actually-received
A quarter target terminal send auditing result be audit pass through, then can determining auditing result, it is impossible to meet pending
The corresponding audit of core code can determine that pending code audit does not pass through by condition.
Optionally, it if auditing result meets the corresponding audit of pending code by condition, sends and examines to source terminal
If it may include: the auditing result received is the audit auditing result that passes through and receive that core, which passes through the step of notice,
Number is equal to the total number of multiple audit accounts, then sends audit to source terminal and pass through notice;If the auditing result meet to
The corresponding audit of code is audited not by condition, may include: if then sending the step of audit does not pass through notice to source terminal
Any auditing result in the auditing result received is that audit does not pass through, then sends audit to source terminal and do not pass through notice.
Multiple same pending codes of audit Account Review can be set in the programmer for writing code.If these audit accounts
After auditing pending code, auditing result is that audit passes through at family, and server can then determine that pending code audit is logical
It crosses, and sends audit to source terminal and pass through notice.Meanwhile server can also be to the target terminal point of multiple audit Account Logons
It Fa Song not audit and pass through notice.If the auditing result of any audit account is that audit does not pass through in these audit accounts, service
Device can then determine that pending code audit does not pass through, and send audit to source terminal and do not pass through notice.Meanwhile server may be used also
Notice is not passed through to send audit respectively to the target terminal of multiple audit Account Logons.Optionally, unacceptable audit is audited
Account can also input audit opinion information, can suggest how the programmer for writing code modifies to code.Target is whole
Available audit opinion information is held, and audit opinion information is sent to server.Server can receive audit opinion letter
Breath is determining that pending code audit is obstructed out-of-date, and audit can be sent to source terminal not by notice, in audit not by logical
Audit opinion information can be carried in knowing.
Optionally, it if auditing result meets the corresponding audit of pending code by condition, sends and examines to source terminal
If core pass through the step of notice may include: at first received auditing result for audit pass through, to source terminal send audit
Pass through notice;If the auditing result meets the corresponding audit of pending code not by condition, sends and audit to source terminal
If the step of not passing through notice include: at first received auditing result for audit do not pass through, to source terminal send audit not
Pass through notice.
Multiple same pending codes of audit Account Review can be set in the programmer for writing code, as long as wherein having one
Audit account has audited pending code at first, and has input auditing result, and server can judge according to the auditing result
Whether pending code audit passes through.In practical applications, multiple audit accounts can be arranged in the programmer for writing code simultaneously,
In these audit accounts, if any audit account can audit pending code during idle time, and auditing result is inputted, taken
Business device can judge whether pending code audit passes through according to the auditing result.In this way, the pending code of audit can be improved
Efficiency.If an audit account is only arranged, and the audit user of the audit account cannot find free time in the recent period to examine
The pending code of core, then the task can be constantly in wait state.Therefore, the programmer for writing code can choose multiple audits
Account, as long as wherein there is an audit account to audit pending code at first, and auditing result is had input, server
Judge whether pending code audit passes through according to the auditing result.
For example, A selection Lee B account and the pending code of king's C Account Review, server can send pending code
To the target terminal of Lee B account and king's C Account Logon.When there are a target audit account such as king C is available free in Lee B and king C
When the time, pending code can be audited in target terminal, and input auditing result.The available audit knot of target terminal
Fruit, and auditing result is back to server.At this point, pending code audit is logical if the auditing result is that audit passes through
It crosses, no longer needs to the feedback for waiting Lee B.If the auditing result is that audit does not pass through, the audit of pending code does not pass through, also without
The feedback of Lee B need to be waited again.
Optionally, it if auditing result meets the corresponding audit of pending code by condition, sends and examines to source terminal
It may include: the number and multiple audit accounts for determining and auditing and passing through in the auditing result that receives that core, which passes through the step of notice,
Ratio between total number, if it is determined that the ratio gone out is more than or equal to preset first fractional threshold, then sends out to source terminal
Core of submitting to a higher level for approval or revision passes through notice;If the auditing result meets the corresponding audit of pending code not by condition, sent out to source terminal
The step of core does not pass through notice of submitting to a higher level for approval or revision may include: the number and multiple audits for determining and auditing and passing through in the auditing result received
Ratio between the total number of account, if it is determined that the ratio gone out is greater than preset second fractional threshold, then sends to source terminal
Audit does not pass through notice, wherein preset second fractional threshold is equal to 1 value for subtracting preset first fractional threshold.
Multiple audit accounts can be set in the programmer for writing code, pass through as long as auditing in the auditing result of audit account
Number account for audit account total number ratio be more than certain proportion threshold value after, server can determine pending code examine
Core passes through.For example, the total number of audit account is 9 people, preset first fractional threshold is 2/3rds, the audit knot received
It is 6 people that the number passed through is audited in fruit, and server can then determine that pending code audit passes through, and send and audit to source terminal
Pass through notice.Meanwhile server can also send respectively audit to the target terminal of multiple audit Account Logons and pass through notice.Again
For example, the total number of audit account is 9 people, preset first fractional threshold is 2/3rds, is examined in the auditing result received
The number that core passes through is 5 people, and server can then determine that pending code audit does not pass through, and obstructed to source terminal transmission audit
Cross notice.Meanwhile server can also send respectively audit to the target terminal of multiple audit Account Logons and not pass through notice.?
In practical application, the code with same function can be developed by different modes, code write itself can there is no mistakes
Accidentally, but the superiority-inferiority of the code with same function of different modes exploitation is different.So the programmer for writing code can be with
Multiple audit users are invited to audit the superiority-inferiority of pending code, if most of audit users think pending code
That writes is good, then pending code audit passes through.
Optionally, if the audit of pending code does not pass through, server can recorde the auditing result of transmission to audit not
By target audit account.It, can will be modified pending after the programmer for writing code modifies pending code
Code is uploaded onto the server.The target that modified pending code is sent to multiple audit Account Logons again by server is whole
End, wherein including being transmitted across the unacceptable target audit account of audit before.Server can receive at least one target terminal
The auditing result of transmission, if the auditing result that target audit account is sent in the auditing result received is that audit passes through,
And the auditing result received meets audit by condition, then sends audit to source terminal and pass through notice.If what is received examines
The auditing result that either objective audit account is sent in core result is that the auditing result satisfaction that audit does not pass through, or receives is examined
Core does not pass through condition, then sends audit to source terminal and do not pass through notice.
The method provided by the embodiment of the present disclosure, server can receive the pending code of source terminal transmission;It determines
The corresponding multiple audit accounts of pending code, and determine the corresponding audit condition of pending code;It is corresponding to pending code
Multiple audit Account Logons target terminal, send pending code respectively;Receive examining at least one target terminal transmission
Core sends audit to source terminal and passes through notice as a result, if the auditing result received meets audit by condition.In this way,
Audit user can check pending code by target terminal, and auditing result is inputted in target terminal.Multiple and different mesh
Review operations can be carried out to pending code simultaneously by marking terminal, and when auditing result meets audit and passes through condition, service
Device can determine that pending code audit passes through, and send audit by notice to source terminal, improve the operating efficiency of audit code.
Fig. 5 is a kind of device block diagram of Validation Code shown according to an exemplary embodiment.Referring to Fig. 5, the device packet
It includes:
Receiving module 310 is configured as receiving the pending code that source terminal is sent;
Determining module 320, is configured to determine that the corresponding multiple audit accounts of the pending code, and determine it is described to
Audit the corresponding audit condition of code, wherein the audit condition includes at least audit and passes through condition;
Sending module 330 is configured as the target terminals to the corresponding multiple audit Account Logons of the pending code,
The pending code is sent respectively;
The receiving module 310 is configured as receiving the auditing result of at least one target terminal transmission;
The sending module 330 is configured as when the auditing result received meets the audit and passes through condition, to institute
It states source terminal and sends to audit and pass through notice.
Optionally, the determining module 320, is configured as:
The corresponding multiple audit accounts of the pending code and audit condition for receiving that the source terminal sends.
Optionally, the determining module 320, is configured as:
The corresponding relationship of source account according to the pre-stored data and audit account, determines the source account that the source terminal currently logs in
The corresponding multiple audit accounts in family, as the corresponding multiple audit accounts of the pending code;
The corresponding relationship of source account according to the pre-stored data and audit condition, determines the source account that the source terminal currently logs in
The corresponding audit condition in family, as the corresponding audit condition of the pending code.
Optionally, the audit condition further includes audit not by condition, and the sending module 330 is also configured to
When the auditing result received, which meets the audit, does not pass through condition, Xiang Suoshu source terminal sends audit and does not pass through
Notice.
Optionally, the sending module 330, is configured as:
If the auditing result received be audit pass through and the number of auditing result that receives be equal to it is the multiple
The total number of account is audited, then sends audit to the source terminal and passes through notice;
If any auditing result in the auditing result received is that audit does not pass through, sends and examine to the source terminal
Core does not pass through notice.
Optionally, the sending module 330, is configured as:
If received auditing result is that audit passes through at first, audit is sent to the source terminal and passes through notice;
If received auditing result is that audit does not pass through at first, audit is sent to the source terminal and does not pass through notice.
Optionally, the sending module 330, is configured as:
If audited in the auditing result received between the number passed through and the total number of the multiple audit account
Ratio is more than or equal to preset first fractional threshold, then sends audit to the source terminal and pass through notice;
If audited in the auditing result received between unacceptable number and the total number of the multiple audit account
Ratio be greater than preset second fractional threshold, then to the source terminal send audit do not pass through notice, wherein it is described preset
Second fractional threshold is equal to 1 value for subtracting preset first fractional threshold.
Optionally, the sending module 330, is configured as:
If the auditing result received meets the audit by condition, to the source terminal and the multiple audit
The target terminal of Account Logon sends audit respectively and passes through notice.
The device provided by the embodiment of the present disclosure, server can receive the pending code of source terminal transmission;It determines
The corresponding multiple audit accounts of pending code, and determine the corresponding audit condition of pending code;It is corresponding to pending code
Multiple audit Account Logons target terminal, send pending code respectively;Receive examining at least one target terminal transmission
Core sends audit to source terminal and passes through notice as a result, if the auditing result received meets audit by condition.In this way,
Audit user can check pending code by target terminal, and auditing result is inputted in target terminal.Multiple and different mesh
Review operations can be carried out to pending code simultaneously by marking terminal, and when auditing result meets audit and passes through condition, service
Device can determine that pending code audit passes through, and send audit by notice to source terminal, improve the operating efficiency of audit code.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 6 shows the structural schematic diagram of the server 1900 of one exemplary embodiment of disclosure offer.The server
1900 can generate bigger difference because configuration or performance are different, may include one or more processors (central
Processing units, CPU) 1910 and one or more memory 1920.Wherein, it is deposited in the memory 1920
At least one instruction is contained, at least one instruction is loaded by the processor 1910 and executed to realize above-described embodiment institute
The method for the Validation Code stated.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 1920 of instruction, above-metioned instruction can be executed by the processor 1910 of server 1900 to complete above-mentioned verifying generation
The method of code, this method comprises: receiving the pending code that source terminal is sent;Determine that the pending code is corresponding multiple careful
Core account, and determine the corresponding audit condition of the pending code, wherein the audit condition includes at least audit and passes through item
Part;To the target terminals of the corresponding multiple audit Account Logons of the pending code, the pending code is sent respectively;It connects
The auditing result of at least one target terminal transmission is received, if the auditing result received meets the audit and passes through condition,
Audit, which is sent, to the source terminal passes through notice.For example, the non-transitorycomputer readable storage medium can be ROM, with
Machine access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
In the exemplary embodiment, a kind of application program, including one or more instruction are additionally provided, this one or more
Instruction can be executed by the processor 1910 of server 1900, the method to complete above-mentioned Validation Code, this method comprises: receiving
The pending code that source terminal is sent;Determine the corresponding multiple audit accounts of the pending code, and determination is described pending
The corresponding audit condition of code, wherein the audit condition includes at least audit and passes through condition;It is corresponding to the pending code
Multiple audit Account Logons target terminal, send the pending code respectively;Receive the transmission of at least one target terminal
Auditing result it is logical to send audit to the source terminal if the auditing result received meets the audit by condition
Cross notice.Optionally, above-metioned instruction can also be executed by the processor 1910 of server 1900 to complete above-mentioned example implementation
Other steps involved in example.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (10)
1. a kind of method of Validation Code characterized by comprising
Receive the pending code that source terminal is sent;
It determines the corresponding multiple audit accounts of the pending code, and determines the corresponding audit condition of the pending code,
Wherein, the audit condition, which includes at least to audit, passes through condition;
To the target terminals of the corresponding multiple audit Account Logons of the pending code, the pending code is sent respectively;
The auditing result of at least one target terminal transmission is received, if the auditing result received meets the audit and passes through item
Part then sends audit to the source terminal and passes through notice.
2. the method according to claim 1, wherein the corresponding multiple audits of the determination pending code
Account, and determine the corresponding audit condition of the pending code, comprising:
The corresponding multiple audit accounts of the pending code and audit condition for receiving that the source terminal sends.
3. the method according to claim 1, wherein the corresponding multiple audits of the determination pending code
Account, and determine the corresponding audit condition of the pending code, comprising:
The corresponding relationship of source account according to the pre-stored data and audit account, determines the source account pair that the source terminal currently logs in
The multiple audit accounts answered, as the corresponding multiple audit accounts of the pending code;
The corresponding relationship of source account according to the pre-stored data and audit condition, determines the source account pair that the source terminal currently logs in
The audit condition answered, as the corresponding audit condition of the pending code.
4. the method according to claim 1, wherein the audit condition further includes audit not by condition, institute
State method further include:
If the auditing result received meets the audit not by condition, audit is sent not by logical to the source terminal
Know.
5. according to the method described in claim 4, it is characterized in that, if the auditing result received meets the audit
By condition, then audit is sent to the source terminal and passes through notice, comprising:
If the auditing result received is that the number for the auditing result that audit passes through and receives is equal to the multiple audit
The total number of account then sends audit to the source terminal and passes through notice;
If the auditing result received meets the audit not by condition, it is obstructed that audit is sent to the source terminal
Cross notice, comprising:
If any auditing result in the auditing result received is that audit does not pass through, audit is sent not to the source terminal
Pass through notice.
6. according to the method described in claim 4, it is characterized in that, if the auditing result received meets the audit
By condition, then audit is sent to the source terminal and passes through notice, comprising:
If received auditing result is that audit passes through at first, audit is sent to the source terminal and passes through notice;
If the auditing result received meets the audit not by condition, it is obstructed that audit is sent to the source terminal
Cross notice, comprising:
If received auditing result is that audit does not pass through at first, audit is sent to the source terminal and does not pass through notice.
7. according to the method described in claim 4, it is characterized in that, if the auditing result received meets the audit
By condition, then audit is sent to the source terminal and passes through notice, comprising:
If auditing the ratio between the number passed through and the total number of the multiple audit account in the auditing result received
More than or equal to preset first fractional threshold, then audit is sent to the source terminal and pass through notice;
If the auditing result received meets the audit not by condition, it is obstructed that audit is sent to the source terminal
Cross notice, comprising:
If auditing the ratio between unacceptable number and the total number of the multiple audit account in the auditing result received
Value is greater than preset second fractional threshold, then sends audit to the source terminal and do not pass through notice, wherein described preset second
Fractional threshold is equal to 1 value for subtracting preset first fractional threshold.
8. a kind of device of Validation Code characterized by comprising
Receiving module is configured as receiving the pending code that source terminal is sent;
Determining module is configured to determine that the corresponding multiple audit accounts of the pending code, and determines the pending generation
The corresponding audit condition of code, wherein the audit condition includes at least audit and passes through condition;
Sending module is configured as sending out respectively to the target terminals of the corresponding multiple audit Account Logons of the pending code
Send the pending code;
The receiving module is configured as receiving the auditing result of at least one target terminal transmission;
The sending module is configured as when the auditing result received meets the audit and passes through condition, and the source Xiang Suoshu is whole
End sends audit and passes through notice.
9. a kind of server characterized by comprising
One or more processors;
For storing one or more memories of one or more of processor-executable instructions;
Wherein, one or more of processors are configured as the side that perform claim requires the described in any item Validation Codes of 1-7
Method.
10. a kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processor of server
When execution, so that the method that the server is able to carry out the described in any item Validation Codes of claim 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910411164.6A CN110134605A (en) | 2019-05-16 | 2019-05-16 | Method, apparatus, computer equipment and the storage medium of Validation Code |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910411164.6A CN110134605A (en) | 2019-05-16 | 2019-05-16 | Method, apparatus, computer equipment and the storage medium of Validation Code |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110134605A true CN110134605A (en) | 2019-08-16 |
Family
ID=67575010
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910411164.6A Pending CN110134605A (en) | 2019-05-16 | 2019-05-16 | Method, apparatus, computer equipment and the storage medium of Validation Code |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110134605A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110865934A (en) * | 2019-10-08 | 2020-03-06 | 北京百度网讯科技有限公司 | Code verification method and device, electronic equipment and readable storage medium |
CN112333239A (en) * | 2020-10-10 | 2021-02-05 | 百度(中国)有限公司 | Service auditing notification method, gateway, electronic equipment and readable medium |
CN113126996A (en) * | 2019-12-31 | 2021-07-16 | 华控清交信息科技(北京)有限公司 | Code auditing method, device and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101620696A (en) * | 2008-06-30 | 2010-01-06 | 鸿富锦精密工业(深圳)有限公司 | Dynamic audit prompt system and method therefor |
JP2011134270A (en) * | 2009-12-25 | 2011-07-07 | Canon It Solutions Inc | Unit test support device, method and program |
CN102340634A (en) * | 2010-07-20 | 2012-02-01 | 北大方正集团有限公司 | Playbill auditing method |
JP2016133946A (en) * | 2015-01-19 | 2016-07-25 | 株式会社日立製作所 | Source code reviewing method and system therefor |
CN108073394A (en) * | 2018-02-27 | 2018-05-25 | 西安闻泰电子科技有限公司 | Code administration method, apparatus, code administration server and storage medium |
-
2019
- 2019-05-16 CN CN201910411164.6A patent/CN110134605A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101620696A (en) * | 2008-06-30 | 2010-01-06 | 鸿富锦精密工业(深圳)有限公司 | Dynamic audit prompt system and method therefor |
JP2011134270A (en) * | 2009-12-25 | 2011-07-07 | Canon It Solutions Inc | Unit test support device, method and program |
CN102340634A (en) * | 2010-07-20 | 2012-02-01 | 北大方正集团有限公司 | Playbill auditing method |
JP2016133946A (en) * | 2015-01-19 | 2016-07-25 | 株式会社日立製作所 | Source code reviewing method and system therefor |
CN108073394A (en) * | 2018-02-27 | 2018-05-25 | 西安闻泰电子科技有限公司 | Code administration method, apparatus, code administration server and storage medium |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110865934A (en) * | 2019-10-08 | 2020-03-06 | 北京百度网讯科技有限公司 | Code verification method and device, electronic equipment and readable storage medium |
CN110865934B (en) * | 2019-10-08 | 2023-10-27 | 北京百度网讯科技有限公司 | Code verification method, device, electronic equipment and readable storage medium |
CN113126996A (en) * | 2019-12-31 | 2021-07-16 | 华控清交信息科技(北京)有限公司 | Code auditing method, device and system |
CN113126996B (en) * | 2019-12-31 | 2023-10-20 | 华控清交信息科技(北京)有限公司 | Code auditing method, device and system |
CN112333239A (en) * | 2020-10-10 | 2021-02-05 | 百度(中国)有限公司 | Service auditing notification method, gateway, electronic equipment and readable medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11410229B2 (en) | Data reconciliation based on computer analysis of data | |
WO2019180702A1 (en) | Method and system for assessing future execution of a smart contract based on previous executions on a blockchain-based platform | |
CN110134605A (en) | Method, apparatus, computer equipment and the storage medium of Validation Code | |
US20180060818A1 (en) | Conference assistance system and conference assistance method | |
US9406239B2 (en) | Vector-based learning path | |
US20130297544A1 (en) | Reuse of On-Demand Enterprise System Customization Knowledge Utilizing Collective Experience | |
US10635574B1 (en) | Screenshot testing of applications on windows desktop environments | |
CN110601863B (en) | Method for rapidly entering meeting through small program card | |
JP6785810B2 (en) | Simulator, simulation equipment, and simulation method | |
EP4095700A1 (en) | Method and system for micro-service testing, and storage medium | |
CN111815169A (en) | Business approval parameter configuration method and device | |
CN112148582A (en) | Policy testing method and device, computer readable medium and electronic device | |
CN109491779A (en) | A kind of batch is declared dutiable goods method and apparatus | |
US8417996B2 (en) | Facade for business risk minimization in change administration via risk estimation and mistake identification by ticket analysis | |
US20040128653A1 (en) | Methods and processes for validating reports | |
US8010950B1 (en) | Method and apparatus for testing a binding application programming interface | |
Patton | Designing requirements: incorporating usage-centered design into an agile SW development process | |
CN116662132A (en) | Evaluation method, virtual deployment method, computer device, and storage medium | |
CN110442636A (en) | A kind of reading/writing method of data, device and reading and writing data equipment | |
KR20230071673A (en) | Method, computer device, and computer program for building open-domain dialogue system using language model | |
CN112559338A (en) | Application program checking method, device, equipment and storage medium | |
CN114218077A (en) | Software quality evaluation method, device, equipment and readable storage medium | |
Soykot et al. | System Design and Implementation of a Mobile Application Named Bachelor’s Solutions for Hostel Living Bachelors | |
TWI567699B (en) | Interactive remark recommendation system | |
CN115543709A (en) | Block chain-based fund network access system and method |
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 |