[go: up one dir, main page]

CN107819944A - Delet method, device, equipment and the storage medium of short message - Google Patents

Delet method, device, equipment and the storage medium of short message Download PDF

Info

Publication number
CN107819944A
CN107819944A CN201711026627.4A CN201711026627A CN107819944A CN 107819944 A CN107819944 A CN 107819944A CN 201711026627 A CN201711026627 A CN 201711026627A CN 107819944 A CN107819944 A CN 107819944A
Authority
CN
China
Prior art keywords
short message
specified type
message
duration
setting operation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711026627.4A
Other languages
Chinese (zh)
Inventor
陶钧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201711026627.4A priority Critical patent/CN107819944A/en
Publication of CN107819944A publication Critical patent/CN107819944A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User 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/72436User 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. short messaging services [SMS] or e-mails
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本公开是关于一种短消息的删除方法、装置、设备和存储介质,该方法应用于用户设备,具体包括:接收指定类型的短消息,其中,预先根据用户的指示针对指定类型的短消息开启自动删除功能;确定对指定类型的短消息完成设定操作时,在对指定类型的短消息的完成设定操作时长达到预设的删除时长时,将指定类型的短消息删除,其中短消息的完成设定操作时长为对指定类型短消息完成设定操作时刻开始到当前时刻的时长。通过对接收到到的短消息是否已完成指定操作进行监控,确定在用户已经对短消息完成相应的操作的预设时长之后,将短消息删除,有效节省用户设备的内存,提高设备性能。

The present disclosure relates to a short message deletion method, device, device and storage medium. The method is applied to a user equipment, and specifically includes: receiving a short message of a specified type, wherein, according to the instruction of the user, the short message of the specified type is opened in advance. Automatic deletion function; when it is determined to complete the setting operation for the short message of the specified type, when the time for completing the setting operation for the short message of the specified type reaches the preset deletion time, the short message of the specified type will be deleted, and the short message of the short message The time period for completing the setting operation is the time period from the time when the setting operation is completed for the short message of the specified type to the current time. By monitoring whether the received short message has completed the specified operation, it is determined that the short message will be deleted after the user has completed the corresponding operation on the short message for a preset period of time, thereby effectively saving the memory of the user device and improving device performance.

Description

短消息的删除方法、装置、设备和存储介质Short message deletion method, device, equipment and storage medium

技术领域technical field

本公开涉及计算机技术,尤其涉及一种短消息的删除方法、装置、设备和存储介质。The present disclosure relates to computer technology, in particular to a short message deletion method, device, equipment and storage medium.

背景技术Background technique

很多网站在登录或认证身份的时候,都需要用户通过移动终端接收网站下发的短消息,该短消息中包括网站提供的验证码,用户在查看该短消息中的验证码并输入对应的网站验证之后,可手动将接收到的短消息删除,然而,用户尝尝在查看后直接退出短消息界面,在使用完验证码之后,该短信依然保存在移动终端内,但出于安全考虑,该验证码通常只在本次登录或几分钟内有效。Many websites require users to receive a short message sent by the website through a mobile terminal when logging in or authenticating their identity. The short message includes a verification code provided by the website. The user checks the verification code in the short message and enters the corresponding website After the verification, the received short message can be manually deleted. However, the user tries to exit the short message interface directly after viewing. After using the verification code, the short message is still saved in the mobile terminal, but for security reasons, this Verification codes are usually only valid for this login or for a few minutes.

发明内容Contents of the invention

为克服相关技术中存在的问题,本公开提供一种短消息的删除方法、装置、设备和存储介质。In order to overcome the problems existing in the related technologies, the present disclosure provides a short message deletion method, device, equipment and storage medium.

根据本公开实施例的第一方面,提供一种短消息的删除方法,应用于用户设备,包括:According to the first aspect of the embodiments of the present disclosure, a method for deleting a short message is provided, which is applied to a user equipment, including:

接收指定类型的短消息,其中,预先根据用户的指示针对所述指定类型的短消息开启自动删除功能;receiving a short message of a specified type, wherein the automatic deletion function is enabled for the short message of the specified type in advance according to the user's instruction;

确定对所述指定类型的短消息完成设定操作时,在对所述指定类型的短消息的完成设定操作时长达到预设的删除时长时,将所述指定类型的短消息删除,其中所述短消息的完成操作时长为对所述指定类型短消息完成设定操作时刻开始到当前时刻的时长。When it is determined that the setting operation is completed for the short message of the specified type, when the time for completing the setting operation for the short message of the specified type reaches the preset deletion time length, the short message of the specified type is deleted, wherein the short message of the specified type The operation completion duration of the short message is the duration from the time when the setting operation is completed for the short message of the specified type to the current time.

本公开实施例提供的方案中,用户设备对接收到的的指定类型的短消息开启自动删除功能,在确定对该类型的短消息完成指定操作,例如查看,或者获取其中的应用信息等之后,在达到预设时长时将该短消息删除,避免用户设备中存储大量已查看的短信浪费存储空间,节省设备存储空间,提高设备性能。In the solution provided by the embodiments of the present disclosure, the user equipment enables the automatic deletion function for the received short message of a specified type, and after determining that the specified operation is completed for the short message of this type, such as viewing or obtaining the application information, etc., The short message is deleted when the preset duration is reached, so as to avoid wasting storage space by storing a large number of viewed short messages in the user device, save device storage space, and improve device performance.

在该方案的一种具体实现中,所述设定操作包括短消息由未读状态更新为已读状态的查看操作。In a specific implementation of this solution, the setting operation includes a viewing operation of updating the status of the short message from an unread status to a read status.

在该方案的一种具体实现中,所述方法还包括:In a specific implementation of the solution, the method also includes:

接收用户输入的针对指定类型的短消息自动删除设置指令;Receive user-input instructions for automatically deleting short messages of a specified type;

根据所述指定类型的短消息自动删除设置指令,开启所述指定类型的短消息自动删除功能。According to the specified type of short message automatic deletion setting instruction, enable the specified type of short message automatic deletion function.

本公开实施例提供的方案中,为了用户设备能够自动对已执行指定操作的短消息自动进行删除,在用户设备的系统设置中提供接口,用于设置短消息自动删除的功能打开或者关闭,在用户需要开启该功能时进行操作,用户设备接收用户的设置指令,将短消息自动删除功能开启。在需要关闭该功能时可根据用户操作将该短消息自动删除功能关闭。In the solution provided by the embodiment of the present disclosure, in order for the user equipment to automatically delete the short message that has performed the specified operation, an interface is provided in the system settings of the user equipment to enable or disable the function of automatically deleting short messages. When the user needs to enable this function, the user device will receive the user's setting instruction and enable the short message automatic deletion function. When the function needs to be turned off, the short message automatic deletion function can be turned off according to the user operation.

在上述任一方案的基础上,进一步地,所述方法还包括:On the basis of any of the above schemes, further, the method further includes:

获取用户输入的时长,并将所述时长设置为所述预设的删除时长。Obtain the duration input by the user, and set the duration as the preset deletion duration.

本公开实施例提供的方案中,用户可以根据实际需求对删除端消息的时长进行设置,例如:可以将预设的删除时长设置为零,即在短消息查看完立刻将该短消息删除,也可以将删除时长设置为大于零的任意时长,在短消息查看完持续该时长后将其删除,有效提高用户体验。In the solution provided by the embodiment of the present disclosure, the user can set the duration of deleting the terminal message according to actual needs, for example: the preset deletion duration can be set to zero, that is, the short message will be deleted immediately after viewing the short message, or The deletion duration can be set to any duration greater than zero, and the short message will be deleted after viewing the short message for the duration, which effectively improves the user experience.

在上述任一方案的基础上,所述指定类型的短消息包括验证码消息,则所述设定操作包括验证码消息中的验证码被查看并复制的操作。On the basis of any of the solutions above, if the specified type of short message includes a verification code message, the setting operation includes checking and copying the verification code in the verification code message.

本公开实施例提供的方案中,当该短消息是验证码消息时,除了检测验证码消息是否被显示,还可以具体的检测验证码消息中的验证码是不是被复制,指定操作则为被查看并复制的操作,即是否已经将有效信息获取,如果验证码已经被显示并且被复制,则显示后时间到达短消息删除时长时,将该验证码消息删除,提高短消息删除的精确度,避免用户没获取到有效信息,提高用户体验。In the solution provided by the embodiments of the present disclosure, when the short message is a verification code message, in addition to detecting whether the verification code message is displayed, it can also specifically detect whether the verification code in the verification code message is copied, and the specified operation is to be The operation of viewing and copying, that is, whether the valid information has been obtained. If the verification code has been displayed and copied, when the displayed time reaches the short message deletion time, the verification code message will be deleted to improve the accuracy of short message deletion. Prevent users from not getting effective information and improve user experience.

可选的,所述短消息包括验证码消息,则设定操作包括验证码消息中的验证码被查看且已被验证对应的网站所获取的操作。Optionally, the short message includes a verification code message, and the setting operation includes an operation in which the verification code in the verification code message is checked and verified by the corresponding website.

本公开实施例提供的方案中,若该短消息是验证码消息,除了检测验证码是否被复制,还可以检测网站是否获取了验证码,例如在网页上输入了验证码之后,网页根据验证码进行了跳转,则可以确定验证码已经被获取,则可以将该验证码消息删除,避免误删导致不能获取到有效信息的问题,提高用户体验。In the scheme provided by the embodiments of the present disclosure, if the short message is a verification code message, in addition to detecting whether the verification code has been copied, it can also detect whether the website has obtained the verification code. For example, after entering the verification code on the web page, the web page will After jumping, it can be determined that the verification code has been obtained, and the verification code message can be deleted to avoid the problem that valid information cannot be obtained due to mistaken deletion, and improve user experience.

在上述任一方案的基础上,所述用户输入的时长为零。On the basis of any of the above schemes, the duration input by the user is zero.

根据本公开实施例的第二方面,提供一种短消息的删除装置,包括:According to a second aspect of an embodiment of the present disclosure, a device for deleting a short message is provided, including:

第一接收模块,被配置为接收指定类型的短消息,其中,预先根据用户的指示针对所述指定类型的短消息开启自动删除功能;The first receiving module is configured to receive a short message of a specified type, wherein the automatic deletion function is enabled for the short message of the specified type in advance according to the user's instruction;

第一处理模块,被配置为确定对所述指定类型的短消息完成设定操作时,在对所述指定类型的短消息的完成设定操作时长达到预设的删除时长时,将所述指定类型的短消息删除,其中所述短消息的完成设定操作时长为对所述指定类型短消息完成设定操作时刻开始到当前时刻的时长。The first processing module is configured to, when it is determined that the setting operation is completed for the short message of the specified type, when the time for completing the setting operation for the short message of the specified type reaches the preset deletion time length, delete the specified type of short message deletion, wherein the duration of the completion of the setting operation of the short message is the duration from the moment of completion of the setting operation of the specified type of short message to the current time.

可选的,所述第一处理模块完成的所述设定操作包括短消息由未读状态更新为已读状态的查看操作。Optionally, the setting operation completed by the first processing module includes a viewing operation of updating the status of the short message from an unread status to a read status.

可选的,所述装置还包括:Optionally, the device also includes:

第二接收模块,被配置为接收用户输入的针对指定类型的短消息自动删除设置指令;The second receiving module is configured to receive a setting instruction for automatically deleting short messages of a specified type input by a user;

第二处理模块,被配置为根据所述指定类型的短消息自动删除设置指令,开启所述指定类型的短消息自动删除功能。The second processing module is configured to enable the function of automatically deleting short messages of the specified type according to the setting instruction for automatically deleting short messages of the specified type.

可选的,所述装置还包括:Optionally, the device also includes:

第三处理模块,被配置为获取用户输入的时长,并将所述时长设置为所述预设的删除时长。The third processing module is configured to acquire the duration input by the user, and set the duration as the preset deletion duration.

可选的,所述指定类型的短消息包括验证码消息,则所述设定操作包括验证码消息中的验证码被查看并复制的操作。Optionally, the specified type of short message includes a verification code message, and the setting operation includes checking and copying the verification code in the verification code message.

可选的,所述短消息包括验证码消息,则设定操作包括验证码消息中的验证码被查看且已被验证对应的网站所获取的操作。Optionally, the short message includes a verification code message, and the setting operation includes an operation in which the verification code in the verification code message is checked and verified by the corresponding website.

可选的,所述用户输入的时长为零。Optionally, the duration input by the user is zero.

根据本公开实施例的第三方面,提供一种用户设备,包括:计算机指令,被配置为控制计算机指令执行的处理器,被配置为存储处理器计算机指令的存储器以及接收器;According to a third aspect of an embodiment of the present disclosure, there is provided a user equipment, including: computer instructions, a processor configured to control execution of the computer instructions, a memory configured to store the processor computer instructions, and a receiver;

所述接收器被配置为接收指定类型的短消息,其中,预先根据用户的指示针对所述指定类型的短消息开启自动删除功能;The receiver is configured to receive a specified type of short message, wherein the automatic deletion function is enabled for the specified type of short message in advance according to the user's instruction;

所述处理器被配置为确定对所述指定类型的短消息完成设定操作时,在对所述指定类型的短消息的完成设定操作时长达到预设的删除时长时,将所述指定类型的短消息删除,其中所述短消息的完成设定操作时长为对所述指定类型短消息完成设定操作时刻开始到当前时刻的时长。The processor is configured to, when it is determined that the setting operation is completed for the short message of the specified type, when the time for completing the setting operation for the short message of the specified type reaches a preset deletion time length, delete the short message of the specified type The short message deletion of the short message, wherein the duration for completing the setting operation of the short message is the duration from the time when the setting operation is completed for the specified type of short message to the current time.

根据本公开实施例的第四方面,提供一种计算机存储介质,其上存储有可执行的计算机指令,所述计算机指令被处理器执行以下方法:According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer storage medium on which executable computer instructions are stored, and the computer instructions are executed by a processor to perform the following methods:

接收指定类型的短消息,其中,预先根据用户的指示针对所述指定类型的短消息开启自动删除功能;receiving a short message of a specified type, wherein the automatic deletion function is enabled for the short message of the specified type in advance according to the user's instruction;

确定对所述指定类型的短消息完成设定操作时,在对所述指定类型的短消息的完成设定操作时长达到预设的删除时长时,将所述指定类型的短消息删除,其中所述短消息的完成操作时长为对所述指定类型短消息完成设定操作时刻开始到当前时刻的时长。When it is determined that the setting operation is completed for the short message of the specified type, when the time for completing the setting operation for the short message of the specified type reaches the preset deletion time length, the short message of the specified type is deleted, wherein the short message of the specified type The operation completion duration of the short message is the duration from the time when the setting operation is completed for the short message of the specified type to the current time.

本发明提供的信息的短消息的删除方法、装置、设备和存储介质,用户设备对接收到的指定类型的短消息预先开启自动删除功能,在检测到对该指定类型的短消息完成设定操作时,在完成设定操作时长达到预设的删除时长时,将该短消息删除,避免用户设备中存储大量已查看的短信浪费存储空间,节省设备存储空间,提高设备性能。The method, device, device and storage medium for deleting information short messages provided by the present invention, the user equipment pre-opens the automatic deletion function for the received short message of the specified type, and completes the setting operation after detecting the short message of the specified type When the set operation time is completed and the preset deletion time is reached, the short message will be deleted, so as to avoid wasting storage space by storing a large number of viewed short messages in the user device, save device storage space, and improve device performance.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.

图1是根据一示例性实施例示出的短消息的删除方法实施例一的流程图。Fig. 1 is a flow chart of Embodiment 1 of a method for deleting a short message according to an exemplary embodiment.

图2是根据一示例性实施例示出的短消息的删除方法实施例二的流程图。Fig. 2 is a flow chart of Embodiment 2 of the method for deleting a short message according to an exemplary embodiment.

图3是根据一示例性实施例示出的短消息的删除方法实施例三的流程图。Fig. 3 is a flow chart of Embodiment 3 of the method for deleting a short message according to an exemplary embodiment.

图4是根据一示例性实施例示出的短消息的删除装置实施例一的框图。Fig. 4 is a block diagram of Embodiment 1 of an apparatus for deleting a short message according to an exemplary embodiment.

图5是根据一示例性实施例示出的短消息的删除装置实施例二的框图。Fig. 5 is a block diagram of Embodiment 2 of an apparatus for deleting a short message according to an exemplary embodiment.

图6是根据一示例性实施例示出的短消息的删除装置实施例三的框图。Fig. 6 is a block diagram of Embodiment 3 of an apparatus for deleting a short message according to an exemplary embodiment.

图7是根据一示例性实施例示出的一种用户设备的实体的框图。Fig. 7 is a block diagram showing entities of a user equipment according to an exemplary embodiment.

图8是根据一示例性实施例示出的一种用户设备1200的框图。Fig. 8 is a block diagram showing a user equipment 1200 according to an exemplary embodiment.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with aspects of the invention as recited in the appended claims.

在手机等用户设备的使用过程中,用户设备会接收到各种短消息,例如,营销短信、亲友发送的短信,网站推送的短信,网站登录发送的验证码短信等等,由于用户在使用过程中,并不一定能够及时的将已经查看的或者失去时效性的短信息删除,导致用户设备内存储了大量无用的短消息,占用空间,还影响检索效率,影响用户设备的运行速度。During the use of user equipment such as mobile phones, user equipment will receive various short messages, such as marketing text messages, text messages sent by relatives and friends, text messages pushed by websites, verification code text messages sent by website login, etc. In the process, it is not necessarily possible to delete the short messages that have been viewed or have lost their timeliness in a timely manner, resulting in the storage of a large number of useless short messages in the user equipment, occupying space, affecting retrieval efficiency, and affecting the operating speed of the user equipment.

本公开实施例提供一种短消息的删除方法,可自动删除用户设备中的短消息,用户可以自行设置一个预设的删除时长,对用户设备中的短信息进行自动删除。The embodiment of the present disclosure provides a short message deletion method, which can automatically delete the short message in the user equipment, and the user can set a preset deletion time length to automatically delete the short message in the user equipment.

请参考图1,图1是根据一示例性实施例示出的短消息的删除方法实施例一的流程图,该方案在用户设备中执行,至少包括以下步骤:Please refer to FIG. 1. FIG. 1 is a flow chart of Embodiment 1 of a method for deleting a short message according to an exemplary embodiment. The solution is executed in a user equipment and includes at least the following steps:

在步骤S101中,接收指定类型的短消息,其中,预先根据用户的指示针对所述指定类型的短消息开启自动删除功能。In step S101, a short message of a specified type is received, wherein an automatic deletion function is enabled for the short message of the specified type in advance according to a user's instruction.

在本步骤中,用户设备可根据用户的设置,对指定类型的短消息开启自动删除功能。用户设备接收不同的网络服务器发送的短消息,例如:该短消息可以是某网站推送的通知消息,或者在用户触发下发送的验证码消息,也可以是其他联系人发送的短信消息等等,对此不做限制。In this step, the user equipment can enable the automatic deletion function for short messages of a specified type according to user settings. The user equipment receives short messages sent by different network servers. For example, the short message can be a notification message pushed by a certain website, or a verification code message sent by a user trigger, or a short message message sent by other contacts, etc. There is no restriction on this.

在步骤S102中,确定对所述指定类型的短消息完成设定操作时,在对所述指定类型的短消息的完成设定操作时长达到预设的删除时长时,将所述指定类型的短消息删除,其中所述短消息的完成设定操作时长为对所述指定类型短消息完成设定操作时刻开始到当前时刻的时长。In step S102, when it is determined that the setting operation for the short message of the specified type is completed, when the time for completing the setting operation for the short message of the specified type reaches the preset deletion time length, the short message of the specified type is deleted. Message deletion, wherein the duration for completing the setting operation of the short message is the duration from the moment when the setting operation is completed for the specified type of short message to the current moment.

在本步骤中,对指定类型的短消息,用户设备可进行检测,检测该指定类型的短消息是否被执行设定操作,例如被查看,或者被复制,或者其他用户已经获取短消息的信息的操作等,对此本方案不做限制。在检测到已经对指定类型的短消息完成了设定的操作时,用户设备可根据预设的自动删除功能将该短消息删除,可在完成设定操作立刻删除,也可以在完成设定操作时长达到预设删除时长后进行删除。In this step, the user equipment can detect the short message of the specified type, and detect whether the short message of the specified type has been set up, such as viewed, copied, or other users have obtained the information of the short message operation, etc., this solution does not limit it. When it is detected that the setting operation has been completed for the short message of the specified type, the user equipment can delete the short message according to the preset automatic deletion function, which can be deleted immediately after the setting operation is completed, or can be It will be deleted after the time reaches the preset deletion time.

以设定操作为查看短消息,或者短消息已显示为例,在用户操作打开用户设备的自动删除短消息的功能之后,或者用户设备系统配置了该功能时,用户设备可对接收到的短消息进行检测,检测存储的短消息是否已经显示内容给用户,这里的显示内容指的是短消息的状态由未读变更为已读,则确定该短消息已经显示内容,该步骤是为了确认短消息是否已经被用户查看,以便进行后续处理。Taking the setting operation as viewing short messages, or the short message has been displayed as an example, after the user operates the function of automatically deleting short messages on the user equipment, or the user equipment system configures this function, the user equipment can check the received short message The message is detected, and whether the stored short message has been displayed to the user is detected. The displayed content here means that the status of the short message has changed from unread to read, and then it is determined that the content of the short message has been displayed. This step is to confirm the content of the short message. Whether the message has been viewed by the user for subsequent processing.

可选的,用户设备接收到短消息之后,可以自动显示该短消息的内容,也可以在用户的触发下显示该短消息的内容,对此本方案也不做限制。Optionally, after receiving the short message, the user equipment may automatically display the content of the short message, or may display the content of the short message under the trigger of the user, and this solution is not limited to this.

如果用户设备检测某条短消息还未显示内容,则确定用户还未查看该短消息,则不作处理即可。如果用户设备检测到短消息的内容已经显示,即短消息的状态为已读状态,则确定用户已经查看该短消息,获取到需要的信息,可将该短消息删除,以节省用户设备的存储空间。具体的删除方式可以是检测到短消息已显示内容后直接删除,也可以在短消息被查看后的一段时间之后再进行删除,即在短消息的被浏览时长达到预设的短消息删除时长之后,将该条短消息进行删除。If the user equipment detects that the content of a certain short message has not been displayed, it is determined that the user has not viewed the short message, and then no processing is required. If the user equipment detects that the content of the short message has been displayed, that is, the status of the short message is a read state, then it is determined that the user has checked the short message, obtained the required information, and can delete the short message to save the storage of the user equipment space. The specific deletion method can be to delete the short message directly after detecting that the content of the short message has been displayed, or to delete the short message after a period of time after the short message is viewed, that is, after the short message is browsed for a preset short message deletion time. , to delete the short message.

上述的方案中,执行设定操作时长是短消息从被执行设定操作时开始到当下的时长,并不是持续被操作的时间。该短消息删除时长可以根据用户的实际需要进行设置,例如:在短消息读取之后立即删除,则可以将该删除时长设置为0;或者设置为五分钟,十分钟,一个小时,几个小时,或者几天等时长。用户设备对短消息的状态变化时间进行记录,并在短消息的被执行设定操作时长达到设置的短消息删除时长时将该短消息删除。In the above solution, the duration for performing the setting operation is the duration from when the setting operation is performed to the present time of the short message, not the time during which the operation continues. The short message deletion time can be set according to the actual needs of the user, for example: if the short message is deleted immediately after reading, the deletion time can be set to 0; or set to five minutes, ten minutes, one hour, several hours , or a few days and so on. The user equipment records the state change time of the short message, and deletes the short message when the set operation time of the short message reaches the set short message deletion time.

本实施例提供的短消息的删除方法,用户设备对接收到的指定类型的短消息预先开启自动删除功能,在检测到对该指定类型的短消息完成设定操作时,在完成设定操作时长达到预设的删除时长时,将该短消息删除,避免用户设备中存储大量已查看的短信浪费存储空间,节省设备存储空间,提高设备性能In the short message deletion method provided in this embodiment, the user equipment pre-activates the automatic deletion function for the received short message of the specified type, and when it detects that the setting operation has been completed for the short message of the specified type, the user equipment completes the setting operation. When the preset deletion time is reached, the short message will be deleted, avoiding the waste of storage space by storing a large number of viewed short messages in the user's device, saving device storage space, and improving device performance

本公开实施例提供另一种短消息的删除方法。该方法是对图1所示实施例的补充说明。The embodiment of the present disclosure provides another short message deletion method. This method is a supplementary description to the embodiment shown in FIG. 1 .

请参考图2,图2是根据一示例性实施例示出的短消息的删除方法实施例二的流程图。图1所示实施例中S101之前,该方案还包括:Please refer to FIG. 2 . FIG. 2 is a flow chart of Embodiment 2 of a method for deleting a short message according to an exemplary embodiment. Before S101 in the embodiment shown in Figure 1, the scheme also includes:

在步骤S201中,接收用户输入的针对指定类型的短消息自动删除设置指令。In step S201, a setting instruction for automatically deleting short messages of a specified type input by a user is received.

在步骤S202中,根据所述指定类型的短消息自动删除设置指令,开启所述指定类型的短消息自动删除功能。In step S202, according to the setting instruction for automatically deleting short messages of the specified type, the function of automatically deleting short messages of the specified type is enabled.

可选的,步骤S203中,获取用户输入的时长,并将所述时长设置为所述预设的删除时长。Optionally, in step S203, the duration input by the user is obtained, and the duration is set as the preset deletion duration.

在上述步骤中,为了能够实现图1所示实施例中的技术方案,在用户设备的系统设置中提供用于打开短消息自动删除功能的接口,用户可根据实际需要进行操作设置,在需要自动删除短消息节省存储空间时,点击开启该功能,对用户设备来说,接收用户输入的短消息自动删除设置指令,并根据该短消息自动删除设置指令打开该功能,具体实现中可对指定类型的短消息设置该功能。同样的,在不需要该功能时候,用户设备根据用户的操作将该短消息自动删除功能关闭即可。In the above steps, in order to realize the technical solution in the embodiment shown in Figure 1, an interface for opening the automatic deletion function of short messages is provided in the system settings of the user equipment, and the user can perform operation settings according to actual needs. When deleting short messages to save storage space, click to enable this function. For the user equipment, it will receive the short message automatic deletion setting command input by the user, and open this function according to the short message automatic deletion setting command. In the specific implementation, the specified type The short message to set this function. Similarly, when the function is not needed, the user equipment only needs to disable the function of automatically deleting the short message according to the user's operation.

进一步地,上述的删除时长也可以根据用户的需求进行设置,例如:可以将删除时长设置为零,即在短消息被执行设定操作后立刻将该短消息删除,也可以将删除时长设置为大于零的任意时长,在短消息执行完设定操作持续该删除时长后将其删除,有效提高用户体验。Further, the above-mentioned deletion duration can also be set according to the needs of the user, for example: the deletion duration can be set to zero, that is, the short message will be deleted immediately after the short message is executed, or the deletion duration can be set to For any duration greater than zero, the short message will be deleted after the set operation is performed and lasts for the deletion duration, which effectively improves user experience.

本公开实施例提供的短消息的删除方法,用户设备的系统设置提供专用于设置短消息自动删除功能的接口,用户可根据实际需要选择是否打开该功能,并且可以根据需要设置短消息删除时长,进行个性化设置,有效提高用户体验。In the method for deleting short messages provided by the embodiments of the present disclosure, the system settings of the user equipment provide an interface dedicated to setting the automatic deletion function of short messages. The user can choose whether to enable this function according to actual needs, and can set the short message deletion time according to needs. Personalize settings to effectively improve user experience.

在上述实施例的基础上,下面以短消息为验证码消息、用户设备为手机为例,对本公开实施例提供的短消息的删除方法的具体实现方案进行说明。该方法是对图1和图2所示的方法的进一步扩展和优化。On the basis of the foregoing embodiments, the specific implementation scheme of the short message deletion method provided by the embodiments of the present disclosure will be described below by taking the short message as a verification code message and the user equipment as a mobile phone as an example. This method is a further extension and optimization of the methods shown in Figures 1 and 2.

请参考图3,图3是根据一示例性实施例示出的短消息的删除方法实施例三的流程图。该短消息的删除方法具体包括以下步骤:Please refer to FIG. 3 . FIG. 3 is a flow chart of Embodiment 3 of a method for deleting a short message according to an exemplary embodiment. The deletion method of this short message specifically comprises the following steps:

S301:接收验证码消息。S301: Receive a verification code message.

S302:检测确认验证码消息已开启自动删除功能。S302: Detecting and confirming that the verification code message has an automatic deletion function enabled.

在上述步骤中,当接收到的消息为验证码消息时,用户设备检测是否已经对该验证码消息开启自动删除功能,若是,则继续执行后续过程,若否,则停止后续动作。In the above steps, when the received message is a verification code message, the user equipment detects whether the automatic deletion function has been enabled for the verification code message, and if so, continues to execute the subsequent process, and if not, stops the subsequent action.

针对验证码消息,常用的获取其中有效信息的方式包括查看,复制和或在网站上输入验证码等,因此,该方案的实现中,至少包括以下两种情况:For verification code messages, common ways to obtain valid information include viewing, copying, or entering verification codes on websites, etc. Therefore, the implementation of this solution includes at least the following two situations:

第一种,指定类型的短消息包括验证码消息,则所述设定操作包括验证码消息中的验证码被查看并复制的操作。In the first type, the specified type of short message includes a verification code message, and the setting operation includes checking and copying the verification code in the verification code message.

第二种,短消息包括验证码消息,则设定操作包括验证码消息中的验证码被查看且已被验证对应的网站所获取的操作。In the second type, the short message includes a verification code message, and the setting operation includes an operation in which the verification code in the verification code message is checked and obtained by a corresponding website after verification.

用户通过在网页上进行操作,例如输入手机号码以便能够通过手机获取到验证码消息,手机接收到验证码消息,可直接进行显示,或者在用户操作的触发下显示该验证码消息以便用户能够得到验证码,用户获取验证码的方式除了直接读取,还可以在手机上进行复制操作,例如长按验证码消息中的验证码,点击弹出的操作中的复制操作,实现对验证码的复制,可直接粘贴在需要输入验证码的位置,或者其他可备份验证码的位置,还可以通过别的方式获取验证码消息中的验证码,对此本方案不做限制。The user performs operations on the webpage, such as entering a mobile phone number, so that the verification code message can be obtained through the mobile phone, and the mobile phone can directly display the verification code message after receiving the verification code message, or display the verification code message under the trigger of the user operation so that the user can get Verification code, in addition to directly reading the verification code, the user can also perform a copy operation on the mobile phone, such as long pressing the verification code in the verification code message, and clicking the copy operation in the pop-up operation to realize the copying of the verification code. It can be directly pasted in the place where the verification code needs to be entered, or other places where the verification code can be backed up, and the verification code in the verification code message can also be obtained in other ways, which is not limited by this solution.

S303:检测所述验证码消息中的验证码是否被复制。S303: Detect whether the verification code in the verification code message is copied.

S304:若所述验证码消息已显示内容,且所述验证码消息中的验证码已被复制,则在所述验证码消息的被浏览时长达到预设的删除时长时,将所述验证码消息删除。S304: If the content of the verification code message has been displayed, and the verification code in the verification code message has been copied, when the browsing time of the verification code message reaches the preset deletion time, delete the verification code Message deleted.

本方案中,S303和S304,与S305和S306为并列的方案,择一执行即可。In this scheme, S303 and S304, and S305 and S306 are parallel schemes, and only one of them can be executed.

在上述S303和S304,即上述第一种情况的具体实现中,手机对存储的验证码消息进行检测,检测该验证码消息是否显示过内容,由于显示了验证码消息,依然有可能存在用户并没有读取到验证码或者忘记验证码的情况,因此可进一步检测该验证码消息中的验证码是否被复制过,即手机是否对验证码进行了复制操作,若该验证码消息是已读状态,且验证码被复制,则确定用户已经有效的获取了其中的验证码,该验证码消息被删除也不影响用户的后续操作,此时可以在该验证码消息的被浏览时长达到预设删除时长时,将该验证码消息删除,节省手机的存储空间,提高手机的处理速率。In the above S303 and S304, that is, in the specific implementation of the first case above, the mobile phone detects the stored verification code message to detect whether the content of the verification code message has been displayed. Since the verification code message is displayed, there may still be users and If the verification code is not read or forgotten, it can be further detected whether the verification code in the verification code message has been copied, that is, whether the mobile phone has copied the verification code. If the verification code message is in the read state , and the verification code is copied, it is determined that the user has effectively obtained the verification code, and the deletion of the verification code message will not affect the user's subsequent operations. At this time, the verification code message can be deleted when the browsing time reaches the preset When the time is long, delete the verification code message to save the storage space of the mobile phone and improve the processing speed of the mobile phone.

S305:检测所述验证码消息对应的网站是否已获取到验证码,并根据所述验证码进行网页跳转。S305: Detect whether the website corresponding to the verification code message has obtained the verification code, and perform a web page jump according to the verification code.

S306:若所述验证码消息已显示内容,且所述验证码消息中的验证码已被网站获取,并根据所述验证码进行网页跳转,则在所述验证码消息的被浏览时长达到预设的删除时长时,将所述验证码消息删除S306: If the content of the verification code message has been displayed, and the verification code in the verification code message has been obtained by the website, and the webpage is jumped according to the verification code, then when the verification code message is browsed for a period of Delete the verification code message after the preset deletion time

在上述S305和S306,即上述第一种情况的具体实现中,无论是通过验证码消息是否显示,或者验证码是否被复制,都有可能存储在验证码没有被正确填写在网页中的可能,因此本方案提供一种更具体的实现方式,当用户是通过手机进行网页操作,触发的发送验证码消息时,在检测验证码消息是否显示之后,或者检测验证码是否被复制之后,或者直接检测需要输入验证码的网站是否已经获取到验证码并跳转,若检测到网站已经获取到正确的验证码并跳转到下一步的页面,则确定该验证码已经失效,对应的验证码消息可删除,此时可以直接将该验证码消息删除,也可以在验证码消息的被浏览时长达到预设的删除时长时,将该验证码消息删除。In the above S305 and S306, that is, in the specific implementation of the above first case, whether the verification code message is displayed or whether the verification code is copied, it is possible that the verification code is not correctly filled in the webpage. Therefore, this solution provides a more specific implementation method. When the user uses the mobile phone to operate the web page and triggers the sending of the verification code message, after detecting whether the verification code message is displayed, or after detecting whether the verification code has been copied, or directly detecting Whether the website that needs to enter the verification code has obtained the verification code and jumped to it. If it is detected that the website has obtained the correct verification code and jumped to the next page, it is determined that the verification code has expired, and the corresponding verification code message can be Delete, at this time, the verification code message can be deleted directly, or the verification code message can be deleted when the verification code message is browsed for a preset deletion time.

本公开实施例提供的短消息的删除方法,用户可自行设置一个删除时长,针对验证码消息,可在检测到验证码被复制,或者网站正确获取到验证码并跳转页面后,在预设的短消息删除时长到达时,将该验证码消息删除,节省用户设备的存储空间,避免误删导致不能获取到有效信息的问题,提高用户体验。In the method for deleting a short message provided by the embodiment of the present disclosure, the user can set a deletion duration by himself. For the verification code message, after detecting that the verification code has been copied, or after the website correctly obtains the verification code and jumps to the page, the user can set When the short message deletion duration reaches, the verification code message is deleted, saving the storage space of the user device, avoiding the problem that valid information cannot be obtained due to accidental deletion, and improving user experience.

下面在上述几个实施例的基础上,以验证码消息为例,提供一种自动删除短消息的具体实现方案,在该方案中,手机接收到验证码消息时,在显示验证码消息时,用户通过按钮操作,可选择复制并删除该验证码消息,即复制的同时将该验证码消息删除。或者在复制完验证码后,时长达到短消息删除时长之后再删除该验证码消息,可节省空间并加快短信的检索速度。具体的实现步骤如下:Below on the basis of above-mentioned several embodiments, take verification code message as example, provide a kind of specific implementation scheme of automatically deleting short message, in this scheme, when mobile phone receives verification code message, when displaying verification code message, The user can choose to copy and delete the verification code message through button operation, that is, delete the verification code message while copying. Or after copying the verification code, delete the verification code message after the time reaches the short message deletion time, which can save space and speed up the retrieval speed of the short message. The specific implementation steps are as follows:

步骤1、在设置里让用户设置一个删除验证码消息的删除时长。Step 1. In the settings, let the user set a deletion time for deleting the verification code message.

步骤2、当收到验证码消息之后,给用户弹出一个窗口,里面显示收到的验证码消息信和“复制并删除”按钮。Step 2. After receiving the verification code message, a window pops up for the user, which displays the received verification code message letter and the "Copy and Delete" button.

步骤3、当用户点选“复制并删除”后,将验证码复制到剪贴板,并在短消息删除时长之后自动删除该验证码消息。Step 3. After the user clicks "Copy and Delete", the verification code is copied to the clipboard, and the verification code message is automatically deleted after the short message is deleted.

步骤4、如果删除时长为零,则在复制的同时删除该验证码消息。Step 4. If the deletion duration is zero, delete the verification code message while copying.

即所述用户输入的时长为零,设置的删除时长为零,通过该种方式,可自动删除用户中无用的验证码短信,节省空间,加快短信息的检索速度。That is, the duration entered by the user is zero, and the deletion duration is set to zero. In this way, useless verification code short messages among users can be automatically deleted, saving space and speeding up the retrieval of short messages.

本公开提供一种短消息的删除装置,该装置可以用于执行图1至图4所示的方法中的用户设备的技术方案。The present disclosure provides a device for deleting a short message, which can be used to execute the technical solutions of the user equipment in the methods shown in FIGS. 1 to 4 .

请参考图4,图4是根据一示例性实施例示出的短消息的删除装置实施例一的框图。该短消息的删除装置10,包括:Please refer to FIG. 4 , which is a block diagram of Embodiment 1 of an apparatus for deleting a short message according to an exemplary embodiment. The deletion device 10 of this short message comprises:

第一接收模块11,被配置为接收指定类型的短消息,其中,预先根据用户的指示针对所述指定类型的短消息开启自动删除功能;The first receiving module 11 is configured to receive a short message of a specified type, wherein the automatic deletion function is enabled for the short message of the specified type according to the user's instruction in advance;

第一处理模块12,被配置为确定对所述指定类型的短消息完成设定操作时,在对所述指定类型的短消息的完成设定操作时长达到预设的删除时长时,将所述指定类型的短消息删除,其中所述短消息的完成设定操作时长为对所述指定类型短消息完成设定操作时刻开始到当前时刻的时长。The first processing module 12 is configured to, when it is determined that the setting operation is completed for the short message of the specified type, when the time for completing the setting operation for the short message of the specified type reaches a preset deletion time length, the A short message of a specified type is deleted, wherein the duration of the completion of the setting operation of the short message is the time period from the time of completing the setting operation of the short message of the specified type to the current time.

可选的,所述第一处理模块完成的所述设定操作包括短消息由未读状态更新为已读状态的查看操作。Optionally, the setting operation completed by the first processing module includes a viewing operation of updating the status of the short message from an unread status to a read status.

本实施例提供的短消息的删除装置,用于执行前述任一方法实施例中用户设备的技术方案,其实现原理和技术效果类似,用户设备对指定类型的短消息开启自动删除功能,在接收到的短消息被检测到已经执行设定操作的时间达预设的删除时长时,将该短消息删除,避免用户设备中存储大量已查看的短信浪费存储空间,节省设备存储空间,提高设备性能。The device for deleting short messages provided in this embodiment is used to implement the technical solution of the user equipment in any of the aforementioned method embodiments. When the received short message is detected and the set operation time has reached the preset deletion time, the short message will be deleted, so as to avoid storing a large number of viewed short messages in the user device to waste storage space, save device storage space, and improve device performance .

在上述图4所示的实施例的基础上,图5是根据一示例性实施例示出的短消息的删除装置实施例二的框图。参照图5,该短消息的删除装置10还包括:On the basis of the embodiment shown in FIG. 4 above, FIG. 5 is a block diagram of Embodiment 2 of an apparatus for deleting a short message according to an exemplary embodiment. Referring to Fig. 5, the deletion device 10 of this short message also includes:

第二接收模块13,被配置为接收用户输入的针对指定类型的短消息自动删除设置指令;The second receiving module 13 is configured to receive the setting instruction for automatically deleting the short message of the specified type input by the user;

第二处理模块14,被配置为根据所述指定类型的短消息自动删除设置指令,开启所述指定类型的短消息自动删除功能。The second processing module 14 is configured to enable the function of automatically deleting short messages of the specified type according to the setting instruction for automatically deleting short messages of the specified type.

在上述图4或图5所示的实施例的基础上,图6是根据一示例性实施例示出的短消息的删除装置实施例三的框图。参照图6,该短消息的删除装置10还包括:On the basis of the embodiment shown in FIG. 4 or FIG. 5 above, FIG. 6 is a block diagram of Embodiment 3 of an apparatus for deleting a short message according to an exemplary embodiment. Referring to Fig. 6, the deletion device 10 of this short message also includes:

第三处理模块15,被配置为获取用户输入的时长,并将所述时长设置为所述预设的删除时长。The third processing module 15 is configured to acquire the duration input by the user, and set the duration as the preset deletion duration.

在上述两个方案中,为了装置能够自动对已经查看的短消息自动进行删除,在系统设置中提供接口,用于设置短消息自动删除的功能打开或者关闭,在需要开启该功能时进行操作,第一接收模块接收用户的设置指令,第三处理模块将短消息自动删除功能开启。在需要关闭该功能时可根据用户操作将该短消息自动删除功能关闭。并且用户可以根据实际需求对删除端消息的时长进行设置,有效提高用户体验。In the above two schemes, in order for the device to automatically delete the viewed short messages, an interface is provided in the system settings for setting the function of automatic deletion of short messages on or off, and to operate when the function needs to be turned on. The first receiving module receives the user's setting instruction, and the third processing module enables the function of automatically deleting short messages. When the function needs to be turned off, the short message automatic deletion function can be turned off according to the user operation. And the user can set the duration of deleting the message according to actual needs, which effectively improves the user experience.

可选的,所述指定类型的短消息包括验证码消息,则所述设定操作包括验证码消息中的验证码被查看并复制的操作。Optionally, the specified type of short message includes a verification code message, and the setting operation includes checking and copying the verification code in the verification code message.

本公开实施例提供的短消息的删除装置中,当该短消息是验证码消息时,除了检测验证码消息是否被显示,还可以通过检测验证码消息中的验证码是不是被复制,即设定操作为被查看并复制,如果验证码已经被查看并且被复制,则可在设定操作执行时间到达预设的删除时长时,将该验证码消息删除,提高短消息删除的精确度,避免用户没获取到有效信息,提高用户体验。In the device for deleting a short message provided by an embodiment of the present disclosure, when the short message is a verification code message, in addition to detecting whether the verification code message is displayed, it can also detect whether the verification code in the verification code message is copied, that is, set The specified operation is to be viewed and copied. If the verification code has been viewed and copied, the verification code message can be deleted when the execution time of the set operation reaches the preset deletion time, so as to improve the accuracy of short message deletion and avoid Users do not get effective information, improve user experience.

可选的,所述短消息包括验证码消息,则设定操作包括验证码消息中的验证码被查看且已被验证对应的网站所获取的操作。Optionally, the short message includes a verification code message, and the setting operation includes an operation in which the verification code in the verification code message is checked and verified by the corresponding website.

可选的,所述用户输入的时长为零。Optionally, the duration input by the user is zero.

本公开实施例提供的短消息的删除装置,当该短消息是验证码消息,设定操作除了可以是被查看并复制,还可以是网站的获取操作,即检测网站是否获取了验证码,例如在网页上输入了验证码之后,网页根据验证码进行了跳转,则可以确定验证码已经被获取,则第二处理模块可以将该验证码消息删除,避免误删导致不能获取到有效信息的问题,提高用户体验。In the device for deleting short messages provided by the embodiments of the present disclosure, when the short message is a verification code message, the setting operation can not only be viewed and copied, but also an acquisition operation of the website, that is, to detect whether the website has obtained the verification code, for example After inputting the verification code on the webpage, the webpage jumps according to the verification code, then it can be determined that the verification code has been obtained, and then the second processing module can delete the verification code message, so as to avoid the failure to obtain valid information due to mistaken deletion problems and improve user experience.

关于上述各个实施例中的短消息的删除装置,可以被实现为一种用户设备,其中各个模块执行操作的具体方式已经在有关方法的实施例中进行了详细描述,此处将不做详细阐述说明。即以上描述了用户设备的内部功能模块和结构示意。The device for deleting short messages in each of the above embodiments can be implemented as a user equipment, and the specific ways in which each module performs operations have been described in detail in the embodiments of the relevant methods, and will not be elaborated here illustrate. That is, the internal functional modules and schematic structure of the user equipment are described above.

请参考图7,图7是根据一示例性实施例示出的一种用户设备的实体的框图,如图7所示,该用户设备可以具体实现为:计算机指令,被配置为控制计算机指令执行的处理器,被配置为存储处理器计算机指令的存储器以及接收器;Please refer to FIG. 7. FIG. 7 is a block diagram of an entity of a user equipment according to an exemplary embodiment. As shown in FIG. 7, the user equipment may be embodied as: computer instructions configured to control the execution of computer instructions a processor, a memory configured to store processor computer instructions, and a receiver;

所述接收器被配置为接收指定类型的短消息,其中,预先根据用户的指示针对所述指定类型的短消息开启自动删除功能;The receiver is configured to receive a specified type of short message, wherein the automatic deletion function is enabled for the specified type of short message in advance according to the user's instruction;

所述处理器被配置为确定对所述指定类型的短消息完成设定操作时,在对所述指定类型的短消息的完成设定操作时长达到预设的删除时长时,将所述指定类型的短消息删除,其中所述短消息的完成设定操作时长为对所述指定类型短消息完成设定操作时刻开始到当前时刻的时长。The processor is configured to, when it is determined that the setting operation is completed for the short message of the specified type, when the time for completing the setting operation for the short message of the specified type reaches a preset deletion time length, delete the short message of the specified type The short message deletion of the short message, wherein the duration for completing the setting operation of the short message is the duration from the time when the setting operation is completed for the specified type of short message to the current time.

在上述用户设备的实施例中,应理解,处理器可以是中央处理单元(英文:CentralProcessing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:DigitalSignal Processor,简称:DSP)、专用集成电路(英文:Application Specific IntegratedCircuit,简称:ASIC)等。通用处理器可以是微处理器或者处理器也可以是任何常规的处理器等,而前述的存储器可以是只读存储器(英文:read-only memory,缩写:ROM)、随机存取存储器(英文:random access memory,简称:RAM)、快闪存储器、硬盘或者固态硬盘。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In the above embodiment of the user equipment, it should be understood that the processor may be a central processing unit (English: Central Processing Unit, CPU for short), and may also be other general-purpose processors, digital signal processors (English: DigitalSignal Processor, short: DSP), Application Specific Integrated Circuit (English: Application Specific Integrated Circuit, referred to as: ASIC) and so on. General-purpose processor can be microprocessor or processor also can be any conventional processor etc., and aforementioned memory can be read-only memory (English: read-only memory, abbreviation: ROM), random access memory (English: random access memory, referred to as: RAM), flash memory, hard disk or solid state disk. The steps of the methods disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.

本申请还提供一种计算机存储介质,其上存储有可执行的计算机指令,所述计算机指令被处理器执行(上述方案中用户设备侧的技术方案)以下方法:The present application also provides a computer storage medium, on which executable computer instructions are stored, and the computer instructions are executed by a processor (the technical solution on the user equipment side in the above-mentioned solution) in the following method:

接收指定类型的短消息,其中,预先根据用户的指示针对所述指定类型的短消息开启自动删除功能;receiving a short message of a specified type, wherein the automatic deletion function is enabled for the short message of the specified type in advance according to the user's instruction;

确定对所述指定类型的短消息完成设定操作时,在对所述指定类型的短消息的完成设定操作时长达到预设的删除时长时,将所述指定类型的短消息删除,其中所述短消息的完成操作时长为对所述指定类型短消息完成设定操作时刻开始到当前时刻的时长。When it is determined that the setting operation is completed for the short message of the specified type, when the time for completing the setting operation for the short message of the specified type reaches the preset deletion time length, the short message of the specified type is deleted, wherein the short message of the specified type The operation completion duration of the short message is the duration from the time when the setting operation is completed for the short message of the specified type to the current time.

请参考图8,图8是根据一示例性实施例示出的一种用户设备1200的框图。例如,该用户设备可以是用户的手机、通话平板等可接收短消息的设备。Please refer to FIG. 8 , which is a block diagram of a user equipment 1200 according to an exemplary embodiment. For example, the user equipment may be a user's mobile phone, a calling tablet, or other equipment capable of receiving short messages.

参照图8,用户设备1200可以包括以下一个或多个组件:处理组件1202,存储器1204,电源组件1206,多媒体组件1208,音频组件1210,输入/输出(I/O)的接口1212,传感器组件1214,以及通信组件1216。8, user equipment 1200 may include one or more of the following components: processing component 1202, memory 1204, power supply component 1206, multimedia component 1208, audio component 1210, input/output (I/O) interface 1212, sensor component 1214 , and the communication component 1216.

处理组件1202通常控制用户设备1200的整体操作,诸如与显示,数据通信,多媒体操作和记录操作相关联的操作。处理组件1202可以包括一个或多个处理器1220来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1202可以包括一个或多个模块,便于处理组件1202和其他组件之间的交互。例如,处理组件1202可以包括多媒体模块,以方便多媒体组件1208和处理组件1202之间的交互。The processing component 1202 generally controls the overall operations of the user device 1200, such as those associated with display, data communication, multimedia operations, and recording operations. The processing component 1202 may include one or more processors 1220 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 1202 may include one or more modules that facilitate interaction between processing component 1202 and other components. For example, processing component 1202 may include a multimedia module to facilitate interaction between multimedia component 1208 and processing component 1202 .

存储器1204被配置为存储各种类型的数据以支持在用户设备1200的操作。这些数据的示例包括用于在用户设备1200上操作的任何应用程序或方法的指令,各类数据,消息,图片,视频等。存储器1204可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 1204 is configured to store various types of data to support operations at the user equipment 1200 . Examples of these data include instructions for any application or method operating on the user equipment 1200, various types of data, messages, pictures, videos, and the like. The memory 1204 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件1206为用户设备1200的各种组件提供电力。电源组件1206可以包括电源管理系统,一个或多个电源,及其他与为用户设备1200生成、管理和分配电力相关联的组件。The power supply component 1206 provides power to various components of the user equipment 1200 . Power components 1206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for user device 1200 .

多媒体组件1208包括在用户设备1200和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。The multimedia component 1208 includes a screen that provides an output interface between the user device 1200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or a swipe action, but also detect duration and pressure associated with the touch or swipe operation.

音频组件1210被配置为输出和/或输入音频信号。例如,音频组件1210包括一个麦克风(MIC),当用户设备1200处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1204或经由通信组件1216发送。在一些实施例中,音频组件1210还包括一个扬声器,用于输出音频信号。The audio component 1210 is configured to output and/or input audio signals. For example, the audio component 1210 includes a microphone (MIC), which is configured to receive an external audio signal when the user equipment 1200 is in an operation mode, such as a call mode, a recording mode and a speech recognition mode. Received audio signals may be further stored in memory 1204 or sent via communication component 1216 . In some embodiments, the audio component 1210 also includes a speaker for outputting audio signals.

I/O接口1212为处理组件1202和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。The I/O interface 1212 provides an interface between the processing component 1202 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like.

传感器组件1214包括一个或多个传感器,用于为用户设备1200提供各个方面的状态评估。例如,传感器组件1214可以检测到用户设备1200的打开/关闭状态,组件的相对定位,例如组件为用户设备1200的显示器和小键盘,传感器组件1214还可以检测用户设备1200或用户设备1200一个组件的位置改变,用户与用户设备1200接触的存在或不存在,用户设备1200方位或加速/减速和用户设备1200的温度变化。传感器组件1214可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1214还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,传感器组件1214还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor component 1214 includes one or more sensors for providing various aspects of status assessment for user equipment 1200 . For example, the sensor component 1214 can detect the open/closed state of the user device 1200, the relative positioning of components, such as the display and the keypad of the user device 1200, and the sensor component 1214 can also detect the user device 1200 or a component of the user device 1200. Changes in location, presence or absence of user contact with user device 1200 , user device 1200 orientation or acceleration/deceleration and temperature changes in user device 1200 . Sensor assembly 1214 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 1214 may also include optical sensors, such as CMOS or CCD image sensors, for use in imaging applications. In some embodiments, the sensor assembly 1214 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件1216被配置为便于用户设备1200和其他设备之间有线或无线方式的通信。用户设备1200可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件1216经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,通信组件1216还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 1216 is configured to facilitate wired or wireless communication between the user equipment 1200 and other devices. The user equipment 1200 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 1216 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,用户设备1200可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行短消息的删除方法,包括:In an exemplary embodiment, user equipment 1200 may be powered by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable Programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are implemented to perform the deletion method of the short message, including:

接收指定类型的短消息,其中,预先根据用户的指示针对所述指定类型的短消息开启自动删除功能;receiving a short message of a specified type, wherein the automatic deletion function is enabled for the short message of the specified type in advance according to the user's instruction;

确定对所述指定类型的短消息完成设定操作时,在对所述指定类型的短消息的完成设定操作时长达到预设的删除时长时,将所述指定类型的短消息删除,其中所述短消息的完成操作时长为对所述指定类型短消息完成设定操作时刻开始到当前时刻的时长。When it is determined that the setting operation is completed for the short message of the specified type, when the time for completing the setting operation for the short message of the specified type reaches the preset deletion time length, the short message of the specified type is deleted, wherein the short message of the specified type The operation completion duration of the short message is the duration from the time when the setting operation is completed for the short message of the specified type to the current time.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1204,上述指令可由终端设备1200的处理器1220执行以完成上述方法。例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 1204 including instructions, which can be executed by the processor 1220 of the terminal device 1200 to complete the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由权利要求书指出。Other embodiments of the invention will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present invention, these modifications, uses or adaptations follow the general principles of the present invention and include common knowledge or conventional technical means in the technical field not disclosed in this disclosure . The specification and examples are to be considered exemplary only, with the true scope and spirit of the invention indicated by the appended claims.

应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求书来限制。It should be understood that the present invention is not limited to the precise constructions which have been described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims (16)

  1. A kind of 1. delet method of short message, it is characterised in that applied to user equipment, including:
    The short message of specified type is received, wherein, the short message of the specified type is opened previously according to the indicator of user It is automatically deleted function;
    It is determined that when the short message to the specified type completes setting operation, set in the completion of the short message to the specified type Surely when operation duration reaches default deletion duration, the short message of the specified type is deleted, wherein the short message is complete A length of duration started to the specified type short message completion setting operation moment to current time during into setting operation.
  2. 2. according to the method for claim 1, it is characterised in that the setting operation is updated including short message by unread state Operation is checked for read states.
  3. 3. according to the method for claim 1, it is characterised in that methods described also includes:
    The short message for specified type for receiving user's input is automatically deleted setting instruction;
    Setting instruction is automatically deleted according to the short message of the specified type, the short message for opening the specified type is automatically deleted Function.
  4. 4. according to the method for claim 3, it is characterised in that methods described also includes:
    The duration of user's input is obtained, and the duration is arranged to the default deletion duration.
  5. 5. according to the method described in any one of Claims 1-4, it is characterised in that the short message of the specified type includes testing Code message is demonstrate,proved, then the setting operation includes the operation that the identifying code in identifying code message is checked and replicated.
  6. 6. according to the method described in any one of Claims 1-4, it is characterised in that the short message includes identifying code message, then The identifying code that setting operation includes in identifying code message is checked and has been verified the operation acquired in corresponding website.
  7. 7. according to the method for claim 4, it is characterised in that user input when a length of zero.
  8. A kind of 8. deletion device of short message, it is characterised in that including:
    First receiving module, be configured as receive specified type short message, wherein, previously according to user indicator to described The short message of specified type is opened and is automatically deleted function;
    First processing module, when being configured to determine that the short message completion setting operation to the specified type, to the finger Determine the short message of type completion setting operation duration reach it is default deletion duration when, the short message of the specified type is deleted Remove, wherein a length of during the completion setting operation of the short message start to the specified type short message completion setting operation moment To the duration at current time.
  9. 9. device according to claim 8, it is characterised in that the setting operation bag that the first processing module is completed Include short message and check operation by what unread state was updated to read states.
  10. 10. device according to claim 8, it is characterised in that described device also includes:
    Second receiving module, the short message for specified type for being configured as receiving user's input are automatically deleted setting instruction;
    Second processing module, it is configured as being automatically deleted setting instruction according to the short message of the specified type, opens the finger The short message for determining type is automatically deleted function.
  11. 11. device according to claim 10, it is characterised in that described device also includes:
    3rd processing module, is configured as obtaining the duration of user's input, and the duration is arranged into the default deletion Duration.
  12. 12. according to the device described in any one of claim 8 to 11, it is characterised in that the short message of the specified type includes Identifying code message, the then operation that the setting operation is checked and replicated including the identifying code in identifying code message.
  13. 13. according to the device described in any one of claim 8 to 11, it is characterised in that the short message includes identifying code message, The identifying code that then setting operation is included in identifying code message is checked and has been verified the operation acquired in corresponding website.
  14. 14. according to the device described in right 11, it is characterised in that user input when a length of zero.
  15. A kind of 15. user equipment, it is characterised in that including:Computer instruction, it is configured as the place that control computer instruction performs Device is managed, is configured as storing the memory and receiver of processor computer instruction;
    The receiver be configured as receive specified type short message, wherein, previously according to user indicator to the finger The short message unlatching for determining type is automatically deleted function;
    When the processor is configured to determine that the short message completion setting operation to the specified type, to the specified class When the completion setting operation duration of the short message of type reaches default deletion duration, the short message of the specified type is deleted, During the completion setting operation of wherein described short message it is a length of to the specified type short message complete the setting operation moment start to The duration at current time.
  16. 16. a kind of computer-readable storage medium, it is stored thereon with executable computer instruction, it is characterised in that the computer Instruction is executed by processor following methods:
    The short message of specified type is received, wherein, the short message of the specified type is opened previously according to the indicator of user It is automatically deleted function;
    It is determined that when the short message to the specified type completes setting operation, set in the completion of the short message to the specified type Surely when operation duration reaches default deletion duration, the short message of the specified type is deleted, wherein the short message is complete Into a length of duration started to the specified type short message completion setting operation moment to current time during operation.
CN201711026627.4A 2017-10-27 2017-10-27 Delet method, device, equipment and the storage medium of short message Pending CN107819944A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711026627.4A CN107819944A (en) 2017-10-27 2017-10-27 Delet method, device, equipment and the storage medium of short message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711026627.4A CN107819944A (en) 2017-10-27 2017-10-27 Delet method, device, equipment and the storage medium of short message

Publications (1)

Publication Number Publication Date
CN107819944A true CN107819944A (en) 2018-03-20

Family

ID=61603079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711026627.4A Pending CN107819944A (en) 2017-10-27 2017-10-27 Delet method, device, equipment and the storage medium of short message

Country Status (1)

Country Link
CN (1) CN107819944A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112533155A (en) * 2019-08-30 2021-03-19 腾讯科技(深圳)有限公司 Short message cleaning method, device, server and storage medium
CN112598377A (en) * 2020-12-16 2021-04-02 长沙市到家悠享网络科技有限公司 Item reminding method, system, device, equipment and storage medium
CN113037927A (en) * 2021-04-12 2021-06-25 珠海市魅族科技有限公司 Short message management method and device and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9026085B2 (en) * 2010-08-26 2015-05-05 John L. Rogitz Telephone messaging privacy
CN104935735A (en) * 2015-05-20 2015-09-23 深圳市万普拉斯科技有限公司 Information deletion method and system
CN106302528A (en) * 2016-09-28 2017-01-04 北京小米移动软件有限公司 Method for processing short messages and device
CN106302139A (en) * 2016-11-15 2017-01-04 青岛海信移动通信技术股份有限公司 Message treatment method and device
CN106603815A (en) * 2016-11-15 2017-04-26 青岛海信移动通信技术股份有限公司 Message processing method and device
CN106649850A (en) * 2016-12-30 2017-05-10 宇龙计算机通信科技(深圳)有限公司 Data automatic deleting method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9026085B2 (en) * 2010-08-26 2015-05-05 John L. Rogitz Telephone messaging privacy
CN104935735A (en) * 2015-05-20 2015-09-23 深圳市万普拉斯科技有限公司 Information deletion method and system
CN106302528A (en) * 2016-09-28 2017-01-04 北京小米移动软件有限公司 Method for processing short messages and device
CN106302139A (en) * 2016-11-15 2017-01-04 青岛海信移动通信技术股份有限公司 Message treatment method and device
CN106603815A (en) * 2016-11-15 2017-04-26 青岛海信移动通信技术股份有限公司 Message processing method and device
CN106649850A (en) * 2016-12-30 2017-05-10 宇龙计算机通信科技(深圳)有限公司 Data automatic deleting method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112533155A (en) * 2019-08-30 2021-03-19 腾讯科技(深圳)有限公司 Short message cleaning method, device, server and storage medium
CN112533155B (en) * 2019-08-30 2022-06-07 腾讯科技(深圳)有限公司 Short message cleaning method, device, server and storage medium
CN112598377A (en) * 2020-12-16 2021-04-02 长沙市到家悠享网络科技有限公司 Item reminding method, system, device, equipment and storage medium
CN113037927A (en) * 2021-04-12 2021-06-25 珠海市魅族科技有限公司 Short message management method and device and readable storage medium

Similar Documents

Publication Publication Date Title
CN106201491B (en) Mobile terminal and method and device for controlling remote assistance process of mobile terminal
CN107329743A (en) Methods of exhibiting, device and the storage medium of five application page
WO2016023341A1 (en) Application program corner mark adding method and apparatus
CN105511949B (en) Verification code filling method and device and mobile terminal
CN106484593A (en) Log processing method, device and electronic equipment
CN105956026A (en) Webpage rendering method and apparatus
KR20160059455A (en) Method and device for identifying encoding of web page
CN107229711A (en) Webpage display process and device
CN107483594A (en) Method and device for displaying updated items
CN107094094B (en) Application networking method and device and terminal
CN106598677A (en) Method and device for downloading installation package
CN106406956A (en) An application program installing method and device
CN107239351B (en) Paste method and device
US20160139907A1 (en) Electronic device and method for controlling electronic device
CN108491282A (en) The method and apparatus that webpage and operating system are communicated
KR102071530B1 (en) Apparatas and method for proposing a response manual of occurring denial in an electronic device
CN104951184A (en) Application program downloading method and device
CN107819944A (en) Delet method, device, equipment and the storage medium of short message
CN106407771A (en) Message management method and device
CN104951445A (en) Webpage processing method and device
CN115408695A (en) Attack detection method and device, storage medium and electronic equipment
CN109565463B (en) Method, device and terminal for processing short message verification code
EP3043252A1 (en) Method and electronic device for displaying electronic document
CN106484259A (en) Input method, device and equipment
CN107239307A (en) The display methods and device of version updating information

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: 20180320