CN108667722A - Short message cancelling method, electronic device and computer readable storage medium - Google Patents
Short message cancelling method, electronic device and computer readable storage medium Download PDFInfo
- Publication number
- CN108667722A CN108667722A CN201810479998.6A CN201810479998A CN108667722A CN 108667722 A CN108667722 A CN 108667722A CN 201810479998 A CN201810479998 A CN 201810479998A CN 108667722 A CN108667722 A CN 108667722A
- Authority
- CN
- China
- Prior art keywords
- short message
- target
- service
- identification information
- withdrawal
- 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
- 238000000034 method Methods 0.000 title claims abstract description 59
- 230000001960 triggered effect Effects 0.000 claims abstract description 35
- 238000004590 computer program Methods 0.000 claims description 9
- 238000004891 communication Methods 0.000 abstract description 5
- 238000005516 engineering process Methods 0.000 abstract description 4
- 230000005540 biological transmission Effects 0.000 abstract description 2
- 244000208734 Pisonia aculeata Species 0.000 abstract 2
- 230000006870 function Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 10
- 238000010295 mobile communication Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000004888 barrier function Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
- H04L51/043—Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/07—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
- H04L51/08—Annexed information, e.g. attachments
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
A kind of short message cancelling method of the embodiment of the present application offer, electronic device and computer readable storage medium, are related to field of communication technology, method therein includes:It is instructed according to the transmission of triggering, obtain target short message, for target short message additional identities identification information, and it is sent to receiving terminal, it according to the instruction of recalling triggered based on target short message, generates service short message and is sent to receiving terminal, include Pullback flag and identification information in service short message, for triggering withdrawal operation according to Pullback flag in the receiving end, the target short message with identification information is deleted.Above-mentioned short message cancelling method, electronic device and computer readable storage medium, can recall the short message sent out in time.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a short message revocation method, an electronic device, and a computer-readable storage medium.
Background
With the development of mobile terminals and communication technologies, the popularity of smart mobile communication terminals such as smart phones and tablet computers is increasing. When people send short messages by using a smart phone, the situation that the short messages are sent to wrong people carelessly or words are wrongly written is often encountered, but the existing short message sending technology cannot withdraw the short messages which are sent by mistake, so that the situation of privacy disclosure is easy to occur, or a barrier is brought to a receiver for correctly reading the meaning of the sender.
Disclosure of Invention
The embodiment of the application provides a short message withdrawing method, an electronic device and a computer readable storage medium, which can be used for solving the problem that a sent short message cannot be withdrawn.
An embodiment of the present application provides a method for withdrawing a short message, including:
acquiring a target short message according to a triggered sending instruction;
attaching identity identification information to the target short message and sending the identity identification information to a receiving end;
and generating a service short message according to a withdrawal instruction triggered based on the target short message, and sending the service short message to the receiving end, wherein the service short message comprises a withdrawal mark and the identity identification information, and is used for triggering withdrawal operation in the receiving end according to the withdrawal mark and deleting the target short message with the identity identification information.
An aspect of the present embodiment further provides a method for withdrawing a short message, including:
receiving a target short message, and recording the identity identification information in the target short message;
receiving a service short message, and extracting a withdrawal mark and the identity identification information contained in the service short message;
and triggering withdrawal operation according to the withdrawal mark, and deleting the locally stored target short message with the identity identification information.
An aspect of an embodiment of the present application further provides an electronic device, including:
the acquisition module is used for acquiring the target short message according to the triggered sending instruction;
an adding module for adding identification information to the target short message,
the sending module is used for sending the target short message attached with the identity identification information to a receiving end;
the generating module is used for generating a service short message according to a withdrawing instruction triggered based on the target short message;
the sending module is further configured to send the service short message to the receiving end, where the service short message includes a revocation flag and the identity information, and is used to trigger a revocation operation in the receiving end according to the revocation flag to delete a target short message with the identity information.
An aspect of an embodiment of the present application further provides an electronic device, including:
the receiving module is used for receiving the target short message;
the recording module is used for recording the identity identification information in the target short message;
the receiving module is also used for receiving the service short message;
the extracting module is used for extracting the withdrawing mark and the identity identification information contained in the service short message;
and the deleting module is used for triggering the withdrawing operation according to the withdrawing mark and deleting the locally stored target short message with the identity identification information.
An aspect of an embodiment of the present application further provides an electronic device, including: the short message revocation method includes the steps of storing a short message, and storing the short message, a processor and a computer program which is stored in the memory and can run on the processor, wherein the processor implements the short message revocation method provided by the embodiment of the present application when executing the computer program.
An aspect of the present embodiment also provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the short message revocation method provided in the present embodiment.
In the embodiments, the identity information is added before the target short message is sent, and when the short message needs to be withdrawn, the service short message containing the identity information and the withdrawal mark of the short message is sent to the receiving end, so that the receiving end triggers the withdrawal operation according to the withdrawal mark and deletes the target short message with the identity information, thereby realizing the withdrawal of the sent short message, avoiding the problems of privacy disclosure caused by wrong sending objects or misunderstanding caused by wrong content of the receiving end, and improving the flexibility of short message management.
Drawings
Fig. 1 is a schematic application environment diagram of a short message revocation method according to an embodiment of the present application;
fig. 2 is a schematic flow chart illustrating an implementation of a short message revocation method according to an embodiment of the present application;
fig. 3 is a schematic flow chart illustrating an implementation of a short message revocation method according to another embodiment of the present application;
fig. 4 is a schematic flow chart illustrating an implementation of a short message revocation method according to another embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to another embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to another embodiment of the present application;
fig. 8 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, features and advantages of the present invention more apparent and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Please refer to fig. 1, which is a schematic diagram of an application environment of a method for withdrawing a short message according to an embodiment of the present application. As shown in fig. 1, a sending end 101 sends a short message to a receiving end 103 through a server 102 of a mobile cellular data network. After the short message is sent through the server 102, the user of the sending end 101 repels, and wants to withdraw the short message, the method for withdrawing the short message provided in each embodiment described below may be used to withdraw the short message.
Please refer to fig. 2, which is a flowchart illustrating an implementation of a method for withdrawing a short message according to an embodiment of the present application. The method for withdrawing the short message provided by the embodiment can be applied to mobile communication terminals, such as smart phones, tablet computers, smart watches and the like with a short message sending function. The present embodiment is explained from the perspective of the short message sender. As shown in fig. 2, the method mainly includes the following steps:
201. acquiring a target short message according to a triggered sending instruction;
the sending instruction may be triggered based on an operation of the user clicking a "send" button on the short message editing interface. And when a sending instruction is received, acquiring the content edited by the user on the short message editing interface, and generating the target short message.
202. Attaching identity identification information to the target short message and sending the identity identification information to a receiving end;
the identification Information (ID) is used to uniquely identify the target short message. Before sending the target short message, the ID is attached to the target short message for later use when withdrawing the short message. The ID may be added to the body of the target short message or may be added to additional information of the target short message.
203. And generating a service short message according to a withdrawal instruction triggered based on the target short message, and sending the service short message to a receiving end, wherein the service short message comprises a withdrawal mark and identity identification information.
The withdrawal instruction may be triggered based on a detected preset withdrawal operation of the user on the short message editing interface, for example, a user is detected to click a button for triggering the withdrawal instruction on the short message editing interface, a preset gesture for triggering the withdrawal instruction is made, or a voice for triggering the withdrawal instruction is picked up.
And when the withdrawal instruction is triggered, generating a service short message and sending the service short message to the receiving end. The service short message comprises a withdrawal mark and an ID of a short message to be withdrawn (namely, a target short message), and is used for indicating a receiving terminal, triggering withdrawal operation according to the withdrawal mark, and deleting the target short message with the ID stored in the receiving terminal.
The withdrawal flag is used to trigger the withdrawal operation, and may include, but is not limited to: executable program code containing undo instructions, or pre-agreed specific identification information.
The withdrawal mark and the ID of the short message to be withdrawn may be carried in the body of the service short message, or in the additional information of the service short message; or, carrying the ID of the short message to be withdrawn in the additional information of the service short message, and using the withdrawal mark as the text of the short message; or, taking the ID of the short message to be withdrawn as the text of the short message, and carrying the withdrawal mark in the additional information of the service short message; or, the text of the service short message carries the ID of the short message to be withdrawn, and the option for carrying the control information in the additional information of the service short message is set to null.
According to the short message withdrawing method provided by the embodiment of the application, the identity identification information is attached to the target short message before the target short message is sent, when the short message needs to be withdrawn, the service short message containing the identity identification information and the withdrawing mark of the short message is sent to the receiving end, so that the receiving end triggers the withdrawing operation according to the withdrawing mark and deletes the target short message with the identity identification information, and the withdrawing of the sent short message is realized, therefore, the problem that privacy is leaked due to wrong sending objects or a receiving party is misused due to wrong content can be avoided, and the flexibility of short message management is improved.
Please refer to fig. 3, which is a flowchart illustrating an implementation of a method for revoking a short message according to another embodiment of the present application. The method for withdrawing the short message provided by the embodiment can be applied to mobile communication terminals, such as smart phones, tablet computers, smart watches and the like with a short message sending function. The present embodiment is explained from the perspective of the short message sender. As shown in fig. 3, the method mainly includes the following steps:
301. acquiring a target short message according to a triggered sending instruction;
the sending instruction may be triggered based on an operation of the user clicking a "send" button on the short message editing interface. And when a sending instruction is received, acquiring the content edited by the user on the short message editing interface, and generating the target short message.
302. Analyzing the target short message into a short message in a target format;
303. adding a control option at the head of the short message in the target format;
304. generating identity identification information for the target short message, writing the identity identification information into a control option, and sending the short message with the identity identification information written into to a receiving end;
optionally, the target format is a PDU (Protocol Data Unit) format. A short message in PDU format corresponds to a data packet, which consists of the information that constitutes the message, typically including options of source/destination address, guard (validity) time, data format, protocol type and body. The text option records the content of the short message edited by the user.
Specifically, a control option is added to the header of the short message in the PDU format, and meanwhile, identification Information (ID) is generated for the target short message and written into the control option. Then, the short message with the ID written is sent to the receiving end.
Alternatively, the ID may be generated based on the current system time and the body of the target short message. The text of the target short message, i.e. the content edited by the user. Specifically, the MD5(Message Digest Algorithm, fifth edition) may be used to encrypt the text of the target short Message, and then superimpose the encrypted character string with the system time to obtain the ID of the target short Message. Or, after the current system time and the text of the target short message are superimposed, the current system time and the text of the target short message are encrypted by using the MD5 algorithm, and the character string obtained after encryption is used as the ID of the target short message. Optionally, it is encrypted into a string of 16-bit numbers and characters. Because the text is generally Chinese characters, the structure is complex and the occupied space is large, the information structure can be simplified through encryption, and the occupied space is reduced.
It will be appreciated that in practical applications, the target format may also be a Text format or a short message transmission format of other protocols.
305. Generating a service short message in a target format according to a withdrawal instruction triggered based on the target short message, wherein the text of the service short message comprises the identity identification information of the target short message;
306. adding a control option at the head of the service short message;
307. writing the withdrawal mark into the control option, and sending the service short message written with the withdrawal mark to the receiving end.
Optionally, when a preset withdrawal operation of the user on the editing interface of the target short message is detected, the withdrawal instruction is triggered. The preset pull back operation may include, for example and without limitation: and the user clicks a button for triggering the withdrawing instruction on the editing interface of the target short message and presses the operation area of the target short message in the editing interface for a long time.
When the withdrawal instruction is triggered, generating a service short message in a target format, such as: service short message in PDU format. The body of the service short message comprises the ID of the target short message to be withdrawn. Then, adding control options in the head of the service short message of the target format and writing the withdrawal mark in the head. And then, sending the service short message carrying the ID of the target short message to be withdrawn and the withdrawal mark to the receiving end, so that the receiving end triggers the withdrawal operation according to the withdrawal mark and deletes the short message with the ID stored in the receiving end.
Optionally, after the target short message is sent to the receiving end, it may be further detected whether the text of the target short message contains a grammar error. If the grammar error is contained, outputting prompt information which is used for prompting the user whether to withdraw the target short message. Grammar errors include wrongly written words and grammar errors, which may include, but are not limited to: few words, many words, semantic discontent, etc. And then, generating a service short message according to a withdrawal instruction triggered based on the prompt message and sending the service short message to a receiving end. Such as: and generating a service short message according to a withdrawal instruction triggered by a confirmation withdrawal button in the prompt information interface clicked by a user, and sending the service short message to a receiving end. Therefore, through the grammar error check, the user can be helped to find the error in time, and the short message withdrawal efficiency is improved.
Optionally, after the service short message is sent to the receiving end, a withdrawal notification returned by the receiving end is received, and it is determined that the target short message has been withdrawn. When the short message editing instruction is triggered, outputting a short message editing interface, and outputting the text of the withdrawn target short message in the editing interface so that a user can modify the text on the basis, thereby saving the editing time of the user and improving the editing convenience.
In the method for withdrawing a short message provided by this embodiment, the identity information is attached to the target short message before sending the target short message, and when the short message needs to be withdrawn, the service short message including the identity information and the withdrawal flag of the short message is sent to the receiving end, so that the receiving end triggers a withdrawal operation according to the withdrawal flag to delete the target short message with the identity information, thereby achieving the withdrawal of the sent short message, and therefore, the problem of privacy disclosure caused by a wrong object or misunderstanding caused by a wrong content at the receiving end can be avoided, and the flexibility of short message management is improved.
Please refer to fig. 4, which is a flowchart illustrating an implementation of a method for withdrawing a short message according to an embodiment of the present application. The method for withdrawing the short message provided by the embodiment can be applied to mobile communication terminals, such as smart phones, tablet computers, smart watches and the like with a short message sending function. The present embodiment is an explanation from the perspective of the short message receiver. As shown in fig. 4, the method mainly includes the following steps:
401. receiving a target short message, and recording the identity identification information in the target short message;
and receiving the target short message forwarded by the server, extracting the ID in the target short message, and recording the ID in a preset identity information list.
Optionally, the received target short message is a data packet in a target format of a pre-protocol, such as: PDU format. Specifically, the target short message in the target format is received and stored, and the ID in the target short message is extracted from the control option in the header of the target short message in the target format and recorded.
402. Receiving the service short message, and extracting the withdrawal mark contained in the service short message and the identity identification information of the target short message;
403. and triggering withdrawal operation according to the withdrawal mark, and deleting the locally stored target short message with the identity identification information.
And receiving the service short message forwarded by the server, and extracting the information contained in the service short message. If the extracted information contains the withdrawal identification and the ID, inquiring whether the short message corresponding to the ID is stored locally or not by using a preset identity information list, and if so, deleting the short message with the ID and simultaneously deleting the ID from the identity information list.
It can be understood that, when the receiving end locally deletes the short message with the ID according to a deletion instruction triggered by the user, the receiving end deletes the ID from the identity information list.
Further, after deleting the short message with the ID, or when the receiving end does not locally inquire the short message with the DI, the receiving end sends a revocation notification message to the sending end to notify the sending end that the short message with the ID has been deleted at the receiving end.
Further, after deleting the short message with the ID locally, outputting a prompt message to prompt the receiving end user that the short message is withdrawn.
Optionally, the received service short message may be a data packet in a target format of a pre-protocol, such as: PDU format. Specifically, the service short message in the target format is received, the withdrawal flag is extracted from the control option of the service short message in the target format, and the text of the service short message in the target format is analyzed to obtain the ID of the target short message to be withdrawn.
To further illustrate the method for withdrawing short messages provided by the embodiment of the present application, the following description is made in conjunction with fig. 5 from an interactive perspective. As shown in fig. 5, the method comprises the following steps:
1. a sending end detects that a User edits a short message in a User Interface (UI), and clicks a sending button;
2. the sending end analyzes the short message into a PDU format, adds an ID option at the head of the PDU, calculates an ID according to the current system time and the content of the short message, and combines the ID into the head of the PDU;
3. the transmitting end stores the PDU content of the short message to the local machine;
4. the sending end sends the short message in the PDU format to the network end;
5. the network end forwards the short message in the PDU format to the receiving end;
6. the receiving end receives the short message in the PDU format and stores the short message in the local, extracts the ID in the short message in the PDU format and stores the ID in an ID list;
7. the sending end detects that a user clicks a withdrawal button on a UI (user interface);
8. the sending end sends a service short message containing the withdrawing mark and the ID of the short message to be withdrawn to the network end;
9. the network terminal forwards the service short message to a receiving terminal;
10. the receiving end receives the service short message, if the service short message contains the withdrawal mark, the ID of the short message to be withdrawn is read from the service short message;
11. and searching whether the ID exists in the ID list, if so, deleting the short message with the ID stored locally, and outputting prompt information.
According to the short message withdrawing method provided by the embodiment of the application, the identity identification information is attached to the target short message before the target short message is sent, when the short message needs to be withdrawn, the service short message containing the identity identification information and the withdrawing mark of the short message is sent to the receiving end, so that the receiving end triggers the withdrawing operation according to the withdrawing mark and deletes the target short message with the identity identification information, and the withdrawing of the sent short message is realized, therefore, the problem that privacy is leaked due to wrong sending objects or a receiving party is misused due to wrong content can be avoided, and the flexibility of short message management is improved.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device can be used to implement the short message revocation method provided in the embodiment shown in fig. 2. As shown in fig. 5, the electronic device mainly includes:
an obtaining module 501, configured to obtain a target short message according to a triggered sending instruction;
an attaching module 502, configured to attach identification information to the target short message,
a sending module 503, configured to send the target short message with the identity information attached thereto to a receiving end;
a generating module 504, configured to generate a service short message according to a withdrawal instruction triggered based on the target short message;
the sending module 503 is further configured to send the service short message to the receiving end, where the service short message includes a withdrawal flag and identity information, and is used to trigger a withdrawal operation in the receiving end according to the withdrawal flag to delete the target short message with the identity information.
For a specific process of each function module in the electronic device provided in this embodiment to implement each function, please refer to the specific content described in the embodiment shown in fig. 2, which is not described herein again.
In this embodiment, the identity information is attached to the target short message before sending the target short message, and when the short message needs to be withdrawn, the service short message including the identity information and the withdrawal flag of the short message is sent to the receiving end, so that the receiving end triggers the withdrawal operation according to the withdrawal flag and deletes the target short message with the identity information, thereby realizing the withdrawal of the sent short message, avoiding the problem of privacy disclosure caused by wrong sending objects or misunderstanding caused by wrong content at the receiving end, and improving the flexibility of short message management.
Please refer to fig. 6, which is a schematic structural diagram of an electronic device according to another embodiment of the present application. The electronic device can be used to implement the short message revocation method provided by the embodiment shown in fig. 3. The electronic device shown in fig. 6 is different from the electronic device shown in fig. 5 in that:
further, the generating module 504 is specifically configured to generate the identification information according to the current system time and the text of the target short message.
Further, the add-in module 502 includes:
the parsing submodule 5021 is used for parsing the target short message into a short message in a target format;
a first adding submodule 5022, configured to add a control option to a header of the short message in the target format;
the first generating submodule 5023 is used for generating identity identification information for the target short message;
the first writing submodule 5024 is used for writing the identity information into the control options;
the generating module 504 includes:
the second generating sub-module 5041 is configured to generate a service short message in a target format according to a withdrawal instruction triggered based on the target short message, where a text of the service short message includes identity information;
a second adding sub-module 5042, configured to add a control option to the header of the service short message;
a second write submodule 5043 for writing the revocation flag to the control option.
The electronic device may further include: execution module, detection module and output module (not shown in the figure):
and the execution module is used for triggering a withdrawal instruction when detecting the preset withdrawal operation of the user on the editing interface of the target short message.
The detection module is used for detecting whether the text of the target short message contains a grammar error;
the output module is used for outputting prompt information if the grammar error is contained, and the prompt information is used for prompting the user whether to withdraw the target short message or not;
the generating module 504 is specifically configured to generate a service short message according to a withdrawal instruction triggered based on the prompt information, and send the service short message to the receiving end.
It should be noted that, in the embodiment of the electronic device illustrated in fig. 6, the division of the functional modules is only an example, and in practical applications, the above functions may be distributed by different functional modules according to needs, for example, configuration requirements of corresponding hardware or convenience of implementation of software, that is, the internal structure of the electronic device is divided into different functional modules to complete all or part of the functions described above. In practical applications, the corresponding functional modules in this embodiment may be implemented by corresponding hardware, or may be implemented by corresponding hardware executing corresponding software. The above description principles can be applied to various embodiments provided in the present specification, and are not described in detail below.
For a specific process of each function module in the electronic device provided in this embodiment to implement each function, please refer to the specific contents described in the embodiments shown in fig. 2 and fig. 3, which is not described herein again.
The electronic device provided by this embodiment adds the identification information to the target short message before sending it, and sends the service short message containing the identification information and the withdrawal flag of the short message to the receiving end when the short message needs to be withdrawn, so that the receiving end triggers the withdrawal operation according to the withdrawal flag and deletes the target short message with the identification information, thereby realizing the withdrawal of the sent short message, and therefore, the problem of privacy disclosure caused by wrong sending objects or misunderstanding caused by wrong content at the receiving end can be avoided, and the flexibility of short message management is improved.
Please refer to fig. 7, which is a schematic structural diagram of an electronic device according to another embodiment of the present application. The electronic device can be used to implement the short message revocation method provided by the embodiment shown in fig. 4. The electronic device includes:
a receiving module 701, configured to receive a target short message;
a recording module 702, configured to record the identity information in the target short message;
the receiving module 701 is further configured to receive a service short message;
an extracting module 703, configured to extract a revocation flag and identity information included in the service short message;
and the deleting module 704 is used for triggering the withdrawing operation according to the withdrawing mark and deleting the locally stored target short message with the identity identification information.
Further, the receiving module 701 is further configured to receive a target short message in a target format;
the recording module 702 is further configured to extract and record the identification information in the target short message from the control options in the header of the target short message in the target format.
Further, the receiving module 701 is further configured to receive a service short message in a target format;
the extracting module 703 is further configured to extract the withdrawal flag from the control option of the service short message in the target format, and parse the text of the service short message in the target format to obtain the identity information.
For a specific process of implementing each function by each function module in the short message revocation apparatus provided in this embodiment, please refer to the specific contents described in the embodiments shown in fig. 2 to fig. 6, which are not described herein again.
The electronic device provided by this embodiment adds the identification information to the target short message before sending it, and sends the service short message containing the identification information and the withdrawal flag of the short message to the receiving end when the short message needs to be withdrawn, so that the receiving end triggers the withdrawal operation according to the withdrawal flag and deletes the target short message with the identification information, thereby realizing the withdrawal of the sent short message, and therefore, the problem of privacy disclosure caused by wrong sending objects or misunderstanding caused by wrong content at the receiving end can be avoided, and the flexibility of short message management is improved.
Referring to fig. 8, fig. 8 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
The electronic apparatus described in this embodiment includes:
a memory 801, a processor 802 and a computer program stored on the memory 801 and executable on the processor 802, which when executed by the processor 802, implement the short message revocation method described in the embodiments of fig. 2 to 4.
Further, the electronic device further includes:
at least one input device 803 and at least one output device 804.
The memory 801, the processor 802, the input device 803, and the output device 804 are connected by a bus 805.
The input device 803 may be a camera, a touch panel, a physical button, or the like. The output device 804 may specifically be a display screen.
The Memory 801 may be a high-speed Random Access Memory (RAM) Memory or a non-volatile Memory (non-volatile Memory), such as a disk Memory. The memory 801 is used to store a set of executable program code, and the processor 802 is coupled to the memory 801.
Further, an embodiment of the present application also provides a computer-readable storage medium, where the computer-readable storage medium may be provided in an electronic device in the foregoing embodiments, and the computer-readable storage medium may be the memory in the foregoing embodiment shown in fig. 8. The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the short message revocation method described in the foregoing embodiments shown in fig. 2 to 4. Further, the computer-readable storage medium may be various media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a RAM, a magnetic disk, or an optical disk.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a readable storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned readable storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The above description of the short message retrieving method, the electronic device and the computer readable storage medium provided by the present application will be apparent to those skilled in the art from the following description, wherein the specific implementation and application scope of the embodiments of the present application are modified, and in summary, the present disclosure should not be construed as limiting the present application.
Claims (14)
1. A short message revocation method, characterized in that the method comprises:
acquiring a target short message according to a triggered sending instruction;
attaching identity identification information to the target short message and sending the identity identification information to a receiving end;
and generating a service short message according to a withdrawal instruction triggered based on the target short message, and sending the service short message to the receiving end, wherein the service short message comprises a withdrawal mark and the identity identification information, and is used for triggering withdrawal operation in the receiving end according to the withdrawal mark and deleting the target short message with the identity identification information.
2. The method of claim 1, wherein the attaching identity information to the target short message comprises:
analyzing the target short message into a short message in a target format;
adding a control option in the head of the short message of the target format;
and generating identity identification information for the target short message, and writing the identity identification information into the control option.
3. The method of claim 2, wherein the generating identity information for the target short message comprises:
and generating the identity identification information according to the current system time and the text of the target short message.
4. The method of claim 1, wherein generating a service short message according to a revocation instruction triggered based on the target short message comprises:
generating a service short message in a target format according to a withdrawal instruction triggered based on the target short message, wherein the text of the service short message comprises the identity identification information;
adding a control option at the head of the service short message;
writing a revocation flag to the control option.
5. The method of claim 1, wherein before generating and sending a service short message to the receiving end according to a withdrawal instruction triggered based on the target short message, the method comprises:
triggering the withdrawing instruction when detecting the preset withdrawing operation of the user on the editing interface of the target short message;
or,
detecting whether the text of the target short message contains a grammar error;
if the grammar error is contained, outputting prompt information, wherein the prompt information is used for prompting a user whether to withdraw the target short message;
then, the generating a service short message according to a withdrawal instruction triggered based on the target short message and sending the service short message to the receiving end includes:
and generating a service short message according to a withdrawal instruction triggered based on the prompt message and sending the service short message to the receiving end.
6. The method as claimed in claim 1, wherein after generating and sending a service short message to the receiving end according to a withdrawal instruction triggered based on the target short message, the method comprises:
receiving a withdrawal notification message returned by the receiving terminal;
and when the short message editing instruction is triggered, outputting a short message editing interface, and outputting the text of the target short message in the editing interface.
7. A short message revocation method, characterized in that the method comprises:
receiving a target short message, and recording the identity identification information in the target short message;
receiving a service short message, and extracting a withdrawal mark and the identity identification information contained in the service short message;
and triggering withdrawal operation according to the withdrawal mark, and deleting the locally stored target short message with the identity identification information.
8. The method of claim 7, wherein the receiving the target short message, recording the identification information in the target short message, comprises:
receiving a target short message in a target format;
and extracting and recording the identity identification information in the target short message from the control option of the target short message header of the target format.
9. The method according to claim 7 or 8, wherein said receiving a service short message, extracting a revocation flag and said identity information included in said service short message, comprises:
receiving a service short message in a target format;
extracting a withdrawal mark from a control option of the service short message in the target format;
and analyzing the text of the service short message in the target format to obtain the identity identification information.
10. An electronic device, comprising:
the acquisition module is used for acquiring the target short message according to the triggered sending instruction;
an adding module for adding identification information to the target short message,
the sending module is used for sending the target short message attached with the identity identification information to a receiving end;
the generating module is used for generating a service short message according to a withdrawing instruction triggered based on the target short message;
the sending module is further configured to send the service short message to the receiving end, where the service short message includes a revocation flag and the identity information, and is used to trigger a revocation operation in the receiving end according to the revocation flag to delete a target short message with the identity information.
11. The electronic device of claim 10, wherein the add-on module comprises:
the analysis submodule is used for analyzing the target short message into a short message in a target format;
a first adding submodule for adding control options at the head of the short message of the target format;
the first generation submodule is used for generating identity identification information for the target short message;
the first writing submodule is used for writing the identity identification information into the control option;
the generation module comprises:
a second generation submodule, configured to generate a service short message in a target format according to a withdrawal instruction triggered based on the target short message, where a text of the service short message includes the identity information;
a second adding submodule, configured to add a control option to a header of the service short message;
a second write submodule for writing a revocation flag to the control option.
12. An electronic device, comprising:
the receiving module is used for receiving the target short message;
the recording module is used for recording the identity identification information in the target short message;
the receiving module is also used for receiving the service short message;
the extracting module is used for extracting the withdrawing mark and the identity identification information contained in the service short message;
and the deleting module is used for triggering the withdrawing operation according to the withdrawing mark and deleting the locally stored target short message with the identity identification information.
13. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor implements the short message revocation method according to any of claims 1 to 9 when executing the computer program.
14. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a short message revocation method according to any one of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810479998.6A CN108667722A (en) | 2018-05-18 | 2018-05-18 | Short message cancelling method, electronic device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810479998.6A CN108667722A (en) | 2018-05-18 | 2018-05-18 | Short message cancelling method, electronic device and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108667722A true CN108667722A (en) | 2018-10-16 |
Family
ID=63776916
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810479998.6A Pending CN108667722A (en) | 2018-05-18 | 2018-05-18 | Short message cancelling method, electronic device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108667722A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109587348A (en) * | 2019-01-25 | 2019-04-05 | 努比亚技术有限公司 | Communication management information method, mobile terminal and computer readable storage medium |
CN112035206A (en) * | 2020-09-01 | 2020-12-04 | 腾讯科技(深圳)有限公司 | Message processing method and device |
CN115002062A (en) * | 2022-05-25 | 2022-09-02 | 中国平安财产保险股份有限公司 | Message processing method, device, equipment and readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101384009A (en) * | 2008-10-08 | 2009-03-11 | 深圳华为通信技术有限公司 | Short message cancelling method and terminal |
CN106255079A (en) * | 2016-09-19 | 2016-12-21 | 青岛海信移动通信技术股份有限公司 | The method and device of short message cancelling |
CN106454771A (en) * | 2016-10-28 | 2017-02-22 | 努比亚技术有限公司 | Information sending method and device and terminal |
US10263937B2 (en) * | 2014-01-31 | 2019-04-16 | Whatsapp Inc. | Automated message recall from a sender's device |
-
2018
- 2018-05-18 CN CN201810479998.6A patent/CN108667722A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101384009A (en) * | 2008-10-08 | 2009-03-11 | 深圳华为通信技术有限公司 | Short message cancelling method and terminal |
US10263937B2 (en) * | 2014-01-31 | 2019-04-16 | Whatsapp Inc. | Automated message recall from a sender's device |
CN106255079A (en) * | 2016-09-19 | 2016-12-21 | 青岛海信移动通信技术股份有限公司 | The method and device of short message cancelling |
CN106454771A (en) * | 2016-10-28 | 2017-02-22 | 努比亚技术有限公司 | Information sending method and device and terminal |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109587348A (en) * | 2019-01-25 | 2019-04-05 | 努比亚技术有限公司 | Communication management information method, mobile terminal and computer readable storage medium |
CN112035206A (en) * | 2020-09-01 | 2020-12-04 | 腾讯科技(深圳)有限公司 | Message processing method and device |
CN112035206B (en) * | 2020-09-01 | 2021-08-24 | 腾讯科技(深圳)有限公司 | Message processing method and device |
CN115002062A (en) * | 2022-05-25 | 2022-09-02 | 中国平安财产保险股份有限公司 | Message processing method, device, equipment and readable storage medium |
CN115002062B (en) * | 2022-05-25 | 2024-04-05 | 中国平安财产保险股份有限公司 | Message processing method, device, equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105493076B (en) | Pass through the capture service of communication channel | |
CN111400378B (en) | Log real-time display method and device based on elastic search, computer equipment and medium | |
US10461934B2 (en) | Authentication-based message display method and communication terminal thereof | |
US20220342518A1 (en) | Card-based information management method and system | |
CN111641554B (en) | A message processing method, device and computer-readable storage medium | |
CN105027587A (en) | Messages augmented with structured entities | |
CN110381166A (en) | A kind of message informing management method, device and computer readable storage medium | |
WO2018233155A1 (en) | Instant messaging method and device | |
CN108667722A (en) | Short message cancelling method, electronic device and computer readable storage medium | |
CN106874778A (en) | Intelligent terminal file acquisition and data recovery system and method based on android system | |
CN103281798A (en) | Method, device and system for achieving modification synchronization | |
US20130013647A1 (en) | Method and device for importing backup data for a mobile terminal | |
KR20160023832A (en) | Method and apparatus for establishing ultra-large character library and method and apparatus for displaying character | |
CN113449829B (en) | Data transmission method and related device based on optical character recognition technology | |
CN112559226B (en) | Message management platform, message processing method, storage medium and electronic device | |
CN112788090B (en) | Network resource transmission method, device and system | |
CN114339628B (en) | 5G rich media message sending method, equipment, storage medium and product | |
CN102984676B (en) | Method and terminal for processing message session | |
CN108735273A (en) | A kind of method and medical management system of data processing | |
CN108537086A (en) | Method for information display, device, storage medium and mobile terminal | |
CN114912421A (en) | Text processing method, text editor, readable medium and electronic device | |
KR102538098B1 (en) | Method and apparatus for processing information of terminal | |
CN107920012B (en) | Instant communication message storage method and device | |
CN115665080A (en) | Information processing method, information processing apparatus, electronic device, storage medium, and program product | |
CN116362206A (en) | File processing method, device, equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181016 |
|
RJ01 | Rejection of invention patent application after publication |