The content of the invention
The present invention provides a kind of gray scale dissemination method and device, needs to cause by sending out a version to solve existing gray scale issue
Test period length and inflexible at least one problem.
In a first aspect, the present invention provides a kind of gray scale dissemination method, including:
The gray-scale document acquisition request that client sends is received, the gray-scale document is obtained in request and carries the client
Mark and the client software configuration information, the gray-scale document be in application APP installation kit gray scale test
File;
Gray-scale document address is sent to the client according to the software configuration information of the client, so that the client
The gray-scale document is downloaded in end according to the gray-scale document address, and successfully daily record is downloaded in return after success is downloaded;
According to the download success daily record of default gray scale issue configuration information and the client determines whether opening
The gray scale functional entrance of client.
Further, the software configuration information of the client includes installing Apply Names and version number, the basis
The software configuration information of the client to the client sends gray-scale document address, including:
According to Apply Names and version number is installed, the presence gray scale text corresponding with application version is installed is determined
During part, to the client gray-scale document address is sent.
Further, the geographical position for downloading successfully daily record including the client, the mark of the client and
Download successful gray-scale document version.
Further, the gray scale issues configuration information includes the time that quantity N and gray scale of gray scale issue are issued, and N is
Positive integer, the download success daily record for issuing configuration information and the client according to default gray scale determines whether to open institute
The gray scale functional entrance of client is stated, including:
It is determined that the time for downloading successfully daily record is received within the gray scale issuing time, and the client
Sequence number is less than N, then open the gray scale functional entrance of the client.
Further, the default gray scale issues configuration information and includes throwing in geographical position and the gray-scale document version of object
This, the download success daily record for issuing configuration information and the client according to default gray scale determines whether to open the visitor
The gray scale functional entrance at family end, including:
Determine the geographical position of the client downloaded and carried in successfully daily record and download successful gray-scale document
Version meets geographical position and the gray-scale document version that the default gray scale is issued in configuration information, then open the client
Gray scale functional entrance.
Further, after opening the gray scale functional entrance of the client, also include:
Receive the gray scale test data that the client sends;
The all of gray scale test data received during being tested according to gray scale determines whether to meet default test target,
If meeting, the gray scale functional entrance of all clients for having downloaded successful gray-scale document is opened, if being unsatisfactory for, close and beat
Open the gray scale functional entrance of the client of gray scale functional entrance.
Second aspect, the present invention provides a kind of gray scale dissemination method, including:
Send gray-scale document to server and obtain request, the gray-scale document obtain mark that client is carried in request and
The software configuration information of the client, the gray-scale document is the gray scale test file in application APP installation kit;
Receive the gray-scale document address that the server sends according to the software configuration information of the client;
The gray-scale document is downloaded according to the gray-scale document address, and under returning to the server after success is downloaded
Successfully daily record is carried, so that the server issues the download success daily record of configuration information and the client according to default gray scale
Determine whether the gray scale functional entrance for opening the client.
Further, the geographical position for downloading successfully daily record including the client, the mark of the client and
Download successful gray-scale document version.
Further, the gray scale is issued configuration information and is included:
The time that quantity N and gray scale that gray scale is issued is issued;Or,
Throw in geographical position and the gray-scale document version of object.
Further, also include:
The instruction of the opening gray scale functional entrance that the server sends is received, gray scale test is carried out, and returns gray scale survey
Examination data.
Further, also include:
Receive the server determined according to all of gray scale test data that receives during gray scale test be unsatisfactory for it is pre-
If test target when the instruction of closing gray scale functional entrance that sends.
The third aspect, the present invention provides a kind of server, including:
Receiver module, the gray-scale document for receiving client transmission obtains request, and the gray-scale document is obtained in request
The mark of the client and the software configuration information of the client are carried, the gray-scale document is that application APP is installed
Gray scale test file in bag;
Sending module, for sending gray-scale document ground to the client according to the software configuration information of the client
Location, so that the client downloads the gray-scale document according to the gray-scale document address, and returns download after success is downloaded
Successful daily record;
Processing module, the download success daily record for issuing configuration information and the client according to default gray scale determines
Whether the gray scale functional entrance of the client is opened.
Further, the software configuration information of the client includes installing Apply Names and version number, the transmission
Module specifically for:
According to Apply Names and version number is installed, the presence gray scale text corresponding with application version is installed is determined
During part, to the client gray-scale document address is sent.
Further, the geographical position for downloading successfully daily record including the client, the mark of the client and
Download successful gray-scale document version.
Further, the gray scale issues configuration information includes the time that quantity N and gray scale of gray scale issue are issued, and N is
Positive integer, the processing module specifically for:
It is determined that the time for downloading successfully daily record is received within the gray scale issuing time, and the client
Sequence number is less than N, then open the gray scale functional entrance of the client.
Further, the default gray scale issues configuration information and includes throwing in geographical position and the gray-scale document version of object
This, the processing module specifically for:
Determine the geographical position of the client downloaded and carried in successfully daily record and download successful gray-scale document
Version meets geographical position and the gray-scale document version that the default gray scale is issued in configuration information, then open the client
Gray scale functional entrance.
Further, the receiver module is additionally operable to:
After the gray scale functional entrance that the processing module opens the client, the ash that the client sends is received
Degree test data;
The processing module is additionally operable to:The all of gray scale test data received during being tested according to gray scale determines whether
Meet default test target, if meeting, open the gray scale functional entrance of all clients for having downloaded successful gray-scale document,
If being unsatisfactory for, the gray scale functional entrance of the client for opening gray scale functional entrance is closed.
Fourth aspect, the present invention provides a kind of client, including:
Sending module, for sending gray-scale document to server request is obtained, and the gray-scale document is obtained in request and carried
The mark and the software configuration information of the client of client, the gray-scale document is the ash in application APP installation kit
Degree test file;
Receiver module, for receiving the gray-scale document that the server sends according to the software configuration information of the client
Address;
Processing module, for downloading the gray-scale document according to the gray-scale document address, and to institute after success is downloaded
State server return and download successfully daily record, so that the server issues configuration information and the client according to default gray scale
Successfully daily record of downloading determine whether to open the gray scale functional entrance of the client.
Further, the geographical position for downloading successfully daily record including the client, the mark of the client and
Download successful gray-scale document version.
Further, the gray scale is issued configuration information and is included:
The time that quantity N and gray scale that gray scale is issued is issued;Or,
Throw in geographical position and the gray-scale document version of object.
Further, the receiver module is additionally operable to:
Receive the instruction of the opening gray scale functional entrance that the server sends;
The processing module is additionally operable to carry out gray scale test;
The sending module is additionally operable to return gray scale test data.
Further, the receiver module is additionally operable to:
Receive the server determined according to all of gray scale test data that receives during gray scale test be unsatisfactory for it is pre-
If test target when the instruction of closing gray scale functional entrance that sends.
Gray scale dissemination method and device that the present invention is provided, by server controls gray scale function interface can be rendered
Gray-scale document, all of client can download gray-scale document, issue configuration information control targe by default gray scale and survey
The gray scale function at family on probation is opened, it is not necessary to which user updates the whole installation kit of APP, need not be sent out version and can also be entered so as to reach
The effect of row gray scale test, reduces test period, can flexibly control gray scale and issue targeted customer.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with the accompanying drawing in the present invention, to this
Technical scheme in invention is clearly and completely described, it is clear that described embodiment is a part of embodiment of the invention,
Rather than the embodiment of whole.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative labor
The every other embodiment obtained under the premise of dynamic, belongs to the scope of protection of the invention.
The system architecture of the embodiment of the present application application can include terminal device, network and server, and user can use
Terminal device, to access various services, is such as browsed webpage, downloads Mobile solution by network and server interaction, and terminal sets
It is standby that various client applications above can be installed, such as using shop, social networking application, various game etc..Terminal device can be
Various electronic equipments.Server can be to provide the server of various services, the server being related in the following embodiments of the application
Including but not limited to shop server can be applied.The gray scale dissemination method of the following embodiments of the application is based on application program
(APP) upgrading flow process is completed.
Fig. 1 is the flow chart of gray scale dissemination method embodiment one of the present invention, as shown in figure 1, the present embodiment with server with
Illustrate as a example by the interaction of client, the method for the present embodiment can include:
S101, user end to server send gray-scale document and obtain request, and gray-scale document is obtained in request and carries client
Mark and client software configuration information, gray-scale document is the gray scale test file in APP installation kits.
Wherein, client is various client end APs P installed on terminal device, and server is at the server that gray scale is issued
Reason backstage, the file downloaded on server process backstage is that some can construct the file of APP function interfaces in terminal device,
JavaScript/CSS files such as based on Html5 interfaces;JSBundle files based on React Native;Based on lua
Lua scripts etc..These file downloads to after APP ends, the carrier page code construction APP work(that can be finished writing by Native
Energy interface, operates in APP ends.The application programming interface that client is provided by server
(ApplicationProgrammingInterface, referred to as:API) send gray-scale document to client and obtain request, Ke Yishi
Send when being switched to foreground from backstage when APP starts.
Gray-scale document obtains the software configuration information that the mark and client of client are carried in request, the software of client
Configuration information includes installing Apply Names and version number, and gray-scale document is the gray scale test file in APP installation kits, that is, be exactly
The corresponding file of function of APP version updatings.
S102, server receive the gray-scale document acquisition request that client sends, according to the software configuration information of client
Gray-scale document address is sent to client.
Specifically, server determines presence and installs application version pair according to Apply Names and version number is installed
During the gray-scale document answered, to client gray-scale document address is sent.Configured according to server background, be sent to client gray scale
File url.
S103, client download gray-scale document according to gray-scale document address, and under returning to server after success is downloaded
Carry successfully daily record.
Specifically, client downloads to gray-scale document in APP storage catalogues according to gray-scale document url.After downloading success,
Return to server and download successfully daily record.Downloading successfully daily record includes geographical position, the mark of client and the download of client
Successful gray-scale document version.
S104, server determine whether to beat according to the download success daily record that default gray scale issues configuration information and client
Open the gray scale functional entrance of client.
Server receive client download success daily record after, can know client geographical position, mark and under
Successful gray-scale document version is carried, configuration information is issued according to default gray scale and these information is determined whether to open client
Gray scale functional entrance.Wherein gray scale function is target detection function, is also by downloading gray-scale document in the work(for locally rendering
Energy.
Optionally, default gray scale issues configuration information includes the time that quantity N and gray scale of gray scale issue are issued, and N is
Positive integer, then server determination receives the time for downloading successfully daily record within gray scale issuing time, and the sequence number of client
During less than N, then the gray scale functional entrance of client is opened.Gray scale issuing time is for example set in advance in for first 1000 in two weeks
Client of the successful client of gray-scale document for target detection user is downloaded, is that the client for meeting the two conditions opens ash
Degree functional entrance.
Optionally, default gray scale issues configuration information and includes throwing in geographical position and the gray-scale document version of object, then
Server determines that the geographical position for downloading the client carried in successfully daily record and the successful gray-scale document version of download meet pre-
If gray scale issue configuration information in geographical position and gray-scale document version, then open client gray scale functional entrance.Such as
Only gray-scale document can just open gray scale functional entrance in latest edition and in a line city, that is, be exactly just can to become
Target detection user.Default gray scale issues configuration information and can also be other restrictive conditions, can flexibly arrange gray scale function
Entrance opens condition, and the present invention is without limitation.
For client, on some function interface of APP, go to access certain gray scale work(by clicking on certain button
Energy entrance, the data that redirect for clicking on this button are obtained from server, and such server can control whether gray scale functional entrance is beaten
Open.If server determines meets gray scale functional entrance open condition, the instruction for opening gray scale functional entrance is sent to client,
Client enters corresponding gray scale function interface, carries out gray scale test, and returns gray scale test data.If being unsatisfactory for gray scale work(
Energy entrance open condition, the then function interface that client is entered before updating.Function before renewal is the function of a backup, with ash
The corresponding function of degree function phase.
Further, after the gray scale functional entrance for opening client, also include:
The gray scale test data that client sends is received, all of gray scale test number received during testing according to gray scale
According to determining whether to meet default test target, if meeting, the ash of all clients for having downloaded successful gray-scale document is opened
Degree functional entrance, if being unsatisfactory for, closes the gray scale functional entrance of the client for opening gray scale functional entrance.
For example, the problem number for producing during gray scale is excessive, such as collapse rate crosses higher position must quick closedown gray scale function
Entrance, it is to avoid bring bigger impact to user;Some critical datas during gray scale, such as the achievement income for producing does not reach
To predeterminated target, gray scale entrance can be also closed, terminate this gray scale function and attempt;The data produced during gray scale are good, full
Sufficient target, just opens gray scale functional entrance to all APP for successfully having downloaded gray-scale document, makes product function comprehensive
Reach the standard grade.
The above-mentioned gray scale dissemination method that the present embodiment is provided sets out whole APP installations suitable for adding according to gray-scale document
The framework of APMB package, such as the Hybrid frameworks based on Html5, based on the technological frame of React Native, the technology based on lua
Framework.
The gray scale dissemination method that the present embodiment is provided, by server controls the gray scale of gray scale function interface can be rendered
File, all of client can download gray-scale document, issue the test of configuration information control targe by default gray scale and use
The gray scale function at family is opened, it is not necessary to which user updates the whole installation kit of APP, need not be sent out version and can also be carried out ash so as to reach
The effect of degree test, reduces test period, can flexibly control gray scale and issue targeted customer.
Further, the gray scale test data for being returned by client can also flexibly be controlled gray scale function and be opened and closed,
The risk of gray scale function run duration can be efficiently controlled.
A specific embodiment is adopted below, and the technical scheme of embodiment of the method shown in Fig. 1 is described in detail.
Fig. 2 is the flow chart of gray scale dissemination method embodiment two of the present invention, as shown in Fig. 2 the method for the present embodiment can be with
Including:
S201, user end to server send gray-scale document and obtain request, and gray-scale document is obtained in request and carries client
Mark and client software configuration information, gray-scale document is the gray scale test file in APP installation kits.
S202, server receive the gray-scale document acquisition request that client sends, according to the software configuration information of client
Gray-scale document address is sent to client.
S203, client download gray-scale document according to gray-scale document address, and under returning to server after success is downloaded
Carry successfully daily record.
S204, server determine whether to meet opens gray scale functional entrance condition.
Specifically include:First, server is true according to the download success daily record that default gray scale issues configuration information and client
The fixed gray scale functional entrance for whether opening client.
2nd, the gray scale test data that client sends is received, all of gray scale received during testing according to gray scale is surveyed
Examination data determine whether to meet default test target, if meeting, open all clients for having downloaded successful gray-scale document
Gray scale functional entrance, if being unsatisfactory for, close the gray scale functional entrance of the client for opening gray scale functional entrance.
S205, client enter gray scale function interface.
The function interface that S206, client are entered before updating.
S207, user end to server send gray scale test data.
Fig. 3 is the structural representation of server example of the present invention, as shown in figure 3, the device of the present embodiment can be wrapped
Include:Receiver module 11, sending module 12 and processing module 13, wherein,
Receiver module 11 is used to receive the gray-scale document of client transmission and obtains request, and gray-scale document is obtained in request and carried
The mark of client and the software configuration information of client, gray-scale document is the gray scale test text in application APP installation kit
Part;
Sending module 12 is used to send gray-scale document address to client according to the software configuration information of client, so that objective
Gray-scale document is downloaded in family end according to gray-scale document address, and successfully daily record is downloaded in return after success is downloaded;
Processing module 13 is used to issue the successful daily record determination of the download of configuration information and client according to default gray scale
The no gray scale functional entrance for opening client.
Optionally, the software configuration information of client includes installing Apply Names and version number, and sending module 12 is concrete
For:According to Apply Names and version number is installed, when determining presence gray-scale document corresponding with application version is installed, to
Client sends gray-scale document address.
Optionally, downloading successfully daily record includes geographical position, the mark of client and the successful gray scale of download of client
FileVersion.
Optionally, gray scale issues configuration information includes the time that quantity N and gray scale of gray scale issue are issued, and N is positive integer,
Processing module 13 specifically for:It is determined that the time for downloading successfully daily record is received within gray scale issuing time, and client
Sequence number is less than N, then open the gray scale functional entrance of client.
Optionally, default gray scale issues configuration information and includes throwing in geographical position and the gray-scale document version of object, place
Reason module 13 specifically for:It is determined that downloading the geographical position of the client carried in successfully daily record and downloading successful gray-scale document
Version meets geographical position and the gray-scale document version that default gray scale is issued in configuration information, then open the gray scale work(of client
Can entrance.
Optionally, receiver module 11 is additionally operable to:After the gray scale functional entrance that processing module 13 opens client, receive
The gray scale test data that client sends.Processing module 13 is additionally operable to:The all of gray scale received during being tested according to gray scale
Test data determines whether to meet default test target, if meeting, opens all clients for having downloaded successful gray-scale document
The gray scale functional entrance at end, if being unsatisfactory for, closes the gray scale functional entrance of the client for opening gray scale functional entrance.
The device of the present embodiment, can be used for performing the technical scheme of embodiment of the method shown in Fig. 1 or Fig. 2, and it realizes former
Reason is similar, and here is omitted.
The gray scale dissemination method that the present embodiment is provided, by server controls the gray scale of gray scale function interface can be rendered
File, all of client can download gray-scale document, issue the test of configuration information control targe by default gray scale and use
The gray scale function at family is opened, it is not necessary to which user updates the whole installation kit of APP, need not be sent out version and can also be carried out ash so as to reach
The effect of degree test, reduces test period, can flexibly control gray scale and issue targeted customer.
Further, the gray scale test data for being returned by client can also flexibly be controlled gray scale function and be opened and closed,
The risk of gray scale function run duration can be efficiently controlled.
Fig. 4 is the structural representation of client embodiment of the present invention, as shown in figure 4, the device of the present embodiment can be wrapped
Include:Receiver module 21, sending module 22 and processing module 23, wherein,
Sending module 21 is used to send gray-scale document acquisition request to server, and gray-scale document is obtained in request and carries client
The mark at end and the software configuration information of client, gray-scale document is the gray scale test file in application APP installation kit;
Receiver module 22 is used for the gray-scale document address that the reception server sends according to the software configuration information of client;
Processing module 23 is used to download gray-scale document according to gray-scale document address, and returns to server after success is downloaded
Successfully daily record is downloaded, so as to server determines according to the download success daily record that default gray scale issues configuration information and client be
The no gray scale functional entrance for opening client.
Optionally, downloading successfully daily record includes geographical position, the mark of client and the successful gray scale of download of client
FileVersion.
Optionally, gray scale is issued configuration information and is included:The time that quantity N and gray scale that gray scale is issued is issued;Or, throw in
The geographical position of object and gray-scale document version.
Optionally, receiver module 21 is additionally operable to:The instruction of the opening gray scale functional entrance that the reception server sends, processes mould
Block 23 is additionally operable to carry out gray scale test, and sending module 23 is additionally operable to return gray scale test data.
Optionally, receiver module 21 is additionally operable to:The reception server is according to all of gray scale received during gray scale test
Test data determines the instruction of the closing gray scale functional entrance for being unsatisfactory for being sent during default test target.
The device of the present embodiment, can be used for performing the technical scheme of embodiment of the method shown in Fig. 1 or Fig. 2, and it realizes former
Reason is similar, and here is omitted.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to
Cross the related hardware of programmed instruction to complete.Aforesaid program can be stored in a computer read/write memory medium.The journey
Sequence upon execution, performs the step of including above-mentioned each method embodiment;And aforesaid storage medium includes:ROM, RAM, magnetic disc or
Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above only to illustrate technical scheme, rather than a limitation;To the greatest extent
Pipe has been described in detail with reference to foregoing embodiments to the present invention, it will be understood by those within the art that:Its according to
So the technical scheme described in foregoing embodiments can be modified, either which part or all technical characteristic are entered
Row equivalent;And these modifications or replacement, do not make the essence disengaging various embodiments of the present invention technology of appropriate technical solution
The scope of scheme.