A grayscale release system

By designing a grayscale publishing system, the problem of difficulty in switching web scenes and states in the existing technology is solved, diversified management and secure distribution of web page content are realized, and the security and response speed of the system are improved.

CN117834183BActive Publication Date: 2025-08-08BEIJING DONGWO DIGITAL TECH CO LTD

Patent Information

Application Number
CN202311578858.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-23
Publication Date
2025-08-08
Estimated Expiration
2043-11-23

AI Technical Summary

Technical Problem

The existing grayscale management system cannot switch web scenes and web page status, has a small scope of application and lacks diverse options, so it cannot effectively manage the secure distribution of web page content.

Method used

A grayscale publishing system is designed, including a web content acquisition unit, a user management unit, a web management unit and a distribution unit. The web scene and state are switched through user verification information, multi-level caching is used to improve the response speed, and the system security is ensured through encryption verification functions.

Benefits of technology

It realizes diversified management of web page content, improves the security and response speed of the system, supports grayscale and whitelist modes, and enhances the system's carrying capacity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117834183B_ABST
    Figure CN117834183B_ABST
Patent Text Reader

Abstract

The present invention discloses a grayscale publishing system, belonging to the field of grayscale distribution technology, comprising a webpage content acquisition unit, a user management unit, a webpage management unit, and a distribution unit. The webpage content acquisition unit is used to acquire HTML content; the user management unit is used to log in and verify a user ID, and generate corresponding user verification information for the verified user ID; the webpage management unit is used to switch webpage scenes and webpage states based on the user verification information; and the distribution unit is used to refresh the webpage according to the switched webpage scenes and webpage states, receive HTML content, and distribute the content. The present invention can fully verify user login information, ensuring system security and encrypted data transmission to prevent leakage. The system can switch webpage scenes and webpage states, covering a wider range and providing more options, including grayscale and whitelist modes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of grayscale distribution, and in particular relates to a grayscale publishing system. Background Art

[0002] There are many grayscale management methods available on the market, most of which only target a single web page or feature. For example, some systems require each page to be individually configured for management before it takes effect. Once enabled, the single configuration is distributed to users who haven't undergone security verification. Furthermore, these systems have a narrow scope of application, with no ability to switch between web scenes or states, and no extensive options. Summary of the Invention

[0003] In order to solve the above problems, the present invention proposes a grayscale release system.

[0004] The technical solution of the present invention is: a grayscale publishing system includes a web content acquisition unit, a user management unit, a web page management unit and a distribution unit;

[0005] The web page content acquisition unit is used to acquire HTML content;

[0006] The user management unit is used to log in and verify the user ID, and generate corresponding user verification information for the verified user ID;

[0007] The web page management unit is used to switch the web page scene and web page status according to the user verification information;

[0008] The distribution unit is used to refresh the web page according to the switched web page scene and web page status, and receive HTML content to distribute the content.

[0009] In the present invention, the web page content acquisition unit can adopt different HTML content uploading methods according to different usage scenarios, which can be divided into default upload mode (upload + storage), automatic distribution mode (upload + storage + publication) and grayscale upload mode (upload + storage + grayscale distribution).

[0010] The web management unit uses VUE to build front-end pages and leverages data binding to quickly integrate events into the page DOM. The back-end interface utilizes KOA's automatic routing, with three interfaces: edit, delete, and change status. User operations enable switching between grayscale and whitelisted website usage scenarios. Switching website status also allows for real-time changes to the current, effective website content and notifies the distribution module to refresh the cache.

[0011] The user management unit primarily manages information about the currently logged-in user. All user data is stored in MySQL. When a user logs in, the user ID and password are used to determine whether the login is successful. If the login is successful, user verification information is generated using the username and timestamp format and returned to the page. If the login fails, the VUE routing guard function proactively adjusts the current page routing stack, redirecting the page to the login page and clearing the previous login information.

[0012] The distribution unit is responsible for storing the active URL in a hashed cache. Each time a user requests the main interface, it matches the cached HTML code with the domain name corresponding to the host, based on the current cached content. Finally, it searches for the currently active grayscale configuration. If a grayscale configuration matches, the grayscale content is returned; otherwise, the default content is returned.

[0013] In addition, the system also has a local cache function. All hot data is cached locally, taking advantage of multi-level cache to improve the overall response speed.

[0014] Furthermore, the user management unit generates corresponding user verification information for the verified user ID, including the following steps:

[0015] Obtain user login information; wherein the user login information includes user ID and user login password;

[0016] Obtain the user standard password corresponding to the user ID, verify the user login password and the user standard password, and log in to the webpage after the verification is passed;

[0017] After the user logs in to the webpage, corresponding user verification information is generated for the user ID.

[0018] The beneficial effect of the above further scheme is: in the present invention, each user ID has a correct password set in advance (i.e., the user's standard password), which can be compared with the user's login password; using the hash value to verify the standard password and the login password can protect the user's information security, and can also verify the integrity of the data, prevent the user's password from being tampered with, and improve the system security.

[0019] Furthermore, the specific method for verifying the user login password and the user standard password is: constructing an encryption verification function, inputting the user login password and the user standard password into the encryption verification function, and generating an encryption verification value; if the encryption verification value is greater than the set encryption verification threshold, the verification passes, otherwise the verification fails.

[0020] Furthermore, the expression of the encryption verification function F is:

[0021]

[0022] Where h n Indicates the hash value corresponding to the nth digit in the user login password, N represents the number of digits in the user login password, H m Indicates the hash value corresponding to the mth digit in the user's standard password, M represents the number of digits in the user's standard password, k n Indicates the nth digit of the user's login password, K m Indicates the mth digit of the user's standard password, and e represents the exponent.

[0023] Furthermore, a specific method for generating corresponding user verification information for a user ID is: using the user ID and a timestamp as the user verification information.

[0024] Furthermore, the webpage management unit switches the webpage scene including the following steps:

[0025] Parse the timestamp of the user verification information and generate a random time number;

[0026] Parse the user ID of the user verification information and generate a random identity number;

[0027] Generate an encrypted random number based on the time random number and the identity random number;

[0028] Complete the web page scene switching based on the time random number, identity random number and encryption random number.

[0029] The beneficial effect of the above further solution is that: in the present invention, the web page scene is determined according to the user verification information, so that the web page scene is more in line with the user's own needs and more practical.

[0030] Furthermore, the calculation formula of the time random number S1 is:

[0031]

[0032] Where T represents the length of the timestamp;

[0033] The calculation formula of identity random number S2 is:

[0034]

[0035] Where, e represents the exponent, P k Indicates the kth digit of the user ID, J k represents the sum of all bits in binary form corresponding to the kth digit in the user ID;

[0036] The calculation formula of the encrypted random number S3 is:

[0037]

[0038] Where mod(·) represents the remainder function.

[0039] Furthermore, the specific method for completing the web page scene switching is: if the mean between the time random number and the identity random number is less than or equal to the encrypted random number, the web page scene is a grayscale scene; if the mean between the time random number and the identity random number is greater than the encrypted random number, the web page scene is a whitelist scene.

[0040] Furthermore, the webpage management unit switches the webpage state in a specific method as follows: obtaining the time points of the user's current touch operation and historical touch operations on the webpage; determining a webpage state switching interval threshold based on the time points of the current touch operation and historical touch operations, and switching the webpage state within the webpage state switching interval threshold;

[0041] The calculation formula of the webpage state switching interval threshold T0 is:

[0042]

[0043] Wherein, t represents the time point of the current touch operation, t1 represents the time point of the previous touch operation, and t0 represents the time point of the initial touch operation.

[0044] The beneficial effect of the above further solution is: in the present invention, the interval for switching the web page state is determined according to the time interval of the user's touch operation on the web page, so that the web page can quickly complete the state switching according to the user's touch operation, thereby improving the user experience.

[0045] Furthermore, the content distribution performed by the distribution unit includes the following steps:

[0046] Refresh the web page according to the switched web page scene and web page status;

[0047] Utilize the refreshed web page to receive HTML content and match the corresponding HTML code;

[0048] Use HTML code to search the web page to see if there is a valid grayscale configuration. If so, content distribution will be carried out, otherwise not.

[0049] The beneficial effect of the above further solution is as follows: In the present invention, HTML, as a markup language, includes a series of tags that can unify the format of documents on the Internet and connect scattered Internet resources into a logical whole. The present invention constructs a text processing model to preprocess HTML content and matches the preprocessed HTML content with the corresponding HMTL code.

[0050] The text processing model consists of a sequentially connected content input layer, a content processing layer, and a content output layer. The content input layer is used to input HTML content into the text processing model, the content processing layer is used to preprocess the HTML content, and the content output layer is used to output the preprocessed HTML content. The content processing layer contains several sequentially connected convolutional layers.

[0051] The expression of the content processing layer is:

[0052]

[0053]

[0054] Where G represents the output of the content processing layer, β q denotes the output of the qth convolutional layer, c denotes a constant, log(·) denotes a logarithmic function, Q denotes the number of convolutional layers, αq denotes the size of the convolution kernel in the qth convolutional layer, σq denotes the step size of the convolution kernel in the qth convolutional layer, γq denotes the weight of the qth convolutional layer, and C denotes the learning rate of the content processing layer.

[0055] The beneficial effects of the present invention are: the present invention discloses a grayscale publishing system, which can fully verify user login information, ensure the security of the system and encrypted transmission of data to prevent leakage; the system can switch web page scenes and web page states, which covers a wider range, provides more options, and provides grayscale and whitelist modes; in addition, the system can complete content distribution, ensure information diversity, and improve the carrying capacity of the overall system. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 This is a structural diagram of the grayscale release system. DETAILED DESCRIPTION

[0057] The embodiments of the present invention will be further described below with reference to the accompanying drawings.

[0058] Hereinafter, the terms "first," "second," and the like are used to distinguish between similar elements and are not necessarily used to describe a particular order or chronological sequence. It is to be understood that these terms used in this manner are interchangeable where appropriate. Similarly, if a method described herein comprises a series of steps, the order in which the steps are presented herein is not necessarily the only order in which the steps may be performed, and some of the steps described may be omitted and / or other steps not described herein may be added to the method.

[0059] like Figure 1 As shown, the present invention provides a grayscale publishing system, including a webpage content acquisition unit, a user management unit, a webpage management unit and a distribution unit;

[0060] The web page content acquisition unit is used to acquire HTML content;

[0061] The user management unit is used to log in and verify the user ID, and generate corresponding user verification information for the verified user ID;

[0062] The web page management unit is used to switch the web page scene and web page status according to the user verification information;

[0063] The distribution unit is used to refresh the web page according to the switched web page scene and web page status, and receive HTML content to distribute the content.

[0064] In the present invention, the web page content acquisition unit can adopt different HTML content uploading methods according to different usage scenarios, which can be divided into default upload mode (upload + storage), automatic distribution mode (upload + storage + publication) and grayscale upload mode (upload + storage + grayscale distribution).

[0065] The web management unit uses VUE to build front-end pages and leverages data binding to quickly integrate events into the page DOM. The back-end interface utilizes KOA's automatic routing, with three interfaces: edit, delete, and change status. User operations enable switching between grayscale and whitelisted website usage scenarios. Switching website status also allows for real-time changes to the current, effective website content and notifies the distribution module to refresh the cache.

[0066] The user management unit primarily manages information about the currently logged-in user. All user data is stored in MySQL. When a user logs in, the user ID and password are used to determine whether the login is successful. If the login is successful, user verification information is generated using the username and timestamp format and returned to the page. If the login fails, the VUE routing guard function proactively adjusts the current page routing stack, redirecting the page to the login page and clearing the previous login information.

[0067] The distribution unit is responsible for storing the active URL in a hashed cache. Each time a user requests the main interface, it matches the cached HTML code with the domain name corresponding to the host, based on the current cached content. Finally, it searches for the currently active grayscale configuration. If a grayscale configuration matches, the grayscale content is returned; otherwise, the default content is returned.

[0068] In addition, the system also has a local cache function. All hot data is cached locally, taking advantage of multi-level cache to improve the overall response speed.

[0069] In an embodiment of the present invention, the user management unit generates corresponding user verification information for the verified user ID, including the following steps:

[0070] Obtain user login information; wherein the user login information includes user ID and user login password;

[0071] Obtain the user standard password corresponding to the user ID, verify the user login password and the user standard password, and log in to the webpage after the verification is passed;

[0072] After the user logs in to the webpage, corresponding user verification information is generated for the user ID.

[0073] In the present invention, each user ID has a correct password set in advance (i.e., the user's standard password), which can be compared with the user's login password; using the hash value to verify the standard password and login password can protect the user's information security, verify the integrity of the data, prevent the user's password from being tampered with, and improve the system security.

[0074] In an embodiment of the present invention, the specific method for verifying the user login password and the user standard password is: constructing an encryption verification function, inputting the user login password and the user standard password into the encryption verification function, and generating an encryption verification value; if the encryption verification value is greater than the set encryption verification threshold, the verification is passed, otherwise the verification fails.

[0075] In the embodiment of the present invention, the expression of the encryption verification function F is:

[0076]

[0077] Where h n Indicates the hash value corresponding to the nth digit in the user login password, N represents the number of digits in the user login password, H m Indicates the hash value corresponding to the mth digit in the user's standard password, M represents the number of digits in the user's standard password, k n Indicates the nth digit of the user's login password, K m Indicates the mth digit of the user's standard password, and e represents the exponent.

[0078] In the embodiment of the present invention, a specific method for generating corresponding user verification information for a user ID is: using the user ID and a timestamp as the user verification information.

[0079] In an embodiment of the present invention, the webpage management unit switches the webpage scene including the following steps:

[0080] Parse the timestamp of the user verification information and generate a random time number;

[0081] Parse the user ID of the user verification information and generate a random identity number;

[0082] Generate an encrypted random number based on the time random number and the identity random number;

[0083] Complete the web page scene switching based on the time random number, identity random number and encryption random number.

[0084] In the present invention, the web page scene is determined according to the user verification information, so that the web page scene is more in line with the user's own needs and more practical.

[0085] In the embodiment of the present invention, the calculation formula of the time random number S1 is:

[0086]

[0087] Where T represents the length of the timestamp;

[0088] The calculation formula of identity random number S2 is:

[0089]

[0090] Where, e represents the exponent, P k Indicates the kth digit of the user ID, J k represents the sum of all bits in binary form corresponding to the kth digit in the user ID;

[0091] The calculation formula of the encrypted random number S3 is:

[0092]

[0093] Where mod(·) represents the remainder function.

[0094] In an embodiment of the present invention, the specific method for completing the web page scene switching is: if the mean value between the time random number and the identity random number is less than or equal to the encrypted random number, the web page scene is a grayscale scene; if the mean value between the time random number and the identity random number is greater than the encrypted random number, the web page scene is a whitelist scene.

[0095] In an embodiment of the present invention, the webpage management unit switches the webpage state in a specific method as follows: obtaining the time points of the user's current touch operation and historical touch operations on the webpage; determining a webpage state switching interval threshold based on the time points of the current touch operation and historical touch operations, and switching the webpage state within the webpage state switching interval threshold;

[0096] The calculation formula of the webpage state switching interval threshold T0 is:

[0097]

[0098] Wherein, t represents the time point of the current touch operation, t1 represents the time point of the previous touch operation, and t0 represents the time point of the initial touch operation.

[0099] In the present invention, the interval for switching webpage states is determined according to the time interval of the user's touch operation on the webpage, so that the webpage can quickly complete the state switching according to the user's touch operation, thereby improving the user experience.

[0100] In an embodiment of the present invention, the content distribution performed by the distribution unit includes the following steps:

[0101] Refresh the web page according to the switched web page scene and web page status;

[0102] Utilize the refreshed web page to receive HTML content and match the corresponding HTML code;

[0103] Use HTML code to search the web page to see if there is a valid grayscale configuration. If so, content distribution will be carried out, otherwise not.

[0104] In the present invention, HTML is a markup language that includes a series of tags. Through these tags, the document format on the network can be unified, connecting scattered Internet resources into a logical whole. The present invention pre-processes HTML content by constructing a text processing model, and matches the pre-processed HTML content with the corresponding HMTL code.

[0105] The text processing model consists of a sequentially connected content input layer, a content processing layer, and a content output layer. The content input layer is used to input HTML content into the text processing model, the content processing layer is used to preprocess the HTML content, and the content output layer is used to output the preprocessed HTML content. The content processing layer contains several sequentially connected convolutional layers.

[0106] The expression of the content processing layer is:

[0107]

[0108]

[0109] Where G represents the output of the content processing layer, β q denotes the output of the qth convolutional layer, c denotes a constant, log(·) denotes a logarithmic function, Q denotes the number of convolutional layers, αq denotes the size of the convolution kernel in the qth convolutional layer, σq denotes the step size of the convolution kernel in the qth convolutional layer, γq denotes the weight of the qth convolutional layer, and C denotes the learning rate of the content processing layer.

[0110] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and it should be understood that the scope of protection of the present invention is not limited to such specific descriptions and embodiments. Those skilled in the art can make various other specific variations and combinations based on the technical teachings disclosed in the present invention without departing from the essence of the present invention, and such variations and combinations are still within the scope of protection of the present invention.

Claims

1. A grayscale release system, characterized in that: It includes a web page content acquisition unit, a user management unit, a web page management unit and a distribution unit; The webpage content acquisition unit is used to acquire HTML content; The user management unit is used to log in and verify the user ID, and generate corresponding user verification information for the verified user ID; The web page management unit is used to switch the web page scene and web page status according to the user verification information; The distribution unit is used to refresh the web page according to the switched web page scene and web page status, and receive HTML content to distribute the content; The webpage management unit switches the webpage scene including the following steps: Parse the timestamp of the user verification information and generate a random time number; Parse the user ID of the user verification information and generate a random identity number; Generate an encrypted random number based on the time random number and the identity random number; Complete web page scene switching based on time random number, identity random number and encryption random number; The specific method for completing the webpage scene switching is as follows: if the mean value between the time random number and the identity random number is less than or equal to the encrypted random number, the webpage scene is a grayscale scene; if the mean value between the time random number and the identity random number is greater than the encrypted random number, the webpage scene is a whitelist scene; The webpage management unit switches the webpage state in a specific method comprising: obtaining the time points of the user's current touch operation and historical touch operations on the webpage; determining a webpage state switching interval threshold based on the time points of the current touch operation and historical touch operations, and switching the webpage state within the webpage state switching interval threshold; The calculation formula of the webpage state switching interval threshold T0 is: Wherein, t represents the time point of the current touch operation, t1 represents the time point of the previous touch operation, and t0 represents the time point of the initial touch operation.

2. The phased release system according to claim 1, characterized in that: The user management unit generates corresponding user verification information for the verified user ID, including the following steps: Obtain user login information; wherein, user login information includes user ID and user login password; Obtain the user standard password corresponding to the user ID, verify the user login password and the user standard password, and log in to the webpage after the verification is passed; After the user logs in to the webpage, corresponding user verification information is generated for the user ID.

3. The phased release system according to claim 2, characterized in that: The specific method for verifying the user login password and the user standard password is: constructing an encryption verification function, inputting the user login password and the user standard password into the encryption verification function, and generating an encryption verification value; if the encryption verification value is greater than the set encryption verification threshold, the verification passes, otherwise the verification fails.

4. The phased release system according to claim 3, characterized in that: The expression of the encryption verification function F is: Where h n Indicates the hash value corresponding to the nth digit in the user login password, N represents the number of digits in the user login password, H m represents the hash value corresponding to the mth digit in the user's standard password, M represents the number of digits in the user's standard password, k n Indicates the nth digit of the user's login password, K m Indicates the mth digit of the user's standard password, and e represents the exponent.

5. The phased release system according to claim 2, characterized in that: The specific method of generating the corresponding user verification information for the user ID is: using the user ID and timestamp as the user verification information.

6. The phased release system according to claim 1, characterized in that: The calculation formula of the time random number S1 is: Where T represents the length of the timestamp; The calculation formula of the identity random number S2 is: Where, e represents the exponent, P k Indicates the kth digit of the user ID, J k represents the sum of all bits in binary form corresponding to the kth digit in the user ID; The calculation formula of the encrypted random number S3 is: Where mod(·) represents the remainder function.

7. The phased release system according to claim 1, characterized in that: The content distribution performed by the distribution unit includes the following steps: Refresh the web page according to the switched web page scene and web page status; Utilize the refreshed web page to receive HTML content and match the corresponding HTML code; Use HTML code to search the web page to see if there is a valid grayscale configuration. If so, content distribution will be carried out, otherwise not.

Citation Information

Patent Citations

  • Gray release method and device, storage medium and electronic equipment

    CN110286941A

  • Gateway-based gray release method and device, electronic equipment and storage medium

    CN112506559A

Cited By

  • Industrial manufacturing system gray release method based on dynamic routing and flow scheduling

    CN121309679A