CN105045716A - Authority management method and apparatus - Google Patents

Authority management method and apparatus Download PDF

Info

Publication number
CN105045716A
CN105045716A CN201510463331.3A CN201510463331A CN105045716A CN 105045716 A CN105045716 A CN 105045716A CN 201510463331 A CN201510463331 A CN 201510463331A CN 105045716 A CN105045716 A CN 105045716A
Authority
CN
China
Prior art keywords
code segment
code
storehouse
validation
duration
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.)
Granted
Application number
CN201510463331.3A
Other languages
Chinese (zh)
Other versions
CN105045716B (en
Inventor
廉海鹰
余明阳
杨亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510463331.3A priority Critical patent/CN105045716B/en
Publication of CN105045716A publication Critical patent/CN105045716A/en
Application granted granted Critical
Publication of CN105045716B publication Critical patent/CN105045716B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

Disclosed are a right management method and apparatus, belonging to the technical field of computers. The method comprises: when receiving a code segment submitted by a development terminal to a first verification code library, disabling a specified operation right of the code segment, and making statistics on survival duration of the code segment in the first verification code library; judging whether the survival duration reaches a first preset duration; and when the survival duration reaches the first preset duration, enabling the specified operation right of the code segment. According to the right management method and apparatus, the survival duration of the code segment is subjected to statistics, and only when the survival duration reaches the first preset duration, the specified operation right of the code segment can be enabled and the code segment can be submitted to a second verification code library, so that the verification duration of the code segment in the first verification code library is longer than the first preset duration, the omitted existing problems caused by too short verification duration of the code segment are avoided, and the accuracy of the code segment is improved.

Description

Right management method and device
Technical field
The disclosure is directed to field of computer technology, specifically about a kind of right management method and device.
Background technology
Along with the development of intelligent terminal and universal, diversified terminal starts to occur, and the demand of user to termination function is also more and more higher.In order to meet the growing demand of user, developer needs constantly to upgrade termination function, and this renewal process need based on newly developed go out code segment realize.
Developer can develop the code segment for realizing New function, but, newly developed go out code segment may there are some problems, can not directly be distributed to all users, also need to verify.This proof procedure can be undertaken by the Validation Code storehouse of server, for the first Validation Code storehouse and the second Validation Code storehouse, this code segment is committed in the first Validation Code storehouse by developer, this the first Validation Code storehouse opens to a small amount of user, these users can access this first Validation Code storehouse, this code segment is run after downloading this code segment, and this code segment Problems existing is found in the process running this code segment, the problem of discovery is uploaded in this server, the problem that developer can propose according to user, modifies to this code segment.After after a while, when developer thinks that this code segment is verified abundant, this code segment can be committed to the second Validation Code storehouse, now, the proof procedure of this code segment in this first Validation Code storehouse completes.
Summary of the invention
In order to solve Problems existing in correlation technique, present disclose provides a kind of right management method and device.Described technical scheme is as follows:
According to the first aspect of disclosure embodiment, provide a kind of right management method, described method comprises:
When receiving the code segment that exploitation terminal is submitted to the first Validation Code storehouse, close the assigned operation authority of described code segment, and add up the existence duration of described code segment in described first Validation Code storehouse, described assigned operation authority refers to the authority described code segment being committed to the second Validation Code storehouse, and described second Validation Code storehouse is next code library in described first Validation Code storehouse;
Judge whether described existence duration reaches the first preset duration;
When described existence duration reaches described first preset duration, open the assigned operation authority of described code segment.
In another embodiment, described when described existence duration reaches described first preset duration, after opening the assigned operation authority of described code segment, described method also comprises:
When receiving the submission instruction of described exploitation terminal to described code segment, described code segment is committed to described second Validation Code storehouse.
In another embodiment, described method also comprises:
Obtain at least one code segment received in current period;
Generate test assignment list, described test assignment list comprises at least one code segment received in current period;
Send described test assignment list to test terminal, make described test terminal show described test assignment list.
In another embodiment, described when receiving the code segment that exploitation terminal is submitted to the first Validation Code storehouse, close the assigned operation authority of described code segment, comprising:
When receiving described code segment, judge whether open-authentication duration monitoring function;
If opened described checking duration monitoring function, then close the assigned operation authority of described code segment.
In another embodiment, described method also comprises:
Obtain the different information between described first Validation Code storehouse and described second Validation Code storehouse, described different information comprises the code segment not also being committed to described second Validation Code storehouse in described first Validation Code storehouse;
Send described different information to described exploitation terminal, make different information described in described exploitation terminal display.
In another embodiment, the different information between the described first Validation Code storehouse of described acquisition and the second Validation Code storehouse, comprising:
Obtain in described first Validation Code storehouse and survive duration more than the code segment of the second preset duration;
Code segment in the described code segment that gets and described second Validation Code storehouse is contrasted, obtains described different information.
According to the second aspect of disclosure embodiment, provide a kind of rights management device, described device comprises:
Receiver module, for receiving the code segment that exploitation terminal is submitted to the first Validation Code storehouse;
Authority closing module, for receive when described receiver module exploitation terminal submit to the first Validation Code storehouse code segment time, close the assigned operation authority of described code segment, described assigned operation authority refers to the authority described code segment being committed to the second Validation Code storehouse, and described second Validation Code storehouse is next code library in described first Validation Code storehouse;
Statistical module, for receive when described receiver module exploitation terminal submit to the first Validation Code storehouse code segment time, add up the existence duration of described code segment in described first Validation Code storehouse;
Judge module, for judge described statistical module counts to existence duration whether reach the first preset duration;
Authority opening module, for when described statistical module counts to existence duration reach described first preset duration time, open the assigned operation authority of described code segment.
In another embodiment, described device also comprises:
Submitting module to, for when receiving the submission instruction of described exploitation terminal to described code segment, described code segment being committed to described second Validation Code storehouse.
In another embodiment, described device also comprises:
Acquisition module, for obtaining at least one code segment received in current period;
List Generating Module, for generating test assignment list, described test assignment list comprises at least one code segment received in current period;
Sending module, for sending described test assignment list to test terminal, makes described test terminal show described test assignment list.
In another embodiment, described authority closing module, also for when receiving described code segment, judges whether open-authentication duration monitoring function; If opened described checking duration monitoring function, then close the assigned operation authority of described code segment.
In another embodiment, described device also comprises:
Difference acquisition module, for obtaining the different information between described first Validation Code storehouse and described second Validation Code storehouse, described different information comprises the code segment not also being committed to described second Validation Code storehouse in described first Validation Code storehouse;
Sending module, for sending described different information to described exploitation terminal, makes different information described in described exploitation terminal display.
In another embodiment, described difference acquisition module also survives duration more than the code segment of the second preset duration for obtaining in described first Validation Code storehouse; Code segment in the described code segment that gets and described second Validation Code storehouse is contrasted, obtains described different information.
According to the third aspect of disclosure embodiment, provide a kind of rights management device, described device comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
When receiving the code segment that exploitation terminal is submitted to the first Validation Code storehouse, close the assigned operation authority of described code segment, and add up the existence duration of described code segment in described first Validation Code storehouse, described assigned operation authority refers to the authority described code segment being committed to the second Validation Code storehouse, and described second Validation Code storehouse is next code library in described first Validation Code storehouse;
Judge whether described existence duration reaches the first preset duration;
When described existence duration reaches described first preset duration, open the assigned operation authority of described code segment.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
The method and apparatus that the present embodiment provides, by when receiving the code segment that exploitation terminal is submitted to the first Validation Code storehouse, close the assigned operation authority of this code segment, and add up the existence duration of this code segment in this first Validation Code storehouse, judge whether this existence duration reaches the first preset duration, when this existence duration reaches this first preset duration, open the assigned operation authority of this code segment.By adding up the existence duration of code segment, only when this existence duration reaches the first preset duration, just can open the assigned operation authority of this code segment, this code segment could be committed to the second Validation Code storehouse, ensure that the checking duration of this code segment in this first Validation Code storehouse is greater than this first preset duration, avoid checking duration due to code segment too short and cause the problem of omitting existing for it, improve the accuracy of this code segment.
Should be understood that, it is only exemplary that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows and meets embodiment of the present disclosure, and is used from instructions one and explains principle of the present disclosure.
Fig. 1 is the process flow diagram of a kind of right management method according to an exemplary embodiment;
Fig. 2 is the process flow diagram of a kind of right management method according to an exemplary embodiment;
Fig. 3 A is the block diagram of a kind of rights management device according to an exemplary embodiment;
Fig. 3 B is the block diagram of a kind of rights management device according to an exemplary embodiment;
Fig. 3 C is the block diagram of a kind of rights management device according to an exemplary embodiment;
Fig. 3 D is the block diagram of a kind of rights management device according to an exemplary embodiment;
Fig. 4 is the block diagram of a kind of rights management device according to an exemplary embodiment.
Embodiment
For making object of the present disclosure, technical scheme and advantage clearly understand, below in conjunction with embodiment and accompanying drawing, the disclosure is described in further details.At this, exemplary embodiment of the present disclosure and illustrating for explaining the disclosure, but not as to restriction of the present disclosure.
Disclosure embodiment provides a kind of right management method, is described in detail to the disclosure below in conjunction with accompanying drawing.
Fig. 1 is the process flow diagram of a kind of right management method according to an exemplary embodiment, and as shown in Figure 1, this right management method is used for, in server, comprising the following steps:
In a step 101, when receiving the code segment that exploitation terminal is submitted to the first Validation Code storehouse, close the assigned operation authority of this code segment, and add up the existence duration of this code segment in this first Validation Code storehouse, this assigned operation authority refers to the authority this code segment being committed to the second Validation Code storehouse, and this second Validation Code storehouse is next code library in this first Validation Code storehouse.
In a step 102, judge whether this existence duration reaches the first preset duration.
In step 103, when this existence duration reaches this first preset duration, the assigned operation authority of this code segment is opened.
In the present embodiment, this the first Validation Code storehouse opens to the user of some, after this code segment is committed in the first Validation Code storehouse by this exploitation terminal, these users can access this first Validation Code storehouse, this code segment is run after downloading this code segment, and this code segment Problems existing is found in the process running this code segment, the problem of discovery is uploaded in this server, the problem that this server can propose to exploitation terminal display user, the problem that developer can propose according to user, modifies to this code segment.This is pinpointed the problems and the process of modifying is the proof procedure of code segment.After checking a period of time, when developer thinks that this code segment is verified abundant, the submit operation to this code segment can be triggered in exploitation terminal, when exploitation terminal detects this submit operation, the submission instruction to this code segment is sent to this server, this code segment can be committed to the second Validation Code storehouse by this server, proceeds checking in this second Validation Code storehouse.
The proof procedure of this code segment in this first Validation Code storehouse is shorter, more may omit Problems existing in this code segment.For this reason, this server is added up the existence duration of this code segment in this first Validation Code storehouse, only when this existence duration reaches the first preset duration, just can open the assigned operation authority of this code segment, so, this code segment, only after this existence duration reaches this first preset duration, could be committed to the second Validation Code storehouse by this server, then the checking duration of this code segment in this first Validation Code storehouse can be greater than this first preset duration.
The method that the present embodiment provides, by when receiving the code segment that exploitation terminal is submitted to the first Validation Code storehouse, close the assigned operation authority of this code segment, and add up the existence duration of this code segment in this first Validation Code storehouse, judge whether this existence duration reaches the first preset duration, when this existence duration reaches this first preset duration, open the assigned operation authority of this code segment.By adding up the existence duration of code segment, only when this existence duration reaches the first preset duration, just can open the assigned operation authority of this code segment, this code segment could be committed to the second Validation Code storehouse, ensure that the checking duration of this code segment in this first Validation Code storehouse is greater than this first preset duration, avoid checking duration due to code segment too short and cause the problem of omitting existing for it, improve the accuracy of this code segment.
In another embodiment, deserve this existence duration when reaching this first preset duration, after opening the assigned operation authority of this code segment, the method also comprises:
When receiving the submission instruction of this exploitation terminal to this code segment, this code segment is committed to this second Validation Code storehouse.
In another embodiment, the method also comprises:
Obtain at least one code segment received in current period;
Generate test assignment list, this test assignment list comprises at least one code segment received in current period;
Send this test assignment list to test terminal, make this test terminal show this test assignment list.
In another embodiment, should receive exploitation terminal submit to the first Validation Code storehouse code segment time, close the assigned operation authority of this code segment, comprising:
When receiving this code segment, judge whether open-authentication duration monitoring function;
If opened this checking duration monitoring function, then close the assigned operation authority of this code segment.
In another embodiment, the method also comprises:
Obtain the different information between this first Validation Code storehouse and this second Validation Code storehouse, this different information comprises the code segment not also being committed to this second Validation Code storehouse in this first Validation Code storehouse;
Send this different information to this exploitation terminal, make this this different information of exploitation terminal display.
In another embodiment, the different information between this first Validation Code storehouse of this acquisition and the second Validation Code storehouse, comprising:
Obtain in this first Validation Code storehouse and survive duration more than the code segment of the second preset duration;
Code segment in the code segment this got and this second Validation Code storehouse contrasts, and obtains this different information.
Above-mentioned all alternatives, can adopt and combine arbitrarily formation embodiment of the present disclosure, this is no longer going to repeat them.
Fig. 2 is the process flow diagram of a kind of right management method according to an exemplary embodiment, and as shown in Figure 2, the interaction agent of this right management method is exploitation terminal and server, comprises the following steps:
In step 201, exploitation terminal to server sends first and submits instruction to, and the code segment of this exploitation terminal is carried in this first submission instruction.
This code segment comprises a line or lines of code, and can be the code segment based on C language, the code segment based on Java language or the code segment etc. based on other language, the present embodiment limit this.This code segment is used for upgrading program, to realize corresponding function, this program can be the operating system program of terminal or the application program etc. of terminal installation, and the function that this code segment realizes can be speech voice input function, Video chat function etc., and the present embodiment does not all limit this.
This exploitation terminal refers to the terminal getting this code segment, can be the equipment such as computing machine, mobile phone, and this code segment can be generated by this exploitation terminal, or sends to this exploitation terminal after being generated by other equipment, and the present embodiment does not limit this.In addition, the user of this exploitation terminal can be referred to as the developer of this code segment.
When this exploitation terminal gets this code segment, can send the first submission instruction to server, this first submits to instruction to carry this code segment, and this first submits to instruction to be used to indicate and to be committed in the first Validation Code storehouse of server by this code segment.
In step 202., when server receives this first submission instruction, in the first Validation Code storehouse, store this code segment, and close the assigned operation authority of this code segment.
When this server receives this first submission instruction, in this first Validation Code storehouse, store this code segment.Now, the terminal of accessing this first Validation Code storehouse can download this code segment from this first Validation Code storehouse, and runs this code segment, finds this code segment Problems existing in operational process, problem is committed to this server, realizes the proof procedure to this code segment.
Such as, after this code segment of this terminal downloads, can according to this code segment, the program corresponding to this code segment upgrades, program after then upgrading comprises this code segment, and this terminal can run the program after renewal, finds the problem existing for this program in operational process, this problem can be thought and to be caused by this code segment, then this problem is committed to this server.
And, this server also can distribute assigned operation authority for this code segment, this assigned operation authority refers to authority code segment being committed to next code library, in subsequent process, when this server receives another submission instruction of this exploitation terminal, can when opening the assigned operation authority of this code segment, this code segment is committed to the second Validation Code storehouse, this second Validation Code storehouse is next code library in this first Validation Code storehouse.
From this server receives this code segment, till this code segment is committed to the second Validation Code storehouse, institute's elapsed time interval is the checking duration of this code segment in this first Validation Code storehouse.When growing too short upon the authentication, may not find Problems existing in this code segment fully, throw into question omission.
In the present embodiment, in order to avoid the problem that above-mentioned checking duration is too short, when this server receives this code segment, close the assigned operation authority of this code segment.After closing the assigned operation authority of this code segment, even if when this server receives the submission instruction of this exploitation terminal to this code segment, also this code segment can not be committed to this second Validation Code storehouse.That is to say, this server, by closing the assigned operation authority of this code segment, forcibly in this first Validation Code storehouse, is verified this code segment.
It should be noted that, the present embodiment is only with when this server receives this code segment, the assigned operation authority of direct this code segment of closedown is that example is described, in fact, this server can provide checking duration monitoring function, only when verifying that duration monitoring function is opened, just can close the assigned operation authority of this code segment.
So, when this server receives this code segment, first judge whether open-authentication duration monitoring function, if do not open this checking duration monitoring function, then do not close the assigned operation authority of this code segment.If opened this checking duration monitoring function, then close the assigned operation authority of this code segment, started to perform step 203, add up the existence duration of this code segment in this first Validation Code storehouse.And in the process of statistics existence duration, if this server receives the instruction of this checking duration monitoring function of closedown that managerial personnel trigger, this checking duration monitoring function can be closed, now, this server will no longer add up the existence duration of this code segment in this first Validation Code storehouse, and this server also can open the assigned operation authority of this code segment, so that based on this assigned operation authority, this code segment is committed in the second Validation Code storehouse.During practical application, the managerial personnel of this server in case of emergency or at other in particular cases, can trigger the instruction of closing this checking duration monitoring function, to be committed in the second Validation Code storehouse by this code segment.
In step 203, the existence duration of this code segment of this server statistics in this first Validation Code storehouse, judges whether this existence duration reaches the first preset duration, if so, performs step 204, if not, continues to perform step 203.
The existence duration of this code segment refers to the duration of this this code segment of the first Validation Code library storage, As time goes on, the existence duration of this code segment also can correspondingly increase, and this server is when receiving this code segment, can start timing, then the duration added up is the existence duration of this code segment.
This first preset duration is used to indicate the minimum existence duration of this code segment in this first Validation Code storehouse, can be preset by this server, and for different code segments, this server can set the first different preset duration, and the present embodiment does not limit this.
This server can add up the existence duration of this code segment, judge whether this existence duration reaches the first preset duration, if this existence duration reaches the first preset duration, show that the checking duration of this code segment in this first Validation Code storehouse has reached this first preset duration, then can think the most of problem having found to exist in this code segment, this code segment empirical tests is abundant, this code segment can be committed to the second Validation Code storehouse.If this existence duration does not also reach the first preset duration, can think that a lot of problems in this code segment also do not find, if now this code segment is committed to the second Validation Code storehouse, be easy to omit the problem existing for it, also need to proceed checking, then this server continues the existence duration of this code segment of statistics in this first Validation Code storehouse, until when this existence duration reaches the first preset duration, performs step 204.
It should be noted that, the present embodiment only receives this code segment with this server, namely starting timing is example, will from this server receives this code segment, until this code segment is committed to time interval between the second Validation Code storehouse as the checking duration of this code segment in this first Validation Code storehouse, and in fact, when this server can also store this code segment in this first Validation Code storehouse, just start timing, that is to say, will from this this code segment of the first Validation Code library storage, until this code segment is committed to time interval between the second Validation Code storehouse as the checking duration of this code segment in this first Validation Code storehouse.The present embodiment does not limit this.
In step 204, this server opens the assigned operation authority of this code segment.
When this existence duration reaches the first preset duration, this server can open the assigned operation authority of this code segment, afterwards, the submission instruction that this server can send based on this assigned operation authority and exploitation terminal, is committed to this code segment in the second Validation Code storehouse.
In time this code segment is committed to the second Validation Code storehouse to point out developer, after this server opens the assigned operation authority of this code segment, the code segment mark of this code segment can be sent to this exploitation terminal, when this exploitation terminal receives this code segment mark, show this code segment mark, this code segment can be committed to the second Validation Code storehouse to point out developer.Wherein, this code segment mark is used for uniquely determining this code segment, and can be the numbering of this code segment or file name etc., the present embodiment limit this.
It should be noted that, the present embodiment is only for a code segment, and in actual applications, this the first Validation Code storehouse and this second Validation Code storehouse comprise multiple code segment, then in order to by store in this first Validation Code storehouse, also the code segment be not committed in this second Validation Code storehouse show developer, this server can obtain the different information between this first Validation Code storehouse and this second Validation Code storehouse, this different information is sent to this exploitation terminal, when this exploitation terminal receives this different information, show this different information.Such as, this server can according to the email address of developer, and the exploitation terminal to this email address place sends mail, and this mail comprises this different information, and this exploitation terminal can show this different information in mail.
Wherein, code segment in code segment in this first Validation Code storehouse and this second Validation Code storehouse can contrast by this server, obtain this different information, make this different information comprise the code segment not also being committed to this second Validation Code storehouse in this first Validation Code storehouse.When this this different information of exploitation terminal display, developer can be pointed out to be committed in the second Validation Code storehouse by the code segment comprised in this different information.
In addition, in order to point out developer, the code segment having opened assigned operation authority in the first Validation Code storehouse is committed in the second Validation Code storehouse, this server can obtain in this first Validation Code storehouse survives duration more than the code segment of the second preset duration, code segment in the code segment this got and this second Validation Code storehouse contrasts, obtain this different information, and send this different information to this exploitation terminal, when this exploitation terminal receives this different information, show this different information.
Wherein, comprise in this different information in this first Validation Code storehouse and survive duration more than the second preset duration, but be not also committed to the code segment in this second Validation Code storehouse.This second preset duration can be greater than this first preset duration, also can equal this first preset duration, then comprise in this different information in the first Validation Code storehouse and opened assigned operation authority, but is not also committed to the code segment in this second Validation Code storehouse.When this this different information of exploitation terminal display, developer can be pointed out to be committed in the second Validation Code storehouse by the code segment having opened assigned operation authority in the first Validation Code storehouse.
During this this different information of exploitation terminal display, developer in this exploitation terminal, can trigger the submit operation to code segment arbitrary in this different information, to be committed to by this code segment in this second Validation Code storehouse.
This server is by sending different information to exploitation terminal, can point out developer in time, avoid and to forget due to the carelessness of developer this code segment is committed to the second Validation Code storehouse, cause code segment long in the proving time in this first Validation Code storehouse, and then delay the checking progress of this code segment in subsequent authentication code library.
In step 205, when this exploitation terminal detects the submit operation to this code segment, send second submit instruction to this server, this second submission instruction is used to indicate and this code segment is committed to next code library.
Wherein, this exploitation terminal can show multiple code segment to be committed mark, can for clicking the operation of corresponding code segment mark to the submit operation of this code segment, or, this exploitation terminal can provide the submission option of each code segment, can for selecting the operation etc. of the submission option of this code segment to the submit operation of this code segment, the present embodiment does not limit this.
In step 206, when this server receives this second submission instruction, based on the assigned operation authority of this code segment, this code segment is committed to the second Validation Code storehouse.
When this exploitation terminal detects the submit operation to this code segment, send second to this server and submit instruction to, this code segment mark is carried in this second submission instruction, be used to indicate and this code segment is committed to next code library, then when this server receives this second submission instruction, according to the code segment mark in this second submission instruction, this code segment can be committed in this second Validation Code storehouse.
In the present embodiment, this server has opened the assigned operation authority of this code segment in step 204, then in step 206, when this server receives the second submission instruction to this code segment, based on the assigned operation authority of this code segment, this code segment is committed to the second Validation Code storehouse.
And in practical application, for arbitrary code segment, when this server receives the submission instruction to this code segment, first judge whether the assigned operation authority of having opened this code segment, if when having opened the assigned operation authority of this code segment, this code segment is committed to next code library, if when not opening the assigned operation authority of this code segment, then ignore this submission instruction, or, send prompting message to the exploitation terminal sending this submission instruction, to point out the checking duration of this code segment of developer not reach regulation duration, next code library can not be committed to.
In the present embodiment, when this server stores this code segment in this first Validation Code storehouse, this code segment can be downloaded in test terminal, and runs this code segment, tests this code segment.Wherein, this test terminal can be the equipment such as computing machine, mobile phone, and the present embodiment does not limit this.
And in order to point out tester to test code segment in time, this server can with the 3rd preset duration for one-period, every the 3rd preset duration, obtain at least one code segment received in current period, generate test assignment list, this test assignment list comprises at least one code segment received in current period, this test assignment list is sent to test terminal, when this test terminal receives this test assignment list, show this test assignment list, tester can check the code segment in this test assignment list, trigger the test operation to arbitrary code segment, when this test terminal detects this test operation, this code segment is downloaded from this server, and run this code segment, this code segment is tested.Wherein, the 3rd preset duration can be preset by this server, and can be 24 hours, one week or other numerical value, the present embodiment limit this.
In addition, this server can receive multiple code segment, the function that the plurality of code segment realizes may be identical, also may be different, then this server can also determine the test terminal corresponding to each function, when this server receives at least one code segment in current period, can according to the difference of realization of functions, this at least one code segment is divided, obtain multiple grouping, code segment in each grouping is for realizing identical function, and the code segment of different grouping is for realizing different functions.Then for each grouping, this server according to the code segment in this grouping, can generate corresponding test assignment list, determines to send this test assignment list to this test terminal in the test terminal that function that this grouping realizes is corresponding.The tester being then responsible for this function on this test terminal, can check code segment in this test assignment list, tests these code segments.
This server is by sending test assignment list to test terminal, the code segment that developer newly submits to is initiatively inquired about in the server without the need to tester, tester can be pointed out in time to test the new code segment submitted to, improve the work efficiency of tester, avoid tester to omit the code segment that need test due to carelessness.
It should be noted that, the present embodiment is only described for this first Validation Code storehouse and this second Validation Code storehouse, and in actual applications, multiple Validation Code storehouse can be comprised in this server, have sequencing between in the plurality of Validation Code storehouse, the number of users that previous Validation Code storehouse opens is less than the number of users that a rear Validation Code storehouse opens.
Three Validation Code storehouses are comprised: experience version code library, exploitation version code library and stable version code library for this server, the number of users that this experience version code library opens is less, the number of users that this exploitation version code library opens is between this experience version code library and this stable version code library, and the number of users that this stable version code library opens is more.Code segment through checking after a while, just can be committed in this exploitation version code library in this experience version code library, and correspondingly, this code segment through checking after a while, just can be committed in this stable version code library in this exploitation version code library.
If the checking duration of this code segment in this experience version code library is shorter, then this code segment is committed in exploitation version code library, the Consumer's Experience of this exploitation version code library can be affected, correspondingly, if the checking duration of this code segment in this exploitation version code library is shorter, then this code segment is committed in stable version code library, the Consumer's Experience of this stable version code library can be affected.
For this reason, this server is according to the existence duration of this code segment in this experience version code library, assigned operation authority is managed, ensure that the checking duration of this code segment in this experience version code library is greater than the first preset duration, ensure that the quality of this experience version code library institute Validation Code section.Correspondingly, this server is according to the existence duration of this code segment in this exploitation version code library, assigned operation authority is managed, ensures that the checking duration of this code segment in this exploitation version code library is greater than the first preset duration, ensure that the quality of this exploitation version code library institute Validation Code section.
Wherein, for different code libraries, the first preset duration of this server settings can be identical, also can be different, and the present embodiment does not limit this.
In actual applications, experience the checking that version code library may be used for New function, can open to multiple developer, exploitation version code library can open to multiple sample of users, and stablizes version code library and can open to all users.So, the developer of this code segment by newly developed go out code segment be committed to experience in version code library time, the plurality of developer professionally can verify this code segment.When this code segment being committed in exploitation version code library, from the angle of domestic consumer's application, this code segment can be verified.And after the checking experiencing version code library and exploitation version code library, can think that code segment has been verified fully, be then committed to by this code segment in stable version code library, all users can apply this code segment.
It should be noted that, the present embodiment is only configured at a server for the plurality of Validation Code storehouse and is described, in fact, the plurality of Validation Code storehouse can be configured in multiple server, then be configured at first server with the first Validation Code storehouse, and the second Validation Code storehouse is configured at second server is example, when exploitation terminal will submit code segment to, the first submission instruction can be sent to first server, code segment is carried in this first submission instruction, this first server receives this first submission instruction, code segment in this first submission instruction is committed to the first Validation Code storehouse.After checking after a while, exploitation terminal sends second to this first server again and submits instruction to, this code segment is committed to the second Validation Code storehouse in second server to indicate this first server.When this first server receives this second submission instruction, call the interface between this first server and second server, this code segment is committed to the second Validation Code storehouse in this second server, verify in this second Validation Code storehouse.
Or, in this first Validation Code storehouse after checking after a while, exploitation terminal can send the second submission instruction to second server, code segment is carried in this second submission instruction, when this second server receives this second submission instruction, this code segment is committed to this second Validation Code storehouse, verifies in this second Validation Code storehouse.
The method that the present embodiment provides, by when receiving the code segment that exploitation terminal is submitted to the first Validation Code storehouse, close the assigned operation authority of this code segment, and add up the existence duration of this code segment in this first Validation Code storehouse, judge whether this existence duration reaches the first preset duration, when this existence duration reaches this first preset duration, open the assigned operation authority of this code segment.By adding up the existence duration of code segment, only when this existence duration reaches the first preset duration, just can open the assigned operation authority of this code segment, this code segment could be committed to the second Validation Code storehouse, ensure that the checking duration of this code segment in this first Validation Code storehouse is greater than this first preset duration, avoid checking duration due to code segment too short and cause the problem of omitting existing for it, improve the accuracy of this code segment.Different information between this first Validation Code storehouse and the second Validation Code storehouse is sent to exploitation terminal, developer can be pointed out in time to be committed in the second Validation Code storehouse by the code segment having opened assigned operation authority in the first Validation Code storehouse, avoid and to forget due to the carelessness of developer this code segment is committed to the second Validation Code storehouse, cause code segment long in the proving time in this first Validation Code storehouse, and then delay the checking progress of this code segment in subsequent authentication code library.And, periodically send test assignment list to test terminal, can tester be pointed out in time to test code segment, improve the work efficiency of tester.
Fig. 3 A is the block diagram of a kind of rights management device according to an exemplary embodiment.See Fig. 3 A, this device comprises receiver module 301, authority closing module 302, statistical module 303, judge module 304 and authority opening module 305.
Receiver module 301 is configured to the code segment submitted to the first Validation Code storehouse for receiving exploitation terminal.
Authority closing module 302 be configured to for receive when this receiver module 301 exploitation terminal submit to the first Validation Code storehouse code segment time, close the assigned operation authority of this code segment, this assigned operation authority refers to the authority this code segment being committed to the second Validation Code storehouse, and this second Validation Code storehouse is next code library in this first Validation Code storehouse.
Statistical module 303 be configured to for receive when this receiver module 301 exploitation terminal submit to the first Validation Code storehouse code segment time, add up the existence duration of this code segment in this first Validation Code storehouse.
Judge module 304 is configured to for judging whether the existence duration that this statistical module 303 counts on reaches the first preset duration.
Authority opening module 305 is configured to, for when the existence duration that this statistical module 303 counts on reaches this first preset duration, open the assigned operation authority of this code segment.
The device that the present embodiment provides, by when receiving the code segment that exploitation terminal is submitted to the first Validation Code storehouse, close the assigned operation authority of this code segment, and add up the existence duration of this code segment in this first Validation Code storehouse, judge whether this existence duration reaches the first preset duration, when this existence duration reaches this first preset duration, open the assigned operation authority of this code segment.By adding up the existence duration of code segment, only when this existence duration reaches the first preset duration, just can open the assigned operation authority of this code segment, this code segment could be committed to the second Validation Code storehouse, ensure that the checking duration of this code segment in this first Validation Code storehouse is greater than this first preset duration, avoid checking duration due to code segment too short and cause the problem of omitting existing for it, improve the accuracy of this code segment.
See Fig. 3 B, in another embodiment, this device also comprises:
Module 306 is submitted to be configured to, for when receiving the submission instruction of this exploitation terminal to this code segment, this code segment is committed to this second Validation Code storehouse.
See Fig. 3 C, in another embodiment, this device also comprises:
Acquisition module 307 is configured to for obtaining at least one code segment received in current period;
List Generating Module 308 is configured to for generating test assignment list, and this test assignment list comprises at least one code segment received in current period;
Sending module 309 is configured to, for sending this test assignment list to test terminal, make this test terminal show this test assignment list.
In another embodiment, this authority closing module 302 is also configured to, for when receiving this code segment, judge whether open-authentication duration monitoring function; If opened this checking duration monitoring function, then close the assigned operation authority of this code segment.
See Fig. 3 D, in another embodiment, this device also comprises:
Difference acquisition module 310 is configured to the different information for obtaining between this first Validation Code storehouse and this second Validation Code storehouse, and this different information comprises the code segment not also being committed to this second Validation Code storehouse in this first Validation Code storehouse;
Sending module 309 is configured to, for sending this different information to this exploitation terminal, make this this different information of exploitation terminal display.
In another embodiment, this difference acquisition module 310 is also configured to survive duration more than the code segment of the second preset duration for obtaining in this first Validation Code storehouse; Code segment in the code segment this got and this second Validation Code storehouse contrasts, and obtains this different information.
Above-mentioned all alternatives, can adopt and combine arbitrarily formation embodiment of the present disclosure, this is no longer going to repeat them.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
It should be noted that: the rights management device that above-described embodiment provides is when administration authority, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by equipment is divided into different functional modules, to complete all or part of function described above.In addition, the rights management device that above-described embodiment provides and right management method embodiment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
Fig. 4 is the block diagram of a kind of rights management device 400 according to an exemplary embodiment.Such as, device 400 may be provided in a server.With reference to Fig. 4, device 400 comprises processing components 401, and it comprises one or more processor further, and the memory resource representated by storer 402, can such as, by the instruction of the execution of processing components 401, application program for storing.The application program stored in storer 402 can comprise each module corresponding to one group of instruction one or more.In addition, processing components 401 is configured to perform instruction, to perform above-mentioned right management method.
Device 400 can also comprise the power management that a power supply module 403 is configured to actuating unit 400, and a wired or wireless network interface 404 is configured to device 400 to be connected to network, and input and output (I/O) interface 405.Device 400 can operate the operating system based on being stored in storer 402, such as WindowsServer tM, MacOSX tM, Unix tM, Linux tM, FreeBSD tMor it is similar.
The device that the present embodiment provides, by when receiving the code segment that exploitation terminal is submitted to the first Validation Code storehouse, close the assigned operation authority of this code segment, and add up the existence duration of this code segment in this first Validation Code storehouse, judge whether this existence duration reaches the first preset duration, when this existence duration reaches this first preset duration, open the assigned operation authority of this code segment.By adding up the existence duration of code segment, only when this existence duration reaches the first preset duration, just can open the assigned operation authority of this code segment, this code segment could be committed to the second Validation Code storehouse, ensure that the checking duration of this code segment in this first Validation Code storehouse is greater than this first preset duration, avoid checking duration due to code segment too short and cause the problem of omitting existing for it, improve the accuracy of this code segment.
Those skilled in the art, at consideration instructions and after putting into practice invention disclosed herein, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (13)

1. a right management method, is characterized in that, described method comprises:
When receiving the code segment that exploitation terminal is submitted to the first Validation Code storehouse, close the assigned operation authority of described code segment, and add up the existence duration of described code segment in described first Validation Code storehouse, described assigned operation authority refers to the authority described code segment being committed to the second Validation Code storehouse, and described second Validation Code storehouse is next code library in described first Validation Code storehouse;
Judge whether described existence duration reaches the first preset duration;
When described existence duration reaches described first preset duration, open the assigned operation authority of described code segment.
2. method according to claim 1, is characterized in that, described when described existence duration reaches described first preset duration, after opening the assigned operation authority of described code segment, described method also comprises:
When receiving the submission instruction of described exploitation terminal to described code segment, described code segment is committed to described second Validation Code storehouse.
3. method according to claim 1, is characterized in that, described method also comprises:
Obtain at least one code segment received in current period;
Generate test assignment list, described test assignment list comprises at least one code segment received in current period;
Send described test assignment list to test terminal, make described test terminal show described test assignment list.
4. method according to claim 1, is characterized in that, described when receiving the code segment that exploitation terminal is submitted to the first Validation Code storehouse, closes the assigned operation authority of described code segment, comprising:
When receiving described code segment, judge whether open-authentication duration monitoring function;
If opened described checking duration monitoring function, then close the assigned operation authority of described code segment.
5. method according to claim 1, is characterized in that, described method also comprises:
Obtain the different information between described first Validation Code storehouse and described second Validation Code storehouse, described different information comprises the code segment not also being committed to described second Validation Code storehouse in described first Validation Code storehouse;
Send described different information to described exploitation terminal, make different information described in described exploitation terminal display.
6. method according to claim 5, is characterized in that, the different information between the described first Validation Code storehouse of described acquisition and the second Validation Code storehouse, comprising:
Obtain in described first Validation Code storehouse and survive duration more than the code segment of the second preset duration;
Code segment in the described code segment that gets and described second Validation Code storehouse is contrasted, obtains described different information.
7. a rights management device, is characterized in that, described device comprises:
Receiver module, for receiving the code segment that exploitation terminal is submitted to the first Validation Code storehouse;
Authority closing module, for receive when described receiver module exploitation terminal submit to the first Validation Code storehouse code segment time, close the assigned operation authority of described code segment, described assigned operation authority refers to the authority described code segment being committed to the second Validation Code storehouse, and described second Validation Code storehouse is next code library in described first Validation Code storehouse;
Statistical module, for receive when described receiver module exploitation terminal submit to the first Validation Code storehouse code segment time, add up the existence duration of described code segment in described first Validation Code storehouse;
Judge module, for judge described statistical module counts to existence duration whether reach the first preset duration;
Authority opening module, for when described statistical module counts to existence duration reach described first preset duration time, open the assigned operation authority of described code segment.
8. device according to claim 7, is characterized in that, described device also comprises:
Submitting module to, for when receiving the submission instruction of described exploitation terminal to described code segment, described code segment being committed to described second Validation Code storehouse.
9. device according to claim 7, is characterized in that, described device also comprises:
Acquisition module, for obtaining at least one code segment received in current period;
List Generating Module, for generating test assignment list, described test assignment list comprises at least one code segment received in current period;
Sending module, for sending described test assignment list to test terminal, makes described test terminal show described test assignment list.
10. device according to claim 7, is characterized in that, described authority closing module, also for when receiving described code segment, judges whether open-authentication duration monitoring function; If opened described checking duration monitoring function, then close the assigned operation authority of described code segment.
11. devices according to claim 7, is characterized in that, described device also comprises:
Difference acquisition module, for obtaining the different information between described first Validation Code storehouse and described second Validation Code storehouse, described different information comprises the code segment not also being committed to described second Validation Code storehouse in described first Validation Code storehouse;
Sending module, for sending described different information to described exploitation terminal, makes different information described in described exploitation terminal display.
12. devices according to claim 11, is characterized in that, described difference acquisition module also survives duration more than the code segment of the second preset duration for obtaining in described first Validation Code storehouse; Code segment in the described code segment that gets and described second Validation Code storehouse is contrasted, obtains described different information.
13. 1 kinds of rights management devices, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
When receiving the code segment that exploitation terminal is submitted to the first Validation Code storehouse, close the assigned operation authority of described code segment, and add up the existence duration of described code segment in described first Validation Code storehouse, described assigned operation authority refers to the authority described code segment being committed to the second Validation Code storehouse, and described second Validation Code storehouse is next code library in described first Validation Code storehouse;
Judge whether described existence duration reaches the first preset duration;
When described existence duration reaches described first preset duration, open the assigned operation authority of described code segment.
CN201510463331.3A 2015-07-31 2015-07-31 Right management method and device Active CN105045716B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510463331.3A CN105045716B (en) 2015-07-31 2015-07-31 Right management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510463331.3A CN105045716B (en) 2015-07-31 2015-07-31 Right management method and device

Publications (2)

Publication Number Publication Date
CN105045716A true CN105045716A (en) 2015-11-11
CN105045716B CN105045716B (en) 2018-09-21

Family

ID=54452279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510463331.3A Active CN105045716B (en) 2015-07-31 2015-07-31 Right management method and device

Country Status (1)

Country Link
CN (1) CN105045716B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109446056A (en) * 2018-09-11 2019-03-08 平安科技(深圳)有限公司 Code verification method, apparatus, electronic equipment and medium
CN111382049A (en) * 2018-12-28 2020-07-07 阿里巴巴集团控股有限公司 Code submitting method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070093986A1 (en) * 2005-10-26 2007-04-26 International Business Machines Corporation Run-time performance verification system
US20080244047A1 (en) * 2007-04-02 2008-10-02 Inventec Corporation Method for implementing management software, hardware with pre-configured software and implementing method thereof
CN102624677A (en) * 2011-01-27 2012-08-01 阿里巴巴集团控股有限公司 Method and server for monitoring network user behavior
CN104796292A (en) * 2015-04-27 2015-07-22 上海青橙实业有限公司 Terminal management method and terminal system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070093986A1 (en) * 2005-10-26 2007-04-26 International Business Machines Corporation Run-time performance verification system
US20080244047A1 (en) * 2007-04-02 2008-10-02 Inventec Corporation Method for implementing management software, hardware with pre-configured software and implementing method thereof
CN102624677A (en) * 2011-01-27 2012-08-01 阿里巴巴集团控股有限公司 Method and server for monitoring network user behavior
CN104796292A (en) * 2015-04-27 2015-07-22 上海青橙实业有限公司 Terminal management method and terminal system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109446056A (en) * 2018-09-11 2019-03-08 平安科技(深圳)有限公司 Code verification method, apparatus, electronic equipment and medium
CN109446056B (en) * 2018-09-11 2023-03-21 平安科技(深圳)有限公司 Code verification method and device, electronic equipment and medium
CN111382049A (en) * 2018-12-28 2020-07-07 阿里巴巴集团控股有限公司 Code submitting method and device and electronic equipment
CN111382049B (en) * 2018-12-28 2023-05-02 阿里云计算有限公司 Code submitting method and device and electronic equipment

Also Published As

Publication number Publication date
CN105045716B (en) 2018-09-21

Similar Documents

Publication Publication Date Title
US9823920B2 (en) Method for updating firmware and configuration file and a firmware-configuration file management system therefor
WO2017067441A1 (en) Method, device and system for testing application, and non-transient machine-readable storage medium
CN104978258A (en) Software automation test method and system
CN110727454A (en) Updating method and device of intelligent equipment, electronic equipment and storage medium
CN109165157B (en) Method for testing application program and test platform
WO2015192608A1 (en) Method for updating app in android system, terminal and storage medium
US20160283356A1 (en) Event-driven automation testing for mobile devices
CN108270837B (en) Distributed task scheduling method and system using idle resources
CN106980565B (en) Upgrading process monitoring method and device
KR101757149B1 (en) Smart device application autotest method using permission booster
CN106339273A (en) Application program restoration method, terminal and server
CN105389263A (en) Method, system and equipment for monitoring application software permissions
CN109002457A (en) Downloading channel statistical processing methods, device and the electronic equipment of application program
CN104811979A (en) Pressure testing method and device based on FOTA upgrading
CN112486535B (en) Remote upgrading method and system for NB-IoT (NB-IoT) equipment
CN113672441B (en) Method and device for testing intelligent equipment
CN110928770A (en) Software testing method, device, system, storage medium and electronic equipment
CN104125504A (en) Deployment method, device and system based on continuous integration
CN105045716A (en) Authority management method and apparatus
CN108958785A (en) A kind of application program updating method and device
EP3754489A1 (en) Method for evaluating application deployment, apparatus, computer program product, and readable medium
CN113452556A (en) Product skill configuration method and device, storage medium and electronic device
CN114647572A (en) Method and system for software application component testing
CN108874425A (en) Configuration file update method, device, baseboard management controller and storage medium
CN108512682B (en) Method and device for determining false terminal identification

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant