CN108255552A - PUSH message method of reseptance, device, equipment and computer readable storage medium - Google Patents

PUSH message method of reseptance, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN108255552A
CN108255552A CN201711406271.7A CN201711406271A CN108255552A CN 108255552 A CN108255552 A CN 108255552A CN 201711406271 A CN201711406271 A CN 201711406271A CN 108255552 A CN108255552 A CN 108255552A
Authority
CN
China
Prior art keywords
message
push
keyword
module
source
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
CN201711406271.7A
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 CN201711406271.7A priority Critical patent/CN108255552A/en
Publication of CN108255552A publication Critical patent/CN108255552A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present invention provides a kind of PUSH message method of reseptance, device, equipment and computer readable storage medium.The method includes:When receiving first message, the source identification of the first message is obtained;Whether it is active user's add module according to the module that the source identification judges to push the first message;If active user's add module, corresponding source template is obtained according to the type identification of the source identification and first message;Complete PUSH message is generated according to the first message and the source template, as second message;The second message is shown in specified region.The embodiment of the present invention so just need not receive message using distinct interface, improve development efficiency, saved development cost by generating complete PUSH message, i.e. second message according to source template and first message;By showing second message in specified region uniformly to check PUSH message, the experience of user is improved.

Description

PUSH message method of reseptance, device, equipment and computer readable storage medium
Technical field
The present invention relates to technical field of information processing more particularly to a kind of PUSH message method of reseptance, device, equipment and meters Calculation machine readable storage medium storing program for executing.
Background technology
During application platform development, which would generally dock multiple and different modules, when in modules When having PUSH message, if modules use different massage patterns, need exploitation distinct interface different to push and receive Message.If it is desired to optimized to pushing and receiving message function, it is necessary to upgrading is transformed to each interface, is expended big Human time's cost of amount, due to being realized message push with distinct interface and being received, backstage code is tediously long numerous and diverse, later maintenance Also it is very inconvenient.On the other hand, when different modules receives message, in the prior art, the message of disparate modules is shown In disparate modules, since disparate modules show that the place of message is variant, user needs to open disparate modules, finds different moulds Block shows the position of message, then the step of being checked, so causing to check message is cumbersome, and user experience is poor.
Invention content
An embodiment of the present invention provides a kind of PUSH message method of reseptance, device, equipment and computer readable storage medium, It can realize and complete PUSH message is generated using unified interface, and after complete PUSH message is generated, in specified area Domain shows PUSH message, improves development efficiency, has saved development cost, while also improves the experience of user.
In a first aspect, an embodiment of the present invention provides a kind of PUSH message method of reseptance, this method includes:
When receiving first message, obtain the source identification of the first message, the first message including message body, come Source identifies and type identification;
Whether it is active user's add module according to the module that the source identification judges to push the first message;
If the module for pushing the first message is active user's add module, according to the source identification and type mark Know and obtain corresponding source template;
Complete PUSH message is generated according to the first message and the source template, as second message;
The second message is shown in specified region.
Second aspect, an embodiment of the present invention provides a kind of PUSH message reception device, which includes performing State the unit of the PUSH message method of reseptance described in first aspect.
The third aspect, the embodiment of the present invention additionally provide a kind of computer equipment, and the computer equipment includes memory, And the processor being connected with the memory;
For the memory for storing the computer program for realizing that PUSH message receives, the processor is described for running The computer program stored in memory, to perform the PUSH message method of reseptance described in above-mentioned first aspect.
Fourth aspect, an embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and the computer program includes program instruction, and described program instructs when being executed by a processor, Realize the PUSH message method of reseptance described in above-mentioned first aspect.
The embodiment of the present invention is by when receiving the first message that add module pushes, according to source template and first Message generates complete PUSH message, i.e. second message, so just need not receive message using distinct interface, improves out Hair efficiency has saved development cost;After generating complete PUSH message, i.e., after second message, by being shown in specified region Second message opens different modules uniformly to check PUSH message, without user and finds different positions again, corresponding to check PUSH message improves the experience of user.
Description of the drawings
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is some embodiments of the present invention, general for this field For logical technical staff, without creative efforts, other attached drawings are can also be obtained according to these attached drawings.
Fig. 1 is a kind of flow diagram of PUSH message method of reseptance provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram of certain platform interface in terminal provided in an embodiment of the present invention;
Fig. 3 is a kind of sub-process schematic diagram of PUSH message method of reseptance provided in an embodiment of the present invention;
Fig. 4 is a kind of sub-process schematic diagram for PUSH message method of reseptance that Fig. 3 embodiments of the present invention provide;
Fig. 5 is a kind of sub-process schematic diagram of PUSH message method of reseptance provided in an embodiment of the present invention;
Fig. 6 is a kind of sub-process schematic diagram for PUSH message method of reseptance that Fig. 5 embodiments of the present invention provide;
A kind of Fig. 7 schematic block diagrams of PUSH message reception device provided in an embodiment of the present invention;
Fig. 8 is the schematic block diagram of generation unit provided in an embodiment of the present invention;
Fig. 9 is the schematic block diagram of extraction unit provided in an embodiment of the present invention;
Figure 10 is the schematic block diagram of display unit provided in an embodiment of the present invention;
Figure 11 is the schematic block diagram of message display unit provided in an embodiment of the present invention;
Figure 12 is a kind of schematic block diagram of computer equipment provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without making creative work Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " comprising " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, element, component and/or its presence or addition gathered.
It will also be understood that the term "and/or" used in description of the invention and the appended claims refer to it is related Join any combinations and all possible combinations of one or more of the item listed, and including these combinations.
It will also be understood that although term first, second etc. can be used for describing various elements herein, these elements should not This is limited to these terms.These terms are only used for these elements being distinguished from each other out.For example, not departing from the scope of the invention Under the premise of, the first preset rules can be referred to as the second preset rules, and similarly, and the second preset rules can be referred to as One preset rules.First preset rules and the second preset rules are preset rules, but they are not same preset rules.
In the specific implementation, the terminal described in the embodiment of the present invention is including but not limited to such as with touch sensitive surface The mobile phone, laptop computer or tablet computer of (for example, touch-screen display and/or touch tablet) etc it is portable Communication equipment.It is to be further understood that in certain embodiments, the equipment is not portable communication device, but with tactile Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch tablet).
In discussion below, the terminal including display is described.It is to be understood, however, that terminal can wrap Include one or more of the other physical user-interface device of such as network interface, physical keyboard, mouse and/or control-rod.
Fig. 1 is a kind of flow diagram of PUSH message method of reseptance provided in an embodiment of the present invention.This method includes S101-S106。
S101 when receiving first message, obtains the source identification of first message, the first message including message body, come Source identifies and type identification.
During application platform development, which would generally dock multiple and different modules, such as module 1, module 2nd, module 3, module 4, module 5.First message is the server push by corresponding module.First message including message body, come Source identifies and type identification.Wherein, message body represents the content of the first message;Source identification represents that the first message is by which The push of a module, i.e. the source module of first message;Type identification represents the type of the first message.Disappear when receiving first During breath, the source identification of first message is obtained.If there are one the first messages received, then obtains the source mark of the message Know;If the first message received simultaneously has multiple, and it is less than the number that terminal can perform parallel, then parallel perform is obtained Take the source identification of first message;And it has been more than the number that terminal can perform parallel if the first message received has multiple, A part of first message is first taken to perform according to preset order.Wherein, preset order can be from height according to first message priority To low sequence, the priority of first message can be determined according to the type identification of first message.
Whether S102 is active user's add module according to the module that source identification judges to push first message.
If add module is respectively module 1, module 2, module 3 to active user, if being pushed according to source identification The module of first message is module 4, then is not active user's add module;If it obtains push first according to source identification to disappear The module of answering of breath is module 1, then is active user's add module.Fig. 2 is the schematic diagram of certain platform interface in terminal.Fig. 2 In show that certain user is added to module 1, module 2, module 3 on so-and-so platform.Wherein, certain user is the mark of active user Know.If active user is by user name, code entry, then active user's is identified as user name;If active user is What telephone number logged in, then active user's is identified as telephone number;If active user does not log in, it is flat to be directly entered this Platform, then system can distribute a random number, and the user is identified with the random number, in the case of this kind, user cannot add and/ Or removing module.
It is to be appreciated that user can add and/or delete the module needed according to the demand of oneself.Such as add needs Module, it is specific as follows:The add module instruction of user is received, " add module " button is such as clicked and generates add module instruction; Display can be with increased module for selection by the user;The module of selection is added to module to show in list;Show that the module is shown Show all modules in list;The corresponding modular display area of the module is generated in specified region.Such as removing module, specifically such as Under:The selecting module instruction of user is received, such as long module deleted on demand generates selecting module instruction;Receive deleting for user Except instruction, such as selection deletes button and generates deletion instruction;The module deleted is selected to be deleted from module selective listing user;If The instruction for deleting the corresponding modular display area of the module in specified region is received, the module pair is deleted in specified region The modular display area answered.It is to be appreciated that after user deletes the module, the PUSH message of the module will be no longer received.It is specified Region is identical with the specified region in step S105.
S103, if the module of push first message is active user's add module, according to source identification and type identification Obtain corresponding source template.
By source identification it is known that being the message of which module push, the type of message is known by type identification, Corresponding template number is known that by type identification and source identification, a template number corresponds to a source template.Its In, source template is pre-stored in source template library, and different source identifications and type identification are corresponding with different source templates.Disappear It ceases template and includes message header, message content, sending time, template number.Wherein, message header can be one and preset Determining title or other forms title, message content include parameter and particular content, such as:" parameter " registers Success.
S104 generates complete PUSH message, as second message according to first message and source template.
Second message includes message header, message content, sending time, source identification, reads mark, type identification etc.. Read mark be used for identify whether the message has read, such as with 1 mark the message do not read, with 0 identify the message read, it is right The PUSH message do not read is identified as in reading, is marked that user is reminded to have the PUSH message do not read with label.
Complete PUSH message is generated according to first message and source template, as second message, specially:According to first The parameter of message content in source template replaced by the message body of message, using replaced message content as in the message of push Hold;Message header of the message header as push in source template is obtained, the message for obtaining current time as push is sent Time obtains informed source mark, the type of message mark of the source identification and type identification of first message as push;According to The message header of push, the message sending time of push, the message content of push, the informed source mark of push, push disappear It ceases type identification and generates complete PUSH message, as second message.In other embodiments, it can also give birth to otherwise Into second message.
Using source template as interface, uniformly the PUSH message of disparate modules is received, without developing distinct interface Different message is received, if being optimized to disparate modules, upgrading is transformed without to each interface, need to only optimize and disappear The corresponding interface of template is ceased, development efficiency is so improved, has saved development cost, also improve the effect of later maintenance Rate reduces the cost of later maintenance.
S105 shows second message in specified region.
Wherein, specified region can be understood as a public message display area, in the public message display area In can show the PUSH messages of the disparate modules received." cyber port " as shown in Figure 2 is shown in " cyber port " The PUSH message of the disparate modules of reception.All PUSH messages received are included a public message display region Domain, in this way, user, which opens the public message display area, can view the PUSH message of all modules, without user one Different modules is opened on one ground, then the position of the display PUSH message in each disparate modules disappears to read the push of the module Breath, improves the experience of user.
S106 if the module of push first message is not active user's add module, ignores first message.Wherein, suddenly Slightly first message can be understood as abandoning the first message or receive the first message but without any processing.
Above-described embodiment is handled by using unified interface come the first message to reception, is generated complete push and is disappeared Breath, i.e. second message;And after second message is generated, show PUSH message in specified region, improve the effect of exploitation and maintenance Rate has saved exploitation and the cost safeguarded, while has also improved the experience of user.
Fig. 3 is a kind of sub-process schematic diagram of PUSH message method of reseptance provided in an embodiment of the present invention.As shown in figure 3, Complete PUSH message is generated according to first message and source template, as second message, i.e. step S104 includes S301- S304。
S301 replaces the parameter of message content in source template according to the message body of first message, by replaced message Message content of the content as push.
As the message content in source template is:" parameter " registers success, and " parameter " can be name, user name etc., if The occurrence of the message body of first message is Zhang San, then replaced message content is:Zhang San registers success.It these are only and show Example, in fact, may both include parameter in the message body of first message, it is also possible to have determining particular content, then will All the elements in first message message body replace the parameter of the message content in source template as parameter, it will be appreciated that being will The message content in all the elements and source template in first message message body merges.
S302 extracts the keyword in the message content of push, and keyword is combined according to default rule of combination Message header as push afterwards.
Specifically, as shown in figure 4, S302 includes S401-S404.
S401 extracts the keyword in the message content of push.Such as by text key word extracting method, semantic-based Keyword in the message content of the extractions such as keyword extracting method push.
S402, whether the number for judging keyword is more than predetermined number.Wherein, predetermined number is 3, and predetermined number may be used also Think other specific numbers.
S403, if being less than predetermined number, as push after all keywords are combined according to default rule of combination Message header.All keywords according to preset filling template can be such as combined, can also be calculated according to artificial intelligence All crucial phrases are synthesized a complete sentence, intelligent algorithm such as abstract extraction algorithm TextRank etc. by method.Wherein, Filling template can be:1~keyword of keyword, 2~keyword 3, the filling template is merely illustrative, and filling template can be it His form.
S404 if more than predetermined number, chooses the keyword of predetermined number according to the first preset rules, and by the pass of selection Keyword be combined according to default rule of combination after as push message header.Specifically, it is calculated according to the first preset formula Each keyword total score, wherein, the first preset formula is:A=λ1A12A2+…+λnAn, wherein, A is keyword total score, λ1、λ2、...、λnFor weight coefficient, λ12+…+λn=1, A1, A2、...、AnRepresent the keyword obtained under different marking rules Score;The keyword of the high predetermined number of keyword total score is chosen as the keyword chosen;The keyword of selection is pressed It is combined according to preset filling template or the crucial phrase of selection is synthesized by sentence according to intelligent algorithm, as push Message header.Intelligent algorithm such as abstract extraction algorithm TextRank etc..Wherein, λ1、λ2、...、λnCan be different Weighted value determines different weighted values according to the importance program of marking rule, and importance is higher, and weighted value is bigger, conversely, It is smaller.λ1、λ2、...、λnOr identical weighted value.The number that can occur according to keyword number give a mark, go out Existing number is more, and marking is higher, and the number of appearance is fewer, and marking is lower, and each available highest of keyword is divided into pre- If score, such as 10 points;It can also give a mark according to the part of speech feature of keyword to multiple keywords, as the corresponding score of noun is higher than The corresponding score of verb;It can also come to give a mark to keyword otherwise.Corresponding key in multiple and different marking rules The getable best result of word institute is identical.After obtaining the score of all keywords, the high predetermined number of keyword total score is chosen Keyword is as the keyword chosen, such as three keywords.After the keyword of selection is combined according to default rule of combination Message header as push.
S303 obtains message sending time of the current time as push, and the source identification conduct for obtaining first message pushes away The informed source mark sent obtains type of message mark of the type identification as push of first message.
S304, according to the message header of push, the message sending time pushed, the message content pushed, the message pushed Source identification, the complete PUSH message of type of message mark generation of push, as second message.And by the reading of second message Mark, which is set to, does not read.
How above-described embodiment is further defined according to first message and the complete PUSH message of source template generation, is made For second message.The parameter of message content in source template is replaced according to the message body of first message, by replaced message Message content of the content as push;The keyword in the message content of push is extracted, and keyword is advised according to default combination Message header after being then combined as push;Message sending time of the current time as push is obtained, first is obtained and disappears Informed source mark of the source identification of breath as push;According to the message header of push, the message sending time of push, push Message content, push informed source mark generate complete PUSH message, as second message.
Fig. 5 is a kind of sub-process schematic diagram of PUSH message method of reseptance provided in an embodiment of the present invention.As shown in figure 5, Second message is shown in specified region, i.e. step S105 includes S501-S502.
S501 determines corresponding modular display area according to the source identification of second message in specified region.
The corresponding module of the second message can be obtained according to source identification, referred to according to the corresponding module of the second message Determine to determine corresponding modular display area in region.It is to be appreciated that in specified region, i.e., public message display area It is interior, there are multiple modular display areas, the number of multiple modular display area is identical with the number of active user's add module, It is and consistent with add module.Such as active user, add module is respectively module 1, module 2, module 3, then has the module 1 right Modular display area, 2 corresponding modular display area of module, the 3 corresponding modular display area of module answered.Second message should Which specified region is shown in, is determined by the source identification of second message.Source identification such as second message is module 1, then The second message is shown in the modular display area corresponding to module 1.
S502 includes second message in corresponding modular display area according to predetermined format.
Predetermined format can be that message header is all shown, message content shows top n word, and the word that message header is shown Body is more than the font that message content is shown.Preset format can also be other forms.
Specifically, as shown in fig. 6, second message is included according to predetermined format in corresponding modular display area, i.e., Step S502 includes S601-S604.
S601 judges whether there is unread message in the modular display area in specified region.It it is to be appreciated that will be specified The message received in modular display area in region is divided into unread message and has read message.Unread message, which is shown in, not to be read to disappear It ceases in queue, has read message and be shown in have read in queue.In this way, having distinguished unread message and having read message, make user that can more close Unread message is noted, to check in time.
If not having unread message in modular display area, second message is included according to predetermined format corresponding by S602 In modular display area.Specifically, second message is included not reading to disappear in corresponding modular display area according to predetermined format It ceases in queue.
S603 if there is unread message in modular display area, determines that unread message and second disappears according to the second preset rules The priority of breath.
The priority of unread message and second message can be determined according to unread message and the type identification of second message, The PUSH message priority for class of such as registering is higher than the PUSH message priority of other classes.
Can also unread message be determined according to unread message and the amount of reading of the type identification combination user of second message With the priority of second message, specifically, the PUSH message for counting unread message and the corresponding type identification of second message is read The total amount of reading read;The priority of unread message and second message is determined according to the sequence of total amount of reading from high to low.It is if total Amount of reading is higher, illustrates that the probability that the corresponding PUSH message of the type mark may be read is higher, the PUSH message is to user For it is important, then priority is higher.Priority is higher, and the high message of priority is arranged in unread message queue Front, to allow user that can quickly see the message.If unread message has 2, wherein the type identification for having 1 message is notice Class message, the type identification of also 1 message is healthy class message, and the type identification of second message is emotion class message, then Disappeared according to total amount of reading of the notifying class message before current time of statistics, total amount of reading of healthy class message, emotion class The sequence sequence of total amount of reading of breath from big to small determines the priority of second message, if ranking results are the total of notifying class message Amount of reading>Total amount of reading of healthy class message>Total amount of reading of emotion class message, then determine the priority of second message most Low, corresponding, second message is shown in the last of all unread messages.Wherein, the push that different type can also be used to identify The average amount of reading of message determines the priority of second message, and average amount of reading identifies corresponding all push for the type Total PUSH message quantity of total amount of reading of message/the type mark.
The degree of concern for the PUSH message that active user identifies different type can also be counted, according to unread message and The degree of concern of the type identification combination user of two message determines the priority of unread message and second message.Degree of concern can Depth with the average amount of reading of the PUSH message identified by different type and is averagely read to represent.To different type mark The PUSH message of knowledge identifies the PUSH message score of corresponding PUSH message calculating different type mark according to different type.Tool Body such as obtains the type identification of all unread messages, and the type identification of all unread messages is calculated according to second preset formula The PUSH message score of corresponding PUSH message score and second message corresponding types mark, wherein, the second preset formula is D=λ11*B+λ22* C, wherein, D be PUSH message score, λ11、λ22It, can be according to the contribution to PUSH message score for weight coefficient Degree determines that percentage contribution is higher, and weight is higher, λ1122=1, B represent average amount of reading normalizing value, and C expressions are averagely read Read depth normalizing value;The priority of unread message and second message is determined according to PUSH message score.Wherein, average amount of reading is The type identifies the total amount of reading of corresponding all PUSH messages before current time divided by the type mark is corresponding total PUSH message quantity, averagely read depth for before current time the type identify corresponding all PUSH messages and read It reads depth divided by the type identifies corresponding total PUSH message quantity, wherein, the reading depth of a PUSH message can basis It is determined reading PUSH message interface residence time, residence time is longer, and reading is deeper, can also be feasible according to other Mode determine.Average amount of reading normalizing value can be on the basis of the highest average amount of reading calculated, such as average amount of reading Normalizing value=average amount of reading/highest average amount of reading, can also be on the basis of default average amount of reading.Depth is averagely read to return One value can on the basis of the highest average that calculates reads depth, such as averagely read depth normalizing value=averagely read depth/ Highest average reads depth, can also be on the basis of default averagely reading depth.According still further to PUSH message score from high to low Sequence determines the priority of all unread messages and second message.If the PUSH message score obtained is higher, then preferential Grade is higher, illustrates that user is higher to the degree of concern of the corresponding PUSH message of the type mark.
In other embodiments, can also other modes with reference to determining the priority of unread message and second message.
Second message is included showing in module by S604 according to the priority of unread message and second message according to predetermined format Show in region.Specifically, second message is included according to predetermined format in the unread message queue of modular display area.
It is to be appreciated that in other embodiments, if detecting, active user instructs the reading of second message, second The second message is read in the unread message of the corresponding modular display area of message.After the completion of reading, by the reading of second message Mark, which is set to, have been read, and be shown in the message queue of reading of corresponding modular display area according to predetermined format.
Fig. 7 is a kind of schematic block diagram of PUSH message reception device provided in an embodiment of the present invention.The device 70 includes Source acquiring unit 701, template acquiring unit 703, generation unit 704, display unit 705, ignores unit at judging unit 702 706。
When source acquiring unit 701 is used to receive first message, the source identification of first message, the first message are obtained Including message body, source identification and type identification.
During application platform development, which would generally dock multiple and different modules, such as module 1, module 2nd, module 3, module 4, module 5.First message is the server push by corresponding module.First message including message body, come Source identifies and type identification.Wherein, message body represents the content of the first message;Source identification represents that the first message is by which The push of a module, i.e. the source module of first message;Type identification represents the type of the first message.Disappear when receiving first During breath, the source identification of first message is obtained.If there are one the first messages received, then obtains the source mark of the message Know;If the first message received simultaneously has multiple, and it is less than the number that terminal can perform parallel, then parallel perform is obtained Take the source identification of first message;And it has been more than the number that terminal can perform parallel if the first message received has multiple, A part of first message is first taken to perform according to preset order.Wherein, preset order can be from height according to first message priority To low sequence, the priority of first message can be determined according to the type identification of first message.
Whether it is that active user has added that judging unit 702 is used for according to the module that source identification judges to push first message Module.
If add module is respectively module 1, module 2, module 3 to active user, if being pushed according to source identification The module of first message is module 4, then is not active user's add module;If it obtains push first according to source identification to disappear The module of breath is module 1, then is active user's add module.Show that certain user is added on so-and-so platform in Fig. 2 Module 1, module 2, module 3.Wherein, certain user is the mark of active user.If active user is by user name, code entry , then active user's is identified as user name;It is logged in if active user is telephone number, then active user's is identified as Telephone number;If active user does not log in, it is directly entered the platform, then system can distribute a random number, random with this Number identifies the user, and in the case of this kind, user cannot add and/or removing module.
It is to be appreciated that user can add and/or delete the module needed according to the demand of oneself.Such as add needs Module, it is specific as follows:The add module instruction of user is received, " add module " button is such as clicked and generates add module instruction; Display can be with increased module for selection by the user;The module of selection is added to module to show in list;Show that the module is shown Show all modules in list;The corresponding modular display area of the module is generated in specified region.Such as removing module, specifically such as Under:The selecting module instruction of user is received, such as long module deleted on demand generates selecting module instruction;Receive deleting for user Except instruction, such as selection deletes button and generates deletion instruction;The module deleted is selected to be deleted from module selective listing user;If The instruction for deleting the corresponding modular display area of the module in specified region is received, the module pair is deleted in specified region The modular display area answered.It is to be appreciated that after user deletes the module, the PUSH message of the module will be no longer received.Wherein, Specified region is the specified region in display unit.
If template acquiring unit 703 is active user's add module for pushing the module of first message, according to source Mark and type identification obtain corresponding source template.
By source identification it is known that being the message of which module push, the type of message is known by type identification, Corresponding template number is known that by type identification and source identification, a template number corresponds to a source template.Its In, source template is pre-stored in source template library, and different source identifications and type identification are corresponding with different source templates.Disappear It ceases template and includes message header, message content, sending time, template number.Wherein, message header can be one and preset Determining title or other forms title, message content include parameter and particular content, such as:" parameter " registers Success.
Generation unit 704 is used to generate complete PUSH message according to first message and source template, as second message.
Second message includes message header, message content, sending time, source identification, reads mark, type identification etc.. Read mark be used for identify whether the message has read, such as with 1 mark the message do not read, with 0 identify the message read, it is right The PUSH message do not read is identified as in reading, is marked that user is reminded to have the PUSH message do not read with label.
Complete PUSH message is generated according to first message and source template, as second message, specially:According to first The parameter of message content in source template replaced by the message body of message, using replaced message content as in the message of push Hold;Message header of the message header as push in source template is obtained, the message for obtaining current time as push is sent Time obtains informed source mark, the type of message mark of the source identification and type identification of first message as push;According to The message header of push, the message sending time of push, the message content of push, the informed source mark of push, push disappear It ceases type identification and generates complete PUSH message, as second message.In other embodiments, it can also give birth to otherwise Into second message.
Using source template as interface, uniformly the PUSH message of disparate modules is received, without developing distinct interface Different message is received, if being optimized to disparate modules, upgrading is transformed without to each interface, need to only optimize and disappear The corresponding interface of template is ceased, development efficiency is so improved, has saved development cost, also improve the effect of later maintenance Rate reduces the cost of later maintenance.
Display unit 705 is used to show second message in specified region.
Wherein, specified region can be understood as a public message display area, in the public message display area In can show the PUSH messages of the disparate modules received." cyber port " as shown in Figure 2 is shown in " cyber port " The PUSH message of the disparate modules of reception.All PUSH messages received are included a public message display region Domain, in this way, user, which opens the public message display area, can view the PUSH message of all modules, without user one Different modules is opened on one ground, then the position of the display PUSH message in each disparate modules disappears to read the push of the module Breath, improves the experience of user.
If ignore unit 706 for push first message module be not active user's add module, ignore first and disappear Breath.Wherein, ignore first message to can be understood as abandoning the first message or receive the first message but without any processing.
Above-described embodiment is handled by using unified interface come the first message to reception, is generated complete push and is disappeared Breath, i.e. second message;And after second message is generated, show PUSH message in specified region, improve the effect of exploitation and maintenance Rate has saved exploitation and the cost safeguarded, while has also improved the experience of user.
Fig. 8 is the schematic block diagram of generation unit provided in an embodiment of the present invention.As shown in figure 8, generation unit 704 includes Replacement unit 801, extraction unit 802, attribute acquiring unit 803, message generation unit 804.
Replacement unit 801 is used to replace the parameter of message content in source template according to the message body of first message, will replace Message content of the message content as push after changing.
As the message content in source template is:" parameter " registers success, and " parameter " can be name, user name etc., if The occurrence of the message body of first message is Zhang San, then replaced message content is:Zhang San registers success.It these are only and show Example, in fact, may both include parameter in the message body of first message, it is also possible to have determining particular content, then will All the elements in first message message body replace the parameter of the message content in source template as parameter, it will be appreciated that being will The message content in all the elements and source template in first message message body merges.
Extraction unit 802 advises keyword according to default combination for extracting the keyword in the message content of push Message header after being then combined as push.
Specifically, as shown in figure 9, extraction unit 802 include keyword extracting unit 901, keyword judging unit 902, Keyword assembled unit 903.Keyword extracting unit 901 is for the keyword in the message content of extraction push.Pass through text Keyword in the message content of the extractions such as keyword extracting method, semantic-based keyword extracting method push.Keyword Judging unit 902 is used to judge whether the number of keyword to be more than predetermined number.Wherein, predetermined number is 3, and predetermined number is also Can be other specific numbers.It, will be all if keyword assembled unit 903 is less than predetermined number for the number of keyword Keyword be combined according to default rule of combination after as push message header.It such as can be by all keywords according to default Filling template be combined, can also according to intelligent algorithm by all crucial phrases synthesize a complete sentence, people Work intelligent algorithm such as abstract extraction algorithm TextRank etc..Wherein, filling template can be:1~keyword of keyword 2~key Word 3, the filling template is merely illustrative, and filling template can be other forms.If keyword assembled unit 903 is additionally operable to key The number of word is more than predetermined number, and the keyword of predetermined number is chosen according to the first preset rules, and the keyword of selection is pressed Message header after being combined according to default rule of combination as push.Specifically, keyword assembled unit 903 is additionally operable to basis First preset formula calculates each keyword total score, wherein, the first preset formula is:A=λ1A12A2+…+λnAn, wherein, A be keyword total score, λ1、λ2、...、λnFor weight coefficient, λ12+…+λn=1, A1, A2、...、AnRepresent different marking rule The score of the keyword then obtained down;The keyword of the high predetermined number of keyword total score is chosen as the keyword chosen; The keyword of selection is combined according to preset filling template or according to intelligent algorithm by the crucial phrase of selection Synthesize sentence, the message header as push.Wherein, λ1、λ2、...、λnCan be different weighted values, according to marking rule Importance program determines different weighted values, and importance is higher, and weighted value is bigger, conversely, smaller.λ1、λ2、...、λnAlso may be used Think identical weighted value.The number that can occur according to keyword number give a mark, the number of appearance is more, marking is got over Height, the number of appearance is fewer, and marking is lower, and each available highest of keyword is divided into preset fraction, such as 10 points;It can also It gives a mark according to the part of speech feature of keyword to multiple keywords, as the corresponding score of noun is higher than the corresponding score of verb;May be used also To come to give a mark to keyword otherwise.The corresponding keyword institute of keyword is getable most in multiple and different marking rules High score is identical.After obtaining the score of all keywords, the keyword of the high predetermined number of keyword total score is chosen as selection Keyword, such as three keywords.As the message of push after the keyword of selection is combined according to default rule of combination Title.
Attribute acquiring unit 803 is used to obtain message sending time of the current time as push, obtains first message Informed source mark of the source identification as push obtains type of message mark of the type identification as push of first message.
Message generation unit 804 is used for according in the message header of push, the message sending time of push, the message of push Informed source mark, the type of message mark of push hold, pushed generates complete PUSH message, as second message.It and will The reading mark of second message, which is set to, does not read.
How above-described embodiment is further defined according to first message and the complete PUSH message of source template generation, is made For second message.
Figure 10 is the schematic block diagram of display unit provided in an embodiment of the present invention.As shown in Figure 10, display unit 705 wraps Include area determination unit 101, message display unit 102.
Area determination unit 101 is used to determine that corresponding module is shown in specified region according to the source identification of second message Show region.
The corresponding module of the second message can be obtained according to source identification, referred to according to the corresponding module of the second message Determine to determine corresponding modular display area in region.It is to be appreciated that in specified region, i.e., public message display area It is interior, there are multiple modular display areas, the number of multiple modular display area is identical with the number of active user's add module, It is and consistent with add module.Such as active user, add module is respectively module 1, module 2, module 3, then has the module 1 right Modular display area, 2 corresponding modular display area of module, the 3 corresponding modular display area of module answered.Second message should Which specified region is shown in, is determined by the source identification of second message.Source identification such as second message is module 1, then The second message is shown in the modular display area corresponding to module 1.
Message display unit 102 includes second message in corresponding modular display area according to predetermined format.
Predetermined format can be that message header is all shown, message content shows top n word, and the word that message header is shown Body is more than the font that message content is shown.Preset format can also be other forms.
Specifically, as shown in figure 11, message display unit 102 includes not reading judging unit 111, unread message display unit 112nd, priority determining unit 113.
Judging unit 111 is not read for judging whether there is unread message in the modular display area in specified region.It can To understand ground, the message received in the modular display area in specified region is divided into unread message and has read message.It does not read Message is shown in unread message queue, has read message and be shown in have read in queue.In this way, it distinguishes unread message and has read to disappear Breath, makes user that can more pay close attention to unread message, to check in time.
If unread message display unit 112 is used for not having unread message in modular display area, by second message according to pre- The formula of fixing is shown in corresponding modular display area.Specifically, second message is included according to predetermined format in corresponding mould In the unread message queue of block display area.
If priority determining unit 113 is used for having unread message in modular display area, determined according to the second preset rules The priority of unread message and second message.
The priority of unread message and second message can be determined according to unread message and the type identification of second message, The PUSH message priority for class of such as registering is higher than the PUSH message priority of other classes.
Can also unread message be determined according to unread message and the amount of reading of the type identification combination user of second message With the priority of second message, specifically, priority determining unit 113 is used to count unread message and the corresponding class of second message Total amount of reading that the PUSH message of type mark is read;Unread message and are determined according to the sequence of total amount of reading from high to low The priority of two message.If total amount of reading is higher, the probability that illustrating the corresponding PUSH message of the type mark may be read is got over Height, the PUSH message are important for user, then priority is higher.Priority is higher, by the high message of priority It is arranged in before unread message queue, to allow user that can quickly see the message.If unread message has 2, wherein there is 1 The type identification of message is notifying class message, and the type identification of also 1 message is healthy class message, the type mark of second message Know for emotion class message, then according to total amount of reading of the notifying class message before current time of statistics, healthy class message Total amount of reading, emotion class message total amount of reading from big to small sequence sequence determine second message priority, if sequence As a result it is total amount of reading of notifying class message>Total amount of reading of healthy class message>Total amount of reading of emotion class message, then determine The priority of second message is minimum, corresponding, and second message is shown in the last of all unread messages.Wherein, it can also use The average amount of reading of the PUSH message of different type mark determines the priority of second message, and average amount of reading is the type mark Know total PUSH message quantity of total amount of reading/the type mark of corresponding all PUSH messages.
The degree of concern for the PUSH message that active user identifies different type can also be counted, according to unread message and The degree of concern of the type identification combination user of two message determines the priority of unread message and second message.Degree of concern can Depth with the average amount of reading of the PUSH message identified by different type and is averagely read to represent.Different type is identified PUSH message, identify the PUSH message score that corresponding PUSH message calculates different type mark according to different type.Specifically Ground, priority determining unit 113 are used to obtain the type identification of all unread messages, all not according to the calculating of the second preset formula The type for reading message represents the PUSH message score of corresponding PUSH message score and second message corresponding types mark, In, the second preset formula is D=λ11*B+λ22* C, wherein, D be PUSH message score, λ11、λ22It, can be according to right for weight coefficient The percentage contribution of PUSH message score determines that percentage contribution is higher, and weight is higher, λ1122=1, B represent average amount of reading Normalizing value, C represent averagely to read depth normalizing value;The preferential of unread message and second message is determined according to PUSH message score Grade.Wherein, the average amount of reading amount of reading total for the corresponding all PUSH messages of the type mark before current time removes Corresponding total PUSH message quantity is identified with the type, it is that the type mark corresponds to before current time averagely to read depth All PUSH messages reading depth divided by the type identify corresponding total PUSH message quantity, wherein, a push The reading depth of message can determine that residence time is longer, reads according to reading this PUSH message interface residence time Reading is deeper, can also be determined according to other feasible modes.The highest average that averagely amount of reading normalizing value can be to calculate On the basis of amount of reading, such as average amount of reading normalizing value=average amount of reading/highest average amount of reading can also averagely be read with default On the basis of reading amount.The preferential of all unread messages and second message is determined according still further to the sequence of PUSH message score from high to low Grade.Averagely read depth normalizing value such as can averagely read depth normalizing on the basis of the highest average reading depth calculated Value=averagely read depth/highest average reading depth, can also be on the basis of default averagely reading depth.Disappear according still further to push The sequence of score from high to low is ceased to determine the priority of all unread messages and second message.If the PUSH message score obtained Compare high, then priority is higher, illustrates that user is higher to the degree of concern of the corresponding PUSH message of the type mark.
Unread message display unit 112 be additionally operable to according to the priority of unread message and second message by second message according to Predetermined format is shown in modular display area.Specifically, second message is included according to predetermined format in modular display area Unread message queue in.
It is to be appreciated that in other embodiments, message display unit further includes detection unit, has read message display list Member.If detection unit is used to detect that active user instructs the reading of second message, shown in the corresponding module of second message The second message is read in the unread message in region.It has read message display unit to be used for after the completion of reading, by second message It reads to identify to be set to and read, and be shown in the message queue of reading of corresponding modular display area according to predetermined format.
Above-mentioned PUSH message reception device can be implemented as a kind of form of computer program, which can be It is run on computer equipment as shown in figure 12.
Figure 12 is a kind of schematic block diagram of computer equipment provided in an embodiment of the present invention.The computer equipment 120 can To be terminal.The equipment 120 includes the processor 122, memory and the network interface 123 that are connected by system bus 121, In, memory can include non-volatile memory medium 124 and built-in storage 125.
The non-volatile memory medium 124 can storage program area 1241 and computer program 1242.The computer program 1242 are performed, and may be such that processor 122 performs a kind of PUSH message method of reseptance.
The processor 122 supports the operation of whole equipment 120 for providing calculating and control ability.
The built-in storage 125 provides environment for the operation of the computer program in non-volatile memory medium, the computer When program is performed by processor 122, it may be such that processor 122 performs a kind of PUSH message method of reseptance.
The network interface 123 is used to carry out network communication, such as receive instruction.It will be understood by those skilled in the art that figure The structure shown in 12 only with the block diagram of the relevant part-structure of application scheme, is not formed to application scheme institute The restriction of equipment 120 being applied thereon, specific equipment 120 can include than components more or fewer shown in figure or Person combines certain components or is arranged with different components.
Wherein, the processor 122 is for running computer program stored in memory, to realize following operation:
When receiving first message, obtain the source identification of the first message, the first message including message body, come Source identifies and type identification;Whether it is that active user has added according to the module that the source identification judges to push the first message Add module;If the module for pushing the first message is active user's add module, according to the source identification and type mark Know and obtain corresponding source template;Complete PUSH message is generated according to the first message and the source template, as the Two message;The second message is shown in specified region.
In one embodiment, the source template includes message header, message content, sending time, and processor 122 performs Complete PUSH message is generated according to the first message and the source template, during as second message, it is specific perform it is as follows Operation:
The parameter of message content in the source template is replaced according to the message body of the first message, is disappeared replaced Cease message content of the content as push;The keyword in the message content of push is extracted, and by the keyword according to default Rule of combination be combined after as push message header;Message sending time of the current time as push is obtained, is obtained Informed source mark of the source identification of the first message as push;It is sent out according to the message of the message header of push, push The informed source mark of time, the message content of push, push is sent to generate complete PUSH message, as second message.
In one embodiment, processor 122 performs the keyword in the message content of extraction push, and by the keyword It is specific to perform following operation when after being combined according to default rule of combination as the message header pushed:
Extract the keyword in the message content of push;Whether the number for judging the keyword is more than predetermined number;If The number of the keyword is less than predetermined number, as push after the keyword is combined according to default rule of combination Message header;If the number of the keyword is more than predetermined number, the key of predetermined number is chosen according to the first preset rules Word, and as the message header of push after the keyword of selection is combined according to default rule of combination.
In one embodiment, processor 122 performs the keyword that predetermined number is chosen according to the first preset rules, and will choosing It is specific to perform following operation after the keyword taken is combined according to default rule of combination during message header as push:
Each keyword total score is calculated according to the first preset formula, wherein, the first preset formula is:A=λ1A12A2 +…+λnAn, wherein, A be keyword total score, λ1、λ2、...、λnFor weight coefficient, λ12+…+λn=1, A1, A2、...、An Represent the keyword score obtained under different marking rules;The keyword of the high predetermined number of keyword total score is chosen as choosing The keyword taken;The keyword of selection according to preset filling template is combined or will be chosen according to intelligent algorithm Crucial phrase synthesis sentence, the message header as push.
In one embodiment, processor 122 performs when showing the second message in specified region, specific to perform following behaviour Make:
Corresponding modular display area is determined in specified region according to the source identification of the second message;By described Two message are shown according to predetermined format in the modular display area.
In one embodiment, processor 122, which is performed, includes the second message in specified region according to predetermined format Modular display area in when, it is specific to perform following operation:
Judge whether there is unread message in the modular display area in specified region;If do not have in the modular display area There is unread message, the second message is included according to predetermined format in the modular display area;If the module is shown There is unread message in region, the priority of the unread message and the second message is determined according to the second preset rules;According to The second message is included showing in the module by the priority of the unread message and the second message according to predetermined format Show in region.
In one embodiment, if processor 122, which performs, to have unread message in the modular display area, according to It is specific to perform following operation when two preset rules determine the priority of the unread message and the second message:
Obtain the type identification of all unread messages;The type identification of all unread messages is calculated according to the second preset formula The PUSH message score of corresponding PUSH message score and second message corresponding types mark, wherein, the second default public affairs Formula is:D=λ11*B+λ22* C, wherein, D be PUSH message score, λ11、λ22For weight coefficient, λ1122=1, B expression are averagely read Reading amount normalizing value, C represent averagely to read depth normalizing value;Determine that the unread message and second disappears according to PUSH message score The priority of breath.
It should be appreciated that in embodiments of the present invention, processor 122 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable GateArray, FPGA) or other programmable logic devices Part, discrete gate or transistor logic, discrete hardware components etc..Wherein, general processor can be microprocessor or The processor can also be any conventional processor etc..
It will be understood by those skilled in the art that 120 structure of computer equipment shown in Figure 12 is not formed to equipment 120 Restriction, can include that more or fewer components either combine certain components or different components is arranged than illustrating.Example Such as, in some embodiments, the equipment of service combining can only include memory and processor, in such embodiments, deposit The structure and function of reservoir and processor are consistent with embodiment illustrated in fig. 12, and details are not described herein.
The embodiment of the present invention also provides a kind of computer readable storage medium, and the computer-readable recording medium storage has Computer program, the computer program include program instruction, and described program instructs when being executed by a processor, realizes following walk Suddenly:
When receiving first message, obtain the source identification of the first message, the first message including message body, come Source identifies and type identification;Whether it is that active user has added according to the module that the source identification judges to push the first message Add module;If source identification respective modules are active user's add module, obtained according to the source identification and type identification Corresponding source template;Complete PUSH message is generated according to the first message and the source template, as second message; The second message is shown in specified region.
In one embodiment, the source template includes message header, message content, sending time, the program instruction quilt Processor is performed generates complete PUSH message according to the first message and the source template, during as second message, tool Body is realized:
The parameter of message content in the source template is replaced according to the message body of the first message, is disappeared replaced Cease message content of the content as push;The keyword in the message content of push is extracted, and by the keyword according to default Rule of combination be combined after as push message header;Message sending time of the current time as push is obtained, is obtained Informed source mark of the source identification of the first message as push;It is sent out according to the message of the message header of push, push The informed source mark of time, the message content of push, push is sent to generate complete PUSH message, as second message.
In one embodiment, which is executed by processor the keyword in the message content of extraction push, and will The keyword be combined according to default rule of combination after as push message header when, specific implementation:
Extract the keyword in the message content of push;Whether the number for judging keyword is more than predetermined number;If do not surpass Predetermined number is crossed, as the message header of push after the keyword is combined according to default rule of combination;If more than pre- If number, the keyword of predetermined number is chosen according to the first preset rules, and by the keyword of selection according to default rule of combination Message header after being combined as push.
In one embodiment, which is executed by processor the key that predetermined number is chosen according to the first preset rules Word, and as during the message header of push after the keyword of selection is combined according to default rule of combination, specific implementation:
Each keyword total score is calculated according to the first preset formula, wherein, the first preset formula is:A=λ1A12A2 +…+λnAn, wherein, A be keyword total score, λ1、λ2、...、λnFor weight coefficient, λ12+…+λn=1, A1, A2、...、An Represent the keyword score obtained under different marking rules;The keyword of the high predetermined number of keyword total score is chosen as choosing The keyword taken;The keyword of selection according to preset filling template is combined or will be chosen according to intelligent algorithm Crucial phrase synthesis sentence, the message header as push.
In one embodiment, which is executed by processor when showing the second message in specified region, specifically It realizes:
Corresponding modular display area is determined in specified region according to the source identification of the second message;By described Two message are shown according to predetermined format in the modular display area.
In one embodiment, which is executed by processor includes referring to by the second message according to predetermined format When determining in the modular display area in region, specific implementation:
Judge whether there is unread message in the modular display area in specified region;If do not have in the modular display area There is unread message, the second message is included according to predetermined format in the modular display area;If the module is shown There is unread message in region, the priority of the unread message and the second message is determined according to the second preset rules;According to The second message is included showing in the module by the priority of the unread message and the second message according to predetermined format Show in region.
In one embodiment, if the program instruction, which is executed by processor in the modular display area, unread message, root The priority of the unread message and second message is determined according to the second preset rules, is implemented:
Obtain the type identification of all unread messages;The type identification of all unread messages is calculated according to the second preset formula The PUSH message score of corresponding PUSH message score and second message corresponding types mark, wherein, the second default public affairs Formula is:D=λ11*B+λ22* C, wherein, D be PUSH message score, λ11、λ22For weight coefficient, λ1122=1, B expression are averagely read Reading amount normalizing value, C represent averagely to read depth normalizing value;Determine that the unread message and second disappears according to PUSH message score The priority of breath.
It is apparent to those skilled in the art that for convenience of description and succinctly, foregoing description is set The specific work process of standby, device and unit can refer to the corresponding process in preceding method embodiment, and details are not described herein. Those of ordinary skill in the art may realize that each exemplary units and algorithm described with reference to the embodiments described herein Step can be realized with the combination of electronic hardware, computer software or the two, in order to clearly demonstrate hardware and software Interchangeability generally describes each exemplary composition and step according to function in the above description.These functions are studied carefully Unexpectedly specific application and design constraint depending on technical solution are performed with hardware or software mode.Professional technician Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present invention.
In several embodiments provided herein, it should be understood that disclosed unit and method, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of division of logic function can have other dividing mode, such as multiple units or component in actual implementation It may be combined or can be integrated into another system or some features can be ignored or does not perform.In addition, shown or beg for The mutual coupling, direct-coupling or communication connection of opinion can be the INDIRECT COUPLING by some interfaces, device or unit Or communication connection or electricity, the connection of mechanical or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the embodiment of the present invention Purpose.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit is individually physically present or two or more units integrate in a unit.It is above-mentioned integrated The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is independent product sale or uses When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme of the present invention is substantially The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products It embodies, which is stored in a storage medium, is used including some instructions so that a computer Equipment (can be personal computer, server or the network equipment etc.) performs the complete of each embodiment the method for the present invention Portion or part steps.And aforementioned storage medium includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read- OnlyMemory), the various media that can store program code such as magnetic disc or CD.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection domain subject to.

Claims (10)

1. a kind of PUSH message method of reseptance, which is characterized in that the method includes:
When receiving first message, the source identification of the first message is obtained, the first message includes message body, source is marked Knowledge and type identification;
Whether it is active user's add module according to the module that the source identification judges to push the first message;
If the module for pushing the first message is active user's add module, obtained according to the source identification and type identification Take corresponding source template;
Complete PUSH message is generated according to the first message and the source template, as second message;
The second message is shown in specified region.
2. the method as described in claim 1, which is characterized in that the source template includes message header, message content, transmission It is time, described that complete PUSH message is generated according to the first message and the source template, as second message, including:
The parameter of message content in the source template is replaced according to the message body of the first message, it will be in replaced message Hold the message content as push;
Extract the keyword in the message content of push, and after the keyword is combined according to default rule of combination as The message header of push;
Message sending time of the current time as push is obtained, obtains source identification the disappearing as push of the first message Cease source identification;
Life is identified according to the informed source of the message header of push, the message sending time of push, the message content of push, push Into complete PUSH message, as second message.
3. method as claimed in claim 2, which is characterized in that the keyword in the message content of the extraction push, and will The keyword be combined according to default rule of combination after as push message header, including:
Extract the keyword in the message content of push;
Whether the number for judging keyword is more than predetermined number;
If being less than predetermined number, as the message mark of push after the keyword is combined according to default rule of combination Topic;
If more than predetermined number, choose the keyword of predetermined number according to the first preset rules, and by the keyword of selection according to Default rule of combination be combined after as push message header.
4. method as claimed in claim 3, which is characterized in that the key that predetermined number is chosen according to the first preset rules Word, and as the message header of push after the keyword of selection is combined according to default rule of combination, including:
Each keyword total score is calculated according to the first preset formula, wherein, the first preset formula is:A=λ1A12A2+…+λnAn, wherein, A be keyword total score, λ1、λ2、...、λnFor weight coefficient, λ12+…+λn=1, A1, A2、...、AnIt represents not With the keyword score obtained under marking rule;
The keyword of the high predetermined number of keyword total score is chosen as the keyword chosen;
The keyword of selection is combined according to preset filling template or according to intelligent algorithm by the key of selection Word combination is into sentence, the message header as push.
5. the method as described in claim 1, which is characterized in that it is described to show the second message in specified region, including:
Corresponding modular display area is determined in specified region according to the source identification of the second message;
The second message is included according to predetermined format in the modular display area.
6. method as claimed in claim 5, which is characterized in that described to include the second message in institute according to predetermined format It states in modular display area, including:
Judge whether there is unread message in the modular display area in specified region;
If not having unread message in the modular display area, the second message is included according to predetermined format in the module In display area;
If having unread message in the modular display area, the people of unread information and second message are determined according to the second preset rules Priority;
The second message is included according to predetermined format in the mould according to the priority of the people of unread information and second message In block display area.
7. method as claimed in claim 6, which is characterized in that if having unread message, root in the modular display area The priority of the second message is determined according to the second preset rules, including:
Obtain the type identification of all unread messages;
The corresponding PUSH message score of type identification and described second of all unread messages is calculated according to the second preset formula The PUSH message score of message corresponding types mark, wherein, the second preset formula is:D=λ11*B+λ22* C, wherein, D is push Message score, λ11、λ22For weight coefficient, λ1122=1, B represent average amount of reading normalizing value, and C represents that averagely reading depth returns One value;
The priority of the unread message and second message is determined according to PUSH message score.
8. a kind of PUSH message reception device, which is characterized in that described device includes performing such as any power of claim 1-7 The unit of the profit requirement method.
9. a kind of computer equipment, which is characterized in that the computer equipment includes memory and is connected with the memory Processor;
The memory realizes the computer program of PUSH message reception for storing;The processor is used to run the storage The computer program stored in device, to perform such as claim 1-7 any one of them methods.
A kind of 10. computer readable storage medium, which is characterized in that the computer-readable recording medium storage computer journey Sequence, the computer program include program instruction, and described program instructs when being executed by a processor, realizes such as claim 1-7 Any one of them method.
CN201711406271.7A 2017-12-22 2017-12-22 PUSH message method of reseptance, device, equipment and computer readable storage medium Pending CN108255552A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711406271.7A CN108255552A (en) 2017-12-22 2017-12-22 PUSH message method of reseptance, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711406271.7A CN108255552A (en) 2017-12-22 2017-12-22 PUSH message method of reseptance, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN108255552A true CN108255552A (en) 2018-07-06

Family

ID=62723868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711406271.7A Pending CN108255552A (en) 2017-12-22 2017-12-22 PUSH message method of reseptance, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108255552A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109347898A (en) * 2018-08-20 2019-02-15 深圳市梦网科技发展有限公司 Sending method, display methods and the server and mobile terminal of scene information
CN110825939A (en) * 2019-09-19 2020-02-21 五八有限公司 Method and device for generating and sorting scores of posts, electronic equipment and storage medium
CN111064655A (en) * 2019-12-17 2020-04-24 北京每日优鲜电子商务有限公司 Template message pushing method, device, equipment and storage medium
CN111866767A (en) * 2019-04-24 2020-10-30 北京京东尚科信息技术有限公司 Message processing method and device, electronic equipment and readable medium
CN111984901A (en) * 2020-08-31 2020-11-24 上海博泰悦臻电子设备制造有限公司 Message pushing method and related product thereof
CN113810268A (en) * 2021-05-31 2021-12-17 多益网络有限公司 Message formatting method, device, equipment and storage medium
CN114422463A (en) * 2022-01-17 2022-04-29 北京达佳互联信息技术有限公司 Communication method, communication apparatus, electronic device, and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101951577A (en) * 2010-09-27 2011-01-19 宇龙计算机通信科技(深圳)有限公司 Short message processing method and device thereof
CN102402378A (en) * 2010-09-17 2012-04-04 腾讯科技(深圳)有限公司 Method and device for displaying message
KR20130098719A (en) * 2012-02-28 2013-09-05 (주)아위드 Mobile intelligent apparatus and method supporting message-based dynamic services
CN104462237A (en) * 2014-11-14 2015-03-25 华为软件技术有限公司 Method and device for displaying public information
CN104506715A (en) * 2014-12-05 2015-04-08 小米科技有限责任公司 Method and device for displaying notification messages
CN105635442A (en) * 2015-12-18 2016-06-01 北京奇虎科技有限公司 Method and apparatus for displaying message on mobile terminal
CN106211106A (en) * 2016-06-29 2016-12-07 北京小米移动软件有限公司 Information recommendation method based on note and device
CN106569815A (en) * 2016-10-26 2017-04-19 深圳市金立通信设备有限公司 Message display method and terminal
CN106657639A (en) * 2016-12-22 2017-05-10 北京珠穆朗玛移动通信有限公司 Short message display method and mobile terminal
CN107329945A (en) * 2017-07-21 2017-11-07 北京奇虎科技有限公司 Method for displaying and processing, displaying processing unit and the mobile terminal of short message

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402378A (en) * 2010-09-17 2012-04-04 腾讯科技(深圳)有限公司 Method and device for displaying message
CN101951577A (en) * 2010-09-27 2011-01-19 宇龙计算机通信科技(深圳)有限公司 Short message processing method and device thereof
KR20130098719A (en) * 2012-02-28 2013-09-05 (주)아위드 Mobile intelligent apparatus and method supporting message-based dynamic services
CN104462237A (en) * 2014-11-14 2015-03-25 华为软件技术有限公司 Method and device for displaying public information
CN104506715A (en) * 2014-12-05 2015-04-08 小米科技有限责任公司 Method and device for displaying notification messages
CN105635442A (en) * 2015-12-18 2016-06-01 北京奇虎科技有限公司 Method and apparatus for displaying message on mobile terminal
CN106211106A (en) * 2016-06-29 2016-12-07 北京小米移动软件有限公司 Information recommendation method based on note and device
CN106569815A (en) * 2016-10-26 2017-04-19 深圳市金立通信设备有限公司 Message display method and terminal
CN106657639A (en) * 2016-12-22 2017-05-10 北京珠穆朗玛移动通信有限公司 Short message display method and mobile terminal
CN107329945A (en) * 2017-07-21 2017-11-07 北京奇虎科技有限公司 Method for displaying and processing, displaying processing unit and the mobile terminal of short message

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109347898A (en) * 2018-08-20 2019-02-15 深圳市梦网科技发展有限公司 Sending method, display methods and the server and mobile terminal of scene information
CN109347898B (en) * 2018-08-20 2021-04-30 深圳市梦网科技发展有限公司 Scene information sending method, scene information display method, server and mobile terminal
CN111866767A (en) * 2019-04-24 2020-10-30 北京京东尚科信息技术有限公司 Message processing method and device, electronic equipment and readable medium
CN110825939A (en) * 2019-09-19 2020-02-21 五八有限公司 Method and device for generating and sorting scores of posts, electronic equipment and storage medium
CN110825939B (en) * 2019-09-19 2023-10-13 五八有限公司 Post score generation and ordering method and device, electronic equipment and storage medium
CN111064655A (en) * 2019-12-17 2020-04-24 北京每日优鲜电子商务有限公司 Template message pushing method, device, equipment and storage medium
CN111064655B (en) * 2019-12-17 2022-06-07 北京每日优鲜电子商务有限公司 Template message pushing method, device, equipment and storage medium
CN111984901A (en) * 2020-08-31 2020-11-24 上海博泰悦臻电子设备制造有限公司 Message pushing method and related product thereof
CN113810268A (en) * 2021-05-31 2021-12-17 多益网络有限公司 Message formatting method, device, equipment and storage medium
CN113810268B (en) * 2021-05-31 2024-02-20 多益网络有限公司 Message formatting method, device, equipment and storage medium
CN114422463A (en) * 2022-01-17 2022-04-29 北京达佳互联信息技术有限公司 Communication method, communication apparatus, electronic device, and storage medium

Similar Documents

Publication Publication Date Title
CN108255552A (en) PUSH message method of reseptance, device, equipment and computer readable storage medium
CN103902740B (en) The staying method and device of short message identifying code
CN106570144B (en) The method and apparatus of recommendation information
EP2560104A2 (en) Phrase prediction for chat messages
CN109345399A (en) Claims Resolution methods of risk assessment, device, computer equipment and storage medium
CN109522538A (en) Table content divides column method, apparatus, equipment and storage medium automatically
JP5299965B2 (en) Instruction support system and instruction support information display device
CN107491181A (en) The phrase for dynamic state extension of language in-put
EP2560103A2 (en) Dynamically generated phrase-based assisted input
CN107371146A (en) A kind of method and terminal for selecting short message channel
CN107733984A (en) A kind of method, terminal and computer-readable recording medium for pushing screen locking information
CN107710131A (en) Content-browsing user interface
CN110249325A (en) Input system with traffic model
CN106953985A (en) The management method and terminal of a kind of PUSH message
CN107656675A (en) All the time the sum formula of drag and drop
CN107656918B (en) Obtain the method and device of target user
CN110474944A (en) Processing method, device and the storage medium of the network information
CN108062692A (en) Method, apparatus, equipment and computer readable storage medium are recommended in a kind of recording
EP2946312A2 (en) Systems and methods for displaying user-generated content
CN107168610A (en) Pop-up processing method and processing device, storage medium and electronic equipment
CN104584020A (en) A method and a device for use in a patient monitoring system to assist a patient in completing a task
CN107220051A (en) A kind of processing method of interactive information, device and terminal
CN110022399A (en) Message display method, device, user terminal and readable storage medium storing program for executing
CN105095743B (en) Method and device for setting locking strategy and electronic equipment
WO2017071190A1 (en) Input data processing method, apparatus and device, and non-volatile computer storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180706