CN115914329A - Information pushing method and device, electronic equipment and readable storage medium - Google Patents

Information pushing method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN115914329A
CN115914329A CN202111146670.0A CN202111146670A CN115914329A CN 115914329 A CN115914329 A CN 115914329A CN 202111146670 A CN202111146670 A CN 202111146670A CN 115914329 A CN115914329 A CN 115914329A
Authority
CN
China
Prior art keywords
information
message
target
pushed
acquiring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111146670.0A
Other languages
Chinese (zh)
Inventor
李思维
牛欣欣
熊波元
韦巍
苏凤琴
陶晓英
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202111146670.0A priority Critical patent/CN115914329A/en
Publication of CN115914329A publication Critical patent/CN115914329A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides an information pushing method, an information pushing device, electronic equipment and a readable storage medium, wherein the method comprises the following steps: acquiring a message to be pushed and information of a target receiver corresponding to the message to be pushed, wherein the target receiver comprises a communication page; establishing long connection with a communication page corresponding to the target receiver according to the information of the target receiver; and pushing the message to be pushed to the target receiver based on the long connection, so as to realize the real-time pushing of the message, namely ensuring the timeliness of message pushing.

Description

Information pushing method and device, electronic equipment and readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an information pushing method and apparatus, an electronic device, and a readable storage medium.
Background
In using a client, the client often needs to communicate with its corresponding server, for example, the server needs to push some messages to the client.
Currently, when a server pushes a message to a client, and when a connection is not established between the server and the client, the server needs to establish a corresponding communication connection through a connection request sent by the client after receiving the connection request, so as to push the message to the client by using the communication connection.
However, after receiving the connection request sent by the client, the server can push the message to the client through the connection established by the connection request, and when the client does not send the connection request, the server cannot push the message, so that the message cannot be pushed in time.
Disclosure of Invention
The invention provides an information pushing method, an information pushing device, electronic equipment and a readable storage medium, and aims to solve the technical problem that information cannot be pushed in time in the prior art.
In a first aspect, the present invention provides an information pushing method, where the method includes:
acquiring a message to be pushed and information of a target receiver corresponding to the message to be pushed, wherein the target receiver comprises a communication page;
establishing long connection with a communication page corresponding to the target receiver according to the information of the target receiver;
and pushing the message to be pushed to the target receiver based on the long connection.
In one possible design, the pushing the message to be pushed to the target recipient includes information of a latest version of a target program, and the pushing includes:
and pushing the latest version information of the target program to the target receiver so that the target receiver determines whether to update the target program according to the latest version information.
In one possible design, the method further includes:
acquiring a system file to be processed, and acquiring a system type of a terminal to be installed;
and packaging the system file to be processed according to the system type to generate a target application file.
In a second aspect, the present invention provides an information pushing method, which is applied to a client, and the method includes:
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;
and executing corresponding operation according to the message to be pushed.
In one possible design, the method further includes:
acquiring a flow identifier to be updated, and acquiring a historical task node corresponding to a target historical version corresponding to the flow identifier to be updated;
acquiring task information corresponding to each historical task node, and acquiring a latest task node corresponding to the flow identifier to be updated;
and determining a target migration node from the latest task node, and storing task information corresponding to all historical task nodes to the target migration node.
In one possible design, the method further includes:
acquiring a current execution flow identifier and task node information corresponding to the current execution flow identifier;
and creating a process view corresponding to the current execution process identification according to the task node information.
In one possible design, the method further includes:
acquiring a log to be processed, wherein the log to be processed comprises a page access log and/or an interface call log;
and determining system use information according to the page access log and/or the interface call log.
In one possible design, the method further includes:
acquiring logs to be processed, wherein the logs to be processed comprise error logs;
and determining system problem information according to the error log.
In one possible design, the determining system problem information from the error log includes:
determining an error reporting page and an error reporting frequency corresponding to the error reporting page according to an error reporting log;
and if the error reporting frequency corresponding to the error reporting page is greater than the preset frequency value, generating system problem information corresponding to the error reporting page.
In a third aspect, the present invention provides an information pushing apparatus, including:
the system comprises a first processing module, a second processing module and a third processing module, wherein the first processing module is used for acquiring a message to be pushed and information of a target receiver corresponding to the message to be pushed, and the target receiver comprises a communication page;
the first processing module 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;
and the first receiving and sending module is used for pushing the message to be pushed to the target receiving party based on the long connection.
In one possible design, the first transceiver module is further configured to:
and pushing the latest version information of the target program to the target receiver so that the target receiver determines whether to update the target program according to the latest version information.
In one possible design, the first processing module is further configured to:
acquiring a system file to be processed, and acquiring a system type of a terminal to be installed;
and packaging the system file to be processed according to the system type to generate a target application file.
In a fourth aspect, the present invention provides an information pushing apparatus, applied to a client, where the apparatus includes:
the second transceiving module is used for 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;
and the second processing module is used for executing corresponding operation according to the message to be pushed.
In one possible design, the second processing module is further configured to:
acquiring a flow identifier to be updated, and acquiring a historical task node corresponding to a target historical version corresponding to the flow identifier to be updated;
acquiring task information corresponding to each historical task node, and acquiring a latest task node corresponding to the flow identifier to be updated;
and determining a target migration node from the latest task node, and storing task information corresponding to all historical task nodes to the target migration node.
In one possible design, the second processing module is further configured to:
acquiring a current execution flow identifier, and acquiring task node information corresponding to the current execution flow identifier;
and creating a process view corresponding to the current execution process identification according to the task node information.
In one possible design, the second processing module is further to:
acquiring a log to be processed, wherein the log to be processed comprises a page access log and/or an interface call log;
and determining system use information according to the page access log and/or the interface call log.
In one possible design, the second processing module is further to:
acquiring logs to be processed, wherein the logs to be processed comprise error logs;
and determining system problem information according to the error log.
In one possible design, the second processing module is further configured to:
determining an error report page and an error report frequency corresponding to the error report page according to an error report log;
and if the error reporting frequency corresponding to the error reporting page is greater than the preset frequency value, generating system problem information corresponding to the error reporting page.
In a fifth aspect, the present invention provides an electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored by the memory to cause the at least one processor to perform the information pushing method as described above in the first aspect and various possible designs of the first aspect.
In a sixth aspect, the present invention provides an electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes the computer-executable instructions stored by the memory, causing the at least one processor to perform the information pushing method as set forth in the second aspect above and in various possible designs of the second aspect.
In a seventh aspect, the present invention provides a computer-readable storage medium, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the information pushing method according to the first aspect and various possible designs of the first aspect are implemented.
In an eighth aspect, the present invention provides a computer-readable storage medium, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the information push method according to the second aspect and various possible designs of the second aspect is implemented.
The invention provides an information pushing method, an information pushing device, electronic equipment and a readable storage medium, wherein when information of a message to be pushed and a target receiver corresponding to the message to be pushed is acquired, the message to be pushed needs to be pushed to the target receiver, long connection is established with the communication page corresponding to the target receiver, namely, the long connection is established with the target receiver based on the communication page of the target receiver, active connection of the target receiver corresponding to the message to be pushed is realized, and the message to be pushed is pushed to the target receiver based on the long connection between the message to be pushed and the target receiver, so that real-time pushing of the message is realized, namely, the timeliness of message pushing is ensured. Meanwhile, a receiver corresponding to the message to be pushed can be appointed, and accurate pushing of the message is achieved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic view of a scenario of an information pushing method according to an embodiment of the present invention;
fig. 2 is a first flowchart illustrating an information pushing method according to an embodiment of the present invention;
fig. 3 is a second flowchart illustrating an information push method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a third method for pushing information according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a flow chart provided by an embodiment of the invention;
FIG. 6 is a diagram illustrating a login process according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating scan logging provided by an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a business system framework according to an embodiment of the present invention;
fig. 9 is a first schematic structural diagram of an information pushing apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an information pushing apparatus according to an embodiment of the present invention;
fig. 11 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the prior art, when a server needs to push a message to a client, if a connection is already established between the server and the client, the message can be directly pushed based on the connection. If the connection between the server and the client is not established, the server needs to wait, that is, after receiving the connection request sent by the client, the server can be connected with the client through the connection request, so that the message can be pushed to the client based on the connection, the message pushing time is long, and the message cannot be pushed in time.
Therefore, in order to solve the above problems, the technical idea of the present invention is to provide a cross-system and cross-terminal integrated service system, which provides functions of single sign-on service, flow management, log management, active push of a server, and the like, can quickly and conveniently integrate a page for the system, and a user can freely customize a menu and a personalized skin, and can realize active push of a message of the server, thereby ensuring timeliness of message push.
The following describes the technical solutions of the present disclosure and how to solve the above technical problems in detail by specific examples. Several of these specific examples may be combined with each other below, and some of the same or similar concepts or processes may not be repeated in some examples. Examples of the present disclosure will now be described with reference to the accompanying drawings.
Fig. 1 is a schematic view of a scenario of an information push method according to an embodiment of the present invention, and as shown in fig. 1, when a server 101 needs to push a message to be pushed to a client 102, a long connection needs to be established with the client 102, so that the long connection is used to push the message to be pushed.
Optionally, the server 101 includes a server and other devices. The client 102 includes a mobile phone, a notebook computer, a desktop computer, a tablet computer, and the like.
Fig. 2 is a first flowchart illustrating an information pushing method according to an embodiment of the present invention, where an execution main body of the embodiment may be the server shown in fig. 1. As shown in fig. 2, the method includes:
s201, obtaining a message to be pushed and information of a target receiver corresponding to the message, wherein the target receiver comprises a communication page.
In this embodiment, when the server acquires a message to be pushed to a receiver, that is, a message to be pushed, the server acquires information of the receiver that needs to receive the message to be pushed, and determines the information as information of a target receiver corresponding to the message to be pushed.
Wherein the target recipient comprises a client comprising a push module. Specifically, it may be a terminal containing a communication page, i.e. the client itself, or a web page introducing the communication page, i.e. a web page introducing the communication page on the client.
Optionally, the communication page comprises a push module. The receiver introducing the communication page can realize the function of pushing the server, namely, when the receiver introduces the communication page, the server can quickly communicate with the receiver, and the realization mode is simple.
In addition, optionally, the push module includes a JS (JavaScript) method for receiving the request and sending the request, so that the client may receive the connection request sent by the server, and may also send the connection request to the server.
Optionally, the message to be pushed includes information of the latest version of the target program. Of course, the message to be pushed may also include other types of messages, such as notification messages, password changes, and the like.
Further, optionally, the latest version information includes the latest version number. At least one business system, i.e. application software, such as a desktop system, exists on the client, and accordingly, the target program can be the business system or an application in the business system.
Optionally, the information of the target recipient includes an identification of the target recipient, for example, an identification of the client.
Further, the identifier may be a name, a number, or the like.
S202, long connection is established with a communication page corresponding to the target receiver according to the information of the target receiver.
In this embodiment, for each target recipient, the server sends a corresponding connection request to the information of 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 a communication page introduced by the target recipient, and responds to the connection request to establish a long connection with the server.
It can be understood that the process of establishing the long connection between the target receiving party and the service end based on the connection request is similar to the process of establishing the long connection between the existing service end and the client based on the connection request, and is not described herein again.
In this embodiment, optionally, after the information of the target receiving party corresponding to the message to be pushed is obtained, that is, after the target receiving party is determined, it is determined whether a long connection has been established between the server and the target receiving party, and if the long connection has been established, the long connection does not need to be reestablished.
S203, based on the long connection, pushing the message to be pushed to the target receiver.
In this embodiment, when the server establishes a long connection with the target recipient, indicating that the server and the target recipient can communicate with each other, the server pushes the message to be pushed to the target recipient, so as to actively push the message, and ensure timeliness of message pushing.
In this embodiment, after receiving a to-be-pushed message sent by a server, a target recipient performs a corresponding operation, for example, updating a program, by using the to-be-pushed message.
As can be seen from the above description, when the message to be pushed and the information of the target recipient corresponding to the message to be pushed are obtained, it is indicated that the message to be pushed needs to be pushed to the target recipient, a long connection is established with the communication page corresponding to the target recipient, that is, the long connection is established with the target recipient based on the communication page of the target recipient, so as to implement active connection with the target recipient corresponding to the message to be pushed, and the message to be pushed is pushed to the target recipient based on the long connection with the target recipient, so as to implement real-time pushing of the message, that is, to ensure timeliness of message pushing. Meanwhile, a receiver corresponding to the message to be pushed can be appointed, and accurate pushing of the message is achieved.
Fig. 3 is a schematic flow diagram of an information push method according to an embodiment of the present invention, and on the basis of the embodiment of fig. 2, when a version of a target program in a server is updated, the server may push a corresponding message to a client, that is, a target recipient, so that the target recipient performs an update. As shown in fig. 3, the method includes:
s301, obtaining the information of the message to be pushed and the corresponding target receiver, wherein the target receiver comprises a communication page.
S302, long connection is established with a communication page corresponding to the target receiver according to the information of the target receiver.
And S303, pushing the latest version information of the target program to the target receiver based on the long connection so that the target receiver determines whether to update the target program according to the latest version information.
In this embodiment, after the target program is updated, the related 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 is updated, and needs to determine a client side for installing the target program, namely whether the target receiver needs to update, and pushes the latest version information of the target program to the target receiver. When receiving the latest version information of the target program, the target receiver acquires the current version information, namely the current version number, of the target program installed locally, and if the current version information is different from the latest version information, the target program is determined to be updated.
Further, optionally, when determining to update the target program, the target receiving party requests the target program of the latest version from the server based on the long connection with the server, so as to implement the timely update of the target program.
In any embodiment, optionally, the method further includes:
and acquiring the system file to be processed and acquiring the system type of the terminal to be installed.
And packaging the system files to be processed according to the system type to generate a target application file.
Specifically, after the system file to be processed is obtained, the system to be processed may be packaged according to the system type of the terminal, i.e., the client, where the system file to be processed needs to be installed, so as to generate the target application file suitable for the client.
Further, when the terminal to be installed is a PC (Personal Computer) terminal and the system type is a mac (macintosh) system, packaging the system files to be processed into dmg installation files; when the terminal to be installed is a PC terminal and the system type is a windows system, packaging the system files to be processed into exe (executable) installation files; when the terminal to be installed is a mobile terminal and the system type is an ios system, packaging the system files to be processed into ipa (iPhone application) installation files; and when the terminal to be installed is a mobile terminal and the system type is an android system, packaging the system files to be processed into apk installation files.
Specifically, when the terminal to be installed is a PC terminal, the server terminal mainly packages through an electron, and performs incremental update on the client terminal through a plug-in electron-update. Correspondingly, the dmg installation file suitable for the mac system is packed through electron-builder-mac; and packaging the installation file into an exe installation file suitable for the windows system through an electron-builder-win-x 64.
In addition, when the program corresponding to the system file to be processed needs to be updated, the version number is modified, the latest HTML5 update file is copied into the application directory to be packaged again, and the latest installation package is uploaded to the server. When the client side which installs the program corresponding to the system file to be processed starts the program, whether a new version application needs to be installed on the server side is detected.
Specifically, when the terminal to be installed is a mobile terminal, the terminal is packaged through cordova, and the client is incrementally updated through a cordova-hot-code-push-plug-plugin. And correspondingly, packaging the android by using the cordova build android into an apk installation file suitable for the android system. And packaging the ios into an ipa installation file suitable for the ios system through a cordova built ios.
In addition, when the program needs to be updated, the version number is modified, the latest HTML5 (HyperText Markup Language 5, hyperText 5.0) update file is copied into the application directory to be repackaged, a cordova-hcp.json file is generated through a cordova-hcp command, the Hash code of the HTML5 file is stored in the cordova-hcp.json file, and the file and the latest HTML5 file are uploaded to the server. And when the client side which installs the program corresponding to the system file to be processed starts the program, detecting whether a new version application needs to be installed on the server side.
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.
In this embodiment, after the server determines that the target program is updated, the server actively pushes the latest version information of the target program to the target receiver, so that the target program receiver determines whether the target program needs to be updated by using the latest version information, and the update prompt of the target program is realized, thereby ensuring the timely update of the program.
In addition, optionally, cross-server accurate pushing may also be implemented, that is, when the server is deployed in a cluster environment, the client may access any one server, and the notified client is likely not the same server connected to the notified client. Therefore, the server can uniformly write the message into the queue, then the message is consumed by each server, and when the server connected with the client receiving the message consumes the message, the message is accurately pushed to the client receiving the message.
Fig. 4 is a third schematic flowchart of an information push method according to an embodiment of the present invention, where an execution subject in this embodiment may be a client. As shown in fig. 4, the method includes:
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.
S402, executing corresponding operation according to the message to be pushed.
In this embodiment, after receiving the to-be-pushed message sent by the server, the client, that is, the target recipient, may execute a corresponding operation based on the to-be-pushed message, so as to implement a response of the to-be-pushed message, for example, update of a version, and active pushing of the message.
In this embodiment, the client also provides a chat room function, the main difficulty of the chat room is that messages are actively pushed by the server, the requirement on real-time performance is high, and point-to-point private chat and many-to-many group chat can be realized by the server push technology.
In this embodiment, optionally, the client may further perform process management, and a complete set of process engines is integrated to enhance the cooperation between each downstream system and the desktop system. A user may design a process (a process of service processing) on line, each process node, that is, a task node, of the process may define a corresponding form, that is, task information and a processing person, elements of the form may also define themselves or may be embedded in a url (uniform resource locator) of an external system, and a processing person of the node may specify a specific user and a role, or may be a person related to a process initiator or a previous task handler.
Wherein each flow node needs to execute a corresponding task.
In addition, optionally, after the process is created, a right may be set to assign the process to a specific user, and the user may view a task generated at a certain node of the process through task management, and may process or set delegation by himself. When a task is processed, the whole process and the current node position can be seen, and the log executed by the whole process can also be seen, so that the history can be conveniently traced, and the specific process comprises the following steps: and acquiring a current execution process identifier and acquiring task node information corresponding to the current execution process identifier. And creating a flow view corresponding to the current execution flow identification according to the task node information.
Fig. 5 is a schematic diagram of a flow chart provided by an embodiment of the invention. Specifically, an identifier of a currently-ongoing process, that is, an identifier of a currently-executed process, is obtained, task node information corresponding to the identifier of the currently-executed process is obtained, the task node information includes task node identifiers (task 1 and task 2 shown in fig. 5) corresponding to the identifier of the currently-executed process, a corresponding process view is created according to the task node information, that is, the task nodes are connected and arranged according to an execution sequence of the process, that is, an arrangement sequence of the task nodes, and meanwhile, a task node, that is, a process node, at which the currently-ongoing process is located may also be displayed.
In specific application, control of a back-end process is realized by adopting an activitti process engine. The front end constructs a flow view through the svg and checks the circulation condition of the current flow. And the method supports online self-defining processes, dynamically generates xml (Extensible Markup Language) required by the process definition, and deploys the xml into a process engine for a user to initiate a new process.
In this embodiment, after the process is created, a right may be set to be assigned to a specific user for use, and the user may view a task generated at a certain node of the process through task management, and may perform processing by himself or set delegation. When the tasks are processed, the whole process and the current node position can be seen, and the logs executed by the whole process can also be seen, so that the history can be conveniently traced.
In this embodiment, seamless migration of the flow version may also be performed, and the implementation process thereof is as follows: and acquiring a flow identifier to be updated, and acquiring a historical task node corresponding to a target historical version corresponding to the flow identifier to be updated. And acquiring task information corresponding to each historical task node, and acquiring a latest task node corresponding to the flow identifier to be updated. And determining a target migration node from the latest task nodes, and storing task information corresponding to all historical task nodes to the target migration node.
Specifically, the task information corresponding to the task node is the content of the task that the task node needs to execute. The flow identifier to be updated is an updated flow identifier. And migrating the task information of the historical task node corresponding to the target historical version corresponding to the flow identifier to be updated to a latest task node corresponding to the latest historical version corresponding to the flow identifier to be updated, namely the target migration node, so as to continuously retain the task information of the historical task node.
Optionally, the flow identifier to be updated may be a name, a number, and the like of the flow to be updated. The target history version may be a history version of the history versions whose generation time is the latest from the current time.
Taking a specific application scenario as an example, when the version 1 of the business process is updated from the version 1.0 to the version 2.0, which indicates that the business process is updated, the business process 1 is used as a process to be updated, the version 1.0 is a target historical version, and the version 2.0 is a 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, and then the tasks on the 3 nodes are all migrated to a certain task node in the 5 task nodes.
In any embodiment, optionally, the client, that is, the service system on the client, may further collect a log through the listener, and perform corresponding processing by using the log, where the specific process is as follows:
and acquiring logs to be processed, wherein the logs to be processed comprise error logs.
And determining system problem information according to the error log.
Further, determining system problem information according to the error log includes:
and determining an error reporting page and an error reporting frequency corresponding to the error reporting page according to the error reporting log.
And if the error reporting frequency corresponding to the error reporting page is greater than the preset frequency value, generating system problem information corresponding to the error reporting page.
Specifically, the client determines an ERROR log, that is, a log containing a preset ERROR character (e.g., ERROR), from the collected logs, where the ERROR log further includes an identifier of an ERROR page.
Specifically, the error log is statistically analyzed to determine the error reporting frequency, i.e., the error reporting times, corresponding to each error reporting page. When the error reporting frequency corresponding to the error reporting page is greater than the preset frequency value, the error reporting frequency of the error reporting page is indicated to be too high, namely that some problems possibly exist in system functions, and the system problem information corresponding to the error reporting page is generated if the system problem information needs to be checked, wherein the system problem information comprises a page identification corresponding to the error reporting page, so that corresponding personnel can quickly locate the problems according to the system problem information, and the loss caused by the problems is reduced. For example, if the number of error logs corresponding to page 1 is 10, the error reporting frequency corresponding to page 1 is 10.
In any embodiment, optionally, the system use information may also be determined according to the log to be processed, and the specific use process is as follows:
and acquiring a log to be processed, wherein the log to be processed comprises a page access log and/or an interface call log.
And determining the system use information according to the page access log and/or the interface call log.
Further, determining system usage information according to the page access log and/or the interface call log includes:
and carrying out statistical analysis on the page access log and/or the interface call log to obtain system use information and/or user behavior information. The system use information comprises one or more of interface calling times, page response average time, page response success rate, page access rate, access times corresponding to the accessed pages and dwell time corresponding to the accessed pages.
Specifically, the client and the back end of the specific service system uniformly record the calling condition of the interface through the interceptor, and uniformly store the calling condition before the request is returned. The front-end definition global monitor captures system errors, and feeds back front-end abnormal information, namely an error report log, to the background at intervals of a timer.
In this embodiment, the client collects the front-end page access log and the error log through the listener, and sends the log information to the background for storage at regular time without separately burying points. And the back-end interceptor collects the interface call log and calculates the interface call duration. The page access log and/or the interface call log are counted through an SQL (Structured Query Language) statement to obtain system use information for an administrator to analyze the use condition of the system and the behavior of a user. The system use condition can concern the front-end page access times, the average residence time, the page access rate, the background interface calling times, the average time consumption and the success rate. The user system service condition can be concerned by inquiring the error log, if the error reporting frequency of a certain page is too high, the system function possibly has certain problems, and development is required to be arranged for troubleshooting, so that the problems can be quickly positioned, and the loss caused by the system problems is reduced.
In addition, optionally, the client, that is, the business system, further provides a single sign-on service, that is, when it is determined that the user accesses the child application, it is determined whether cache information corresponding to the parent application corresponding to the child application exists. And when the cache information corresponding to the parent application corresponding to the child application is determined to exist, accessing the child application according to the cache information.
Specifically, when the user logs in the parent application, the corresponding cache information is generated. When a user accesses a child application corresponding to the parent application, whether a cache information cookie corresponding to the parent application exists is determined, if yes, the parent application is indicated to be logged in, the child application can be directly logged in by using login information input when the user logs in the parent application, namely, the child application is accessed, and rapid login is achieved, so that rapid switching of applications is achieved.
Optionally, the login information may be stored in the cache information, or may be stored in another designated location, which is not limited herein.
Fig. 6 is a schematic diagram of a login process according to an embodiment of the present invention. Specifically, as shown in fig. 6, the server provides two interfaces of login and identity authentication, and when the user logs in but does not log in, the user jumps to a unified login page to generate cache information in the parent application. When the child application is accessed, the interceptor in the jar packet is used for verifying whether the parent application is logged in, and if the parent application is logged in, the login information is returned to automatically log in.
Fig. 7 is a schematic diagram of scan entry according to an embodiment of the present invention. In addition, optionally, when the client is a pc end, scanning login (as shown in fig. 7) may also be performed, that is, an app (application, mobile software) end scans a login two-dimensional code of the pc end by calling a native camera, pushes a message to the pc end after scanning the code to prompt that the code scanning is successful, and clicks to confirm the login. after clicking and confirming the app, pushing a message to login information of the app of the pc end, namely logging in the pc end through the information logged in the app.
In addition, optionally, in order to facilitate a switching system and a browser with fewer users, a browser module is further integrated in the client, i.e., a specific business system (e.g., a desktop system). Directly entering a web address in a browser allows direct access to external web pages. Meanwhile, a multi-tab form is supported, so that a user can collect commonly used websites and can access the websites at any time even if the terminal is crossed.
Specifically, a tool similar to a browser interface is developed through a tab component, which is mainly realized through iframe, and a chrome v8 browser kernel can be used.
It is to be understood that the operations performed by the client, and the functions performed by the operations, are actually those performed by the particular business system on the client, such as, for example, statistical analysis of logs.
In this embodiment, the business system can integrate various applications through the single sign-on service, so that the business system becomes a part of the system portal. The content and page style of the portal can be customized according to the own preference of the user, so that the user can customize the content and theme style concerned by the user. In addition, downstream systems integrating the single sign-on service can also generate corresponding desktop icons on a desktop, so that users can conveniently and quickly switch among the downstream systems, and the working efficiency is improved.
In this embodiment, a client, that is, a business system is a desktop system constructed by adopting a pure HTML5 technology at a front end and adopting a java microservice architecture at a back end, a specific structural framework of the system is shown in fig. 8, and fig. 8 is a schematic structural diagram of the business system framework provided by the embodiment of the present invention. As shown in fig. 8, the system has two major features: the method comprises the steps that firstly, a cross-platform mode is adopted, a pc end supports windows and mac, and a mobile end supports ios and android. And secondly, cross-terminal communication, wherein all clients communicate with each other through long connection of Hyper Text Transfer Protocol (HTTP).
In this embodiment, the related personnel encapsulate the page interacting with the server into a general page, that is, a push page, and other pages need to integrate the push capability of the server and only need to introduce the push page, that is, after the push page is introduced into the page, the server can actively establish long connection with the page, so that the implementation is simple.
Fig. 9 is a schematic structural diagram of an information pushing apparatus according to an embodiment of the present invention, and as shown in fig. 9, the information pushing apparatus 900 is applied to a server, and includes: a first processing module 901 and a first transceiver module 902.
The first processing module 901 is configured to obtain a message to be pushed and information of a target recipient corresponding to the message, where the target recipient includes a communication page.
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.
The first transceiving module 902 is configured to push a message to be pushed to a target recipient based on a long connection.
In one possible design, the first transceiver module 902 is further configured to:
and pushing the latest version information of the target program to a target receiver so that the target receiver determines whether to update the target program according to the latest version information.
In one possible design, the first processing module 901 is further configured to:
and acquiring the system file to be processed and acquiring the system type of the terminal to be installed.
And packaging the system file to be processed according to the system type to generate a target application file.
The information pushing device provided in the embodiment of the present invention can implement the method of the information pushing device in the above embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
Fig. 10 is a schematic structural diagram of an information pushing apparatus according to an embodiment of the present invention, and as shown in fig. 10, the information pushing apparatus 1000 is applied to a client, and includes: a second transceiver module 1001 and a second processing module 1002.
The second transceiving module 1001 is configured to receive a message to be pushed, which is sent by a server, where the message to be pushed is sent through a long connection established between the server and a communication page on a client.
The second processing module 1002 is configured to execute a corresponding operation according to the message to be pushed.
In one possible design, the second processing module 1002 is further configured to:
and acquiring a flow identifier to be updated, and acquiring a historical task node corresponding to a target historical version corresponding to the flow identifier to be updated.
And acquiring task information corresponding to each historical task node, and acquiring a latest task node corresponding to the flow identifier to be updated.
And determining a target migration node from the latest task nodes, and storing task information corresponding to all historical task nodes to the target migration node.
In one possible design, the second processing module 1002 is further configured to:
and acquiring a current execution process identifier and acquiring task node information corresponding to the current execution process identifier.
And creating a flow view corresponding to the current execution flow identification according to the task node information.
In one possible design, the second processing module 1002 is further configured to:
and acquiring a log to be processed, wherein the log to be processed comprises a page access log and/or an interface call log.
And determining the system use information according to the page access log and/or the interface call log.
In one possible design, the second processing module 1002 is further configured to:
and acquiring logs to be processed, wherein the logs to be processed comprise error logs.
And determining system problem information according to the error log.
In one possible design, the second processing module 1002 is further configured to:
and determining an error reporting page and an error reporting frequency corresponding to the error reporting page according to the error reporting log.
And if the error reporting frequency corresponding to the error reporting page is greater than the preset frequency value, generating system problem information corresponding to the error reporting page.
The information pushing device provided by the embodiment of the invention can realize the information pushing device method of the embodiment, the realization principle and the technical effect are similar, and the details are not repeated here.
Fig. 11 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention. As shown in fig. 11, the electronic device 1100 of the present embodiment includes: a processor 1101 and a memory 1102;
the memory 1102 is used for storing computer execution instructions;
a processor 1101 for executing computer-executable instructions stored in the memory to implement the steps performed by the receiving device in the above-described embodiments. Reference may be made in particular to the description relating to the method embodiments described above.
Alternatively, the memory 1102 may be separate or integrated with the processor 1101.
When the memory 1102 is provided separately, the electronic device further comprises a bus 1103 for connecting said memory 1102 and the processor 1101.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer execution instruction is stored in the computer-readable storage medium, and when a processor executes the computer execution instruction, the information push method as described above is implemented.
An embodiment of the present invention further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the information push method as described above is implemented.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of 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.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit. The unit formed by the modules can be realized in a hardware form, and can also be realized in a form of hardware and a software functional unit.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile and non-volatile memory devices, 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 or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the storage medium may reside as discrete components in an electronic device or host device.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (13)

1. An information pushing method, comprising:
acquiring a message to be pushed and information of a target receiver corresponding to the message to be pushed, wherein the target receiver comprises a communication page;
establishing long connection with a communication page corresponding to the target receiver according to the information of the target receiver;
and pushing the message to be pushed to the target receiver based on the long connection.
2. The method of claim 1, wherein the message to be pushed comprises information of a latest version of a target program, and wherein pushing the message to be pushed to the target recipient comprises:
and pushing the latest version information of the target program to the target receiver so that the target receiver determines whether to update the target program according to the latest version information.
3. The method according to any one of claims 1 to 2, further comprising:
acquiring a system file to be processed, and acquiring a system type of a terminal to be installed;
and packaging the system file to be processed according to the system type to generate a target application file.
4. An information pushing method applied to a client, the method comprising:
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;
and executing corresponding operation according to the message to be pushed.
5. The method of claim 4, further comprising:
acquiring a flow identifier to be updated, and acquiring a historical task node corresponding to a target historical version corresponding to the flow identifier to be updated;
acquiring task information corresponding to each historical task node, and acquiring a latest task node corresponding to the flow identifier to be updated;
and determining a target migration node from the latest task node, and storing task information corresponding to all historical task nodes to the target migration node.
6. The method according to claim 4 or 5, further comprising:
acquiring a current execution flow identifier and task node information corresponding to the current execution flow identifier;
and creating a process view corresponding to the current execution process identification according to the task node information.
7. The method of claim 4, further comprising:
acquiring a log to be processed, wherein the log to be processed comprises a page access log and/or an interface call log;
and determining system use information according to the page access log and/or the interface call log.
8. The method of claim 4, further comprising:
acquiring logs to be processed, wherein the logs to be processed comprise error logs;
and determining system problem information according to the error log.
9. The method of claim 8, wherein determining system problem information from the error log comprises:
determining an error reporting page and an error reporting frequency corresponding to the error reporting page according to an error reporting log;
and if the error reporting frequency corresponding to the error reporting page is greater than the preset frequency value, generating system problem information corresponding to the error reporting page.
10. An information pushing apparatus, comprising:
the system comprises a first processing module, a second processing module and a third processing module, wherein the first processing module is used for acquiring a message to be pushed and information of a target receiver corresponding to the message to be pushed, and the target receiver comprises a communication page;
the first processing module 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;
and the first receiving and sending module is used for pushing the message to be pushed to the target receiving party based on the long connection.
11. An information pushing apparatus, comprising:
the second transceiving module is used for 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;
and the second processing module is used for executing corresponding operation according to the message to be pushed.
12. An electronic device, comprising: at least one processor and a memory;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored by the memory, causing the at least one processor to perform the information pushing method of any one of claims 1 to 3 or 4 to 9.
13. A computer-readable storage medium, wherein a computer-executable instruction is stored in the computer-readable storage medium, and when a processor executes the computer-executable instruction, the information push method according to any one of claims 1 to 3 or 4 to 9 is implemented.
CN202111146670.0A 2021-09-28 2021-09-28 Information pushing method and device, electronic equipment and readable storage medium Pending CN115914329A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111146670.0A CN115914329A (en) 2021-09-28 2021-09-28 Information pushing method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111146670.0A CN115914329A (en) 2021-09-28 2021-09-28 Information pushing method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN115914329A true CN115914329A (en) 2023-04-04

Family

ID=86485944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111146670.0A Pending CN115914329A (en) 2021-09-28 2021-09-28 Information pushing method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN115914329A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973737A (en) * 2013-01-30 2014-08-06 腾讯科技(深圳)有限公司 Method, server and browser for actively pushing messages
CN106886437A (en) * 2017-01-24 2017-06-23 北京奇虎科技有限公司 Application program update method and apparatus
CN109857427A (en) * 2018-12-29 2019-06-07 深圳云天励飞技术有限公司 Configure update method and Related product
CN111262726A (en) * 2020-01-08 2020-06-09 Oppo广东移动通信有限公司 Configuration information updating method and device and computer readable storage medium
CN112540783A (en) * 2020-12-18 2021-03-23 航天信息软件技术有限公司 Client upgrading method and device, storage medium and electronic equipment
CN112650606A (en) * 2020-12-30 2021-04-13 北京奇艺世纪科技有限公司 Message processing method, device and system, electronic equipment and storage medium
CN112883261A (en) * 2021-01-28 2021-06-01 北京百度网讯科技有限公司 Configuration data pushing method and device, electronic equipment and medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973737A (en) * 2013-01-30 2014-08-06 腾讯科技(深圳)有限公司 Method, server and browser for actively pushing messages
CN106886437A (en) * 2017-01-24 2017-06-23 北京奇虎科技有限公司 Application program update method and apparatus
CN109857427A (en) * 2018-12-29 2019-06-07 深圳云天励飞技术有限公司 Configure update method and Related product
CN111262726A (en) * 2020-01-08 2020-06-09 Oppo广东移动通信有限公司 Configuration information updating method and device and computer readable storage medium
CN112540783A (en) * 2020-12-18 2021-03-23 航天信息软件技术有限公司 Client upgrading method and device, storage medium and electronic equipment
CN112650606A (en) * 2020-12-30 2021-04-13 北京奇艺世纪科技有限公司 Message processing method, device and system, electronic equipment and storage medium
CN112883261A (en) * 2021-01-28 2021-06-01 北京百度网讯科技有限公司 Configuration data pushing method and device, electronic equipment and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王钰;叶?越: "基于商用多媒体云平台的终端推送服务设计", 微型电脑应用, no. 06, 20 June 2017 (2017-06-20) *

Similar Documents

Publication Publication Date Title
US11750444B2 (en) Implementation of compliance settings by a mobile device for compliance with a configuration scenario
US20210289045A1 (en) Offline client replay and sync
CN103942225A (en) Method and system for invoking resources of Hybrid App client and client
US20210081263A1 (en) System for offline object based storage and mocking of rest responses
CN107181779B (en) Method, device and system for processing access request
CN111262839A (en) Vulnerability scanning method, management equipment, node and storage medium
CN107274222B (en) Advertisement putting method and device
CN111245930A (en) Cross-platform message pushing method and device, computer equipment and storage medium
CN108600377B (en) Method, device, terminal and storage medium for suspending file downloading
CN113900834A (en) Data processing method, device, equipment and storage medium based on Internet of things technology
CN105516333A (en) Interactive method and system based on webpage
US9106596B2 (en) Method and apparatus of configuring a data broadcast service
CN108600378B (en) File downloading method, device, terminal and storage medium
CN113157480A (en) Error information processing method, device, storage medium and terminal
CN112565277A (en) Data transmission method, system and electronic equipment
CN112306591B (en) Remote debugging method and device based on page
CN113779122B (en) Method and device for exporting data
CN103139298A (en) Method for transmitting network data and device
CN115914329A (en) Information pushing method and device, electronic equipment and readable storage medium
CN114925135A (en) Data export method, device, system, electronic equipment and storage medium
CN114915565A (en) Method and system for debugging network
CN112416698B (en) Expansion method and device of monitoring system, storage medium and electronic equipment
CN103347038A (en) Method of WEB server for processing http messages
CN114978902B (en) Information processing method, apparatus, device, storage medium, and program product
CN114253441B (en) Method and device for enabling target function, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination