CN105635464A - Message processing method and apparatus - Google Patents
Message processing method and apparatus Download PDFInfo
- Publication number
- CN105635464A CN105635464A CN201511025212.6A CN201511025212A CN105635464A CN 105635464 A CN105635464 A CN 105635464A CN 201511025212 A CN201511025212 A CN 201511025212A CN 105635464 A CN105635464 A CN 105635464A
- Authority
- CN
- China
- Prior art keywords
- message
- source template
- generated
- interface
- sent
- 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
Links
- 238000003672 processing method Methods 0.000 title abstract 2
- 238000000034 method Methods 0.000 claims abstract description 20
- 230000005540 biological transmission Effects 0.000 claims description 6
- 230000004048 modification Effects 0.000 claims description 4
- 238000012986 modification Methods 0.000 claims description 4
- 230000003993 interaction Effects 0.000 abstract 1
- 238000005516 engineering process Methods 0.000 description 4
- 230000002452 interceptive effect Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72436—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. short messaging services [SMS] or e-mails
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72445—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting Internet browser applications
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a message processing method and apparatus. The method comprises: a message template corresponding to a type of a to-be-generated message is obtained from a message template base stored in advance by responding to an instruction of message sending, wherein the to-be-generated message at least includes a message type, a message content and receiving terminal information and the message template at least includes attributes and structures of all interface elements in a to-be-generated message interface; according to the message template, a message interface is generated and all interface elements in the message interface are filled with the content of the to-be-generated message to generate a corresponding to-be-sent message; and the generated to-be-sent message is sent. According to the invention, the message template corresponding to the to-be-sent message is obtained and various self-defined message interfaces are displayed according to the message interface, so that a problem of individualized editing of messages can be solved and the user interaction efficiency is improved.
Description
Technical field
The present invention relates to Internet technical field, in particular to a kind of message treatment method and server.
Background technology
At present, the application program that mobile terminal can use gets more and more, and user with issuing message or can carry out with other-end user exchanging, linking up by the corresponding application program of mobile terminal. But, in view of the template carrying out news release by application program is pre-defined by developer, user is when opening Application Program Interface, the history message existed often of display in interface or conventional source template etc., this kind of model comparision is single, lacking the behavior guide to user, particularly lack the massage pattern of some special dates or application-specific scene, Consumer's Experience is not good.
Summary of the invention
The technical problem that the present invention mainly solves is to provide a kind of message treatment method and device, it is achieved the message of self-defined template sends.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is: a kind of message treatment method, and described method comprises: the instruction that response sends message obtains the source template corresponding with the type of message to be generated from the source template storehouse prestored; Wherein, described message to be generated at least comprises type of message, message content and receiving end information; Described source template at least comprises attribute and the structure of all circles' surface element in described message interface to be generated; Generate described message interface according to described source template, and in described message interface, in all circles' surface element, it is packed into the content of described message to be generated, generate corresponding message to be sent; And send the message described to be sent generated.
For solving the problems of the technologies described above, another technical solution used in the present invention is: provide a kind of message processing apparatus, described device comprises: acquisition module, obtains the source template corresponding with the type of message to be generated for responding the instruction sending message from the source template storehouse prestored; Wherein, described message to be generated at least comprises type of message, message content and receiving end information; Described source template at least comprises attribute and the structure of all circles' surface element in described message interface to be generated; Message generating module, generates described message interface for the described source template got according to described acquisition module, and is packed into the content of described message to be generated in described message interface in all circles' surface element, generates corresponding message to be sent; And message transmission module, for sending the message described to be sent that described message generating module generates.
In above scheme, set up the source template of different messages type in advance, corresponding source template is obtained according to the type of message to be sent when needing to send message, and generate corresponding message interface according to this source template, and in message interface, in all circles' surface element, it is packed into the content of this message to be generated, generate corresponding message to be sent, thus this message is sent. By obtaining source template corresponding to message to be sent, to show various self-defined message interface according to message interface, solve the problem of message personalization editor, and improve the interactive efficiency of user.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of a kind of message treatment method in embodiment of the present invention;
Fig. 2 is the structural representation of a kind of message processing apparatus in first embodiment of the invention;
Fig. 3 is the structural representation of a kind of message processing apparatus in second embodiment of the invention.
Embodiment
By technology contents, the structural attitude of the present invention being described in detail, is realized object and effect, below in conjunction with drawings and Examples, the present invention is described in detail.
Refer to Fig. 1, it is the schematic flow sheet of a kind of message treatment method of embodiment of the present invention. This method flow shown in enforcement mode comprises the following steps:
Step S10, the instruction that response sends message obtains the source template corresponding with the type of message to be generated from the source template storehouse prestored.
Wherein, this message to be generated at least comprises type of message, message content and receiving end information.
Specifically, this message to be generated contains the data of following classification: the information such as the mark of message, type of message, sending end information, receiving end information, message content. This message uses specific form to describe, such as XML (ExtensibleMarkupLanguage, extensible markup language), JSON (JavaScriptObjectNotation, the data exchange form of lightweight), SMS (ShortMessageService, short message language) etc. Wherein, type of message is the self-defined type of developer, it is possible to belong to the original type of message of non-public platform. In addition, the content part of message is also self-defined by developer, and non-field structure and content composition can be set according to concrete business logic by developer, do not limit by public platform.
Wherein, message content can be one or more information.
This source template at least comprises attribute and the structure of all circles' surface element in message interface to be generated.
Specifically, in source template, the attribute of statement can comprise the mark for above-mentioned all circles surface element type, such as, input mark, button mark etc., terminal is identified in message interface to be generated according to this and generates all circles' surface element, and attribute can also comprise the content of text needing display in this interface element. Attribute can also comprise the Action Events of this interface element, such as: to clicking in the tradable interface elements such as button, input frame, selection frame, the process of the Action Events such as slip. Further, in interface template, the structure of statement is the typesetting format of various interfaces element in message interface to be generated and display position.
Can selection of land, the mark of the display area except the element of interface can be comprised in the message template, this display area is included in message interface to be generated to need the displaying contents of one or more display area generated in marking, typesetting format and display position. Wherein, displaying contents can comprise content of text or image content.
Source template states the interface element that message talks with display in the page at terminal message, comprises the structure of interface element, attribute and layout type etc. Concerning terminal, conventional Interface Element have text box, input frame, picture, button, radio box, selects frame, switch, progress bar and various layout component etc. more.
Step S11, generates message interface according to this source template, and is packed into the content of this message to be generated in this message interface in all circles' surface element, generate corresponding message to be sent.
The process being packed into message content in message interface in all circles' surface element is: travel through the first interface template, is entered by the first message fills in corresponding all circles' surface element.
Step S12, sends the message to be sent generated.
In the present embodiment, this message to be sent is short message, and this receiving end information is for receiving name and the mobile phone number of the take over party of this message. The structure of this interface element comprises for representing name and the identification information of mobile phone number.
Specifically, this message interface is generated according to this source template, and in this message interface, in all circles' surface element, be packed into the content of this message to be generated and utilize name and mobile phone number to replace corresponding identification information in this interface attribute of an element, to generate corresponding message to be sent. The message of generation is submitted to short message distribution platform, so that this message to be sent is sent to the terminal corresponding with this mobile phone number.
Further, terminal can also respond the operational order of typing source template, generates corresponding source template according to the information of typing; The operational order of response modification source template can also revise described source template. That is, this source template can carry out newly-built or amendment as required.
In above scheme, set up the source template of different messages type in advance, corresponding source template is obtained according to the type of message to be sent when needing to send message, and generate corresponding message interface according to this source template, and in message interface, in all circles' surface element, it is packed into the content of this message to be generated, generate corresponding message to be sent, thus this message is sent. By obtaining source template corresponding to message to be sent, to show various self-defined message interface according to message interface, solve the problem of message personalization editor, and improve the interactive efficiency of user.
Referring to Fig. 2, be a kind of message processing apparatus of first embodiment of the invention, this device 20 shown in enforcement mode comprises acquisition module 21, message generating module 22 and message transmission module 23.
The instruction that this acquisition module 21 sends message for responding obtains the source template corresponding with the type of message to be generated from the source template storehouse prestored.
Wherein, this message to be generated at least comprises type of message, message content and receiving end information. Specifically, this message to be generated contains the data of following classification: the information such as the mark of message, type of message, sending end information, receiving end information, message content.
This source template at least comprises attribute and the structure of all circles' surface element in message interface to be generated. Specifically, in source template, the attribute of statement can comprise the mark for above-mentioned all circles surface element type, terminal is identified in message interface to be generated according to this and generates all circles' surface element, and attribute can also comprise the Action Events of content of text and this interface element needing display in this interface element. Further, in interface template, the structure of statement is the typesetting format of various interfaces element in message interface to be generated and display position. Source template states the interface element that message talks with display in the page at terminal message, comprises the structure of interface element, attribute and layout type etc.
This message generating module 22 generates message interface for the source template got according to this acquisition module 21, and is packed into the content of this message to be generated in this message interface in all circles' surface element, generates corresponding message to be sent.
The message to be sent that this message transmission module 23 generates for sending this message generating module 22.
Referring to Fig. 3, be a kind of message processing apparatus of second embodiment of the invention, this device 30 shown in enforcement mode comprises acquisition module 31, message generating module 32, message transmission module 33 and source template control module 34.
Wherein, this message module control module 34, for responding the operational order of typing source template, generates corresponding source template according to the information of typing; The operational order of response modification source template can also revise described source template. That is, this source template can carry out newly-built or amendment as required.
The foregoing is only embodiments of the present invention; not thereby the patent scope of the present invention is limited; every utilize specification sheets of the present invention and accompanying drawing content to do equivalent structure or equivalence flow process conversion; or directly or indirectly it is used in other relevant technical fields, all it is included in the scope of patent protection of the present invention with reason.
Claims (10)
1. a message treatment method, it is characterised in that, described method comprises:
The instruction that response sends message obtains the source template corresponding with the type of message to be generated from the source template storehouse prestored; Wherein, described message to be generated at least comprises type of message, message content and receiving end information; Described source template at least comprises attribute and the structure of all circles' surface element in described message interface to be generated;
Generate described message interface according to described source template, and in described message interface, in all circles' surface element, it is packed into the content of described message to be generated, generate corresponding message to be sent; And
Send the message described to be sent generated.
2. message treatment method according to claim 1, it is characterised in that, described receiving end information name and mobile phone number; The structure of described interface element comprises for representing name and the identification information of mobile phone number;
Generating described message interface according to described source template, and be packed into the content of described message to be generated in described message interface in all circles' surface element, the step generating corresponding message to be sent is specially:
Described message interface is generated according to described source template, and in described message interface, in all circles' surface element, be packed into the content of described message to be generated and utilize described name and described mobile phone number to replace corresponding identification information in the attribute of an element of described interface, generate corresponding message to be sent.
3. message treatment method according to claim 2, it is characterised in that, the described step sending the message described to be sent generated is specially:
The described message generated is submitted to short message distribution platform, so that described message to be sent is sent to the terminal corresponding with described mobile phone number.
4. message treatment method according to claim 1, it is characterised in that, before the instruction that described response sends message obtains the step of the source template corresponding with the type of message to be sent from the source template storehouse prestored, described method also comprises:
The operational order of response typing source template, generates corresponding source template according to the information of typing.
5. message treatment method according to claim 1, it is characterised in that, described method also comprises:
The operational order of response modification source template revises described source template.
6. a message processing apparatus, it is characterised in that, described device comprises:
Acquisition module, obtains the source template corresponding with the type of message to be generated for responding the instruction sending message from the source template storehouse prestored; Wherein, described message to be generated at least comprises type of message, message content and receiving end information; Described source template at least comprises attribute and the structure of all circles' surface element in described message interface to be generated;
Message generating module, generates described message interface for the described source template got according to described acquisition module, and is packed into the content of described message to be generated in described message interface in all circles' surface element, generates corresponding message to be sent; And
Message transmission module, for sending the message described to be sent that described message generating module generates.
7. message processing apparatus according to claim 6, it is characterised in that, described receiving end information name and mobile phone number; The structure of described interface element comprises for representing name and the identification information of mobile phone number;
Described message generating module is also for generating described message interface according to described source template, and in described message interface, in all circles' surface element, be packed into the content of described message to be generated and utilize described name and described mobile phone number to replace corresponding identification information in the attribute of an element of described interface, generate corresponding message to be sent.
8. message processing apparatus according to claim 7, it is characterised in that, described message transmission module also for by generate described message be submitted to short message distribution platform, so that described message to be sent is sent to the terminal corresponding with described mobile phone number.
9. message processing apparatus according to claim 6, it is characterised in that, also comprise source template control module, for responding the operational order of typing source template, generate corresponding source template according to the information of described typing.
10. message processing apparatus according to claim 6, it is characterised in that, also comprise source template control module, the operational order for response modification source template revises described source template.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511025212.6A CN105635464A (en) | 2015-12-30 | 2015-12-30 | Message processing method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511025212.6A CN105635464A (en) | 2015-12-30 | 2015-12-30 | Message processing method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105635464A true CN105635464A (en) | 2016-06-01 |
Family
ID=56049926
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201511025212.6A Pending CN105635464A (en) | 2015-12-30 | 2015-12-30 | Message processing method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105635464A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106302116A (en) * | 2016-08-12 | 2017-01-04 | 北京小米移动软件有限公司 | Message method and device |
CN106533920A (en) * | 2016-12-02 | 2017-03-22 | 北京红马传媒文化发展有限公司 | Customized short message sending system |
CN106533903A (en) * | 2016-10-28 | 2017-03-22 | 北京奇虎科技有限公司 | Long connection message release method, platform device and system |
CN106970749A (en) * | 2017-02-06 | 2017-07-21 | 广东小天才科技有限公司 | Writing method and device based on mobile terminal |
CN109450772A (en) * | 2018-09-26 | 2019-03-08 | 中国平安人寿保险股份有限公司 | A kind of message method, server and computer readable storage medium |
CN110275742A (en) * | 2018-03-15 | 2019-09-24 | 阿里巴巴集团控股有限公司 | Information processing method, information display method, device, terminal and server |
CN111866767A (en) * | 2019-04-24 | 2020-10-30 | 北京京东尚科信息技术有限公司 | Message processing method and device, electronic equipment and readable medium |
CN114938357A (en) * | 2022-06-07 | 2022-08-23 | 中国人民解放军国防科技大学 | Open source group cooperative message notification method, device, computer equipment and medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101335959A (en) * | 2008-08-06 | 2008-12-31 | 统庆通信设备(深圳)有限公司 | Mobile phone short message batch processing method |
CN104170293A (en) * | 2012-01-16 | 2014-11-26 | 谷歌公司 | Techniques for generating outgoing messages based on language, internationalization, and localization preferences of the recipient |
CN104462237A (en) * | 2014-11-14 | 2015-03-25 | 华为软件技术有限公司 | Method and device for displaying public information |
-
2015
- 2015-12-30 CN CN201511025212.6A patent/CN105635464A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101335959A (en) * | 2008-08-06 | 2008-12-31 | 统庆通信设备(深圳)有限公司 | Mobile phone short message batch processing method |
CN104170293A (en) * | 2012-01-16 | 2014-11-26 | 谷歌公司 | Techniques for generating outgoing messages based on language, internationalization, and localization preferences of the recipient |
CN104462237A (en) * | 2014-11-14 | 2015-03-25 | 华为软件技术有限公司 | Method and device for displaying public information |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106302116A (en) * | 2016-08-12 | 2017-01-04 | 北京小米移动软件有限公司 | Message method and device |
CN106533903A (en) * | 2016-10-28 | 2017-03-22 | 北京奇虎科技有限公司 | Long connection message release method, platform device and system |
CN106533903B (en) * | 2016-10-28 | 2019-12-24 | 北京奇虎科技有限公司 | Long connection message issuing method, platform device and system |
CN106533920A (en) * | 2016-12-02 | 2017-03-22 | 北京红马传媒文化发展有限公司 | Customized short message sending system |
CN106970749A (en) * | 2017-02-06 | 2017-07-21 | 广东小天才科技有限公司 | Writing method and device based on mobile terminal |
CN110275742A (en) * | 2018-03-15 | 2019-09-24 | 阿里巴巴集团控股有限公司 | Information processing method, information display method, device, terminal and server |
CN109450772A (en) * | 2018-09-26 | 2019-03-08 | 中国平安人寿保险股份有限公司 | A kind of message method, server and computer readable storage medium |
CN109450772B (en) * | 2018-09-26 | 2022-08-02 | 中国平安人寿保险股份有限公司 | Message sending method, server and computer readable storage medium |
CN111866767A (en) * | 2019-04-24 | 2020-10-30 | 北京京东尚科信息技术有限公司 | Message processing method and device, electronic equipment and readable medium |
CN114938357A (en) * | 2022-06-07 | 2022-08-23 | 中国人民解放军国防科技大学 | Open source group cooperative message notification method, device, computer equipment and medium |
CN114938357B (en) * | 2022-06-07 | 2024-03-12 | 中国人民解放军国防科技大学 | Open source group collaboration message notification method, device, computer equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105635464A (en) | Message processing method and apparatus | |
CN107992301A (en) | User interface implementation method, client and storage medium | |
US9111007B2 (en) | Adaptive rendering of a webpage on an electronic display device | |
CN105446740A (en) | MVVM (Model-View-View Model) architecture based Web front-end presentation system | |
JP5930497B2 (en) | Template file processing method and apparatus | |
CN103365855A (en) | Method and server for generating web pages | |
CN105739963A (en) | Method and device for generating webpage | |
CN105183759B (en) | A kind of method and device for commenting on picture | |
CN110244921A (en) | Label printing method, device, electronic equipment and system | |
CN109634603A (en) | A kind of H5 page animation method and apparatus based on Canvas painting canvas | |
JP2014524623A5 (en) | ||
CN103838576A (en) | Website establishing method and device | |
US20160012551A1 (en) | Apparatus and Application Server for Providing a Service to a User | |
CN106610826A (en) | Making method and device for online scenario application | |
CN103051652A (en) | Mobile terminal cloud commuting delivery platform | |
US20160012144A1 (en) | Javascript-based, client-side template driver system | |
CN106028172A (en) | Audio/video processing method and device | |
CN108268260A (en) | It is a kind of quick micro- using assemble method based on integrated support technology | |
CN107894887A (en) | Page assembly method, apparatus and computer-readable recording medium | |
CN103870254A (en) | Dynamic form achieving method, client and server | |
CN106776994B (en) | Application method and system of engineering symbols in engineering report forms and web pages | |
CN104965813B (en) | The treating method and apparatus of textual materials | |
CN106855772A (en) | A kind of information displaying method and device | |
CN108399156B (en) | The composition method and device of formula in a kind of pdf document | |
CN110543307A (en) | application construction method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160601 |
|
WD01 | Invention patent application deemed withdrawn after publication |