CN109241414A - System message method for pushing and terminal device based on message template - Google Patents

System message method for pushing and terminal device based on message template Download PDF

Info

Publication number
CN109241414A
CN109241414A CN201810946657.5A CN201810946657A CN109241414A CN 109241414 A CN109241414 A CN 109241414A CN 201810946657 A CN201810946657 A CN 201810946657A CN 109241414 A CN109241414 A CN 109241414A
Authority
CN
China
Prior art keywords
message
template
system message
message template
spatial cache
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
CN201810946657.5A
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.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China 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 Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201810946657.5A priority Critical patent/CN109241414A/en
Publication of CN109241414A publication Critical patent/CN109241414A/en
Pending legal-status Critical Current

Links

Abstract

The present invention is suitable for Internet technical field, provide a kind of system message method for pushing and terminal device based on message template, it include: by generating the system message that will be sent to target terminal, the system message is stored into the spatial cache of server, and determine message template corresponding with the system message, it is nested into the template and is shown.By the priority for determining the system message according to the temporal information of system message and the Template Information of message template, and when reaching preset time, according to the sequence of priority from high to low, system message is nested into message template, target terminal is pushed to from spatial cache.By the system message method for pushing based on message template, the higher system message of priority is preferentially pushed to user, family can be used and seeing at the first time and handling the message, to improve the efficiency that system message is obtained and handled.

Description

System message method for pushing and terminal device based on message template
Technical field
The invention belongs to Internet technical fields, more particularly to system message method for pushing and terminal based on message template Equipment.
Background technique
Various functions may be implemented in the built-in system or operation system of many companies, therefore also along with simultaneously A large amount of system message can be sent to corresponding terminal.For example, insurance company has huge business personnel group and business datum, Especially present insurance system function is more and more abundant, in the kind of insurance, the more and more situations of the personnel that insure, system is every It can push a large amount of various types of information to business personnel.And these system informations are sent out by unified corresponding template vector Target terminal is given, therefore, it is very easy to prevent user from normally receiving simultaneously in the case where information content is larger, type is more Handle these information.
In the prior art in a certain order to user's PUSH message, such as time sequencing etc., this mode is in information Measure it is numerous and jumbled in the case where be easy to obscure or missing information is to reduce the efficiency of message acquisition influences the effective of Message Processing Property.
Summary of the invention
In view of this, the embodiment of the invention provides system message method for pushing and terminal device based on message template, To solve to be easy to obscure in the prior art or missing information, to reduce the efficiency of message acquisition, influence Message Processing has The problem of effect property.
The first aspect of the embodiment of the present invention provides a kind of system message method for pushing based on message template, comprising:
System message is generated, and the system message is stored into preset spatial cache;The system message is used for It is sent to target terminal;
Message template corresponding with the system message is determined according to the system message;The message template is for being embedded in The system message is simultaneously shown;
According to the Template Information of the temporal information of the system message and the message template, the system message is determined Priority;
It is empty from the caching according to the priority sequence from high to low of the system message when reaching preset time Between it is middle extract the system message, and pushed according to the message template to the target terminal.
The second aspect of the embodiment of the present invention provides a kind of terminal device, including memory, processor and is stored in In the memory and the computer program that can run on the processor, when the processor executes the computer program It performs the steps of
System message is generated, and the system message is stored into preset spatial cache;The system message is used for It is sent to target terminal;
Message template corresponding with the system message is determined according to the system message;The message template is for being embedded in The system message is simultaneously shown;
According to the Template Information of the temporal information of the system message and the message template, the system message is determined Priority;
It is empty from the caching according to the priority sequence from high to low of the system message when reaching preset time Between it is middle extract the system message, and pushed according to the message template to the target terminal.
The third aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer storage medium It is stored with computer program, the computer program includes program instruction, and described program instruction makes institute when being executed by a processor State the method that processor executes above-mentioned first aspect.
Existing beneficial effect is the embodiment of the present invention compared with prior art:
The embodiment of the present invention is stored the system message to clothes by generating the system message that will be sent to target terminal It is engaged in the spatial cache of device, and determines message template corresponding with the system message, nested into the template and shown.It is logical The priority that the system message is determined according to the temporal information of system message and the Template Information of message template is crossed, and pre- reaching If when the time, according to the sequence of priority from high to low, system message being nested into message template, is pushed from spatial cache To target terminal.By the way that the higher system message of priority is preferentially pushed to user, family can be used and seeing at the first time And the message is handled, to improve the efficiency that system message is obtained and handled.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the flow chart for the system message method for pushing based on message template that the embodiment of the present invention one provides;
Fig. 2 is the specific implementation of the system message method for pushing S102 provided by Embodiment 2 of the present invention based on message template Flow chart;
Fig. 3 is the schematic diagram for the terminal device that the embodiment of the present invention four provides;
Fig. 4 is the schematic diagram for the terminal device that the embodiment of the present invention five provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
It is the process for the system message method for pushing based on message template that the embodiment of the present invention one provides referring to Fig. 1, Fig. 1 Figure.The executing subject of system message method for pushing in the present embodiment based on message template includes but is not limited to computer, service The devices such as device, these devices all have the function of message push.System message push side based on message template as shown in Figure 1 Method may comprise steps of:
In S101, system message is generated, and the system message is stored into preset spatial cache;The system Message is used to send to target terminal.
In the built-in system of many companies or operation system, various functions may be implemented.For example, passing through built-in system The information such as notice, the newly update of the task assigned or action that company is sent to user, by operation system to Staff sends new business and generates the various information such as information, the more new information of business, emergency information, to guarantee passing through Various system managers and while business, can send the process of project or business to user in real time, guarantee that it can be just Often, it efficiently operates.
Illustratively, in insurance industry, insurance company has huge business personnel group and business datum, especially exists Present insurance system function is more and more abundant, in the kind of insurance, the more and more situations of the personnel that insure, and system daily can be to industry Business person pushes a large amount of various types of system informations, for example, new insurance business information, client modify data information or system New notification information etc..And these system informations are all to be sent to target terminal by unified corresponding template vector, therefore, very It is easy to prevent user from normally receiving and processing these information in the case where information content is larger, type is more.By according to Certain sequence is to user's PUSH message, for example, corresponding system message is pushed to user according to the time sequencing that message generates, But this mode is easy to obscure in the case where information content is numerous and jumbled or missing information.
In the present embodiment, system message is firstly generated.The method for generating system message can be terminal device identification and work as Preceding system environments, receive need to handle mission bit stream perhaps after data it is raw according to these mission bit streams or data At system message.Wherein, mission bit stream to be treated or data are also possible to by artificially inputting, for example, administrative staff In system administration page cuit information or business information, so that terminal device handles it.
It should be noted that the system message in the present embodiment is the message that will be pushed to target terminal, it is used for target The user of terminal notifies some items.For example, the operational data or some modification things that notify new task, newly increase Etc., herein without limitation.
After generating system message, these system messages are stored into preset spatial cache, are generated to avoid one System data just as target terminal send and caused by data burst.It should be noted that the spatial cache in the present embodiment It may be set in external server hard disc storage equipment, by the storage equipment of peripheral hardware, a greater number can be stored simultaneously With the system message of type, reliable memory space is provided to data.Also it may be set in memory, such as the caching of redis Mode, redis are a key-value storage systems, it supports the value type of storage relatively more, including character string, chain Table, set, the data of ordered set or hash type, these data types, which are all propped up, captures intersection union and difference set and richer Operation, and these operations are all atomicities.On this basis, redis supports the sequence of various different modes, in order to protect Efficiency is demonstrate,proved, data are all to cache in memory.The data of update periodically can be written disk or modification is operated by redis Additional record file is written, and realizes master-slave synchronisation on this basis, by the cache way of redis, can be applicable in It is more in the data type that the same time needs to transmit in the case that data type is more, to guarantee polymorphic type, more data volumes In the case where data transmit efficiency.
Optionally, after generating system message, the operating condition of current network, target terminal can also be identified, when In the case that the workload that network load is smaller or target terminal is currently processed is seldom, directly the system message can also be sent out Send to target terminal, so that target terminal is got system message in time, and handled, improve system message receive and The efficiency of processing.
In S102, message template corresponding with the system message is determined according to the system message;The message mould Plate is for being embedded in the system message and being shown.
In the present embodiment, all system messages are shown by nesting into message template, we are pre- First various types of message templates are stored, the format management of database can also be passed through.Wherein each template has its correspondence Function, use environment or keyword, function is used to indicate the function of system message that the message template can notify, uses Environment is used to indicate that the message template to carry out the environment of message informing, and keyword is used to indicate the mark of the message template, can be with Corresponding message template is found by the keyword.
After generating system message, message template corresponding with the system message is determined according to system message.Specifically, Message template corresponding with the system message can be determined by the feature or keyword of the system message.
Further, when determining message template corresponding with the system message according to system message, there are at least two When, then therefrom select any one to be determined as message template corresponding with the system message.
In S103, according to the Template Information of the temporal information of the system message and the message template, determine described in The priority of system message.
After determining the corresponding message template of system message, according to the Template Information of message template and system message Temporal information determines the priority of the system message.Wherein, the Template Information of message template may include the message template The information such as weight, function, the temporal information of system message may include caching duration of the system message in spatial cache, have Imitate the information such as time.
Optionally, in the present embodiment, it can determine that the weight of message template is higher or the corresponding function of message template More important, then the priority of its corresponding system message is bigger;Caching duration of the system message in spatial cache is bigger, indicates The system message storage time is too long, needs to be discharged as early as possible, then it has higher priority;System message it is effective when Between it is shorter, indicate that the system message needs to be discharged as early as possible, then it has higher priority.It should be noted that these The size or length of data volume can be measured by the way that corresponding threshold value is arranged, and if more than or equal to the threshold value, then be said Bright corresponding data volume is larger, it is determined that the corresponding priority of larger data amount be it is big or small, do not illustrate one by one herein.
In S104, when reaching preset time, according to the priority sequence from high to low of the system message, from institute It states and extracts the system message in spatial cache, and pushed according to the message template to the target terminal.
After determining the priority of the system message, when reaching preset time, according to the preferential of the system message The sequence of grade from high to low extracts system message from spatial cache according to message template and pushes to target terminal.
It should be noted that the preset time in the present embodiment can be a preset time cycle, when reaching this Between the period when, then supplying system message;At the time of being also possible to one or more fixation set by user, the moment is reached When, to target terminal PUSH message corresponding with system message.
It further, can be with each target terminal in system for unified management, for example, target all in system is whole End sets different grades, and the target terminal in each grade is corresponding with different priority.In supplying system message, pass through The system message determines corresponding target terminal, and determines the corresponding priority of the target terminal, finally according to target end The sequence of priority from high to low is held to push to target terminal.
Optionally, the operating status of detection current network state or target terminal can also be passed through, it is determined whether need Carry out message push.Illustratively, if current network load is smaller or volume of transmitted data therein is smaller, it is determined that when Preceding network state is preferable, can carry out data-pushing.Alternatively, if current target terminal does not handle data or data processing In the case that amount is few, can directly it push, without the ability propelling data when reaching preset time.In this way, The efficiency of system message push can be improved, guarantee that system message can be according to current network operation state or target terminal Operating status push.
After S104, the method can also include:
Receive the message reception notification that the target terminal is sent;
According to the message reception notification, system corresponding with the message reception notification in the spatial cache of deleting disappears Breath.
Specifically, receiving the message reception notification that target terminal is sent after system message is pushed to target terminal. It wherein, include the message identifier of corresponding system message in the message reception notification.It is logical receiving the message sink After knowing, according to message reception notification, system message corresponding with message reception notification in spatial cache is deleted.By in determination Target terminal deletes the system message after receiving system message, can receive system message guaranteeing target terminal Under the premise of, the validity of spatial cache is improved, to store more new system messages.
Above scheme is stored the system message to service by generating the system message that will be sent to target terminal It in the spatial cache of device, and determines message template corresponding with the system message, is nested into the template and shown.Pass through The priority of the system message is determined according to the Template Information of the temporal information of system message and message template, and default reaching When the time, according to the sequence of priority from high to low, system message is nested into message template, is pushed to from spatial cache Target terminal.By the way that the higher system message of priority is preferentially pushed to user, family can be used and seeing at the first time simultaneously The message is handled, to improve the efficiency that system message is obtained and handled.
Referring to fig. 2, Fig. 2 is the system message method for pushing S102 provided by Embodiment 2 of the present invention based on message template Specific implementation flow chart.System message method for pushing based on message template as shown in Figure 2 may comprise steps of:
In S201, the message key of the system message is obtained.
After generating system message, the keyword of the system message is first determined.Wherein, keyword can be the system and disappear For indicating the word of operational motion in breath, the content and function of this system message are determined by keyword.
Illustratively, if system message generated be " modification customer information, O/No. xxxxxxx, specifically: will Client therein is revised as xxxxxx on date of insuring." then by extracting " the modification client's letter of the movement in the service system message Breath ", it is known that, this is the system message for needing to modify customer information.
In S202, searched in preset message template library according to the message key and the message key pair The message template answered.
The message template in various situations is pre-established, system message is nested into message template and is shown.Its In, message template all passes through keyword and is stored in message template library.It should be noted that being disappeared here by what keyword stored It is corresponding with the message key of system message to cease template, for finding out by keyword and system message and corresponding message Template.
We are managed message template by presetting message template library, wherein can also be in the function of determining message template Later, it is subjected to block management according to functional area.For example, there may be new contract underwriting business, reason in insurance system Compensation business, customer service business and continuous receive save the processes such as business from damage, by by these message templates according to different processes into Row management, the efficiency of management for the message template that can deduct a percentage.At the same time it can also carry out pipe to each message template setting identification symbol Reason, each identifier correspond to the functional information of each message template.
Further, in the present embodiment, each message template has corresponding weight information, for indicating that this disappears Cease the importance of the corresponding system message of template.Since there may be many system messages, different system messages is set The larger workload of weight, the speed of service for also easilying lead to system reduce, and therefore, weight are set to message template, with system One corresponds to and the weight of different system messages.In the weight that message template has been determined and the corresponding message of system message has been determined After template, weight corresponding to the system message can be determined, to carry out pair according to different weights to the system message The processing answered.
In S203, if message template corresponding with the message key is not present in the message template library, build New message template corresponding with the message key is found, and sets the weight of the message template.
After searching message template corresponding with message key in message template library, if not finding and the message When the corresponding message template of keyword, then the message template of this function may be not present in description messages template library, just need Establish new message template.New message template is established, by the message key with nested by the new message template It is shown into corresponding system message.
Further, after establishing message template library, calling different message templates aobvious by the message template library When showing system message, can count each message template uses the time.By setting a template time threshold value, for measuring The allocating time of each message template the last time.When calling each message template, when recording the calling of each message template Between, and count the duration of the allocating time of the last time so far and illustrate this if the duration is greater than template time threshold value A message template is for a long time without called, this possible message template has been eliminated and system is not aware that, then can be with Consider that the message template for not calling these for a long time is deleted, or is revised as corresponding with current newest system message Mode is called with re-starting.
Can also be within week regular hour, the unified message template checked in message template library, investigation, which is fallen not meeting, to be worked as The message template of preceding system message mode, or be updated, guarantee that system message can pass through newest message template It has been shown that, improves the identification of user.
Above scheme is determining system by setting message template and its corresponding weight in message template library in advance After the keyword of message, message template corresponding with the system message is determined by the keyword, and do not finding correspondence In the case where message template, message template corresponding with the service system message is established, ensure that different system messages can root It according to the weight of each message template, is shown by corresponding message template, improves the identification and display effect of system message.
The embodiment of the present invention three provides the concrete methods of realizing of the system message method for pushing S103 based on message template, Wherein, the temporal information of the system message includes the caching duration of the system message, the Template Information of the message template Maximum keep alive time and weight including the corresponding message template of the system message.In the present embodiment three based on message template System message method for pushing may comprise steps of:
The priority of the system message is calculated by following formula:
Wherein, Tn_cacheFor indicating caching duration of n-th of system message packet_n in spatial cache; Tn_MAXFor indicating the maximum keep alive time of the corresponding message template of n-th of system message packet_n;WnFor indicating described The weight of the corresponding message template of n-th of system message packet_n.
Specifically, by the maximum keep alive time of setting message template, for indicating from the system message is generated to deletion The time interval length of the system message then can be by this when time interval is more than or equal to the maximum keep alive time System message is deleted.In the present embodiment, by by system message in the caching duration in spatial cache and between maximum keep alive It is divided by, determines the storage time ratio of the system message used up, while being determined with the weight of the message template should The priority of system message.
Pass through the formula, it may be determined that if in maximum keep alive time identical situation, duration is bigger for caching, message template The bigger system message of weight, there is bigger priority, then can preferentially be pushed away.
Further, it after the priority of system message has been determined, needs to be pushed out according to priority.May be used also To set a time cycle, many systems may be stored with when the time reaching the time cycle, in spatial cache and have been disappeared It ceases, then the sequence extrusion by these system messages according to priority from high to low.
Further, the method can also include:
When the caching duration in the spatial cache of the system message is greater than the maximum keep alive time of the system message, Obtain the weight of the corresponding message template of the system message;
If the weight of the message template, which is less than preset message, deletes threshold value, delete described in the spatial cache System message.
Specifically, the caching duration of each system message, i.e. system message can be counted after generating system message The time span being stored in spatial cache, and by caching duration compared with the maximum keep alive time.It is somebody's turn to do if caching duration and being less than The maximum keep alive time then illustrates that system message can also continue to be stored in spatial cache;If in the spatial cache of system message Caching duration be greater than the system message the maximum keep alive time when, obtain the power of the corresponding message template of the system message Weight.It is compared by the way that the weight of the message template is deleted threshold value with preset message, if the weight of the message template is small Threshold value is deleted in preset message, then deletes the system message in the spatial cache.By deleting old number in time According to new system message can be stored at any time to guarantee the amount of storage of spatial cache.
Above scheme, by the way that system message is divided by the caching duration in spatial cache and between maximum keep alive, It determines the storage time ratio of the system message used up, while determining the system message with the weight of the message template Priority, so that the caching system message that duration is bigger, message template weight is bigger, has bigger priority, then may be used To be preferentially pushed away, the push that the system message that ensure that in spatial cache can be orderly, to improve system message push Success rate and treatment effeciency.
It is a kind of schematic diagram for system message driving means that the embodiment of the present invention four provides referring to Fig. 3, Fig. 3.Device 300 It can be the devices such as smart phone, tablet computer, which has system message push function.The device 300 of the present embodiment wraps The each unit included is used to execute each step in the corresponding embodiment of Fig. 1, referring specifically in the corresponding embodiment of Fig. 1 and Fig. 1 Associated description, do not repeat herein.The device 300 of the present embodiment include: message generation unit 301, template determination unit 302, Priority determining unit 303 and message push unit 304.
Message generation unit 301 is stored for generating system message, and by the system message to preset spatial cache In;The system message is used to send to target terminal;
Template determination unit 302, for determining message template corresponding with the system message according to the system message; The message template is for being embedded in the system message and being shown;
Priority determining unit 303, for according to the temporal information of the system message and the template of the message template Information determines the priority of the system message;
Message push unit 304, for when reaching preset time, according to the system message priority from high to low Sequence, the system message is extracted from the spatial cache, and push to the target terminal according to the message template.
Further, the template determination unit 302 may include:
Keyword extraction unit, for extracting the message key of the system message;
Template searching unit, for being searched in preset message template library according to the message key and the message The corresponding message template of keyword;
Template establishes unit, if for message mould corresponding with the message key to be not present in the message template library Plate then establishes new message template corresponding with the message key, and sets the weight of the message template.
Further, the priority determining unit 303 can be used for:
The priority of the system message is calculated by following formula:
Wherein, Tn_cacheFor indicating caching duration of n-th of system message packet_n in spatial cache; Tn_MAXFor indicating the maximum keep alive time of the corresponding message template of n-th of system message packet_n;WnFor indicating described The weight of the corresponding message template of n-th of system message packet_n.
Further, the system message driving means can also include:
Duration comparison unit is cached, for being greater than the system when the caching duration in the spatial cache of the system message When the maximum keep alive time of message, the weight of the corresponding message template of the system message is obtained;
First message deletes unit, if the weight for the message template, which is less than preset message, deletes threshold value, deletes Except the system message in the spatial cache.
Further, the system message driving means can also include:
Confirmation message receiving unit, the message reception notification sent for receiving the target terminal;The message sink Notice is that the target terminal receives the confirmation message sent after the system message;
Second message deletes unit, for deleting in the spatial cache and disappearing with described according to the message reception notification Breath receives and notifies corresponding system message.
Above scheme is stored the system message to service by generating the system message that will be sent to target terminal It in the spatial cache of device, and determines message template corresponding with the system message, is nested into the template and shown.Pass through The priority of the system message is determined according to the Template Information of the temporal information of system message and message template, and default reaching When the time, according to the sequence of priority from high to low, system message is nested into message template, is pushed to from spatial cache Target terminal.By the way that the higher system message of priority is preferentially pushed to user, family can be used and seeing at the first time simultaneously The message is handled, to improve the efficiency that system message is obtained and handled.
Fig. 4 is the schematic diagram for the terminal device that the embodiment of the present invention five provides.As shown in figure 4, the terminal of the embodiment is set Standby 4 include: processor 40, memory 41 and are stored in the meter that can be run in the memory 41 and on the processor 40 Calculation machine program 42.The processor 40 realizes that above-mentioned each system based on message template disappears when executing the computer program 42 The step in method for pushing embodiment, such as step 101 shown in FIG. 1 are ceased to 103.Alternatively, the processor 40 execute it is described The function of each module/unit in above-mentioned each Installation practice, such as unit 301 to 304 shown in Fig. 3 are realized when computer program 42 Function.
Illustratively, the computer program 42 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 41, and are executed by the processor 40, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 42 in the terminal device 4 is described.
The terminal device 4 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The terminal device may include, but be not limited only to, processor 40, memory 41.It will be understood by those skilled in the art that Fig. 4 The only example of terminal device 4 does not constitute the restriction to terminal device 4, may include than illustrating more or fewer portions Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net Network access device, bus etc..
Alleged processor 40 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 41 can be the internal storage unit of the terminal device 4, such as the hard disk or interior of terminal device 4 It deposits.The memory 41 is also possible to the External memory equipment of the terminal device 4, such as be equipped on the terminal device 4 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card, FC) etc..Further, the memory 41 can also have been deposited both the inside including the terminal device 4 Storage unit also includes External memory equipment.The memory 41 is for storing the computer program and terminal device institute Other programs and data needed.The memory 41 can be also used for temporarily storing the number that has exported or will export According to.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of system message method for pushing based on message template characterized by comprising
System message is generated, and the system message is stored into preset spatial cache;The system message is used for mesh Terminal is marked to send;
Message template corresponding with the system message is determined according to the system message;The message template is described for being embedded in System message is simultaneously shown;
According to the Template Information of the temporal information of the system message and the message template, the preferential of the system message is determined Grade;
When reaching preset time, according to the priority sequence from high to low of the system message, from the spatial cache The system message is extracted, and is pushed according to the message template to the target terminal.
2. the system message method for pushing based on message template as described in claim 1, which is characterized in that described according to System message determines message template corresponding with the system message, comprising:
Extract the message key of the system message;
Message template corresponding with the message key is searched in preset message template library according to the message key;
If message template corresponding with the message key is not present in the message template library, foundation is new to disappear with described The corresponding message template of keyword is ceased, and sets the weight of the message template.
3. the system message method for pushing based on message template as described in claim 1, which is characterized in that the system message Temporal information include the system message caching duration, the Template Information of the message template includes the system message pair The maximum keep alive time for the message template answered and weight;
It is described according to the temporal information of the system message and the Template Information of the message template, determine the system message Priority, comprising:
The priority of the system message is calculated by following formula:
Wherein, Tn_cacheFor indicating caching duration of n-th of system message packet_n in spatial cache;Tn_MAXWith In the maximum keep alive time for indicating the corresponding message template of n-th of system message packet_n;WnFor indicating n-th of system The weight for the corresponding message template of message packet_n of uniting.
4. the system message method for pushing based on message template as claimed in claim 2, which is characterized in that the method is also wrapped It includes:
When the caching duration in the spatial cache of the system message is greater than the maximum keep alive time of the system message, obtain The weight of the corresponding message template of the system message;
If the weight of the message template, which is less than preset message, deletes threshold value, the system in the spatial cache is deleted Message.
5. the system message method for pushing according to any one of claims 1-4 based on message template, which is characterized in that described When reaching preset time, according to the priority sequence from high to low of the system message, extracted from the spatial cache The system message, and according to the message template to the target terminal push after, further includes:
Receive the message reception notification that the target terminal is sent;The message reception notification receives institute for the target terminal State the confirmation message sent after system message;
According to the message reception notification, system message corresponding with the message reception notification in the spatial cache is deleted.
6. a kind of terminal device, which is characterized in that including memory and processor, being stored in the memory can be described The computer program run on processor, which is characterized in that when the processor executes the computer program, realize following step It is rapid:
System message is generated, and the system message is stored into preset spatial cache;The system message is used for mesh Terminal is marked to send;
Message template corresponding with the system message is determined according to the system message;The message template is described for being embedded in System message is simultaneously shown;
According to the Template Information of the temporal information of the system message and the message template, the preferential of the system message is determined Grade;
When reaching preset time, according to the priority sequence from high to low of the system message, from the spatial cache The system message is extracted, and is pushed according to the message template to the target terminal.
7. terminal device as claimed in claim 6, which is characterized in that according to system message determination and the system message Corresponding message template, comprising:
Extract the message key of the system message;
Message template corresponding with the message key is searched in preset message template library according to the message key;
If message template corresponding with the message key is not present in the message template library, foundation is new to disappear with described The corresponding message template of keyword is ceased, and sets the weight of the message template.
8. terminal device as claimed in claim 6, which is characterized in that the temporal information of the system message includes the system The caching duration of message, the Template Information of the message template include the maximum keep alive of the corresponding message template of the system message Time and weight;
It is described according to the temporal information of the system message and the Template Information of the message template, determine the system message Priority, comprising:
The priority of the system message is calculated by following formula:
Wherein, Tn_cacheFor indicating caching duration of n-th of system message packet_n in spatial cache;Tn_MAXWith In the maximum keep alive time for indicating the corresponding message template of n-th of system message packet_n;WnFor indicating n-th of system The weight for the corresponding message template of message packet_n of uniting.
9. terminal device as claimed in claim 7, which is characterized in that the method also includes:
When the caching duration in the spatial cache of the system message is greater than the maximum keep alive time of the system message, obtain The weight of the corresponding message template of the system message;
If the weight of the message template, which is less than preset message, deletes threshold value, the system in the spatial cache is deleted Message.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
CN201810946657.5A 2018-08-20 2018-08-20 System message method for pushing and terminal device based on message template Pending CN109241414A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810946657.5A CN109241414A (en) 2018-08-20 2018-08-20 System message method for pushing and terminal device based on message template

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810946657.5A CN109241414A (en) 2018-08-20 2018-08-20 System message method for pushing and terminal device based on message template

Publications (1)

Publication Number Publication Date
CN109241414A true CN109241414A (en) 2019-01-18

Family

ID=65070098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810946657.5A Pending CN109241414A (en) 2018-08-20 2018-08-20 System message method for pushing and terminal device based on message template

Country Status (1)

Country Link
CN (1) CN109241414A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110138972A (en) * 2019-05-17 2019-08-16 维沃移动通信有限公司 A kind of notifier processes method and device
CN110224925A (en) * 2019-05-22 2019-09-10 维沃移动通信有限公司 Message management and mobile terminal
CN110365497A (en) * 2019-05-29 2019-10-22 平安科技(深圳)有限公司 Information push method, device, electronic equipment and storage medium
CN111614972A (en) * 2020-05-27 2020-09-01 网易(杭州)网络有限公司 System message processing method and device for live application
CN113051087A (en) * 2021-03-17 2021-06-29 厦门立林科技有限公司 Method for enhancing message queue bridging
CN114006877A (en) * 2021-10-28 2022-02-01 深圳平安综合金融服务有限公司 Message transmission method and device, electronic equipment and storage medium
CN114615325A (en) * 2022-03-11 2022-06-10 平安科技(深圳)有限公司 Message pushing method and device, computer equipment and storage medium
CN115132332A (en) * 2022-06-21 2022-09-30 深圳伯医科技有限公司 Pushing method and related equipment for accurate checking reservation message

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4566078A (en) * 1983-03-30 1986-01-21 International Business Machines Corp. Concurrent multi-lingual use in data processing systems
JP2000250784A (en) * 1999-03-03 2000-09-14 Toshiba Corp Remotely monitoring system
US20040015505A1 (en) * 2002-07-18 2004-01-22 Ryan Quick Delivering messages to message servers
US20080003984A1 (en) * 2006-06-29 2008-01-03 Christian Kraft Method and system for improved handling of message templates
US20080028031A1 (en) * 2006-07-25 2008-01-31 Byron Lewis Bailey Method and apparatus for managing instant messaging
US20110208820A1 (en) * 2010-02-12 2011-08-25 International Business Machines Corporation Method and system for message handling
CN104104591A (en) * 2014-08-06 2014-10-15 携程计算机技术(上海)有限公司 Message pushing method and system
US20160232137A1 (en) * 2015-02-11 2016-08-11 Google Inc. Methods, systems, and media for presenting contextually relevant information
US20170041257A1 (en) * 2014-04-16 2017-02-09 Huawei Technologies Co., Ltd. Information Processing Method, Apparatus and System Based on Instant Messaging
US20170171143A1 (en) * 2015-12-14 2017-06-15 International Business Machines Corporation Method and apparatus for unified message adaptation
US20170243278A1 (en) * 2012-07-25 2017-08-24 CapitalRock LLC Generation of suggestions and reasoning for product selection

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4566078A (en) * 1983-03-30 1986-01-21 International Business Machines Corp. Concurrent multi-lingual use in data processing systems
JP2000250784A (en) * 1999-03-03 2000-09-14 Toshiba Corp Remotely monitoring system
US20040015505A1 (en) * 2002-07-18 2004-01-22 Ryan Quick Delivering messages to message servers
US20080003984A1 (en) * 2006-06-29 2008-01-03 Christian Kraft Method and system for improved handling of message templates
US20080028031A1 (en) * 2006-07-25 2008-01-31 Byron Lewis Bailey Method and apparatus for managing instant messaging
US20110208820A1 (en) * 2010-02-12 2011-08-25 International Business Machines Corporation Method and system for message handling
US20170243278A1 (en) * 2012-07-25 2017-08-24 CapitalRock LLC Generation of suggestions and reasoning for product selection
US20170041257A1 (en) * 2014-04-16 2017-02-09 Huawei Technologies Co., Ltd. Information Processing Method, Apparatus and System Based on Instant Messaging
CN104104591A (en) * 2014-08-06 2014-10-15 携程计算机技术(上海)有限公司 Message pushing method and system
US20160232137A1 (en) * 2015-02-11 2016-08-11 Google Inc. Methods, systems, and media for presenting contextually relevant information
US20170171143A1 (en) * 2015-12-14 2017-06-15 International Business Machines Corporation Method and apparatus for unified message adaptation

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈维兴;张天娇;林家泉;刘贵行;: "基于移动agent的机坪机会传输控制方法" *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110138972A (en) * 2019-05-17 2019-08-16 维沃移动通信有限公司 A kind of notifier processes method and device
CN110224925A (en) * 2019-05-22 2019-09-10 维沃移动通信有限公司 Message management and mobile terminal
CN110365497A (en) * 2019-05-29 2019-10-22 平安科技(深圳)有限公司 Information push method, device, electronic equipment and storage medium
CN111614972A (en) * 2020-05-27 2020-09-01 网易(杭州)网络有限公司 System message processing method and device for live application
CN113051087A (en) * 2021-03-17 2021-06-29 厦门立林科技有限公司 Method for enhancing message queue bridging
CN113051087B (en) * 2021-03-17 2023-10-03 厦门立林科技有限公司 Message queue bridging enhancement method
CN114006877A (en) * 2021-10-28 2022-02-01 深圳平安综合金融服务有限公司 Message transmission method and device, electronic equipment and storage medium
CN114615325A (en) * 2022-03-11 2022-06-10 平安科技(深圳)有限公司 Message pushing method and device, computer equipment and storage medium
CN115132332A (en) * 2022-06-21 2022-09-30 深圳伯医科技有限公司 Pushing method and related equipment for accurate checking reservation message
CN115132332B (en) * 2022-06-21 2023-12-22 深圳伯医科技有限公司 Push method for precisely checking reservation message and related equipment

Similar Documents

Publication Publication Date Title
CN109241414A (en) System message method for pushing and terminal device based on message template
CN103841170B (en) A kind of cloud storage method and server
CN109543455B (en) Data archiving method and device for block chain
CN103959256B (en) Data duplication based on fingerprint is deleted
CN104584524B (en) It polymerize the data in intermediary system
CN102591909B (en) Systems and methods for providing increased scalability in deduplication storage systems
CN106095589B (en) A kind of method, apparatus and system for distributing subregion
CN110168523A (en) Change monitoring to inquire across figure
CN109558400A (en) Data processing method, device, equipment and storage medium
CN101957863A (en) Data parallel processing method, device and system
CN102447633A (en) Log transmission method and system
CN111813573B (en) Communication method of management platform and robot software and related equipment thereof
CN104461551A (en) Parallel data processing based big data processing system
CN107241305A (en) A kind of network protocol analysis system and its analysis method based on polycaryon processor
CN110471900A (en) Data processing method and terminal device
CN102821164A (en) Efficient parallel-distribution type data processing system
CN108399186A (en) A kind of collecting method and device
CN104618304A (en) Data processing method and data processing system
CN103530168A (en) Multi-satellite remote sensing data processing system and method based on virtualization technology
US10331484B2 (en) Distributed data platform resource allocator
CN109947729A (en) A kind of real-time data analysis method and device
CN114780253B (en) Big data intelligent analysis system
CN113890712A (en) Data transmission method and device, electronic equipment and readable storage medium
CN109542657A (en) The processing method and server of system exception
CN113347238A (en) Message partitioning method, system, device and storage medium based on block chain

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