CN110381209A - Processing method, device and the storage medium of pasting boards message - Google Patents
Processing method, device and the storage medium of pasting boards message Download PDFInfo
- Publication number
- CN110381209A CN110381209A CN201910660996.1A CN201910660996A CN110381209A CN 110381209 A CN110381209 A CN 110381209A CN 201910660996 A CN201910660996 A CN 201910660996A CN 110381209 A CN110381209 A CN 110381209A
- Authority
- CN
- China
- Prior art keywords
- message content
- message
- application program
- effective time
- pasting boards
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/543—User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72436—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. SMS or e-mail
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/12—Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
Abstract
The present invention provides processing method, device and the storage medium of a kind of pasting boards message, this method comprises: reading the message content in System operation when monitoring that the first application program is in active state;The message content is parsed, the effective time in the message content is obtained;According to current time and the effective time, the message content in the pasting boards is distributed to corresponding target service.Processing method, device and the storage medium of pasting boards message provided by the invention, it is ensured that the message content for being distributed to target service has controllable timeliness.
Description
Technical field
The present invention relates to fields of communication technology more particularly to a kind of processing method of pasting boards message, device and storage to be situated between
Matter.
Background technique
With popularizing for mobile device, the application in mobile device is also more and more, and the data between each application program are handed over
The demand of mutual scene is also more and more, and therefore, requirement of the user to the message transmission application between application program is higher and higher.
In the prior art, transmission control protocol (Transmission Control Protocol, TCP) is generallyd use
Mode carries out the communication between application program, but this kind of mode, which needs application program to carry out internal processes code, realizes that interface is complete
At communication, this kind of mode is complex and feasibility is not high.Therefore, it is based on TCP communication mode, it is a kind of more convenient to have also been proposed
And reliable inter-application communication scheme, for example, " the naughty password " of Taobao.It (is washed in a pan by one section of particular commodity description information of duplication
Password), the particular commodity page is jumped directly to after then opening Taobao, so that user checks.
It is easy to use although " naughty password " operation of Taobao is fairly simple, " naughty password " one side, when any
Between can be used, do not have timeliness;On the other hand, business function is single, and scalability is poor.
Summary of the invention
To solve problems of the prior art, the present invention provide the processing method of pasting boards message a kind of, device and
Storage medium, it is ensured that the message content for being distributed to target service has controllable timeliness.
In a first aspect, the embodiment of the present invention provides a kind of processing method of pasting boards message, this method comprises:
When monitoring that the first application program is in active state, the message content in System operation is read;
The message content is parsed, the effective time in the message content is obtained;
According to current time and the effective time, the message content in the pasting boards is distributed to corresponding target industry
Business.
Optionally, described according to current time and the effective time, the message content in the pasting boards is distributed to
Corresponding target service, comprising:
According to the effective time, judge the current time whether within the effective time;
If the current time within the effective time, the message content in the pasting boards is distributed to corresponding
Target service.
Optionally, first application program is in active state, comprising:
Start state when first application program;Alternatively,
State when first application program switches to foreground process from background process.
Optionally, the method also includes:
Message content is generated by the second application program;
The message content is handled by second application program, the message content that obtains that treated;
Treated by described in, and the System operation is written in message content.
Optionally, second application program that passes through handles the message content, in the message that obtains that treated
Hold, comprising:
According to preset format, processing is packaged to the message content by second application program, is had
The encapsulation messages of preset format;
The encapsulation messages with preset format are encrypted by second application program, are obtained described
Treated message content.
Optionally, described that the message content is parsed, obtain the effective time in the message content, comprising:
The message content is decrypted by first application program, the message after obtaining decryption processing;
The effective time is extracted from the message after the decryption processing.
Optionally, the effective time is extracted in the message from after the decryption processing, comprising:
It whether include preset field in message after judging the decryption processing;
If including preset field in the message after the decryption processing, institute is extracted from the message after the decryption processing
State effective time.
Optionally, described when monitoring that the first application program is in active state, read the message in System operation
Content, comprising:
When monitoring that first application program is in active state, judging, which whether there is in the System operation, disappears
Cease content;
If there are message contents in the System operation, the message content in the System operation is read.
Second aspect, the embodiment of the present invention provide a kind of processing unit of pasting boards message, comprising:
Monitoring modular, for monitoring whether the first application program is in active state;
Read module, for reading when the monitoring module monitors are in active state to first application program
Message content in System operation;
Parsing module obtains the effective time in the message content for parsing to the message content;
Distribution module, for according to current time and the effective time, the message content in the pasting boards to be distributed
To corresponding target service.
Optionally, the distribution module, is specifically used for:
According to the effective time, judge the current time whether within the effective time;
If the current time within the effective time, the message content in the pasting boards is distributed to corresponding
Target service.
Optionally, first application program is in active state, comprising:
Start state when first application program;Alternatively,
State when first application program switches to foreground process from background process.
Optionally, described device further include:
Generation module, for generating message content by the second application program;
Processing module obtains that treated for handling by second application program the message content
Message content;
Writing module, for treated by described in, the System operation is written in message content.
Optionally, the processing module, is specifically used for:
According to preset format, processing is packaged to the message content by second application program, is had
The encapsulation messages of preset format;
The encapsulation messages with preset format are encrypted by second application program, are obtained described
Treated message content.
Optionally, the parsing module, is specifically used for:
The message content is decrypted by first application program, the message after obtaining decryption processing;
The effective time is extracted from the message after the decryption processing.
Optionally, the parsing module, is specifically used for:
It whether include preset field in message after judging the decryption processing;
If including preset field in the message after the decryption processing, institute is extracted from the message after the decryption processing
State effective time.
Optionally, the read module, is specifically used for:
When monitoring that first application program is in active state, judging, which whether there is in the System operation, disappears
Cease content;
If there are message contents in the System operation, the message content in the System operation is read.
The third aspect, the embodiment of the present invention provide a kind of terminal device, comprising:
Processor;
Memory, for storing the computer program of the processor;And
Wherein, the processor is configured to executing stickup described in first aspect by executing the computer program
The processing method of plate message.
Fourth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, the computer-readable storage medium
Matter is stored with computer program, and the computer program makes the place of pasting boards message described in terminal device execution first aspect
Reason method.
Processing method, device and the storage medium of pasting boards message provided by the invention, this method is by monitoring
When one application program is in active state, the message content in System operation is read;And then the message content is solved
Analysis, obtains the effective time in the message content;It, will be in the pasting boards and according to current time and the effective time
Message content is distributed to corresponding target service.Due to passing through the first application program in the message read from System operation
Appearance is parsed, and analytically after message content in obtain effective time, and according to the effective time of current time and acquisition
Message content is judged, and then the message content within effective time judged is distributed to target service, Ke Yibao
The message content that card is distributed to target service has controllable timeliness.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art
To obtain other drawings based on these drawings.
Fig. 1 is a kind of present invention process signal of the processing method of pasting boards message shown according to an exemplary embodiment
Figure;
Fig. 2 is that a kind of process of the processing method for pasting boards message that the present invention is shown according to another exemplary embodiment is shown
It is intended to;
Fig. 3 is that a kind of process of the processing method for pasting boards message that the present invention is shown according to a further exemplary embodiment is shown
It is intended to;
Fig. 4 is that a kind of process of the processing method of pasting boards message of the present invention shown according to another exemplary embodiment is shown
It is intended to;
Fig. 5 is a kind of present invention block diagram of the processing unit of pasting boards message shown according to an exemplary embodiment;
Fig. 6 is a kind of block diagram of the processing unit for pasting boards message that the present invention is shown according to another exemplary embodiment;
Fig. 7 is a kind of present invention terminal device structural schematic diagram shown according to an exemplary embodiment.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first ", " second ", " third " and " in above-mentioned attached drawing
The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage
The data that solution uses in this way are interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to
Here the sequence other than those of diagram or description is implemented.In addition, term " includes " and " having " and their any deformation,
Be intended to cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, product or setting
It is standby those of to be not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for these mistakes
The intrinsic other step or units of journey, method, product or equipment.
The processing method of pasting boards message provided by the invention can be applied to disappearing between application program in terminal device
It is " naughty password " in the prior art in the scene for ceasing transmitting, it is easy to use although operation is fairly simple, " naughty password " one
Aspect can be used at any time, not have timeliness, on the other hand, not be suitable for the business scenario of having time limitation
In, such as " red packet is got in finite time " business.
In view of above-mentioned technical problem, the invention proposes a kind of processing methods of pasting boards message, by monitoring
When first application program is in active state, the message content in System operation is read;And then message content is parsed,
Obtain the effective time in message content;And according to current time and effective time, the message content in pasting boards is distributed to
Corresponding target service.Due to being parsed by the first application program to the message content read from System operation, and
The effective time of message content is obtained in message content after analytically, and is offseted according to the effective time of current time and acquisition
Breath content is judged, and then the message content within effective time judged is distributed to target service, it is ensured that point
The message content for issuing target service has controllable timeliness.
Technical solution of the present invention is described in detail with specific embodiment below.These specific implementations below
Example can be combined with each other, and the same or similar concept or process may be repeated no more in some embodiments.
Fig. 1 is a kind of present invention process signal of the processing method of pasting boards message shown according to an exemplary embodiment
Figure.This method can be executed by the device for arbitrarily executing the processing method of pasting boards message, the device can by software and/
Or hardware realization.In the present embodiment, which be can integrate in terminal device.As shown in Figure 1, provided in an embodiment of the present invention
The processing method of pasting boards message includes the following steps:
Step 101: when monitoring that the first application program is in active state, reading in the message in System operation
Hold.
Terminal device includes but is not limited to mobile station (MS, Mobile Station), mobile terminal (Mobile
Terminal), mobile phone (Mobile Telephone), mobile phone (handset) and portable equipment (portable
Equipment) etc., which can be through wireless access network (RAN, Radio Access Network) and one or more
Core net is communicated, for example, terminal device can be mobile phone (or being " honeycomb " phone), have wireless communication function
Computer etc., terminal device can also be portable, pocket, hand-held, built-in computer or vehicle-mounted mobile dress
It sets or equipment.
In the present embodiment, the first application program can be any application program on terminal device, supervise in terminal device
When measuring the first application program and being in active state, terminal device will be read on System operation by the first application program
Data.Wherein, the first application program be in active state can be with are as follows: state when the first application program of starting;Alternatively, first answers
State when switching to foreground process from background process with program.That is, the first application program starting or from backstage into
When being switched to foreground process in journey, the first application program state in which is active state.
In the present embodiment, System operation is one piece of region of memory of system administration in the operating system of terminal device,
For keeping in the data exchanged between application program, that is, when between application program there are when the exchange of data, can be by one
Application program needs the data exchanged to keep in System operation, and then another application program is by reading on System operation
The data exchange between application program can be thus achieved in data in this way.
In a kind of optional mode, when monitoring that the first application program is in active state, need first to judge system
It whether there is message content in pasting boards.If reading the message in System operation there are message content in System operation
Content.
In this step, terminal device is by first monitoring whether the first application program is in active state, in the first application
When program is in active state, then whether there is message content to judge on System operation, there is message content if it exists, it will
The message content can be read out.It so on the one hand can be to avoid the message content to System operation of terminal device blindness
It is read out, on the other hand, by first judging whether there is message content on System operation, and then passes through the first application program again
Message content is read out, the success rate that terminal device reads message content on System operation is improved.
In a step 101, after reading message content by the first application program, it will execute step 102 namely right
Message content is parsed, and the effective time in message content is obtained.
Step 102: message content being parsed, the effective time in message content is obtained.
In this step, the message content of reading can be presented in the form of ciphertext, for example, iuJJoE2rExbVJv4a8
B1nEwFQeo2itrSIPfS9VyH20hlt3y1VBxCOE/m+VBbvXu4f/STOfbQRF WBDSiFPRalBSg==, when
So, the message content before parsing can also exist in the form of other.Terminal device is by the first application program to reading
Message content is parsed, and the message content after parsing can wrap the information containing effective time, for example, by ciphertext iuJJoE2
rExbVJv4a8B1nEwFQeo2itrSIPfS9VyH20hlt3y1VBxCOE/m+VBbvXu4f/
Obtained after STOfbQRFWBDSiFPRalBSg==parsing " action ": " cc: //join-room/520/1314 ", "
time":"2019-05-01 19:00"}.Specific analytic method can also be selected according to the message content form before parsing,
In embodiments of the present invention, any restriction is not done to the analytic method of message content.
It wherein, include the information of 2019-05-01 19:00 in the message content after parsing, which is effective time,
Namely 2019-05-01 19:00 is the final time limit of the corresponding business of the message content.
In this step, by being parsed to message content, and analytically after message content in when extracting effective
Between, to judge the message content whether also in providing foundation in effective time.
Step 103: according to current time and effective time, the message content in pasting boards being distributed to corresponding target industry
Business.
In this step, according to current time, by being compared with the effective time in message content, when judging current
Between whether within effective time, if current time, within effective time, terminal device will be disappeared this by the first application program
Content distribution is ceased to corresponding target service.For example, it is assumed that current time is the 18:00 of on May 01st, 2019, in message content
Effective time be the 19:00 of on May 01st, 2019, therefore, current time and the effective time being less than in the message content,
I.e. the message content is effective, at this point, the message content can be distributed to corresponding target service.
Optionally, according to current time and the effective time, the message content in the pasting boards is distributed to correspondence
Target service, comprising:, will according to the effective time in current time, message content and the behavior protocols in message content
Message content in the pasting boards is distributed to corresponding target service.When according to effective in current time and message content
Between, it can be determined that whether the message content is effective, if effectively, it can be further according to the behavior protocols in message content, it will
Message content in the pasting boards is distributed to the corresponding target service of behavior protocols.Target service can be the first application program
In any business (for example, into direct broadcasting room, getting the virtual behaviors such as reward) in multiple business, can be according in message content
Other information in addition to effective time, for example it is used to determine the behavior protocols of target service with for example, may be used also in message content
To include the behavior protocols of message, the message content in pasting boards is distributed to corresponding target service, comprising: according to pasting boards
In message content in behavior protocols, determine the corresponding target service of message content.In this way, first can be made to apply basis
Message content in pasting boards determines corresponding different target service in the first application, improves the expansion of pasting boards message transmission
Malleability.
It is exemplary, if the message content parsed be " action ": " cc: //join-room/520/1314 ", "
Time ": " 2019-05-01 19:00 " }, then the message content analytically gone out can know that the effective time of the message content is
The 19:00 of on May 01st, 2019, behavior protocols join-room/520/1314 sentence according to the effective time of the message content
Whether disconnected current time is within effective time, if, according to the information of behavior protocols, terminal device will lead within effective time
It crosses the first application program and the message content is distributed to current operation (join-room enters room), if behavior agreement is neck
Gift bag business is taken, then terminal device can enter to join- by the first application program according to the behavior protocols of message content
Room, and then 1314 channels for jumping to rooms 520 get gift bag (target service), and the transmitting of message content is completed with this.
The processing method of pasting boards message provided in an embodiment of the present invention, by monitoring the first application program in work
When jump state, the message content in System operation is read;And then message content is parsed, obtain having in message content
Imitate the time;And according to current time and effective time, the message content in pasting boards is distributed to corresponding target service.Due to
The message content read from System operation is parsed by the first application program, and analytically after message content in
Effective time is obtained, and message content is judged according to the effective time of current time and acquisition, and then will judged
Message content within effective time is distributed to target service, it is ensured that the message content for being distributed to target service has controllably
Timeliness.
Further, it before reading the message content in System operation by the first application program, needs first to generate
How the message content will generate message content to the second application program below, and how to carry out to the message content of generation
Processing, and the embodiment of writing system pasting boards is described in detail.
Fig. 2 is that a kind of process of the processing method for pasting boards message that the present invention is shown according to a further exemplary embodiment is shown
It is intended to, on the basis of the present embodiment embodiment shown in Fig. 1, to before reading the message content in System operation, how
The process for generating message content by the second application program and how being handled message content, is described in detail.Such as Fig. 2
Shown, the processing method of pasting boards message provided in an embodiment of the present invention includes the following steps:
Step 201: message content is generated by the second application program.
In this step, the second application program is that the another application program of the first application program is different from terminal device,
Second application program can be any application program except the first application program, and therefore, the embodiment of the present invention applies journey to second
Sequence does not do any restriction.
In the present embodiment, it needs for message content to be sent to the first application program with the second application program in terminal device
In target service for, the transmitting of message content is described in detail in conjunction with Fig. 3.
It is exemplary, as shown in figure 3, before including: specific in the message content that terminal device is generated by the second application program
Sew behavior+effective time, since the message content needs to be sent to the target service of the second application program, generation disappears
Breath content in need include message behavior protocols, behavior agreement can be the ID of target service, also, in order to enable disappear
Breath has controllable timeliness, it is also necessary to the information of effective time is added in message content.
For example, the target service in the second application program is to get gift bag business, in the case where gift bag scene is got in popularization, pass through
First application program (can be browser), webpage need to generate the behavior protocols for jumping direct broadcasting room, in specific message
Appearance can be cc: //join-room/520/1314, wherein cc: // it is specific intrinsic prefix, join-room/520/1314 is
Behavior protocols indicate 1314 channels and an effective time stamp 2019-05-01 19:00 that jump rooms 520, the timestamp table
Show effective deadline that the gift bag is got.
It is noted that in the present embodiment, in the message of generation can also include the behavior protocols of other business, when
It can also include except behavior protocols and the other information in addition to effective time, the embodiment of the present invention in the message so generated at one
In any restrictions are not done to the information type in the message content of generation, with this may be implemented message content transmitting have industry
Business scalability.
In this step, the message content generated by the second application program, and include the message in the message content
Behavior protocols and effective time, that is, to need to be sent to the target service in the first application program message content limit,
So that message content has timeliness, so as to realize the message content transmitted between the first application program and the second application program
With timeliness.
Step 202: message content being handled by the second application program, the message content that obtains that treated.
In this step, after generating message content by the second application program, in order to guarantee the secrecy of message content
Property and safety, need to handle the message content of generation, the message content that obtains that treated.
Optionally, according to preset format, processing is packaged to message content by the second application program, obtains having pre-
If the encapsulation messages of format;The encapsulation messages with preset format are encrypted by the second application program, are obtained everywhere
Message content after reason.
Specifically, processing is packaged according to preset format, so that the message content after encapsulation process has preset format
Encapsulation messages, as shown in figure 3, terminal device generates message content by the second application program: when particular prefix behavior+effective
Between.It is exemplary, after above-mentioned example, the message content of generation is packaged processing according to json format, is obtained after encapsulation process
Encapsulation messages with json format (particular prefix behavior+effective time).To further have by the second application program
The encapsulation messages of preset format are encrypted, for example, according to preset Encryption Algorithm, by the cc of generation: //join-
Message after room/520/1314 encapsulation process is encrypted to obtain iuJJoE2rExbVJv4a8B1nEwFQeo2itrSIPfS
9VyH20hlt3y1VBxCOE/m+VBbvXu4f/STOfbQRFWBDSiFPRalBSg==, the encrypted message content by
It is encrypted in by preset Encryption Algorithm, therefore, encrypted message content is presented in the form of ciphertext, and third is answered
It will be unable to read with program or other users, ensure that the confidentiality of message content with this.
Step 203: will treated message content writing system pasting boards.
In this step, viscous to system to being written after encryption in step 203 with the message content that ciphertext form is presented
In pasting board, wherein it can be to be written by the second application program for the mode of write-in, it can also be multiple manually by guidance user
It makes in the pasting boards of system, specific writing mode is determined according to the property of the second application program, and therefore, the present invention is real
Example is applied to the mode of write-in with no restrictions.
Step 204: message content being parsed, the effective time in message content is obtained.
Step 205: according to current time and effective time, the message content in pasting boards being distributed to corresponding target industry
Business.
Step 204- step 205 is similar with step 102- step 103, and details are not described herein again.
In the present embodiment, the message content generated by the second application program, and include that this disappears in the message content
The behavior protocols of breath and effective time, that is, limiting the message content for needing to be sent to the target service in the first application program
It is fixed, so that message content has timeliness, so as to realize the message transmitted between the first application program and the second application program
Content has timeliness.
Fig. 4 is that a kind of process of the processing method for pasting boards message that the present invention is shown according to another exemplary embodiment is shown
It is intended to.On the basis of Fig. 1, how message content is parsed, obtains the effective time in message content, and according to current
Message content in pasting boards is distributed to the process of corresponding target service, described in detail, such as by time and effective time
Shown in Fig. 4, the processing method of pasting boards message provided in an embodiment of the present invention includes the following steps:
Step 401: when monitoring that the first application program is in active state, reading in the message in System operation
Hold.
Step 401 is similar with step 101, and details are not described herein again.
Step 402: message content being decrypted by the first application program, the message after obtaining decryption processing.
In this step, message content is usually to encrypt in the System operation read, at this point, to reading
Message content is parsed, then needs that first the message content of reading is decrypted, exemplary, is calculated according to preset encryption
The corresponding decipherment algorithm of method, by the message content iuJJoE2rExbVJv4a8B1nEwFQeo2itrSIPfS9VyH20 of reading
Hlt3y1VBxCOE/m+VBbvXu4f/STOfbQRFWBDSiFPRalBSg==is decrypted, message after being decrypted "
action":"cc://join-room/520/1314","time":"2019-05-01 19:00"}。
Step 403: extracting effective time from the message after decryption processing.
In a kind of optional mode, by whether first judging in the message after decryption processing comprising preset field;If solution
Include preset field in close treated message, then extracts effective time from the message after decryption processing.Wherein, preset field
It can be used as the privately owned field form of the first application program and the setting of the second application program, it is assumed that preset field is above-mentioned example
In " " action ": " cc: // ", namely in the message content that the first application program is read include the preset field, then table
Show that the message content is the message content for the target service that the second application program needs to be sent in the first application program.In one kind
In optional mode, shown in Fig. 3, after decrypting to message content, whether the message content after needing first to judge decryption meets
Particular prefix behavior+effective time, further carries out deblocking processing to the message content after decryption if meeting, and judges to solve
Whether include preset field in the message content being honored as a queen, and then extracts effective time.
It is that the second application program needs to be sent to mesh in the first application program in the message content for determining the reading
After the message content of mark business, extracted effective time from treated message content by the first application program, namely "
The effective time of time ": " 2019-05-01 19:00 ", the message are 2019-05-01 19:00, that is, the message exists
It is invalid after 2019-05-01 19:00.
Step 404: according to effective time, judging current time whether within effective time.
It is exemplary, it is assumed that current time is the 18:00 of on May 01st, 2019, and the effective time in message content is 2019
The 19:00 of May 01, therefore, current time and the effective time being less than in the message content, the i.e. message content are effective
's.If judging, current time not within effective time, will not execute step 405.
Step 405: if current time is distributed to corresponding target within effective time, by the message content in pasting boards
Business.
Current event is being judged within effective time, then message in pasting boards can be sent to the second application by terminal device
Target service in program.
It is exemplary, after determining within effective time, understand according to the behavior protocols in the message content, for example, "
Action ": " cc: //join-room/520/1314 ", terminal device will be divided the message content by the first application program
It is sent to join-room, if behavior agreement is to get gift bag business, then terminal device is logical according to the behavior protocols of message content
It crosses the first application program and enters to join-room, and then 1314 channels for jumping to rooms 520 get gift bag, complete to disappear with this
Cease the transmitting of content.
In the present embodiment, by continuing to parse to message content, first determine whether the message content is second
Application program will send the message content of the target service in the first application program, so determine the message content it is effective when
Between, it is finally distributed to the message content, in this way while guaranteeing that message content has timeliness, may filter out
It is not destined to the message content of the first application program, the message content to have exceeded the time limit can also be filtered out.
Fig. 5 is a kind of present invention block diagram of the processing unit of pasting boards message shown according to an exemplary embodiment, such as
Shown in Fig. 5, which includes: monitoring modular 11, read module 12, parsing module 13 and distribution module 14, in which:
Monitoring modular 11, for monitoring whether the first application program is in active state;
Read module 12, for reading system when monitoring modular 11 monitors that the first application program is in active state
Message content in pasting boards;
Parsing module 13 obtains the effective time in message content for parsing to message content;
Distribution module 14, for according to current time and effective time, the message content in pasting boards to be distributed to correspondence
Target service.
Optionally, the first application program is in active state, comprising:
Start state when the first application program;Alternatively,
State when first application program switches to foreground process from background process.
Optionally, distribution module 14 are specifically used for:
According to effective time, judge current time whether within effective time;
If current time is distributed to corresponding target service within effective time, by the message content in pasting boards.
Optionally, parsing module 13 are specifically used for:
Message content is decrypted by the first application program, the message after obtaining decryption processing;
Effective time is extracted from the message after decryption processing.
Optionally, parsing module 13 are specifically used for:
It whether include preset field in message after judging decryption processing;
If including preset field in the message after decryption processing, effective time is extracted from the message after decryption processing.
Optionally, read module 12 are specifically used for:
When monitoring that the first application program is in active state, judge in System operation with the presence or absence of message content;
If reading the message content in System operation there are message content in System operation.
The monitoring modular 11 of the processing unit of pasting boards message provided by the invention, the device applies journey by monitoring first
Whether sequence is in active state, and then 12 monitoring modular 11 of read module is monitoring that the first application program is in active state
When, read the message content in System operation;And then parsing module 13 parses message content, obtains in message content
Effective time;Further, distribution module 14 distributes the message content in pasting boards according to current time and effective time
To corresponding target service.Due to being parsed by the first application program to the message content read from System operation,
And analytically after message content in obtain effective time, and according to the effective time of current time and acquisition to message content into
Row judgement, and then the message content within effective time judged is distributed to target service, it is ensured that it is distributed to target
The message content of business has controllable timeliness.
Fig. 6 is a kind of present invention block diagram of the processing unit of pasting boards message shown according to an exemplary embodiment;Such as
Shown in Fig. 6, the processing unit of the pasting boards message further include: generation module 15, processing module 16 and writing module 17, wherein
Generation module 15, for generating message content by the second application program;
Processing module 16, for being handled by the second application program message content, in the message that obtains that treated
Hold;
Writing module 17, for will treated message content writing system pasting boards.
Optionally, processing module 16 are specifically used for:
According to preset format, processing is packaged to message content by the second application program, is obtained with preset format
Encapsulation messages;
The encapsulation messages with preset format are encrypted by the second application program, the message that obtains that treated
Content.
Above-mentioned apparatus can be used for executing the method that above-mentioned corresponding method embodiment provides, specific implementation and technical effect
Similar, which is not described herein again.
The above processing module may be configured to implement above method one or more integrated circuits, such as: one or
Multiple specific integrated circuits (Application Specific Integrated Circuit, abbreviation ASIC), or, one or
Multi-microprocessor (digital singnal processor, abbreviation DSP), or, one or more field-programmable gate array
Arrange (Field Programmable Gate Array, abbreviation FPGA) etc..For another example, when some above module passes through processing element
When the form of scheduler program code is realized, which can be general processor, such as central processing unit (Central
Processing Unit, abbreviation CPU) or it is other can be with the processor of caller code.For another example, these modules can integrate
Together, it is realized in the form of system on chip (system-on-a-chip, abbreviation SOC).
Fig. 7 is a kind of structural schematic diagram of terminal device provided in an embodiment of the present invention.The terminal device that Fig. 7 is shown is only
An example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in fig. 7, the terminal device may include transmitter 60, processor 61, memory 62 and at least one communication
Bus 63.Communication bus 63 is for realizing the communication connection between element.Memory 62 may include high speed RAM memory,
It may further include non-volatile memories NVM, a for example, at least magnetic disk storage can store various programs in memory 62,
For completing various processing functions and realizing the method and step of the present embodiment.In addition, the terminal device can also include receiving
Device 64, receiver 64 in the present embodiment with communication function and can receive the input interface of informational function to be corresponding, this
Transmitter 60 in embodiment can be the corresponding output interface with communication function and transmission informational function.Optionally, should
Transmitter 60 and receiver 64 can integrate in a communication interface, can also be independent two communication interfaces respectively.
In addition, being stored with computer program in memory 62, and it is configured as being executed by processor 61, the computer journey
Sequence includes for executing the instruction such as figure 1 above-embodiment illustrated in fig. 4 method or executing such as figure 1 above-embodiment illustrated in fig. 4
Method instruction.
The present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, computer program quilt
The processing method for the pasting boards message that any implementation provides in preceding method embodiment is realized when processor executes.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) or processor (English: processor) execute this hair
The part steps of bright each embodiment method.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (English:
Read-Only Memory, referred to as: ROM), random access memory (English: Random Access Memory, referred to as:
RAM), the various media that can store program code such as magnetic or disk.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (11)
1. a kind of processing method of pasting boards message characterized by comprising
When monitoring that the first application program is in active state, the message content in System operation is read;
The message content is parsed, the effective time in the message content is obtained;
According to current time and the effective time, the message content in the pasting boards is distributed to corresponding target service.
2. the method according to claim 1, wherein described according to current time and the effective time, by institute
It states the message content in pasting boards and is distributed to corresponding target service, comprising:
According to the effective time, judge the current time whether within the effective time;
If the current time is distributed to corresponding target within the effective time, by the message content in the pasting boards
Business.
3. the method according to claim 1, wherein first application program is in active state, comprising:
Start state when first application program;Alternatively,
State when first application program switches to foreground process from background process.
4. method according to claim 1-3, which is characterized in that the method also includes:
Message content is generated by the second application program;
The message content is handled by second application program, the message content that obtains that treated;
Treated by described in, and the System operation is written in message content.
5. according to the method described in claim 4, it is characterized in that, it is described pass through the second application program to the message content into
Row processing, the message content that obtains that treated, comprising:
According to preset format, processing is packaged to the message content by second application program, obtains having default
The encapsulation messages of format;
The encapsulation messages with preset format are encrypted by second application program, obtain the processing
Message content afterwards.
6. method according to claim 1-3, which is characterized in that it is described that the message content is parsed,
Obtain the effective time in the message content, comprising:
The message content is decrypted by first application program, the message after obtaining decryption processing;
The effective time is extracted from the message after the decryption processing.
7. according to the method described in claim 6, it is characterized in that, described in being extracted in the message from after the decryption processing
Effective time, comprising:
It whether include preset field in message after judging the decryption processing;
If in the message after the decryption processing including preset field, have described in extraction from the message after the decryption processing
Imitate the time.
8. method according to claim 1-3, which is characterized in that described to monitor that the first application program is in
When active state, the message content in System operation is read, comprising:
When monitoring that first application program is in active state, judge in the System operation with the presence or absence of in message
Hold;
If there are message contents in the System operation, the message content in the System operation is read.
9. a kind of processing unit of pasting boards message, which is characterized in that described device includes:
Monitoring modular, for monitoring whether the first application program is in active state;
Read module, for reading system when the monitoring module monitors are in active state to first application program
Message content in pasting boards;
Parsing module obtains the effective time in the message content for parsing to the message content;
Message content in the pasting boards is distributed to pair for according to current time and the effective time by distribution module
The target service answered.
10. a kind of terminal device characterized by comprising
Processor;
Memory, for storing the computer program of the processor;And
Wherein, the processor is configured to being required described in 1 to 8 any one by executing the computer program come perform claim
Pasting boards message processing method.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The processing method of the described in any item pasting boards message of claim 1 to 8 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910660996.1A CN110381209A (en) | 2019-07-22 | 2019-07-22 | Processing method, device and the storage medium of pasting boards message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910660996.1A CN110381209A (en) | 2019-07-22 | 2019-07-22 | Processing method, device and the storage medium of pasting boards message |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110381209A true CN110381209A (en) | 2019-10-25 |
Family
ID=68254809
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910660996.1A Pending CN110381209A (en) | 2019-07-22 | 2019-07-22 | Processing method, device and the storage medium of pasting boards message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110381209A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106406931A (en) * | 2016-08-25 | 2017-02-15 | 广州华多网络科技有限公司 | Studio rapid starting method and device in application program, and terminal equipment |
CN106897155A (en) * | 2016-08-29 | 2017-06-27 | 阿里巴巴集团控股有限公司 | A kind of method for showing interface and device |
CN107239351A (en) * | 2017-05-25 | 2017-10-10 | 北京小米移动软件有限公司 | Method of attaching and device |
CN107615270A (en) * | 2016-04-28 | 2018-01-19 | 华为技术有限公司 | A kind of man-machine interaction method and its device |
CN108170539A (en) * | 2017-12-08 | 2018-06-15 | 北京小米移动软件有限公司 | Information processing method and equipment |
US20180276057A1 (en) * | 2017-03-22 | 2018-09-27 | International Business Machines Corporation | Enhanced copy-and-paste |
CN109241459A (en) * | 2018-07-25 | 2019-01-18 | 五八有限公司 | Content share method, device, computer equipment and computer readable storage medium |
-
2019
- 2019-07-22 CN CN201910660996.1A patent/CN110381209A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107615270A (en) * | 2016-04-28 | 2018-01-19 | 华为技术有限公司 | A kind of man-machine interaction method and its device |
CN106406931A (en) * | 2016-08-25 | 2017-02-15 | 广州华多网络科技有限公司 | Studio rapid starting method and device in application program, and terminal equipment |
CN106897155A (en) * | 2016-08-29 | 2017-06-27 | 阿里巴巴集团控股有限公司 | A kind of method for showing interface and device |
US20180276057A1 (en) * | 2017-03-22 | 2018-09-27 | International Business Machines Corporation | Enhanced copy-and-paste |
CN107239351A (en) * | 2017-05-25 | 2017-10-10 | 北京小米移动软件有限公司 | Method of attaching and device |
CN108170539A (en) * | 2017-12-08 | 2018-06-15 | 北京小米移动软件有限公司 | Information processing method and equipment |
CN109241459A (en) * | 2018-07-25 | 2019-01-18 | 五八有限公司 | Content share method, device, computer equipment and computer readable storage medium |
Non-Patent Citations (1)
Title |
---|
晶晶13881688: "淘口令是在哪里设置,是什么?淘口令怎么生成?", 《百度经验,HTTPS://JINGYAN.BAIDU.COM/ARTICLE/7F766DAF8545DD4101E1D0F1.HTML》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8412099B2 (en) | Method and device for managing application data in an NFC system in response to contactless data sending or receiving | |
JPH11285080A (en) | Method for information transfer between subscriber discrimination module and radio communication mobile terminal, and corresonding subscriber discrimination module and mobile terminal | |
CN103200059B (en) | Secure network access processing method and device | |
CN105991682A (en) | Data sharing method and device | |
CN104270516B (en) | Decryption method and mobile terminal | |
CN105243341A (en) | Information security electronic equipment and application architecture | |
CN106599632B (en) | Cipher-code input method and device | |
CN110300396A (en) | The WIFI distribution method, apparatus and terminal of smart machine | |
CN106664535B (en) | A kind of method for sending information, device, terminal device and system | |
CN108848413A (en) | Anti-replay-attack system, method, apparatus and the storage medium of video | |
CN101841783A (en) | Short message safety communication method, system and device based on STK (SIM Tool Kit) business | |
CN110381209A (en) | Processing method, device and the storage medium of pasting boards message | |
CN101841806A (en) | Service card information processing method, device and system and communication terminal | |
CN106651366A (en) | Mobile terminal and transaction confirmation method and device thereof, and smart card | |
CN106534602B (en) | A kind of terminal and information processing method | |
CN103581843B (en) | A kind of personal information transmission method and system | |
CN105847286B (en) | The acquisition methods and device of multimedia file | |
CN105978691A (en) | Private key backup method and device and Softsim terminal switching method and device | |
CN104519019B (en) | A kind of information transferring method, apparatus and system | |
CN207718326U (en) | A kind of multifunctional safe keyboard and multifunctional office system | |
CN104215984B (en) | A kind of method and apparatus of satellite fix | |
CN106713248A (en) | Online virtual card application method, user terminal and online virtual card application system | |
CN106372557A (en) | Method, device and system for acquiring certificate card information | |
CN107783722B (en) | Data transmission method and data forwarding device | |
CN106385684A (en) | Method and device for sharing wireless network and accessing wireless network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191025 |