Method and system for controlling popup window

By establishing a long connection between the server and the client in Socket mode, and generating pop-up instructions based on the identity and user alias, the problem of overlapping and frequent display of pop-ups when the client is triggered simultaneously in different scenarios is solved, improving system efficiency and Resource utilization.

CN119356784APending Publication Date: 2025-01-24E SURFING VISION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411429875.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

In the prior art, when the client is triggered at the same time in different scenarios, multiple pop-up windows will overlap or display frequently, resulting in waste of resources and inefficiency.

Method used

By establishing a long connection between the server and the client based on the Socket method, the pop-up window instructions are generated and issued based on the identity and user alias, and pop-up windows are controlled only when specific trigger conditions are met to avoid unnecessary pop-up windows.

Benefits of technology

It improves the overall efficiency and resource utilization of the system, avoids unnecessary pop-up push and waste of resources, and ensures timely response to pop-ups and important information is not discarded.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119356784A_ABST
    Figure CN119356784A_ABST
Patent Text Reader

Abstract

The invention relates to a method and a system for controlling a popup window, and belongs to the technical field of computers, the method comprises the following steps: under the condition of establishing connection between a server and a client based on a Socket mode, establishing long connection communication according to an identity label and a user alias; when it is detected that the server is triggered, generating a popup window instruction corresponding to the trigger type according to the trigger type; determining a target client according to the user alias, and issuing the pop-up window instruction to the target client; and determining the popup configuration of the target client, and controlling the popup instruction to perform popup based on the popup configuration. According to the method, unnecessary pop-up window pushing and resource waste are avoided. Only when the specific triggering condition is met, the pop-up window instruction is generated and issued, so that the overall efficiency and the resource utilization rate of the system are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer technology, and in particular, relates to a method and system for controlling a pop-up window. Background Art

[0002] In the related art, since the client business requires a pop-up window with high timeliness, and different types of pop-ups need to be displayed in different scenarios. When different scenarios are triggered at the same time, multiple pop-ups will overlap on the client at the same time, or the pop-ups will be displayed very frequently. Since the prompt content of the pop-up window is relatively important, especially the alarm pop-up window of similar equipment, it cannot be discarded under normal circumstances. Therefore, how to better control the pop-up window has become an urgent problem to be solved. Summary of the invention

[0003] In view of the above shortcomings of the prior art, the purpose of the invention is to provide a method and system for controlling pop-up windows. The method avoids unnecessary pop-up window pushes and resource waste. Only when specific trigger conditions are met will a pop-up window instruction be generated and issued, thereby improving the overall efficiency and resource utilization of the system.

[0004] The first aspect of the present invention proposes a method for controlling pop-up windows, including: S1, establishing a long connection communication based on an identity identifier and a user alias when establishing a connection between a server and a client based on a Socket method; S2, when detecting that the server is triggered, generating a pop-up window instruction corresponding to the trigger type according to the trigger type; S3, determining a target client according to the user alias, and sending the pop-up window instruction to the target client; S4, determining a pop-up window configuration of the target client, and controlling the pop-up window instruction to pop up based on the pop-up window configuration.

[0005] Furthermore, establishing a long connection communication based on the identity identifier and the user alias includes: sending the identity identifier to the client; when the client receives the identity identifier, sending the user alias to the server; binding the identity identifier and the user alias to establish the long connection communication.

[0006] Further, the target client is determined according to the user alias, and the pop-up instruction is sent to the target client, including: determining the identity identifier corresponding to the user alias based on the binding relationship between the user alias and the identity identifier; determining the target client according to the identity identifier corresponding to the user alias, and the target client includes one or more; and sending the pop-up instruction to the target client.

[0007] Furthermore, the pop-up window configuration includes a switch state and a pop-up window frequency, wherein determining the pop-up window configuration of the target client includes: determining a pop-up window type, wherein the pop-up window type includes one or more; customizing the pop-up window configuration corresponding to the pop-up window type, wherein the client corresponding to the same user alias has the same pop-up window configuration.

[0008] Furthermore, controlling the pop-up window instruction to pop up based on the pop-up window configuration includes: determining the switch state; when the switch state is on, obtaining the pop-up window frequency; when the pop-up window frequency is not less than the target frequency, determining whether the pop-up window instruction exists in the instruction list; when it is determined that the pop-up window instruction does not exist in the instruction list, adding the pop-up window instruction to the instruction list, and controlling the pop-up window instruction to pop up based on the instruction list and the preset timing.

[0009] Furthermore, it also includes: when the pop-up frequency is not greater than the target frequency, determining whether the pop-up instruction exists in the instruction list; when it is determined that the pop-up instruction exists in the instruction list, controlling the pop-up instruction to pop up, and clearing the instructions before the pop-up instruction in the instruction list; when it is determined that the pop-up instruction does not exist in the instruction list, controlling the pop-up instruction to pop up, and clearing the instructions in the instruction list.

[0010] Furthermore, it also includes: when the switch state is off, discarding the pop-up window instruction.

[0011] The second aspect of the present invention proposes a system for controlling pop-up windows, including: an establishment module, which is used to establish a long connection communication according to an identity identifier and a user alias when establishing a connection between a server and a client based on a Socket method; a generation module, which is used to generate a pop-up window instruction corresponding to the trigger type according to the trigger type when it is detected that the server is triggered; a sending module, which is used to determine the target client according to the user alias and send the pop-up window instruction to the target client; a control module, which is used to determine the pop-up window configuration of the target client and control the pop-up window instruction to pop up based on the pop-up window configuration.

[0012] According to a third aspect of the present invention, an electronic device is proposed, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any of the methods described in the first aspect of the present invention.

[0013] According to a fourth aspect of the present invention, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any one of the methods according to the first aspect of the present invention.

[0014] The beneficial effects of the present invention are as follows:

[0015] The method and system for controlling pop-up windows described in the present invention, in the case of establishing a connection between a server and a client based on a Socket method, establishes a long connection communication according to an identity identifier and a user alias; when detecting that the server is triggered, generates a pop-up window instruction corresponding to the trigger type according to the trigger type; determines the target client according to the user alias, and sends the pop-up window instruction to the target client; determines the pop-up window configuration of the target client, and controls the pop-up window instruction to pop up the window based on the pop-up window configuration. The method makes the data transmission between the server and the client more efficient and real-time by performing a long connection in a Socket method. When the server detects a trigger condition, it can quickly generate a pop-up window instruction and send it to the target client, thereby responding to user needs or device status changes in a timely manner. Through long connection communication and precise pop-up window control, the scheme avoids unnecessary pop-up window push and resource waste. Only when a specific trigger condition is met, a pop-up window instruction will be generated and sent, thereby improving the overall efficiency and resource utilization of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings are only used to illustrate specific embodiments and are not considered to limit the present invention. In the entire drawings, the same reference symbols represent the same components. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings.

[0017] Figure 1 is a flow chart of a method for controlling a pop-up window according to an embodiment of the present invention;

[0018] Figure 2 is a flow chart of a method for controlling a pop-up window according to a specific embodiment of the present invention;

[0019] Figure 3 is a schematic diagram of a system for controlling pop-up windows according to an embodiment of the present invention;

[0020] Figure 4 It is a structural block diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0021] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present invention.

[0022] Furthermore, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts disclosed in the present invention.

[0023] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the orientation or position relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. In addition, the terms "first", "second", and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. The terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0024] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of methods and systems consistent with some aspects of the present invention as detailed in the appended claims.

[0025] Because client services require pop-ups with high timeliness, and different types of pop-ups need to be displayed in different scenarios. When different scenarios are triggered at the same time, multiple pop-ups will overlap on the client, or the pop-ups will be displayed very frequently. Because the prompt content of the pop-up window is relatively important, especially the alarm pop-up window of the device, it cannot be discarded under normal circumstances.

[0026] To this end, the present invention proposes a method, system and related equipment for controlling pop-up windows. Specifically, the method, system and related equipment for controlling pop-up windows according to an embodiment of the present invention are described below with reference to the accompanying drawings.

[0027] Figure 1 1 is a flow chart of a method for controlling a pop-up window according to an embodiment of the present invention. It should be noted that the method for controlling a pop-up window according to an embodiment of the present invention can be applied to a system for controlling a pop-up window according to an embodiment of the present invention. The system for controlling a pop-up window can be configured on an electronic device or in a server. This embodiment of the present application does not limit this.

[0028] like Figure 1 As shown, the method of controlling the pop-up window includes:

[0029] S110, when a connection is established between the server and the client based on the Socket method, a long connection communication is established according to the identity identifier and the user alias.

[0030] In an embodiment of the present invention, when a connection between a server and a client is established based on a Socket method, an identity identifier is sent to the client; when the client receives the identity identifier, a user alias is sent to the server; the identity identifier and the user alias are bound to establish a long connection communication.

[0031] That is to say, when the client is initialized, it needs to establish a connection with the server through Socket. When the connection is established, the server assigns the client an identity ID, which uniquely marks the client device. When the client obtains the identity ID, it sends a user alias to the server. The server binds the identity ID and the user alias to establish a long connection communication. The identity ID and the user alias can ensure that the same user on different devices shares a set of pop-up switches and frequency configurations. Different users on the same device do not share a set of pop-up switches and frequency configurations.

[0032] S120: When it is detected that the server is triggered, a pop-up window instruction corresponding to the trigger type is generated according to the trigger type.

[0033] In an embodiment of the present invention, the server is triggered by the IoT device and generates a pop-up window instruction corresponding to the trigger type according to the trigger type. That is, when the server detects a trigger condition, it generates one or more pop-up window instructions according to a preset rule or logic.

[0034] The trigger types include but are not limited to equipment failure, equipment status change (such as abnormal temperature, excessive humidity, etc.), user operation (such as remote request, manual alarm, etc.), or other external events (such as network failure, power outage, etc.). For example, if the trigger type is equipment failure, the pop-up window instruction generated includes fault information, fault code, possible solutions, etc.; if the trigger type is some information requested by the user, the pop-up window instruction generated is to display the data requested by the user.

[0035] S130, determining a target client according to the user alias, and sending a pop-up window instruction to the target client.

[0036] In an embodiment of the present invention, based on the binding relationship between the user alias and the identity identifier, the identity identifier corresponding to the user alias is determined; the target client is determined according to the identity identifier corresponding to the user alias, and the target client includes one or more; and the pop-up instruction is sent to the target client.

[0037] S140, determining the pop-up window configuration of the target client, and controlling the pop-up window instruction to perform a pop-up window based on the pop-up window configuration.

[0038] Among them, the pop-up window configuration includes the switch status and pop-up window frequency.

[0039] In an embodiment of the present invention, when the target client receives a pop-up window instruction, it can control the pop-up window instruction through the pop-up window configuration to perform a pop-up window. The specific implementation method can refer to the subsequent embodiments.

[0040] According to the method for controlling pop-up windows of an embodiment of the present invention, when a server and a client are connected based on a Socket method, a long connection communication is established according to an identity identifier and a user alias; when it is detected that the server is triggered, a pop-up window instruction corresponding to the trigger type is generated according to the trigger type; the target client is determined according to the user alias, and the pop-up window instruction is sent to the target client; the pop-up window configuration of the target client is determined, and the pop-up window instruction is controlled to perform a pop-up window based on the pop-up window configuration. The method makes the data transmission between the server and the client more efficient and real-time by making a long connection in a Socket method. When the server detects a trigger condition, it can quickly generate a pop-up window instruction and send it to the target client, so as to respond to user needs or changes in device status in a timely manner. Through long connection communication and precise pop-up window control, the scheme avoids unnecessary pop-up window push and resource waste. Only when a specific trigger condition is met will a pop-up window instruction be generated and sent, thereby improving the overall efficiency and resource utilization of the system.

[0041] In order to make it easier for those skilled in the art to understand the present invention, Figure 2 A method for controlling a pop-up window according to a specific embodiment of the present invention is as follows. Figure 2 As shown, the method for controlling the pop-up window includes:

[0042] S210, when the connection between the server and the client is established based on the Socket method, a long connection communication is established according to the identity identifier and the user alias.

[0043] S220: When it is detected that the server is triggered, a pop-up window instruction corresponding to the trigger type is generated according to the trigger type.

[0044] S230, determining a target client according to the user alias, and sending a pop-up window instruction to the target client.

[0045] In the embodiment of the present invention, the implementation of steps S210 - S230 may refer to the implementation of steps S110 - S130 described above, and the present invention will not elaborate on this.

[0046] S240: Determine the pop-up window configuration of the target client.

[0047] Among them, the pop-up window configuration includes the switch status and pop-up window frequency.

[0048] In an embodiment of the present invention, a pop-up window type is determined, and the pop-up window type includes one or more types; a pop-up window configuration corresponding to a custom pop-up window type is configured, wherein clients corresponding to the same user alias have the same pop-up window configuration. Then, the pop-up window configuration corresponding to the custom pop-up window type is sent to a server, so that the server determines the pop-up window configuration of the target client.

[0049] Among them, pop-up window types include but are not limited to information prompt pop-up windows, information confirmation pop-up windows, content submission pop-up windows, floating pop-up windows, etc.

[0050] S250, performing a pop-up window based on the pop-up window configuration and controlling the pop-up window instruction.

[0051] In an embodiment of the present invention, the switch state is determined; when the switch state is on, the pop-up frequency is obtained; when the pop-up frequency is not less than the target frequency, it is determined whether the pop-up instruction exists in the instruction list; when it is determined that the pop-up instruction does not exist in the instruction list, the pop-up instruction is added to the instruction list, and the pop-up instruction is controlled based on the instruction list and the preset timing to perform the pop-up.

[0052] Among them, when the pop-up frequency is not greater than the target frequency, determine whether the pop-up instruction is in the instruction list; when it is determined that the pop-up instruction exists in the instruction list, control the pop-up instruction to pop up, and clear the instructions before the pop-up instruction in the instruction list; when it is determined that the pop-up instruction does not exist in the instruction list, control the pop-up instruction to pop up, and clear the instructions in the instruction list.

[0053] The target frequency value is the difference between the current time and the last pop-up window display time.

[0054] For example, when the switch state is on, get the pop-up frequency. When the pop-up frequency is not less than the target frequency, determine whether the pop-up instruction is in the instruction list. If it exists in the list, skip it and do not process it. If it does not exist in the list, add it to the list and start the timer polling at the same time. When the pop-up frequency is not greater than the target frequency, first determine whether the pop-up instruction is in the instruction list. If it exists in the instruction list, display the pop-up instruction and clear all instructions before it. If it does not exist in the instruction list, it means that the pop-up instruction has the highest priority, then display the pop-up instruction directly and clear the instructions in the list.

[0055] In one embodiment of the present invention, when the switch state is off, the pop-up window instruction is discarded.

[0056] According to the method for controlling pop-up windows in an embodiment of the present invention, a long connection between the server and the client is established through the Socket method, which ensures the real-time and stability of data transmission; the binding mechanism of the identity identifier ID and the user alias alias enables the server to accurately identify and locate the specific client device and its user, thereby realizing the refined management of different devices and users; the server can generate corresponding pop-up window instructions according to the trigger type of the IoT device (such as device failure, state change, user operation, etc.), thereby improving the response speed and accuracy of the system; the target client is determined through the user alias, and the pop-up window instructions are accurately sent to the target client, ensuring the timely transmission and reception of information; the pop-up window configuration includes the switch state and the pop-up window frequency, users can customize the settings according to their own needs, which improves the flexibility of the system and user experience; the clients corresponding to the same user alias have the same pop-up configuration, ensuring the consistency and continuity of pop-up information between different devices; based on the pop-up configuration (switch status and pop-up frequency), the display of pop-up instructions is intelligently controlled to avoid excessive interference and omission of information; through the instruction list and preset timing mechanism, the orderly display and polling of pop-up instructions are realized, which improves the stability and reliability of the system; the accurate issuance and personalized configuration of pop-up instructions enable users to obtain the required information in a timely manner, improving the system's availability and user satisfaction; the intelligent pop-up control strategy avoids unnecessary pop-up interference and improves the user experience.

[0057] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment 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, or network device, etc.) to execute the methods of each embodiment of the present application.

[0058] According to one aspect of an embodiment of the present invention, a system for controlling a pop-up window is also provided. Figure 3 is a schematic diagram of a system for controlling pop-up windows according to an embodiment of the present invention; Figure 3 As shown, including:

[0059] Establishing module 310, for establishing a long connection communication according to the identity identifier and the user alias when establishing a connection between the server and the client based on the Socket mode;

[0060] A generating module 320, configured to generate a pop-up window instruction corresponding to the trigger type according to the trigger type when detecting that the server is triggered;

[0061] A sending module 330, configured to determine a target client according to the user alias, and send the pop-up window instruction to the target client;

[0062] The control module 340 is used to determine the pop-up window configuration of the target client, and control the pop-up window instruction to pop up the window based on the pop-up window configuration.

[0063] According to the system for controlling pop-up windows of an embodiment of the present invention, when a server and a client are connected based on a Socket method, a long connection communication is established according to an identity identifier and a user alias; when it is detected that the server is triggered, a pop-up window instruction corresponding to the trigger type is generated according to the trigger type; the target client is determined according to the user alias, and the pop-up window instruction is sent to the target client; the pop-up window configuration of the target client is determined, and the pop-up window instruction is controlled to perform a pop-up window based on the pop-up window configuration. Thus, by making a long connection in the Socket method, the data transmission between the server and the client is more efficient and real-time. When the server detects a trigger condition, it can quickly generate a pop-up window instruction and send it to the target client, so as to respond to user needs or changes in device status in a timely manner, and avoid unnecessary pop-up window push and resource waste through long connection communication and precise pop-up window control. Only when a specific trigger condition is met will a pop-up window instruction be generated and sent, thereby improving the overall efficiency and resource utilization of the system.

[0064] Optionally, a module 310 is established, specifically used to send the identity identifier to the client; when the client receives the identity identifier, send the user alias to the server; bind the identity identifier and the user alias to establish the long connection communication.

[0065] Optionally, the sending module 330 is specifically used to determine the identity identifier corresponding to the user alias based on the binding relationship between the user alias and the identity identifier; determine the target client according to the identity identifier corresponding to the user alias, and the target client includes one or more; and send the pop-up instruction to the target client.

[0066] Optionally, the pop-up window configuration includes a switch status and a pop-up window frequency, wherein the control module 340 is specifically used to determine the pop-up window type, and the pop-up window type includes one or more; customize the pop-up window configuration corresponding to the pop-up window type, wherein the client corresponding to the same user alias has the same pop-up window configuration.

[0067] Optionally, the control module 340 is specifically used to determine the switch state; when the switch state is on, obtain the pop-up frequency; when the pop-up frequency is not less than the target frequency, determine whether the pop-up instruction exists in the instruction list; when it is determined that the pop-up instruction does not exist in the instruction list, add the pop-up instruction to the instruction list, and control the pop-up instruction to pop up based on the instruction list and the preset timing.

[0068] Optionally, the control module 340 is specifically used to determine whether the pop-up instruction exists in the instruction list when the pop-up frequency is not greater than the target frequency; when it is determined that the pop-up instruction exists in the instruction list, control the pop-up instruction to pop up and clear the instructions before the pop-up instruction in the instruction list; when it is determined that the pop-up instruction does not exist in the instruction list, control the pop-up instruction to pop up and clear the instructions in the instruction list.

[0069] Optionally, the control module 340 is specifically configured to discard the pop-up window instruction when the switch state is off.

[0070] According to one aspect of an embodiment of the present invention, an electronic device is provided.

[0071] Figure 4 Schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Figure 4 As shown, the electronic device may include one or more ( Figure 4Only one is shown in the figure) processor 102 (processor 102 may include but is not limited to a microprocessor (Microprocessor Unit, referred to as MPU) or a programmable logic device (Programmable logic device, referred to as PLD)) and a memory 104 for storing data. In an exemplary embodiment, the electronic device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 4 The structure shown is for illustration only and does not limit the structure of the above terminal device. Figure 4 More or fewer components as shown, or with Figure 4 Equivalent functions or comparisons shown Figure 4 A different configuration with more features is shown.

[0072] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for controlling pop-up windows in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the terminal device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0073] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the switching device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0074] The present invention provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute a method for controlling a pop-up window.

[0075] The applicant of the present invention has made a detailed explanation and description of the implementation examples of the present invention in conjunction with the drawings in the specification. However, those skilled in the art should understand that the above implementation examples are only preferred implementation schemes of the present invention, and the detailed description is only to help readers better understand the spirit of the present invention, but not to limit the scope of protection of the present invention. On the contrary, any improvements or modifications based on the inventive spirit of the present invention should fall within the scope of protection of the present invention.

[0076] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0077] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.

[0078] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the above embodiments, or replace some of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. Any changes or replacements that can be easily thought of by those skilled in the art within the technical scope disclosed in the present invention should be covered within the protection scope of the present invention.

Claims

1. A method for controlling a pop-up window, characterized in that: include: S1, when the server and client are connected based on the Socket method, a long connection communication is established according to the identity identifier and user alias; S2, when it is detected that the server is triggered, generating a pop-up window instruction corresponding to the trigger type according to the trigger type; S3, determining a target client according to the user alias, and sending the pop-up window instruction to the target client; S4, determining the pop-up window configuration of the target client, and controlling the pop-up window instruction to perform a pop-up window based on the pop-up window configuration.

2. The method for controlling a pop-up window according to claim 1, characterized in that: Establish a persistent connection based on the identity and user alias, including: Sending the identity to the client; When the client receives the identity identifier, sending the user alias to the server; The identity identifier and the user alias are bound to establish the long connection communication.

3. The method for controlling a pop-up window according to claim 2, characterized in that: Determining a target client according to the user alias, and sending the pop-up window instruction to the target client, includes: Determine the identity identifier corresponding to the user alias based on the binding relationship between the user alias and the identity identifier; Determine the target client according to the identity identifier corresponding to the user alias, where the target client includes one or more; The pop-up window instruction is sent to the target client.

4. The method for controlling a pop-up window according to claim 1, characterized in that: The pop-up window configuration includes a switch state and a pop-up window frequency, wherein determining the pop-up window configuration of the target client includes: Determine a pop-up window type, where the pop-up window type includes one or more types; The pop-up window configuration corresponding to the pop-up window type is customized, wherein the clients corresponding to the same user alias have the same pop-up window configuration.

5. The method for controlling a pop-up window according to claim 4, characterized in that: Controlling the pop-up window instruction to pop up a window based on the pop-up window configuration includes: determining the switch state; When the switch state is on, obtaining the pop-up window frequency; When the pop-up window frequency is not less than the target frequency, determining whether the pop-up window instruction exists in the instruction list; When it is determined that the pop-up window instruction does not exist in the instruction list, the pop-up window instruction is added to the instruction list, and the pop-up window instruction is controlled to pop up based on the instruction list and a preset timing.

6. The method for controlling a pop-up window according to claim 5, characterized in that: Also includes: When the pop-up window frequency is not greater than the target frequency, determining whether the pop-up window instruction exists in the instruction list; When it is determined that the pop-up window instruction exists in the instruction list, controlling the pop-up window instruction to pop up, and clearing the instruction before the pop-up window instruction in the instruction list; When it is determined that the pop-up window instruction does not exist in the instruction list, the pop-up window instruction is controlled to be popped up, and the instructions in the instruction list are cleared.

7. The method for controlling a pop-up window according to claim 5, characterized in that: Also includes: When the switch state is off, the pop-up window instruction is discarded.

8. A system for controlling pop-up windows, characterized in that: include: Establish a module for establishing a long connection communication based on the identity identifier and user alias when establishing a connection between the server and the client based on the Socket method; A generating module, configured to generate a pop-up window instruction corresponding to the trigger type according to the trigger type when detecting that the server is triggered; A sending module, used for determining a target client according to the user alias, and sending the pop-up window instruction to the target client; The control module is used to determine the pop-up window configuration of the target client and control the pop-up window instruction to pop up the window based on the pop-up window configuration.

9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 7.