CN109246226A - A kind of method for generating message and device - Google Patents
A kind of method for generating message and device Download PDFInfo
- Publication number
- CN109246226A CN109246226A CN201811120083.2A CN201811120083A CN109246226A CN 109246226 A CN109246226 A CN 109246226A CN 201811120083 A CN201811120083 A CN 201811120083A CN 109246226 A CN109246226 A CN 109246226A
- Authority
- CN
- China
- Prior art keywords
- message
- template
- background system
- access
- sending
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/06—Message adaptation to terminal or network requirements
- H04L51/066—Format adaptation, e.g. format conversion or compression
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
- H04L63/105—Multiple levels of security
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Storage Device Security (AREA)
- Document Processing Apparatus (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of method for generating message and devices, this method comprises: judging whether the background system has the access authority for accessing the message center when there is the access request of background system;If so, receiving the message that background system is sent generates request, it includes the template and message content for generating message that the message, which generates request,;Message is generated according to message content and message template.Verify whether background system has access to message center by way of access authority, therefore message center the access authority of different background systems can be arranged according to message, so that the background system for needing to access message center can access message center.In addition include the template to generate message in message generation request, therefore generation message can be customized according to the demand of background system, user experience is improved with the format of this message for enriching generation.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method for generating message and device.
Background technique
With the development of business, background system is more and more, homologous ray is not got over to the demand believed in businessman dispatching station yet
Come more.
When current background system is believed by message center into businessman dispatching station, message center only allows part system to quotient
Believe in dispatching station of family, and operation is single to the format believed in businessman dispatching station, the page is unfriendly, and user experience is poor.
Summary of the invention
In order to solve the above technical problems, the embodiment of the invention provides a kind of method for generating message and device, technical solution
It is as follows:
A kind of method for generating message is applied to message center, comprising:
When there is the access request of background system, judges whether the background system has and access connecing for the message center
Enter permission;
If so, receiving the message that background system is sent generates request, it includes for generating message that the message, which generates request,
Template and message content;
Message is generated according to message content and message template.
Preferably, message is generated according to message content and message template, comprising:
The template and message content are sent to message queue, to generate the message in the message queue, or it is real
Shi Liyong template and message content generate message.
Preferably, the message generates the rank that request further includes transmission the businessman's range and message of message;
The method also includes:
The sending method of the message is set according to businessman's range and the rank.
Preferably, the message generates the sending time that request further includes message, and the sending time includes sending immediately
With regularly send;
The method also includes:
The message is sent according to described sender formula, according to the sending time.
Preferably, further includes:
Update the message status of transmitted message.
A kind of message creating apparatus is applied to message center, comprising:
Judging unit, for when there is the access request of background system, judging whether the background system has access institute
State the access authority of message center;
Receiving unit, for determining that there is the background system access message center must access when the judging unit
When permission, receives the message that background system is sent and generate request, it includes the template for generating message that the message, which generates request,
And message content;
Generation unit, for generating message according to message content and message template.
Preferably, the generation unit, comprising:
Subelement is generated, for the template and message content to be sent to message queue, with raw in the message queue
Message is generated using template and message content at the message, or in real time.
Preferably, the message generates the rank that request further includes transmission the businessman's range and message of message;
Described device further include:
Setting unit, for the sending method of the message to be arranged according to businessman's range and the rank.
Preferably, the message generates the sending time that request further includes message, and the sending time includes sending immediately
With regularly send;
Described device further include:
Transmission unit, for sending the message according to described sender formula, according to the sending time.
Preferably, further includes:
Updating unit, for updating the message status of transmitted message.
Technical solution provided in an embodiment of the present invention, verifies whether background system has access to by way of access authority
Message center, therefore message center the access authority of different background systems can be arranged according to message, to need to access message
The background system at center can access message center.It in addition include the template to generate message in message generation request, therefore
Generation message can be customized according to the demand of background system, and user's body is improved with the format of this message for enriching generation
It tests.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art
To obtain other drawings based on these drawings.
Fig. 1 is a kind of a kind of flow diagram of method for generating message provided by the embodiment of the present invention;
Fig. 2 is a kind of another flow diagram of method for generating message provided by the embodiment of the present invention;
Fig. 3 is a kind of a kind of structural schematic diagram of method for generating message provided by the embodiment of the present invention;
Fig. 4 is a kind of another structural schematic diagram of method for generating message provided by the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that the described embodiment is only a part of the embodiment of the present invention, instead of all the embodiments.Based on this
Embodiment in invention, every other reality obtained by those of ordinary skill in the art without making creative efforts
Example is applied, shall fall within the protection scope of the present invention.
Referring to Fig. 1, Fig. 1 is a kind of a kind of implementation flow chart of method for generating message provided in an embodiment of the present invention, it should
Method is applied to message center, this method comprises:
Step S101, when there is the access request of background system, judge whether background system has access message center
Access authority, if so, executing step S102.
In practical application, message center is stored with IDL (Interface Description Language) file, IDL
With the dependence of background system in file, the dependence of background system refers to having access to the background system of message center.Therefore
When there is the access request of background system, background system is matched with the dependence in idl file, so that it is determined that background system
Whether can be with message center.
Step S102, it receives the message that background system is sent and generates request, it includes the mould for generating message that message, which generates request,
Plate and message content.
The template for generating message includes newly-increased two class of template and original template.Wherein, original template is deposited in message center
The template of storage, and newly-increased template is the template that background system generates that request is provided to message center by message.Therefore, work as generation
When the template of message is newly-increased template, message, which generates, carries the newly-increased template in request;When the template for generating message is original mould
When plate, message generates the mark that original template is carried in request.
Step S103, message is generated according to message content and message template.
Technical solution provided in an embodiment of the present invention, verifies whether background system has access to by way of access authority
Message center, therefore message center the access authority of different background systems can be arranged according to message, to need to access message
The background system at center can access message center.It in addition include the template to generate message in message generation request, therefore
Generation message can be customized according to the demand of background system, and user's body is improved with the format of this message for enriching generation
It tests.
Referring to Fig. 2, Fig. 2 is a kind of another implementation flow chart of method for generating message provided in an embodiment of the present invention,
This method is applied to message center, this method comprises:
Step S201, when there is the access request of background system, judge whether background system has access authority, if so,
Execute step S202.
Step S202, it receives the message that background system is sent and generates request.
Message generates request and includes the template for generating message, message content, sends businessman's range, the rank of message, message
Sending method and message transmission time information.
The sending method for sending businessman's range, the rank of message and message can be set by operation personnel in background system
It sets.When background system sends message generation request to message center, by the transmission businessman range set, the rank of message and disappear
The sending method of breath is sent to message center.
Step S203, the template and message content are sent to message queue, described in generating in the message queue
Message, or message is generated using template and message content in real time.
Different message generating modes can be set according to whether Merchant ID information can be obtained in operation personnel.
Specifically, when available Merchant ID information, message is generated by the method for synchronization or asynchronous system.The side of synchronization
Formula refers to that calling directly micro services send_msg (s) interface generates message, and asynchronous system, which refers to generating in message queue, to disappear
Breath.
When failing to obtain Merchant ID information, message is generated by seller's managing message queues.
Step S204, the sending method of the message is set according to businessman's range and rank.
Businessman's range includes whole businessmans or part businessman.
The rank of message includes important and common two kinds of ranks, can force to push away to businessman when the rank of message is important
It send message, and when the rank of message is common, actively checks message as in a manner of pushing to businessman using businessman.
Step S205, the message is sent according to the sending method of message, according to the sending time of message.
The sending time of message includes regularly sending and sending immediately.
If the sending time of message is to regularly send, deletion message can choose when not arriving sending time.
It is the message regularly sent for sending time, whether message center meeting automatic regular polling has the letter not sent to the time
Breath, if there is then sending information.
Step S206, the message status of transmitted message is updated.
After sending message, the state of update message is to have sent, to prevent the repetition for offseting breath from sending.
Technical solution provided in an embodiment of the present invention, verifies whether background system has access to by way of access authority
Message center, therefore message center the access authority of different background systems can be arranged according to message, to need to access message
The background system at center can access message center.It includes template to generate message that message, which generates in request, therefore can be with
Generation message is customized according to the demand of background system, and user experience is improved with the format of this message for enriching generation.Separately
Outside, further include the sending method and sending time of message in message generation request, background system is enriched with this and is sent out to businessman
Send the form of message.
Figure is please referred to, Fig. 3 is a kind of structural schematic diagram of message creating apparatus provided in an embodiment of the present invention, the device packet
It includes:
Judging unit 310, for judging whether background system has access message when there is the access request of background system
The access authority at center.
In practical application, message center is stored with IDL (Interface Description Language) file, IDL
With the dependence of background system in file, the dependence of background system refers to having access to the background system of message center.Therefore
When there is the access request of background system, background system is matched with the dependence in idl file, so that it is determined that background system
Whether can be with message center.
Receiving unit 320, for connecing when judging unit determines that there is background system access message center to obtain access authority
It receives the message that background system is sent and generates request, it includes the template and message content for generating message that message, which generates request,.
The template for generating message includes newly-increased two class of template and original template.Wherein, original template is deposited in message center
The template of storage, and newly-increased template is the template that background system generates that request is provided to message center by message.Therefore, work as generation
When the template of message is newly-increased template, message, which generates, carries the newly-increased template in request;When the template for generating message is original mould
When plate, message generates the mark that original template is carried in request.
Generation unit 330, for generating message according to message content and message template.
Technical solution provided in an embodiment of the present invention, verifies whether background system has access to by way of access authority
Message center, therefore message center the access authority of different background systems can be arranged according to message, to need to access message
The background system at center can access message center.It in addition include the template to generate message in message generation request, therefore
Generation message can be customized according to the demand of background system, and user's body is improved with the format of this message for enriching generation
It tests.
Figure is please referred to, Fig. 4 is another structural schematic diagram of message creating apparatus provided in an embodiment of the present invention, the device
Include:
Judging unit 410, for judging whether background system has access message when there is the access request of background system
The access authority at center.
Receiving unit 420, for connecing when judging unit determines that there is background system access message center to obtain access authority
It receives the message that background system is sent and generates request.
It includes transmission businessman range, the message for generating the template of message, message content, message that message, which generates request,
The sending time of rank and message, sending time include sending and regularly sending immediately.
The sending method for sending businessman's range, the rank of message and message can be set by operation personnel in background system
It sets.When background system sends message generation request to message center, by the transmission businessman range set, the rank of message and disappear
The sending method of breath is sent to message center.
Subelement 430 is generated, for template and message content to be sent to message queue, to disappear in message queue generation
Breath, or message is generated using template and message content in real time.
Different message generating modes can be set according to whether Merchant ID information can be obtained in operation personnel.
Specifically, when available Merchant ID information, message is generated by the method for synchronization or asynchronous system.The side of synchronization
Formula refers to that calling directly micro services send_msg (s) interface generates message, and asynchronous system, which refers to generating in message queue, to disappear
Breath.
When failing to obtain Merchant ID information, message is generated by seller's managing message queues.
Setting unit 440, for the sending method according to businessman's range and rank setting message.
Businessman's range includes whole businessmans or part businessman.
The rank of message includes important and common two kinds of ranks, can force to push away to businessman when the rank of message is important
It send message, and when the rank of message is common, actively checks message as in a manner of pushing to businessman using businessman.
Transmission unit 450, for sending message according to sending method, according to sending time.
The sending time of message includes regularly sending and sending immediately.
If the sending time of message is to regularly send, deletion message can choose when not arriving sending time.
It is the message regularly sent for sending time, whether message center meeting automatic regular polling has the letter not sent to the time
Breath, if there is then sending information.
Updating unit 460, for updating the message status of transmitted message.
After sending message, the state of update message is to have sent, to prevent the repetition for offseting breath from sending.
Technical solution provided in an embodiment of the present invention, verifies whether background system has access to by way of access authority
Message center, therefore message center the access authority of different background systems can be arranged according to message, to need to access message
The background system at center can access message center.It includes template to generate message that message, which generates in request, therefore can be with
Generation message is customized according to the demand of background system, and user experience is improved with the format of this message for enriching generation.Separately
Outside, further include the sending method and sending time of message in message generation request, background system is enriched with this and is sent out to businessman
Send the form of message.
Description and claims of this specification and term " first ", " second ", " third " " in above-mentioned attached drawing
The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage
The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiment of the present invention described herein for example can be to remove
Sequence other than those of illustrating or describe herein is implemented.In addition, term " includes " and " having " and theirs is any
Deformation, it is intended that cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, production
Product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for this
A little process, methods, the other step or units of product or equipment inherently.
For device or system embodiments, since it essentially corresponds to embodiment of the method, thus related place referring to
The part of embodiment of the method illustrates.Device or system embodiment described above is only schematical, wherein described
Unit may or may not be physically separated as illustrated by the separation member, and component shown as a unit can be with
It is or may not be physical unit, it can it is in one place, or may be distributed over multiple network units.It can
It is achieved the purpose of the solution of this embodiment with selecting some or all of the modules therein according to the actual needs.This field is common
Technical staff can understand and implement without creative efforts.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method are not having
It has more than in the spirit and scope of the present invention, can realize in other way.Current embodiment is a kind of demonstration
Example, should not be taken as limiting, given particular content should in no way limit the purpose of the present invention.For example, the unit or
The division of subelement, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple lists
First or multiple subelements combine.In addition, multiple units can with or component may be combined or can be integrated into another and be
System, or some features can be ignored or not executed.
In addition, described system, the schematic diagram of device and method and different embodiments, without departing from the scope of the present invention
It is interior, it can be with other systems, module, techniques or methods combination or integrated.Another point, shown or discussed mutual coupling
It closes or direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit can be with
It is electrically mechanical or other forms.
The above is only a specific embodiment of the invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (10)
1. a kind of method for generating message, which is characterized in that be applied to message center, comprising:
When there is the access request of background system, judge whether the background system has the access right for accessing the message center
Limit;
If so, receiving the message that background system is sent generates request, it includes the mould for generating message that the message, which generates request,
Plate and message content;
Message is generated according to message content and message template.
2. the method according to claim 1, wherein generating message according to message content and message template, comprising:
The template and message content are sent to message queue, to generate the message in the message queue, or benefit in real time
Message is generated with template and message content.
3. the method according to claim 1, wherein the message generates the transmission businessman that request further includes message
The rank of range and message;
The method also includes:
The sending method of the message is set according to businessman's range and the rank.
4. according to the method described in claim 3, it is characterized in that, when message generation request further includes the transmission of message
Between, the sending time includes sending and regularly sending immediately;
The method also includes:
The message is sent according to described sender formula, according to the sending time.
5. according to the method described in claim 4, it is characterized by further comprising:
Update the message status of transmitted message.
6. a kind of message creating apparatus, which is characterized in that be applied to message center, comprising:
Whether judging unit disappears for when there is the access request of background system, judging the background system to have described in access
The access authority at breath center;
Receiving unit, for determining that there is the background system access message center to obtain access authority when the judging unit
When, it receives the message that background system is sent and generates request, it includes for generating the template of message and disappearing that the message, which generates request,
Cease content;
Generation unit, for generating message according to message content and message template.
7. device according to claim 6, which is characterized in that the generation unit, comprising:
Subelement is generated, for the template and message content to be sent to message queue, to generate institute in the message queue
Message is stated, or generates message using template and message content in real time.
8. device according to claim 6, which is characterized in that the message generates the transmission businessman that request further includes message
The rank of range and message;
Described device further include:
Setting unit, for the sending method of the message to be arranged according to businessman's range and the rank.
9. device according to claim 8, which is characterized in that when the message generation request further includes the transmission of message
Between, the sending time includes sending and regularly sending immediately;
Described device further include:
Transmission unit, for sending the message according to described sender formula, according to the sending time.
10. device according to claim 9, which is characterized in that further include:
Updating unit, for updating the message status of transmitted message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811120083.2A CN109246226A (en) | 2018-09-25 | 2018-09-25 | A kind of method for generating message and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811120083.2A CN109246226A (en) | 2018-09-25 | 2018-09-25 | A kind of method for generating message and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109246226A true CN109246226A (en) | 2019-01-18 |
Family
ID=65057473
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811120083.2A Pending CN109246226A (en) | 2018-09-25 | 2018-09-25 | A kind of method for generating message and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109246226A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7444596B1 (en) * | 2007-11-29 | 2008-10-28 | International Business Machines Corporation | Use of template messages to optimize a software messaging system |
CN101453394A (en) * | 2007-12-03 | 2009-06-10 | 华为技术有限公司 | Method, system and equipment for access control |
CN102546471A (en) * | 2011-12-31 | 2012-07-04 | 深圳中兴网信科技有限公司 | Message sending method for serving overall process of business travel |
US20140189528A1 (en) * | 2013-01-02 | 2014-07-03 | Samsung Electronics Co., Ltd. | Message transfer system including display device, mobile device and message transfer method thereof |
CN104243274A (en) * | 2013-06-14 | 2014-12-24 | 亿览在线网络技术(北京)有限公司 | Message processing method and message center system |
CN107277171A (en) * | 2017-07-28 | 2017-10-20 | 山东浪潮商用***有限公司 | A kind of customizable message method based on quartz |
CN107645524A (en) * | 2016-07-21 | 2018-01-30 | 腾讯科技(深圳)有限公司 | A kind of message push processing method and device |
-
2018
- 2018-09-25 CN CN201811120083.2A patent/CN109246226A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7444596B1 (en) * | 2007-11-29 | 2008-10-28 | International Business Machines Corporation | Use of template messages to optimize a software messaging system |
CN101453394A (en) * | 2007-12-03 | 2009-06-10 | 华为技术有限公司 | Method, system and equipment for access control |
CN102546471A (en) * | 2011-12-31 | 2012-07-04 | 深圳中兴网信科技有限公司 | Message sending method for serving overall process of business travel |
US20140189528A1 (en) * | 2013-01-02 | 2014-07-03 | Samsung Electronics Co., Ltd. | Message transfer system including display device, mobile device and message transfer method thereof |
CN104243274A (en) * | 2013-06-14 | 2014-12-24 | 亿览在线网络技术(北京)有限公司 | Message processing method and message center system |
CN107645524A (en) * | 2016-07-21 | 2018-01-30 | 腾讯科技(深圳)有限公司 | A kind of message push processing method and device |
CN107277171A (en) * | 2017-07-28 | 2017-10-20 | 山东浪潮商用***有限公司 | A kind of customizable message method based on quartz |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103326929B (en) | Method and device for transmitting messages | |
CN101919215B (en) | Communications router | |
CN106325671A (en) | Message reply method and device | |
CN104869049B (en) | Terminal information sending method and system | |
CN107294833A (en) | The method and terminal of a kind of information exchange | |
CN103369528A (en) | Terminal coordination system and method therefor | |
US9854413B2 (en) | Mobile communication terminal, communication method, and communication system | |
CN104901865B (en) | A kind of mobile terminal instant messaging signal synchronizing method based on global monotonic sequence number | |
CN109246217A (en) | A kind of matching method of intelligent bathtub equipment, pair system and intelligent bathtub equipment | |
CN110312266A (en) | The method and apparatus that the multisystem of terminal realizes WIFI communication | |
CN101442842B (en) | Virtual terminal server, mobile communication terminal, communication control system, and communication control method | |
CN109246226A (en) | A kind of method for generating message and device | |
CN102970209A (en) | E-mail state updating method, device and system | |
US20150088521A1 (en) | Speech server, speech method, recording medium, speech system, speech terminal, and mobile terminal | |
CN103379015B (en) | The data transmission method of Website server and IM client and its device and system | |
CN111194540A (en) | Communication control device and method for multi-topic conversation, and computer processing equipment | |
CN110471697A (en) | Configuration method and Related product | |
CN105959370A (en) | Home cloud system of automatically sharing contents according to face information and realization method | |
US8073474B1 (en) | Systems and methods for controlling group messaging | |
JP6999056B2 (en) | Message management device and message management method | |
CN109076064A (en) | Unmanned plane real name registration process method and system, server, terminal, management equipment | |
CN109104359B (en) | Message monitoring method, device, equipment and storage medium | |
CN106130869A (en) | A kind of voice is registered implementation method, system and device | |
JP2007195098A (en) | Communication network system using mobile terminal | |
CN105222781B (en) | A kind of indoor navigation method and mobile terminal |
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 |
Application publication date: 20190118 |
|
RJ01 | Rejection of invention patent application after publication |