Embodiment
The embodiment of the present application provides a kind of message method fused automatically, apparatus and system.
In order that those skilled in the art more fully understand the technical scheme in the application, below in conjunction with the embodiment of the present application
Accompanying drawing, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is only
It is some embodiments of the present application, rather than whole embodiments.Based on the embodiment in the application, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, should all belong to the scope of the application protection.
Be as shown in Figure 1 the overall flow figure of message method in the prior art, in the prior art by statistical message quantity,
Judge whether send etc. step be all placed in message handling system handle, therefore cause message transmission it is less efficient the problem of.
Above-mentioned prior art specifically includes operation system and initiates to send message request to message handling system, in message handling system
The steps such as preposition verification, blacklist verification have been carried out to the transmission message request, wherein, blacklist verification refers to judge that this is sent out
Whether the message (channel+business information) sent belongs to blacklist, if in blacklist explanation sent by the channel this
Plant business information and already exceed threshold value, influence has been constituted for a user.When passed through blacklist verification after, it is necessary to
Judge whether the message of this secondary transmission constituted influence plus former transmission record on user, that is, described in figure to
Send the inquiry and the verification to the quantity of message number;If after the verification for having passed through above-mentioned transmitted message quantity, called
Gateway sends this message;It is last this is recorded in accounting system to send message, that is, the transmission in accounting system disappears
Jia 1 in breath record.
A kind of flow chart of the message method fused automatically of the embodiment of the present application is illustrated in figure 2, is described in the figure
Workflow in message handling system, compared with prior art message handling system in this application disappear without having sent
The steps such as inquiry, verification, the book keeping operation of breath, the judgement for whether sending message is realized simply by the mode of checking blacklist, is simplified
Message transmission flow, and the purpose that control message is sent is completed to the operation of blacklist by accounting system, reduce to
Family same type message is bothered, it is to avoid is sent a large amount of message to user by identical notice channel, is caused the notice channel of user
The problem of obstruction.
Step 201 is specifically included, receives and sends message request, and obtains the feature in the transmission message request.
Step 202, blacklist verification is carried out according to the feature.
Step 203, after being verified by the blacklist, corresponding message is sent, and this transmission message is generated according to the feature
Daily record.
As one embodiment of the application, the transmission message request at least includes:
Send the channel and business information of message;
Or, send targeted customer and the business information of message.
Wherein, sending the channel of message includes phone number, addresses of items of mail and client of targeted customer etc., wherein phone number
For sending short message to user, addresses of items of mail is used to send mail to user, and client is used to send logical to the client of user
Know message, such as to the successful message of Alipay client Sending Payments of user's intelligent terminal.
Described business information includes type of service, can also include the information such as service message content, wherein, service message content
For example, " your XXXX orders are paid successfully ", " success of transferring accounts of your XXX orders ", type of service for example can be
The message of successful payment (or failure), the message of successfully (or failure) of transferring accounts, notification message that commodity have been delivered etc.
Deng, these business information can determine corresponding form by channel, for example when channel be phone number when, business information can
Simple text information can be only included, when channel is addresses of items of mail, business information has potentially included the multimedias such as word, picture
Content.
As one embodiment of the application, when the request of the transmission message includes targeted customer and business information,
Also include among the feature in the transmission message request, obtain sending the channel of message according to targeted customer's information analysis.
Wherein, when not including channel in the request for sending message, then need to include targeted customer, because a user may
Channel with a variety of communications, potentially includes phone number, addresses of items of mail, client terminal etc., and which kind of specifically used channel is sent
Message can then judge selection according to a variety of conditions, if the most of register of such as user is all the client on mobile phone
Carry out, then notification message may be selected by be sent with ad hoc mode, if user browses commodity etc., operation is all by electricity
What brain was completed, then mobile phone short messages or selection lettergram mode can be selected to send message, it is only necessary to which which is indicated will use to
Family (targeted customer) sends message.
As one embodiment of the application, blacklist verification is carried out according to the feature and further comprised, is characterized in described in judgement
It is no to be present in the blacklist, if there is not sending the message then.
The feature at least includes channel and type of service, can also include the temporal information of transmitted message.
As one embodiment of the application, the daily record at least includes the channel and type of service for sending message.
Wherein, the temporal information for sending message can also be included in the daily record, the daily record can be stored in message processing apparatus
Locally.
Above-mentioned channel can be that alphabetic character string form is either digit strings form or can also mixed for letter and number
The character string constituted is closed, the business information can be the code of type of service, and the code of the type of service can be with identification service class
Type, specific text information is converted to when being sent to user.
Pass through the method for above-mentioned the embodiment of the present application, it is possible to achieve logic control is carried out to the message sent to user, if sent
Message in blacklist, then do not send the message, it is to avoid the message to user is harassed;And improve message handling system
Send the processing speed of message.
A kind of flow chart of the message method fused automatically of the embodiment of the present application is illustrated in figure 3, in the figure main description
The workflow of accounting system, this method is with realizing raising message by way of message handling system separating treatment daily record
The purpose of transmitting efficiency, the method in accounting system is combined function completion control with the method for above-mentioned embodiment illustrated in fig. 2 and disappeared
Breath is sent, to avoid passing through the information that identical channel is transmitted across how identical type of service to user.
Specifically include step 301, the daily record of synchronization message processing system.
Step 302, according to the accumulative quantity with same characteristic features message of the daily record.
Step 303, judge whether the quantity exceedes number threshold value, this feature is added into blacklist if exceeding.
As one embodiment of the application, the feature at least includes the channel and type of service for sending message.
As one embodiment of the application, also include the temporal information of transmitted message in the feature.
As one embodiment of the application, also include among judging whether the quantity exceedes predetermined threshold, judge one
Whether the interior quantity of fixing time exceedes number threshold value, and this feature is added into blacklist if exceeding.
Wherein, if the quantity for sending identical services message to user by identical channel within a period of time exceedes certain thresholding
Value, then it is assumed that such case, which belongs to, to be disturbed user, for example, being sent in 1 minute by way of mobile phone short message to user
Pay successful message and exceeded 10, then it is assumed that such case belongs to the interference to user, if passed through within 1 hour
The mode of mobile phone short message sends the successful message of payment to user and has exceeded 10, then it is assumed that such case is not belonging to user
Interference.
As one embodiment of the application, in addition to, the temporal information of feature in the blacklist is judged, if the time believes
Breath and the interval of current time exceed time gate limit value, then delete the feature from the blacklist.
Wherein, blacklist is in the renewal kept constantly, when certain the class business information sent by some channel within a period of time all
Do not occur, then illustrate not constituting interference for a user subsequently through such business information that this channel is sent, therefore should
When the continuation transmission of this information of permission, rather than the transmission of this information is shielded forever.
By the method for above-described embodiment, the daily record for sending message can be recorded by asynchronous mode, and at independently of message
Daily record is analyzed in accounting system beyond reason system and blacklist renewal, so message handling system send message when
Only need to judge blacklist, so improve the treatment effeciency that message handling system sends message.
A kind of structural representation of the message processing apparatus fused automatically of the embodiment of the present application is illustrated in figure 4, the device can profit
Implemented with logic circuit or special chip (such as FPGA) to set up, or by existing high-performance computer, it is therein
Some functional units can be realized individually with a hardware device, or several functional units are real by one or more hardware device
It is existing, specifically include:
Receiving unit 401, message request is sent for receiving, and obtains the feature in the transmission message request.
Verification unit 402, for carrying out blacklist verification according to the feature.
Processing unit 403, for after being verified by the blacklist, sending corresponding message, and generates this according to the feature
The secondary daily record for sending message.
As one embodiment of the application, the transmission message request at least includes:
Send the channel and business information of message;
Or, send targeted customer and the business information of message.
As one embodiment of the application, the receiving unit is additionally operable to be obtained sending message according to targeted customer's information analysis
Channel.
As one embodiment of the application, the verification unit is further used for judging whether the feature is present in the black name
Dan Zhong, if there is not sending the message then.
A kind of structural representation of the billing device fused automatically of the embodiment of the present application is illustrated in figure 5, the device can be utilized and patrolled
Collect circuit or special chip (such as FPGA) is implemented to set up, or by existing high-performance computer, some of which
Functional unit can be realized individually with a hardware device, or several functional units are realized by one or more hardware device,
Specifically include:
Synchronization unit 501, the daily record for synchronization message processing system.
Computing unit 502, for according to the accumulative quantity with same characteristic features message of the daily record.
Processing unit 503, for judging whether the quantity exceedes number threshold value, blacklist is added if exceeding by this feature.
As one embodiment of the application, the feature at least includes the channel and type of service for sending message.
As one embodiment of the application, also include the temporal information of transmitted message in the feature.
As one embodiment of the application, the processing unit is further used for judging whether the quantity surpasses within a certain period of time
Number threshold value is crossed, this feature is added into blacklist if exceeding.
As one embodiment of the application, in addition to updating block 504, the temporal information of feature in the blacklist is judged,
If the interval of the temporal information and current time exceedes time gate limit value, the feature is deleted from the blacklist.
A kind of structural representation of the message handling system fused automatically of the embodiment of the present application is illustrated in figure 6, is included in the figure
Above-mentioned Fig. 4 and message processing apparatus and billing device in embodiment illustrated in fig. 5, wherein:
Message processing apparatus 601, message request is sent for receiving, and obtains the feature in the transmission message request, according to
The feature carries out blacklist verification, after being verified by the blacklist, sends corresponding message, and generate according to the feature
This sends the daily record of message;
Billing device 602, for the daily record of synchronization message processing system, adds up with same characteristic features message according to the daily record
Quantity, judges whether the quantity exceedes number threshold value, and this feature is added into blacklist if exceeding.
System in the present embodiment can possess each functional unit or additional functional unit in said apparatus, herein not
Repeat again.
A kind of particular flow sheet of the message handling system fused automatically of the embodiment of the present application when handling message is illustrated in figure 7,
Message processing apparatus, billing device in the figure can realize by one or several computers, or by special chip
Formed, including daily record, blacklist etc. arbitrary position can be located at, for example daily record is with disappearing by database realizing
Processing unit is ceased in same computer, or to be separately located in different computers.
Step 701 is specifically included in detail in this figure, and operation system proposes to send message request to message processing apparatus.
In this step, operation system can be, for example, payment transaction system, be either fund transfer system or be cash collecting system,
Illustrate, at least wrapped in the transmission message request that payment transaction system is sent by taking payment transaction system as an example in the present embodiment
User profile and type of service are included, type of service therein indicates which class business is the message to be sent belong to, for example, paid and complete
Message, failed message, completion message of transferring accounts, failed message etc. of transferring accounts are paid, service message content can also be included, for example
ID+payment completion message+certain pen pays completion message, or including sending channel+type of service+service message content, example
As phone number and payment completion message pen pay completion message.
Described transmission message request can specifically include transmission user profile (channel)+type of service is encoded+and assemble message content
Some parameters needed.Message processing apparatus is encoded according to type of service, is obtained the type of service and is encoded corresponding source template,
The incoming content of parameter of user is replaced to some interchangeable variables in template, is assembled into the message for being ultimately sent to user
Hold.
Step 702, message processing apparatus carries out preposition verification to above-mentioned transmission message request.
Whether the form that main checking sends message request in this step meets the requirements, and whether the form of such as ID is correct,
Certain payment completion message form it is whether correct, ask send message type of service with the presence or absence of etc..
Step 703, the feature sent in message request is obtained.
In this step, if send message request in be ID and pay completion message (type of service), need from
ID is extracted in the request, channel is sent according to ID matching is suitable, for example, 2 kinds is saved in user profile
The channel that message is sent, respectively phone number and addresses of items of mail, the canal sent according to the preference of user or according to history message
Road, selects a kind of channel sent as message therein, and phone number is selected in this example to send the channel of message, the spy
At least include the channel (phone number) of message transmission in levying and pay completion message.
If what transmission message request included is that message sends channel and type of service, the transmission message request has been directly obtained
In feature, the channel (phone number) and payment completion message of message transmission are at least included in this feature.
Step 704, blacklist verification is carried out to the feature.
Include multiple features in the blacklist of this step, by the feature and blacklist in the transmission message request received
Multiple features are compared, and if identical then illustrates that the verification of blacklist fails, otherwise illustrate that blacklist verification passes through, such as
Fruit verification failure, then do not send payment completion message, verified in the present embodiment by blacklist, it is possible to completes transmission and pays
Completion message.
Step 705, message processing apparatus is called the communicators such as gateway to be sent with specified channel and pays completion message, and is generated
This sends the daily record of message.
In this step, the communication equipment such as gateway can be integrated with message processing apparatus, or device independently,
It is not limited thereto.
At least include this channel and type of service for sending message, wherein type of service in the daily record for generating this transmission message
For example, pay success message, success message of transferring accounts, failed message of transferring accounts, seller to have delivered message etc., implement other
The time (being judged whether to enter blacklist according to the time with later) for sending message, business can also be included in example, in daily record
Message content etc..
The daily record can be stored in message processing apparatus.
So far, the Message Processing flow in message processing apparatus terminates.
Step 706, the daily record of billing device synchronously in the message processing apparatus.
In this step, the daily record of message processing apparatus is read in billing device timing, and is locally carrying out book keeping operation processing, herein
Book keeping operation processing refers to the work such as analysis, calculating below.
Step 707, the daily record quantity with same characteristic features is calculated.
In this step, billing device is added up channel and type of service identical daily record according to a plurality of daily record of record,
Daily record form as shown in table 1 below for synchronization, have recorded the channel and type of service for sending message each time respectively in the form.
Table 1
First daily record is identical with type of service with the channel of Article 3 daily record in the form, the channel of Article 4 daily record and first
The channel of bar is identical, but type of service is different, and mobile phone is passed through by the way that the data (not showing in form) of the other rows of the form are accumulative
The payment success message that number short message mode is sent has 100 records.
Step 708, judge whether the quantity calculated is more than number threshold value.
In this step, if the quantity calculated is more than number threshold value, into step 709, the flow of book keeping operation is otherwise terminated.
In this example, default number threshold value is 99, according to foregoing number of computations 100, then illustrates to pass through mobile phone
The mode of number short message send payment success message it is excessive, interference may have been constituted for user.
Step 709, this feature is recorded in blacklist.
Features described above is phone number and pays success message, and this feature is added in blacklist list.Described blacklist can be with
It is stored in message processing apparatus or billing device.
A kind of particular flow sheet of the message handling system fused automatically of the embodiment of the present application when handling message is illustrated in figure 8,
The step 801 of the present embodiment is essentially identical to step 705 with step 701 in embodiment illustrated in fig. 7 to step 805, difference
It is in in step 805, when message processing apparatus generates the daily record that this sends message, except including channel in daily record
Outside type of service, in addition to send the temporal information of message.
Step 806, the daily record of billing device synchronously in the message processing apparatus.
Step 807, the daily record quantity in the range of the time with same characteristic features is calculated.
In this step, the day with same characteristic features is calculated according to temporal information and default time range that message is sent in daily record
Will quantity, for example, time range is 1 hour, calculating in 1 hour, there is the daily record quantity of same characteristic features to be 100.
Step 808, judge whether the quantity calculated is more than number threshold value.
In this step, if the quantity calculated has exceeded number threshold value, into step 809, the stream of book keeping operation is otherwise terminated
Journey.
Similar to Fig. 7 embodiment, number threshold value is 99, and being calculated in step 807 has phase in 1 obtained hour
Daily record quantity with feature is 100, and judged result has exceeded number threshold value, into step 809.
Step 809, this feature is recorded in blacklist.
In this step, the temporal information for creating this feature is also recorded during billing device recording feature, is entered in message processing apparatus
In the step of row blacklist is verified, message processing apparatus falls expired feature according to creation time information filtering, or passes through
Below step 810 carries out the renewal of blacklist.In this example, blacklist is located in message processing apparatus.
Step 810, billing device calculates the time span that feature is present in blacklist, if it exceeds time gate limit value, then should
Feature is deleted from blacklist.
Specifically, with the difference of the temporal information of feature in a predetermined computation of Period current time and blacklist, if it exceeds when
Between threshold value, then the feature is deleted from blacklist, otherwise continue retain blacklist in feature.If that is,
It is no for some time that certain business information is sent to user by some channel again, then the business information that this channel is sent is
Through not constituting the harassing and wrecking to user, then the business information that can recover this mode is sent.
By the renewal to blacklist, it can control to send the behavior of service message to user, in order to avoid user is interfered.
, can be with by separating the flow that Message Processing and blacklist update by the method and device in above-mentioned the embodiment of the present application
Greatly improve system and send the efficiency of service message, and control these service messages not cause harassing and wrecking to user.
For the improvement of a technology, can clearly to distinguish be improvement on hardware (for example, to diode, transistor, opening
Close etc. circuit structure improvement) or software on improvement (for the improvement of method flow).However, with the development of technology,
The improvement of current many method flows can be considered as directly improving for hardware circuit.Designer is nearly all by inciting somebody to action
Improved method flow is programmed into hardware circuit to obtain corresponding hardware circuit.Therefore, it cannot be said that a method flow
Improvement cannot be realized with hardware entities module.For example, PLD (Programmable Logic Device,
PLD) (such as field programmable gate array (Field Programmable Gate Array, FPGA)) is exactly such a collection
Into circuit, its logic function is determined by user to device programming.By designer is voluntarily programmed a digital display circuit " collection
Into " on a piece of PLD, without asking chip maker to design and make special IC chip 2.Moreover,
Nowadays, substitution manually makes IC chip, and this programming is also used instead " logic compiler (logic compiler) " mostly
Software realizes that software compiler used is similar when it writes with program development, and source code before compiling is also
Write with specific programming language, this is referred to as hardware description language (Hardware Description Language, HDL),
And HDL is also not only a kind of, but there are many kinds, such as ABEL (Advanced Boolean Expression Language),
AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University
Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、
MyHDL, PALASM, RHDL (Ruby Hardware Description Language) etc., are most generally used at present
It is VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog2.
Those skilled in the art, which also will be apparent to the skilled artisan that, to be only needed to above-mentioned several hardware description languages slightly programming in logic and compile method flow
Journey is into integrated circuit, it is possible to be readily available the hardware circuit for realizing the logical method flow.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processor and
Storage can by the computer readable program code (such as software or firmware) of (micro-) computing device computer-readable medium,
Gate, switch, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), FPGA
The form of controller and embedded microcontroller, the example of controller includes but is not limited to following microcontroller:ARC 625D、Atmel
AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, Memory Controller can also quilt
It is embodied as a part for the control logic of memory.
, completely can be with it is also known in the art that in addition to realizing controller in pure computer readable program code mode
Cause controller with gate, switch, application specific integrated circuit, FPGA control by the way that method and step is carried out into programming in logic
Device processed realizes identical function with the form of embedded microcontroller etc..Therefore this controller is considered a kind of Hardware Subdivision
Part, and the structure in hardware component can also be considered as to the device for realizing various functions included in it.Or even, can
Not only can will be the software module of implementation method but also can be the knot in hardware component for realizing that the device of various functions is considered as
Structure.
System, device, module or unit that above-described embodiment is illustrated, can specifically be realized by computer chip or entity, or
Realized by the product with certain function.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, the application is being implemented
When the function of each unit can be realized in same or multiple softwares and/or hardware.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can be by soft
Part adds the mode of required general hardware platform to realize.Understood based on such, the technical scheme of the application is substantially in other words
The part contributed to prior art can be embodied in the form of software product, and the computer software product can be stored in
In storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are to cause a computer equipment (can be with
It is personal computer, server, or network equipment etc.) perform some part institutes of each embodiment of the application or embodiment
The method stated.
Each embodiment in this specification is described by the way of progressive, and identical similar part is mutual between each embodiment
Referring to what each embodiment was stressed is the difference with other embodiment.Especially for system embodiment
Speech, because it is substantially similar to embodiment of the method, so description is fairly simple, referring to the part of embodiment of the method in place of correlation
Explanation.
The application can be used in numerous general or special purpose computing system environments or configuration.For example:Personal computer, server
Computer, handheld device or portable set, laptop device, multicomputer system, the system based on microprocessor, top set
Box, programmable consumer-elcetronics devices, network PC, minicom, mainframe computer including any of the above system or equipment
DCE etc..
The application can be described in the general context of computer executable instructions, such as program module.
Usually, program module include performing particular task or realize the routine of particular abstract data type, program, object, component,
Data structure etc..The application can also be put into practice in a distributed computing environment, in these DCEs, by passing through
Communication network and connected remote processing devices perform task.In a distributed computing environment, program module can be located at bag
Include in the local and remote computer-readable storage medium including storage device.
Although depicting the application by embodiment, it will be appreciated by the skilled addressee that the application have it is many deformation and change and
Spirit herein is not departed from, it is desirable to which appended claim includes these deformations and changed without departing from spirit herein.