Mine lamp applet dynamic pop-up scheduling processing method and related equipment
By dynamically managing the display status and priority of the bullet frame in the mining lamp applet, the problem of inefficiency of traditional scheduling solutions is solved, the intelligent and efficient frame scheduling is realized, and the user experience and system stability are improved.
Patent Information
- Application Number
- CN202411967331.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-04-25
AI Technical Summary
Traditional bounce frame scheduling implementation solutions cannot effectively manage various types of bounce frames, resulting in problems with program operation and difficulty in adapting to complex business scenarios, affecting efficiency and user experience.
By obtaining the subscription notification information of the target pop-up window in the Mining Light applet, dynamically determine its display status and priority, and store this information in the preset pop-up object. According to the received scheduling information, the pop-up object is called to modify the display status and priority, record the modification log in real time and generate a scheduling optimization report.
It realizes intelligent scheduling of the bullet frames in the mining lamp mini program, improves the flexibility of the bullet frame display and the timeliness of the system response, reduces user operation interference, improves interface interaction fluency, and reduces development complexity, making the bullet frame scheduling more automated and efficient.
Smart Images

Figure CN119883560A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method for dynamic pop-up window scheduling and processing of a mining lamp applet and related equipment. Background Art
[0002] In modern society, mining lamp technology is developing rapidly. As an important safety equipment in coal mines, mines and other underground workplaces, the performance of mining lamps directly affects the life safety and work efficiency of miners.
[0003] On this basis, the Miner’s Lamp applet is an important virtual tool that can be used to manage various data in the mine, including production data, safety data, equipment data, etc.
[0004] At present, most front-ends on the market, such as APP, mini-programs (including Miner's Light mini-programs), Web h5, etc., use traditional pop-up scheduling implementation solutions. However, traditional pop-up scheduling implementation solutions cannot effectively schedule and manage various types of pop-ups. As a result, it is not only easy to have problems in program operation, but also difficult to adapt to increasingly complex business scenarios, thus affecting the efficiency of pop-up scheduling and making the user experience poor. Summary of the invention
[0005] The purpose of the embodiments of the present application is to propose a method and related equipment for dynamic pop-up window scheduling of a mining lamp applet to solve the technical problem of poor efficiency of pop-up window scheduling.
[0006] In order to solve the above technical problems, the embodiment of the present application provides a method for dynamic pop-up window scheduling of a miner's lamp applet, which adopts the following technical solution:
[0007] A method for dynamic pop-up window scheduling and processing of a miner's lamp applet includes the following steps:
[0008] Get the subscription notification information corresponding to the target pop-up window in the Miner’s Lamp applet;
[0009] Determine the display status and priority of the target pop-up window according to the subscription notification information;
[0010] Storing the display state and the priority in a preset pop-up window object;
[0011] When the scheduling information corresponding to the target pop-up window is received, the pop-up window object is called, and the display state and the priority are modified according to the scheduling information.
[0012] Furthermore, the step of storing the display state and the priority in a preset pop-up window object specifically includes:
[0013] Establishing a corresponding hash table according to the display state;
[0014] Establish a corresponding binary heap according to the priority;
[0015] The hash table and the binary heap are encapsulated into the pop-up window object.
[0016] Furthermore, the step of establishing a corresponding hash table according to the display state specifically includes:
[0017] Configure according to the preset table configuration information to obtain an initial hash table;
[0018] The initial hash table is filled according to the display state to obtain the hash table.
[0019] Furthermore, the step of establishing a corresponding binary heap according to the priority specifically includes:
[0020] The priority is converted into data according to a preset binary tree data structure to obtain the binary heap.
[0021] Furthermore, after the step of calling the pop-up window object when the scheduling information corresponding to the target pop-up window is received and modifying the display state and the priority according to the scheduling information, the method further includes:
[0022] Recording the display status and the priority modification log in real time;
[0023] Perform scheduling optimization analysis according to the modification log and generate a scheduling optimization report;
[0024] According to the scheduling optimization report, the display status and the storage method of the priority in the pop-up window object are updated.
[0025] Furthermore, after the step of calling the pop-up window object when the scheduling information corresponding to the target pop-up window is received and modifying the display state and the priority according to the scheduling information, the method further includes:
[0026] When the display status and the priority level modification fail, a preset alarm message is sent to the administrator user terminal.
[0027] Furthermore, it is characterized in that after the step of storing the display state and the priority in the preset pop-up window object, it also includes:
[0028] The display status and the priority are stored in a preset blockchain node.
[0029] In order to solve the above technical problems, the embodiment of the present application also provides a dynamic pop-up window scheduling processing device for a miner's lamp applet, which adopts the following technical solution:
[0030] A mining lamp applet dynamic pop-up window scheduling and processing device, comprising:
[0031] The acquisition module is used to obtain the subscription notification information corresponding to the target pop-up window in the Miner's Lamp applet;
[0032] A determination module, used to determine the display state and priority of the target pop-up window according to the subscription notification information;
[0033] A storage module, used for storing the display state and the priority in a preset pop-up window object;
[0034] The calling module is used to call the pop-up window object when receiving the scheduling information corresponding to the target pop-up window, and modify the display state and the priority according to the scheduling information.
[0035] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:
[0036] A computer device includes a memory and a processor, wherein the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the steps of the dynamic pop-up window scheduling processing method of the mining lamp applet as described above are implemented.
[0037] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:
[0038] A computer-readable storage medium having computer-readable instructions stored thereon, wherein the computer-readable instructions, when executed by a processor, implement the steps of the dynamic pop-up window scheduling processing method of the mining lamp applet as described above.
[0039] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0040] The dynamic pop-up window scheduling processing method of the mining lamp applet disclosed in the present application obtains the subscription notification information corresponding to the target pop-up window in the mining lamp applet; determines the display status and priority of the target pop-up window according to the subscription notification information; stores the display status and the priority to a preset pop-up window object; when the scheduling information corresponding to the target pop-up window is received, calls the pop-up window object, and modifies the display status and the priority according to the scheduling information. The present application realizes the intelligent scheduling of the pop-up window in the mining lamp applet by obtaining the subscription notification information of the target pop-up window and dynamically determining its display status and priority, and can adjust the display priority and status of the pop-up window according to the real-time scheduling information, thereby improving the flexibility of the pop-up window display and the timeliness of the system response, reducing the interference of user operations, and improving the fluency of interface interaction. At the same time, it also reduces the complexity of the work of developers, making the pop-up window scheduling more automated and efficient. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0042] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;
[0043] Figure 2 It is a flow chart of an embodiment of a method for dynamic pop-up window scheduling and processing of a miner's lamp applet according to the present application;
[0044] Figure 3 It is a structural schematic diagram of an embodiment of a dynamic pop-up window scheduling processing device for a miner's lamp applet according to the present application;
[0045] Figure 4 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION
[0046] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0047] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0048] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0049] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0050] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0051] Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, desktop computers, etc.
[0052] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .
[0053] It should be noted that the dynamic pop-up window scheduling processing method of the miner's lamp applet provided in the embodiment of the present application is generally executed by a terminal device, and accordingly, the dynamic pop-up window scheduling processing device of the miner's lamp applet is generally set in the terminal device.
[0054] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0055] Continue to refer Figure 2 , shows a flow chart of an embodiment of a method for scheduling dynamic pop-up boxes of a miner's lamp applet according to the present application. The method for scheduling dynamic pop-up boxes of a miner's lamp applet includes the following steps:
[0056] Step S201, obtaining the subscription notification information corresponding to the target pop-up window in the Miner's Lamp applet.
[0057] In this embodiment, the miner's lamp applet dynamic pop-up window scheduling processing method is run on the electronic device (for example Figure 1 The terminal device shown in the figure can send or receive data through a wired connection or a wireless connection. It should be noted that the above wireless connection methods may include but are not limited to 3G / 4G / 5G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or to be developed in the future.
[0058] In this embodiment, the system or framework of the applet will interact with the user according to the application requirements, monitor and obtain the subscription notification information of a specific pop-up window, and the subscription notification information contains the relevant information of the pop-up window (such as priority, display conditions, trigger events, etc.), which is obtained through monitoring or publish-subscribe mode. Assuming that the user is operating a certain functional module (such as turning on and off the light, adjusting the brightness, etc.) in the miner's lamp applet, when a certain condition is met, the system will receive a notification of the target pop-up window (such as "system update notification") through the subscription mechanism. The notification information may include: the display time, priority, and display trigger conditions (such as device connection status, network status, etc.) of the pop-up window. In addition to obtaining information through the publish-subscribe mechanism, the display status and priority of the pop-up window can also be checked by timed polling; the display request of the pop-up window can also be obtained through the push notification service, especially when real-time updates or message prompts are involved in the miner's lamp application.
[0059] Step S202: determining the display status and priority of the target pop-up window according to the subscription notification information.
[0060] In this embodiment, after obtaining the subscription notification, the system will determine the display status (such as display, hide, pause) and priority (such as high, medium, low) of the pop-up box based on this information. The display status and priority will determine the display timing and display order of the pop-up box. For example, the system receives a notification indicating that "system update is complete". At this time, the priority of the pop-up box may be set to high and the display status is set to "display"; in another case, the system receives a notification of "network connection failure", and the priority of the pop-up box may be set to medium, the display status is "to be displayed", and the decision whether to pop up is made after judging the network recovery status. In addition, based on time-based priority control, the priority can be set based on time conditions, such as triggering a specific pop-up box once every hour; based on the dynamic priority of user operations, the priority of the pop-up box is dynamically changed according to the user's interactive behavior (such as clicking a button or completing a task). For example, when a user operates on the interface, a relatively high-priority security reminder pop-up box may pop up.
[0061] Step S203: storing the display status and the priority in a preset pop-up window object.
[0062] In this embodiment, the system stores the acquired pop-up box display status and priority information into a preset pop-up box object, which encapsulates all the properties of the pop-up box (such as ID, status, priority, trigger condition, callback method, etc.) and is used for subsequent pop-up box scheduling. If the system needs to process a large amount of pop-up box information, the pop-up box object can be stored in the database and dynamically queried and updated using the data table. For lightweight pop-up box management, the information can be stored in the local cache for fast reading and updating.
[0063] Step S204, when the scheduling information corresponding to the target pop-up window is received, the pop-up window object is called, and the display state and the priority are modified according to the scheduling information.
[0064] In this embodiment, the system will modify the display status and priority of the pop-up box according to the scheduling information (such as network recovery, user operation, etc.). By calling the stored pop-up box object, the system can dynamically update the display status of the pop-up box to ensure that the user sees the correct pop-up box at the appropriate time. For example, when the user's device restores the network connection, the system may receive scheduling information indicating "network connection restored". At this time, the system will call the stored pop-up box object through the scheduling mechanism, change its priority from "medium" to "high", and set its display status to "display". In some scenarios, developers may need to manually trigger the display or hiding of the pop-up box instead of automatic scheduling. For example, when the user actively clicks a button or selects a menu item, the pop-up box scheduling is manually triggered. The scheduling information of the pop-up box can also be processed through asynchronous tasks. For example, the system receives a scheduling event (such as device data update completion) and processes the priority and display status of the pop-up box through asynchronous callbacks.
[0065] This application realizes intelligent scheduling of pop-up boxes in the Miner's Lamp applet by obtaining the subscription notification information of the target pop-up window and dynamically determining its display status and priority. It can also adjust the display priority and status of the pop-up box according to real-time scheduling information, thereby improving the flexibility of pop-up box display and the timeliness of system response, reducing the interference of user operations, and improving the smoothness of interface interaction. At the same time, it also reduces the complexity of developers' work, making pop-up box scheduling more automated and efficient.
[0066] In some optional implementations of this embodiment, the step of storing the display state and the priority in a preset pop-up window object specifically includes:
[0067] Establishing a corresponding hash table according to the display state;
[0068] Establish a corresponding binary heap according to the priority;
[0069] The hash table and the binary heap are encapsulated into the pop-up window object.
[0070] In this embodiment, a hash table is a data structure that can provide efficient search and update operations. It maps keywords to positions in a table through a hash function. In this application, a hash table is used to store the display status of a pop-up box. The display status of each pop-up box (such as "display", "hide", "to be displayed") can be used as a keyword, and the value in the table is additional data related to the display status (such as the timestamp of the state modification, the trigger event, etc.). In addition to using a hash table, an array or dictionary can also be used to store the display status and its related information, depending on the complexity of the application and the performance requirements. A binary heap is a data structure of a complete binary tree, which is usually used to implement a priority queue. In this application, a binary heap is used to store the priority of a pop-up box in order to facilitate the rapid selection and adjustment of the display order of high-priority pop-ups. The elements in the priority queue are automatically sorted according to priority (such as high, medium, and low), and the elements with high priority will be at the front of the queue. Through a binary heap, the highest priority pop-up box can be obtained in a constant time, and the time complexity of the insertion and deletion operations is logarithmic. In addition to binary heaps, balanced binary search trees (such as AVL trees and red-black trees) can also be used to store and manage priorities. Their advantage is that they provide more flexible query operations, but the time complexity of insertion and deletion is slightly higher than that of binary heaps. Finally, the system encapsulates the stored display status hash table and priority binary heap into a unified pop-up box object. This object not only contains basic information such as the ID and name of the pop-up box, but also contains a data structure for dynamically managing the status and priority of the pop-up box, which is convenient for calling and modifying during the scheduling process. In addition to hash tables and binary heaps, the system can also use other combined data structures, such as dictionaries and queues, to store the display status and priority information of the pop-up box. This method is usually suitable for smaller-scale systems or when more flexible status and priority management is required.
[0071] This application optimizes the efficiency of data storage and scheduling by storing the display status and priority of the pop-up boxes in a hash table and a binary heap respectively. The hash table can quickly search and update according to the display status, thereby improving the speed of data management; the binary heap achieves efficient priority scheduling through its unique structure, so that the pop-up boxes are displayed in order according to the set priority. This optimizes memory usage and improves the system's ability to handle multiple pop-up boxes, ensuring efficient scheduling in complex scenarios.
[0072] In some optional implementations of this embodiment, the step of establishing a corresponding hash table according to the display state specifically includes:
[0073] Configure according to the preset table configuration information to obtain an initial hash table;
[0074] The initial hash table is filled according to the display state to obtain the hash table.
[0075] In this embodiment, first, the system generates an initial hash table according to the preset table configuration. The preset table configuration usually includes the type of pop-up display state, the characteristic information of each state and the data fields related thereto. This configuration table is equivalent to a "template", which provides the system with the basic structure required to generate the initial hash table. The table configuration usually includes the following information: display state type, for example, "display", "hide", "to be displayed", "pause display", etc.; state-related fields, each state may have different field information, such as "display time", "trigger event", "state update time", etc. Through these configurations, the system can create an initial empty hash table and assign a preliminary key value structure to each possible display state. Next, the system will fill the initial hash table according to the specific display state information of each pop-up box. The filling process involves adding the actual pop-up box data (such as the time of state update, trigger event, etc.) to the hash table entry of the corresponding state. For the display status of each pop-up box, the system will update its value in the hash table according to the actual situation. These values may include the update time of the display status: the time when the pop-up box changes from one state to another; trigger event information: the event that triggers the state change (for example, automatic system update, user operation, etc.). For example, when the state of a pop-up box changes to "display", the system will store the current timestamp and trigger event information in the hash table item of the "display" state. In addition to the preset table configuration, the system can also generate and fill the hash table based on dynamic configuration files or real-time user input. For example, users can set new pop-up box states in the management background and dynamically update the contents of the hash table.
[0076] This application further improves the flexibility and adaptability of pop-up window scheduling by configuring a hash table according to the display status and filling in the initial data. The configuration of the initial hash table can be dynamically adjusted according to system requirements to ensure that data management can accurately reflect the current status; by filling in the display status, the system can update the status in real time to ensure that the pop-up window display logic meets the user's usage requirements. This enhances the system's scalability and dynamic adjustment capabilities, and can flexibly respond to different environmental changes and requirements.
[0077] In some optional implementations of this embodiment, the step of establishing a corresponding binary heap according to the priority specifically includes:
[0078] The priority is converted into data according to a preset binary tree data structure to obtain the binary heap.
[0079] In this embodiment, the system first processes and converts the priority information according to a preset binary tree data structure. The preset binary tree data structure can be a maximum heap or a minimum heap, depending on the priority requirements in the application scenario. It should be noted that a binary heap is a complete binary tree, which is usually used to efficiently process priority queues. The binary heap satisfies one of the following two properties: Maximum heap: The priority of each parent node is greater than or equal to the priority of its child node, which is suitable for tasks that need to be executed with higher priority first (such as in a scheduling system, the task with the highest priority is executed first); Minimum heap: The priority of each parent node is less than or equal to the priority of its child node, which is suitable for prioritizing tasks with lower priority, or in some cases, for the task with the shortest time first. According to the preset binary heap structure, the system converts all the priority information of the pop-up box (which may include digital values or other identifiers indicating priority) into nodes of the binary heap, and adjusts the node position according to the characteristics of the heap. The priority information of each pop-up box (such as priority value, pop-up box ID, etc.) is used as an element of the heap, and is converted and stored using the structure of the binary tree. When converting this priority information into a binary heap, the system will insert the priority value and the corresponding pop-up box ID as data into the heap structure, and ensure that the sequential nature of the heap is maintained (such as a max heap). After completing the priority data conversion, the system will obtain a complete binary heap, which contains the priority information of all pop-ups. This binary heap can support efficient priority scheduling. For example, in a max heap, elements with larger priority values will be located at the root node, so that the pop-up box with the highest priority can be quickly found for pop-up box scheduling. In addition to binary heaps, the system can also use other data structures such as priority queues to manage priorities. In some simple scenarios, priority queues are relatively easy to implement and have good efficiency.
[0080] This application optimizes the management of priorities by performing binary heap processing on priorities, so that the system can efficiently select the task with the highest priority among multiple pop-up scheduling tasks.
[0081] In some optional implementations of this embodiment, after the above step of calling the pop-up window object when the scheduling information corresponding to the target pop-up window is received, and modifying the display state and the priority according to the scheduling information, it also includes:
[0082] Recording the display status and the priority modification log in real time;
[0083] Perform scheduling optimization analysis according to the modification log and generate a scheduling optimization report;
[0084] According to the scheduling optimization report, the display status and the storage method of the priority in the pop-up window object are updated.
[0085] In this embodiment, after each scheduling information is triggered, the system will not only update the display status and priority of the pop-up box, but also record the detailed information of these changes in real time. These records will be stored in the form of logs, which usually include the following: Change time: record the timestamp of the status and priority change, which is convenient for tracking the history of pop-up box scheduling; Old status and priority: record the display status and priority before the change, which helps the system to trace back historical operations; New status and priority: record the display status and priority after the change; Operation source: identify which part of the scheduling information triggered this change. After recording the modification log, the system can optimize and analyze the efficiency of pop-up box scheduling based on these log data. The focus of the analysis usually includes: Scheduling frequency: analyze the frequency of changes in the display status and priority of the pop-up box to understand whether there are pop-ups that change frequently, which may have a negative impact on the user experience; Repeated changes in priority: check whether the priority fluctuates frequently, analyze the reasons for the change in priority, and whether the decision algorithm needs to be optimized; The correlation between display status and priority: optimize the scheduling strategy of the pop-up box by analyzing the changes in display status and priority. For example, if the status of some pop-ups changes frequently but the priority does not change much, the system may choose to reduce its scheduling times. The results of the scheduling optimization analysis will form a scheduling optimization report, which may include: scheduling strategy efficiency: for example, whether the current priority adjustment mechanism is efficient; potential bottlenecks: whether there are some pop-up boxes that frequently have problems due to improper scheduling strategies; improvement suggestions: for example, how to adjust the scheduling strategy to improve the overall system performance and user experience. Through the report generated by the scheduling optimization analysis, the system can optimize the current scheduling method. Specific optimization methods include: adjusting the storage strategy: if the optimization analysis report shows that the priority or display status of some pop-up boxes changes frequently, the system may choose to cache the status information of these pop-up boxes in memory, thereby reducing the number of frequent reads of the database or external storage device; dynamically updating the data structure: if the scheduling strategy of some pop-up boxes needs to be optimized, the system can adjust the storage method of data structures such as binary heaps and hash tables according to the optimization report to make it more in line with the current scheduling requirements; improving the scheduling algorithm: if the existing scheduling algorithm has defects, the system can adjust the priority algorithm according to the report, and even consider introducing machine learning or intelligent algorithms to more accurately predict and adjust the scheduling order of the pop-up boxes.
[0086] This application can provide detailed operation logs and scheduling optimization reports to system administrators by recording modification logs of display status and priority in real time, so that the system can quickly trace and locate the root cause of the problem when a scheduling problem occurs. In addition, the scheduling optimization analysis based on these logs can provide data support for future scheduling decisions, thereby improving the intelligence level of the scheduling strategy of the entire system. Through continuous optimization of the scheduling process, the system can continuously improve the accuracy and efficiency of pop-up scheduling during operation, thereby further improving user experience and system stability.
[0087] In some optional implementations of this embodiment, after the above step of calling the pop-up window object when the scheduling information corresponding to the target pop-up window is received, and modifying the display state and the priority according to the scheduling information, it also includes:
[0088] When the display status and the priority level modification fail, a preset alarm message is sent to the administrator user terminal.
[0089] In this embodiment, the dynamic scheduling system may encounter a variety of reasons that cause the modification of the display status or priority to fail. For example, the status or priority of the pop-up box may not be updated as expected due to database failure, network delay, or other system errors. In order to ensure the stable operation of the system and to be able to respond in time when problems arise, the system needs to have an error detection and alarm mechanism. Once the modification of the display status and priority fails, the system will automatically trigger an alarm and send the preset alarm information to the administrator user end. The alarm information may include: error type, error time, pop-up box ID involved, possible causes or suggestions, administrator operation instructions, etc.
[0090] By adding an alarm mechanism during the scheduling process, this application can promptly notify the administrator when the display status and priority modification fails, preventing the system from entering an abnormal state. This can not only improve the system's fault tolerance, but also reduce potential losses caused by erroneous scheduling. Through real-time alarms, administrators can respond in the shortest time to fix problems and ensure the stable operation of the system, thereby enhancing the system's security, reliability and real-time response capabilities. Especially under high load conditions, it can effectively prevent a decline in user experience or system crashes due to scheduling errors.
[0091] In some optional implementations of this embodiment, after the above step of storing the display state and the priority in a preset pop-up window object, the method further includes:
[0092] The display status and the priority are stored in a preset blockchain node.
[0093] In this embodiment, blockchain, as a distributed ledger technology, has the advantages of decentralization, immutability and transparency. The system ensures that these key information is safe and immutable in the network by storing the display status and priority of the pop-up box in the blockchain node. Assume that the dynamic pop-up box scheduling system of the Miner's Lamp applet is running and has integrated blockchain technology: first, the system encapsulates these data into a transaction or block based on the display status and priority information of the pop-up box; then, the transaction or block is submitted to the preset node in the blockchain network through the blockchain API, and the nodes in the network will verify the legitimacy of the information through the consensus mechanism; finally, once the transaction is confirmed and written to the blockchain, the display status and priority of the pop-up box are permanently stored in the blockchain, and anyone can query the information.
[0094] This application stores the display status and priority data of the pop-up box in the blockchain node. This method ensures the immutability and traceability of the data. The decentralized nature of the blockchain makes all operations of the pop-up box scheduling traceable and verifiable, preventing the data from being maliciously tampered with or forged.
[0095] It should be emphasized that in order to further ensure the privacy and security of the above display status and the above priority, the above display status and the above priority can also be stored in a node of a blockchain.
[0096] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0097] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0098] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0099] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0100] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0101] Further references Figure 3 , as a response to the above Figure 2 The present application provides an embodiment of a dynamic pop-up window scheduling processing device for a miner's lamp applet. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0102] like Figure 3 As shown, the dynamic pop-up window scheduling processing device 300 of the miner's lamp applet described in this embodiment includes: an acquisition module 301, a determination module 302, a storage module 303 and a calling module 304. Among them:
[0103] The acquisition module 301 is used to obtain the subscription notification information corresponding to the target pop-up window in the miner's lamp applet;
[0104] A determination module 302, configured to determine a display state and a priority of a target pop-up window according to the subscription notification information;
[0105] The storage module 303 is used to store the display state and the priority in a preset pop-up window object;
[0106] The calling module 304 is used to call the pop-up window object when receiving the scheduling information corresponding to the target pop-up window, and modify the display state and the priority according to the scheduling information.
[0107] The dynamic pop-up window scheduling and processing device for the mining lamp mini program provided in the present application realizes intelligent scheduling of the pop-up window in the mining lamp mini program by obtaining the subscription notification information of the target pop-up window and dynamically determining its display status and priority. It can also adjust the display priority and status of the pop-up window according to the real-time scheduling information, thereby improving the flexibility of the pop-up window display and the timeliness of the system response, reducing the interference of user operations, and improving the fluency of interface interaction. At the same time, it also reduces the complexity of the developer's work, making the pop-up window scheduling more automated and efficient.
[0108] In some optional implementations of this embodiment, the storage module 303 is further used to:
[0109] Establishing a corresponding hash table according to the display state;
[0110] Establish a corresponding binary heap according to the priority;
[0111] The hash table and the binary heap are encapsulated into the pop-up window object.
[0112] The dynamic pop-up window scheduling and processing device for the miner's lamp applet provided in the present application optimizes the efficiency of data storage and scheduling by storing the pop-up window display status and priority in a hash table and a binary heap respectively. The hash table can quickly search and update according to the display status, thereby improving the speed of data management; the binary heap realizes efficient priority scheduling through its unique structure, so that the pop-up window is displayed in order according to the set priority. This optimizes memory usage and improves the system's ability to handle multiple pop-up windows, ensuring efficient scheduling in complex scenarios.
[0113] In some optional implementations of this embodiment, the storage module 303 is further used to:
[0114] Configure according to the preset table configuration information to obtain an initial hash table;
[0115] The initial hash table is filled according to the display state to obtain the hash table.
[0116] The dynamic pop-up window scheduling processing device for the miner's lamp applet provided in this application further improves the flexibility and adaptability of pop-up window scheduling by configuring a hash table according to the display status and filling in the initial data. The configuration of the initial hash table can be dynamically adjusted according to system requirements to ensure that data management can accurately reflect the current status; by filling in the display status, the system can update the status in real time to ensure that the pop-up window display logic meets the user's usage requirements. This enhances the scalability and dynamic adjustment capabilities of the system, and can flexibly respond to different environmental changes and requirements.
[0117] In some optional implementations of this embodiment, the storage module 303 is further used to:
[0118] The priority is converted into data according to a preset binary tree data structure to obtain the binary heap.
[0119] The dynamic pop-up scheduling processing device for the mining lamp applet provided in the present application optimizes the management of priorities by performing binary heap processing on priorities, so that the system can efficiently select the task with the highest priority among multiple pop-up scheduling tasks.
[0120] In some optional implementations of this embodiment, the calling module 304 is further used to:
[0121] Recording the display status and the priority modification log in real time;
[0122] Perform scheduling optimization analysis according to the modification log and generate a scheduling optimization report;
[0123] According to the scheduling optimization report, the display status and the storage method of the priority in the pop-up window object are updated.
[0124] The dynamic pop-up scheduling processing device for the miner's lamp applet provided in this application can provide detailed operation logs and scheduling optimization reports for system administrators by recording the modification logs of display status and priority in real time, so that the system can quickly trace and locate the root cause of the problem when a scheduling problem occurs. In addition, the scheduling optimization analysis based on these logs can provide data support for future scheduling decisions, thereby improving the intelligence level of the scheduling strategy of the entire system. Through continuous optimization of the scheduling process, the system can continuously improve the accuracy and efficiency of pop-up scheduling during operation, thereby further improving user experience and system stability.
[0125] In some optional implementations of this embodiment, the calling module 304 is further used to:
[0126] When the display status and the priority level modification fail, a preset alarm message is sent to the administrator user terminal.
[0127] The dynamic pop-up scheduling processing device for the mining lamp applet provided in the present application can promptly notify the administrator when the display status and priority modification fails by adding an alarm mechanism during the scheduling process, thereby preventing the system from entering an abnormal state. This can not only improve the fault tolerance of the system, but also reduce the potential losses caused by erroneous scheduling; through real-time alarms, administrators can respond in the shortest time, fix problems, and ensure the stable operation of the system, thereby enhancing the security, reliability and real-time response capabilities of the system, especially under high load conditions, and can effectively prevent the user experience from degrading or system crashes due to scheduling errors.
[0128] In some optional implementations of this embodiment, the calling module 304 is further used to:
[0129] The display status and the priority are stored in a preset blockchain node.
[0130] The dynamic pop-up window scheduling processing device for the miner's lamp applet provided in the present application ensures the immutability and traceability of the data by storing the display status and priority data of the pop-up window in the blockchain node. The decentralized nature of the blockchain enables all operations of the pop-up window scheduling to be traced and verified, preventing the data from being maliciously tampered with or forged.
[0131] To solve the above technical problems, the present application also provides a computer device. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.
[0132] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 4 with components 41-43, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0133] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0134] The memory 41 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 41 can be an internal storage unit of the computer device 4, such as a hard disk or memory of the computer device 4. In other embodiments, the memory 41 can also be an external storage device of the computer device 4, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. equipped on the computer device 4. Of course, the memory 41 can also include both the internal storage unit of the computer device 4 and its external storage device. In this embodiment, the memory 41 is generally used to store the operating system and various application software installed on the computer device 4, such as computer-readable instructions of the dynamic pop-up box scheduling processing method of the mining lamp applet, etc. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or are to be output.
[0135] The processor 42 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 42 is generally used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to run the computer-readable instructions stored in the memory 41 or process data, such as running the computer-readable instructions of the dynamic pop-up window scheduling processing method of the mining lamp applet.
[0136] The network interface 43 may include a wireless network interface or a wired network interface. The network interface 43 is generally used to establish a communication connection between the computer device 4 and other electronic devices.
[0137] The computer device provided in the present application realizes intelligent scheduling of the pop-up boxes in the mining lamp applet by obtaining the subscription notification information of the target pop-up window and dynamically determining its display status and priority, and can adjust the display priority and status of the pop-up box according to the real-time scheduling information, thereby improving the flexibility of the pop-up box display and the timeliness of the system response, reducing the interference of user operations, and improving the fluency of interface interaction. At the same time, it also reduces the complexity of the developer's work, making the pop-up box scheduling more automated and efficient.
[0138] The present application also provides another embodiment, namely, providing a computer-readable storage medium, which stores computer-readable instructions, and the computer-readable instructions can be executed by at least one processor to enable the at least one processor to perform the steps of the dynamic pop-up window scheduling processing method of the mining lamp applet as mentioned above.
[0139] The computer-readable storage medium provided by the present application realizes intelligent scheduling of pop-up windows in the mining lamp applet by obtaining subscription notification information of the target pop-up window and dynamically determining its display status and priority, and can adjust the display priority and status of the pop-up window according to real-time scheduling information, thereby improving the flexibility of the pop-up window display and the timeliness of the system response, reducing the interference of user operations, and improving the fluency of interface interaction. At the same time, it also reduces the complexity of the developer's work, making the pop-up window scheduling more automated and efficient.
[0140] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0141] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. A method for dynamic pop-up window scheduling and processing of a miner's lamp applet, characterized in that: The steps include: Get the subscription notification information corresponding to the target pop-up window in the Miner’s Lamp applet; Determine the display status and priority of the target pop-up window according to the subscription notification information; Storing the display state and the priority in a preset pop-up window object; When the scheduling information corresponding to the target pop-up window is received, the pop-up window object is called, and the display state and the priority are modified according to the scheduling information.
2. The method for dynamic pop-up window scheduling of the miner's lamp applet according to claim 1 is characterized in that: The step of storing the display state and the priority in a preset pop-up window object specifically includes: Establishing a corresponding hash table according to the display state; Establish a corresponding binary heap according to the priority; The hash table and the binary heap are encapsulated into the pop-up window object.
3. The method for dynamic pop-up window scheduling of the miner's lamp applet according to claim 2 is characterized in that: The step of establishing a corresponding hash table according to the display state specifically includes: Configure according to the preset table configuration information to obtain an initial hash table; The initial hash table is filled according to the display state to obtain the hash table.
4. The method for dynamic pop-up window scheduling of a miner's lamp applet according to claim 2 is characterized in that: The step of establishing a corresponding binary heap according to the priority specifically includes: The priority is converted into data according to a preset binary tree data structure to obtain the binary heap.
5. The method for dynamic pop-up window scheduling of a miner's lamp applet according to claim 1 is characterized in that: After the step of calling the pop-up window object when the scheduling information corresponding to the target pop-up window is received and modifying the display state and the priority according to the scheduling information, the method further includes: Recording the display status and the modification log of the priority in real time; Perform scheduling optimization analysis according to the modification log and generate a scheduling optimization report; According to the scheduling optimization report, the display status and the storage method of the priority in the pop-up window object are updated.
6. The method for dynamic pop-up window scheduling of a miner's lamp applet according to claim 1 is characterized in that: After the step of calling the pop-up window object when the scheduling information corresponding to the target pop-up window is received and modifying the display state and the priority according to the scheduling information, the method further includes: When the display status and the priority level modification fail, a preset alarm message is sent to the administrator user terminal.
7. The method for dynamic pop-up window scheduling and processing of a miner's lamp applet according to any one of claims 1 to 6, characterized in that: After the step of storing the display state and the priority in a preset pop-up window object, the method further includes: The display status and the priority are stored in a preset blockchain node.
8. A dynamic pop-up window scheduling and processing device for a miner's lamp applet, characterized in that: include: The acquisition module is used to obtain the subscription notification information corresponding to the target pop-up window in the Miner's Lamp applet; A determination module, used to determine the display state and priority of the target pop-up window according to the subscription notification information; A storage module, used for storing the display state and the priority in a preset pop-up window object; The calling module is used to call the pop-up window object when receiving the scheduling information corresponding to the target pop-up window, and modify the display state and the priority according to the scheduling information.
9. A computer device, characterized in that: It includes a memory and a processor, the memory stores computer-readable instructions, and the processor implements the steps of the dynamic pop-up window scheduling processing method of the mining lamp applet as described in any one of claims 1 to 7 when executing the computer-readable instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the dynamic pop-up window scheduling processing method for the mining lamp applet as described in any one of claims 1 to 7.