Short message display method, device, mobile terminal and storage medium

By identifying and converting hyperlinks in SMS into plain text format, the problem of users accidentally triggering viruses or illegal links is solved, improving user experience and security.

CN116708648BActive Publication Date: 2025-08-12CHONGQING CHANGAN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310802923.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-30
Publication Date
2025-08-12
Estimated Expiration
2043-06-30

AI Technical Summary

Technical Problem

When processing text messages with hyperlink format, the prior art can easily cause users to accidentally trigger viruses or illegal links, affecting the user experience, and there is a risk of misjudgment by existing filtering or tagging methods.

Method used

By identifying the hyperlink format in the text message, converting it to a plain text format, and optionally recovering the hyperlink format after the user confirms it, avoiding direct access to potential risk links.

Benefits of technology

Improve user experience, prevent potentially dangerous links from being triggered by mistake, ensure user safety, and avoid problems such as filtering or improper tagging of text messages caused by misjudgment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116708648B_ABST
    Figure CN116708648B_ABST
Patent Text Reader

Abstract

The present application relates to the field of communication technology, and specifically to a text message display method, device, mobile terminal and storage medium. The method includes: receiving a target text message, and when determining that the target text message includes a target link, determining the target link type corresponding to the target link, the target link is in a first format, and when determining that the target link type is a first preset link type, processing the target link in the first format to obtain a target link in a second format, the first preset link type is used to characterize that there is an access risk for the target link, processing the target text message using the target link in the second format, obtaining a processed target text message, and displaying the processed target text message. When determining that there is an access risk for the target link, the present application does not need to filter the text message including the target link, and sets the target link to be inaccessible directly. Even if the user accidentally touches the target link, there is no risk, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method, device, mobile terminal and storage medium for displaying short messages. Background Art

[0002] Mobile terminals are now widely used. When using mobile terminals, it is inevitable to receive various kinds of information, the most important of which are text messages. Some text messages include links in the format of hyperlinks. If the link contains a virus or is an illegal link, when the mobile terminal accesses the link, it is very easy for the mobile terminal to be infected with the virus or the user who owns the mobile terminal is at risk of being illegally used, affecting the user's experience. At present, in order to improve the user's experience, when the mobile terminal receives a text message containing a link, it filters or marks the text message when it determines that the link contains a virus or is an illegal link. However, if the link is judged incorrectly, the text message is directly filtered out, resulting in the text message being unable to be restored, which still affects the user's experience. If the text message is only marked, because the link in the text message is still in the format of a hyperlink, when the user accidentally touches it, the mobile terminal will still be infected with a virus or the user who owns the mobile terminal will be at risk of being illegally used, affecting the user's experience. Summary of the Invention

[0003] One of the purposes of this application is to provide a method for displaying text messages to solve the problem in the prior art that the display of text messages after processing by mobile terminals affects the user experience; the second purpose of this application is to provide a text message display device; the third purpose of this application is to provide a mobile terminal; and the fourth purpose of this application is to provide a storage medium.

[0004] To achieve the above objectives, in a first aspect, the present application provides a method for displaying text messages, the method comprising:

[0005] Receive target SMS;

[0006] When it is determined that the target short message includes a target link, determining a target link type corresponding to the target link, the target link being in a first format, the first format being used to represent a hyperlink format;

[0007] When determining that the target link type is a first preset link type, processing the target link in the first format to obtain the target link in a second format, wherein the first preset link type is used to indicate that the target link has an access risk, and the second format is used to indicate a plain text format;

[0008] processing the target short message using the target link in the second format to obtain a processed target short message;

[0009] The processed target text message is displayed.

[0010] Furthermore, the method further includes:

[0011] After displaying the processed target short message, determining whether a first triggering operation for the target link in the second format is obtained;

[0012] When a first trigger operation for the target link in the second format is obtained, a first interface is displayed, wherein a first control is displayed in the first interface, and the first control is used to instruct to convert the target link in the second format into the target link in the first format;

[0013] When a second trigger operation for the first control in the first interface is acquired, the target link in the second format is converted into the target link in the first format.

[0014] Furthermore, determining that the target link type is a first preset link type includes:

[0015] Determine the target number corresponding to the target SMS;

[0016] When it is determined that the target number meets a preset number filtering condition, determining a target domain name from the target link, the preset number filtering condition including: the target number does not belong to a preset number blacklist and the target number length corresponding to the target number is a preset number length;

[0017] When it is determined that the target domain name does not belong to the preset domain name set, performing word segmentation processing on the target short message to obtain a target word segmentation set corresponding to the target short message;

[0018] Inputting the target word segmentation set into a trained SMS recognition model so that the SMS recognition model outputs a target SMS type corresponding to the target SMS;

[0019] When it is determined that the target SMS type is a preset SMS type, the target link type is determined to be the first preset link type, and the preset SMS type is used to indicate that risk information exists in the target SMS.

[0020] Furthermore, the method further includes:

[0021] When it is determined that the target link type is the second preset link type, generating a second interface according to the target number corresponding to the target SMS, the second interface being used to set permissions for the target number, the second preset link type being used to indicate that the target link is a push link;

[0022] When the authority setting information for the target number is acquired based on the second interface, the authority of the target number is set according to the authority setting information.

[0023] Furthermore, the method further includes:

[0024] When it is determined that the target link type is a second preset link type, determining a target group corresponding to the target SMS message according to the target domain name in the target link, wherein the second preset link type is used to indicate that the target link is a push link;

[0025] The displaying of the processed target short message includes:

[0026] The processed target short message is displayed in the target group.

[0027] Further, determining that the target link type is the second preset link type includes:

[0028] Determine the target number corresponding to the target SMS;

[0029] When it is determined that the target number meets a preset number filtering condition, determining a target domain name from the target link, the preset number filtering condition including: the target number does not belong to a preset number blacklist and the target number length corresponding to the target number is a preset number length;

[0030] When it is determined that the target domain name belongs to the preset domain name set, determining a set of received historical SMS messages corresponding to the target number according to the target number, wherein each historical SMS message in the set of historical SMS messages includes a historical link;

[0031] Determining a target number of the historical text messages included in the historical text message set;

[0032] When it is determined that the target number is greater than the preset number threshold, the target link type is determined to be the second preset link type.

[0033] Furthermore, the method further includes:

[0034] When it is determined that the target link type is neither the first preset link type nor the second preset link type, determining whether a third triggering operation for the target link is acquired within a preset time period;

[0035] When it is determined that no third trigger operation for the target link is obtained within the preset time period, generating a third interface according to the target SMS, the third interface being used to prompt processing of the target SMS;

[0036] The third interface is displayed.

[0037] In order to achieve the above-mentioned purpose, in a second aspect, the present application provides a text message display device, the device comprising:

[0038] Receiving module, used for receiving target SMS;

[0039] a determination module, configured to, when determining that the target short message includes a target link, determine a target link type corresponding to the target link, wherein the target link is in a first format, and the first format is used to represent a hyperlink format;

[0040] a processing module configured to, when determining that the target link type is a first preset link type, process the target link in the first format to obtain the target link in a second format, wherein the first preset link type is used to indicate that the target link has an access risk, and the second format is used to indicate a plain text format;

[0041] The processing module is further configured to process the target SMS message using the target link in the second format to obtain a processed target SMS message;

[0042] The display module is used to display the processed target short message.

[0043] In order to achieve the above-mentioned purpose, in a third aspect, the present application provides a mobile terminal, comprising: a processor and a memory, wherein the processor is configured to execute a text message display program stored in the memory to implement the text message display method as described above.

[0044] In order to achieve the above-mentioned purpose, in a fourth aspect, the present application provides a storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement the text message display method as described above.

[0045] Beneficial effects of the present application: The present application provides a text message display method, which receives a target text message, and when it is determined that the target text message includes a target link, determines the target link type corresponding to the target link, the target link is in a first format, and the first format is used to characterize the hyperlink format. When it is determined that the target link type is a first preset link type, the target link in the first format is processed to obtain a target link in a second format, and the first preset link type is used to characterize that the target link has an access risk, and the second format is used to characterize the plain text format. The target text message is processed using the target link in the second format to obtain a processed target text message, and the processed target text message is displayed. Therefore, when it is determined that the target link has an access risk, there is no need to filter the text message including the target link, and the target link is set to be inaccessible directly. Even if the user accidentally touches the target link, there is no risk, which improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 A flowchart of a method for displaying text messages provided in an embodiment of the present application;

[0047] Figure 2 A flowchart of another method for displaying text messages provided in an embodiment of the present application;

[0048] Figure 3 A flowchart of another method for displaying text messages provided in an embodiment of the present application;

[0049] Figure 4 A schematic structural diagram of a text message display device provided in an embodiment of the present application;

[0050] Figure 5 A schematic diagram of the structure of a mobile terminal provided in an embodiment of the present application;

[0051] In the above attached figures:

[0052] 10. Receiving module; 20. Determining module; 30. Processing module; 40. Display module;

[0053] 500, mobile terminal; 501, processor; 502, memory; 5021, operating system; 5022, application; 503, user interface; 504, network interface; 505, bus system. DETAILED DESCRIPTION

[0054] The following will describe the embodiments of the present application with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand the other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are only for the purpose of illustrating the present application and are not intended to limit the scope of protection of the present application.

[0055] To facilitate understanding of the embodiments of the present application, further explanation will be given below with reference to specific embodiments in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present application.

[0056] refer to Figure 1 , Figure 1 A flowchart of a method for displaying text messages provided in an embodiment of the present application. A method for displaying text messages provided in an embodiment of the present application comprises the following steps:

[0057] S101: Receive a target text message.

[0058] In this embodiment, the execution subject is a mobile terminal, which can be a mobile phone terminal. The target SMS is sent by the base station to the mobile terminal, and the target SMS has a corresponding target number, which can be understood as the mobile phone terminal number that sends the target SMS.

[0059] S102: When it is determined that the target short message includes a target link, a target link type corresponding to the target link is determined, where the target link is in a first format, and the first format is used to represent a hyperlink format.

[0060] In this embodiment, after receiving the target SMS, existing technologies can be used to identify whether the target SMS includes a target link. Existing technologies can be selected according to actual needs and will not be described in detail in this embodiment. When it is determined that the target SMS includes a target link, the target link type corresponding to the target link is determined to determine whether there is an access risk when accessing the target link in the target SMS. The existence of an access risk in accessing the target link can be understood as the presence of a virus in the target link, which will cause the mobile terminal to be infected with the virus when accessing the target link, or the target link is an illegal link, which will cause the user who owns the mobile terminal to be illegally accessed when accessing the target link. It should be noted that when the target SMS received by the mobile terminal includes a target link, the target link is usually in a hyperlink format. When there is an access risk in the target link, if the target link in the hyperlink format is retained without filtering the target SMS, when the user views the target SMS, it is avoided that the user accidentally touches the target link in the hyperlink format, affecting the user's experience.

[0061] S103: When the target link type is determined to be the first preset link type, the target link in the first format is processed to obtain a target link in the second format. The first preset link type is used to indicate that the target link has an access risk, and the second format is used to indicate a plain text format.

[0062] In this embodiment, when the target type is determined to be the first preset link type, in order to avoid directly filtering the text message due to misjudgment, which would affect the user's experience, and retaining the target link in hyperlink format in the target text message, which would cause the user to accidentally touch the target link, which would affect the user's experience, the target link in hyperlink format needs to be formatted so that the target link does not have a hyperlink format. In this embodiment, by converting the target link in hyperlink format into a target link in plain text format, the processed target link is no longer in hyperlink format. In this way, even if the user accidentally touches the target link in the second format, the target link will not be accessed, thereby improving security.

[0063] S104: Process the target SMS message using the target link in the second format to obtain a processed target SMS message.

[0064] In this embodiment, after obtaining the target link in the second format, the target link in the first format in the target SMS is replaced with the target link in the second format to obtain the processed target SMS.

[0065] S105: Display the processed target SMS message.

[0066] In this embodiment, after obtaining the processed target SMS, the processed target SMS can be displayed in the mobile terminal, thereby avoiding the target SMS from being mistakenly filtered when the target link type is determined to be the first preset link type. Furthermore, when the target link type is determined to be the first preset link type, the target link is formatted to avoid the user from accidentally touching the target link, thereby improving the user experience.

[0067] An embodiment of the present application provides a text message display method, which receives a target text message, and when it is determined that the target text message includes a target link, determines a target link type corresponding to the target link, the target link is in a first format, and the first format is used to characterize a hyperlink format. When it is determined that the target link type is a first preset link type, the target link in the first format is processed to obtain a target link in a second format, and the first preset link type is used to characterize that the target link has an access risk, and the second format is used to characterize a plain text format. The target text message is processed using the target link in the second format to obtain a processed target text message, and the processed target text message is displayed. Therefore, when it is determined that the target link has an access risk, there is no need to filter the text message including the target link, and the target link is set to be inaccessible directly. Even if the user accidentally touches the target link, there is no risk, thereby improving the user experience.

[0068] refer to Figure 2 , Figure 2 A flowchart of another SMS display method provided in an embodiment of the present application. A SMS display method provided in an embodiment of the present application includes the following steps:

[0069] S201: Receive a target SMS message.

[0070] S202: When it is determined that the target short message includes a target link, a target link type corresponding to the target link is determined, where the target link is in a first format, and the first format is used to represent a hyperlink format.

[0071] In this embodiment, step S201 is consistent with step S101, and step S202 is consistent with step S102. For details, please refer to the above description, and this embodiment will not be described in detail here.

[0072] S203: Determine whether the target link type is a first preset link type.

[0073] In this embodiment, whether the target short message contains risk information can be determined to determine whether the target link type corresponding to the target short message is the first preset link type.

[0074] Determining whether the target link type is a first preset link type includes:

[0075] Determine the target number corresponding to the target SMS;

[0076] When it is determined that the target number meets the preset number filtering conditions, the target domain name is determined from the target link, and the preset number filtering conditions include: the target number does not belong to the preset number blacklist and the target number length corresponding to the target number is the preset number length;

[0077] When it is determined that the target domain name does not belong to the preset domain name set, the target SMS is segmented to obtain a target segmentation set corresponding to the target SMS;

[0078] Input the target word set into the trained SMS recognition model so that the SMS recognition model outputs the target SMS type corresponding to the target SMS;

[0079] When it is determined that the target SMS type is a preset SMS type, the target link type is determined to be the first preset link type. The preset SMS type is used to indicate that risk information exists in the target SMS.

[0080] In the above, the target SMS type corresponding to the target SMS can be determined by determining the target number corresponding to the received target SMS, the target domain name in the target link included in the target SMS, and the SMS content included in the target SMS. After receiving the target SMS, the target number corresponding to the target SMS is determined, and it is judged whether the target number meets the preset number filtering conditions. When the number filtering conditions are met, it is indicated that the target number sending the target SMS is safe. In order to avoid misjudgment of the target number, when there is a target link in the target SMS, the target domain name included in the target link is judged. When the target domain name included in the target link does not belong to the preset domain name set, it is indicated that there may be risk information in the received target SMS. In order to further determine whether there is risk information in the target SMS, the target SMS is segmented, and the segmentation set obtained by the segmentation is assigned to the trained SMS recognition model, thereby obtaining the target SMS type corresponding to the target SMS.

[0081] Specifically, the preset numbers included in the preset number blacklist are risky numbers. At this time, regardless of whether the target number length corresponding to the target number is the preset number length, as long as the target number exists in the preset blacklist, it indicates that there must be risk information in the target SMS sent by the target number. When there is risk information in the target SMS (that is, the target SMS type corresponding to the target SMS is the preset SMS type), the target link type is determined to be the first preset link type. At the same time, when it is determined that the target number does not exist in the preset blacklist, if the target number length corresponding to the target number is the preset number length, it is also necessary to perform the following step of determining the target domain name from the target link to determine the target SMS type corresponding to the target SMS. When it is determined that the target number does not exist in the preset blacklist, if the target number length corresponding to the target number is not the preset number length, it indicates that there must be risk information in the target SMS sent by the number. When there is risk information in the target SMS (that is, the target SMS type corresponding to the target SMS is the preset SMS type), the target link type is determined to be the first preset link type. It should be noted that each link corresponds to a corresponding domain name, and all preset domain names in the preset domain name set are safe. By judging the domain name included in the target link, it is possible to determine whether the target link is secure. When it is determined that the target number meets the preset number filtering conditions and the target domain name belongs to the preset domain name set, it can be determined that the received target text message does not contain risk information. However, when it is determined that the target number meets the preset number filtering conditions but the target domain name does not belong to the preset domain name set, it cannot be determined that the received target text message necessarily contains risk information. It is possible that the target domain name is secure but not stored in the preset domain name set, so further identification using the text message recognition model is necessary. When the text message recognition model determines that the target text message does not contain risk information, it can be confirmed that the target link included in the target text message does not pose an access risk. Through the above method, the target number corresponding to the received target text message, the target domain name in the target link included in the target text message, and the text message content included in the target text message are identified, avoiding misjudgments caused by directly using the text message recognition model to identify the text message type, improving the accuracy of text message type identification, and further improving the accuracy of link type identification corresponding to the link in the text message.

[0082] S204: When it is determined that the target link type is a first preset link type, the target link in the first format is processed to obtain a target link in a second format, where the first preset link type is used to indicate that the target link has an access risk, and the second format is used to indicate a plain text format.

[0083] S205: Process the target short message using the target link in the second format to obtain a processed target short message.

[0084] S206: Display the processed target SMS message.

[0085] Regarding steps S204, S205 and S206, step S204 is consistent with the above-mentioned step S103, step S205 is consistent with the above-mentioned step S104, and step S206 is consistent with the above-mentioned step S105. For details, please refer to the above description, and this embodiment will not be repeated here.

[0086] After executing step S206, the text message display method provided in this embodiment further includes the following steps:

[0087] After displaying the processed target SMS, determining whether a first triggering operation for the target link in the second format is obtained;

[0088] When a first trigger operation for a target link in the second format is obtained, a first interface is displayed, wherein a first control is displayed in the first interface, and the first control is used to instruct to convert the target link in the second format into the target link in the first format;

[0089] When a second trigger operation for the first control in the first interface is acquired, the target link in the second format is converted into a target link in the first format.

[0090] In the above, in order to avoid misdetermining the target link type corresponding to the target link, after displaying the processed target SMS, the target link in the second format is detected to detect whether there is a first trigger operation for the target link in the second target format, and the first trigger operation is a long press operation on the target link in the second format. When the first trigger operation for the target link in the second format is detected, the first interface is displayed for the user to select the first control. The second trigger operation is actually a touch operation of the first control or a click operation of the first control. After the user selects the first control, it indicates that the user needs to perform a format conversion of the target link so that the target link in the second format is restored to the target link in the first format, so that the user can access the target link in the first format. In this way, even if the target link type corresponding to the target link is misdetermined to process the target link in the first format, the user can restore the format of the target link through the first interface, which is convenient for the user to access the target link and improves the user experience.

[0091] S207: When it is determined that the target link type is not the first preset link type, determine whether the target link type is the second preset link type.

[0092] In this embodiment, some text messages contain links that are not only risky but may also contain promotional links. Promotional links are generally useless to users, and if a mobile terminal receives a large number of text messages containing promotional links, it can negatively impact the user experience. Therefore, in this embodiment, when it is determined that the target link type is not the first preset link type, it is necessary to determine whether the target link type is the second preset link type. If the target link type is the second preset link type, the target link of the second preset link type is processed accordingly.

[0093] Determining the target link type to be the second preset link type includes:

[0094] Determine the target number corresponding to the target SMS;

[0095] When it is determined that the target number meets the preset number filtering conditions, the target domain name is determined from the target link, and the preset number filtering conditions include: the target number does not belong to the preset number blacklist and the target number length corresponding to the target number is the preset number length;

[0096] When it is determined that the target domain name belongs to the preset domain name set, a historical SMS set corresponding to the received target number is determined according to the target number, each historical SMS in the historical SMS set includes a historical link;

[0097] Determine the target number of historical text messages included in the historical text message set;

[0098] When it is determined that the target number is greater than the preset number threshold, the target link type is determined to be a second preset link type.

[0099] In the above, the target SMS type corresponding to the target SMS can be determined by determining the target number corresponding to the received target SMS, the target domain name in the target link included in the target SMS, and the historical set corresponding to the target number. After receiving the target SMS, the target number corresponding to the target SMS is determined, and it is determined whether the target number meets the preset number filtering conditions. When the preset number filtering conditions are met, it is indicated that the target number sending the target SMS is safe. To avoid misjudgment of the target number, when the target link exists in the target SMS, the target domain name included in the target link is determined. When it is determined that the target domain name exists in the preset domain name set, it can be determined that there is no risk information in the received target SMS. To further determine whether the target link in the target SMS is a push link, all historical SMS messages containing historical links are determined from all SMS messages received by the mobile terminal for the target number based on the target number. By comparing the historical SMS messages with a preset number threshold, it can be determined whether the target link is a promotional link. It should be noted that promotional SMS messages usually include promotional links. Therefore, the historical SMS messages containing historical links can represent the push level of the target number, and whether the target link is a push link is determined based on the push level. The preset number threshold can be set according to actual needs. In this embodiment, the specific value of the preset number threshold is not limited.

[0100] More specifically, when the target domain name does not belong to the preset domain name set, the target link can be judged according to the above method, which is not detailed in this embodiment. When it is determined that the number of targets is less than or equal to the preset number threshold, it indicates that the target link type corresponding to the target link is not the second preset link type, and the target link does not need to be processed.

[0101] S208: When the target link type is determined to be the second preset link type, a second interface is generated according to the target number corresponding to the target SMS. The second interface is used to set permissions for the target number. The second preset link type is used to indicate that the target link is a push link.

[0102] S209: When the authority setting information for the target number is obtained based on the second interface, the target SMS message is displayed according to the authority setting information.

[0103] With respect to the above-mentioned steps S208 and S209, when the target link type is determined to be the second preset link type, in order to prevent the target number from frequently sending target text messages, thereby affecting the user's experience, a second interface is generated based on the target number. The second interface may display "whether to ignore target text messages including target links sent by the target number in the future." When a confirmation message is received for the confirmation control in the second interface, the target text message is not displayed. When a confirmation message is received for the rejection control in the second interface, the target text message is displayed. The permission setting information includes ignoring target text messages including target links sent by the target number and displaying target text messages including target links sent by the target number.

[0104] S210: When it is determined that the target link type is neither the first preset link type nor the second preset link type, determine whether a third triggering operation for the target link is acquired within a preset time period.

[0105] S211: When it is determined that the third trigger operation for the target link is not obtained within the preset time period, a third interface is generated according to the target SMS, and the third interface is used to prompt processing of the target SMS.

[0106] S212: Displaying the third interface.

[0107] S213: When a third triggering operation for the target link is obtained within the preset time period, the target link is accessed.

[0108] With respect to the above-mentioned steps S210 to S213, when it is determined that the target link type is neither the first preset link type nor the second preset link type, it is relatively important for the user to characterize the target link, and the user needs to access the target link to perform the corresponding operation. If the third trigger operation for the target link has not been obtained within the preset time, a third interface is generated and displayed based on the target SMS to remind the user to process the target link in the target SMS. When the third trigger operation for the target link is obtained within the preset time, the target link can be directly accessed. It should be noted that the third trigger operation is a touch operation or a click operation on the target link.

[0109] An embodiment of the present application provides a text message display method, which receives a target text message, and when it is determined that the target text message includes a target link, determines a target link type corresponding to the target link, the target link is in a first format, and the first format is used to characterize a hyperlink format. When it is determined that the target link type is a first preset link type, the target link in the first format is processed to obtain a target link in a second format, and the first preset link type is used to characterize that the target link has an access risk, and the second format is used to characterize a plain text format. The target text message is processed using the target link in the second format to obtain a processed target text message, and the processed target text message is displayed. Therefore, when it is determined that the target link has an access risk, there is no need to filter the text message including the target link, and the target link is set to be inaccessible directly. Even if the user accidentally touches the target link, there is no risk, thereby improving the user experience.

[0110] refer to Figure 3 , Figure 3 A flowchart of another SMS display method provided in an embodiment of the present application. A SMS display method provided in an embodiment of the present application includes the following steps:

[0111] S301: Receive a target SMS message.

[0112] S302: When it is determined that the target short message includes a target link, a target link type corresponding to the target link is determined, where the target link is in a first format, and the first format is used to represent a hyperlink format.

[0113] S303: Determine whether the target link type is a first preset link type.

[0114] S304: When it is determined that the target link type is the first preset link type, the target link in the first format is processed to obtain a target link in the second format. The first preset link type is used to indicate that the target link has an access risk, and the second format is used to indicate a plain text format.

[0115] S305: Process the target SMS using the target link in the second format to obtain a processed target SMS.

[0116] S306: Display the processed target SMS message.

[0117] S307: When it is determined that the target link type is not the first preset link type, determine whether the target link type is the second preset link type.

[0118] Regarding the above-mentioned steps S301 to S307, the steps S301 to S307 correspond to the above-mentioned steps S201 to S207 one by one. For details, please refer to the above-mentioned steps S201 to S207, and they will not be described in detail in this embodiment.

[0119] S308: When the target link type is determined to be a second preset link type, a target group corresponding to the target SMS is determined according to the target domain name in the target link. The second preset link type is used to indicate that the target link is a push link.

[0120] S309: Display the target SMS in the target group.

[0121] With respect to the above-mentioned steps S308 and S309, when it is determined that the target link type is the second preset link type, in order to facilitate the user to view the target SMS including the target link, the application type corresponding to the target number can be determined based on the target domain name in the target link, and the target group corresponding to the target SMS can be determined based on the application type. The target SMS can be displayed in the target group to facilitate user search. Among them, the application type can be shopping, education, reading, etc. All preset domain names in the preset domain name set can be divided into application types in advance, and the groups and application types correspond one to one. When it is determined that the target link type is the second preset link type, the correspondence between the preset domain name and the application type can be searched based on the target domain name included in the target link, and the application type corresponding to the target number can be determined, thereby determining the target group to which the target SMS belongs.

[0122] S310: When it is determined that the target link type is neither the first preset link type nor the second preset link type, determine whether a third triggering operation for the target link is acquired within a preset time period.

[0123] S311: When it is determined that the third trigger operation for the target link is not obtained within the preset time period, a third interface is generated according to the target SMS, and the third interface is used to prompt the processing of the target SMS.

[0124] S312: Displaying the third interface.

[0125] S313: When a third triggering operation for the target link is obtained within the preset time period, the target link is accessed.

[0126] Regarding the above-mentioned steps S310 to S313, the steps S310 to S313 correspond one-to-one to the above-mentioned steps S210 to S213. For details, please refer to the above-mentioned steps S210 to S213, which will not be described in detail in this embodiment.

[0127] An embodiment of the present application provides a text message display method, which receives a target text message, and when it is determined that the target text message includes a target link, determines a target link type corresponding to the target link, the target link is in a first format, and the first format is used to characterize a hyperlink format. When it is determined that the target link type is a first preset link type, the target link in the first format is processed to obtain a target link in a second format, and the first preset link type is used to characterize that the target link has an access risk, and the second format is used to characterize a plain text format. The target text message is processed using the target link in the second format to obtain a processed target text message, and the processed target text message is displayed. Therefore, when it is determined that the target link has an access risk, there is no need to filter the text message including the target link, and the target link is set to be inaccessible directly. Even if the user accidentally touches the target link, there is no risk, thereby improving the user experience.

[0128] refer to Figure 4 , Figure 4 A structural diagram of a text message display device provided in an embodiment of the present application. An text message display device provided in an embodiment of the present application includes: a receiving module 10, a determining module 20, a processing module 30 and a display module 40. The receiving module 10 is used to receive a target text message; the determining module 20 is used to determine the target link type corresponding to the target link when determining that the target text message includes a target link, the target link is in a first format, and the first format is used to characterize a hyperlink format; the processing module 30 is used to process the target link in the first format when determining that the target link type is a first preset link type to obtain the target link in a second format, the first preset link type is used to characterize that the target link has an access risk, and the second format is used to characterize a plain text format; the processing module 30 is also used to process the target text message using the target link in the second format to obtain a processed target text message; the display module 40 is used to display the processed target text message.

[0129] In this embodiment, the determining module 20 is further configured to:

[0130] After displaying the processed target short message, it is determined whether a first triggering operation for the target link in the second format is acquired.

[0131] In this embodiment, the display module 40 is further used for:

[0132] When a first trigger operation for the target link in the second format is obtained, a first interface is displayed, in which a first control is displayed, and the first control is used to instruct to convert the target link in the second format into the target link in the first format.

[0133] In this embodiment, the processing module 30 is further configured to:

[0134] When a second trigger operation for the first control in the first interface is acquired, the target link in the second format is converted into the target link in the first format.

[0135] In this embodiment, the determining module 20 is further configured to:

[0136] Determine the target number corresponding to the target SMS;

[0137] When it is determined that the target number meets a preset number filtering condition, determining a target domain name from the target link, the preset number filtering condition including: the target number does not belong to a preset number blacklist and the target number length corresponding to the target number is a preset number length;

[0138] When it is determined that the target domain name does not belong to the preset domain name set, performing word segmentation processing on the target short message to obtain a target word segmentation set corresponding to the target short message;

[0139] Inputting the target word segmentation set into a trained SMS recognition model so that the SMS recognition model outputs a target SMS type corresponding to the target SMS;

[0140] When it is determined that the target SMS type is a preset SMS type, the target link type is determined to be the first preset link type, and the preset SMS type is used to indicate that risk information exists in the target SMS.

[0141] In this embodiment, the processing module 30 is further configured to:

[0142] When it is determined that the target link type is the second preset link type, a second interface is generated according to the target number corresponding to the target SMS, and the second interface is used to set the permissions of the target number. The second preset link type is used to characterize that the target link is a push link.

[0143] In this embodiment, the display module 40 is further used for:

[0144] When the authority setting information for the target number is acquired based on the second interface, the target text message is displayed according to the authority setting information.

[0145] In this embodiment, the determining module 20 is further configured to:

[0146] When it is determined that the target link type is a second preset link type, a target group corresponding to the target SMS is determined according to the target domain name in the target link, and the second preset link type is used to indicate that the target link is a push link.

[0147] In this embodiment, the display module 40 is further used for:

[0148] The target short message is displayed in the target group.

[0149] In this embodiment, the determining module 20 is further configured to:

[0150] Determine the target number corresponding to the target SMS;

[0151] When it is determined that the target number meets a preset number filtering condition, determining a target domain name from the target link, the preset number filtering condition including: the target number does not belong to a preset number blacklist and the target number length corresponding to the target number is a preset number length;

[0152] When it is determined that the target domain name belongs to the preset domain name set, determining a set of received historical SMS messages corresponding to the target number according to the target number, wherein each historical SMS message in the set of historical SMS messages includes a historical link;

[0153] Determining a target number of the historical text messages included in the historical text message set;

[0154] When it is determined that the target number is greater than the preset number threshold, the target link type is determined to be the second preset link type.

[0155] In this embodiment, the determining module 20 is further configured to:

[0156] When it is determined that the target link type is neither the first preset link type nor the second preset link type, it is determined whether a third triggering operation for the target link is acquired within a preset time period.

[0157] In this embodiment, the processing module 30 is further configured to:

[0158] When it is determined that no third trigger operation for the target link is obtained within the preset time period, a third interface is generated according to the target SMS, and the third interface is used to prompt the user to process the target SMS.

[0159] In this embodiment, the display module 40 is further used for:

[0160] The third interface is displayed.

[0161] An embodiment of the present application provides a text message display device, which receives a target text message, and when determining that the target text message includes a target link, determines a target link type corresponding to the target link, the target link is in a first format, and the first format is used to characterize a hyperlink format. When determining that the target link type is a first preset link type, the target link in the first format is processed to obtain a target link in a second format, and the first preset link type is used to characterize that the target link has an access risk, and the second format is used to characterize a plain text format. The target text message is processed using the target link in the second format to obtain a processed target text message, and the processed target text message is displayed. Therefore, when determining that the target link has an access risk, there is no need to filter the text message including the target link, and the target link is set to be inaccessible directly. Even if the user accidentally touches the target link, there is no risk, thereby improving the user experience.

[0162] Figure 5 A schematic diagram of the structure of a mobile terminal provided in an embodiment of the present application is provided. Figure 5 The mobile terminal 500 shown includes: at least one processor 501, a memory 502, at least one network interface 504 and another user interface 503. The various components in the mobile terminal 500 are coupled together via a bus system 505. It is understood that the bus system 505 is used to achieve connection and communication between these components. In addition to including a data bus, the bus system 505 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, the bus system 505 is not shown in FIG. Figure 5 Various buses are labeled as bus system 505.

[0163] The user interface 503 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touchpad, or a touch screen).

[0164] It is understood that the memory 502 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 502 described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0165] In some embodiments, the memory 502 stores the following elements, executable units, or data structures, or a subset thereof, or an extended set thereof: an operating system 5021 and application programs 5022 .

[0166] The operating system 5021 includes various system programs, such as a framework layer, a core library layer, and a driver layer, for implementing various basic services and processing hardware-based tasks. The application 5022 includes various application programs, such as a media player and a browser, for implementing various user services. The program implementing the method of the embodiment of the present application can be included in the application 5022.

[0167] In an embodiment of the present application, by calling a program or instruction stored in the memory 402, specifically, a program or instruction stored in the application 5022, the processor 501 is used to execute the method steps provided by each method embodiment, for example, including: receiving a target text message; when determining that the target text message includes a target link, determining a target link type corresponding to the target link, the target link is in a first format, and the first format is used to characterize a hyperlink format; when determining that the target link type is a first preset link type, processing the target link in the first format to obtain the target link in a second format, the first preset link type is used to characterize that the target link has an access risk, and the second format is used to characterize a plain text format; using the target link in the second format to process the target text message to obtain a processed target text message; and displaying the processed target text message.

[0168] The methods disclosed in the above embodiments of the present application can be applied to or implemented by processor 501. Processor 501 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits in processor 501 or by software instructions. The above processor 401 can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The methods, steps, and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of the present application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software units in the decoding processor. The software units can be located in a storage medium mature in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory 502 , and the processor 501 reads the information in the memory 502 and completes the steps of the above method in combination with its hardware.

[0169] It is understood that the embodiments described herein may be implemented using hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described herein, or a combination thereof.

[0170] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.

[0171] The mobile terminal provided in this embodiment may be Figure 5 The mobile terminal shown in FIG can execute the following Figure 1-3 All steps of the SMS display method are implemented Figure 1-3 For technical effects of the SMS display method shown, please refer to Figure 1-3 For the sake of brevity, the relevant description will not be repeated here.

[0172] The present application also provides a storage medium (computer-readable storage medium). The storage medium stores one or more programs. The storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid-state drive; and the memory may also include a combination of the aforementioned types of memory.

[0173] When one or more programs in the storage medium can be executed by one or more processors, the above-mentioned text message display method executed on the text message display device side is implemented.

[0174] The processor is used to execute the SMS display program stored in the memory to implement the following steps of the SMS display method executed on the SMS display device side: receiving a target SMS; when it is determined that the target SMS includes a target link, determining a target link type corresponding to the target link, the target link is in a first format, and the first format is used to characterize a hyperlink format; when it is determined that the target link type is a first preset link type, processing the target link in the first format to obtain the target link in a second format, the first preset link type is used to characterize that there is an access risk to the target link, and the second format is used to characterize a plain text format; using the target link in the second format to process the target SMS to obtain a processed target SMS; and displaying the processed target SMS.

[0175] Professionals should also be further aware that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0176] It should be noted that references in this specification to "one embodiment," "an embodiment," "an exemplary embodiment," "some embodiments," and the like indicate that the described embodiments may include a particular feature, structure, or characteristic, but not necessarily every embodiment includes that particular feature, structure, or characteristic. Furthermore, such phrases do not necessarily refer to the same embodiment. Furthermore, when a particular feature, structure, or characteristic is described in conjunction with an embodiment, it is within the knowledge of those skilled in the art to implement such feature, structure, or characteristic in conjunction with other embodiments, whether explicitly described or not.

[0177] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.

[0178] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for displaying short messages, characterized in that: The method comprises: Receive target SMS; When it is determined that the target short message includes a target link, determining a target link type corresponding to the target link, the target link being in a first format, the first format being used to represent a hyperlink format; When determining that the target link type is a first preset link type, processing the target link in the first format to obtain the target link in a second format, wherein the first preset link type is used to indicate that the target link has an access risk, and the second format is used to indicate a plain text format; processing the target short message using the target link in the second format to obtain a processed target short message; Display the processed target SMS; The method further comprises: After displaying the processed target short message, determining whether a first triggering operation for the target link in the second format is acquired, wherein the first triggering operation is a long-pressing operation on the target link in the second format; When a first trigger operation for the target link in the second format is obtained, a first interface is displayed, wherein a first control is displayed in the first interface, and the first control is used to instruct to convert the target link in the second format into the target link in the first format; When a second trigger operation for the first control in the first interface is obtained, the target link in the second format is converted into the target link in the first format to facilitate user access to the target link in the first format, wherein the second trigger operation is a touch operation of the first control or a click operation of the first control.

2. The method for displaying short messages according to claim 1, wherein: Determining that the target link type is a first preset link type includes: Determine the target number corresponding to the target SMS; When it is determined that the target number meets a preset number filtering condition, determining a target domain name from the target link, the preset number filtering condition including: the target number does not belong to a preset number blacklist and the target number length corresponding to the target number is a preset number length; When it is determined that the target domain name does not belong to the preset domain name set, performing word segmentation processing on the target short message to obtain a target word segmentation set corresponding to the target short message; Inputting the target word segmentation set into a trained SMS recognition model so that the SMS recognition model outputs a target SMS type corresponding to the target SMS; When it is determined that the target SMS type is a preset SMS type, the target link type is determined to be the first preset link type, and the preset SMS type is used to indicate that risk information exists in the target SMS.

3. The method for displaying short messages according to claim 1, wherein: The method further comprises: When it is determined that the target link type is the second preset link type, generating a second interface according to the target number corresponding to the target SMS, the second interface being used to set permissions for the target number, the second preset link type being used to indicate that the target link is a push link; When the authority setting information for the target number is acquired based on the second interface, the target text message is displayed according to the authority setting information.

4. The method for displaying short messages according to claim 1, wherein: The method further comprises: When it is determined that the target link type is a second preset link type, determining a target group corresponding to the target SMS message according to the target domain name in the target link, wherein the second preset link type is used to indicate that the target link is a push link; The target short message is displayed in the target group.

5. The method for displaying short messages according to claim 3 or 4, wherein: The determining that the target link type is the second preset link type includes: Determine the target number corresponding to the target SMS; When it is determined that the target number meets a preset number filtering condition, determining a target domain name from the target link, the preset number filtering condition including: the target number does not belong to a preset number blacklist and the target number length corresponding to the target number is a preset number length; When it is determined that the target domain name belongs to the preset domain name set, determining a set of received historical SMS messages corresponding to the target number according to the target number, wherein each historical SMS message in the set of historical SMS messages includes a historical link; Determining a target number of the historical text messages included in the historical text message set; When it is determined that the target number is greater than the preset number threshold, the target link type is determined to be the second preset link type.

6. The method for displaying short messages according to claim 3 or 4, wherein: The method further comprises: When it is determined that the target link type is neither the first preset link type nor the second preset link type, determining whether a third triggering operation for the target link is acquired within a preset time period; When it is determined that no third trigger operation for the target link is obtained within the preset time period, generating a third interface according to the target SMS, the third interface being used to prompt processing of the target SMS; The third interface is displayed.

7. A text message display device, characterized in that: The device comprises: Receiving module, used for receiving target SMS; a determination module, configured to, when determining that the target short message includes a target link, determine a target link type corresponding to the target link, wherein the target link is in a first format, and the first format is used to represent a hyperlink format; a processing module configured to, when determining that the target link type is a first preset link type, process the target link in the first format to obtain the target link in a second format, wherein the first preset link type is used to indicate that the target link has an access risk, and the second format is used to indicate a plain text format; The processing module is further configured to process the target SMS message using the target link in the second format to obtain a processed target SMS message; Display module, used to display the processed target SMS message: The determination module is further configured to: after displaying the processed target short message, determine whether a first triggering operation for the target link in the second format is obtained, wherein the first triggering operation is a long-pressing operation on the target link in the second format; The display module is further configured to: upon obtaining a first trigger operation for the target link in the second format, display a first interface having a first control displayed therein, the first control being configured to instruct conversion of the target link in the second format into the target link in the first format; The processing module is also used to: when a second trigger operation for the first control in the first interface is obtained, convert the target link in the second format into the target link in the first format, so that the user can access the target link in the first format, wherein the second trigger operation is a touch operation of the first control or a click operation of the first control.

8. A mobile terminal, characterized in that: include: A processor and a memory, wherein the processor is configured to execute a text message display program stored in the memory to implement the text message display method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the text message display method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Short message display method and system for mobile terminal

    CN105611513A

  • Mobile terminal and short message processing method and device thereof

    CN106713635A