Gray release method, electronic equipment and storage medium

By receiving the grayscale request from the terminal device and determining the grayscale identification using the preset grayscale rules, the terminal device can perform grayscale release based on the grayscale identification, solving the problems of low efficiency and insufficient stability of grayscale release in the prior art, and achieving efficient grayscale function release and improved stability of software applications.

CN119938122APending Publication Date: 2025-05-06HANGZHOU HUACHENG NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411740366.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

The existing grayscale release method is inefficient and lacks stability during the release of new functional tests, which affects the stability and safe launch of software applications.

Method used

By receiving the grayscale request from the terminal device, the grayscale function is obtained, and the grayscale identification of each grayscale function is determined using the preset grayscale rules, so that the terminal device can grayscale release based on the grayscale identification.

Benefits of technology

It effectively improves the release efficiency of grayscale functions and improves the stability of software applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119938122A_ABST
    Figure CN119938122A_ABST
Patent Text Reader

Abstract

The invention discloses a gray release method, electronic equipment and a storage medium, and the method comprises the steps: receiving a gray request sent by terminal equipment, and obtaining at least one gray function corresponding to the gray request; wherein the gray level request is generated by starting a target application program by the terminal equipment; judging the gray scale functions by using a preset gray scale rule, and determining a gray scale identifier of each gray scale function; wherein the gray scale identifier represents whether a gray scale function can be enabled or not; sending the gray scale identifier to the terminal equipment, so that the terminal equipment releases a corresponding gray scale function in the target application program according to the gray scale of the gray scale identifier; according to the method, the gray scale function in the gray scale request is acquired, the preset gray scale rule is used for judgment, the gray scale identifier of each gray scale function is determined, and then the terminal equipment issues the corresponding gray scale function according to the gray scale identifier, so that the issuing efficiency of the gray scale function can be effectively improved, and the stability of the corresponding software application is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of software applications, and in particular to a grayscale publishing method, electronic device and storage medium. Background Art

[0002] With the explosive growth of computer applications, software applications are constantly iterating and developing in the direction of intelligence and humanization, and various intelligent scenarios are constantly being developed and applied. In the release and iteration process of software applications, grayscale release is used to achieve a smooth transition from old versions to new versions, thereby reducing risks.

[0003] During the testing and release of new functions, some omissions are inevitable. The current grayscale release method usually rolls back or re-releases the software application as a whole to the application market. However, the overall release of software applications is time-consuming, labor-intensive, inefficient, and lacks stability, which affects the stable and secure launch of software applications. Summary of the invention

[0004] The main technical problem solved by the present application is to provide a grayscale publishing method, electronic device and storage medium, which obtains the grayscale function in the grayscale request and uses the preset grayscale rules to make judgments to determine the grayscale identification of each grayscale function, so that the terminal device can grayscale publish the corresponding grayscale function according to the grayscale identification, which can effectively improve the publishing efficiency of the grayscale function and improve the stability of the corresponding software application.

[0005] In order to solve the above technical problems, a technical solution adopted in the present application is: to provide a grayscale publishing method, including: receiving a grayscale request sent by a terminal device, and obtaining at least one grayscale function corresponding to the grayscale request; wherein the grayscale request is generated by the terminal device starting a target application; using a preset grayscale rule to judge the grayscale function, and determining the grayscale identifier of each of the grayscale functions; wherein the grayscale identifier represents whether the grayscale function can be enabled; sending the grayscale identifier to the terminal device, so that the terminal device grayscale publishes the corresponding grayscale function in the target application according to the grayscale identifier.

[0006] In some embodiments, the grayscale functions are judged using preset grayscale rules to determine the grayscale identification of each of the grayscale functions, including: pre-configuring a grayscale rule for each of the grayscale functions, wherein the grayscale rule includes one or more components of multiple grayscale information, and the grayscale information includes at least: whitelist information, grayscale project information, grayscale version information, grayscale region information, and grayscale ratio information; using each grayscale information in the grayscale rule to judge the grayscale function to determine multiple grayscale results, and then using the multiple grayscale results to determine the grayscale identification of each of the grayscale functions.

[0007] In some embodiments, pre-configuring a grayscale rule for each of the grayscale functions includes: obtaining application information corresponding to the grayscale function; using the application information and a plurality of preset grayscale information to match at least one of the grayscale information that successfully matches to form the preset grayscale rule, and storing the grayscale rule in a grayscale configuration repository.

[0008] In some embodiments, it also includes: if grayscale information is newly added or changed, the grayscale rules are updated using the newly added or changed grayscale information; so that the terminal device uses the application to perform grayscale release or rollback release of grayscale functions according to the updated grayscale rules.

[0009] In some embodiments, the grayscale function is judged using each grayscale information in the grayscale rule to determine multiple grayscale results, and then the grayscale identification of each grayscale function is determined using the multiple grayscale results, including: traversing the multiple grayscale information in the grayscale rule, and determining whether the grayscale function meets the grayscale conditions corresponding to each grayscale information, and obtaining the grayscale value corresponding to each grayscale information; using the multiple grayscale values ​​corresponding to the grayscale function to determine the grayscale identification of each grayscale function.

[0010] In some embodiments, the use of the multiple grayscale values ​​corresponding to the grayscale function to determine the grayscale identifier of each grayscale function includes: splicing the multiple grayscale values ​​corresponding to the grayscale function, and determining the grayscale identifier of each grayscale function based on the splicing result.

[0011] In some embodiments, it also includes: if the grayscale condition corresponding to the grayscale information is met, a first grayscale value is assigned; if the grayscale condition corresponding to the grayscale information is not met, a second grayscale value is assigned, and then multiple first grayscale values ​​and / or second grayscale values ​​are spliced ​​to determine the grayscale identifier corresponding to the grayscale function.

[0012] In some embodiments, the grayscale request sent by the receiving terminal device and obtaining at least one grayscale function corresponding to the grayscale request include: parsing the grayscale request information, obtaining the function that needs to be intelligently authenticated in the grayscale request, and using it as the grayscale function.

[0013] In some embodiments, it also includes: when there are multiple grayscale functions, splicing the grayscale identifiers corresponding to each of the grayscale functions to obtain a splicing result, and then sending the splicing result to the terminal device.

[0014] To solve the above technical problems, another technical solution adopted in the present application is: to provide an electronic device, the electronic device comprising a memory and a processor coupled to the memory, the memory storing at least one computer program, and the at least one computer program, when loaded and executed by the processor, is used to implement the grayscale release method as mentioned above.

[0015] To solve the above technical problems, another technical solution adopted in the present application is: providing a computer-readable storage medium, wherein the computer-readable storage medium has at least one program, and when the at least one program is loaded and executed by the processor, it is used to implement the grayscale release method as described above.

[0016] Different from the current technology, the grayscale release method provided by the present application includes: receiving a grayscale request sent by a terminal device, and obtaining at least one grayscale function corresponding to the grayscale request; wherein the grayscale request is generated by the terminal device starting the target application; using a preset grayscale rule to judge the grayscale function, and determining the grayscale identification of each grayscale function; wherein the grayscale identification represents whether the grayscale function can be enabled; sending the grayscale identification to the terminal device, so that the terminal device grayscale releases the corresponding grayscale function in the application according to the grayscale identification. That is, in the present application, by obtaining the grayscale function in the grayscale request, and using the preset grayscale rule to judge, the grayscale identification of each grayscale function is determined, and then the terminal device grayscale releases the corresponding grayscale function according to the grayscale identification, that is, each grayscale function can be judged, and then the grayscale release of a single grayscale function can be executed, which can effectively improve the release efficiency of the grayscale function and improve the stability of the corresponding software application. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:

[0018] Figure 1It is a flowchart of an embodiment of a grayscale publishing method in this application;

[0019] Figure 2 It is a flowchart of an embodiment of configuring grayscale rules in this application;

[0020] Figure 3 This is a flow chart of an embodiment of using grayscale rules to judge in this application;

[0021] Figure 4 It is a structural diagram of an embodiment of a grayscale publishing system in this application;

[0022] Figure 5 It is a structural schematic diagram of an embodiment of an electronic device in the present application;

[0023] Figure 6 It is a structural diagram of an embodiment of a computer-readable storage medium in the present application. DETAILED DESCRIPTION

[0024] The present invention will be further described in detail below in conjunction with the accompanying drawings and examples. It is particularly noted that the following examples are only used to illustrate the present invention, but are not intended to limit the scope of the present invention. Similarly, the following examples are only partial embodiments of the present invention rather than all embodiments, and all other embodiments obtained by those of ordinary skill in the art without creative work are within the scope of protection of the present invention.

[0025] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0026] Traditional software application release methods, especially grayscale release methods, may inevitably produce some omissions during the test and release of new functions. Some current grayscale release methods roll back or re-release the software application as a whole to the application market. The overall release of software applications is time-consuming, labor-intensive, inefficient, and lacks stability, which affects the stable and secure launch of software applications. Others use grayscale implementation classes for implementation, but the operations through the implementation classes do not have the universality of grayscale release. The grayscale functions of each new software need to be self-implemented, which is not systematic.

[0027] Therefore, a grayscale release method is provided, which obtains the grayscale function in the grayscale request and uses the preset grayscale rules to make judgments to determine the grayscale identification of each grayscale function, so that the terminal device can grayscale release the corresponding grayscale function according to the grayscale identification. That is, each grayscale function can be judged and then the grayscale release of a single grayscale function can be executed, which can effectively improve the release efficiency of the grayscale function and improve the stability of the corresponding software applications.

[0028] See also Figure 1 , Figure 1 is a flow chart of an embodiment of the grayscale publishing method in this application; it should be noted that if there are substantial results, the method of this application is not based on Figure 1 The process sequence shown is limited.

[0029] like Figure 1 As shown, the grayscale release method of the present application may include the following steps:

[0030] S10. Receive a grayscale request sent by a terminal device, and obtain at least one grayscale function corresponding to the grayscale request; wherein the grayscale request is generated by the terminal device starting a target application.

[0031] Among them, the terminal device can be a device with an application installed, such as: a mobile phone, a computer, a tablet, a smart watch, etc.; the grayscale request refers to the grayscale request corresponding to the grayscale release required by the terminal device, and the grayscale request can have one or more corresponding grayscale functions; the grayscale function refers to the function that needs to be released in grayscale; the target application refers to the application started by the terminal device.

[0032] Specifically, when a terminal device needs to perform a grayscale release of a new function, a corresponding grayscale request is generated and sent to a processing end. The processing end receives the grayscale request sent by the terminal device, and then parses the grayscale request to obtain at least one grayscale function corresponding to the grayscale request.

[0033] S20 , judging the grayscale functions using a preset grayscale rule, and determining a grayscale identifier for each grayscale function; wherein the grayscale identifier indicates whether the grayscale function can be enabled.

[0034] Among them, the preset grayscale rules are configured in advance, and the grayscale rules may include judgment conditions corresponding to multiple grayscale information, that is, multiple; for example, the grayscale function is configured when determining the grayscale function; the grayscale identifier refers to the representation of whether the grayscale function can be activated in the terminal device.

[0035] Specifically, after obtaining the grayscale function corresponding to the grayscale request, the corresponding grayscale function is judged using a preset grayscale rule, and then the grayscale identifier corresponding to the grayscale function is determined based on the judgment result corresponding to each grayscale information.

[0036] It is understandable that after obtaining the grayscale functions, a preset grayscale rule may be configured for each grayscale function to obtain the preset grayscale rule.

[0037] S30, sending the grayscale identifier to the terminal device, so that the terminal device grayscale publishes the corresponding grayscale function in the application according to the grayscale identifier.

[0038] Among them, because the application is installed in the terminal device, the grayscale identifier needs to be sent to the terminal device.

[0039] Specifically, after obtaining the grayscale identifier corresponding to the grayscale function, the grayscale identifier is sent from the processing end to the terminal device. After the terminal device obtains the grayscale identifier, the terminal device can grayscale release the corresponding grayscale function of the application according to the grayscale identifier.

[0040] In this embodiment, the grayscale function in the grayscale request sent by the terminal device is determined and obtained, and each grayscale function is judged using a preset grayscale rule to determine the grayscale identifier of each grayscale function, and then the grayscale identifier is sent to the terminal device, so that the terminal device can grayscale publish the corresponding grayscale function according to the grayscale identifier. That is, each grayscale function can be judged, and then the grayscale release of a single grayscale function can be executed, which can effectively improve the release efficiency of the grayscale function and improve the stability of the corresponding software applications.

[0041] In some embodiments, step S10 receives a grayscale request sent by a terminal device, and obtains at least one grayscale function corresponding to the grayscale request; wherein the grayscale request is generated by the terminal device starting a target application; and may include the following operations.

[0042] First, it can be understood that the grayscale request is generated in the terminal device, and the processing end receives the grayscale request sent by the terminal device.

[0043] Specifically, on a terminal device, when a target application among multiple applications of the terminal device is started, it is detected whether there are new functions or new versions to be updated. If there are corresponding new functions or new versions to be updated, a corresponding grayscale request is generated, and if there is at least one grayscale function to be released corresponding to the grayscale request, the processing end receives the grayscale request sent by the terminal device.

[0044] Next, the processing end parses the grayscale request to obtain the functions that need to be intelligently authenticated in the grayscale request and uses them as grayscale functions.

[0045] Specifically, the terminal device sends the grayscale request to the processing end. The processing end receives the grayscale request sent by the terminal device, and then parses the grayscale request at the processing end to determine at least one function corresponding to the grayscale request, and grayscales the functions that require smart authentication (Smart Auth), that is, as grayscale functions, and the functions that do not require smart authentication are treated as ordinary functions and perform ordinary authentication.

[0046] In this embodiment, the grayscale functions among the multiple functions corresponding to the target application are determined to divide the grayscale functions that need to be grayscale released and the ordinary functions that are normally released, thereby effectively improving the efficiency of grayscale release.

[0047] In some embodiments, S20 uses a preset grayscale rule to judge the grayscale function and determine the grayscale identifier of each grayscale function; wherein the grayscale identifier represents whether the grayscale function can be enabled; and may include the following operations.

[0048] First, a grayscale rule is pre-configured for each grayscale function, wherein the grayscale rule includes one or more components of multiple grayscale information, and the grayscale information at least includes: whitelist information, grayscale project information, grayscale version information, grayscale region information, and grayscale ratio information.

[0049] Among them, the grayscale rule can be composed of one or more grayscale information, and each grayscale information is used to judge with the grayscale function; the whitelist information refers to determining whether the account corresponding to the grayscale function is in the whitelist; the grayscale project information refers to determining the specific project distinction of the application and whether it belongs to the grayscale project; the grayscale version information refers to whether the version corresponding to the grayscale function meets the grayscale version requirements; the grayscale area information refers to whether the promotion area corresponding to the grayscale function meets the regional requirements; the grayscale ratio information refers to whether the release ratio corresponding to the grayscale function meets the grayscale ratio.

[0050] Specifically, after the grayscale functions are determined, a grayscale rule is configured for each grayscale function.

[0051] Furthermore, application information corresponding to the grayscale function is obtained.

[0052] Among them, application information refers to the relevant information of the application of grayscale function in the terminal device, which may include the account information, version information, etc. of the application, specifically the account ID, account region, application name, application version, etc.

[0053] The application information is then matched with a plurality of preset grayscale information to form a preset grayscale rule by matching at least one successfully matched grayscale information, and the grayscale rule is stored in a grayscale configuration storage repository.

[0054] Among them, the preset multiple grayscale information refers to multiple pre-set rule conditions, including whitelist information, grayscale project information, grayscale version information, grayscale region information, grayscale ratio information, etc.

[0055] For example, whitelist information can be a collection of accounts, which is used to determine whether the account ID is in the whitelist. It can be used before the grayscale function is officially enabled to control the priority experience quota or test the grayscale function through the whitelist information, so as to facilitate the test engineers to access the test; grayscale project information is to refine the project distinction, and it can be an equivalent limit judgment for different application designs; grayscale version information is used to control the minimum effective version of the grayscale function. When a grayscale function of a certain version is abnormal, the version corresponding to the grayscale function can be increased to achieve the purpose of redeveloping the grayscale function in the new version without affecting the old version; grayscale region information can be used to It is a collection of region codes. The grayscale region information can be used to control the activation of the grayscale function in a certain region or several regions, and then gradually promote it or directly use it for regional usage control. The grayscale ratio information can be the most effective grayscale means. The grayscale ratio information can be used to control the gradual release of the grayscale function of the application. By continuously querying the business of the grayscale function, the operation status of the grayscale function can be obtained in real time, and then determine whether to continue the grayscale release or quickly roll back in the next step, so that the grayscale function of the application can run safely and stably during the application process. It is understandable that other grayscale information can be added or some grayscale information can be reduced according to needs.

[0056] Specifically, the application information is matched with multiple preset grayscale information, and the match is successful if there is a corresponding relationship. Then a corresponding grayscale rule is configured for each grayscale function, and the configured grayscale rules are stored in a database, such as a storage layer. For example, if the account ID matches the whitelist information, it can be determined whether the account ID belongs to the whitelist; for example, if the application name matches the grayscale project information, it can be determined whether the application belongs to the grayscale project.

[0057] See also Figure 2 , Figure 2 It is a flowchart of an embodiment of configuring grayscale rules in this application.

[0058] like Figure 2As shown, 1. Add functions that require grayscale, that is, add grayscale functions, such as: APP applications need to grayscale the smart authentication (SmartAuth) function. In the grayscale case, the smart authentication logic is used, and in the non-grayscale case, the ordinary authentication logic is used; 2. Use the self-increment method to generate grayscale bits, and establish the association relationship between grayscale functions and grayscale bits; that is, grayscale identification. Since grayscale bits need to be unique, in order to avoid grayscale bit conflicts and incorrect determination of grayscale functions, grayscale bits are generated by index self-increment, so that there is a one-to-one correspondence between grayscale functions and grayscale bits. The client can determine whether the corresponding grayscale function is enabled and online through the value of the grayscale bit, that is, the value of the grayscale identification; 3. Start configuring grayscale rules. The grayscale information in the grayscale rules includes but is not limited to grayscale whitelists, grayscale projects, grayscale versions, grayscale regions, and grayscale ratios. Other grayscale information can be added according to business needs, and various grayscale information can also be flexibly combined to meet various grayscale needs. 4. The grayscale rule configuration is completed and saved, that is, stored in the storage layer; 5. The grayscale service regularly pulls the grayscale configuration and updates the rule engine; the rule engine is a collection of a series of grayscale rule conditions, and each rule condition is obtained from the storage layer by regularly pulling. When grayscale information is added or updated in the background management system, the grayscale service can obtain it in time and complete the update of the rules. At this time, the APP initiates a grayscale request, and the grayscale rule determination process can return the latest grayscale results to control the effectiveness and rollback of the grayscale function.

[0059] In some embodiments, other grayscale information can be added according to business needs. For example, if there is no corresponding grayscale ratio information in the application information, the grayscale ratio information can be directly added to the grayscale rule according to needs. In addition, the various grayscale information can also be flexibly combined to adapt to the grayscale requirements corresponding to the grayscale function.

[0060] Furthermore, the following operations may be included:

[0061] If grayscale information is added or changed, the grayscale rules are updated using the new or changed grayscale information.

[0062] The newly added or changed grayscale information refers to the addition and change of the grayscale information at the processing end, and then the corresponding grayscale rules need to be updated at the processing end using the newly added or changed grayscale information.

[0063] It is understandable that after the grayscale rules are updated, it is necessary to re-use the updated grayscale rules to perform a new round of judgment on the application, so that the terminal device can use the application to perform grayscale release or rollback release of the grayscale function according to the updated grayscale rules, wherein, grayscale release means that the grayscale rules are met and the grayscale function of the application is released; rollback release means that the grayscale rules are not met and the application is rolled back to the previous version.

[0064] Then, the grayscale function is judged by using each grayscale information in the grayscale rule to determine a plurality of grayscale results, and then the grayscale identifier of each grayscale function is determined by using the plurality of grayscale results.

[0065] The grayscale result represents whether a conclusion of the grayscale information is satisfied, and then the grayscale identification of each grayscale function is determined using multiple conclusions.

[0066] Specifically, determine the specific grayscale information in the grayscale rule, use each grayscale information to judge the grayscale function in turn, and then obtain the grayscale result corresponding to each grayscale information; for example, the grayscale rule contains whitelist information, grayscale project information, grayscale version information, grayscale region information, and grayscale ratio information, then determine whether the account of the application corresponding to the grayscale function belongs to the whitelist, and obtain a grayscale result, which may be the first grayscale result; further determine whether the application corresponding to the grayscale function belongs to the grayscale project, and obtain a grayscale result, which may be the second grayscale result; further determine whether the version of the application corresponding to the grayscale function meets the grayscale version requirements, and obtain a grayscale result, which may be the third grayscale result; further determine whether the application corresponding to the grayscale function meets the grayscale region requirements, and obtain a grayscale result, which may be the fourth grayscale result; further determine whether the application corresponding to the grayscale function meets the grayscale ratio requirements, and obtain a grayscale result, which may be the fifth grayscale result; and then use the first grayscale result, the second grayscale result, the third grayscale result, the fourth grayscale result, and the fifth grayscale result to determine the grayscale identifier corresponding to the grayscale function.

[0067] In some embodiments, it is also possible to traverse multiple grayscale information in the grayscale rule, and determine whether the grayscale function satisfies the grayscale condition corresponding to each grayscale information, so as to obtain the grayscale value corresponding to each grayscale information.

[0068] Among them, the grayscale rule can contain multiple grayscale information. Therefore, it is necessary to traverse the multiple grayscale information in the grayscale rule to judge all the grayscale information in the grayscale rule; the grayscale value is the representation of the grayscale result. If the condition is met, one value is taken, and if the condition is not met, another value is taken.

[0069] The grayscale values ​​corresponding to the grayscale functions are then used to determine the grayscale identifier of each grayscale function.

[0070] In some embodiments, it is also possible to splice multiple grayscale values ​​corresponding to the grayscale functions, and determine the grayscale identifier of each grayscale function based on the splicing result.

[0071] Specifically, after obtaining the grayscale value after each grayscale information is judged, the corresponding multiple grayscale values ​​can be spliced ​​to determine the grayscale identifier of the grayscale function with the splicing result. Each grayscale function has a corresponding grayscale identifier, and multiple grayscale functions have multiple grayscale identifiers.

[0072] In some embodiments, assignment can also be performed. Specifically, if the grayscale condition corresponding to the grayscale information is met, the first grayscale value is assigned; if the grayscale condition corresponding to the grayscale information is not met, the second grayscale value is assigned, and then multiple first grayscale values ​​and / or second grayscale values ​​are spliced ​​to determine the grayscale identifier corresponding to the grayscale function.

[0073] Specifically, if the grayscale condition corresponding to the whitelist information is met, the first grayscale value is assigned, such as the first grayscale value is 1; if the grayscale condition corresponding to the whitelist information is not met, the second grayscale value is assigned, such as the second grayscale value is 0; if the grayscale condition corresponding to the grayscale project information is met, the first grayscale value is assigned, if the grayscale condition corresponding to the grayscale project information is not met, the second grayscale value is assigned; if the grayscale condition corresponding to the grayscale version information is met, the first grayscale value is assigned, if the grayscale condition corresponding to the grayscale version information is not met, the second grayscale value is assigned; if the grayscale condition corresponding to the grayscale area information is met, the first grayscale value is assigned, if the grayscale condition corresponding to the grayscale area information is not met, the second grayscale value is assigned; if the grayscale condition corresponding to the grayscale ratio information is met, the first grayscale value is assigned, if the grayscale condition corresponding to the grayscale ratio information is not met, the second grayscale value is assigned; multiple first grayscale values ​​or second grayscale values ​​are concatenated to obtain a character string, and then the grayscale identifier corresponding to the grayscale function is determined.

[0074] Furthermore, the grayscale identifiers of multiple grayscale functions are also spliced ​​to obtain a splicing result, that is, the splicing result represents the grayscale identifier of at least one grayscale function.

[0075] In some embodiments, the grayscale functions that meet the grayscale conditions corresponding to the whitelist information can also be set as the functions corresponding to the priority experience or grayscale test, and directly released in grayscale to facilitate the testing of the grayscale functions.

[0076] In other embodiments, only one grayscale value is obtained for the entire judgment process of the grayscale rule. For example, if the grayscale condition corresponding to the whitelist information is met, the first grayscale value is returned, and the grayscale release is performed directly to end the judgment. If the whitelist information is not met, the next step of grayscale project information judgment is performed; if the grayscale condition corresponding to the grayscale project information is met, the next step of grayscale version information judgment is performed, and if the grayscale condition corresponding to the grayscale version information is not met, the second grayscale value is returned to end the judgment; if the grayscale condition corresponding to the grayscale version information is met, the next step of grayscale area information judgment is performed, and if the grayscale condition corresponding to the grayscale version information is not met, the second grayscale value is returned to end the judgment; The grayscale condition corresponding to the grayscale version information returns the second grayscale value and the judgment ends; if the grayscale condition corresponding to the grayscale area information is met, the next step of grayscale ratio information judgment is carried out, and if the grayscale condition corresponding to the grayscale area information is not met, the second grayscale value is returned and the judgment ends; if the judgment of the grayscale condition corresponding to the grayscale ratio information is met, the second grayscale value is returned, and if the judgment of the grayscale condition corresponding to the grayscale ratio information is not met, the first grayscale value is returned; that is, the judgment of each grayscale function either returns a first grayscale value or a second grayscale value to determine the grayscale identifier of each grayscale function.

[0077] Furthermore, multiple grayscale functions are judged to obtain a first grayscale value or a second grayscale value corresponding to each grayscale function, that is, a grayscale identifier corresponding to each grayscale function, and then the multiple first grayscale values ​​and the second grayscale values ​​are spliced.

[0078] In some embodiments, see Figure 3 , Figure 3 It is a flowchart of an embodiment of using grayscale rule judgment in this application.

[0079] like Figure 3As shown, after the start, initiate a grayscale request; obtain user information; loop through the grayscale functions and determine index≤length, that is, determine whether all grayscale functions have been judged by the grayscale rules; then judge the grayscale information in the grayscale rules one by one to determine whether it is a whitelist. If it is, return item=1; if it is not, proceed to the next step; determine whether it is a grayscale item. If it is not, return item=0; if it is, proceed to the next step; determine whether the grayscale version is satisfied. If it is not, return item=0; if it is , then proceed to the next step; determine whether it meets the grayscale area, if it is not, return item = 0, if it is yes, proceed to the next step; determine whether it meets the grayscale ratio, if it is not, return item = 0, if it is yes, return item = 1; then concatenate and return the result, res = res + item, index = index + 1, that is, the grayscale bit is generated by the index self-increment method, and the grayscale bit corresponds to the grayscale identifier of the grayscale function. In this way, each grayscale function is judged in a cycle, and after the judgment is completed, the final result is returned to the terminal device to end the judgment.

[0080] In this embodiment, each grayscale function is judged by the grayscale information in the grayscale rule, and then the grayscale identifier of each grayscale function is determined, and then the grayscale identifiers are spliced ​​into a splicing result, which is used to characterize the grayscale identifier of at least one grayscale function, so that the terminal device can publish the corresponding grayscale function in the application according to the grayscale identifier, thereby improving the grayscale publishing efficiency.

[0081] In some embodiments, step S30 sends the grayscale identifier to the terminal device so that the terminal device grayscale publishes the corresponding grayscale function in the application according to the grayscale identifier; the following operations may be included.

[0082] After obtaining the grayscale identifier corresponding to the grayscale function on the processing end, the grayscale identifier needs to be sent to the terminal device. The terminal device can then determine which functions can be released in grayscale and which functions cannot be released in grayscale based on the grayscale identifier.

[0083] For example, if the value in the grayscale identifier is 1, it means that the corresponding grayscale function can be released in grayscale; if the value in the grayscale identifier is 0, it means that the corresponding grayscale function will not be released in grayscale.

[0084] In this embodiment, the grayscale function in the grayscale request sent by the terminal device is determined and obtained, and each grayscale function is judged using a preset grayscale rule to determine the grayscale identifier of each grayscale function, multiple grayscale identifiers are spliced, and the splicing result is sent to the terminal device, so that the terminal device can grayscale publish the corresponding grayscale function according to the grayscale identifier. That is, each grayscale function can be judged, and then the grayscale release of a single grayscale function can be executed, which can effectively improve the release efficiency of the grayscale function and improve the stability of the corresponding software applications.

[0085] In some embodiments, a grayscale publishing system is also provided.

[0086] See also Figure 4 , Figure 4 It is a structural diagram of an embodiment of a grayscale publishing system in the present application.

[0087] like Figure 4 As shown, the grayscale release system includes an application layer, a gateway layer, a service layer and a storage layer, wherein the application layer includes a background management system and an application program, namely, an APP application; the gateway layer includes a background service gateway and an application program gateway, namely, an APP gateway; the service layer includes grayscale services, specifically including establishing a rule engine and applying a rule engine, wherein establishing a rule engine includes creating a grayscale function, creating a grayscale rule, pulling a grayscale function and changing a grayscale rule, and applying a rule engine includes looping through grayscale rules to determine grayscale rules and periodically pulling and updating grayscale rules; the storage layer includes grayscale configuration storage.

[0088] Specifically, the manager creates functions that need to be released in grayscale and configures grayscale rules in the background management system, that is, establishes a rule engine; the grayscale service saves the grayscale rules, and retrieves the grayscale release configuration from the storage layer by timed pull, and writes it into the business cache; after the APP application is started, it initiates a grayscale request for the function; the grayscale service determines the rule conditions that the grayscale function meets one by one, and returns the results to the APP application; the APP application obtains the grayscale identifier of the grayscale function to determine whether the grayscale function is enabled. When it is necessary to roll back the release, you only need to change the grayscale rules to affect the judgment of enabling the grayscale function, thereby achieving a rapid rollback of the grayscale function without affecting the normal release of non-grayscale functions.

[0089] In some embodiments, an electronic device is also provided.

[0090] See also Figure 5 , Figure 5 1 is a schematic diagram of the structure of an electronic device in an embodiment of the present application. The electronic device can execute the steps of the grayscale publishing method in the above method.

[0091] The electronic device 500 includes a memory 520, a processor 510 coupled to the memory, and at least one computer program stored in the memory 520 and executable on the processor 510; when the processor 510 loads and executes the at least one computer program, it is used to implement the grayscale release step in the above method. For related contents, please refer to the detailed description in the above method, which will not be repeated here.

[0092] In some embodiments, a computer-readable storage medium is also included.

[0093] See also Figure 6 , Figure 6 It is a structural diagram of an embodiment of a computer-readable storage medium in the present application.

[0094] The computer-readable storage medium 600 stores at least one program 610, which, when loaded and executed by the processor, is used to implement the step of grayscale release in the above method. For related contents, please refer to the detailed description of the above method, which will not be repeated here.

[0095] The above scheme determines and obtains the grayscale function in the grayscale request sent by the terminal device, and uses the preset grayscale rules to judge each grayscale function to determine the grayscale identifier of each grayscale function, splices multiple grayscale identifiers, and then sends the splicing result to the terminal device, so that the terminal device can grayscale publish the corresponding grayscale function according to the grayscale identifier. That is, each grayscale function can be judged, and then the grayscale release of a single grayscale function can be executed, which can effectively improve the release efficiency of the grayscale function and improve the stability of the corresponding software applications.

[0096] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0097] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0098] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0099] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0100] The above description is only an implementation mode of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A grayscale release method, characterized in that: include: Receiving a grayscale request sent by a terminal device, and acquiring at least one grayscale function corresponding to the grayscale request; wherein the grayscale request is generated by the terminal device starting a target application; The grayscale functions are judged by using a preset grayscale rule to determine a grayscale identifier for each grayscale function; wherein the grayscale identifier indicates whether the grayscale function can be enabled; The grayscale identifier is sent to the terminal device, so that the terminal device grayscale publishes the corresponding grayscale function in the target application according to the grayscale identifier.

2. The method according to claim 1, characterized in that The step of judging the grayscale functions by using a preset grayscale rule to determine the grayscale identifier of each grayscale function includes: A grayscale rule is preconfigured for each grayscale function, wherein the grayscale rule includes one or more components of a plurality of grayscale information, and the grayscale information at least includes: whitelist information, grayscale project information, grayscale version information, grayscale region information, and grayscale ratio information; The grayscale function is judged by using each grayscale information in the grayscale rule to determine a plurality of grayscale results, and then the grayscale identifier of each grayscale function is determined by using the plurality of grayscale results.

3. The method according to claim 2, characterized in that The pre-configuring a grayscale rule for each grayscale function includes: Obtaining application information corresponding to the grayscale function; The application information is matched with a plurality of preset grayscale information to form a preset grayscale rule by matching at least one of the successfully matched grayscale information, and the grayscale rule is stored in a grayscale configuration storage repository.

4. The method according to claim 3, characterized in that Also includes: If grayscale information is added or changed, the grayscale rule is updated using the newly added or changed grayscale information; So that the terminal device uses the application to perform grayscale release or rollback release of grayscale functions according to the updated grayscale rules.

5. The method according to claim 2, characterized in that: The step of judging the grayscale function by using each grayscale information in the grayscale rule to determine a plurality of grayscale results, and then determining a grayscale identifier of each grayscale function by using the plurality of grayscale results, includes: Traversing the plurality of grayscale information in the grayscale rule, and determining whether the grayscale function satisfies the grayscale condition corresponding to each grayscale information, and obtaining the grayscale value corresponding to each grayscale information; The grayscale identifier of each grayscale function is determined by using the plurality of grayscale values ​​corresponding to the grayscale functions.

6. The method according to claim 5, characterized in that The using the plurality of grayscale values ​​corresponding to the grayscale functions to determine the grayscale identifier of each grayscale function includes: The plurality of grayscale values ​​corresponding to the grayscale functions are spliced, and a grayscale identifier of each grayscale function is determined based on the splicing result.

7. The method according to claim 6, characterized in that Also includes: If the grayscale condition corresponding to the grayscale information is met, the first grayscale value is assigned; if the grayscale condition corresponding to the grayscale information is not met, the second grayscale value is assigned, and then multiple first grayscale values ​​and / or second grayscale values ​​are spliced ​​to determine the grayscale identifier corresponding to the grayscale function.

8. The method according to claim 1, characterized in that The receiving a grayscale request sent by a terminal device and obtaining at least one grayscale function corresponding to the grayscale request includes: Parse the grayscale request information, obtain the function that needs to be intelligently authenticated in the grayscale request, and use it as the grayscale function.

9. The method according to claim 1, characterized in that: Also includes: When there are multiple grayscale functions, the grayscale identifiers corresponding to each of the grayscale functions are spliced ​​to obtain a splicing result, and then the splicing result is sent to the terminal device.

10. An electronic device, characterized in that: The electronic device includes a memory and a processor coupled to the memory, the memory stores at least one computer program, and when the at least one computer program is loaded and executed by the processor, it is used to implement the grayscale release method as described in any one of claims 1-9.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium has at least one program, and when the at least one program is loaded and executed by the processor, it is used to implement the grayscale release method as described in any one of claims 1-9.