Information push method, device, electronic device and readable storage medium

By establishing a long connection between the server and the client, real-time message push is achieved, which solves the problem of message push delay in the existing technology and ensures timely and accurate delivery of messages.

CN115914329BActive Publication Date: 2024-10-29CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111146670.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-28
Publication Date
2024-10-29
Estimated Expiration
2041-09-28

AI Technical Summary

Technical Problem

In the existing technology, the server cannot push messages to the client in time when the connection is not established, resulting in message push delay.

Method used

By obtaining information about the message to be pushed and its target recipient, a long connection is established, and based on this long connection, the message is pushed to the target recipient to achieve real-time push of the message.

Benefits of technology

Ensure the timeliness and accuracy of message push, and solve the problem of message push delay when the server and client are not connected.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115914329B_ABST
    Figure CN115914329B_ABST
Patent Text Reader

Abstract

The present invention provides an information push method, device, electronic device and readable storage medium, the method comprising: obtaining information of a message to be pushed and its corresponding target recipient, wherein the target recipient comprises a communication page; establishing a long connection with the communication page corresponding to the target recipient according to the information of the target recipient; based on the long connection, pushing the message to be pushed to the target recipient, thereby realizing real-time push of the message, i.e. ensuring the timeliness of the message push.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to an information push method, device, electronic device and readable storage medium. Background Art

[0002] In the process of using a client, the client often needs to communicate with its corresponding server. For example, the server needs to push certain messages to the client.

[0003] Currently, when a server pushes a message to a client, if no connection is established between the server and the client, the server needs to establish a corresponding communication connection through the connection request after receiving the connection request sent by the client, so as to use the communication connection to push the message to the client.

[0004] However, since the server can push the message to the client through the connection established by the connection request only after receiving the connection request sent by the client, when the client does not send a connection request, the server cannot push the message, resulting in failure to push the message in time. Summary of the invention

[0005] The present invention provides an information push method, device, electronic device and readable storage medium to solve the technical problem in the prior art that messages cannot be pushed in time.

[0006] In a first aspect, the present invention provides an information push method, the method comprising:

[0007] Acquire information of a message to be pushed and its corresponding target recipient, wherein the target recipient includes a communication page;

[0008] Establishing a long connection with a communication page corresponding to the target recipient according to the information of the target recipient;

[0009] Based on the long connection, the message to be pushed is pushed to the target recipient.

[0010] In a possible design, the message to be pushed includes the latest version information of the target program, and the step of pushing the message to be pushed to the target recipient includes:

[0011] The latest version information of the target program is pushed to the target recipient, so that the target recipient determines whether to update the target program according to the latest version information.

[0012] In one possible design, the method further includes:

[0013] Obtain the system file to be processed and the system type of the terminal to be installed;

[0014] The system files to be processed are packaged according to the system type to generate target application files.

[0015] In a second aspect, the present invention provides an information push method, applied to a client, the method comprising:

[0016] Receiving a message to be pushed sent by a server, wherein the message to be pushed is sent through a long connection established between the server and a communication page on a client;

[0017] Execute corresponding operations according to the message to be pushed.

[0018] In one possible design, the method further includes:

[0019] Obtaining a process identifier to be updated, and obtaining a historical task node corresponding to a target historical version corresponding to the process identifier to be updated;

[0020] Obtaining task information corresponding to each historical task node, and obtaining the latest task node corresponding to the process identifier to be updated;

[0021] A target migration node is determined from the latest task node, and task information corresponding to all historical task nodes is saved to the target migration node.

[0022] In one possible design, the method further includes:

[0023] Obtain the current execution process identifier, and obtain the task node information corresponding to the current execution process identifier;

[0024] A process view corresponding to the currently executed process identifier is created according to the task node information.

[0025] In one possible design, the method further includes:

[0026] Obtaining logs to be processed, wherein the logs to be processed include page access logs and / or interface call logs;

[0027] System usage information is determined according to the page access log and / or the interface call log.

[0028] In one possible design, the method further includes:

[0029] Obtaining logs to be processed, wherein the logs to be processed include error logs;

[0030] The system problem information is determined according to the error log.

[0031] In a possible design, determining system problem information according to the error log includes:

[0032] Determine the error page and the error frequency corresponding to the error page according to the error log;

[0033] If the error frequency corresponding to the error page is greater than a preset frequency value, system problem information corresponding to the error page is generated.

[0034] In a third aspect, the present invention provides an information push device, comprising:

[0035] A first processing module is used to obtain information about the message to be pushed and its corresponding target recipient, wherein the target recipient includes a communication page;

[0036] The first processing module is further used to establish a long connection with a communication page corresponding to the target recipient according to the information of the target recipient;

[0037] The first transceiver module is used to push the message to be pushed to the target recipient based on the long connection.

[0038] In one possible design, the first transceiver module is further configured to:

[0039] The latest version information of the target program is pushed to the target recipient, so that the target recipient determines whether to update the target program according to the latest version information.

[0040] In a possible design, the first processing module is further used for:

[0041] Obtain the system file to be processed and the system type of the terminal to be installed;

[0042] The system files to be processed are packaged according to the system type to generate target application files.

[0043] In a fourth aspect, the present invention provides an information push device, applied to a client, the device comprising:

[0044] A second transceiver module is used to receive a message to be pushed sent by the server, wherein the message to be pushed is sent through a long connection established between the server and a communication page on the client;

[0045] The second processing module is used to perform corresponding operations according to the message to be pushed.

[0046] In a possible design, the second processing module is further used for:

[0047] Obtaining a process identifier to be updated, and obtaining a historical task node corresponding to a target historical version corresponding to the process identifier to be updated;

[0048] Obtaining task information corresponding to each historical task node, and obtaining the latest task node corresponding to the process identifier to be updated;

[0049] A target migration node is determined from the latest task node, and task information corresponding to all historical task nodes is saved to the target migration node.

[0050] In a possible design, the second processing module is further used for:

[0051] Obtain the current execution process identifier, and obtain the task node information corresponding to the current execution process identifier;

[0052] A process view corresponding to the currently executed process identifier is created according to the task node information.

[0053] In a possible design, the second processing module is further used for:

[0054] Obtaining logs to be processed, wherein the logs to be processed include page access logs and / or interface call logs;

[0055] System usage information is determined according to the page access log and / or the interface call log.

[0056] In a possible design, the second processing module is further used for:

[0057] Obtaining logs to be processed, wherein the logs to be processed include error logs;

[0058] The system problem information is determined according to the error log.

[0059] In a possible design, the second processing module is further used for:

[0060] Determine the error page and the error frequency corresponding to the error page according to the error log;

[0061] If the error frequency corresponding to the error page is greater than a preset frequency value, system problem information corresponding to the error page is generated.

[0062] In a fifth aspect, the present invention provides an electronic device, comprising: at least one processor and a memory;

[0063] The memory stores computer-executable instructions;

[0064] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the information push method described in the first aspect and various possible designs of the first aspect.

[0065] In a sixth aspect, the present invention provides an electronic device, comprising: at least one processor and a memory;

[0066] The memory stores computer-executable instructions;

[0067] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the information push method described in the second aspect and various possible designs of the second aspect.

[0068] In a seventh aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer execution instructions. When a processor executes the computer execution instructions, the information push method described in the first aspect and various possible designs of the first aspect is implemented.

[0069] In an eighth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer execution instructions. When a processor executes the computer execution instructions, the information push method described in the second aspect and various possible designs of the second aspect is implemented.

[0070] The present invention provides an information push method, device, electronic device and readable storage medium. When the information of the message to be pushed and the target recipient corresponding to the message to be pushed is obtained, it is indicated that the push message needs to be pushed to the target recipient. Then, a long connection is established with the communication page corresponding to the target recipient, that is, based on the communication page of the target recipient, a long connection is established with the target recipient to realize the active connection with the target recipient corresponding to the message to be pushed, and based on the long connection between the target recipient and the target recipient, the message to be pushed is pushed to the target recipient to realize real-time push of the message, that is, to ensure the timeliness of the message push. At the same time, the recipient corresponding to the message to be pushed can be specified to realize accurate push of the message. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0072] Figure 1 A schematic diagram of a scenario of an information push method provided by an embodiment of the present invention;

[0073] Figure 2 Schematic diagram of the process of the information push method provided by the embodiment of the present invention Figure 1 ;

[0074] Figure 3 Schematic diagram of the process of the information push method provided by the embodiment of the present invention Figure 2 ;

[0075] Figure 4 Schematic diagram of the process of the information push method provided by the embodiment of the present invention Figure 3 ;

[0076] Figure 5 A schematic diagram of a process view provided for an embodiment of the present invention;

[0077] Figure 6 A schematic diagram of a login process provided by an embodiment of the present invention;

[0078] Figure 7 A schematic diagram of scanning login provided by an embodiment of the present invention;

[0079] Figure 8 A schematic diagram of the business system framework structure provided by an embodiment of the present invention;

[0080] Fig. 9 A schematic diagram of the structure of the information push device provided in the embodiment of the present invention Figure 1 ;

[0081] Fig.10 A schematic diagram of the structure of the information push device provided in the embodiment of the present invention Figure 2 ;

[0082] Fig.11 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0083] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0084] In the prior art, when a server needs to push a message to a client, if a connection has been established between the server and the client, the message can be pushed directly based on the connection. If a connection has not been established between the server and the client, the server needs to wait, that is, after receiving a connection request sent by the client, it can connect to the client through the connection request, and then push the message to the client based on the connection, resulting in a long message push time, which in turn leads to the failure to push the message in time.

[0085] Therefore, in response to the above problems, the technical concept of the present invention is to provide a cross-system and cross-terminal integrated business system, which provides single sign-on service, process management, log management, server-side active push and other functions. It can quickly and conveniently integrate pages for the system, and users can freely customize menus and personalized skins, and can realize active push of messages from the server to ensure the timeliness of message push.

[0086] The following is a detailed description of the technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems with specific examples. The following specific examples can be combined with each other, and the same or similar concepts or processes may not be repeated in some examples. The examples of the present invention will be described below in conjunction with the accompanying drawings.

[0087] Figure 1 A schematic diagram of a scenario of an information push method provided by an embodiment of the present invention, such as Figure 1 As shown, when the server 101 needs to push a message to be pushed to the client 102, it needs to establish a persistent connection with the client 102 so as to use the persistent connection to push the message to be pushed.

[0088] Optionally, the server 101 includes devices such as a server, etc. The client 102 includes devices such as a mobile phone, a laptop computer, a desktop computer, and a tablet computer.

[0089] Figure 2 Schematic diagram of the process of the information push method provided by the embodiment of the present invention Figure 1 , the execution subject of this embodiment can be Figure 1 The server shown in . Figure 2 As shown, the method includes:

[0090] S201. Obtain information about a message to be pushed and its corresponding target recipient, wherein the target recipient includes a communication page.

[0091] In this embodiment, when the server obtains a message to be pushed to a recipient, that is, a message to be pushed, it obtains information of the recipient who needs to receive the message to be pushed and determines it as information of the target recipient corresponding to the message to be pushed.

[0092] The target recipient includes a client including a push module, and specifically, it can be a terminal including a communication page, that is, the client itself, or a webpage introducing the communication page, that is, a webpage on the client introducing the communication page.

[0093] Optionally, the communication page includes a push module. The receiver that introduces the communication page can implement the server push function, that is, when the receiver introduces the communication page, the server can quickly communicate with the receiver, and the implementation method is simple.

[0094] In addition, optionally, the push module includes JS (JavaScript) methods for receiving requests and sending requests, so that the client can both accept the connection request sent by the server and send the connection request to the server.

[0095] Optionally, the message to be pushed includes the latest version information of the target program. Of course, the message to be pushed may also include other types of messages, such as notification messages, password changes, etc.

[0096] Further, optionally, the latest version information includes the latest version number. There is at least one business system on the client, ie, application software, such as a desktop system, and accordingly, the target program may be the business system or an application in the business system.

[0097] Optionally, the information of the target recipient includes an identifier of the target recipient, for example, an identifier of a client.

[0098] Further, optionally, the identifier may be a name, a number, etc.

[0099] S202: Establish a long connection with a communication page corresponding to the target recipient according to the information of the target recipient.

[0100] In this embodiment, for each target recipient, the server sends a corresponding connection request to the target recipient, that is, identifies the corresponding target recipient to establish a long connection with the target recipient, that is, the target recipient receives the connection request through the communication page introduced by it, and responds to the connection request to establish a long connection with the server.

[0101] It can be understood that the process of the target recipient establishing a persistent connection with the server based on the connection request is similar to the process of the existing server establishing a persistent connection with the client based on the connection request, and it will not be repeated here.

[0102] In this embodiment, optionally, after obtaining the information of the target recipient corresponding to the message to be pushed, that is, after determining the target recipient, it is determined whether a long connection has been established between the server and the target recipient. If it has been established, there is no need to re-establish it.

[0103] S203: Based on the long connection, the message to be pushed is pushed to the target recipient.

[0104] In this embodiment, when the server establishes a long connection with the target recipient, indicating that the server and the target recipient can communicate, the server pushes the message to be pushed to the target recipient to realize active message push and ensure the timeliness of message push.

[0105] In this embodiment, after receiving the message to be pushed sent by the server, the target recipient uses the message to be pushed to perform corresponding operations, for example, to update the program.

[0106] From the above description, it can be seen that when the information of the message to be pushed and the target recipient corresponding to the message to be pushed is obtained, it is indicated that the push message needs to be pushed to the target recipient, and then a long connection is established with the communication page corresponding to the target recipient, that is, based on the communication page of the target recipient, a long connection is established with the target recipient to realize the active connection with the target recipient corresponding to the message to be pushed, and based on the long connection between the target recipient and the target recipient, the message to be pushed is pushed to the target recipient to realize the real-time push of the message, that is, to ensure the timeliness of the message push. At the same time, the recipient corresponding to the message to be pushed can be specified to realize the accurate push of the message.

[0107] Figure 3 Schematic diagram of the process of the information push method provided by the embodiment of the present invention Figure 2 , this embodiment Figure 2 Based on the embodiment, when the version of the target program in the server is updated, the server can push the corresponding message to the client, that is, the target recipient, so that the target recipient can update. The following will describe this process in conjunction with a specific embodiment. Figure 3 As shown, the method includes:

[0108] S301. Obtain information about a message to be pushed and its corresponding target recipient, wherein the target recipient includes a communication page.

[0109] S302: Establish a long connection with a communication page corresponding to the target recipient according to the information of the target recipient.

[0110] S303: Based on the long connection, the latest version information of the target program is pushed to the target recipient, so that the target recipient determines whether to update the target program according to the latest version information.

[0111] In this embodiment, when the target program is updated, the relevant personnel upload the latest version file corresponding to the target program, that is, the latest target program, to the server, and also upload the latest version information of the target program to the server. After receiving the uploaded information, the server indicates that the target program has been updated, and needs to determine whether the client that installs the target program, that is, the target recipient, needs to be updated, and then pushes the latest version information of the target program to the target recipient. When the target recipient receives the latest version information of the target program, it obtains the current version information of the locally installed target program, that is, the current version number. If the current version information is different from the latest version information, it is determined that the target program is updated.

[0112] Further, optionally, when the target recipient determines to update the target program, the target recipient requests the latest version of the target program from the server based on the long connection with the server, so as to achieve timely update of the target program.

[0113] In any embodiment, optionally, the method further comprises:

[0114] Get the system file to be processed and the system type of the terminal to be installed.

[0115] The system files to be processed are packaged according to the system type to generate the target application files.

[0116] Specifically, after the system file to be processed is obtained, the system file to be processed may be packaged according to the terminal where the system file to be processed is to be installed, that is, the system type of the client, to generate a target application file suitable for the client.

[0117] Furthermore, when the terminal to be installed is a PC (Personal Computer) terminal and the system type is a mac (macintosh) system, the system files to be processed are packaged into a dmg installation file; when the terminal to be installed is a PC terminal and the system type is a windows system, the system files to be processed are packaged into an exe (executable) installation file; when the terminal to be installed is a mobile terminal and the system type is an ios system, the system files to be processed are packaged into an ipa (iPhone Application) installation file; when the terminal to be installed is a mobile terminal and the system type is an android (Android) system, the system files to be processed are packaged into an apk installation file.

[0118] Specifically, when the terminal to be installed is a PC, the server is mainly packaged through electron, and the client is incrementally updated through the plug-in electron-updater. Correspondingly, it is packaged into a dmg installation file suitable for the mac system through electron-builder--mac; and packaged into an exe installation file suitable for the windows system through electron-builder--win--x64.

[0119] In addition, when the program corresponding to the pending system file needs to be updated, the version number is modified, the latest HTML5 update file is copied to the application directory and repackaged, and the latest installation package is uploaded to the server. When the client that installs the program corresponding to the pending system file starts the program, it detects whether there is a new version of the application on the server that needs to be installed.

[0120] Specifically, when the terminal to be installed is a mobile terminal, it is packaged through cordova, and the client is incrementally updated through the plug-in cordova-hot-code-push-plugin. Correspondingly, it is packaged into an apk installation file suitable for the Android system through cordova build android. It is packaged into an ipa installation file suitable for the iOS system through cordova build ios.

[0121] In addition, when the program needs to be updated, the version number is modified, and the latest HTML5 (HyperText Markup Language 5, Hypertext 5.0) update file is copied to the application directory and repackaged, and the cordova-hcp command is used to generate the cordova-hcp.json file, which stores the Hash code of the HTML5 file, and upload the file and the latest HTML5 file to the server. When the client that installs the program corresponding to the system file to be processed starts the program, it detects whether there is a new version of the application on the server that needs to be installed.

[0122] In addition, optionally, the system file to be processed may be a file for implementing the target program, that is, a software file corresponding to the target program.

[0123] In this embodiment, when the server determines that the target program is updated, it actively pushes the latest version information of the target program to the target recipient, so that the target program recipient can use the latest version information to determine whether the target program needs to be updated, thereby providing an update reminder for the target program and ensuring timely updating of the program.

[0124] In addition, it is optional to implement cross-server precise push, that is, when the server is deployed in a cluster environment, the client may access any server, and the notified clients may not be connected to the same server. Therefore, the server can write the message to the queue uniformly, and then each server consumes it. When the server connected to the client receiving the message consumes the message, the message is precisely pushed to the receiving client.

[0125] Figure 4 Schematic diagram of the process of the information push method provided by the embodiment of the present invention Figure 3 , the execution subject of this embodiment can be the client. Figure 4 As shown, the method includes:

[0126] S401: receiving a message to be pushed sent by a server, wherein the message to be pushed is sent through a long connection established between the server and a communication page on a client.

[0127] S402: Execute corresponding operations according to the message to be pushed.

[0128] In this embodiment, after receiving the message to be pushed sent by the server, the client, ie, the target recipient, can perform corresponding operations based on the message to be pushed to achieve a response to the message to be pushed, such as version update and active message push.

[0129] In this embodiment, the client also provides a chat room function. The main difficulty of the chat room is that the messages are actively pushed by the server and the real-time requirement is high. Through the server push technology, point-to-point private chat and many-to-many group chat can be realized.

[0130] In this embodiment, the client can optionally perform process management. In order to strengthen the collaboration between various downstream systems and desktop systems, a complete process engine is integrated. Users can design processes (business processing processes) online. Each process node of the process, that is, the task node, can define the corresponding form, that is, the task information and the processing personnel. The elements of the form can also be defined by themselves or embedded in the URL (uniform resource locator, uniform resource locator system) of the external system. The processing personnel of the node can specify specific users and roles, or they can be personnel related to the process initiator or the previous task processor.

[0131] Among them, each process node needs to perform corresponding tasks.

[0132] In addition, after the process is created, you can optionally set permissions to assign specific users. Users can view the tasks generated by a certain node in the process through task management, and can handle them themselves or set delegation. When processing tasks, you can see the entire process and the current node position, and you can also see the log of the entire process execution, which is convenient for tracing history. The specific process is: Get the current execution process ID, and get the task node information corresponding to the current execution process ID. Create a process view corresponding to the current execution process ID based on the task node information.

[0133] Figure 5 A schematic diagram of a process view provided by an embodiment of the present invention. Specifically, the identifier of the currently ongoing process, that is, the currently executed process identifier, is obtained, and the task node information corresponding to the currently executed process identifier is obtained, the task node information including the task node identifier corresponding to the currently executed process identifier (such as Figure 5 Task 1 and Task 2) are shown in the figure, and a corresponding process view is created according to the task node information, that is, the task nodes are connected and arranged according to the execution order of the process, that is, the arrangement order of the task nodes. At the same time, the current task node, that is, the process node, can also be displayed.

[0134] In specific applications, the activiti process engine is used to control the backend process. The front end uses SVG to build a process view to view the current process flow. It also supports online custom processes, dynamically generates the xml (Extensible Markup Language) required for process definition, and deploys it to the process engine for users to initiate new processes.

[0135] In this embodiment, after the process is created, permissions can be set to assign specific users. Users can view the tasks generated by a certain node in the process through task management, and can handle them by themselves or set delegation. When processing tasks, you can see the entire process and the current node position, and you can also see the log of the entire process execution, which is convenient for tracing history.

[0136] In this embodiment, seamless migration of process versions can also be performed, and the implementation process is as follows: obtain the process identifier to be updated, and obtain the historical task node corresponding to the target historical version corresponding to the process identifier to be updated. Obtain the task information corresponding to each historical task node, and obtain the latest task node corresponding to the process identifier to be updated. Determine the target migration node from the latest task node, and save the task information corresponding to all historical task nodes to the target migration node.

[0137] Specifically, the task information corresponding to the task node is the task content that the task node needs to execute. The process identifier to be updated is the identifier of the updated process. The task information of the historical task node corresponding to the target historical version corresponding to the process identifier to be updated is migrated to a latest task node corresponding to the latest historical version corresponding to the process identifier to be updated, that is, the target migration node, so that the task information of the historical task node can continue to be retained.

[0138] Optionally, the identifier of the process to be updated may be the name or number of the process to be updated. The target historical version may be the historical version whose generation time is the latest from the current time among the historical versions.

[0139] Taking a specific application scenario as an example, when business process 1 is updated from version 1.0 to version 2.0, it indicates that the business process has been updated, and business process 1 is used as the process to be updated, version 1.0 is the target historical version, and version 2.0 is the latest historical version. The business process of version 1.0 has 3 nodes, namely task nodes, and the business process of version 2.0 includes 5 task nodes, so the tasks on the 3 nodes are migrated to one of the 5 task nodes.

[0140] In any embodiment, optionally, the client, that is, the business system on the client, can also collect logs through a listener and use the logs to perform corresponding processing, and the specific process is as follows:

[0141] Get the logs to be processed, including error logs.

[0142] Determine system problem information based on the error log.

[0143] Furthermore, the system problem information is determined based on the error log, including:

[0144] Determine the error page and the error frequency corresponding to the error page based on the error log.

[0145] If the error frequency corresponding to the error page is greater than the preset frequency value, system problem information corresponding to the error page is generated.

[0146] Specifically, the client determines an error log from the collected logs, that is, a log containing a preset error character (eg, ERROR), and the error log also includes an identifier of an error page.

[0147] Specifically, statistical analysis is performed on the error log to determine the error frequency corresponding to each error page, that is, the number of errors. When the error frequency corresponding to the error page is greater than the preset frequency value, it indicates that the frequency of errors on the error page is too large, that is, it indicates that there may be some problems with the system function and needs to be investigated, then the system problem information corresponding to the error page is generated, and the system problem information includes the page identifier corresponding to the error page, so that the relevant personnel can quickly locate the problem according to the system problem information and reduce the loss caused by the problem. For example, the number of error logs corresponding to page 1 is 10, and the error frequency corresponding to page 1 is 10.

[0148] In any embodiment, optionally, the system usage information may also be determined according to the log to be processed, and the specific usage process is as follows:

[0149] Obtain logs to be processed, where the logs to be processed include page access logs and / or interface call logs.

[0150] Determine system usage information based on page access logs and / or interface call logs.

[0151] Further, the system usage information is determined based on the page access log and / or the interface call log, including:

[0152] Perform statistical analysis on page access logs and / or interface call logs to obtain system usage information and / or user behavior information. The system usage information includes one or more of the number of interface calls, average page response time, page response success rate, page access rate, number of visits to the visited page, and length of stay on the visited page.

[0153] Specifically, the client and the backend of a specific business system use interceptors to uniformly record the call status of the interface and save it in the database before the request is returned. The frontend defines a global listener to capture system errors and feeds back frontend exception information to the backend at regular intervals through a timer, i.e., feedback error logs.

[0154] In this embodiment, the client collects the front-end page access log and error log through the listener, and sends the log information to the background for storage at regular intervals, without the need for separate embedding. The back-end interceptor collects the interface call log and calculates the interface call duration. The page access log and / or interface call log are counted through SQL (Structured Query Language) statements to obtain system usage information for the administrator to analyze the system usage and user behavior. The system usage can focus on the number of front-end page visits, average stay time, page access rate, and the number of back-end interface calls, average time consumption, and success rate. The query error log can focus on the user's system usage. If the frequency of errors on a certain page is too high, it means that there may be some problems with the system function, and it is necessary to arrange development for investigation, so that the problem can be quickly located and the loss caused by system problems can be reduced.

[0155] In addition, optionally, the client, that is, the business system, also provides a single sign-on service, that is, when determining that a user accesses a sub-application, it is determined whether there is cache information corresponding to the parent application corresponding to the sub-application. When it is determined that there is cache information corresponding to the parent application corresponding to the sub-application, the sub-application is accessed according to the cache information.

[0156] Specifically, when a user logs in to a parent application, corresponding cache information is generated. When a user accesses a child application corresponding to the parent application, it is determined whether there is a cache information cookie corresponding to the parent application. If there is, it indicates that the parent application has been logged in. Then, the user can directly use the login information entered by the user when logging in to the parent application to log in to the child application, that is, access the child application, realize fast login, and thus realize fast switching of applications.

[0157] Optionally, the login information may be stored in cache information or in other designated locations, which are not limited herein.

[0158] Figure 6 A schematic diagram of a login process provided by an embodiment of the present invention. Specifically, Figure 6 As shown in the figure, the server provides two interfaces: login and identity verification. When the user logs in or not, the server jumps to the unified login page and generates cache information in the parent application. When accessing the child application, the interceptor in the jar package is used to verify whether the parent application is logged in. If the parent application is logged in, the login information is returned for automatic login.

[0159] Figure 7 Schematic diagram of scanning login provided by an embodiment of the present invention. In addition, optionally, when the client is a PC, scanning login can also be performed (such as Figure 7 As shown in the figure, the app (application, mobile software) uses the native camera to scan the login QR code on the PC. After scanning the code, it pushes a message to the PC to prompt that the code is successfully scanned and clicks to confirm the login. After clicking Confirm, the app pushes a message to the PC with the login information of the app, that is, the PC is logged in through the information logged in on the app.

[0160] In addition, optionally, in order to facilitate users to switch systems and browsers less frequently, the client, that is, a specific business system (for example, a desktop system), also integrates a browser module. You can directly access external web pages by directly entering the URL in the browser. At the same time, it supports multiple tabs, and users can also collect their frequently used URLs, which can be accessed at any time even across terminals.

[0161] Specifically, a tool with a browser-like interface is developed through a tab component, which is mainly implemented through iframe and can use the chrome v8 browser kernel.

[0162] It can be understood that the operations performed by the client and the functions implemented are actually the functions implemented by the specific business system on the client, such as log statistical analysis.

[0163] In this embodiment, the business system can integrate various applications through the single sign-on service, making them part of the system portal. The content and page style of the portal can also be customized according to the user's own preferences, allowing users to customize the content and theme style they are interested in. In addition, the downstream system integrated with the single sign-on service can also generate corresponding desktop icons on the desktop, which can facilitate users to quickly switch between various downstream systems to improve work efficiency.

[0164] In this embodiment, the client, that is, the business system, is a desktop system built with pure HTML5 technology at the front end and Java microservice architecture at the back end. The specific structural framework of the system is as follows: Figure 8 As shown, Figure 8 Schematic diagram of the business system framework structure provided by the embodiment of the present invention. Figure 8 As shown in the figure, the system has two major features: one is cross-platform, the PC side supports Windows and Mac, and the mobile side supports iOS and Android. The second is cross-terminal communication, and each client communicates through HTTP (Hyper Text Transfer Protocol) long connection.

[0165] In this embodiment, relevant personnel encapsulate the pages that interact with the server into a common page, namely the push page. Other pages that need to integrate the server push capability only need to introduce the push page. That is, when the page introduces the push page, the server can actively establish a long connection with the page, which is simple to implement.

[0166] Fig. 9 A schematic diagram of the structure of the information push device provided in the embodiment of the present invention Figure 1 ,like Fig. 9 As shown, the information push device 900 is applied to a server, and includes: a first processing module 901 and a first transceiver module 902 .

[0167] The first processing module 901 is used to obtain information about the message to be pushed and its corresponding target recipient, wherein the target recipient includes a communication page.

[0168] The first processing module 901 is further configured to establish a long connection with a communication page corresponding to the target recipient according to the information of the target recipient.

[0169] The first transceiver module 902 is used to push the message to be pushed to the target recipient based on the long connection.

[0170] In one possible design, the first transceiver module 902 is further configured to:

[0171] The latest version information of the target program is pushed to the target recipient, so that the target recipient determines whether to update the target program according to the latest version information.

[0172] In a possible design, the first processing module 901 is further used for:

[0173] Get the system file to be processed and the system type of the terminal to be installed.

[0174] The system files to be processed are packaged according to the system type to generate the target application files.

[0175] The information push device provided in the embodiment of the present invention can implement the information push device method of the above embodiment. Its implementation principle and technical effect are similar and will not be repeated here.

[0176] Fig.10 A schematic diagram of the structure of the information push device provided in the embodiment of the present invention Figure 2 ,like Fig.10 As shown, the information push device 1000 is applied to a client, and includes: a second transceiver module 1001 and a second processing module 1002 .

[0177] The second transceiver module 1001 is used to receive a message to be pushed sent by the server, wherein the message to be pushed is sent through a long connection established between the server and the communication page on the client.

[0178] The second processing module 1002 is used to perform corresponding operations according to the message to be pushed.

[0179] In a possible design, the second processing module 1002 is further configured to:

[0180] Get the process identifier to be updated, and get the historical task node corresponding to the target historical version corresponding to the process identifier to be updated.

[0181] Get the task information corresponding to each historical task node, and get the latest task node corresponding to the process identifier to be updated.

[0182] Determine the target migration node from the latest task node, and save the task information corresponding to all historical task nodes to the target migration node.

[0183] In a possible design, the second processing module 1002 is further configured to:

[0184] Get the current execution process ID and the task node information corresponding to the current execution process ID.

[0185] Create a process view corresponding to the current execution process identifier based on the task node information.

[0186] In a possible design, the second processing module 1002 is further configured to:

[0187] Obtain logs to be processed, where the logs to be processed include page access logs and / or interface call logs.

[0188] Determine system usage information based on page access logs and / or interface call logs.

[0189] In a possible design, the second processing module 1002 is further configured to:

[0190] Get the logs to be processed, including error logs.

[0191] Determine system problem information based on the error log.

[0192] In a possible design, the second processing module 1002 is further configured to:

[0193] Determine the error page and the error frequency corresponding to the error page based on the error log.

[0194] If the error frequency corresponding to the error page is greater than the preset frequency value, system problem information corresponding to the error page is generated.

[0195] The information push device provided in the embodiment of the present invention can implement the information push device method of the above embodiment. Its implementation principle and technical effect are similar and will not be repeated here.

[0196] Fig.11 Schematic diagram of the hardware structure of the electronic device provided by the embodiment of the present invention. Fig.11 As shown, the electronic device 1100 of this embodiment includes: a processor 1101 and a memory 1102;

[0197] The memory 1102 is used to store computer-executable instructions;

[0198] The processor 1101 is used to execute the computer-executable instructions stored in the memory to implement the various steps performed by the receiving device in the above embodiment. For details, please refer to the relevant description in the above method embodiment.

[0199] Optionally, the memory 1102 may be independent or integrated with the processor 1101 .

[0200] When the memory 1102 is independently provided, the electronic device further includes a bus 1103 for connecting the memory 1102 and the processor 1101 .

[0201] An embodiment of the present invention further provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the information push method as described above is implemented.

[0202] An embodiment of the present invention further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the information push method as described above is implemented.

[0203] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0204] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0205] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each module may exist physically separately, or two or more modules may be integrated into one unit. The above-mentioned module-composed unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0206] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application.

[0207] It should be understood that the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented by a hardware processor or implemented by a combination of hardware and software modules in the processor.

[0208] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.

[0209] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0210] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.

[0211] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic device or a main control device.

[0212] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0213] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. An information push method, characterized in that: include: Acquire information of a message to be pushed and its corresponding target recipient, wherein the target recipient includes a communication page; Establishing a long connection with a communication page corresponding to the target recipient according to the information of the target recipient; Based on the long connection, the message to be pushed is pushed to the target recipient; The method further comprises: Obtain the system file to be processed and the system type of the terminal to be installed; The system files to be processed are packaged according to the system type to generate target application files.

2. The method according to claim 1, characterized in that The message to be pushed includes the latest version information of the target program, and the pushing of the message to be pushed to the target recipient includes: The latest version information of the target program is pushed to the target recipient, so that the target recipient determines whether to update the target program according to the latest version information.

3. An information push method, characterized in that: Applied to a client, the method comprises: Receiving a message to be pushed sent by a server, wherein the message to be pushed is sent through a long connection established between the server and a communication page on a client; Execute corresponding operations according to the message to be pushed; The method further comprises: Obtaining logs to be processed, wherein the logs to be processed include error logs; Determine system problem information according to the error log; Determine the error page and the error frequency corresponding to the error page according to the error log; If the error frequency corresponding to the error page is greater than a preset frequency value, system problem information corresponding to the error page is generated.

4. The method according to claim 3, characterized in that The method further comprises: Obtaining a process identifier to be updated, and obtaining a historical task node corresponding to a target historical version corresponding to the process identifier to be updated; Obtaining task information corresponding to each historical task node, and obtaining the latest task node corresponding to the process identifier to be updated; A target migration node is determined from the latest task node, and task information corresponding to all historical task nodes is saved to the target migration node.

5. The method according to claim 3 or 4, characterized in that: The method further comprises: Obtain the current execution process identifier, and obtain the task node information corresponding to the current execution process identifier; A process view corresponding to the currently executed process identifier is created according to the task node information.

6. The method according to claim 3, characterized in that The method further comprises: Obtaining logs to be processed, wherein the logs to be processed include page access logs and / or interface call logs; System usage information is determined according to the page access log and / or the interface call log.

7. An information push device, characterized in that: include: A first processing module is used to obtain information about the message to be pushed and its corresponding target recipient, wherein the target recipient includes a communication page; The first processing module is further used to establish a long connection with a communication page corresponding to the target recipient according to the information of the target recipient; A first transceiver module, configured to push the message to be pushed to the target recipient based on the long connection; The first processing module is further used to obtain the system files to be processed and the system type of the terminal to be installed; and to package the system files to be processed according to the system type to generate a target application file.

8. An information push device, characterized in that: include: A second transceiver module is used to receive a message to be pushed sent by the server, wherein the message to be pushed is sent through a long connection established between the server and a communication page on the client; A second processing module, used to perform corresponding operations according to the message to be pushed; The second processing module is also used to obtain logs to be processed, wherein the logs to be processed include error logs; determine system problem information based on the error logs; determine an error page and an error frequency corresponding to the error page based on the error logs; if the error frequency corresponding to the error page is greater than a preset frequency value, generate system problem information corresponding to the error page.

9. An electronic device, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the information push method as described in any one of claims 1 to 2 or 3 to 6.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executable instructions, the information push method according to any one of claims 1 to 2 or 3 to 6 is implemented.

Citation Information

Patent Citations

  • Configuration information updating method and device and computer readable storage medium

    CN111262726A

  • Message processing method, device and system, electronic equipment and storage medium

    CN112650606A