CN114697304A - Gray scale publishing method, system, device, equipment and storage medium - Google Patents
Gray scale publishing method, system, device, equipment and storage medium Download PDFInfo
- Publication number
- CN114697304A CN114697304A CN202011585155.8A CN202011585155A CN114697304A CN 114697304 A CN114697304 A CN 114697304A CN 202011585155 A CN202011585155 A CN 202011585155A CN 114697304 A CN114697304 A CN 114697304A
- Authority
- CN
- China
- Prior art keywords
- page
- gray
- client
- server
- configuration information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 238000001914 filtration Methods 0.000 claims description 70
- 238000012360 testing method Methods 0.000 claims description 38
- 238000013500 data storage Methods 0.000 claims description 28
- 238000009877 rendering Methods 0.000 claims description 23
- 238000012986 modification Methods 0.000 claims description 2
- 230000004048 modification Effects 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 10
- 238000012545 processing Methods 0.000 description 10
- 238000007726 management method Methods 0.000 description 7
- 230000008859 change Effects 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 6
- 230000008901 benefit Effects 0.000 description 5
- 230000007704 transition Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a gray scale release method, a gray scale release system, a gray scale release device, gray scale release equipment and a storage medium. The method comprises the following steps: when a page configuration downloading request sent by a client is received, acquiring gray level identification information in the page configuration downloading request; matching the gray scale identification information with the gray scale configuration information; and if the matching is successful, sending the page configuration list recorded with the offline download address corresponding to the page to the client, so that the client downloads the offline resource file from the first server to the local storage unit based on the page configuration list, and renders and displays the page based on the offline resource file in the local storage unit. According to the embodiment of the invention, the gray scale identification information is matched with the gray scale configuration information, and the page configuration list recorded with the offline download address corresponding to the page is sent to the client, so that the problem that the gray scale issuing needs to be cooperated with an operator is solved, and the controllability and the efficiency of the gray scale issuing are improved.
Description
Technical Field
The embodiment of the invention relates to the technical field of internet, in particular to a gray scale publishing method, system, device, equipment and storage medium.
Background
The existing Internet products have large user scale and frequent version updating, and the products bear great operation risks each time a new version is online. The gray release is a release mode for smooth transition between black and white, and the running risk of the online of a new version can be well avoided. Specifically, the gray scale issuing selects one part of users to use the product characteristics A, the other part of users to use the product characteristics B, if the operation of the product characteristics A is not abnormal, the user use range of the product characteristics A is gradually enlarged until all the users use the product characteristics A, and the influence degree can be reduced to the maximum extent even if the operation is abnormal.
The existing gray release mainly cooperates with an operator, specifically, a page to be subjected to gray release is released to a designated server, the designated server is accessed to a designated operator network, and only a terminal using the operator network can access the page on the designated server.
In the process of implementing the invention, at least the following technical problems are found in the prior art:
the method of cooperation with the operator relates to subscription cooperation, has more unknown factors, and can be realized only by the operator when the configuration information of the gray scale release needs to be changed, thereby causing poor controllability of the gray scale release and low efficiency of the gray scale release.
Disclosure of Invention
The embodiment of the invention provides a gray scale publishing method, a gray scale publishing system, a gray scale publishing device, gray scale publishing equipment and a storage medium, which are used for solving the problem that the gray scale publishing needs to be cooperated with an operator and improving the controllability and the publishing efficiency of the gray scale publishing.
In a first aspect, an embodiment of the present invention provides a gray scale publishing method, where the method includes:
when a page configuration downloading request sent by a client is received, acquiring gray level identification information in the page configuration downloading request; the gray identification information comprises a value of a preset gray filtering parameter determined by the client;
matching the gray scale identification information with gray scale configuration information; the gray configuration information comprises a value range of a preset gray filtering parameter preset aiming at a page of the client;
and if the matching is successful, sending a page configuration list recorded with the offline download address corresponding to the page to the client, so that the client downloads the offline resource file from the first server to the local storage unit based on the page configuration list, and renders and displays the page based on the offline resource file in the local storage unit.
In a second aspect, an embodiment of the present invention further provides a gray scale publishing method, where the method includes:
sending a page configuration downloading request containing gray level identification information to a gateway server so that the gateway server matches the gray level identification information with the gray level configuration information, and if the matching is successful, sending a page configuration list recorded with an offline downloading address corresponding to the page to a client; the gray level identification information comprises a value of a preset gray level filtering parameter determined by the client, and the gray level configuration information comprises a value range of the preset gray level filtering parameter preset aiming at a page of the client;
and downloading the offline resource file from the first server to a local storage unit based on the page configuration list sent by the gateway server, and rendering and displaying the page based on the offline resource file in the local storage unit.
In a third aspect, an embodiment of the present invention further provides a gray scale publishing system, where the system includes: the system comprises a gateway server, a client and a first server;
the gateway server is used for acquiring gray level identification information in a page configuration downloading request when the page configuration downloading request is received, matching the gray level identification information with the gray level configuration information, and if the matching is successful, sending a page configuration list recorded with an offline downloading address corresponding to the page to a client; the gray level identification information comprises a value of a preset gray level filtering parameter determined by the client, and the gray level configuration information comprises a value range of the preset gray level filtering parameter preset aiming at a page of the client;
the client is used for sending a page configuration downloading request to the gateway server, downloading the offline resource file from the first server to the local storage unit based on the page configuration list sent by the gateway server, and rendering and displaying the page based on the offline resource file in the local storage unit;
the first server is used for storing the offline resource file of at least one page.
In a fourth aspect, an embodiment of the present invention further provides a grayscale issuing apparatus, where the apparatus includes:
the system comprises a gray scale identification information acquisition module, a gray scale identification information acquisition module and a gray scale identification information acquisition module, wherein the gray scale identification information acquisition module is used for acquiring gray scale identification information in a page configuration downloading request when receiving the page configuration downloading request sent by a client; the gray identification information comprises a value of a preset gray filtering parameter determined by the client;
the gray scale identification information matching module is used for matching the gray scale identification information with gray scale configuration information; the gray configuration information comprises a value range of a preset gray filtering parameter preset aiming at a page of the client;
and the page configuration list sending module is used for sending the page configuration list recorded with the offline download address corresponding to the page to the client if the matching is successful, so that the client downloads the offline resource file from the first server to the local storage unit based on the page configuration list, and renders and displays the page based on the offline resource file in the local storage unit.
In a fifth aspect, an embodiment of the present invention further provides a grayscale issuing apparatus, where the apparatus includes:
the system comprises a page configuration downloading request sending module, a client side and a server, wherein the page configuration downloading request sending module is used for sending a page configuration downloading request containing gray level identification information to a gateway server so that the gateway server matches the gray level identification information with the gray level configuration information, and if the matching is successful, a page configuration list recorded with an offline downloading address corresponding to a page is sent to the client side; the gray level identification information comprises a value of a preset gray level filtering parameter determined by the client, and the gray level configuration information comprises a value range of the preset gray level filtering parameter preset aiming at a page of the client;
and the page rendering and displaying module is used for downloading the offline resource file from the first server to the local storage unit based on the page configuration list sent by the gateway server, and rendering and displaying the page based on the offline resource file in the local storage unit.
In a sixth aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement any of the grayscale publication methods mentioned above.
In a seventh aspect, the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform any of the above-mentioned grayscale issuing methods.
The embodiment of the invention has the following advantages or beneficial effects:
according to the embodiment of the invention, the gray scale identification information in the page configuration downloading request is matched with the gray scale configuration information, and if the matching is successful, the page configuration list recorded with the offline downloading address corresponding to the page is sent to the client, so that the purpose of performing gray scale publishing based on the offline resource file of the page is realized, the problem that online gray scale publishing needs to be cooperated with an operator is solved, and the controllability of the gray scale publishing and the gray scale publishing efficiency of the page are improved.
Drawings
Fig. 1 is a flowchart of a gray scale publishing method according to an embodiment of the present invention.
Fig. 2 is a flowchart of a gray scale publishing method according to a second embodiment of the present invention.
Fig. 3 is a flowchart of a gray scale publishing method according to a third embodiment of the present invention.
Fig. 4 is a flowchart of a gray scale publishing method according to a fourth embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a gray scale issuing system according to a fifth embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a specific example of a gray scale issuing system according to a fifth embodiment of the present invention.
Fig. 7 is a schematic diagram of a gray scale issuing apparatus according to a sixth embodiment of the present invention.
Fig. 8 is a schematic diagram of a gray scale issuing apparatus according to a seventh embodiment of the present invention.
Fig. 9 is a schematic structural diagram of an electronic device according to an eighth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a gray scale publishing method according to an embodiment of the present invention, where this embodiment is applicable to a case of performing gray scale publishing on a page of a client, and the method may be executed by a gray scale publishing apparatus, which may be implemented in a software and/or hardware manner, and the apparatus may be configured in a gateway server. The method specifically comprises the following steps:
s110, when a page configuration downloading request sent by a client is received, gray identification information in the page configuration downloading request is obtained.
In this embodiment, the grayscale identification information includes a value of a preset grayscale filtering parameter determined by the client. Illustratively, when the client detects a page configuration trigger event, the client determines a value of a preset grayscale filtering parameter based on the preset grayscale filtering parameter, and generates grayscale identification information based on the value of the preset grayscale filtering parameter.
In one embodiment, optionally, the preset grayscale filtering parameters include: at least one of a client operating system type, a client operating system version, a client type, a client version, user information, a crowd portrayal, a user city, an operator, and a user device type. The client operating system type may be an IOS system, an Android system, a Windows7 system, a Windows10 system, or the like, for example; the client operating system version may be a specific operating system version number; the client type can be used for representing specific client names, such as a client a and a client B, and exemplarily, the client a and the client B may belong to both an electronic shopping type client or the client a and the client B belong to both an electronic shopping type client and a map navigation type client, respectively; the client version may be a specific client version number; the user information comprises at least one of a user name, a user gender, a user login password, a user age and the like; the crowd portraits comprise crowd characteristics and crowd information, for example, the crowd portraits comprise the age, the gender, the average income, the occupation and other information of low-income crowds; the operator may be mobile, connected or telecom; the user device type may be used to describe a device type of the client, such as a mobile terminal, a laptop computer, or a tablet computer, and specifically, the user device type may further include a device brand.
For example, the values of the preset grayscale filtering parameters in the grayscale identification information include IOS system, IOS14.3 version, kyoto APP (application), 9.3.0 version, zhang san, low income group aged 28 years, beijing, mobile, and apple phone.
It should be noted that, here, the preset grayscale filtering parameter is only exemplarily explained and is not limited thereto, and the specific setting and value range of the preset grayscale filtering parameter may be set according to specific requirements.
And S120, matching the gray scale identification information with the gray scale configuration information.
In this embodiment, the grayscale configuration information includes a value range of a preset grayscale filtering parameter preset for a page of the client. Specifically, the page of the client includes a page for performing gray-scale publishing. The preset gray level filtering parameters in the gray level configuration information correspond to the preset gray level filtering parameters in the gray level identification information, if the gray level identification information is successfully matched with the gray level configuration information, the value of the preset gray level filtering parameters in the gray level identification information is the same as the value of a group of preset gray level filtering parameters in the gray level configuration information, and if the gray level identification information is unsuccessfully matched with the gray level configuration information, the value of the gray level identification information is different from the value of any group of preset gray level filtering parameters in the gray level configuration information. Wherein, the values of a group of preset gray filtering parameters comprise the value of at least one preset gray filtering parameter. For example, it is assumed that the value ranges of the user city and the operator in the gray configuration information are respectively: and if the beijing & shanghai and mobile & unicom are adopted, the gray configuration information comprises four groups of values of preset gray filtering parameters, namely beijing and mobile, beijing and unicom, shanghai and mobile, and shanghai and unicom. And if the user city and the operator in the gray level identification information are Beijing and move respectively, the gray level identification information and the gray level configuration information are successfully matched, and if the user city and the operator in the gray level identification information are Shenzhen and move, the gray level identification information and the gray level configuration information are unsuccessfully matched.
In one embodiment, optionally, before matching the grayscale identification information with the grayscale configuration information, the method further includes: acquiring gray configuration information from a data storage server; wherein, the gray configuration information is written into the data storage server by the third server in advance.
In one embodiment, optionally, the grayscale configuration information is initial grayscale configuration information received by the third server and input by a user. Illustratively, an offline platform system is deployed on the third server, and the offline platform system is compiled based on Nodejs statements. The user may input the initial grayscale configuration information based on the offline platform system built on the third server.
S130, if the matching is successful, the page configuration list recorded with the offline download address corresponding to the page is sent to the client, so that the client downloads the offline resource file from the first server to the local storage unit based on the page configuration list, and renders and displays the page based on the offline resource file in the local storage unit.
In one embodiment, optionally, the first server is a cloud server. The cloud server is a server capable of providing simple, efficient, safe and reliable computing services with elastically scalable processing capacity. In one embodiment, optionally, the cloud server may be a JSS server (slingding Store Service). In particular, the JSS server can provide management functions for file storage, access, backup, sharing, and the like to users.
Specifically, the offline resource file is obtained by downloading from the first server according to the offline download address corresponding to the page recorded in the page configuration list. The offline download address is used for representing a storage address of the offline resource file corresponding to the page in the first server.
The offline resource file contains information for rendering a page, and illustratively, the offline resource file includes an HTML (HyperText Markup Language) file and rendering resources. Specifically, the offline resource path referred by the HTML file is a storage path of the rendering resource in the local storage unit. Illustratively, the rendering resources include, but are not limited to, at least one of CSS files, JS files, videos, and pictures.
According to the technical scheme of the embodiment, the gray scale identification information in the page configuration downloading request is matched with the gray scale configuration information, and if the matching is successful, the page configuration list recorded with the offline downloading address corresponding to the page is sent to the client, so that the purpose of performing gray scale publishing on the basis of the offline resource file of the page is achieved, the problem that online gray scale publishing needs to be cooperated with an operator is solved, and the controllability of the gray scale publishing and the gray scale publishing efficiency of the page are improved.
Example two
Fig. 2 is a flowchart of a gray scale publishing method according to a second embodiment of the present invention, and the technical solution of this embodiment is further detailed based on the above-mentioned embodiment. Optionally, before sending the page configuration list recorded with the offline download address corresponding to the page to the client, the method further includes: acquiring the sent times of the page configuration list; and comparing the sent times with the maximum access times, and triggering and executing the operation of sending the page configuration list recorded with the offline download address corresponding to the page to the client if the sent times are less than or equal to the maximum allowed access times.
Further, the method further comprises: and if the sent times are larger than the maximum allowed access times, sending the Uniform Resource Location (URL) address corresponding to the page to the client, so that the client acquires a hypertext markup language (HTML) file on a second server based on the URL address and performs rendering display based on the HTML file.
The specific implementation steps of this embodiment include:
s210, when a page configuration downloading request sent by a client is received, gray scale identification information in the page configuration downloading request is obtained.
S220, matching the gray level identification information with the gray level configuration information, and if the matching is successful, acquiring the sent times of the page configuration list.
For example, the sent times may be used to characterize the download times of the offline resource file corresponding to the page downloaded by the client from the first server. In one embodiment, optionally, obtaining the sent times of the page configuration list includes: and when the page configuration list recorded with the offline download address corresponding to the page is sent to the client, adding one operation to the execution times to obtain the sent times.
It should be noted that, the step of "acquiring the sent times of the page configuration list" may also be performed before "matching the grayscale identification information with the grayscale configuration information", and the present embodiment is explained by taking as an example the step of "acquiring the sent times of the page configuration list" after "matching the grayscale identification information with the grayscale configuration information".
S230, judging whether the sent times are larger than the maximum access times, if so, executing S240, and if not, executing S250.
Specifically, the maximum access times may be used to characterize the maximum sending times of the page configuration list in which the offline download address corresponding to the page is recorded, and may also characterize the maximum download times of the client downloading the offline resource file corresponding to the page from the first server.
In one embodiment, optionally, the maximum number of accesses is obtained from the data storage server, wherein the maximum number of accesses is previously written into the database memory by the third server.
In another embodiment, optionally, the grayscale configuration information includes a maximum number of accesses, and correspondingly, matching the grayscale identification information with the grayscale configuration information includes: and adding the sent times into the gray scale identification information, and matching the gray scale identification information with the gray scale configuration information. Specifically, if the matching is successful, it indicates that the sent times are less than or equal to the maximum access times, and if the matching is failed, it indicates that the sent times are greater than the maximum access times.
S240, sending the URL address corresponding to the page to the client, so that the client acquires the HTML file on the second server based on the URL address and renders and displays the page based on the HTML file.
Here, a URL (Uniform Resource Locator) address is a representation of a location address of a Resource accessible on the internet. Illustratively, a URL address is composed of a string of characters, which may be letters, numbers, and special symbols.
The exemplary sending of the URL address corresponding to the page to the client includes: and sending the page configuration list recorded with the URL address corresponding to the page to the client.
In one embodiment, optionally, the second server is a web server. The website server may be a physical server, and configures an independent domain name address. Illustratively, the website server may be an Apache server, a Nginx server, or an IIS server. Specifically, the resource path referred by the HTML file in the website server is different from the resource path referred by the HTML file in the offline resource file. The resource path referenced by the HTML file in the website server is a path related to the domain name address of the website server, and the resource path referenced by the HTML file in the offline resource file is a path related to the storage path of the offline resource file in the local storage unit. Correspondingly, the HTML file downloaded from the website server is different from the HTML file in the offline resource file.
S250, sending the page configuration list recorded with the offline download addresses corresponding to the pages to the client, so that the client downloads the offline resource files from the first server to the local storage unit based on the page configuration list, and renders and displays the pages based on the offline resource files in the local storage unit.
According to the technical scheme, the problem of limiting the downloading times of the offline resource file is solved by acquiring the sent times of the page configuration list and comparing the sent times with the maximum access times, so that the limited number of gray test data corresponding to the page rendered and displayed based on the offline resource file can be acquired, and the limited number of gray test data is subjected to quantitative data analysis. Further, when the sent times are greater than the maximum allowed access times, the URL address corresponding to the page is sent to the client, so that it is ensured that the client corresponding to the gray identification information matched with the gray configuration information can render and display the page as well, thereby achieving the purpose of online gray publishing of the page.
EXAMPLE III
Fig. 3 is a flowchart of a gray scale publishing method provided by a third embodiment of the present invention, and the technical solution of the present embodiment is further detailed based on the foregoing embodiment. Optionally, the gray scale configuration information is updated gray scale configuration information obtained by adjusting, by the third server, target gray scale configuration information corresponding to the gray scale test data in existing gray scale configuration information based on the gray scale test data of the page.
The specific implementation steps of this embodiment include:
s310, when a page configuration downloading request sent by a client is received, gray identification information in the page configuration downloading request is obtained.
And S320, acquiring the gray level test data of the third server based on the page from the data storage server, and adjusting target gray level configuration information corresponding to the gray level test data in the existing gray level configuration information to obtain updated gray level configuration information.
Specifically, the grayscale test data may be used to describe test data of a page during rendering and displaying at a client. Illustratively, the grayscale test data includes, but is not limited to, the number of page display errors, the number of page time-out displays, the number of times a page is accessed, and feedback information sent by the client, and illustratively, the feedback information may be the satisfaction degree of the page. The specific data content included in the gradation test data is not limited herein.
Specifically, the existing grayscale information includes initial grayscale configuration information input by a user, second grayscale configuration information corresponding to the first adjustment operation, third grayscale configuration information corresponding to the second adjustment operation, and the like. The target gray-scale configuration information corresponding to the gray-scale test data represents gray-scale configuration information currently used for matching with the gray-scale identification information. For example, assuming that the target gray-scale information corresponding to the gray-scale test data is the third gray-scale configuration information, the gray-scale configuration information is updated to the fourth gray-scale configuration information corresponding to the third adjustment operation.
In an embodiment, optionally, the updated gray-scale configuration information includes first updated gray-scale configuration information obtained by the third server performing an information change operation on the target gray-scale configuration information according to the gray-scale test data of the page, or second updated gray-scale configuration information obtained by the third server performing an information addition operation on the target gray-scale configuration information according to the gray-scale test data of the page.
For example, the information modification operation may be to modify a value range a of a preset grayscale filtering parameter in the target grayscale configuration information into a value range B, where the value range a and the value range B do not intersect with each other. For example, the type of the client operating system in the target gray-scale configuration information is an IOS system, and the type of the client operating system in the first updated gray-scale configuration information is an Android system.
For example, the information adding operation may be to modify a value range a of a preset grayscale filtering parameter in the target grayscale configuration information into a value range B, and specifically, the value range a is included in the value range B. For example, the type of the client operating system in the target gray-scale configuration information is an IOS system, and the type of the client operating system in the second updated gray-scale configuration information is an IOS system and an Android system.
In an embodiment, optionally, the third server performs an information change operation on the target grayscale configuration information corresponding to the grayscale test data that meets the preset failure criterion. For example, the preset failure criterion may be that the number of page display errors is greater than a preset number threshold and/or the page access rate is less than a preset access threshold. For example, if the gray level test data corresponding to the IOS system meets the preset fault standard, the IOS system is modified into the Android system. The method has the advantages that the problem that the gray level test data meeting the preset fault standard appears at the client side is avoided by executing information change operation on the gray level configuration information, so that the influence on the page display effect of the client side meeting the gray level release condition is avoided.
In an embodiment, optionally, the third server performs an information adding operation on the target grayscale configuration information corresponding to the grayscale test data meeting the preset check criterion. For example, the preset check criterion may be opposite to the preset failure criterion, such as that the number of page display errors is less than or equal to a preset number threshold and/or the page access rate is greater than or equal to a preset access threshold. For example, if the gray scale test data corresponding to the IOS system meets the preset check standard, the value range of the client operating system type is modified into the IOS system and the Android system. The method has the advantages that by performing information adding operation on the gray scale configuration information, the application range of the client meeting the gray scale release condition can be widened in time when the gray scale test information meets the preset verification standard, and accordingly transition efficiency from gray scale release to full-scale release is improved.
And S330, matching the gray scale identification information with the updated gray scale configuration information.
On the basis of the foregoing embodiment, optionally, when the gray configuration information is updated, the method further includes: reading target gray configuration information corresponding to the first updated gray configuration information from the data storage server, and matching the gray identification information with the target gray configuration information; and if the matching is successful, sending the URL address corresponding to the page to the client, so that the client acquires the HTML file on the second server based on the URL address and renders and displays the page based on the HTML file.
Specifically, the target gray configuration information is the gray configuration information before the information change operation is executed corresponding to the first updated gray configuration information.
The advantage of such setting is that the target gray configuration information is adjusted to the first updated gray configuration information, and although the problem that the target gray configuration information causes gray test data meeting the preset fault standard to appear at the client is avoided in time, the client meeting the target gray configuration information may still belong to the client needing to perform the gray test. In the embodiment, the target gray level configuration information is matched with the gray level identification information, and the URL address is sent to the client side which is successfully matched, so that the purpose of performing online gray level test on the client side which meets the target gray level configuration information is achieved, and the integrity of gray level test data in the gray level release process is further ensured.
S340, if the matching is successful, sending the page configuration list recorded with the offline download address corresponding to the page to the client, so that the client downloads the offline resource file from the first server to the local storage unit based on the page configuration list, and renders and displays the page based on the offline resource file in the local storage unit.
According to the technical scheme of the embodiment, the gray identification information is matched with the updated gray configuration information, specifically, the updated gray configuration information comprises the first updated gray configuration information and the second updated gray configuration information for executing the information change operation or the information addition operation, so that the problem of updating the gray configuration information is solved, the page display effect of the client meeting the gray release condition is improved, and the transition efficiency of the page from gray release to full release is improved.
Example four
Fig. 4 is a flowchart of a gray scale publishing method according to a fourth embodiment of the present invention, where this embodiment is applicable to a case of performing gray scale publishing on a page of a client, and the method may be executed by a gray scale publishing apparatus, which may be implemented in a software and/or hardware manner, and the apparatus may be configured in a gateway server. The method specifically comprises the following steps:
s410, sending a page configuration downloading request containing gray level identification information to a gateway server so that the gateway server matches the gray level identification information with the gray level configuration information, and if the matching is successful, sending a page configuration list recorded with an offline downloading address corresponding to the page to a client.
In this embodiment, the grayscale identification information includes a value of a preset grayscale filtering parameter determined by the client, and the grayscale configuration information includes a value range of the preset grayscale filtering parameter preset for a page of the client.
In one embodiment, optionally, the preset grayscale filtering parameters include: at least one of a client operating system type, a client operating system version, a client type, a client version, user information, a crowd portrayal, a user city, an operator, and a user device type. The client operating system type may be an IOS system, an Android system, a Windows7 system, a Windows10 system, or the like, for example; the client operating system version may be a version number of a particular operating system; the client type can be used for representing specific client names, such as a client a and a client B, and exemplarily, the client a and the client B may belong to both an electronic shopping type client or the client a and the client B belong to both an electronic shopping type client and a map navigation type client, respectively; the client version may be a specific client version number; the user information comprises at least one of a user name, a user gender, a user login password, a user age and the like; the crowd portraits comprise crowd characteristics and crowd information, for example, the crowd portraits comprise the age, the gender, the average income, the occupation and other information of low-income crowds; the operator may be mobile, connected or telecom; the user device type may be used to describe a device type of the client, such as a mobile terminal, a laptop computer, or a tablet computer, and specifically, the user device type may further include a device brand.
For example, the values of the preset grayscale filtering parameters in the grayscale identification information include IOS system, IOS14.3 version, kyoto APP (application), 9.3.0 version, zhang san, low income group aged 28 years, beijing, mobile, and apple phone.
It should be noted that, the preset grayscale filtering parameter is only exemplarily explained here, and is not limited thereto, and the specific setting and value range of the preset grayscale filtering parameter may be set according to specific requirements.
Specifically, the page of the client includes a page for performing gray-scale publishing. The preset gray level filtering parameters in the gray level configuration information correspond to the preset gray level filtering parameters in the gray level identification information, if the gray level identification information is successfully matched with the gray level configuration information, the value of the preset gray level filtering parameters in the gray level identification information is the same as the value of a group of preset gray level filtering parameters in the gray level configuration information, and if the gray level identification information is unsuccessfully matched with the gray level configuration information, the value of the gray level identification information is different from the value of any group of preset gray level filtering parameters in the gray level configuration information. Wherein, the values of a group of preset gray filtering parameters comprise the value of at least one preset gray filtering parameter. For example, it is assumed that the value ranges of the user city and the operator in the gray configuration information are respectively: and if the beijing & shanghai and mobile & unicom are adopted, the gray configuration information comprises four groups of values of preset gray filtering parameters, namely beijing and mobile, beijing and unicom, shanghai and mobile, and shanghai and unicom. And if the user city and the operator in the gray level identification information are Beijing and move respectively, the gray level identification information and the gray level configuration information are successfully matched, and if the user city and the operator in the gray level identification information are Shenzhen and move, the gray level identification information and the gray level configuration information are unsuccessfully matched.
Illustratively, the gateway server may be a Java gateway interface server.
In an embodiment, optionally, the page configuration downloading request is generated when a page configuration triggering event is detected, where the page configuration triggering event includes at least one of a page display triggering event, a client starting event, and a client foreground and background switching event.
Specifically, when at least one of a page display trigger event, a client start event, a switch from foreground operation to background event of a client, and a switch from background operation to foreground event of a client is detected, a page configuration downloading request is generated.
In an exemplary embodiment, the client determines a value of the preset grayscale filtering parameter based on the preset grayscale filtering parameter, and generates the grayscale identification information based on the value of the preset grayscale filtering parameter.
S420, downloading the offline resource file from the first server to a local storage unit based on the page configuration list sent by the gateway server, and rendering and displaying the page based on the offline resource file in the local storage unit.
The local storage unit is a storage unit arranged in the client, and specifically, the storage unit has functions of storing data and reading and writing data.
Specifically, the offline resource file is obtained by downloading from the first server according to the offline download address corresponding to the page recorded in the page configuration list. The offline download address is used for representing a storage address of the offline resource file corresponding to the page in the first server.
In one embodiment, optionally, the first server is a cloud server. The cloud server is a server capable of providing simple, efficient, safe and reliable computing services with elastically scalable processing capacity. In one embodiment, optionally, the cloud server may be a JSS server (slingding Store Service). In particular, the JSS server can provide management functions for file storage, access, backup, sharing, and the like to users.
The offline resource file contains information for rendering a page, and the offline resource file includes, for example, an HTML file and rendering resources. Specifically, the offline resource path referred by the HTML file is a storage path of the rendering resource in the local storage unit. Illustratively, the rendering resources include, but are not limited to, at least one of CSS files, JS files, videos, and pictures.
According to the technical scheme of the embodiment, the page configuration downloading request containing the gray level identification information is sent to the gateway server, the page configuration list sent by the gateway server when the gray level identification information is successfully matched with the gray level configuration information is received, the offline resource file is downloaded from the first server to the local storage unit based on the page configuration list, and the page is rendered and displayed based on the offline resource file in the local storage unit, so that the purpose of performing gray level publishing on the offline resource file based on the page is achieved, the problem that online gray level publishing needs to be cooperated with an operator is solved, and the controllability of the gray level publishing and the gray level publishing efficiency of the page are improved.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a gray scale publishing system according to a fifth embodiment of the present invention, where the fifth embodiment of the present invention provides a service for implementing the gray scale publishing method according to the foregoing embodiment of the present invention, and the gray scale publishing device according to the present invention may be configured.
The gray scale distribution system includes: gateway server 510, client 520, and first server 530; the gateway server 510 is configured to, when receiving a page configuration downloading request, obtain grayscale identification information in the page configuration downloading request, match the grayscale identification information with the grayscale configuration information, and if the matching is successful, send a page configuration list in which an offline downloading address corresponding to a page is recorded to the client 520; the gray scale identification information includes a value of a preset gray scale filtering parameter determined by the client 520, and the gray scale configuration information includes a value range of the preset gray scale filtering parameter preset for a page of the client 520; the client 520 is configured to send a page configuration downloading request to the gateway server 510, download an offline resource file from the first server 530 to a local storage unit based on a page configuration list sent by the gateway server 510, and render and display a to-be-displayed page based on the offline resource file in the local storage unit; a first server 530 for storing an offline resource file of at least one page.
The gateway server 510 may be a Java gateway interface server, for example.
Specifically, the page of the client 520 includes a page for performing gray-scale publishing. The local storage unit is a storage unit disposed in the client 520, and specifically, the storage unit has functions of storing data and reading and writing data.
Specifically, the offline download address is used to represent a storage address of the offline resource file corresponding to the page in the first server 530. In one embodiment, first server 530 is optionally a cloud server. The cloud server is a server capable of providing simple, efficient, safe and reliable computing services with elastically scalable processing capacity. In one embodiment, optionally, the cloud server may be a JSS server (slingding Store Service). In particular, the JSS server can provide management functions for file storage, access, backup, sharing, and the like to users.
On the basis of the above embodiment, optionally, the system further includes a third server and a data storage server; the third server is used for writing the acquired gray configuration information into the data storage server; the data storage server is used for storing the gray configuration information; correspondingly, the gateway server 510 is specifically configured to: grayscale configuration information is obtained from a data storage server.
Illustratively, an offline platform system is deployed on the third server, and the offline platform system is compiled based on Nodejs statements.
The data storage Server is a Server constructed based on a database, wherein the database may be a relational database or a non-relational database, and specifically, the relational database includes but is not limited to an Oracle database, a DB2 database, a Microsoft SQL Server database, a Microsoft Access database or a MySQL database, and the non-relational database includes but is not limited to a NoSql database, a cloudt database, a mongoddb database, a redis database or an HBase database. The type of database in the data storage server is not limited herein.
In one embodiment, optionally, the data storage server is built based on a MySQL database and a redis database. The third server writes the grayscale configuration information and the page configuration list into a MySQL database in the data storage server, and the redis database synchronously stores the grayscale configuration information and the page configuration list in the MySQL database, so that the gateway server 510 reads the grayscale configuration information and the page configuration list from the redis database. The advantage of this arrangement is that when one database is used for data reading, writing and processing, the processing efficiency of the database is greatly reduced when the access amount is large. The data in the MySQL database is synchronized to the redis database for synchronous storage, so that the data reading speed of the gateway server can be effectively guaranteed, and the loading speed of the page can be further guaranteed.
On the basis of the foregoing embodiment, optionally, the third server is specifically configured to: receiving initial gray configuration information input by a user, and writing the initial gray configuration information into a data storage server; or acquiring the gray level test data corresponding to the page, adjusting target gray level configuration information corresponding to the gray level test data in the existing gray level configuration information based on the gray level test data to obtain updated gray level configuration information, and writing the updated gray level configuration information into the data storage server.
In one embodiment, optionally, the system further comprises: the second server is used for storing the HTML file corresponding to at least one page; the gateway server 510 is also configured to: acquiring the sent times of a page configuration list; and comparing the sent times with the maximum access times, and if the sent times are greater than the maximum allowed access times, sending the URL address corresponding to the page to the client so that the client acquires the HTML file on the second server based on the URL address and renders and displays the page based on the HTML file.
In one embodiment, optionally, the second server is a web server. The website server may be a physical server, and configures an independent domain name address. Illustratively, the website server may be an Apache server, a Nginx server, or an IIS server.
In an embodiment, optionally, the system further includes a login management platform server, configured to generate login success information according to the received user login information sent by the third server, and send the login success information to the platform third server; the user login information is sent when the third server detects that the login state corresponding to the user login information is the unregistered state. The login management platform server may deploy an SSA (operation and maintenance auditing system), and specifically, the SSA is a new generation operation and maintenance security auditing system that integrates single sign-on, account management, identity authentication, resource authorization, access control, and operation auditing.
Fig. 6 is a schematic structural diagram of a specific example of a gray scale distribution system according to a fifth embodiment of the present invention. Specifically, the gray scale publishing system is divided into three layers, namely an application layer, a service layer and a data layer from top to bottom. Wherein, SSA represents the login management platform server, nodjs interface service represents the third server, JSS cloud service represents the first server 530, H5 Nginx represents the second server, online APP represents the client 520, Java gateway interface represents the gateway server 510, MySQL and redis cache represent the data storage server.
Specifically, the background user inputs the initial grayscale configuration information through the Nodejs interface service provided by the third server, specifically, the grayscale configuration information includes a value range of a preset grayscale filtering parameter, and in this embodiment, the preset grayscale filtering parameter includes a client operating system type, a client operating system version, a client type, a client version, user information, a crowd image, a user city, an operator, and a user equipment type. Specifically, the Nodejs interface service can publish offline packages (corresponding offline resource files) to the JSS cloud service based on gray-scale publication or full-scale publication, and generate a page configuration list. The Nodejs interface service writes the initial gray configuration information and the page configuration list into a MySQL database, and the initial gray configuration information and the page configuration list are synchronized in a redis cache. And the online APP sends a page configuration downloading request containing the gray level identification information to the Java gateway interface, the Java gateway interface matches the gray level identification information with the initial gray level configuration information read from the redis cache, and if the matching is successful, a page configuration list corresponding to the page read from the redis cache is sent to the online APP. And the online APP downloads the offline package of the page in the JSS cloud service to the local storage unit based on the offline download address in the page configuration list, and performs rendering display on the page based on the offline package in the local storage unit.
According to the technical scheme of the embodiment, the gray scale identification information in the page configuration downloading request is matched with the gray scale configuration information, and if the matching is successful, the page configuration list recorded with the offline downloading address corresponding to the page is sent to the client, so that the purpose of performing gray scale publishing on the basis of the offline resource file of the page is achieved, the problem that online gray scale publishing needs to be cooperated with an operator is solved, and the controllability of the gray scale publishing and the gray scale publishing efficiency of the page are improved.
EXAMPLE six
Fig. 7 is a schematic diagram of a gray scale issuing apparatus according to a sixth embodiment of the present invention. The present embodiment is applicable to the case of performing gray-scale publishing on the page of the client, and the apparatus may be implemented in a software and/or hardware manner, and may be configured in a gateway server. The gradation issuance apparatus includes: a gray identification information acquisition module 610, a gray identification information matching module 620 and a page configuration list transmission module 630.
The grayscale identification information obtaining module 610 is configured to, when receiving a page configuration downloading request sent by a client, obtain grayscale identification information in the page configuration downloading request; the gray identification information comprises values of preset gray filtering parameters determined by the client;
a gray level identification information matching module 620, configured to match the gray level identification information with the gray level configuration information; the gray configuration information comprises a value range of a preset gray filtering parameter preset aiming at a page of the client;
a page configuration list sending module 630, configured to send, if the matching is successful, a page configuration list in which the offline download address corresponding to the page is recorded to the client, so that the client downloads the offline resource file from the first server to the local storage unit based on the page configuration list, and renders and displays the page based on the offline resource file in the local storage unit.
According to the technical scheme of the embodiment, the gray scale identification information in the page configuration downloading request is matched with the gray scale configuration information, and if the matching is successful, the page configuration list recorded with the offline downloading address corresponding to the page is sent to the client, so that the purpose of performing gray scale publishing on the basis of the offline resource file of the page is achieved, the problem that online gray scale publishing needs to be cooperated with an operator is solved, and the controllability of the gray scale publishing and the gray scale publishing efficiency of the page are improved.
On the basis of the above technical solution, optionally, the apparatus further includes:
the sent frequency acquisition module is used for acquiring the sent frequency of the page configuration list before the page configuration list recorded with the offline download address corresponding to the page is sent to the client;
and the maximum access time comparison module is used for comparing the sent times with the maximum access times, and if the sent times are less than or equal to the maximum allowed access times, triggering and executing the operation of sending the page configuration list recorded with the offline download address corresponding to the page to the client.
On the basis of the above technical solution, optionally, the maximum access number comparing module is further configured to:
and if the sent times are larger than the maximum allowed access times, sending the URL address of the uniform resource locator corresponding to the page to the client, so that the client acquires the HTML file of the hypertext markup language on the second server based on the URL address and renders and displays the page based on the HTML file.
On the basis of the above technical solution, optionally, the apparatus further includes:
the gray configuration information acquisition module is used for acquiring gray configuration information from the data storage server before matching the gray identification information with the gray configuration information; the gray configuration information is written into the data storage server by the third server in advance.
On the basis of the above technical solution, optionally, the gray configuration information is initial gray configuration information received by the third server and input by a user, or the third server adjusts target gray configuration information corresponding to the gray test data in existing gray configuration information based on the gray test data of the page to obtain updated gray configuration information.
On the basis of the above technical solution, optionally, the updated gray configuration information includes first updated gray configuration information obtained by the third server performing an information change operation on the target gray configuration information according to the gray test data of the page, or second updated gray configuration information obtained by the third server performing an information addition operation on the target gray configuration information according to the gray test data of the page.
On the basis of the foregoing technical solution, optionally, when the gray configuration information is updated by first updating the gray configuration information, the apparatus further includes:
the target gray configuration information matching module is used for reading target gray configuration information corresponding to the first updated gray configuration information from the data storage server and matching the gray identification information with the target gray configuration information; and if the matching is successful, sending the URL address corresponding to the page to the client, so that the client acquires the HTML file on the second server based on the URL address and renders and displays the page based on the HTML file.
On the basis of the above technical solution, optionally, the presetting of the grayscale filtering parameter includes: at least one of a client operating system type, a client operating system version, a client type, a client version, user information, a crowd portrayal, a user city, an operator, and a user device type.
EXAMPLE seven
Fig. 8 is a schematic diagram of a gray scale issuing apparatus according to a seventh embodiment of the present invention. The embodiment is applicable to the case of performing gray-scale publishing on the page of the client, and the device can be implemented in a software and/or hardware manner, and can be configured at the client. The gradation issuing device includes: a page configuration download request sending module 710 and a page rendering display module 720.
The page configuration downloading request sending module 710 is configured to send a page configuration downloading request including the grayscale identification information to the gateway server, so that the gateway server matches the grayscale identification information with the grayscale configuration information, and if the matching is successful, send a page configuration list in which an offline downloading address corresponding to the page is recorded to the client; the gray level identification information comprises a value of a preset gray level filtering parameter determined by the client, and the gray level configuration information comprises a value range of the preset gray level filtering parameter preset aiming at a page of the client;
and the page rendering and displaying module 720 is configured to download the offline resource file from the first server to the local storage unit based on the page configuration list sent by the gateway server, and render and display the page based on the offline resource file in the local storage unit.
According to the technical scheme of the embodiment, the page configuration downloading request containing the gray level identification information is sent to the gateway server, the page configuration list sent by the gateway server when the gray level identification information is successfully matched with the gray level configuration information is received, the offline resource file is downloaded from the first server to the local storage unit based on the page configuration list, and the page is rendered and displayed based on the offline resource file in the local storage unit, so that the purpose of performing gray level publishing on the offline resource file based on the page is achieved, the problem that online gray level publishing needs to be cooperated with an operator is solved, and the controllability of the gray level publishing and the gray level publishing efficiency of the page are improved.
On the basis of the above technical solution, optionally, the apparatus further includes:
the device comprises a page configuration downloading request generating module, a page configuration downloading request generating module and a page configuration downloading request sending module, wherein the page configuration downloading request generating module is used for generating a page configuration downloading request when a page configuration triggering event is detected, and the page configuration triggering event comprises at least one of a page display triggering event, a client starting event and a client front and back switching event.
The gray scale issuing device provided by the embodiment of the invention can be used for executing the gray scale issuing method provided by the sixth embodiment of the invention or the seventh embodiment of the invention, and has corresponding functions and beneficial effects of the executing method.
It should be noted that, in the embodiment of the gray scale publishing device, the included units and modules are only divided according to the functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, the specific names of the functional units are only for the convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
Example eight
Fig. 9 is a schematic structural diagram of an electronic device according to an eighth embodiment of the present invention, where the embodiment of the present invention provides a service for implementing the gray scale distribution method according to the first to third embodiments of the present invention, and the gray scale distribution device according to the sixth embodiment of the present invention may be configured, or the embodiment of the present invention provides a service for implementing the gray scale distribution method according to the fourth embodiment of the present invention, and the gray scale distribution device according to the seventh embodiment of the present invention may be configured.
FIG. 9 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention. The electronic device 12 shown in fig. 9 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 9, electronic device 12 is embodied in the form of a general purpose computing device. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 9, and commonly referred to as a "hard drive"). Although not shown in FIG. 9, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of embodiments of the invention as described.
The processing unit 16 executes various functional applications and data processing, such as implementing the gray scale distribution method provided by the embodiment of the present invention, by running a program stored in the system memory 28.
Through the electronic equipment, the problem of updating the gray configuration information is solved, the page display effect of the client meeting the gray release condition is improved, and the transition efficiency of the page from gray release to full release is improved.
Example nine
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for gray scale publishing, the method including:
when a page configuration downloading request sent by a client is received, acquiring gray level identification information in the page configuration downloading request; the gray identification information comprises values of preset gray filtering parameters determined by the client;
matching the gray level identification information with the gray level configuration information; the gray configuration information comprises a value range of a preset gray filtering parameter preset aiming at a page of the client;
and if the matching is successful, sending the page configuration list recorded with the offline download address corresponding to the page to the client, so that the client downloads the offline resource file from the first server to the local storage unit based on the page configuration list, and renders and displays the page based on the offline resource file in the local storage unit.
Alternatively, the computer executable instructions, when executed by a computer processor, are for performing a method of page display, the method comprising:
sending a page configuration downloading request containing gray level identification information to a gateway server so that the gateway server matches the gray level identification information with the gray level configuration information, and if the matching is successful, sending a page configuration list recorded with an offline downloading address corresponding to a page to a client; the gray level identification information comprises a value of a preset gray level filtering parameter determined by the client, and the gray level configuration information comprises a value range of the preset gray level filtering parameter preset aiming at a page of the client;
and downloading the offline resource file from the first server to a local storage unit based on the page configuration list sent by the gateway server, and rendering and displaying the page based on the offline resource file in the local storage unit.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the above method operations, and may also perform related operations in the gray scale issuing method provided by any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (17)
1. A gray scale issuing method is characterized by comprising the following steps:
when a page configuration downloading request sent by a client is received, acquiring gray identification information in the page configuration downloading request; the gray level identification information comprises a value of a preset gray level filtering parameter determined by the client;
matching the gray scale identification information with gray scale configuration information; the gray configuration information comprises a value range of a preset gray filtering parameter preset aiming at a page of the client;
and if the matching is successful, sending a page configuration list recorded with the offline download address corresponding to the page to the client, so that the client downloads the offline resource file from the first server to a local storage unit based on the page configuration list, and renders and displays the page based on the offline resource file in the local storage unit.
2. The method according to claim 1, wherein before sending the page configuration list recorded with the offline download address corresponding to the page to the client, the method further comprises: acquiring the sent times of the page configuration list;
and comparing the sent times with the maximum access times, and triggering and executing the operation of sending the page configuration list recorded with the offline download address corresponding to the page to the client if the sent times are less than or equal to the maximum allowed access times.
3. The method of claim 2, further comprising:
and if the sent times are larger than the maximum allowed access times, sending the URL address of the uniform resource locator corresponding to the page to the client, so that the client acquires the HTML file of the hypertext markup language on the second server based on the URL address and renders and displays the page based on the HTML file.
4. The method of claim 1, wherein prior to matching the grayscale identification information to grayscale configuration information, the method further comprises:
acquiring the gray configuration information from a data storage server; wherein the grayscale configuration information is written into the data storage server by a third server in advance.
5. The method according to claim 4, wherein the grayscale configuration information is initial grayscale configuration information received by the third server and input by a user, or updated grayscale configuration information obtained by the third server adjusting target grayscale configuration information corresponding to the grayscale test data in existing grayscale configuration information based on the grayscale test data of the page.
6. The method of claim 5, wherein the updated gray configuration information comprises first updated gray configuration information obtained by a third server performing an information modification operation on the target gray configuration information according to the gray test data of the page, or second updated gray configuration information obtained by a third server performing an information addition operation on the target gray configuration information according to the gray test data of the page.
7. The method of claim 6, wherein when the updated gray configuration information is first updated gray configuration information, the method further comprises:
reading target gray configuration information corresponding to the first updated gray configuration information from the data storage server, and matching the gray identification information with the target gray configuration information;
and if the matching is successful, sending the URL address corresponding to the page to the client side so that the client side can acquire an HTML file on the second server based on the URL address and render and display the page based on the HTML file.
8. The method according to any one of claims 1-7, wherein the preset gray scale filtering parameters comprise: at least one of a client operating system type, a client operating system version, a client type, a client version, user information, a crowd portrayal, a user city, an operator, and a user device type.
9. A gray scale issuing method is characterized by comprising the following steps:
sending a page configuration downloading request containing gray level identification information to a gateway server so that the gateway server matches the gray level identification information with the gray level configuration information, and if the matching is successful, sending a page configuration list recorded with an offline downloading address corresponding to the page to a client; the gray level identification information comprises a value of a preset gray level filtering parameter determined by the client, and the gray level configuration information comprises a value range of the preset gray level filtering parameter preset aiming at a page of the client;
and downloading the offline resource file from the first server to a local storage unit based on the page configuration list sent by the gateway server, and rendering and displaying the page based on the offline resource file in the local storage unit.
10. The method of claim 9, further comprising:
and when a page configuration triggering event is detected, generating a page configuration downloading request, wherein the page configuration triggering event comprises at least one of a page display triggering event, a client starting event and a client foreground and background switching event.
11. A gradation issuance system, comprising: the system comprises a gateway server, a client and a first server;
the gateway server is used for acquiring gray level identification information in a page configuration downloading request when the page configuration downloading request is received, matching the gray level identification information with the gray level configuration information, and if the matching is successful, sending a page configuration list recorded with an offline downloading address corresponding to the page to a client; the gray level identification information comprises a value of a preset gray level filtering parameter determined by the client, and the gray level configuration information comprises a value range of the preset gray level filtering parameter preset aiming at a page of the client;
the client is used for sending a page configuration downloading request to the gateway server, downloading the offline resource file from the first server to the local storage unit based on the page configuration list sent by the gateway server, and rendering and displaying the page based on the offline resource file in the local storage unit;
the first server is used for storing the offline resource file of at least one page.
12. The system of claim 11, further comprising a third server and a data storage server; the third server is used for writing the acquired gray configuration information into the data storage server; the data storage server is used for storing the gray configuration information; correspondingly, the gateway server is specifically configured to: and acquiring the gray configuration information from the data storage server.
13. The system of claim 12, wherein the third server is specifically configured to: receiving initial gray configuration information input by a user, and writing the initial gray configuration information into the data storage server; or acquiring gray test data corresponding to the page, adjusting target gray configuration information corresponding to the gray test data in existing gray configuration information based on the gray test data to obtain updated gray configuration information, and writing the updated gray configuration information into the data storage server.
14. A gradation issuance apparatus comprising:
the system comprises a gray scale identification information acquisition module, a gray scale identification information acquisition module and a gray scale identification information acquisition module, wherein the gray scale identification information acquisition module is used for acquiring gray scale identification information in a page configuration downloading request when receiving the page configuration downloading request sent by a client; the gray identification information comprises a value of a preset gray filtering parameter determined by the client;
the gray scale identification information matching module is used for matching the gray scale identification information with gray scale configuration information; the gray configuration information comprises a value range of a preset gray filtering parameter preset aiming at a page of the client;
and the page configuration list sending module is used for sending the page configuration list recorded with the offline download address corresponding to the page to the client if the matching is successful, so that the client downloads the offline resource file from the first server to the local storage unit based on the page configuration list, and renders and displays the page based on the offline resource file in the local storage unit.
15. A gradation issuance apparatus comprising:
a page configuration downloading request sending module, configured to send a page configuration downloading request including gray level identification information to a gateway server, so that the gateway server matches the gray level identification information with the gray level configuration information, and if the matching is successful, send a page configuration list in which an offline downloading address corresponding to the page is recorded to a client; the gray level identification information comprises a value of a preset gray level filtering parameter determined by the client, and the gray level configuration information comprises a value range of the preset gray level filtering parameter preset aiming at a page of the client;
and the page rendering and displaying module is used for downloading the offline resource file from the first server to the local storage unit based on the page configuration list sent by the gateway server, and rendering and displaying the page based on the offline resource file in the local storage unit.
16. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the gray scale publishing method of any of claims 1-8 or 9-10.
17. A storage medium containing computer-executable instructions for performing the gray scale publishing method of any one of claims 1-8 or 9-10 when executed by a computer processor.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011585155.8A CN114697304B (en) | 2020-12-28 | 2020-12-28 | Gray release method, system, device, equipment and storage medium |
PCT/CN2021/120918 WO2022142536A1 (en) | 2020-12-28 | 2021-09-27 | Grayscale publishing method, system and apparatus, and device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011585155.8A CN114697304B (en) | 2020-12-28 | 2020-12-28 | Gray release method, system, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114697304A true CN114697304A (en) | 2022-07-01 |
CN114697304B CN114697304B (en) | 2023-12-01 |
Family
ID=82130442
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011585155.8A Active CN114697304B (en) | 2020-12-28 | 2020-12-28 | Gray release method, system, device, equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114697304B (en) |
WO (1) | WO2022142536A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115714706A (en) * | 2022-10-26 | 2023-02-24 | 北京永辉科技有限公司 | Access acceleration system and method based on embedded H5, storage medium and electronic equipment |
CN117032991B (en) * | 2023-10-08 | 2024-01-26 | 宁波银行股份有限公司 | Gray scale publishing method, device and system |
CN117714459B (en) * | 2023-12-28 | 2024-06-07 | 北京领雁科技股份有限公司 | Dynamic gray scale service release system, method, equipment and computer medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105404582A (en) * | 2015-10-26 | 2016-03-16 | 努比亚技术有限公司 | Application improvement verification method and system |
CN109376322A (en) * | 2018-09-07 | 2019-02-22 | 平安科技(深圳)有限公司 | A kind of grayscale version page access method, apparatus, computer equipment and computer storage medium |
CN109857403A (en) * | 2018-12-05 | 2019-06-07 | 腾讯科技(深圳)有限公司 | A kind of renewal of the page, page processing method and device |
WO2019128205A1 (en) * | 2017-12-29 | 2019-07-04 | 中兴通讯股份有限公司 | Method and device for achieving grayscale publishing, computing node and system |
CN111290779A (en) * | 2020-03-04 | 2020-06-16 | 北京三快在线科技有限公司 | Gray scale distribution method, device, storage medium and electronic equipment |
CN111913738A (en) * | 2020-08-19 | 2020-11-10 | 工银科技有限公司 | Access request processing method, device, computing equipment and medium |
-
2020
- 2020-12-28 CN CN202011585155.8A patent/CN114697304B/en active Active
-
2021
- 2021-09-27 WO PCT/CN2021/120918 patent/WO2022142536A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105404582A (en) * | 2015-10-26 | 2016-03-16 | 努比亚技术有限公司 | Application improvement verification method and system |
WO2019128205A1 (en) * | 2017-12-29 | 2019-07-04 | 中兴通讯股份有限公司 | Method and device for achieving grayscale publishing, computing node and system |
CN109376322A (en) * | 2018-09-07 | 2019-02-22 | 平安科技(深圳)有限公司 | A kind of grayscale version page access method, apparatus, computer equipment and computer storage medium |
CN109857403A (en) * | 2018-12-05 | 2019-06-07 | 腾讯科技(深圳)有限公司 | A kind of renewal of the page, page processing method and device |
CN111290779A (en) * | 2020-03-04 | 2020-06-16 | 北京三快在线科技有限公司 | Gray scale distribution method, device, storage medium and electronic equipment |
CN111913738A (en) * | 2020-08-19 | 2020-11-10 | 工银科技有限公司 | Access request processing method, device, computing equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
WO2022142536A1 (en) | 2022-07-07 |
CN114697304B (en) | 2023-12-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10649826B2 (en) | Flexible scripting platform for troubleshooting | |
CN114697304B (en) | Gray release method, system, device, equipment and storage medium | |
CN112612977B (en) | Page display method, system, device, equipment and storage medium | |
CN107665303A (en) | By sandbox from retrieved web content | |
CN113094136A (en) | Page display control method and device, storage medium and electronic equipment | |
CN109684008B (en) | Card rendering method, device, terminal and computer readable storage medium | |
CN110888838A (en) | Object storage based request processing method, device, equipment and storage medium | |
US20180032384A1 (en) | Secure script execution using sandboxed environments | |
US11356433B2 (en) | System and method for detecting unauthorized activity at an electronic device | |
CN113568626B (en) | Dynamic packaging and application package opening method and device and electronic equipment | |
CN114564922A (en) | Document editing method and device, computer equipment and storage medium | |
CN110414989A (en) | Method for detecting abnormality and device, electronic equipment and computer readable storage medium | |
CN112153582B (en) | Verification code short message display method and device | |
US20220245208A1 (en) | Method for switching skin of mini-program page, and electronic device | |
CN109522683B (en) | Software tracing method, system, computer equipment and storage medium | |
CN111107133A (en) | Generation method of difference packet, data updating method, device and storage medium | |
CN105743890B (en) | Authority information generation method and device | |
CN110674426B (en) | Webpage behavior reporting method and device | |
CN116776911A (en) | Service page access method, device, equipment and storage medium based on two-dimension code | |
CN110704777A (en) | Method and system for implementing gray scale publishing | |
CN115603982A (en) | Vehicle-mounted terminal security authentication method and device, electronic equipment and storage medium | |
CN113342450B (en) | Page processing method, device, electronic equipment and computer readable medium | |
CN115080147A (en) | H5 page loading method, device, equipment and medium based on artificial intelligence | |
CN113449167A (en) | Data acquisition abnormity detection method and device, electronic equipment and readable storage medium | |
CN111400623B (en) | Method and device for searching information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |