Disclosure of Invention
The technical problem to be solved by the invention is as follows: the message pushing method and the message pushing system for the mobile office software are provided, messages of all business system modules are pushed uniformly, and messages sent by all the business system modules can be managed uniformly.
In order to solve the problems, the invention adopts the technical scheme that: the message pushing method for the mobile office software comprises the following steps:
a. analyzing the message sent by the service system module according to the configuration file information stored in the background server side by each service system module, and acquiring the main content to be pushed and the message characteristic identifier in the sent message;
b. matching a target user according to the message characteristic identification and the user identity configuration file, and determining the target user to be sent;
c. and judging whether the target user logs in, and sending the analyzed and assembled message main body content to the target user needing to be sent according to the judgment result.
Further, the message includes a message fed back by the service system module after the mobile terminal triggers the service system module and a message pushed by the service system module.
Further, in the step c, the last login time and the last exit time of the target user are compared to judge whether the target user logs in.
Further, in the step c, if the target user is in a logged-on state, the matched message is directly sent to the target user, and the message is stored in the database; and if the target user does not log in, binding the message with the target user, and storing the binding relationship in a cache.
And step d, when the target user logs in, acquiring the user identity and acquiring the message which is not pushed according to the user identity information, deleting the binding relationship from the cache, and storing the pushed message in the database.
In order to realize the method, the invention also provides a message pushing system for the mobile office software, which comprises a plurality of service system modules, a configuration file analysis module, a matching module, a user login judgment module, a message and target user binding relationship storage module and a message pushing module; wherein,
the service system module is used for sending a message to be sent to a user to the configuration file analysis module;
the configuration file analysis module is used for acquiring configuration file information according to rules agreed with each service system module, analyzing the configuration file and acquiring message characteristic identification and main content of a message to be sent;
the matching module is used for matching the logged-in user according to the message characteristic identifier and the user identity identifier information to determine a target user;
the user login judging module is used for comparing the last login time and the last exit time of the target user, if the last login time is greater than the last exit time, the target user is in a login state, and if the last login time is less than or equal to the last exit time, the target user is in a non-login state;
the message and target user binding relation storage module is used for binding the target user and the push message when judging that the target user is not logged in, and storing the target user and the push message in a cache;
the message pushing module is used for sending the main content of the message to be sent to the target user in the login state.
The invention has the beneficial effects that: through the configuration file analysis module, the invention can conveniently analyze the message sent by the service system module; the service system module only needs to configure the message configuration information to be sent to the configuration file according to the uniform configuration file module and put the configuration file in the background server, and the configuration file analysis module can analyze the message according to the message and the configuration file information sent by the service system, so that the message content can be accurately pushed to the mobile terminal, the uniform pushing and uniform management of the message are realized, and the waste of resources is avoided.
Detailed Description
The invention relates to a message pushing system for mobile office software, which comprises a plurality of service system modules, a configuration file analysis module, a matching module, a user login judgment module, a message and target user binding relationship storage module and a message pushing module.
The service system module is used for sending a message to be sent to a user to the configuration file analysis module; the configuration file analysis module is used for acquiring configuration file information according to rules agreed with each service system module, analyzing the configuration file and acquiring message characteristic identification and main content of a message to be sent; the matching module is used for matching the logged-in user according to the message characteristic identifier and the user identity identifier information to determine a target user; the user login judging module is used for comparing the last login time and the last exit time of the target user, if the last login time is greater than the last exit time, the target user is in a login state, and if the last login time is less than or equal to the last exit time, the target user is in a non-login state; the message and target user binding relation storage module is used for binding the target user and the push message when judging that the target user is not logged in, and storing the target user and the push message in a cache; the message pushing module is used for sending the main content of the message to be sent to the target user in the login state.
The working flow of the method of the invention is shown in figure 1:
1. each service system module sends the message to be sent to the user to a configuration file analysis module for analysis;
2. the configuration file analysis module analyzes the configuration file according to the configuration file information stored in the background server side by each service system module and the obtained message so as to obtain a message characteristic identifier and the main content of the message to be sent;
3. the matching module matches the logged-in user according to the message characteristic identifier and the user identity identifier information to determine a target user;
4. the user login judging module compares the last login time and the last exit time of the target user, if the last login time is larger than the last exit time, the target user is in a login state, and if the last login time is smaller than or equal to the last exit time, the target user is in a non-login state;
if the target user is judged not to be logged in, the message and target user binding relation storage module binds the target user and the push message and stores the target user and the push message in a cache;
and if the target user is judged to be logged in, the message pushing module sends the main content of the message to be sent to the target user in the logged-in state.
The foregoing describes the general principles and features of the present invention and, together with the general principles of the invention, further modifications and improvements thereto, may be made without departing from the spirit and scope of the invention as set forth in the appended claims.