CN105227435A - The method and apparatus of transmission of messages - Google Patents

The method and apparatus of transmission of messages Download PDF

Info

Publication number
CN105227435A
CN105227435A CN201510524157.9A CN201510524157A CN105227435A CN 105227435 A CN105227435 A CN 105227435A CN 201510524157 A CN201510524157 A CN 201510524157A CN 105227435 A CN105227435 A CN 105227435A
Authority
CN
China
Prior art keywords
template
parameter
parameters
content
identification
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
CN201510524157.9A
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.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510524157.9A priority Critical patent/CN105227435A/en
Publication of CN105227435A publication Critical patent/CN105227435A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The disclosure is directed to a kind of method and apparatus of transmission of messages, belong to Internet technical field.Described method comprises: receive template parameter information, described template parameter information comprises template identification and at least one content of parameter; Obtain the template that described template identification is corresponding, described template comprises at least one parameter, and described in each, parameter includes parameter rule; Judge the parameters content in described template parameter information, whether meet the parameters rule in template corresponding to described template identification respectively; When meeting the parameters rule in template corresponding to described template identification respectively when the parameters content in described template parameter information, the parameters parameters content in described template parameter information replaced respectively in template corresponding to described template identification forms message; Send the message formed.The disclosure is not by sending to user by the content of parameter adding superfluous content, and avoid the superfluous content harassing and wrecking that user is added into, Consumer's Experience is good.

Description

The method and apparatus of transmission of messages
Technical field
The disclosure relates to Internet technical field, particularly relates to a kind of method and apparatus of transmission of messages.
Background technology
Along with the development of Internet technology, the message sent to user gets more and more.Arbitrarily send information to prevent third party and harass user to user, server sends to the message of user to limit to third party.
In correlation technique, server limits by setting template the message content that third party sends to user.Template comprises some parameters, and content of parameter corresponding for each parameter is sent to server by third party, by server, the corresponding parameter that the content of parameter received is replaced in template is formed message, and the message of formation is sent to user.
Because content of parameter is by third party's sets itself, therefore third party can add the content beyond template specified content in content of parameter.In this case, server sends to the message of user with superfluous content, can cause harassing and wrecking to user, poor user experience.
Summary of the invention
For overcoming Problems existing in correlation technique, the disclosure provides a kind of method and apparatus of transmission of messages.
According to the first aspect of disclosure embodiment, a kind of method of transmission of messages is provided, comprises:
Receive template parameter information, described template parameter information comprises template identification and at least one content of parameter;
Obtain the template that described template identification is corresponding, described template comprises at least one parameter, and described in each, parameter includes parameter rule;
Judge the parameters content in described template parameter information, whether meet the parameters rule in template corresponding to described template identification respectively;
When meeting the parameters rule in template corresponding to described template identification respectively when the parameters content in described template parameter information, the parameters parameters content in described template parameter information replaced respectively in template corresponding to described template identification forms message;
Send the message formed.
In a kind of possible implementation of the first aspect of disclosure embodiment, described parameter rule comprises at least one in data type, data length.
In the another kind of possible implementation of the first aspect of disclosure embodiment, described method also comprises:
When at least one content of parameter in described template parameter information does not meet at least one parameter rule in template corresponding to described template identification, delete described template parameter information.
In another possible implementation of first aspect of disclosure embodiment, described method also comprises:
Receive template registration request, described template registration request comprises at least one template;
When at least one template described meets the pattern rule of setting, preserve at least one template described.
Alternatively, described method also comprises:
When at least one template described meets the pattern rule of setting, send the template identification of at least one template described.
In another possible implementation of first aspect of disclosure embodiment, described method also comprises:
Receive template and obtain request, described template obtains the template identification that request comprises at least one template;
Send at least one template described.
According to the second aspect of disclosure embodiment, a kind of device of transmission of messages is provided, comprises:
Information receiving module, for receiving template parameter information, described template parameter information comprises template identification and at least one content of parameter;
Acquisition module, for obtaining template corresponding to described template identification, described template comprises at least one parameter, and described in each, parameter includes parameter rule;
Whether judge module, for judging the parameters content in described template parameter information, meet the parameters rule in template corresponding to described template identification respectively;
Replacement module, during for meeting the parameters rule in template corresponding to described template identification respectively when the parameters content in described template parameter information, the parameters parameters content in described template parameter information replaced respectively in template corresponding to described template identification forms message;
Message transmission module, for sending the message of formation.
In a kind of possible implementation of the second aspect of disclosure embodiment, described parameter rule comprises at least one in data type, data length.
In the another kind of possible implementation of the second aspect of disclosure embodiment, described device also comprises:
Removing module, for when at least one content of parameter in described template parameter information does not meet at least one parameter rule in template corresponding to described template identification, deletes described template parameter information.
In another possible implementation of second aspect of disclosure embodiment, described device also comprises:
Registration request receiver module, for receiving template registration request, described template registration request comprises at least one template;
Preserve module, for when at least one template described meets the pattern rule of setting, preserve at least one template described.
Alternatively, described device also comprises:
Template identification sending module, for when at least one template described meets the pattern rule of setting, sends the template identification of at least one template described.
In another possible implementation of second aspect of disclosure embodiment, described device also comprises:
Obtain request receiving module, obtain request for receiving template, described template obtains the template identification that request comprises at least one template;
Template sending module, for sending at least one template described.
According to the third aspect of disclosure embodiment, a kind of device of transmission of messages is provided, comprises:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive template parameter information, described template parameter information comprises template identification and at least one content of parameter;
Obtain the template that described template identification is corresponding, described template comprises at least one parameter, and parameters includes parameter rule;
Judge the parameters content in described template parameter information, whether meet the parameters rule in template corresponding to described template identification respectively;
When meeting the parameters rule in template corresponding to described template identification respectively when the parameters content in described template parameter information, the parameters parameters content in described template parameter information replaced respectively in template corresponding to described template identification forms message;
Send the message formed.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: whether met the parameters rule in template corresponding to template identification respectively by the parameters content in judge templet parameter information, and when meeting the parameters rule in template corresponding to template identification respectively when the parameters content in template parameter information, parameters parameters content in template parameter information replaced respectively in template corresponding to template identification forms message, although content of parameter or sets itself, but add parameter rule in template, if add superfluous content in content of parameter, the parameter that then this content of parameter cannot be able to be replaced owing to not meeting parameter rule in template forms message, this content of parameter also can not be sent to user naturally, avoid the superfluous content harassing and wrecking that user is added into, Consumer's Experience is good.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in specification and to form the part of this specification, shows embodiment according to the invention, and is used from specification one and explains principle of the present invention.
Fig. 1 is the application scenarios figure of the method for a kind of transmission of messages according to an exemplary embodiment;
Fig. 2 is the flow chart of the method for a kind of transmission of messages according to an exemplary embodiment;
Fig. 3 is the flow chart of the method for a kind of transmission of messages according to an exemplary embodiment;
Fig. 4 is the terminal interface figure of the message display according to an exemplary embodiment;
Fig. 5 is the block diagram of the device of a kind of transmission of messages according to an exemplary embodiment;
Fig. 6 is the block diagram of the device of a kind of transmission of messages according to another exemplary embodiment;
Fig. 7 is the block diagram of the device of a kind of transmission of messages according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the present invention.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present invention are consistent.
First composition graphs 1 simply introduces the application scenarios of the method for message transmission that disclosure embodiment provides below.As shown in Figure 1, terminal 1 provides service by server 2, and terminal 1 is connected by the Internet with server 2.Third party 3 is also connected with server 2 by the Internet, and by server 2, message is sent to terminal 1.Such as, terminal 1 is the millet mobile phone using millet account, server 2 is millet server, server 2 can to terminal 1 transmitting system message, and the millet account that third party 3 can be used by designated terminal 1 utilizes server 2 that message (mode with system message) is sent to terminal 1.And for example, terminal 1 is the mobile terminal using rice to chat common account, server 2 is millet server, third party 3 is the mobile terminal using rice to chat public number, common account chatted by the rice that terminal 1 uses can set up by the mode paid close attention to the friend relation chatting public number with the rice of third party 3, and the rice that third party can be used by designated terminal 1 is chatted common account and utilized server 2 that message is sent to terminal 1.
In actual applications, terminal 1 includes but not limited to mobile phone, panel computer, notebook computer, desktop computer.Server 2 can be server, server cluster or cloud computing service center.Third party 3 can be terminal, also can be server, server cluster or cloud computing service center.Fig. 1 is only mobile phone for terminal 1 and third party 3, and conduct is not to restriction of the present disclosure.
It should be noted that, the application scenarios shown in Fig. 1 is only citing, and the disclosure is not restricted to this.
Fig. 2 is the flow chart of the method for a kind of transmission of messages according to an exemplary embodiment, and as shown in Figure 2, the method for this transmission of messages is used for, in server, comprising the following steps.
In step s 11, template parameter information is received.
In the present embodiment, template parameter information comprises template identification and at least one content of parameter.
In actual applications, template parameter information is sent by third party.As described in application scenarios part, third party is the equipment by server, message being sent to user, can be terminal, also can be server.
In step s 12, the template that this template identification is corresponding is obtained.
In the present embodiment, template comprises at least one parameter, and parameters includes parameter rule.
In step s 13, whether the parameters content in judge templet parameter information, meet the parameters rule in template corresponding to this template identification respectively.
In step S14, when meeting the parameters rule in template corresponding to this template identification respectively when the parameters content in template parameter information, the parameters parameters content in template parameter information replaced respectively in template corresponding to this template identification forms message.
In step S15, send the message formed.
In actual applications, the message of formation is sent to the terminal of user's use usually, is the information that user provides.
Whether disclosure embodiment meets the parameters rule in template corresponding to template identification respectively by the parameters content in judge templet parameter information, and when meeting the parameters rule in template corresponding to template identification respectively when the parameters content in template parameter information, parameters parameters content in template parameter information replaced respectively in template corresponding to template identification forms message, although content of parameter or sets itself, but add parameter rule in template, if add superfluous content in content of parameter, the parameter that then this content of parameter cannot be able to be replaced owing to not meeting parameter rule in template forms message, this content of parameter also can not be sent to user naturally, avoid the superfluous content harassing and wrecking that user is added into, Consumer's Experience is good.
Fig. 3 is the flow chart of the method for a kind of transmission of messages according to an exemplary embodiment, and as shown in Figure 3, the method for this transmission of messages is used for, in server, comprising the following steps.
In the step s 21, template parameter information is received.
In the present embodiment, template parameter information comprises template identification and at least one content of parameter.Such as, template parameter information comprises " gift token gives template ", " xxx ", " 50 ", and wherein, " gift token gives template " is template identification, and " xxx " and " 50 " is two content of parameter.
In actual applications, template parameter information can also comprise user ID, the account (as millet account) that the system that this user ID can be installed for user terminal uses or the account (as account chatted by rice) that the application program that user terminal is installed uses.
Template parameter information is sent by third party.As described in application scenarios part, third party is the equipment by server, message being sent to user, can be terminal, also can be server.
Easily know, before step S21, third party has also performed following steps:
Third party receives the user ID of input, template identification and at least one content of parameter;
User ID, template identification and at least one content of parameter composition parameter information that third party will receive;
Third direction server sends parameter information.
Understandably, by above-mentioned steps, third party achieves and sends to message to send to server needs server.
In step S22, obtain the template that this template identification is corresponding.
In the present embodiment, template comprises at least one parameter, and parameters includes parameter rule.In actual applications, template also comprises fixing character string.Such as, template " gift token gives template " comprises, and " distinguished user { { UserName.DATA.string (8) } }, we have sent to you, and { { Ticket.DATA.int}} unit gift token, please consumes in time.", wherein, " distinguished user ", ", we have sent to you " and " first gift token, please consumes in time." be fixing character string; " { { UserName.DATA.string (8) } } " and " { { Ticket.DATA.int}} " are two parameters; " DATA}} " and be parameter flag position (being different from fixing character string), " string (8) " and " int " they are the parameter rule that two parameters comprise.
Alternatively, parameter rule can comprise at least one in data type, data length.Such as, it is that string (character string) and data length are no more than 8 that parameter rule " string (8) " comprises data type, and it is int (integer) that parameter rule " int " comprises data type.
Understandably, define at least one in data type, data length, even if third party can setup parameter content arbitrarily, this content of parameter also can not exceed the scope of template specified content substantially, namely the probability of superfluous content is added in content of parameter almost nil, ensure that and send to the message of user not have unnecessary content, avoid user and harassed by superfluous content, Consumer's Experience is good.
In step S23, whether the parameters content in judge templet parameter information, meet the parameters rule in template corresponding to this template identification respectively.When meeting the parameters rule in template corresponding to this template identification respectively when the parameters content in template parameter information, perform step S24-step S25; When at least one content of parameter in template parameter information does not meet at least one parameter rule in template corresponding to this template identification, perform step S26.
As previously mentioned, template parameter information comprises at least one content of parameter, template comprises at least one parameter rule, therefore can putting in order according to parameter, respectively the parameters content in template parameter information is carried out man-to-man comparison with the identical parameter rule that puts in order in template, determine whether content of parameter meets the identical parameter rule that puts in order.
Such as, parameters content in template parameter information is respectively " xxx ", " 50 ", parameters rule in template is respectively " string (8) ", " int ", then determine whether the data type of content of parameter " xxx " is string (character string) and determines whether the data length of content of parameter " xxx " is no more than 8, whether the data type of content of parameter " 50 " is int (integer).
In step s 24 which, the parameters parameters content in template parameter information replaced respectively in template corresponding to this template identification forms message.
Such as, content of parameter " xxx " in template parameter information is replaced the parameter " { { UserName.DATA.string (8) } } " in template " gift token gives template ", content of parameter " 50 " is replaced parameter in template " gift token gives template " " { { Ticket.DATA.int}} ", form message " distinguished user xxx; we have sent 50 yuan of gift tokens to you, please consume in time.”。
In step s 25, the message formed is sent.
Easily know, when template parameter information comprises user ID, this step S25 can comprise:
According to this user ID, send the message formed.
In actual applications, when template parameter information does not comprise user ID, the message sending formation to all users is given tacit consent to.
The message formed is sent to the terminal that user uses usually, is the information that user provides.Fig. 4 is the interface schematic diagram that terminal receives the message of formation.
In step S26, delete template parameter information.
Understandably, will the template parameter information deletion of the content of parameter not meeting parameter rule be comprised, content useless in instant clearing server can be avoided, improve the runnability of server.
In a kind of implementation of the present embodiment, the method can also comprise:
Receive template registration request, template registration request comprises at least one template;
When this at least one template meets the pattern rule of setting, preserve at least one template.
Understandably, by the way, the template that third party can use to its transmission message of server registration, after server allows to adopt this template transmission message, to send message by this template to user.
Alternatively, the method can also comprise:
When this at least one template meets the pattern rule of setting, send the template identification of at least one template.
Understandably, all realize calling of template by template identification during transmission message, server sends template identification to third party, on the one hand also show to send message by this template to user to third party, be convenient to third party on the other hand and call template by this template identification and send message to user.
In the another kind of implementation of the present embodiment, the method can also comprise:
Receive template and obtain request, template obtains the template identification that request comprises at least one template;
Send this at least one template.
Understandably, similar but the particular content of the specified content of a lot of template there are differences, if each third party is to server registration template, then the workload of drawing template establishment and examination & verification template is all very large, directly by third direction server request template, the workload of this respect can be greatly reduced.
In actual applications, before reception template obtains request, server first can provide the information (as template identification) of at least one template to third party, third party is therefrom shown after the information getting at least one template, then third party receives the selection signal acting at least one template, and sends template acquisition request to server.
Before server provides at least one template to third party, third party also first can send template application request (template application request comprises the information for representing industry belonging to template (as science and technology, finance)) to server, server is searched according to template application request the template that meets information requirements industry and the information of the template found is supplied to third party, therefrom selects required template to facilitate third party.
Whether disclosure embodiment meets the parameters rule in template corresponding to template identification respectively by the parameters content in judge templet parameter information, and when meeting the parameters rule in template corresponding to template identification respectively when the parameters content in template parameter information, parameters parameters content in template parameter information replaced respectively in template corresponding to template identification forms message, although content of parameter or sets itself, but add parameter rule in template, if add superfluous content in content of parameter, the parameter that then this content of parameter cannot be able to be replaced owing to not meeting parameter rule in template forms message, this content of parameter also can not be sent to user naturally, avoid the superfluous content harassing and wrecking that user is added into, Consumer's Experience is good.
Fig. 5 is the block diagram of the device of a kind of transmission of messages according to an exemplary embodiment, and with reference to Fig. 5, this device comprises information receiving module 301, acquisition module 302, judge module 303, replacement module 304 and message transmission module 305.
This information receiving module 301 is configured to receive template parameter information, and template parameter information comprises template identification and at least one content of parameter.
This acquisition module 302 is configured to obtain template corresponding to template identification, and template comprises at least one parameter, and parameters includes parameter rule.
This judge module 303 is configured to the parameters content in judge templet parameter information, whether meets the parameters rule in template corresponding to template identification respectively.
When this replacement module 304 is configured to the parameters rule met respectively when the parameters content in template parameter information in template corresponding to template identification, the parameters parameters content in template parameter information replaced respectively in template corresponding to template identification forms message.
This message transmission module 305 is configured to send the message formed.
Whether disclosure embodiment meets the parameters rule in template corresponding to template identification respectively by the parameters content in judge templet parameter information, and when meeting the parameters rule in template corresponding to template identification respectively when the parameters content in template parameter information, parameters parameters content in template parameter information replaced respectively in template corresponding to template identification forms message, although content of parameter or sets itself, but add parameter rule in template, if add superfluous content in content of parameter, the parameter that then this content of parameter cannot be able to be replaced owing to not meeting parameter rule in template forms message, this content of parameter also can not be sent to user naturally, avoid the superfluous content harassing and wrecking that user is added into, Consumer's Experience is good.
Fig. 6 is the block diagram of the device of a kind of transmission of messages according to an exemplary embodiment, and with reference to Fig. 6, this device comprises information receiving module 401, acquisition module 402, judge module 403, replacement module 404 and message transmission module 405.
This information receiving module 401 is configured to receive template parameter information, and template parameter information comprises template identification and at least one content of parameter.
This acquisition module 402 is configured to obtain template corresponding to template identification, and template comprises at least one parameter, and parameters includes parameter rule.
This judge module 403 is configured to the parameters content in judge templet parameter information, whether meets the parameters rule in template corresponding to template identification respectively.
When this replacement module 404 is configured to the parameters rule met respectively when the parameters content in template parameter information in template corresponding to template identification, the parameters parameters content in template parameter information replaced respectively in template corresponding to template identification forms message.
This message transmission module 405 is configured to send the message formed.
In a kind of implementation of the present embodiment, parameter rule can comprise at least one in data type, data length.
Understandably, define at least one in data type, data length, even if third party can setup parameter content arbitrarily, this content of parameter also can not exceed the scope of template specified content substantially, namely the probability of superfluous content is added in content of parameter almost nil, ensure that and send to the message of user not have unnecessary content, avoid user and harassed by superfluous content, Consumer's Experience is good.
In the another kind of implementation of the present embodiment, this device can also comprise removing module 406.
This removing module 406 is configured to when at least one content of parameter in template parameter information does not meet at least one parameter rule in template corresponding to template identification, deletes template parameter information.
Understandably, will the template parameter information deletion of the content of parameter not meeting parameter rule be comprised, content useless in instant clearing server can be avoided, improve the runnability of server.
In another implementation of the present embodiment, this device can also comprise registration request receiver module 407 and preserve module 408.
This registration request receiver module 407 is configured to receive template registration request, and template registration request comprises at least one template.
This preservation module 408 is configured to, when at least one template meets the pattern rule of setting, preserve at least one template.
Understandably, by the way, the template that third party can use to its transmission message of server registration, after server allows to adopt this template transmission message, to send message by this template to user.
Alternatively, this device can also comprise template identification sending module 409.
This template identification sending module 409 is configured to, when at least one template meets the pattern rule of setting, send the template identification of at least one template.
Understandably, all realize calling of template by template identification during transmission message, server sends template identification to third party, on the one hand also show to send message by this template to user to third party, be convenient to third party on the other hand and call template by this template identification and send message to user.
In another implementation of the present embodiment, this device can also comprise acquisition request receiving module 410 and template sending module 411.
This acquisition request receiving module 410 is configured to receive template and obtains request, and template obtains the template identification that request comprises at least one template.
This template sends request 411 and is configured to send at least one template.
Understandably, similar but the particular content of the specified content of a lot of template there are differences, if each third party is to server registration template, then the workload of drawing template establishment and examination & verification template is all very large, directly by third direction server request template, the workload of this respect can be greatly reduced.
Whether disclosure embodiment meets the parameters rule in template corresponding to template identification respectively by the parameters content in judge templet parameter information, and when meeting the parameters rule in template corresponding to template identification respectively when the parameters content in template parameter information, parameters parameters content in template parameter information replaced respectively in template corresponding to template identification forms message, although content of parameter or sets itself, but add parameter rule in template, if add superfluous content in content of parameter, the parameter that then this content of parameter cannot be able to be replaced owing to not meeting parameter rule in template forms message, this content of parameter also can not be sent to user naturally, avoid the superfluous content harassing and wrecking that user is added into, Consumer's Experience is good.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Fig. 7 is the block diagram of a kind of device 1900 for transmission of messages according to an exemplary embodiment.Such as, device 1900 may be provided in a server.With reference to Fig. 7, device 1900 comprises processing components 1922, and it comprises one or more processor further, and the memory resource representated by memory 1932, can such as, by the instruction of the execution of processing components 1922, application program for storing.The application program stored in memory 1932 can comprise each module corresponding to one group of instruction one or more.In addition, processing components 1922 is configured to perform instruction, to perform the above method.
Device 1900 can also comprise the power management that a power supply module 1926 is configured to final controlling element 1900, and a wired or wireless network interface 1950 is configured to device 1900 to be connected to network, and input and output (I/O) interface 1958.Device 1900 can operate the operating system based on being stored in memory 1932, such as WindowsServerTM, MacOSXTM, UnixTM, LinuxTM, FreeBSDTM or similar.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of server, make server can perform a kind of method of transmission of messages, described method comprises:
Receive template parameter information, described template parameter information comprises template identification and at least one content of parameter;
Obtain the template that described template identification is corresponding, described template comprises at least one parameter, and described in each, parameter includes parameter rule;
Judge the parameters content in described template parameter information, whether meet the parameters rule in template corresponding to described template identification respectively;
When meeting the parameters rule in template corresponding to described template identification respectively when the parameters content in described template parameter information, the parameters parameters content in described template parameter information replaced respectively in template corresponding to described template identification forms message;
Send the message formed.
In a kind of implementation of the present embodiment, described parameter rule comprises at least one in data type, data length.
In the another kind of implementation of the present embodiment, described method also comprises:
When at least one content of parameter in described template parameter information does not meet at least one parameter rule in template corresponding to described template identification, delete described template parameter information.
In another implementation of the present embodiment, described method also comprises:
Receive template registration request, described template registration request comprises at least one template;
When at least one template described meets the pattern rule of setting, preserve at least one template described.
Alternatively, described method also comprises:
When at least one template described meets the pattern rule of setting, send the template identification of at least one template described.
In another implementation of the present embodiment, described method also comprises:
Receive template and obtain request, described template obtains the template identification that request comprises at least one template;
Send at least one template described.
Those skilled in the art, at consideration specification and after putting into practice invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (13)

1. a method for transmission of messages, is characterized in that, comprising:
Receive template parameter information, described template parameter information comprises template identification and at least one content of parameter;
Obtain the template that described template identification is corresponding, described template comprises at least one parameter, and described in each, parameter includes parameter rule;
Judge the parameters content in described template parameter information, whether meet the parameters rule in template corresponding to described template identification respectively;
When meeting the parameters rule in template corresponding to described template identification respectively when the parameters content in described template parameter information, the parameters parameters content in described template parameter information replaced respectively in template corresponding to described template identification forms message;
Send the message formed.
2. method according to claim 1, is characterized in that, described parameter rule comprises at least one in data type, data length.
3. method according to claim 1 and 2, is characterized in that, described method also comprises:
When at least one content of parameter in described template parameter information does not meet at least one parameter rule in template corresponding to described template identification, delete described template parameter information.
4. method according to claim 1 and 2, is characterized in that, described method also comprises:
Receive template registration request, described template registration request comprises at least one template;
When at least one template described meets the pattern rule of setting, preserve at least one template described.
5. method according to claim 4, is characterized in that, described method also comprises:
When at least one template described meets the pattern rule of setting, send the template identification of at least one template described.
6. method according to claim 1 and 2, is characterized in that, described method also comprises:
Receive template and obtain request, described template obtains the template identification that request comprises at least one template;
Send at least one template described.
7. a device for transmission of messages, is characterized in that, comprising:
Information receiving module, for receiving template parameter information, described template parameter information comprises template identification and at least one content of parameter;
Acquisition module, for obtaining template corresponding to described template identification, described template comprises at least one parameter, and described in each, parameter includes parameter rule;
Whether judge module, for judging the parameters content in described template parameter information, meet the parameters rule in template corresponding to described template identification respectively;
Replacement module, during for meeting the parameters rule in template corresponding to described template identification respectively when the parameters content in described template parameter information, the parameters parameters content in described template parameter information replaced respectively in template corresponding to described template identification forms message;
Message transmission module, for sending the message of formation.
8. device according to claim 7, is characterized in that, described parameter rule comprises at least one in data type, data length.
9. the device according to claim 7 or 8, is characterized in that, described device also comprises:
Removing module, for when at least one content of parameter in described template parameter information does not meet at least one parameter rule in template corresponding to described template identification, deletes described template parameter information.
10. the device according to claim 7 or 8, is characterized in that, described device also comprises:
Registration request receiver module, for receiving template registration request, described template registration request comprises at least one template;
Preserve module, for when at least one template described meets the pattern rule of setting, preserve at least one template described.
11. devices according to claim 10, is characterized in that, described device also comprises:
Template identification sending module, for when at least one template described meets the pattern rule of setting, sends the template identification of at least one template described.
12. devices according to claim 7 or 8, it is characterized in that, described device also comprises:
Obtain request receiving module, obtain request for receiving template, described template obtains the template identification that request comprises at least one template;
Template sending module, for sending at least one template described.
The device of 13. 1 kinds of transmission of messages, is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive template parameter information, described template parameter information comprises template identification and at least one content of parameter;
Obtain the template that described template identification is corresponding, described template comprises at least one parameter, and parameters includes parameter rule;
Judge the parameters content in described template parameter information, whether meet the parameters rule in template corresponding to described template identification respectively;
When meeting the parameters rule in template corresponding to described template identification respectively when the parameters content in described template parameter information, the parameters parameters content in described template parameter information replaced respectively in template corresponding to described template identification forms message;
Send the message formed.
CN201510524157.9A 2015-08-24 2015-08-24 The method and apparatus of transmission of messages Pending CN105227435A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510524157.9A CN105227435A (en) 2015-08-24 2015-08-24 The method and apparatus of transmission of messages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510524157.9A CN105227435A (en) 2015-08-24 2015-08-24 The method and apparatus of transmission of messages

Publications (1)

Publication Number Publication Date
CN105227435A true CN105227435A (en) 2016-01-06

Family

ID=54996139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510524157.9A Pending CN105227435A (en) 2015-08-24 2015-08-24 The method and apparatus of transmission of messages

Country Status (1)

Country Link
CN (1) CN105227435A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105898389A (en) * 2016-04-11 2016-08-24 鼎点视讯科技有限公司 Parameter configuration method and device for IPQAM device
CN106598931A (en) * 2016-12-29 2017-04-26 江西博瑞彤芸科技有限公司 Method for generating informative template

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141467A (en) * 2007-10-31 2008-03-12 杭州华三通信技术有限公司 Configuring method and system
CN101184261A (en) * 2007-11-05 2008-05-21 中国电信股份有限公司 Multi-network oriented multimedia information providing and receiving method and system
CN101355436A (en) * 2007-07-24 2009-01-28 中兴通讯股份有限公司 System for rapidly configuring data based on formwork and implementing method
CN101719157A (en) * 2009-12-01 2010-06-02 山东中创软件工程股份有限公司 Data filtering method, system and data processing device used for system
US20100169447A1 (en) * 2007-07-03 2010-07-01 Calinda Software Method of managing a collaborative process by means of electronic messages
CN101778160A (en) * 2010-01-08 2010-07-14 中兴通讯股份有限公司 Method and device for dynamically presetting message
CN202353608U (en) * 2011-11-11 2012-07-25 无锡南理工科技发展有限公司 Trustable publishing/subscribing system for supporting multi subscription conditions and non-real-time information subscription
CN104378282A (en) * 2013-12-25 2015-02-25 腾讯科技(深圳)有限公司 Information sending method and information forwarding method, device and system
CN104462237A (en) * 2014-11-14 2015-03-25 华为软件技术有限公司 Method and device for displaying public information

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100169447A1 (en) * 2007-07-03 2010-07-01 Calinda Software Method of managing a collaborative process by means of electronic messages
CN101355436A (en) * 2007-07-24 2009-01-28 中兴通讯股份有限公司 System for rapidly configuring data based on formwork and implementing method
CN101141467A (en) * 2007-10-31 2008-03-12 杭州华三通信技术有限公司 Configuring method and system
CN101184261A (en) * 2007-11-05 2008-05-21 中国电信股份有限公司 Multi-network oriented multimedia information providing and receiving method and system
CN101719157A (en) * 2009-12-01 2010-06-02 山东中创软件工程股份有限公司 Data filtering method, system and data processing device used for system
CN101778160A (en) * 2010-01-08 2010-07-14 中兴通讯股份有限公司 Method and device for dynamically presetting message
CN202353608U (en) * 2011-11-11 2012-07-25 无锡南理工科技发展有限公司 Trustable publishing/subscribing system for supporting multi subscription conditions and non-real-time information subscription
CN104378282A (en) * 2013-12-25 2015-02-25 腾讯科技(深圳)有限公司 Information sending method and information forwarding method, device and system
CN104462237A (en) * 2014-11-14 2015-03-25 华为软件技术有限公司 Method and device for displaying public information

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105898389A (en) * 2016-04-11 2016-08-24 鼎点视讯科技有限公司 Parameter configuration method and device for IPQAM device
CN105898389B (en) * 2016-04-11 2018-12-04 鼎点视讯科技有限公司 A kind of method for parameter configuration and device of IPQAM equipment
CN106598931A (en) * 2016-12-29 2017-04-26 江西博瑞彤芸科技有限公司 Method for generating informative template

Similar Documents

Publication Publication Date Title
CN110365491B (en) Service processing method, device, equipment, storage medium and data sharing system
KR101577920B1 (en) Location-based group generation method, apparatus and system
US8774778B2 (en) Mobile location identifier for social check-in applications
US20130130726A1 (en) Method for sharing terminal location and terminal device
US11330065B2 (en) Application connection for devices in a network
CN113206753B (en) Information configuration method and management unit
CN112311841B (en) Information pushing method and device, electronic equipment and computer readable medium
CN109391476B (en) Network communication method, device and system
WO2016010921A1 (en) Creating a user group
US10135763B2 (en) System and method for secure and efficient communication within an organization
CN104954149A (en) Method for sharing data in network conference, device and system thereof
CN104980339A (en) File sharing method and device
CN109446204B (en) Data storage method and device for instant messaging, electronic equipment and medium
US20180048621A1 (en) Techniques for providing multi-modal multi-party calling
CN102752230A (en) Method and system for sharing subscriber relationship chain
CN109921975B (en) Personal information distribution method and device
CN105227435A (en) The method and apparatus of transmission of messages
CN110708238B (en) Method and apparatus for processing information
CN111767558B (en) Data access monitoring method, device and system
CN113329100B (en) Message pushing method, device and system
CN115913803A (en) Information interaction method and device and electronic equipment
CN105450474A (en) Method and device for detecting e-mail server address
KR20090070022A (en) A system for and a method of providing instant messanger services, an apparatus for and a method of controlling connection of a server and terminal units in the system, and computer-readable media in which programs for executing the methods are recorded
CN104052783B (en) Application program for the device in network connects
CN115622981B (en) WebRTC communication method, device, equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160106

RJ01 Rejection of invention patent application after publication