Festival and holiday atmosphere automatic adjusting method and device, equipment and storage medium

By automatically identifying holidays and replacing the color of the page functional area, the timeliness and insufficient coverage caused by manual operations in the prior art are solved, and timely updates of holiday atmosphere and user experience are achieved.

CN119201323APending Publication Date: 2024-12-27CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411362770.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

In the prior art, the adjustment of holiday atmosphere relies on manual operations, resulting in timeliness and insufficient coverage, which cannot be updated in time and ensure user experience, especially in large-scale users and diversified application scenarios, which are difficult to achieve automated management.

Method used

By identifying the date of the day, obtaining the holiday atmosphere color configuration, comparing the current color of the page function area with the holiday atmosphere color, automatically replacing the color value whose difference exceeds the allowable range, and adjusting the strategy when the abnormal cumulative reaches the threshold to ensure timely update and accuracy of the atmosphere sex.

Benefits of technology

It realizes automatic and timely switching of holiday atmospheres, improves interface update efficiency and user experience, reduces dependence on operation personnel, and ensures the accuracy and comprehensive coverage of color updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119201323A_ABST
    Figure CN119201323A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of user interface automatic adjustment and the field of financial science and technology, and discloses a holiday atmosphere automatic adjustment method, which comprises the following steps: identifying the date of the day, determining whether the day is a holiday or not, and obtaining holiday atmosphere color configuration of the corresponding holiday, including RGB values and allowable error ranges of holiday atmosphere colors; and identifying the current color of each functional area in the page, and extracting the RGB values of the functional areas. And comparing the current RGB value of each functional area with the RGB value of the atmosphere color of the holiday and festival, and judging whether the RGB value is within an allowable error range or not. And when the comparison result does not meet the requirement, selecting the RGB value of the holiday atmosphere color to replace the current RGB value of the functional area. According to the method, timely switching of holiday and festival atmospheres can be automatically realized, the problem of timeliness caused by dependence on manual operation is avoided, the interface updating efficiency and the user experience are improved, meanwhile, the dependence on operation personnel is reduced, and the accuracy and comprehensive coverage of color updating of each functional region are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automatic user interface adjustment and the field of financial technology, and in particular to a method, device, equipment and storage medium for automatic adjustment of holiday atmosphere. Background Art

[0002] In the existing technology, mobile Internet apps cover multiple categories such as financial management, live streaming, travel services, short videos, shopping, social networking, instant messaging, etc. Each app usually adopts a unique color design to match its brand image and user experience. However, during important holidays (such as the Spring Festival, National Day, New Year's Day, Qingming Festival, Dragon Boat Festival, etc.), the app usually needs to adjust the overall main color to enhance the holiday atmosphere. It is common practice for operators to manually configure new UI materials during holidays to ensure that users can feel the holiday atmosphere when using the app.

[0003] This manual operation method has significant shortcomings. First, reliance on manual operation can easily lead to timeliness issues, and it is impossible to ensure that materials are updated in time on holidays. Secondly, because the configuration effect of materials depends on manual judgment, the holiday atmosphere effect may be insufficient, and the user experience cannot be predicted and guaranteed. In addition, manual configuration methods are difficult to fully cover all users, especially users of old versions of APP may not be able to enjoy the updated holiday atmosphere in time. This method that relies on manual operation by operators lacks flexibility and automated management, and it is difficult to adapt to large-scale user needs and diverse application scenarios.

[0004] The limitations of this existing technology show that there is a need to improve efficiency, optimize user experience and achieve automated processing in response to the dynamic adjustments of the holiday atmosphere. Summary of the invention

[0005] The main purpose of the present invention is to provide a method, device, equipment and storage medium for automatic adjustment of holiday atmosphere, aiming to solve how to achieve real-time adjustment of holiday atmosphere color in an automated manner, avoiding the technical problems of timeliness and insufficient coverage caused by relying on manual configuration in the prior art.

[0006] To achieve the above object, the present invention provides a method for automatically adjusting holiday atmosphere, comprising:

[0007] Identify today’s date and confirm whether it is a holiday;

[0008] When it is confirmed that the day is a holiday, a holiday atmosphere color configuration corresponding to the holiday is obtained, wherein the holiday atmosphere color configuration includes an RGB value of the holiday atmosphere color and an allowable error range;

[0009] Identify and obtain the current color of each functional area within the page, and extract the current RGB value of each functional area;

[0010] Compare the current RGB value of each functional area with the RGB value of the holiday atmosphere color to determine whether the comparison result is within the allowable error range;

[0011] When the comparison result is not within the allowable error range, an RGB value that matches the holiday atmosphere color is selected to replace the current RGB value of the functional area.

[0012] In one embodiment, selecting an RGB value that matches the holiday atmosphere color to replace the current RGB value of the functional area includes:

[0013] If the current RGB value of the functional area is not replaced successfully, the abnormal information that occurs during the color replacement process is recorded, and the number of abnormalities is accumulated one by one;

[0014] If the cumulative number of abnormalities reaches a preset threshold, a warning message is sent;

[0015] Adjust the holiday atmosphere strategy based on the warning information, and update the holiday atmosphere color configuration;

[0016] Re-execute the current RGB value replacement operation of the functional area according to the updated holiday atmosphere color configuration.

[0017] In one embodiment, if the accumulated number of abnormalities reaches a preset threshold, the method further includes:

[0018] Acquire an atmosphere backup plan corresponding to a holiday, wherein the atmosphere backup plan includes a backup RGB value for replacement and a backup error range;

[0019] According to the backup RGB value and the backup error range, the current RGB value of each functional area is compared to determine whether it meets the atmosphere backup plan;

[0020] If the current RGB value of the functional area does not conform to the atmosphere backup solution, the current RGB value of the functional area is replaced by the backup RGB value;

[0021] If the current RGB value of the functional area is not replaced successfully, an error report is generated and the adjustment of the holiday atmosphere strategy is triggered.

[0022] In one embodiment, identifying today's date and confirming whether today is a holiday includes:

[0023] Get the current date data of the day by calling the system time interface or through the online API;

[0024] According to the current date data, query a holiday database, wherein the holiday database includes a date range of multiple holidays;

[0025] Compare the current date data with the date range of holidays in the holiday database to determine whether the current date data falls within the date range of holidays;

[0026] If the current date falls within the holiday date range, then that day is confirmed as a holiday.

[0027] In one embodiment, identifying and obtaining the current color of each functional area in the page, and extracting the current RGB value of each functional area, includes:

[0028] Scan the page through the API provided by the page rendering engine or UI framework, identify and mark all visible functional areas on the page, and assign a unique identifier to each functional area;

[0029] Extract the display color information of each identified functional area through the color extraction interface of the application framework;

[0030] If the display color information of the functional area includes a transparency channel, the transparency channel is removed and only the RGB value is retained;

[0031] The RGB value of each functional area is associated with the corresponding unique identifier, and the RGB value of the functional area is stored in a cache or a designated storage area.

[0032] In one embodiment, comparing the current RGB value of each functional area with the RGB value of the holiday atmosphere color, and determining whether the comparison result is within the allowable error range, includes:

[0033] Decompose the current RGB value of each functional area and the RGB value of the holiday atmosphere color into independent values ​​of red, green and blue channels respectively;

[0034] Extracting independent error ranges of red, green and blue channels respectively from the allowable error range;

[0035] Compare the independent values ​​of the red, green and blue channels in the RGB values ​​of the functional areas and holiday atmosphere colors to determine whether the difference values ​​of each color channel are within the corresponding independent error range;

[0036] If the difference values ​​of all color channels are within the corresponding independent error ranges, then the comparison result is determined to be within the allowable error range;

[0037] If the difference value of any color channel exceeds the corresponding independent error range, it is determined that the comparison result is not within the allowable error range.

[0038] In one embodiment, when it is confirmed that the current day is a holiday, obtaining the holiday atmosphere color configuration corresponding to the holiday includes:

[0039] When it is confirmed that the current day is a holiday, the corresponding holiday type is identified from the holiday database according to the current day's date;

[0040] Generate a query condition based on the holiday type, and query the holiday atmosphere color configuration corresponding to the holiday type by calling a local file interface or a database query interface;

[0041] If the holiday atmosphere color configuration corresponding to the holiday type cannot be successfully queried, the default color configuration is called as the holiday atmosphere color configuration, and a color configuration missing report is generated.

[0042] Furthermore, to achieve the above-mentioned purpose, the present invention also provides a holiday atmosphere automatic adjustment device, which includes a memory, a processor, and a holiday atmosphere automatic adjustment program stored in the memory and executable on the processor, and the holiday atmosphere automatic adjustment program, when executed by the processor, implements the steps of the holiday atmosphere automatic adjustment method as described above.

[0043] Furthermore, to achieve the above-mentioned purpose, the present invention also provides a computer storage medium, on which is stored a holiday atmosphere automatic adjustment program, and when the holiday atmosphere automatic adjustment program is executed by a processor, the steps of the holiday atmosphere automatic adjustment method described above are implemented.

[0044] Beneficial effects: The present invention relates to a method for automatically adjusting holiday atmosphere, which identifies the date of the day, confirms whether the day is a holiday, obtains the holiday atmosphere color configuration corresponding to the holiday, including the RGB value of the holiday atmosphere color and the allowable error range, identifies the current color of each functional area in the page, and extracts the RGB value of the functional area. By comparing the current RGB value of each functional area with the RGB value of the holiday atmosphere color, it is determined whether it is within the allowable error range. When the comparison result does not meet the requirements, the RGB value of the holiday atmosphere color is selected to replace the current RGB value of the functional area. The present invention can automatically realize the timely switching of holiday atmosphere, avoids the timeliness problem caused by relying on manual operation in the prior art, improves the efficiency of interface updates and user experience, and reduces the dependence on operators, ensuring the accuracy and comprehensive coverage of color updates in each functional area. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:

[0046] Figure 1It is a flow chart of an embodiment of a method for automatically adjusting holiday atmosphere of the present invention;

[0047] Figure 2 This is a functional module diagram of a preferred embodiment of the holiday atmosphere automatic adjustment device of the present invention;

[0048] Figure 3 It is a structural schematic diagram of the device hardware operating environment involved in the embodiment of the holiday atmosphere automatic adjustment device of the present invention. DETAILED DESCRIPTION

[0049] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0050] In the existing technology, mobile Internet apps cover multiple categories such as financial management, live streaming, travel services, short videos, shopping, social networking, instant messaging, etc. Each app usually adopts a unique color design to match its brand image and user experience. However, during important holidays (such as the Spring Festival, National Day, New Year's Day, Qingming Festival, Dragon Boat Festival, etc.), the app usually needs to adjust the overall main color to enhance the holiday atmosphere. It is common practice for operators to manually configure new UI materials during holidays to ensure that users can feel the holiday atmosphere when using the app.

[0051] This manual operation method has significant shortcomings. First, reliance on manual operation can easily lead to timeliness issues, and it is impossible to ensure that materials are updated in time on holidays. Secondly, because the configuration effect of materials depends on manual judgment, the holiday atmosphere effect may be insufficient, and the user experience cannot be predicted and guaranteed. In addition, manual configuration methods are difficult to fully cover all users, especially users of old versions of APP may not be able to enjoy the updated holiday atmosphere in time. This method that relies on manual operation by operators lacks flexibility and automated management, and it is difficult to adapt to large-scale user needs and diverse application scenarios.

[0052] The limitations of this existing technology show that there is a need to improve efficiency, optimize user experience and achieve automated processing in response to the dynamic adjustments of the holiday atmosphere.

[0053] See also Figure 1 , Figure 1 This is a flow chart of an embodiment of the holiday atmosphere automatic adjustment method provided by the present invention. It should be noted that although the logical sequence is shown in the flow chart, in some cases, the steps shown or described may be performed in a different order than that here.

[0054] like Figure 1 As shown, the holiday atmosphere automatic adjustment method proposed by the present invention comprises the following steps:

[0055] S10, identifying the current date and confirming whether the current date is a holiday;

[0056] In this embodiment, the system needs to obtain the data of the current date, which can be achieved by calling the system time interface of the device. Different operating systems have different time acquisition interfaces. For example, mobile devices can use the system time API of Android or iOS, and web pages can use the Date object in JavaScript to obtain the current time. The system time contains information about the year, month, and day, which will be used for subsequent holiday judgments.

[0057] When the device starts, the system automatically calls the corresponding time interface to obtain the current date and stores the date data in the memory for use in the subsequent holiday determination steps. For devices with network connections, a more accurate current date can also be obtained by calling a time server (such as an NTP server).

[0058] The system checks whether the current day is a holiday by comparing the current date with the data in the holiday database. The holiday database usually includes the names of various holidays, date ranges, and holiday data for different regions. Holidays are matched by comparing the current date with the holiday dates in the database.

[0059] The system first reads the holiday database (which can be a local database or a remote database). Then, the system matches the current date with the date range in the holiday database. If today's date is within the date range of a holiday, the system returns the information of the holiday and confirms that today is a holiday; if no matching result is found, today is not a holiday. To improve matching efficiency, the system can use indexing or caching mechanisms to quickly match dates.

[0060] By automatically identifying the date and confirming whether it is a holiday, the system efficiency and user experience can be significantly improved. Compared with relying on manual operation, automatic identification can ensure the timeliness of holiday information and avoid the problem of untimely interface updates caused by manual operation delays. In addition, this automatic identification method reduces the involvement of operators and the possibility of human error, ensuring that users can experience the accurate holiday atmosphere on holidays.

[0061] S20, when it is confirmed that the current day is a holiday, obtaining a holiday atmosphere color configuration corresponding to the holiday, wherein the holiday atmosphere color configuration includes an RGB value of the holiday atmosphere color and an allowable error range;

[0062] In this embodiment, after confirming that the day is a holiday, the system will extract configuration information related to the holiday from the database, especially the atmosphere color configuration of the holiday. This is to ensure that the holiday atmosphere can be reflected in the visual design of the application and enhance the user's holiday experience.

[0063] When the system confirms that the day is a holiday through date matching, it will call the color configuration query interface (which can be obtained from the local database or remote database) to extract the color information associated with the holiday and prepare data for subsequent operations.

[0064] The system needs to obtain the color configuration related to the holiday atmosphere, which contains the main color for interface update. The holiday atmosphere color configuration usually includes the RGB color values ​​of the holiday, which specify the red, green, and blue channel values ​​when the page is displayed.

[0065] Extract the specified RGB values ​​from the holiday configuration file or database to ensure that the color of the holiday atmosphere can be combined with the visual consistency of the brand. This process can be achieved through a predefined API interface or database query, and the system loads the specified color value for subsequent rendering and updating.

[0066] The RGB values ​​of the holiday atmosphere colors need to be used with an allowable error range to ensure dynamic color adjustment. This allows the colors to deviate slightly from the original RGB values ​​in actual display without affecting the user's visual experience.

[0067] After the system obtains the target value of each RGB channel (red, green, blue), it will also obtain the corresponding error range. These error ranges are used to adapt to different display effects under different devices, screen brightness and other conditions. The allowable error range is usually preset in the system, and the system adjusts the actual displayed color based on these ranges.

[0068] By automatically obtaining the color configuration of the holiday atmosphere, we can ensure the rapid update of the holiday interface and reduce the workload of manual configuration for operators. At the same time, by setting the allowable error range, we can ensure the adaptability of colors under different devices and display conditions, improve the user's holiday atmosphere experience, and avoid color deviation affecting the interface effect.

[0069] S30, identifying and acquiring the current color of each functional area in the page, and extracting the current RGB value of each functional area;

[0070] In this embodiment, the system scans the page to identify and locate all visible functional areas. Functional areas may include buttons, navigation bars, background images, etc., which constitute the main visual structure of the page. Technical means for identifying functional areas usually rely on page rendering engines or UI frameworks, such as HTML, CSS, and JavaScript implemented in web pages, or in mobile applications through native UI frameworks (such as Android's View or iOS's UIView).

[0071] The system first calls the API interface of the rendering engine to scan the page and identify all functional areas. Each functional area can be marked with a unique identifier (such as ID, class name) for subsequent processing. After identification, the system records the location information and size of these functional areas for color extraction.

[0072] After identifying the functional areas, the system needs to obtain the current color value of each area. The color of page elements can be defined in many ways, such as color properties in CSS, the main color of the background image, or dynamically generated color values. Color values ​​are usually stored in RGB, RGBA, or HEX format.

[0073] The system extracts the current color value of each functional area by calling the API of the page rendering engine or the color acquisition interface of the UI framework. For colors defined by CSS, the system parses the CSS rules and extracts color properties; for background images or gradient colors, the system can use image processing algorithms to extract the main color.

[0074] The color of each functional area needs to be further processed and extracted into standard RGB values. RGB values ​​represent the red, green, and blue channel values ​​of the color, and the range is usually 0-255. After extracting the RGB values, the system can compare and analyze them based on these values.

[0075] If the acquired color value is stored in RGB or RGBA format, the system directly parses the RGB channel value; if the color is stored in HEX format, the system converts the HEX value to RGB format. For colors that contain transparency (Alpha channel), the system removes the transparency information and only retains the RGB value.

[0076] By automatically identifying and extracting the current color and RGB value of each functional area on the page, the system can quickly and accurately obtain the visual information of the interface elements, avoiding the errors and inefficiencies of manual operations, and realizing real-time analysis and processing of page element color data. This automated color extraction mechanism can ensure that subsequent color comparison and dynamic adjustment operations are more efficient, improving the user experience.

[0077] S40, comparing the current RGB value of each functional area with the RGB value of the holiday atmosphere color, and determining whether the comparison result is within the allowable error range;

[0078] In this embodiment, the respective RGB values ​​are extracted from the function area and the holiday atmosphere configuration in the page. The RGB value of the function area represents the currently displayed color, while the RGB value of the holiday atmosphere color is the target color set according to the holiday atmosphere.

[0079] In the previous steps, the system has extracted and stored the current RGB value of each functional area and the RGB value of the holiday atmosphere color. Next, the system will access these two data sources simultaneously and decompose their respective RGB values ​​into red, green, and blue channel values.

[0080] Each color in the RGB color model is composed of three color channel values: red (R), green (G), and blue (B). The value range of each channel is usually 0-255:

[0081] R1: represents the value of the current color of the functional area on the red channel (for example, R1=100 means that the red channel value of the area is 100). Similarly, G1 and B1 represent the values ​​of the functional area on the green and blue channels respectively. These values ​​will be compared with the red component value of the holiday atmosphere color (for example, R2) to calculate the difference between the two.

[0082] The system compares the RGB values ​​of the current functional area and the holiday atmosphere to determine whether the two colors are close enough. This comparison usually uses a color difference calculation formula, such as Euclidean distance, to calculate the difference between the two RGB values.

[0083] The system calculates the difference between the RGB value of the functional area (R1, G1, B1) and the RGB value of the holiday mood color (R2, G2, B2):

[0084]

[0085] Based on the preset allowable error range, the system determines whether the difference between the color of the functional area and the holiday atmosphere color is within an acceptable range. The allowable error range can be global (setting a threshold for the overall difference in RGB) or can be set independently for each channel.

[0086] If the difference is less than the preset allowable error range, the system determines that the color match is successful. If the difference exceeds the allowable range, the system marks the functional area color as mismatched and prepares for subsequent color replacement operations. The threshold of the allowable error can be dynamically adjusted by the algorithm or configured according to the user's preset.

[0087] By comparing the current RGB value of the functional area with the RGB value of the holiday atmosphere color, the system can automatically determine whether the page color needs to be updated, avoiding human intervention and ensuring the accurate application of the holiday atmosphere color. The use of the error range mechanism can adapt to the differences of different display devices, improve the stability of the system and user experience, and ensure visual consistency.

[0088] S50: When the comparison result is not within the allowable error range, select an RGB value that matches the holiday atmosphere color to replace the current RGB value of the functional area.

[0089] In this embodiment, when the system finds through calculation that the difference between the current RGB value of the functional area and the RGB value of the holiday atmosphere color exceeds the preset error range, the system needs to perform a color replacement operation. This situation indicates that the current color does not match the holiday atmosphere, and the user experience may be affected, so adjustments must be made.

[0090] After the system performs color comparison, if the difference value is greater than the allowable error range, the functional area will be marked as "color mismatch" and ready for color replacement. The system can record the area where the comparison failed and its current RGB value to provide a reference for subsequent replacement operations.

[0091] When the match fails, the system will use the RGB value of the holiday atmosphere color to replace it. The RGB value of the holiday atmosphere color is pre-set to represent the main color of the holiday, ensuring that the visual effect of the entire interface is consistent with the holiday theme.

[0092] The system calls the previously loaded holiday atmosphere color configuration and extracts the RGB value (R2, G2, B2) of the main color from it. The system applies these RGB values ​​to the functional area where the comparison failed. To ensure interface consistency, the system also processes the background color, border color, or other related colors of the area.

[0093] The replacement process involves updating the RGB value of the current functional area to the RGB value of the holiday atmosphere. This operation requires interaction with the page rendering engine or UI framework to ensure that the color of the interface elements can be updated instantly and can be seamlessly applied to the user's display interface.

[0094] In front-end applications (such as web applications or mobile applications), the system can update the color value of the functional area to the holiday atmosphere color through DOMAPI or UI framework interface (such as CSS modification, View update, etc.). After the update is completed, the page or application will immediately present the holiday atmosphere color. For scenes that require visual transitions, the system can use animation or gradient effects to make the color switch smoother.

[0095] By automatically replacing the current RGB value of the functional area with the holiday atmosphere color, the system can ensure that the visual effect of the page is consistent with the holiday theme atmosphere and improve the user experience. The automated color replacement process reduces the need for manual intervention, can quickly respond to the arrival of holidays, and improve the overall beauty and interactivity of the application through dynamic visual updates.

[0096] The present invention relates to a method for automatically adjusting holiday atmosphere, which includes identifying the date of the day, confirming whether the day is a holiday, obtaining the holiday atmosphere color configuration corresponding to the holiday, including the RGB value and the allowable error range of the holiday atmosphere color, identifying the current color of each functional area in the page, and extracting the RGB value of the functional area. By comparing the current RGB value of each functional area with the RGB value of the holiday atmosphere color, it is determined whether it is within the allowable error range. When the comparison result does not meet the requirements, the RGB value of the holiday atmosphere color is selected to replace the current RGB value of the functional area. The present invention can automatically realize the timely switching of the holiday atmosphere, avoid the timeliness problem caused by relying on manual operation in the prior art, improve the efficiency of interface update and user experience, and reduce the dependence on operators at the same time, ensuring the accuracy and comprehensive coverage of color updates of each functional area.

[0097] In one embodiment, in the above S50, selecting an RGB value that matches the holiday atmosphere color to replace the current RGB value of the functional area includes:

[0098] S501, if the current RGB value of the functional area is not successfully replaced, record the abnormal information that occurs during the color replacement process, and gradually accumulate the number of abnormalities;

[0099] S502, if the accumulated number of abnormalities reaches a preset threshold, send a warning message;

[0100] S503, adjusting the holiday atmosphere strategy based on the warning information, and updating the holiday atmosphere color configuration;

[0101] S504: re-execute the current RGB value replacement operation of the functional area according to the updated holiday atmosphere color configuration.

[0102] In this embodiment, after comparing the current RGB value of the functional area with the RGB value of the holiday atmosphere color, the system confirms that the color difference exceeds the allowable error range, and then the system selects the RGB value of the holiday atmosphere color for replacement operation. This replacement operation can be achieved by directly modifying the color attribute of the functional area.

[0103] The system calls the color update interface of the UI framework and applies the pre-extracted holiday atmosphere RGB values ​​to the corresponding functional areas. This process requires timely updating of page elements to ensure that users can visually experience the colors of the holiday atmosphere.

[0104] If an error occurs when performing color replacement (such as inaccessible UI elements, rendering failure, etc.), the system will record the error information and count the number of times the error occurs. The exception information usually contains the ID of the functional area, the error type, and a specific exception description.

[0105] After each color replacement operation, the system checks whether the replacement is successful. If the replacement fails, the system will automatically generate an error log to record the cause of the error. The system will gradually increase the number of abnormalities recorded until it reaches the preset maximum number.

[0106] If the number of abnormalities accumulates to a certain level, it means that the system cannot complete the color replacement operation normally. At this time, the system will trigger an early warning mechanism to remind the operation or maintenance personnel to intervene or make corrections.

[0107] When the cumulative number of abnormalities reaches the set threshold (for example, 5 or 10 times), the system will issue a warning message through logs, notifications, or alarm systems. The warning information can be pushed to relevant personnel via email, SMS or system notifications.

[0108] After the warning information is triggered, the system can automatically or through manual intervention adjust the color configuration of the holiday atmosphere. The purpose of this adjustment is to correct the problem in the color configuration, or to solve the reason for the replacement failure by updating the strategy.

[0109] The system dynamically adjusts the holiday atmosphere color configuration based on the warning information, which may involve updating the color value, relaxing the error range, or reloading the color configuration file. After the configuration is updated, the system will use the new configuration for the next step.

[0110] After adjusting the policy and updating the color configuration, the system retries to replace the failed functional area colors to ensure the normal application of holiday atmosphere colors.

[0111] After updating the policy, the system reloads the new color configuration and restarts the previously failed color replacement operation until the replacement is successful or the exception is triggered again. The system can automatically repeat this process until the problem is resolved.

[0112] In this embodiment, by automatically recording abnormal information, sending warnings and adjusting holiday atmosphere strategies, the system can quickly respond to color replacement failures, thereby ensuring the success rate of the final color replacement and the accuracy of the application.

[0113] In one embodiment, in the above S502, if the accumulated number of abnormalities reaches a preset threshold, the process further includes:

[0114] S5021, obtaining an atmosphere backup plan corresponding to a holiday, wherein the atmosphere backup plan includes a backup RGB value for replacement and a backup error range;

[0115] S5022, comparing the current RGB value of each functional area according to the backup RGB value and the backup error range to determine whether it meets the atmosphere backup plan;

[0116] S5023, if the current RGB value of the functional area does not conform to the atmosphere backup solution, use the backup RGB value to replace the current RGB value of the functional area;

[0117] S5024: If the current RGB value of the functional area is not replaced successfully, an error report is generated and the adjustment of the holiday atmosphere strategy is triggered.

[0118] In this embodiment, during the color replacement process of the functional area, if multiple attempts to replace are unsuccessful, the system will accumulate these abnormal events. Once the number of these abnormal events reaches a preset threshold (e.g., 5 or 10 times), the system will trigger a response mechanism, that is, enter a backup plan to ensure that the replacement operation can proceed smoothly.

[0119] The system will increase the exception count each time a replacement fails. When the number of exceptions reaches the preset threshold, the system will automatically jump to the backup plan process to ensure stable system operation and provide a reasonable response strategy.

[0120] The backup plan is used when the color cannot be replaced successfully in the preset way. The backup plan includes the RGB color value for replacement and the error range to ensure that the system can still provide holiday atmosphere color adjustment after multiple failures.

[0121] The system extracts a backup plan from the backup strategy library, including backup RGB values ​​and error ranges. This backup plan is designed to solve multiple failures of color replacement. It can use more common color values ​​or a wider range of error tolerance to ensure the final success of color replacement.

[0122] Similar to the comparison of the main color of the holiday atmosphere, the system needs to compare the current RGB value of the functional area with the backup RGB value. The comparison process here is also based on the difference in color channels, but the backup error range may be larger to complete color matching under more relaxed conditions.

[0123] The system compares the RGB value of the current functional area with the RGB value in the backup solution channel by channel (red, green, blue). The comparison algorithm is the same as the main color comparison, but the allowed error range is larger, thereby increasing the probability of successful matching.

[0124] If the comparison result shows that the current color of the functional area does not meet the backup plan, the system will replace the current RGB value with the backup RGB value. The backup plan is designed to ensure that the color replacement can be completed in the end, even if the comparison conditions are relaxed.

[0125] If the comparison fails, the system will immediately call the RGB value in the backup solution to replace the current functional area color, ensuring that the holiday atmosphere color can be applied under loose conditions. This operation is implemented through the interface rendering engine or UI framework to ensure that the color displayed on the page meets expectations.

[0126] If color replacement still fails in the alternative solution, the system will generate an error report and trigger policy adjustments based on this report. The error report records detailed information such as the functional area, RGB values, and comparison results of multiple failures.

[0127] After the system generates an error report, it notifies the system administrator or operator to intervene and triggers the internal policy adjustment module. The system may further adjust the policy to solve the replacement failure problem by updating the holiday atmosphere color configuration, expanding the backup plan, etc.

[0128] This embodiment introduces a backup plan, so that even if the color replacement cannot be successful under normal conditions, the system can still ensure the application of holiday atmosphere colors. After multiple replacement failures, the system can automatically switch to the backup plan to improve the success rate of color replacement, and ensure the robustness and maintainability of the system by generating error reports and triggering policy adjustments.

[0129] In one embodiment, the above S10 includes:

[0130] S101, obtaining the current date data of the day by calling the system time interface or through the online API;

[0131] S102, querying a holiday database according to the current date data, wherein the holiday database includes a date range of multiple holidays;

[0132] S103, comparing the current date data with the date range of holidays in the holiday database to determine whether the current date data falls within the date range of holidays;

[0133] S104: If the current date is within the holiday date range, confirm that the current date is a holiday.

[0134] In this embodiment, the system obtains the current date by calling the device's time interface or using an online API. The system time interface refers to the API provided by the operating system, for example, in the Android system, System.currentTimeMillis() can be used, and in the iOS system, NSDate can be used to obtain the current time data of the device. For online applications, standardized time data can be obtained through online API services, such as obtaining standard timestamps through NTP servers or public APIs.

[0135] When the device is started or the user visits a page, the system calls the time interface to obtain the current time data. For applications with network connection, you can also obtain more accurate global standard time by calling the public time API (such as http: / / worldclockapi.com / ). The system then extracts the date data into the format of year, month, day, etc., and uses it for subsequent comparison operations.

[0136] The system queries the holiday information in the holiday database based on the extracted date data. The holiday database contains different holiday names and their corresponding date ranges, which may include public holidays and holidays in countries around the world. The database can be stored locally (such as a SQL database or a JSON file) or obtained in real time through a remote API query.

[0137] After receiving the date data, the system sends it to the holiday database as a query condition. If the database is stored locally, the system will query the local data file or database table to search for holiday data that matches the current date; if the database is on a remote server, the system will query and obtain holiday information through the API interface. The system needs to parse the returned data and extract the holiday information that meets the conditions.

[0138] After querying the holiday information in the holiday database, the system compares the current date with the holiday date range in the database to confirm whether the current date belongs to a holiday date range. The holiday date range usually includes a specific start date and end date. For example, the Spring Festival can last for several days, and the system needs to compare whether the current date is within the range.

[0139] The system compares the current date with the holiday start and end dates in the holiday database. If the current date is within the holiday date range (for example, greater than or equal to the start date and less than or equal to the end date), the date is confirmed as a holiday. The system can use date calculation functions to efficiently handle date comparisons.

[0140] If the comparison result shows that the current date belongs to a holiday date range in the holiday database, then the current day is confirmed to be a holiday. This step is the judgment process after the system completes the date comparison, confirming the basic information of the holiday type (such as holiday name, time period, etc.) for use in subsequent steps.

[0141] Once it is confirmed that the current date falls within the holiday range, the system will save the holiday name and related information to the memory for subsequent color configuration, interface update and other functional operations. If the current date does not fall within any holiday range, the system will skip the subsequent holiday atmosphere adjustment process and continue with normal interface operations.

[0142] This embodiment automatically identifies the current date and confirms whether it is a holiday, so the system can avoid the tedious process of manually querying holiday data and realize the automatic management of holiday atmosphere. Whether it is local database query or remote API acquisition, it can ensure that the system can quickly and accurately complete the interface switching and atmosphere setting on the holiday, improving the system's response speed and user experience.

[0143] In one embodiment, the above S30 includes:

[0144] S301, scanning a page through an API provided by a page rendering engine or a UI framework, identifying and marking all visible functional areas on the page, and assigning a unique identifier to each functional area;

[0145] S302, extracting display color information of each identified functional area through a color extraction interface of the application framework;

[0146] S303, if the display color information of the functional area includes a transparency channel, remove the transparency channel and only retain the RGB value;

[0147] S304, associating the RGB value of each functional area with the corresponding unique identifier, and storing the RGB value of the functional area in a cache or a designated storage area.

[0148] In this embodiment, the page rendering engine or UI framework usually provides an API to traverse and identify all visible elements in the page. Functional areas can be UI elements such as buttons, text boxes, images, etc. Each element will be identified by the system and assigned a unique identifier, which enables the system to distinguish and independently process each functional area. The unique identifier can be an ID or a label, which is used for subsequent color processing and comparison operations.

[0149] The system traverses the visible elements in the page through the rendering engine's API (such as DOMAPI, React, and framework interfaces in Vue.js). Each visible functional area is assigned a unique identifier and stored in a temporary data structure (such as an array or object) to quickly access the properties of these areas in subsequent operations.

[0150] After identifying the functional area, the system obtains the current display color by calling the color extraction interface of the UI framework. The display color is usually defined in RGB, RGBA or HEX format, representing the appearance of each functional area. This color information is used for subsequent comparison and adjustment operations.

[0151] The system obtains color information such as the background color, foreground color, or border color of the functional area through JavaScript's getComputedStyle() (or similar functions provided in other frameworks). For complex UI structures, the system can also extract the main color of the gradient color or background image.

[0152] If the color information contains transparency (Alpha channel), the system needs to ignore the transparency information and only keep the RGB value of the color. In many cases, transparency does not affect the display of holiday atmosphere colors, so the system only needs to process the information of the red, green, and blue color channels.

[0153] If the color value is in RGBA format, the system will parse the value and remove the Alpha channel, leaving only the RGB channel values. For example, RGBA(255,0,0,0.5) will be processed as RGB(255,0,0) for subsequent comparison and color replacement operations.

[0154] The system needs to associate the extracted RGB values ​​with the unique identifier of the functional area to ensure that the color information of each functional area can be accurately located and processed. The purpose of storing these RGB values ​​is to quickly access and use them in subsequent comparison or color replacement operations.

[0155] The system stores each functional area's unique identifier as the key and the RGB value as the value in a hash table, array, or object. The temporary cache can be a data structure in memory or stored in a local file system, depending on the application's needs.

[0156] This embodiment automatically identifies and obtains the color information of each functional area in the page and extracts the RGB value. The system can efficiently and accurately collect the visual data of the page and provide support for subsequent color comparison and replacement operations. This mechanism can reduce the errors caused by human operation, improve the accuracy and efficiency of color extraction, and also improve the response speed and stability of the system through the cache mechanism.

[0157] In one embodiment, the above S40 includes:

[0158] S401, decomposing the current RGB value of each functional area and the RGB value of the holiday atmosphere color into independent values ​​of red, green and blue channels respectively;

[0159] S402, extracting independent error ranges of red, green and blue channels respectively from the allowable error range;

[0160] S403, comparing the independent values ​​of the red, green and blue channels in the RGB values ​​of the functional area and the holiday atmosphere color to determine whether the difference value of each color channel is within the corresponding independent error range;

[0161] S404, if the difference values ​​of all color channels are within the corresponding independent error ranges, determining that the comparison result is within the allowable error range;

[0162] S405: If the difference value of any color channel exceeds the corresponding independent error range, it is determined that the comparison result is not within the allowable error range.

[0163] In this embodiment, the RGB color model consists of three basic colors: red (R), green (G), and blue (B). In order to compare the current color of the functional area with the holiday atmosphere color, the system needs to decompose the color value of each functional area and the holiday atmosphere color value into independent values ​​of the R, G, and B channels. For example, RGB (255, 100, 50) will be decomposed into a red channel of 255, a green channel of 100, and a blue channel of 50.

[0164] The system extracts the R, G, and B values ​​from the current color value and the holiday atmosphere color value of each functional area and stores them as three independent values ​​for subsequent channel-by-channel comparison operations. This process is usually completed by calling a color processing function.

[0165] When doing color comparison, each color channel can have a different allowable error range. This is because the human eye has different sensitivities to different colors, so an independent error range can be set for each channel. For example, the error range for the red channel can be ±10, the green channel is ±15, and the blue channel is ±20.

[0166] The system extracts the independent error value of each color channel from the preset error range configuration. According to different scenarios and needs, the error range can be dynamically adjusted to ensure the flexibility and accuracy of the comparison.

[0167] The system compares the decomposed R, G, and B values ​​channel by channel. By comparing the difference values ​​of each channel, the similarity between colors is determined. For example, if the red channel of the functional area is 230, and the red channel of the holiday atmosphere color is 240, the difference is 10, and the system will check whether the difference is within the set error range.

[0168] The system calculates the difference value for each channel:

[0169] ΔR=∣R1-R2∣, ΔG=∣G1-G2∣, ΔB=∣B1-B2∣. in:

[0170] ΔR: Red channel difference, which represents the absolute difference between the red value of the functional area (R1) and the red value of the holiday atmosphere (R2).

[0171] ΔG: Green channel difference, which represents the absolute difference between the green value of the functional area (G1) and the green value of the holiday atmosphere (G2).

[0172] ΔB: Blue channel difference, which represents the absolute difference between the blue value of the functional area (B1) and the blue value of the holiday atmosphere (B2).

[0173] The purpose of the comparison is to ensure that the color difference of each channel does not exceed the respective error range.

[0174] The system determines whether the difference value of each color channel is within the allowable error range. If the difference values ​​of the red, green, and blue channels are all within their independent error ranges, it means that the color of the current functional area is close enough to the holiday atmosphere color and can remain unchanged.

[0175] The system checks the difference values ​​of all channels by comparing the results of each channel. If the difference values ​​of all channels are within the error range, the system will continue to maintain the current color setting and record the comparison result as "matched", confirming that the comparison result is within the allowable error range.

[0176] If the difference value of a color channel exceeds the preset error range, the system determines that the color of the current functional area does not match the holiday atmosphere color, determines that the comparison result is not within the allowable error range, and marks it as needing adjustment. This situation usually means that the color of the functional area needs to be replaced with the holiday atmosphere color. During the comparison process, if the system finds that the difference value of any color channel exceeds the allowable error range, the result is immediately recorded and the subsequent color replacement operation is triggered.

[0177] In this embodiment, by comparing the current RGB value of the functional area with the RGB value of the holiday atmosphere color channel by channel, the system can achieve fine color matching to ensure that the color of the user interface is consistent with the holiday atmosphere. At the same time, the independent error range setting can flexibly respond to different color difference requirements, improving the accuracy of color matching and user experience.

[0178] In one embodiment, in the above S20, when it is confirmed that the current day is a holiday, obtaining the holiday atmosphere color configuration corresponding to the holiday includes:

[0179] S201, when it is confirmed that the current day is a holiday, the corresponding holiday type is identified from the holiday database according to the current day's date;

[0180] S202, generating a query condition based on the holiday type, and querying the holiday atmosphere color configuration corresponding to the holiday type by calling a local file interface or a database query interface;

[0181] S203: If the holiday atmosphere color configuration corresponding to the holiday type cannot be successfully queried, a default color configuration is called as the holiday atmosphere color configuration, and a color configuration missing report is generated.

[0182] In this embodiment, when the system confirms that the day is a holiday, the system needs to identify the specific holiday type from the holiday database according to the date information of the day. The holiday types may include multiple types, such as Spring Festival, National Day, Christmas, etc. Each holiday type corresponds to a specific color configuration.

[0183] The system uses the date matching function to query the holiday database and find the holiday type corresponding to the current date. The database can be a locally stored file or a holiday API accessed through a remote call. The system will provide a basis for the next color configuration query based on the matching holiday type.

[0184] After identifying the holiday type, the system needs to generate query conditions based on the holiday type to find the holiday atmosphere color configuration that matches the holiday. The color configuration includes the main color RGB value used for interface update and related error range and other information.

[0185] The system uses the holiday type as a keyword to generate query conditions, calls the file interface (such as reading local JSON or XML configuration files) or the database interface, and extracts the color configuration. If a local file is used, the system will load the corresponding file data according to the holiday type; if it is a database query, the data is obtained through SQL query statements or API interfaces.

[0186] If the query fails, for example, the database does not contain the relevant color configuration of the holiday type, or the data file cannot be read, the system needs to call the preset default color configuration. The default color configuration ensures that even if the specific holiday color information cannot be obtained, the system can still provide basic holiday atmosphere colors.

[0187] After the query fails, the system automatically calls the default color configuration. The default configuration is pre-stored in the system and contains basic holiday atmosphere color schemes to ensure that the interface can be presented normally.

[0188] When calling the default color configuration, the system will generate a color configuration missing report, recording the holiday type, query conditions and possible error messages that failed to be queried. This will help with subsequent system maintenance and problem diagnosis.

[0189] When a query fails, the system records an error log or generates a detailed report file, records the failed query conditions and holiday types, and stores them in the log file or notifies the operation staff for subsequent analysis and correction.

[0190] This embodiment automatically obtains the holiday atmosphere color configuration, and the system ensures that the interface can be dynamically adjusted according to the holiday type, reducing the burden of manual configuration. At the same time, the default color configuration and error reporting mechanism improve the reliability of the system. Even if the query fails, the interface can be displayed normally, and the problem can be fed back in time through the report, which is helpful for subsequent maintenance and improvement.

[0191] The present invention also provides a holiday atmosphere automatic adjustment device, referring to Figure 2 , Figure 2 This is a functional module diagram of a preferred embodiment of the holiday atmosphere automatic adjustment device of the present invention. The holiday atmosphere automatic adjustment device comprises:

[0192] Date recognition module, used to identify today's date and confirm whether it is a holiday;

[0193] A holiday color configuration module is used to obtain the holiday atmosphere color configuration of the corresponding holiday when it is confirmed that the day is a holiday, and the holiday atmosphere color configuration includes the RGB value of the holiday atmosphere color and the allowable error range;

[0194] The page scanning and color extraction module is used to identify and obtain the current color of each functional area in the page, and extract the current RGB value of each functional area;

[0195] A color comparison module is used to compare the current RGB value of each functional area with the RGB value of the holiday atmosphere color, and determine whether the comparison result is within the allowable error range;

[0196] The atmosphere adjustment module is used to select an RGB value that meets the holiday atmosphere color to replace the current RGB value of the functional area when the comparison result is not within the allowable error range.

[0197] The specific implementation of the holiday atmosphere automatic adjustment device of the present invention is basically the same as the various embodiments of the above-mentioned holiday atmosphere automatic adjustment method, and will not be repeated here.

[0198] The present invention also provides a holiday atmosphere automatic adjustment device, such as Figure 3 As shown, the holiday atmosphere automatic adjustment device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0199] Those skilled in the art will understand that Figure 3 The hardware structure of the holiday atmosphere automatic adjustment device shown in the figure does not constitute a limitation on the holiday atmosphere automatic adjustment device, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0200] like Figure 3 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a holiday atmosphere automatic adjustment program. The operating system is a program for managing and controlling the holiday atmosphere automatic adjustment device and software resources, and supports the operation of the network communication module, the user interface module, the holiday atmosphere automatic adjustment program, and other programs or software; the network communication module is used to manage and control the network interface 1004; the user interface module is used to manage and control the user interface 1003.

[0201] exist Figure 3In the hardware structure of the holiday atmosphere automatic adjustment device shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the client and communicate data with the client; the processor 1001 can call the holiday atmosphere automatic adjustment program stored in the memory 1005, and perform the same operations as the holiday atmosphere automatic adjustment method.

[0202] The specific implementation of the holiday atmosphere automatic adjustment device of the present invention is basically the same as the various embodiments of the holiday atmosphere automatic adjustment method described above, and will not be repeated here.

[0203] In addition, an embodiment of the present invention further provides a computer storage medium on which a holiday atmosphere automatic adjustment program is stored. When the holiday atmosphere automatic adjustment program is executed by a processor, the steps of the holiday atmosphere automatic adjustment method described above are implemented.

[0204] The specific implementation of the computer storage medium of the present invention is basically the same as the above-mentioned embodiments of the holiday atmosphere automatic adjustment method, and will not be repeated here.

[0205] It should be noted that if software tools or components other than those of our company appear in the embodiments of the present application, they are only used for illustrative purposes and do not represent actual use.

Claims

1. A method for automatically adjusting holiday atmosphere, characterized in that: The following steps are involved: Identify today’s date and confirm whether it is a holiday; When it is confirmed that the day is a holiday, a holiday atmosphere color configuration corresponding to the holiday is obtained, wherein the holiday atmosphere color configuration includes an RGB value of the holiday atmosphere color and an allowable error range; Identify and obtain the current color of each functional area within the page, and extract the current RGB value of each functional area; Compare the current RGB value of each functional area with the RGB value of the holiday atmosphere color to determine whether the comparison result is within the allowable error range; When the comparison result is not within the allowable error range, an RGB value that matches the holiday atmosphere color is selected to replace the current RGB value of the functional area.

2. The method for automatically adjusting holiday atmosphere according to claim 1, characterized in that: Select the RGB value that matches the holiday atmosphere color to replace the current RGB value of the functional area, including: If the current RGB value of the functional area is not replaced successfully, the abnormal information that occurs during the color replacement process is recorded, and the number of abnormalities is accumulated one by one; If the cumulative number of abnormalities reaches a preset threshold, a warning message is sent; Adjust the holiday atmosphere strategy based on the warning information, and update the holiday atmosphere color configuration; Re-execute the current RGB value replacement operation of the functional area according to the updated holiday atmosphere color configuration.

3. The method for automatically adjusting holiday atmosphere according to claim 2, characterized in that: If the accumulated number of abnormalities reaches a preset threshold, the method further includes: Acquire an atmosphere backup plan corresponding to a holiday, wherein the atmosphere backup plan includes a backup RGB value for replacement and a backup error range; According to the backup RGB value and the backup error range, the current RGB value of each functional area is compared to determine whether it meets the atmosphere backup plan; If the current RGB value of the functional area does not conform to the atmosphere backup solution, the current RGB value of the functional area is replaced by the backup RGB value; If the current RGB value of the functional area is not replaced successfully, an error report is generated and the adjustment of the holiday atmosphere strategy is triggered.

4. The method for automatically adjusting holiday atmosphere according to claim 1, characterized in that: Identify today's date and confirm whether it is a holiday, including: Get the current date data of the day by calling the system time interface or through the online API; According to the current date data, query a holiday database, wherein the holiday database includes a date range of multiple holidays; Compare the current date data with the date range of holidays in the holiday database to determine whether the current date data falls within the date range of holidays; If the current date falls within the holiday date range, then that day is confirmed as a holiday.

5. The method for automatically adjusting holiday atmosphere as claimed in claim 1, characterized in that: Identify and obtain the current color of each functional area within the page, and extract the current RGB value of each functional area, including: Scan the page through the API provided by the page rendering engine or UI framework, identify and mark all visible functional areas on the page, and assign a unique identifier to each functional area; Extract the display color information of each identified functional area through the color extraction interface of the application framework; If the display color information of the functional area includes a transparency channel, the transparency channel is removed and only the RGB value is retained; The RGB value of each functional area is associated with the corresponding unique identifier, and the RGB value of the functional area is stored in a cache or a designated storage area.

6. The method for automatically adjusting holiday atmosphere according to claim 1, characterized in that: Comparing the current RGB value of each functional area with the RGB value of the holiday atmosphere color, and determining whether the comparison result is within the allowable error range, includes: Decompose the current RGB value of each functional area and the RGB value of the holiday atmosphere color into independent values ​​of red, green and blue channels respectively; Extracting independent error ranges of red, green and blue channels respectively from the allowable error range; Compare the independent values ​​of the red, green and blue channels in the RGB values ​​of the functional areas and holiday atmosphere colors to determine whether the difference values ​​of each color channel are within the corresponding independent error range; If the difference values ​​of all color channels are within the corresponding independent error ranges, then the comparison result is determined to be within the allowable error range; If the difference value of any color channel exceeds the corresponding independent error range, it is determined that the comparison result is not within the allowable error range.

7. The method for automatically adjusting holiday atmosphere according to claim 1, characterized in that: When it is confirmed that the day is a holiday, obtain the holiday atmosphere color configuration of the corresponding holiday, including: When it is confirmed that the current day is a holiday, the corresponding holiday type is identified from the holiday database according to the current day's date; Generate a query condition based on the holiday type, and query the holiday atmosphere color configuration corresponding to the holiday type by calling a local file interface or a database query interface; If the holiday atmosphere color configuration corresponding to the holiday type cannot be successfully queried, the default color configuration is called as the holiday atmosphere color configuration, and a color configuration missing report is generated.

8. An automatic holiday atmosphere adjustment device, characterized in that: The holiday atmosphere automatic adjustment device comprises: Date recognition module, used to identify today's date and confirm whether it is a holiday; A holiday color configuration module is used to obtain the holiday atmosphere color configuration of the corresponding holiday when it is confirmed that the day is a holiday, and the holiday atmosphere color configuration includes the RGB value of the holiday atmosphere color and the allowable error range; The page scanning and color extraction module is used to identify and obtain the current color of each functional area in the page, and extract the current RGB value of each functional area; A color comparison module is used to compare the current RGB value of each functional area with the RGB value of the holiday atmosphere color to determine whether the comparison result is within the allowable error range; The atmosphere adjustment module is used to select an RGB value that meets the holiday atmosphere color to replace the current RGB value of the functional area when the comparison result is not within the allowable error range.

9. An automatic holiday atmosphere adjustment device, characterized in that: The holiday atmosphere automatic adjustment device includes a memory, a processor, and a holiday atmosphere automatic adjustment program stored in the memory and executable on the processor. When the holiday atmosphere automatic adjustment program is executed by the processor, the steps of the holiday atmosphere automatic adjustment method as described in any one of claims 1 to 7 are implemented.

10. A computer storage medium, characterized in that: The storage medium stores a holiday atmosphere automatic adjustment program, and when the holiday atmosphere automatic adjustment program is executed by the processor, the steps of the holiday atmosphere automatic adjustment method according to any one of claims 1 to 7 are implemented.