CN106302116A - Message method and device - Google Patents
Message method and device Download PDFInfo
- Publication number
- CN106302116A CN106302116A CN201610665050.0A CN201610665050A CN106302116A CN 106302116 A CN106302116 A CN 106302116A CN 201610665050 A CN201610665050 A CN 201610665050A CN 106302116 A CN106302116 A CN 106302116A
- Authority
- CN
- China
- Prior art keywords
- source template
- sent
- message
- sender
- regular expression
- 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
- 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/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
-
- 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/21—Monitoring or handling of messages
- H04L51/214—Monitoring or handling of messages using selective forwarding
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The disclosure is directed to message method and device.Wherein, method includes: receiving the message transmission request that sender sends, message sends request and includes message content to be sent and targeted customer;Message content to be sent is mated with the source template in source template storehouse, when source template storehouse exists the source template mated with message content to be sent, message content to be sent is sent to targeted customer.In disclosure embodiment, during sender's message to be sent, directly message to be sent (actual content the most to be sent) is sent to message system, carried out the coupling of source template by message system and send message to be sent, sender need not consider different source template forms and the supplemental characteristic bag form of different message systems, it is thus advantageous to sender carry out the migration of message desk or access multiple message desk, reduces sender and access the development and maintenance cost of message system.
Description
Technical field
It relates to the communications field, particularly relate to a kind of message method and device.
Background technology
Along with the development of the technology of terminal unit, more and more people use terminal unit to exchange.Businessman, operating service
The senders such as business can send notification to targeted customer by the message such as note, instant message.How to prevent sender to user
Harass, it is ensured that the message content of transmission is controlled, be a problem demanding prompt solution.
Summary of the invention
Disclosure embodiment provides a kind of message method and device.Technical scheme is as follows:
First aspect according to disclosure embodiment, it is provided that a kind of message method, including:
Receiving the message transmission request that sender sends, described message sends request and includes message content to be sent and mesh
Mark user;
Described message content to be sent is mated with the source template in source template storehouse, in described source template storehouse
Storage has the source template that sender is pre-configured with;
When source template storehouse exists the source template mated with described message content to be sent, to be sent disappear described
Breath content sends to described targeted customer.
Optionally, described method also includes:
Receive the source template that sender sends;
Regular expression is generated for described source template;
The regular expression of described source template is stored in described source template storehouse;
Described described message content to be sent is mated with the source template in source template storehouse, including:
Described message content to be sent is mated with the regular expression in source template storehouse.
Optionally, described for described source template generate regular expression, including:
The parameter with preset format is extracted from described source template;
Type according to described parameter and qualifications, generate the regular expression of described parameter;
The regular expression of described parameter is backfilled in described source template, generates the regular expressions of described source template
Formula.
Optionally, after the source template that the described sender of reception sends, described method also includes:
Receive the auditing result to described source template;
Described for described source template generate regular expression, including:
When auditing result for examination & verification by time, for described source template generate regular expression.
Optionally, described method also includes:
When source template storehouse does not exist the source template mated with described message content to be sent, to described sender
Send information.
Second aspect according to disclosure embodiment, it is provided that a kind of message dispensing device, described device includes:
First receiver module, is configured to receive the message transmission request that sender sends, and described message sends in request
Including message content to be sent and targeted customer;
Matching module, is configured to carry out the source template in described message content to be sent and source template storehouse
Join, described source template storehouse stores the source template having sender to be pre-configured with;
First sending module, is configured as in source template storehouse there is the message mated with described message content to be sent
During template, described message content to be sent is sent to described targeted customer.
Optionally, described device also includes:
Second receiver module, is configured to receive the source template that sender sends;
Processing module, is configured to generate regular expression for described source template;
Memory module, is configured to be stored in described source template storehouse the regular expression of described source template;
Described matching module, is configured to: by described message content to be sent and the regular expression in source template storehouse
Mate.
Optionally, described processing module includes:
Extract submodule, be configured to from described source template, extract the parameter with preset format;
First processes submodule, is configured to the type according to described parameter and qualifications, is just generating described parameter
Then expression formula;
Second processes submodule, is configured to backfill into described source template the regular expression generating described parameter
In, generate the regular expression of described source template.
Optionally, described device also includes:
Second receiver module, after being configured to receive the source template that sender sends, receives described source template
Auditing result;
Described processing module, be configured as auditing result for examination & verification by time, for described source template generate canonical table
Reach formula.
Optionally, described device also includes:
Second sending module, is configured as in source template storehouse not existing and disappearing that described message content to be sent mates
During breath template, send information to described sender.
The third aspect according to disclosure embodiment, it is provided that a kind of suggestion device, including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Receiving the message transmission request that sender sends, described message sends request and includes message content to be sent and mesh
Mark user;
Described message content to be sent is mated with the source template in source template storehouse, in described source template storehouse
Storage has the source template that sender is pre-configured with;
When source template storehouse exists the source template mated with described message content to be sent, to be sent disappear described
Breath content sends to described targeted customer.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect:
By carrying out mating with source template by message content to be sent, technique scheme, decides whether that transmission disappears
Breath.For sender, only need to be sent in message system by source template in advance, during follow-up message to be sent, directly
Connect and message to be sent (actual content the most to be sent) is sent to message system, message system carry out the coupling of source template
With transmission message to be sent, sender need not consider different source template forms and the supplemental characteristic of different message systems
Bag form, is thus advantageous to sender and carries out the migration of message desk or access multiple message desk, reduces sender and accesses
The development and maintenance cost of message system.
It should be appreciated that it is only exemplary and explanatory, not that above general description and details hereinafter describe
The disclosure can be limited.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meet the enforcement of the disclosure
Example, and for explaining the principle of the disclosure together with description.
Fig. 1 is the flow chart according to the message method shown in an exemplary embodiment.
Fig. 2 is the flow chart according to the message method shown in another exemplary embodiment.
Fig. 3 is the block diagram according to the message dispensing device shown in an exemplary embodiment.
Fig. 4 is the block diagram according to the message dispensing device shown in another exemplary embodiment.
Fig. 5 is the block diagram according to the message dispensing device shown in another exemplary embodiment.
Fig. 6 is the block diagram according to the message dispensing device shown in another exemplary embodiment.
Fig. 7 is the block diagram according to the message dispensing device shown in another exemplary embodiment.
Fig. 8 is the block diagram according to the means for prompting shown in an exemplary embodiment.
Fig. 9 is the block diagram according to the server for prompting shown in an exemplary embodiment.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they are only with the most appended
The example of the apparatus and method that some aspects that described in detail in claims, the disclosure are consistent.
Fig. 1 is the flow chart according to a kind of message method shown in an exemplary embodiment, as it is shown in figure 1, this carries
Show that method is applied in server, comprise the following steps S11-S13:
In step s 11, receiving the message transmission request that sender sends, message sends request and includes message to be sent
Content and targeted customer.
In step s 12, message content to be sent is mated with the source template in source template storehouse, source template
In storehouse, storage has the source template that sender is pre-configured with.
In step s 13, when source template storehouse exists the source template mated with message content to be sent, by pending
Message content is sent to send to targeted customer.
The method that disclosure embodiment provides, after receiving the message transmission request that sender sends, sends message
The message content to be sent that request includes mates with the source template in source template storehouse, only when in source template storehouse
When there is the source template with content matching to be sent, just allow to send to targeted customer message content to be sent.
Such as, the source template in source template storehouse is:
" (name), you are good!(digital) unit telephone recharge the most successfully arrives account.Please wait that checking and accepting operator SMS confirms.”.Its
In, name and numeral in bracket do not limit.
Such as, message content to be sent is:
" Mr. Wang, you are good!100.0 unit's telephone recharge the most successfully arrives account.Please wait that checking and accepting operator SMS confirms.”.
This message content to be sent mates with source template, it is possible to send this message to be sent to targeted customer.
Such as, message content to be sent is:
" Mr. Wang, you are good!Congratulate you to get Grand Prix, please call 123456 and receive the award.”.
This message content to be sent does not mates with source template, so will not send this message to be sent to target use
Family.
The message method that disclosure embodiment provides, can apply to various message system, for example, it may be network
Message system, such as businessman are sent out public notice information to user by the message system of service number or instant messaging;Can also be short
Communication system, such as businessman are sent out public notice note to user.The message method that disclosure embodiment provides, by disappearing to be sent
Breath content carries out mating with source template and decides whether to send message.For sender, only need to configure message mould in advance
Plate is also sent in message system, and during follow-up message to be sent, directly by message to be sent, (the most to be sent is actual interior
Hold) be sent to message system, message system carry out the coupling of source template and send message to be sent, sender need not consider
The different source template form of different message systems and supplemental characteristic bag form, be thus advantageous to sender and carry out message
The migration of platform or access multiple message desk, reduces sender and accesses the development and maintenance cost of message system.
Fig. 2 is the flow chart according to a kind of message method shown in an exemplary embodiment, as in figure 2 it is shown, this carries
Show that method is applied in server, comprise the following steps S21-S26:
In the step s 21, the source template that sender sends is received.
Source template is that sender is pre-configured with, and such as, source template is: " [telephone recharge]
{ { Name.DATA.string (10) } }, you are good!{ { Amount.DATA.number}} unit telephone recharge the most successfully arrives account.Please wait
Operator SMS to be checked and accepted confirms.”.
In step S22, generate regular expression for the source template received.
In the disclosure one embodiment, the flow process generating regular expression for source template is as follows:
Such as, source template is: " [telephone recharge] { { Name.DATA.string (10) } }, you are good!
{ { Amount.DATA.number}} unit telephone recharge the most successfully arrives account.Please wait that checking and accepting operator SMS confirms.”.
It is that { { position of this parameter out, is put by the parameter extraction of Name.DATA.Type}} by form from source template
Put placeholder;Source template is:
Template=[telephone recharge] param1, you are good!Param2 unit telephone recharge the most successfully arrives account.Please wait and checking and accepting
Operator SMS confirms.
Param1={{Name.DATA.string (10) } }
Param2={{Amount.DATA.number}}
Then, type and the qualifications of parameter are extracted:
The type of { { Name.DATA.string (10) } } is character string (string), and qualifications is that length is less than
10;{ { type of Amount.DATA.number}} is numeral (number).
Type according to parameter and qualifications, be regular expression of equal value by Parameters Transformation;
Param1=[s S] { 1,10}
Param2=([+-]?\d+)(\.\d+)?
Finally, the parameter (param1, param2) having been converted into regular expression is backfilling in template
, and generate final and source template equivalence regular expression (template):
Template=^[telephone recharge] [s S] { 1,10}, you are good!([+-]?\d+)(\.\d+)?Unit's telephone recharge is
Success is to account.Please wait that checking and accepting operator SMS confirms.$
Optionally, described method can also include:
Receive the auditing result to source template;
When auditing result for examination & verification by time, for source template generate regular expression.
Auditing result can be to issue after source template is audited by manager.Because the cause message such as content violation
Template may be by examination & verification, then notice sends the sender of the message of source template.If examination & verification is passed through, it is also possible to notice sends
The sender of the message of source template audits successfully.
In step S23, the regular expression of source template is stored in source template storehouse.
In step s 24, receiving the message transmission request that sender sends, message sends request and includes message to be sent
Content and targeted customer.
In step s 25, content to be sent is mated with the regular expression in source template storehouse;Work as source template
When storehouse exists the regular expression with content matching to be sent, perform step S26;
As it appears from the above, regular expression be one for describing or mating a series of character meeting certain syntactic rule
The single character string of string.Regular expression relies on regular expression engine process and mate.By content to be sent and canonical
When expression formula is mated, first regular expression engine resolves regular expression, is configured to a state automata, from
Motivation defines a beginning state, a lot of intermediatenesses, a done state, and bar during the mutual phase transformation of each state
Part;It follows that by the incoming engine of character string to be matched, engine can therefrom read character one by one, the state of automat
Constantly can change along with the character read in;When character string to be matched reads complete, if automat is already at end
State, then the match is successful, and otherwise it fails to match.
In step S26, message content to be sent is sent to targeted customer.
Additionally, when source template storehouse does not exist the regular expression with content matching to be sent, disclosure embodiment
Information can also be sent to sender.To remind sender's message to be sent cannot mate with source template, not send.
The method that disclosure embodiment provides, receives the message content to be sent that sender sends, by message to be sent
Hold and mate with source template canonical, facilitate sender and carry out the migration of message desk or access multiple message desk, reduce
Sender of the message accesses the development and maintenance cost of message system.
Following for disclosure device embodiment, may be used for performing method of disclosure embodiment.
Fig. 3 is the block diagram according to a kind of suggestion device shown in an exemplary embodiment, and this device can pass through software, hard
Part or both be implemented in combination with become the some or all of of electronic equipment.This device is applied in server.Such as Fig. 3 institute
Showing, this device includes:
First receiver module 301, is configured to receive the message transmission request that sender sends, and described message sends request
Include message content to be sent and targeted customer;
Matching module 302, is configured to carry out described message content to be sent with the source template in source template storehouse
Coupling, stores the source template having sender to be pre-configured with in described source template storehouse;
First sending module 303, is configured as in source template storehouse what existence was mated with described message content to be sent
During source template, described message content to be sent is sent to described targeted customer.
The message dispensing device that disclosure embodiment provides, can apply to various message system, for example, it may be network
Message system, such as businessman are sent out public notice information to user by the message system of service number or instant messaging;Can also be short
Communication system, such as businessman are sent out public notice note to user.The message dispensing device that disclosure embodiment provides, by disappearing to be sent
Breath content carries out mating with source template and decides whether to send message.For sender, only need in advance by source template
It is sent in message system, during follow-up message to be sent, directly message to be sent (actual content the most to be sent) is sent out
Giving message system, message system carry out the coupling of source template and send message to be sent, sender need not consider difference
The different source template form of message system and supplemental characteristic bag form, be thus advantageous to sender and carry out message desk
Migration or access multiple message desk, reduce sender and access the development and maintenance cost of message system.
In another embodiment of the disclosure, as shown in Figure 4, described device also includes:
Second receiver module 304, is configured to receive the source template that sender sends;
Processing module 305, is configured to generate regular expression for described source template;
Memory module 306, is configured to be stored in described source template storehouse the regular expression of described source template;
Described matching module 302, is configured to: by described message content to be sent and the regular expressions in source template storehouse
Formula is mated.
In another embodiment of the disclosure, as it is shown in figure 5, described processing module 305 includes:
Extract submodule 3051, be configured to from described source template, extract the parameter with preset format;
First processes submodule 3052, is configured to the type according to described parameter and qualifications, generates described parameter
Regular expression;
Second processes submodule 3053, is configured to backfill into described message mould the regular expression generating described parameter
In plate, generate the regular expression of described source template.
In another embodiment of the disclosure, as shown in Figure 6, described device also includes:
3rd receiver module 307, after being configured to receive the source template that sender sends, receives described message mould
The auditing result of plate;
Described processing module 305, be configured as auditing result for examination & verification by time, for described source template generate canonical
Expression formula.
In another embodiment of the disclosure, as it is shown in fig. 7, described device also includes:
Second sending module 308, is configured as in source template storehouse not existing and mates with described message content to be sent
Source template time, send information to described sender.
The disclosure also provides for a kind of suggestion device, including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Receiving the message transmission request that sender sends, described message sends request and includes message content to be sent and mesh
Mark user;
Described message content to be sent is mated with the source template in source template storehouse, in described source template storehouse
Storage has the source template that sender is pre-configured with;
When source template storehouse exists the source template mated with described message content to be sent, to be sent disappear described
Breath content sends to described targeted customer.
About the device in above-described embodiment, wherein modules performs the concrete mode of operation in relevant the method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 8 is the block diagram according to a kind of device 800 for sending message shown in an exemplary embodiment.Such as, dress
Putting 800 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, medical treatment
Equipment, body-building equipment, personal digital assistant, unmanned plane etc..
With reference to Fig. 8, device 800 can include following one or more assembly: processes assembly 802, memorizer 804, power supply
Assembly 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of input/output (I/O), sensor cluster 814, and
Communications component 816.
Process assembly 802 and generally control the integrated operation of device 800, such as with display, call, data communication, phase
The operation that machine operation and record operation are associated.Process assembly 802 and can include that one or more processor 820 performs to refer to
Order, to complete all or part of step of above-mentioned method.Additionally, process assembly 802 can include one or more module, just
Mutual in process between assembly 802 and other assemblies.Such as, process assembly 802 and can include multi-media module, many to facilitate
Media component 808 and process between assembly 802 mutual.
Memorizer 804 is configured to store various types of data to support the operation at device 800.Showing of these data
Example includes any application program for operation on device 800 or the instruction of method, contact data, telephone book data, disappears
Breath, picture, video etc..Memorizer 804 can be by any kind of volatibility or non-volatile memory device or their group
Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable compile
Journey read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash
Device, disk or CD.
The various assemblies that power supply module 806 is device 800 provide electric power.Power supply module 806 can include power management system
System, one or more power supplys, and other generate, manage and distribute, with for device 800, the assembly that electric power is associated.
The screen of one output interface of offer that multimedia groupware 808 is included between device 800 and user.Real at some
Executing in example, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen can
To be implemented as touch screen, to receive the input signal from user.Touch panel include one or more touch sensor with
Gesture on sensing touch, slip and touch panel.Touch sensor can not only sense touch or the border of sliding action, and
And also detect and touch or persistent period that slide is relevant and pressure.In certain embodiments, multimedia groupware 808 includes
One front-facing camera and/or post-positioned pick-up head.When device 800 is in operator scheme, during such as obtaining mode or video mode, front
Put photographic head and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can
To be a fixing optical lens system or there is focal length and optical zoom ability.
Audio-frequency assembly 810 is configured to output and/or input audio signal.Such as, audio-frequency assembly 810 includes a Mike
Wind (MIC), when device 800 is in operator scheme, during such as call model, logging mode and speech recognition mode, mike is joined
It is set to receive external audio signal.The audio signal received can be further stored at memorizer 804 or via communication set
Part 816 sends.In certain embodiments, audio-frequency assembly 810 also includes a speaker, is used for exporting audio signal.
I/O interface 812 provides interface for processing between assembly 802 and peripheral interface module, above-mentioned peripheral interface module can
To be keyboard, put striking wheel, button etc..These buttons may include but be not limited to: home button, volume button, start button and lock
Set button.
Sensor cluster 814 includes one or more sensor, for providing the state of various aspects to comment for device 800
Estimate.Such as, what sensor cluster 814 can detect device 800 opens/closed mode, the relative localization of assembly, such as assembly
For display and the keypad of device 800, sensor cluster 814 can also detect device 800 or the position of 800 1 assemblies of device
Put change, the presence or absence that user contacts, device 800 orientation or acceleration/deceleration and the temperature of device 800 with device 800
Change.Sensor cluster 814 can include proximity transducer, is configured to when not having any physical contact near detection
The existence of object.Sensor cluster 814 can also include optical sensor, and such as CMOS or ccd image sensor, being used for should in imaging
Use middle use.In certain embodiments, this sensor cluster 814 can also include acceleration transducer, gyro sensor, magnetic
Sensor, pressure transducer or temperature sensor.
Communications component 816 is configured to facilitate the communication of wired or wireless mode between device 800 and other equipment.Device
800 can access wireless network based on communication standard, such as Wi-Fi, 2G or 3G, or combinations thereof.An exemplary reality
Executing in example, communications component 816 receives the broadcast singal from external broadcasting management system or the relevant letter of broadcast via broadcast channel
Breath.In one exemplary embodiment, communications component 816 also includes near-field communication (NFC) module, to promote junction service.Example
As, can be based on RF identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology,
Bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 800 can be by one or more application specific integrated circuits (ASIC), numeral letter
Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components realize, be used for performing said method.
In the exemplary embodiment, a kind of non-transitory computer-readable recording medium including instruction, example are additionally provided
As included the memorizer 804 of instruction, above-mentioned instruction can have been performed said method by the processor 820 of device 800.Such as,
Non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and light
Data storage device etc..
A kind of non-transitory computer-readable recording medium, when the instruction in storage medium is held by the processor of terminal unit
During row so that terminal unit is able to carry out a kind of message method, and method includes:
Receiving the message transmission request that sender sends, described message sends request and includes message content to be sent and mesh
Mark user;
Described message content to be sent is mated with the source template in source template storehouse, in described source template storehouse
Storage has the source template that sender is pre-configured with;
When source template storehouse exists the source template mated with described message content to be sent, to be sent disappear described
Breath content sends to described targeted customer.
Fig. 9 is the block diagram according to a kind of means for prompting 900 shown in an exemplary embodiment.Such as, device 900
May be provided in a network equipment.
With reference to Fig. 9, device 900 includes processing assembly 922, and it farther includes one or more processor, and by depositing
Memory resource representated by reservoir 932, can be by the instruction of the execution processing assembly 922, such as application program for storage.Deposit
In reservoir 932 storage application program can include one or more each corresponding to one group instruction module.This
Outward, process assembly 922 to be configured to perform instruction, to perform above-mentioned message method.
Device 900 can also include that a power supply module 926 is configured to perform the power management of device 900, and one has
Line or radio network interface 950 are configured to be connected to device 900 network, and input and output (I/O) interface 958.Dress
Put 1900 and can operate based on the operating system being stored in memorizer 932, such as Windows ServerTM, Mac OS XTM,
UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art, after considering description and putting into practice disclosure disclosed herein, will readily occur to its of the disclosure
Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modification, purposes or
Person's adaptations is followed the general principle of the disclosure and includes the undocumented common knowledge in the art of the disclosure
Or conventional techniques means.Description and embodiments is considered only as exemplary, and the true scope of the disclosure and spirit are by following
Claim is pointed out.
It should be appreciated that the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and
And various modifications and changes can carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.
Claims (11)
1. a message method, it is characterised in that described method includes:
Receiving the message transmission request that sender sends, described message sends request and includes that message content to be sent and target are used
Family;
Described message content to be sent is mated with the source template in source template storehouse, described source template storehouse stores
There is the source template that described sender is pre-configured with;
When source template storehouse exists the source template mated with described message content to be sent, by described message to be sent
Hold and send to described targeted customer.
Method the most according to claim 1, it is characterised in that described method also includes:
Receive the source template that sender sends;
Regular expression is generated for described source template;
The regular expression of described source template is stored in described source template storehouse;
Described described message content to be sent is mated with the source template in source template storehouse, including:
Described message content to be sent is mated with the regular expression in source template storehouse.
Method the most according to claim 2, it is characterised in that described for described source template generation regular expression, bag
Include:
The parameter with preset format is extracted from described source template;
Type according to described parameter and qualifications, generate the regular expression of described parameter;
The regular expression of described parameter is backfilled in described source template, generates the regular expression of described source template.
Method the most according to claim 2, it is characterised in that after the source template that described reception sender sends, institute
Method of stating also includes:
Receive the auditing result to described source template;
Described for described source template generate regular expression, including:
When auditing result for examination & verification by time, for described source template generate regular expression.
Method the most according to claim 1, it is characterised in that described method also includes:
When source template storehouse does not exist the source template mated with described message content to be sent, send to described sender
Information.
6. a message dispensing device, it is characterised in that described device includes:
First receiver module, is configured to receive the message transmission request that sender sends, and described message sends request and includes
Message content to be sent and targeted customer;
Matching module, is configured to mate described message content to be sent with the source template in source template storehouse, institute
State the source template that in source template storehouse, storage has sender to be pre-configured with;
First sending module, is configured as in source template storehouse there is the source template mated with described message content to be sent
Time, described message content to be sent is sent to described targeted customer.
Device the most according to claim 6, it is characterised in that described device also includes:
Second receiver module, is configured to receive the source template that sender sends;
Processing module, is configured to generate regular expression for described source template;
Memory module, is configured to be stored in described source template storehouse the regular expression of described source template;
Described matching module, is configured to: carried out with the regular expression in source template storehouse by described message content to be sent
Coupling.
Device the most according to claim 7, it is characterised in that described processing module includes:
Extract submodule, be configured to from described source template, extract the parameter with preset format;
First processes submodule, is configured to the type according to described parameter and qualifications, generates the canonical table of described parameter
Reach formula;
Second processes submodule, is configured to backfill in described source template by the regular expression generating described parameter, raw
Become the regular expression of described source template.
Device the most according to claim 7, it is characterised in that described device also includes:
Second receiver module, after being configured to receive the source template that sender sends, receives and examines described source template
Core result;
Described processing module, be configured as auditing result for examination & verification by time, for described source template generate regular expression.
Device the most according to claim 6, it is characterised in that described device also includes:
Second sending module, is configured as in source template storehouse there is not the message mould mated with described message content to be sent
During plate, send information to described sender.
11. 1 kinds of suggestion devices, it is characterised in that including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Receiving the message transmission request that sender sends, described message sends request and includes that message content to be sent and target are used
Family;
Described message content to be sent is mated with the source template in source template storehouse, described source template storehouse stores
There is the source template that sender is pre-configured with;
When source template storehouse exists the source template mated with described message content to be sent, by described message to be sent
Hold and send to described targeted customer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610665050.0A CN106302116A (en) | 2016-08-12 | 2016-08-12 | Message method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610665050.0A CN106302116A (en) | 2016-08-12 | 2016-08-12 | Message method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106302116A true CN106302116A (en) | 2017-01-04 |
Family
ID=57671767
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610665050.0A Pending CN106302116A (en) | 2016-08-12 | 2016-08-12 | Message method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106302116A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109246000A (en) * | 2018-10-29 | 2019-01-18 | 苏州友教习亦教育科技有限公司 | Message method and message transmission system |
CN109450772A (en) * | 2018-09-26 | 2019-03-08 | 中国平安人寿保险股份有限公司 | A kind of message method, server and computer readable storage medium |
CN111740895A (en) * | 2020-06-16 | 2020-10-02 | 东软睿驰汽车技术(沈阳)有限公司 | Message notification method and device |
WO2020238911A1 (en) * | 2019-05-30 | 2020-12-03 | 维沃移动通信有限公司 | Message sending method and terminal |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104125140A (en) * | 2013-04-28 | 2014-10-29 | 腾讯科技(深圳)有限公司 | Message sending method and message sending device |
CN104144394A (en) * | 2013-05-09 | 2014-11-12 | 中国移动通信集团公司 | Method and system for achieving industry application short message sending |
CN104702561A (en) * | 2013-12-04 | 2015-06-10 | 香港微频科技有限公司 | Method, device and system for information pushing or receiving |
CN105635464A (en) * | 2015-12-30 | 2016-06-01 | 厦门欣欣信息有限公司 | Message processing method and apparatus |
-
2016
- 2016-08-12 CN CN201610665050.0A patent/CN106302116A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104125140A (en) * | 2013-04-28 | 2014-10-29 | 腾讯科技(深圳)有限公司 | Message sending method and message sending device |
CN104144394A (en) * | 2013-05-09 | 2014-11-12 | 中国移动通信集团公司 | Method and system for achieving industry application short message sending |
CN104702561A (en) * | 2013-12-04 | 2015-06-10 | 香港微频科技有限公司 | Method, device and system for information pushing or receiving |
CN105635464A (en) * | 2015-12-30 | 2016-06-01 | 厦门欣欣信息有限公司 | Message processing method and apparatus |
Non-Patent Citations (1)
Title |
---|
王姝: "《PHP+MySQL Web开发技术教程》", 1 December 2014 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN109246000A (en) * | 2018-10-29 | 2019-01-18 | 苏州友教习亦教育科技有限公司 | Message method and message transmission system |
WO2020238911A1 (en) * | 2019-05-30 | 2020-12-03 | 维沃移动通信有限公司 | Message sending method and terminal |
CN111740895A (en) * | 2020-06-16 | 2020-10-02 | 东软睿驰汽车技术(沈阳)有限公司 | Message notification method and device |
CN111740895B (en) * | 2020-06-16 | 2022-07-01 | 东软睿驰汽车技术(沈阳)有限公司 | Message notification method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104318741B (en) | Bluetooth equipment control method and device | |
EP3151507A1 (en) | Methods and apparatuses for controlling device | |
CN104283876A (en) | Operation authorization method and device | |
CN105068467B (en) | Control the method and device of smart machine | |
EP2940977B1 (en) | Method and device for sending information in voice service | |
CN105162693A (en) | Message display method and device | |
CN104735670A (en) | Network access method and device | |
CN106209604A (en) | Add the method and device of good friend | |
CN106302116A (en) | Message method and device | |
CN105407070A (en) | Logging-in authorization method and device | |
CN104156204A (en) | Calendar event establishing method and device | |
CN104468581B (en) | The method and device of login application program | |
CN104038537A (en) | Contact list information management method and device and mobile terminal | |
CN105337839A (en) | Exchange group control method and device | |
CN107682538A (en) | The display methods and device of application interface | |
CN106453846A (en) | Display method and device for two-dimensional code business card | |
CN105491518A (en) | Method and device for social reminding based on wearable devices | |
CN107819740A (en) | Verification method, terminal device, audio amplifier and the server of terminal device | |
CN106034177A (en) | Information interaction method and apparatus thereof | |
CN107911380B (en) | Identity verification method and device | |
CN104281431B (en) | The method and device that audio plays | |
CN105430639A (en) | Information processing method and device | |
CN105303120A (en) | Short message reading method and apparatus | |
CN104615781A (en) | Method and device for inquiring executive information of intelligent equipment scene | |
CN107295099A (en) | PUSH message processing method, device 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170104 |