Gray-scale environment configuration method and device, equipment and storage medium

The server determines the target domain name based on the gray-scale package version number and user account. The client then configures the gray-scale environment and directly enters the production environment, which solves the problem of inflexible domain name configuration in the existing technology and improves processing efficiency and user experience.

CN114860306BActive Publication Date: 2026-03-17CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-18
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

In existing technologies, the domain name configuration of an app is inflexible between gray-scale and production environments, causing users to need to reinstall the production package after the gray-scale test is completed, which wastes time and affects the user experience.

Method used

The server determines the target domain name based on the application's gray-scale version number and the user account. The client configures the gray-scale environment based on the target domain name and directly enters the production environment after testing, avoiding additional domain name acquisition requests.

Benefits of technology

It improves the efficiency of transitioning from gray-scale testing to the production environment, saves time, enhances the user experience, and increases the flexibility and selectivity of domain name generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114860306B_ABST
    Figure CN114860306B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a gray environment configuration method, device and equipment and a storage medium. The method comprises the following steps: a server receives a request sent by a client, wherein the request carries a gray package version number of an application program and a user account; the server determines a target domain name corresponding to the client according to the gray package version number of the application program and the user account; and the server sends the target domain name to the client, so that the client performs gray environment configuration according to the target domain name to perform gray testing, and enters a production environment after the gray testing is completed. By using the method, the processing efficiency of the client entering the production environment after the gray testing is completed can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of application technology, and in particular to a method, apparatus, device, and storage medium for configuring a grayscale environment. Background Technology

[0002] An app's project environment can generally be divided into development, testing, gray-scale, and production environments. A gray-scale environment is used before the official release of a product or application, selecting a specific group of people for trial use and gradually expanding the number of testers to promptly identify and correct any issues. Since a project runs on multiple servers during online deployment, gray-scale testing on 1 to 3 servers allows you to check if new features work correctly; if it fails, you only need to roll back to a few servers, which is quite convenient. The production environment refers to the environment where the product is officially provided to the public, the environment where actual users use it. Different environments correspond to different domain name configurations.

[0003] When an app is used in a gray-scale environment, the gray-scale environment server address needs to be configured. The usual practice is to configure the gray-scale domain name in the code and create a separate gray-scale package to provide to users for gray-scale testing. After successful gray-scale verification, the domain name configuration in the code is changed to create a new production package for release. However, this method of distinguishing between gray-scale and production versions by configuring the gray-scale production domain name in the code is very inflexible. After using the app in the gray-scale environment, users need to reinstall the production package to update to the production environment, which is very time-consuming, delays user access to the application, and results in a poor user experience. Summary of the Invention

[0004] This invention provides a method, apparatus, device, and storage medium for configuring a grayscale environment, which can improve the processing efficiency of clients entering the production environment after grayscale testing.

[0005] In a first aspect, embodiments of the present invention provide a method for configuring a grayscale environment, comprising:

[0006] The server receives a request sent by the client, the request carrying the application's grayscale version number and the user account;

[0007] The server determines the target domain name corresponding to the client based on the gray-scale version number of the application and the user account;

[0008] The server sends the target domain name to the client so that the client can configure a gray-scale environment based on the target domain name to conduct gray-scale testing, and then enter the production environment after the gray-scale testing is completed.

[0009] As one implementation, the server determines the target domain name corresponding to the client based on the application's gray-scale version number and the user account, including:

[0010] The server determines the first domain name based on the grayscale version number of the application;

[0011] The server determines the second domain name based on the user account;

[0012] The server determines the target domain name corresponding to the client based on the first domain name and the second domain name.

[0013] As one implementation, the grayscale package version number includes K1 digits and N1 characters, the user account includes K2 digits and N2 characters, and the server determines the first domain name based on the application's grayscale package version number, including:

[0014] If K1 is less than the first preset value, the server will convert the N1 characters in the grayscale package version number into n1 numbers;

[0015] If the difference between the sum K' of K1 and n1 and the first preset value is less than the second preset value, the server fills in the K' numbers to obtain the first domain name, wherein the number of digits in the first domain name is the same as the first preset value.

[0016] The server determines the second domain name based on the user account, including:

[0017] If N2 is less than a third preset value, the server will convert the K2 numbers in the user account into K2 characters;

[0018] If the difference between the sum of k2 and N2, N' and the third preset value is less than the fourth preset value, the server performs padding on the N' characters to obtain a second domain name, wherein the number of characters in the second domain name is the same as the third preset value.

[0019] Furthermore, the method also includes:

[0020] Receive the test results returned by the client;

[0021] Based on the test results, determine whether the client has completed the gray-scale test within a preset time.

[0022] If the client completes the grayscale test within a preset time, the client is instructed to enter the production environment.

[0023] Furthermore, before the server determines the target domain name corresponding to the client based on the application's grayscale version number and the user account, the method further includes:

[0024] Determine if a target domain name corresponding to the client exists;

[0025] If no target domain name exists corresponding to the client, the server sends a production environment domain name to the client so that the client can enter the production environment.

[0026] Secondly, embodiments of the present invention provide a grayscale environment configuration device, comprising:

[0027] The receiving module is used to receive requests sent by the client, the requests carrying the application's grayscale version number and the user account;

[0028] The determination module is used to determine the target domain name corresponding to the client based on the gray-scale package version number of the application and the user account;

[0029] The sending module is used to send the target domain name to the client so that the client can configure a gray-scale environment based on the target domain name to conduct gray-scale testing, and enter the production environment after the gray-scale testing is completed.

[0030] The determining module is further configured to:

[0031] The first domain name is determined based on the grayscale version number of the application;

[0032] The second domain name is determined based on the user account;

[0033] The target domain name corresponding to the client is determined based on the first domain name and the second domain name.

[0034] Furthermore, the grayscale package version number includes K1 digits and N1 characters, the user account includes K2 digits and N2 characters, and the determining module is further configured to:

[0035] If K1 is less than the first preset value, the server will convert the N1 characters in the grayscale package version number into n1 numbers;

[0036] If the difference between the sum K' of K1 and n1 and the first preset value is less than the second preset value, the server fills in the K' numbers to obtain the first domain name, wherein the number of digits in the first domain name is the same as the first preset value.

[0037] If N2 is less than a third preset value, the server will convert the K2 numbers in the user account into K2 characters;

[0038] If the difference between the sum of k2 and N2, N' and the third preset value is less than the fourth preset value, the server performs padding on the N' characters to obtain a second domain name, wherein the number of characters in the second domain name is the same as the third preset value.

[0039] Thirdly, embodiments of the present invention provide a configuration device for a grayscale environment, including: a processor and a memory;

[0040] The processor is connected to a memory, wherein the memory is used to store program code, and the processor is used to call the program code to execute the grayscale environment configuration method according to any one of the first aspects.

[0041] Fourthly, embodiments of the present invention provide a computer storage medium storing a computer program, the computer program including program instructions, which, when executed by a processor, perform the grayscale environment configuration method described in any one of the first aspects.

[0042] In this embodiment, the target domain name is determined based on the application's gray-scale package version number and user account sent by the client to the server. This domain name is then returned to the client for gray-scale environment configuration and gray-scale testing. After completing the gray-scale testing, the client directly enters the production environment. This method eliminates the need to send a request to the server to obtain the domain name upon completion of the gray-scale testing; instead, the client directly enters the production environment upon completion of the gray-scale testing, improving processing efficiency, saving time, and further enhancing the user experience. Attached Figure Description

[0043] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0044] Figure 1 This is a schematic diagram of the architecture of a grayscale environment configuration system provided in an embodiment of the present invention;

[0045] Figure 2 This is a flowchart illustrating a grayscale environment configuration method provided in an embodiment of the present invention;

[0046] Figure 3 This is a flowchart illustrating another method for configuring a grayscale environment provided in an embodiment of the present invention;

[0047] Figure 4 This is a flowchart illustrating another method for configuring a grayscale environment provided in an embodiment of the present invention;

[0048] Figure 5 This is a schematic diagram of a grayscale environment configuration method provided in an embodiment of the present invention;

[0049] Figure 6This is a schematic diagram of the structure of a grayscale environment configuration device provided in an embodiment of the present invention;

[0050] Figure 7 This is a schematic diagram of another grayscale environment configuration device provided in an embodiment of the present invention. Detailed Implementation

[0051] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

[0052] It should be understood that the terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0053] In this invention, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this invention can be combined with other embodiments.

[0054] Please see Figure 1 , Figure 1 This is a schematic diagram of the architecture of a grayscale environment configuration system provided in an embodiment of the present invention. Figure 1 As shown, the system includes a client and a server. The client sends a request to the server, carrying the application's gray-scale version number and the user account. The server receives the request from the client and, based on the application's gray-scale version number and the user account, determines the target domain name corresponding to the client. The server then sends the target domain name to the client. The client configures the gray-scale environment based on the received target domain name to conduct gray-scale testing. After the gray-scale testing is completed, the client directly enters the production environment.

[0055] In this embodiment, the target domain name is determined based on the application's gray-scale package version number and user account sent by the client to the server. This domain name is then returned to the client for gray-scale environment configuration and gray-scale testing. After completing the gray-scale testing, the client directly enters the production environment. This method eliminates the need to send a request to the server to obtain the domain name upon completion of the gray-scale testing; instead, the client directly enters the production environment upon completion of the gray-scale testing, improving processing efficiency, saving time, and further enhancing the user experience.

[0056] Please see Figure 2 This is a flowchart illustrating a grayscale environment configuration method provided in an embodiment of the present invention; as shown below. Figure 2 As shown, the method includes steps 201-203, as detailed below:

[0057] 201. The server receives a request sent by the client, the request carrying the application's grayscale version number and the user account;

[0058] In this process, the client that needs to conduct gray-scale testing sends a request to the server to obtain the domain name. This request can carry the gray-scale package version number of the application to be tested, as well as the user account, and of course, other information. This solution does not make specific restrictions on this.

[0059] 202. The server determines the target domain name corresponding to the client based on the gray-scale version number of the application and the user account;

[0060] Based on the received request, the server determines the target domain name corresponding to the client.

[0061] The target domain name can be shared by multiple clients or it can be different for each client; this solution does not impose specific restrictions on this.

[0062] For example, the server can retrieve the domain name corresponding to the username from a preset domain name database, or the domain name corresponding to the user level of the username; of course, it can also determine the category of the domain name corresponding to the client based on the gray package version number of the application, and then confirm it from there, etc.

[0063] The above is just one example; other methods are also possible, and this solution does not impose any specific limitations on them.

[0064] 203. The server sends the target domain name to the client so that the client can configure a gray-scale environment based on the target domain name to conduct gray-scale testing, and enter the production environment after the gray-scale testing is completed.

[0065] A gray-scale environment refers to a process where a product or application is tested by a specific group of people before its official release. By gradually expanding the number of testers, problems can be identified and corrected in a timely manner.

[0066] The production environment refers to the environment in which the product is formally provided to the outside world, and the environment in which the actual users of the product use it.

[0067] Different environments correspond to different domain name configurations.

[0068] After determining the target domain name, the server sends it to the client so that the client can configure the gray-scale environment based on the target domain name and then conduct gray-scale testing.

[0069] Specifically, the client calls the API based on the target domain name to configure the gray-scale environment and conduct gray-scale testing.

[0070] The gray-scale testing of this product includes, but is not limited to, functional testing, interface testing, and usability testing, in order to test whether the product can run normally in a gray-scale environment. If the test passes, the test result is stored; if the test fails, a failure message is displayed so that the server can modify the release package and re-upload the modified release package for retesting.

[0071] After the gray-scale testing is completed, the client can be directly transferred from the gray-scale environment to the production environment.

[0072] In this embodiment, the target domain name is determined based on the application's gray-scale package version number and user account sent by the client to the server. This domain name is then returned to the client for gray-scale environment configuration and gray-scale testing. After completing the gray-scale testing, the client directly enters the production environment. This method eliminates the need to send a request to the server to obtain the domain name upon completion of the gray-scale testing; instead, the client directly enters the production environment upon completion of the gray-scale testing, improving processing efficiency, saving time, and further enhancing the user experience.

[0073] Please see Figure 3 This is a flowchart illustrating another method for configuring a grayscale environment provided in an embodiment of the present invention; as shown below. Figure 3 As shown, the method includes steps 301-305, as detailed below:

[0074] 301. The server receives a request sent by the client, the request carrying the application's grayscale version number and the user account;

[0075] In this process, the client that needs to conduct gray-scale testing sends a request to the server to obtain the domain name. This request can carry the gray-scale package version number of the application to be tested, as well as the user account, and of course, other information. This solution does not make specific restrictions on this.

[0076] 302. The server determines the first domain name based on the grayscale version number of the application;

[0077] The first domain name can be understood as part of the target domain name.

[0078] As one implementation, the grayscale package version number includes K1 digits and N1 characters. The server determines the first domain name based on the grayscale package version number of the application, including:

[0079] If K1 is less than the first preset value, the server will convert the N1 characters in the grayscale package version number into n1 numbers;

[0080] If the difference between the sum of K1 and n1, K', and the first preset value is less than the second preset value, the server fills in the K' numbers to obtain the first domain name, wherein the number of digits in the first domain name is the same as the first preset value.

[0081] The number can be understood as an Arabic numeral, and the character can be understood as a letter or symbol, etc.

[0082] The first preset value can be, for example, the number of digits in a preset domain name. When K1 is less than the first preset value, the N1 characters in the grayscale package version number are converted into n1 digits. This conversion can be based on a preset conversion algorithm. For example, each character can be preset to correspond to a different digit, or a different number of digits, thus obtaining n1 digits.

[0083] Then, by determining whether the difference between the sum of K1 and n1, K', and the first preset value is less than the second preset value, if so, the K' numbers are padded. For example, 0s can be padded after the K' numbers, or any number can be padded before them. This solution does not make specific limitations on this.

[0084] Furthermore, if the difference between K' and the first preset value is greater than the preset value, then the K' numbers can be directly used as the first domain name, or the first preset value position among the K' numbers can be selected from front to back as the first domain name, etc. Of course, other processing methods are also possible, and this solution does not specifically limit them.

[0085] By performing the above processing, the number of bits in the first domain name is made the same as the first preset value.

[0086] 303. The server determines the second domain name based on the user account;

[0087] This second domain name can be understood as another part of the target domain name.

[0088] In one implementation, the user account includes K2 numbers and N2 characters, and the server determines the second domain name based on the user account, including:

[0089] If N2 is less than a third preset value, the server will convert the K2 numbers in the user account into K2 characters;

[0090] If the difference between the sum of k2 and N2, N' and the third preset value is less than the fourth preset value, the server performs padding on the N' characters to obtain a second domain name, wherein the number of characters in the second domain name is the same as the third preset value.

[0091] In other words, when the number of N2 characters is less than the third preset value, the server can convert the K2 numbers in the user account into k2 characters based on a preset algorithm. Each number can correspond to a different set of characters, and the number of these characters can also vary. This results in the k2 characters.

[0092] The sum N' of k2 and N2 is compared with the third preset value. If the difference is less than the fourth preset value, the N' characters are padded. For example, the padded characters can be placed after or before the N' characters. The padded characters can be any characters, and this solution does not impose any specific restrictions on this.

[0093] 304. The server determines the target domain name corresponding to the client based on the first domain name and the second domain name;

[0094] Based on the aforementioned first domain name and second domain name, the target domain name can be directly used as the target domain name corresponding to the client, or it can be preset, or the target domain name can be finally determined based on the categories corresponding to the first domain name and second domain name respectively.

[0095] 305. The server sends the target domain name to the client so that the client can configure a gray-scale environment based on the target domain name to conduct gray-scale testing, and enter the production environment after the gray-scale testing is completed.

[0096] A gray-scale environment refers to a process where a product or application is tested by a specific group of people before its official release. By gradually expanding the number of testers, problems can be identified and corrected in a timely manner.

[0097] The production environment refers to the environment in which the product is formally provided to the outside world, and the environment in which the actual users of the product use it.

[0098] Different environments correspond to different domain name configurations.

[0099] After determining the target domain name, the server sends it to the client so that the client can configure the gray-scale environment based on the target domain name and then conduct gray-scale testing.

[0100] Once the gray-scale testing is complete, the client can be directly transferred from the gray-scale environment to the production environment.

[0101] In this embodiment, the target domain name is determined based on the application's gray-scale package version number and user account sent by the client to the server. This domain name is then returned to the client for gray-scale environment configuration and gray-scale testing. After completing the gray-scale testing, the client directly enters the production environment. This method eliminates the need to send a request to the server to obtain the domain name upon completion of the gray-scale testing; instead, the client directly enters the production environment upon completion of the gray-scale testing, improving processing efficiency, saving time, and further enhancing the user experience. Furthermore, determining the target domain name based on the above method increases the flexibility and selectivity of domain name generation, enabling dynamic switching between multiple gray-scale environments through dynamic domain names.

[0102] Please see Figure 4 This is a flowchart illustrating another method for configuring a grayscale environment provided in an embodiment of the present invention; as shown below. Figure 4 As shown, the method includes steps 401-407, as detailed below:

[0103] 401. The server receives a request sent by the client, the request carrying the application's grayscale version number and the user account;

[0104] For details on this introduction, please refer to the foregoing embodiments; they will not be repeated here.

[0105] Optionally, before sending a request to the server, the client may also confirm whether the client can successfully send a request to the server; if not, it indicates that an interface error has occurred, and the client can directly use the local preset grayscale domain name to configure the grayscale environment for grayscale testing.

[0106] If possible, the message was successfully sent to the server.

[0107] 402. Determine whether a target domain name corresponding to the client exists;

[0108] The server can determine whether a target domain name corresponding to the client exists based on the user account sent by the client.

[0109] Specifically, the server has a pre-set list of accounts, and users in this list can conduct gray-scale testing.

[0110] 403. If no target domain name exists corresponding to the client, the server sends a production environment domain name to the client so that the client can enter the production environment;

[0111] If no target domain name exists for the client, the client cannot be used for gray-scale testing. Therefore, the server sends the production environment domain name to the client so as not to affect the user's use of the application and allow it to enter the production environment.

[0112] As an optional implementation, if there is no target domain name corresponding to the client, it could be due to a problem with the client's gray-scale environment. In this case, the client sends a request to the server and receives the production domain name returned by the server so that the user can use the APP normally.

[0113] If issues arise during the gray-scale deployment, the backend configuration will return the production domain name, allowing gray-scale users to use the app normally. Issues in the gray-scale environment could include server failure, preventing the app from launching.

[0114] like Figure 5 As shown, each time the app cold starts, it re-calls the dynamically retrieved domain name interface by sending the user account and the gray-scale package version number to the server. If the server returns a value, the client will use the returned domain name to continue the gray-scale test. If the server does not return a value or reports an error, the client can use the local default value to continue the gray-scale test.

[0115] 404. If present, the server determines the target domain name corresponding to the client based on the grayscale version number of the application and the user account;

[0116] For a detailed explanation of this step, please refer to the aforementioned records; it will not be repeated here.

[0117] 405. The server sends the target domain name to the client so that the client can configure a gray-scale environment based on the target domain name to conduct gray-scale testing;

[0118] For a detailed explanation of this step, please refer to the aforementioned records; it will not be repeated here.

[0119] 406. Determine whether the client completes the grayscale test within the preset time;

[0120] Specifically, the server receives the test results returned by the client and determines whether the client has completed the gray-scale test within a preset time based on the test results. For example, the timer starts from when the target domain name is returned and ends when the test results are received. If the test result indicates that the gray-scale test is complete, it means that the client has completed the gray-scale test; if the test result indicates that the test has failed or not completed, it means that the client has not completed the gray-scale test.

[0121] The server also checks whether the client completes the gray-scale test within a certain time to prevent the gray-scale test from exceeding the preset time and affecting users' use of the application.

[0122] Specifically, if the client fails to complete the gray-scale test within a preset time, the client is instructed to enter the production environment. Alternatively, the client can be instructed to use a local domain name for testing, etc., but this solution does not specifically limit this.

[0123] 407. If the client completes the grayscale test within a preset time, instruct the client to enter the production environment.

[0124] For example, when the server returns a grayscale domain name to the client, it can also carry a preset production domain name in the grayscale domain name. When the client's grayscale test is successful, it can directly enter the production environment according to the preset production domain name.

[0125] Alternatively, the grayscale domain can carry a timer function. If the test is completed within a preset time, the grayscale domain will be updated to a production domain so that it can be directly put into the production environment.

[0126] The above is merely an example, and this solution does not impose any specific limitations on it.

[0127] In this embodiment, the existence of a target domain name is determined based on the application's gray-scale package version number and user account sent by the client to the server. If the target domain name exists, it is returned to the client for gray-scale environment configuration and gray-scale testing. After completing the gray-scale testing, the client directly enters the production environment. If the target domain name does not exist, a production environment domain name is sent to the client so that the client can enter the production environment. This method eliminates the need to send a request to the server to obtain the domain name upon completion of the gray-scale testing, allowing direct entry into the production environment, thus improving processing efficiency and saving time. Furthermore, sending a production domain name to the client when a gray-scale domain name does not exist, enabling the client to use the application normally, further enhances the user experience.

[0128] Based on the description of the above embodiments of the grayscale environment configuration method, this invention also discloses a grayscale environment configuration device, referring to... Figure 6 , Figure 6 This is a schematic diagram of a grayscale environment configuration device provided in an embodiment of the present invention. The device includes a receiving module 601, a determining module 602, and a sending module 603; wherein:

[0129] The receiving module 601 is used to receive a request sent by the client, the request carrying the grayscale version number of the application and the user account;

[0130] The determining module 602 is used to determine the target domain name corresponding to the client based on the gray-scale package version number of the application and the user account;

[0131] The sending module 603 is used to send the target domain name to the client so that the client can configure the gray-scale environment according to the target domain name to conduct gray-scale testing, and enter the production environment after the gray-scale testing is completed.

[0132] The determining module 602 is further configured to:

[0133] The first domain name is determined based on the grayscale version number of the application;

[0134] The second domain name is determined based on the user account;

[0135] The target domain name corresponding to the client is determined based on the first domain name and the second domain name.

[0136] Wherein, the grayscale package version number includes K1 digits and N1 characters, the user account includes K2 digits and N2 characters, and the determining module 602 is further used for:

[0137] If K1 is less than the first preset value, the server will convert the N1 characters in the grayscale package version number into n1 numbers;

[0138] If the difference between the sum K' of K1 and n1 and the first preset value is less than the second preset value, the server fills in the K' numbers to obtain the first domain name, wherein the number of digits in the first domain name is the same as the first preset value.

[0139] If N2 is less than a third preset value, the server will convert the K2 numbers in the user account into K2 characters;

[0140] If the difference between the sum of k2 and N2, N' and the third preset value is less than the fourth preset value, the server performs padding on the N' characters to obtain a second domain name, wherein the number of characters in the second domain name is the same as the third preset value.

[0141] The device further includes a detection module for:

[0142] Determine whether the client completes the grayscale test within the preset time;

[0143] If the client completes the grayscale test within a preset time, the client is instructed to enter the production environment.

[0144] The determining module 602 is further configured to:

[0145] Determine if a target domain name corresponding to the client exists;

[0146] If no target domain name exists corresponding to the client, the server sends a production environment domain name to the client so that the client can enter the production environment.

[0147] In this embodiment, the target domain name is determined based on the application's gray-scale package version number and user account sent by the client to the server. This domain name is then returned to the client for gray-scale environment configuration and gray-scale testing. After completing the gray-scale testing, the client directly enters the production environment. This method eliminates the need to send a request to the server to obtain the domain name upon completion of the gray-scale testing; instead, the client directly enters the production environment upon completion of the gray-scale testing, improving processing efficiency, saving time, and further enhancing the user experience.

[0148] It is worth noting that the specific functional implementation of the grayscale environment configuration device can be found in the description of the grayscale environment configuration method above, and will not be repeated here. Each unit or module in the grayscale environment configuration device can be individually or entirely merged into one or more other units or modules, or some of the units or modules can be further divided into multiple functionally smaller units or modules. This achieves the same operation without affecting the technical effect of the embodiments of the present invention. The above-mentioned units or modules are based on logical function division. In practical applications, the function of one unit (or module) can also be implemented by multiple units (or modules), or the function of multiple units (or modules) can be implemented by one unit (or module).

[0149] Based on the description of the above method and device embodiments, this invention also provides a grayscale environment configuration device.

[0150] Please see Figure 7 This is a schematic diagram of a grayscale environment configuration device provided in an embodiment of the present invention. Figure 7 The grayscale environment configuration device 700 shown (specifically, this device 700 can be a computer device) includes a memory 701, a processor 702, a communication interface 703, and a bus 704. The memory 701, processor 702, and communication interface 703 are interconnected via the bus 704.

[0151] The memory 701 may be a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM).

[0152] The memory 701 can store programs. When the program stored in the memory 701 is executed by the processor 702, the processor 702 and the communication interface 703 are used to execute the various steps of the grayscale environment configuration method of the embodiments of this application.

[0153] The processor 702 may be a general-purpose central processing unit (CPU), microprocessor, application specific integrated circuit (ASIC), graphics processing unit (GPU), or one or more integrated circuits, used to execute related programs to implement the functions required by the units in the grayscale environment configuration device of this application embodiment, or to execute the grayscale environment configuration method of this application method embodiment.

[0154] The processor 702 can also be an integrated circuit chip with signal processing capabilities. In implementation, each step of the grayscale environment configuration method of this application can be completed by the integrated logic circuits in the hardware of the processor 702 or by software instructions. The aforementioned processor 702 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in the memory 701. The processor 702 reads the information in the memory 701 and, in conjunction with its hardware, performs the functions required by the units included in the grayscale environment configuration device of this application embodiment, or executes the grayscale environment configuration method of this application method embodiment.

[0155] The communication interface 703 uses transceiver devices, such as, but not limited to, transceivers, to enable communication between the device 700 and other devices or communication networks. For example, data can be acquired through the communication interface 703.

[0156] Bus 704 may include a pathway for transmitting information between various components of device 700 (e.g., memory 701, processor 702, communication interface 703).

[0157] It should be noted that, although Figure 7The illustrated device 700 only shows the memory, processor, and communication interface. However, those skilled in the art should understand that in specific implementations, device 700 may also include other devices necessary for normal operation. Furthermore, depending on specific needs, those skilled in the art should understand that device 700 may also include hardware devices for implementing other additional functions. Moreover, those skilled in the art should understand that device 700 may only include the devices necessary for implementing the embodiments of this application, and may not necessarily include... Figure 7 All the devices shown.

[0158] This application also provides a chip system applied to an electronic device; the chip system includes one or more interface circuits and one or more processors; the interface circuits and the processors are interconnected via lines; the interface circuits are used to receive signals from the memory of the electronic device and send the signals to the processor, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, the electronic device executes the grayscale environment configuration method.

[0159] This application also provides a computer-readable storage medium storing instructions that, when executed on a computer or processor, cause the computer or processor to perform one or more steps of any of the above methods.

[0160] This application also provides a computer program product containing instructions. When the computer program product is run on a computer or processor, it causes the computer or processor to perform one or more steps of any of the methods described above.

[0161] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the specific descriptions of the corresponding steps in the foregoing method embodiments, and will not be repeated here.

[0162] It should be understood that in the description of this application, unless otherwise stated, " / " indicates that the objects before and after it are in an "or" relationship. For example, A / B can represent A or B; where A and B can be singular or plural. Furthermore, in the description of this application, unless otherwise stated, "multiple" refers to two or more. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple. Additionally, to facilitate a clear description of the technical solutions of the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with substantially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and the terms "first" and "second" do not necessarily imply difference. In this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being better or more advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner to facilitate understanding.

[0163] In the embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the division of units is merely a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. The coupling, direct coupling, or communication connection shown or discussed between each other may be indirect coupling or communication connection through some interfaces, apparatuses, or units, and may be electrical, mechanical, or other forms.

[0164] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0165] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. This computer program product includes one or more computer instructions. When these computer program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in or transmitted through a computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available media can be read-only memory (ROM), random access memory (RAM), or magnetic media, such as floppy disks, hard disks, magnetic tapes, magnetic disks, or optical media, such as digital versatile discs (DVDs), or semiconductor media, such as solid-state disks (SSDs).

[0166] The above description is merely a specific implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the embodiments of this application should be covered within the protection scope of the embodiments of this application. Therefore, the protection scope of the embodiments of this application should be determined by the protection scope of the claims.

Claims

1. A method of configuring a gray scale environment, characterized by, The method comprises the steps of: a server receiving a request sent by a client, the request carrying a gray package version number of an application and a user account; the server determining a target domain name corresponding to the client according to the gray package version number of the application and the user account, the target domain name being used in common by multiple clients; the server sending the target domain name to the client, so that the client performs gray environment configuration according to the target domain name to perform gray testing, and enters a production environment after the gray testing is completed; receiving a test result returned by the client; determining whether the client completes the gray testing within a preset time according to the test result; if the client completes the gray testing within the preset time, instructing the client to enter the production environment; wherein the server determines the target domain name corresponding to the client according to the gray package version number of the application and the user account, comprising: the server determining a first domain name according to the gray package version number of the application; the server determining a second domain name according to the user account; the server determining the target domain name corresponding to the client according to the first domain name and the second domain name; the gray package version number comprises K1 digits and N1 characters, the user account comprises K2 digits and N2 characters, the server determines the first domain name according to the gray package version number of the application, comprising: if the K1 is less than a first preset value, the server converts the N1 characters in the gray package version number into n1 digits; if the difference between the sum K' of the K1 and the n1 and the first preset value is less than a second preset value, the server performs padding processing on the K' digits to obtain the first domain name, wherein the number of bits of the first domain name is the same as the first preset value; the server determines the second domain name according to the user account, comprising: if the N2 is less than a third preset value, the server converts the K2 digits in the user account into k2 characters; if the difference between the sum N' of the k2 and the N2 and the third preset value is less than a fourth preset value, the server performs padding processing on the N' characters to obtain the second domain name, wherein the number of bits of the second domain name is the same as the third preset value.

2. The method of claim 1, wherein, Before the server determines the target domain name corresponding to the client according to the gray package version number of the application and the user account, the method further comprises: determining whether there is a target domain name corresponding to the client; if there is no target domain name corresponding to the client, the server sends a production environment domain name to the client, so that the client enters the production environment.

3. A device for configuring a gray scale environment, the device being configured to perform the method according to claim 1 or 2, characterized in that The method comprises the steps of: a receiving module, configured to receive a request sent by a client, the request carrying a gray package version number of an application and a user account; a determining module, configured to determine a target domain name corresponding to the client according to the gray package version number of the application and the user account; The sending module is configured to send the target domain name to the client, so that the client performs gray environment configuration according to the target domain name to perform a gray test, and enters a production environment after the gray test is completed.

4. The apparatus of claim 3, wherein, The determining module is further configured to: determine a first domain name according to the gray package version number of the application program; determine a second domain name according to the user account; determine a target domain name corresponding to the client according to the first domain name and the second domain name.

5. The apparatus of claim 4, wherein, The gray package version number includes K1 digits and N1 characters, the user account includes K2 digits and N2 characters, and the determining module is further configured to: if the K1 is less than a first preset value, the server converts the N1 characters in the gray package version number into n1 digits; if a difference between a sum K' of the K1 and the n1 and the first preset value is less than a second preset value, the server performs padding processing on the K' digits to obtain the first domain name, wherein a bit number of the first domain name is the same as the first preset value; if the N2 is less than a third preset value, the server converts the K2 digits in the user account into k2 characters; if a difference between a sum N' of the k2 and the N2 and the third preset value is less than a fourth preset value, the server performs padding processing on the N' characters to obtain the second domain name, wherein a bit number of the second domain name is the same as the third preset value.

6. A configuration device of a gray scale environment, characterized by, comprise: a processor and a memory; the processor and the memory are connected, wherein the memory is configured to store program code, and the processor is configured to invoke the program code to perform the gray environment configuration method according to claim 1 or 2.

7. A computer storage medium, characterized in that The computer storage medium stores a computer program, the computer program includes program instructions, and the program instructions perform the gray environment configuration method according to claim 1 or 2 when executed by a processor.

Citation Information

Patent Citations

  • System multi-version data update method and device, storage medium and server

    CN109542475A