Short message sending method and device, equipment and storage medium
By presetting the blacklist to verify the SMS center number in the electronic device, the security problem caused by the easy modification of the number in the SMS service is solved, and the safe forwarding of the SMS service is realized.
Patent Information
- Application Number
- CN202410875581.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-09-10
AI Technical Summary
In existing electronic equipment, the stored SMS center number is easily modified in the SMS service, resulting in SMS leakage and reduced security. This is especially risky in satellite access networks shared by multiple operators.
Store the SMS center number in the preset blacklist in the electronic device, and determine through verification whether it is a number that is allowed to perform SMS services. If it is not in the blacklist, use the prestored SMS center number to send the SMS, or modify it to the corresponding correct number. number to send.
It improves the security of SMS services, prevents SMS leakage and billing risks caused by incorrect SMS center numbers, and ensures the correct forwarding of SMS messages.
Smart Images

Figure CN118632200A
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method, device, equipment and storage medium for sending short messages. Background Art
[0002] In recent years, with the development of communication technology, the communication functions of electronic devices (such as terminals and servers) have become increasingly rich, and the communication services between electronic devices have also increased, such as short message services between electronic devices.
[0003] Currently, when an electronic device performs SMS services, the initiator (i.e., the electronic device sending the SMS) needs to forward the SMS to the receiver (i.e., the electronic device receiving the SMS) through the SMS center corresponding to the stored SMS center number.
[0004] However, there is a potential security risk that the SMS center number stored in the electronic device may be modified, so that when the electronic device executes the SMS service, the SMS is forwarded through the wrong SMS center, resulting in SMS leakage and reducing the security of the SMS service. Summary of the invention
[0005] The present application provides a method, device, equipment and storage medium for sending short messages, which are used to solve the problem of low security of short message services.
[0006] In order to achieve the above objectives, this application adopts the following technical solutions:
[0007] In a first aspect, the present application provides a method for sending a text message, which is applied to an electronic device, wherein the electronic device stores a preset blacklist, and the text message center numbers in the preset blacklist are not allowed to execute text message services, and the method comprises: receiving a target text message input by a user. Determining whether there is a first text message center number in the preset blacklist, where the first text message center number is a text message center number pre-set in the electronic device. If the first text message center number does not exist in the preset blacklist, sending the target text message based on the first text message center number.
[0008] The technical solution provided by the present application brings at least the following beneficial effects: when an electronic device performs a short message service on a short message, the short message service of the short message to be sent is managed by determining whether the short message center number pre-stored in the electronic device is a short message center number in a preset blacklist that does not allow the electronic device to perform the short message service. If the short message center number pre-stored in the electronic device is not a short message center number in the preset blacklist, the electronic device can determine that the pre-stored short message center number has been verified, and perform the short message service on the short message to be sent based on the pre-stored short message center number. In this way, the security of the short message service can be provided.
[0009] Optionally, the method further includes: determining a target confidentiality level of the content in the target text message according to the target text message. Determining whether the target confidentiality level is greater than a preset level threshold. The above-mentioned method of "determining whether the first text message center number exists in the preset blacklist" includes: if the target confidentiality level is less than or equal to the preset level threshold, determining whether the first text message center number exists in the preset blacklist.
[0010] Optionally, the electronic device further stores target user card information and a preset mapping table, wherein the preset mapping table includes a correspondence between a plurality of preset user card information and a plurality of preset SMS center numbers. The method further includes: if the target confidentiality level is greater than a preset level threshold, determining whether the first SMS center number is the same as the second SMS center number corresponding to the target user card information in the preset mapping table. If the first SMS center number is the same as the second SMS center number, sending the target SMS based on the first SMS center number.
[0011] Optionally, the method further includes: if the first SMS center number is different from the second SMS center number, modifying the first SMS center number to the second SMS center number, and sending the target SMS based on the second SMS center number.
[0012] Optionally, the method also includes: if the target confidentiality level is less than or equal to a preset level threshold and the first SMS center number exists in the preset blacklist, modifying the first SMS center number to a second SMS center number, and sending the target SMS based on the second SMS center number.
[0013] Optionally, the target user card information includes the operator information and number segment information of the user card.
[0014] In a second aspect, the present application provides a device for sending SMS messages, which is applied to an electronic device. The electronic device stores a preset blacklist, and the SMS center numbers in the preset blacklist are not allowed to execute SMS services. The device includes: an acquisition module and a processing module.
[0015] The acquisition module is used to receive the target SMS input by the user. The processing module is used to determine whether there is a first SMS center number in the preset blacklist, where the first SMS center number is a SMS center number pre-set in the electronic device. The sending module is used to send the target SMS based on the first SMS center number if the first SMS center number does not exist in the preset blacklist.
[0016] Optionally, the processing module is further used to determine the target confidentiality level of the content in the target text message according to the target text message. The processing module is further used to determine whether the target confidentiality level is greater than a preset level threshold. The processing module is specifically used to determine whether the first text message center number exists in the preset blacklist if the target confidentiality level is less than or equal to the preset level threshold.
[0017] Optionally, the electronic device further stores target user card information and a preset mapping table, wherein the preset mapping table includes a correspondence between a plurality of preset user card information and a plurality of preset SMS center numbers. The processing module is further configured to determine whether the first SMS center number is the same as the second SMS center number corresponding to the target user card information in the preset mapping table if the target confidentiality level is greater than a preset level threshold. The processing module is further configured to send the target SMS based on the first SMS center number if the first SMS center number is the same as the second SMS center number.
[0018] Optionally, the processing module is further used to modify the first SMS center number to the second SMS center number if the first SMS center number is different from the second SMS center number, and send the target SMS based on the second SMS center number.
[0019] Optionally, the processing module is also used to modify the first SMS center number to a second SMS center number and send the target SMS based on the second SMS center number if the target confidentiality level is less than or equal to a preset level threshold and the first SMS center number exists in the preset blacklist.
[0020] Optionally, the target user card information includes the operator information and number segment information of the user card.
[0021] In a third aspect, the present application provides a device for sending text messages, the device comprising: a processor and a memory, the processor and the memory being coupled, the memory being used to store one or more programs, the one or more programs comprising computer execution instructions, and when the device for sending text messages is running, the processor executes the computer execution instructions stored in the memory to implement the method for sending text messages described in the first aspect or any optional aspect in the first aspect.
[0022] In a fourth aspect, the present application provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a computer, the computer executes the method for sending text messages described in the first aspect or any optional aspect of the first aspect.
[0023] In a fifth aspect, the present application provides a computer program product applied to a server, the computer program product comprising computer instructions. When the computer instructions are executed on the server, the server implements the method for sending text messages described in the first aspect or any optional aspect in the first aspect.
[0024] In the above scheme, the technical problems that can be solved and the technical effects achieved by the SMS sending device, equipment, computer storage medium or computer program product can refer to the technical problems and technical effects solved by the above first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 A schematic diagram of a communication system provided in an embodiment of the present application;
[0026] Figure 2 A flowchart of a method for sending a text message provided in an embodiment of the present application;
[0027] Figure 3 A flowchart of another method for sending a text message provided in an embodiment of the present application;
[0028] Figure 4 A flowchart of another method for sending a text message provided in an embodiment of the present application;
[0029] Figure 5 A flowchart of another method for sending a text message provided in an embodiment of the present application;
[0030] Figure 6 A schematic diagram of the structure of a device for sending short messages provided in an embodiment of the present application;
[0031] Figure 7 A schematic diagram of the structure of a text message sending device provided in an embodiment of the present application;
[0032] Figure 8 A conceptual partial view of a computer program product provided for an embodiment of the present application. DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0034] In this article, the character " / " generally indicates that the objects before and after are in an "or" relationship. For example, A / B can be understood as A or B.
[0035] The terms “first” and “second” in the description and claims of the present application are used to distinguish different objects rather than to describe a specific order of the objects.
[0036] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or modules is not limited to the listed steps or modules, but may optionally include other steps or modules that are not listed, or may optionally include other steps or modules that are inherent to these processes, methods, products or devices.
[0037] In addition, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present concepts in a specific way.
[0038] Before introducing in detail the method for sending text messages provided in the embodiment of the present application, the implementation environment and application scenarios of the embodiment of the present application are first introduced.
[0039] First, the application scenarios of the embodiments of the present application are introduced.
[0040] Mobile phone direct connection to satellite services has become a hot topic in the field of satellite communications. Providing basic communication services to the public through satellites is the inevitable direction of the future evolution of the sixth generation of mobile communication technology (5th generation mobile networks, 5G) networks. Currently, mobile phone direct connection to satellite products are available on the market, providing users with basic voice and SMS services through mobile phone direct connection to high-orbit satellites. Currently, high-orbit satellites are still second-generation mobile communication technology (2th generation mobile networks, 2G) / third-generation mobile communication technology (3rd generation mobile networks, 3G) standards. SMS sending requires reading and using the SMS center number in the user card to correctly address the corresponding SMS center.
[0041] However, the current implementation method of user equipment is to directly read and use the SMS center number in the user card to send SMS. Since the SMS center number in the user card is allowed to be modified by the user, it is possible to read and use the wrong SMS center number when accessing the satellite communication network, resulting in SMS failure. In some cases, users can even evade billing and supervision by modifying the SMS center number, resulting in billing and security risks. This risk is particularly evident in satellite access networks shared by multiple operators. In addition, forwarding SMS through the SMS center corresponding to the wrong SMS center number may cause SMS leakage and reduce the security of SMS services.
[0042] Therefore, how to verify the SMS center number in the user card, prevent the SMS center number in the user card from being tampered with, and improve the security of the SMS service has become a technical problem that needs to be solved urgently.
[0043] In order to solve the above problems, an embodiment of the present application provides a method for sending text messages, and the method for sending text messages provided by the embodiment of the present application is applied to the scenario of sending text messages. The embodiment of the present application can manage the text message service of the text message to be sent by determining whether the text message center number pre-stored in the electronic device is a text message center number in the preset blacklist that does not allow the electronic device to perform the text message service when the electronic device performs the text message service on the text message. If the text message center number pre-stored in the electronic device is not a text message center number in the preset blacklist, the electronic device can determine that the pre-stored text message center number has been verified, and perform the text message service on the text message to be sent based on the pre-stored text message center number. In this way, the security of the text message service can be provided.
[0044] The implementation environment of the embodiments of the present application is introduced below.
[0045] like Figure 1 As shown, it is a schematic diagram of a communication system provided in an embodiment of the present application, and the communication system may include: at least two electronic devices (such as electronic device 101, electronic device 102) and at least one SMS center (such as SMS center 103, SMS center 104). Among them, electronic device 101 can perform wired / wireless communication with electronic device 102 through SMS center 103 or SMS center 104.
[0046] Specifically, the electronic device 101 can receive the to-be-sent text message input by the user, and verify whether the stored text message center number (such as the number of the text message center 103 or the number of the text message center 104) is a text message center number in a preset blacklist that does not allow the electronic device 101 to perform text message services. If the stored text message center number is not a text message center number in the blacklist, the electronic device 101 can send the to-be-sent text message input by the user to the electronic device 102 via the text message center corresponding to the stored text message center number (such as the text message center 103 or the text message center 104).
[0047] It should be noted that the embodiments of the present application do not limit the electronic devices (such as electronic devices 101 and 102) and the SMS centers (such as SMS centers 103 and 104). For example, the electronic device may be a terminal. Alternatively, the electronic device may be a server. Similarly, the SMS center may be a terminal. Alternatively, the SMS center may be a server.
[0048] The server may be a single physical server, or a server cluster consisting of multiple servers. Alternatively, the server cluster may be a distributed cluster. Alternatively, the server may be a cloud server. The embodiments of the present application do not limit the specific implementation of the server.
[0049] The terminal may be a mobile phone, tablet computer, desktop, laptop, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, etc. with transceiver functions. The present application does not impose any special restrictions on the specific form of the terminal. It may interact with the user through one or more methods such as keyboard, touch pad, touch screen, remote control, voice interaction or handwriting device.
[0050] After introducing the application scenario and implementation environment of the embodiment of the present application, the text message sending method provided by the embodiment of the present application is described in detail in combination with the above-mentioned implementation environment.
[0051] The methods in the following embodiments can all be implemented in the above application scenarios and implementation environments. The embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0052] Figure 2 The flowchart of a method for sending a text message provided in an embodiment of the present application is as follows. Figure 2 As shown, the method may include: S201-S203.
[0053] S201. An electronic device receives a target text message input by a user.
[0054] As a possible implementation manner, the electronic device may receive information input by the user and generate a target text message through human-computer interaction with the user.
[0055] It should be noted that, for the process of generating a target SMS through human-computer interaction with the user, receiving information input by the user, and referring to the introduction of the user editing SMS in the mobile phone in the prior art, which will not be described in detail here.
[0056] S202: The electronic device determines whether the first SMS center number exists in the blacklist.
[0057] The first SMS center number is a SMS center number pre-set in the electronic device, and the first SMS center number is a SMS center number referenced by the electronic device when executing SMS services. The electronic device may also pre-store a preset blacklist, and the SMS center numbers in the preset blacklist are not allowed to execute SMS services.
[0058] Exemplarily, the preset blacklist stored in the mobile phone (i.e., electronic device) includes: 100011, 100012. If the number of the first SMS center pre-stored in the mobile phone is 100010, the mobile phone can refer to 100010 to determine the SMS center corresponding to 100010 to perform the forwarding of the SMS service. If the number of the first SMS center pre-stored in the mobile phone is 100011, the mobile phone does not perform the SMS service.
[0059] As a possible implementation, different electronic devices may store different preset blacklists, wherein the preset blacklist corresponding to each electronic device is determined by the positioning information, operator information, and communication package information of the electronic device.
[0060] In some embodiments, if the electronic device determines that the first SMS center number exists in the blacklist, the electronic device does not perform SMS service on the target SMS (ie, does not send the target SMS).
[0061] In some other embodiments, if the electronic device determines that the first SMS center number does not exist in the blacklist, the electronic device may perform the SMS service on the target SMS (ie, perform S203).
[0062] S203: The electronic device sends a target SMS message based on the first SMS center.
[0063] As a possible implementation manner, the electronic device may determine the first SMS center corresponding to the first SMS center number based on the first SMS center number, and send the target SMS to the first SMS center to complete the SMS service for the target SMS.
[0064] The technical solution provided by the above embodiment brings at least the following beneficial effects: when an electronic device performs a short message service on a short message, the short message service of the short message to be sent is managed by determining whether the short message center number pre-stored in the electronic device is a short message center number in a preset blacklist that does not allow the electronic device to perform the short message service. If the short message center number pre-stored in the electronic device is not a short message center number in the preset blacklist, the electronic device can determine that the pre-stored short message center number has been verified, and perform the short message service on the short message to be sent based on the pre-stored short message center number. In this way, the security of the short message service can be provided.
[0065] It should be noted that, since the confidentiality requirements corresponding to the contents of different SMS messages sent by users are different, it is necessary to manage SMS messages with different confidentiality requirements differently.
[0066] In some embodiments, Figure 3 As shown, after the electronic device receives the target text message input by the user (ie S201), the method may further include: S301-S303.
[0067] S301. The electronic device determines a target confidentiality level of content in a target text message based on the target text message.
[0068] The target confidentiality level is used to represent the confidentiality level of the content in the target text message.
[0069] As a possible implementation, the electronic device stores a plurality of preset keywords and a preset confidentiality level corresponding to each keyword. The electronic device can use the preset keyword contained in the content of the target short message as the target keyword, and sum the preset confidentiality levels corresponding to all target keywords to determine the target confidentiality level of the content in the target short message.
[0070] S302: The electronic device determines whether the target confidentiality level is greater than a preset level threshold.
[0071] As a possible implementation, the electronic device may further store a preset level threshold. The electronic device may manage the SMS service of the target SMS based on the relationship between the target confidentiality level and the preset level threshold.
[0072] In some embodiments, if the electronic device determines that the target confidentiality level is less than or equal to a preset level threshold, the electronic device may execute S202.
[0073] In other embodiments, if the electronic device determines that the target confidentiality level is greater than a preset level threshold, the electronic device may execute S303.
[0074] S303: The electronic device determines whether the first SMS center number is the same as the second SMS center number corresponding to the target user card information in the preset mapping table.
[0075] The electronic device may further store target user card information and a preset mapping table, and the preset mapping table may include a correspondence between a plurality of preset user card information and a plurality of preset SMS center numbers.
[0076] It should be noted that in the embodiment of the present application, the user card information may include relevant information of the user card (MDN, ICCID, IMSI), or the user card information may include the operator information and number segment information corresponding to the user card.
[0077] As a possible implementation method, the electronic device can determine the user card information that is the same as the target user card information from multiple preset user card information based on the target user card information, and use the preset SMS center number corresponding to the user card information that is the same as the target user card information determined from the multiple preset user card information as the second SMS center number to obtain the second SMS center number.
[0078] In the embodiment of the present application, the electronic device can manage the SMS service of the target SMS by determining whether the first SMS center number is the same as the second SMS center number.
[0079] In some embodiments, if the electronic device determines that the first SMS center number is the same as the second SMS center number, the electronic device may execute S203.
[0080] In some other embodiments, if the electronic device determines that the first SMS center number is different from the second SMS center number, the electronic device may not perform the SMS service on the target SMS.
[0081] Optionally, if the electronic device determines that the first SMS center number is different from the second SMS center number, the electronic device may modify the first SMS center number to the second SMS center number, and send the target SMS based on the second SMS center number.
[0082] It should be noted that, for the process of the electronic device sending the target SMS based on the second SMS center number, reference may be made to the introduction of the electronic device sending the target SMS based on the first SMS center, which will not be described in detail here.
[0083] In some embodiments, in combination with the above embodiments, if the electronic device determines that the target confidentiality level is less than or equal to a preset level threshold, and a first SMS center number exists in the preset blacklist, the electronic device can modify the first SMS center number to a second SMS center number, and send the target SMS based on the second SMS center number.
[0084] It is understandable that the electronic device can implement different verification strategies for the pre-stored SMS center number based on the confidentiality requirements of the contents of the SMS to be sent, and when the confidentiality requirements are high, the SMS center number referenced for executing the SMS service is required to be the correct SMS center number corresponding to the user card, while when the confidentiality requirements are low, the SMS center number referenced for executing the SMS service is allowed to have a small range of error variation. In this way, the flexibility of verifying the SMS center number can be improved.
[0085] The following is an introduction to the method for sending SMS provided by the embodiment of the present application in conjunction with a specific example, that is, a method for a terminal to identify whether the SMS center number in a user card has been tampered with is proposed. After the existing user device (i.e., electronic device) directly reads the SMS center number in the user card, a step is added in which the user device determines whether the SMS center number has been tampered with. By configuring the identification strategy on the user device side, after the user device reads the SMS center number in the user card, it matches the configured identification strategy. If the match is successful, the SMS is sent normally; if the match is unsuccessful, the SMS center number in the user card is automatically corrected to the correct value according to the identification strategy.
[0086] Exemplarily, the user device receives the correspondence between the user card number segment and the SMS center number provided by the operator, and establishes a mapping table to store the operator number segment and the SMS center number. Then, the user device reads the relevant information of the user card (MDN, ICCID, IMSI), determines the operator and number segment to which the user card belongs, and then matches the operator and number segment information of the user card with the mapping table stored in the user device to determine whether the SMS center number in the user card is correct. If it is not correct, it is automatically corrected to the correct SMS center number. Figure 4 As shown, including:
[0087] Step 1: User equipment accesses the satellite network.
[0088] Step 2: The user device reads the SMS center number of the user card.
[0089] Step 3: The user equipment identifies whether the SMS center number is correct according to the configured identification strategy (S303).
[0090] In some embodiments, if the user equipment identifies that the SMS center number is incorrect, the user equipment executes step four.
[0091] Step 4: The user device automatically modifies the SMS center number of the user card.
[0092] After the user equipment completes the modification of the user card SMS center number, the user equipment may execute step five.
[0093] Step 5: The user device allows the user to send text messages.
[0094] In some other embodiments, after step three, if the user equipment recognizes that the SMS center number is correct, the user equipment may directly execute step five.
[0095] Optionally, the user device can set a specific SMS center number to a blacklist (the SMS center number may allow the user to avoid billing and supervision). When the user device accesses the satellite network, the user device reads the SMS center number in the user card and matches it with the set blacklist. If the number is not on the blacklist set by the user device, the user is allowed to send SMS; if it is on the blacklist in the user device, the user is prohibited from sending SMS. Figure 5 As shown, including:
[0096] Step 1: User equipment accesses the satellite network.
[0097] Step 2: The user device reads the SMS center number of the user card.
[0098] Step 3: The user equipment identifies whether the SMS center number is a number in the set blacklist (ie, S202).
[0099] In some embodiments, if the user equipment identifies that the SMS center number is a number in a set blacklist, the user equipment does not allow the user to send SMS.
[0100] In some other embodiments, if the user equipment recognizes that the SMS center number is not a number in a set blacklist, the user equipment allows the user to send SMS.
[0101] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of computer equipment. It is understandable that in order to realize the above functions, the computer equipment includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the steps of the text message sending method of each example described in the embodiment disclosed in this application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel 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 this application.
[0102] The embodiment of the present application also provides a device for sending short messages. The device for sending short messages may be a computer device, a CPU in the computer device, a processing module in the computer device for sending short messages, or a client in the computer device for sending short messages.
[0103] The embodiment of the present application can divide the function modules or function units of the text message sending device according to the above method example. For example, each function module or function unit can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software function modules or function units. Among them, the division of modules or units in the embodiment of the present application is schematic, which is only a logical function division. There may be other division methods in actual implementation.
[0104] like Figure 6 FIG. 1 is a schematic diagram of a structure of a device for sending short messages provided in an embodiment of the present application. The device for sending short messages is used to execute Figure 2 or Figure 3 The method for sending text messages shown in the figure, the text message sending device 600 is applied to an electronic device, the electronic device stores a preset blacklist, the text message center numbers in the preset blacklist are not allowed to execute text message services, and the text message sending device 600 may include: an acquisition module 601 and a processing module 602.
[0105] The acquisition module 601 is used to receive a target SMS input by a user. The processing module 602 is used to determine whether a first SMS center number exists in a preset blacklist, where the first SMS center number is a SMS center number pre-set in the electronic device. The sending module is used to send a target SMS based on the first SMS center number if the first SMS center number does not exist in the preset blacklist.
[0106] Optionally, the processing module 602 is further used to determine the target confidentiality level of the content in the target text message according to the target text message. The processing module 602 is further used to determine whether the target confidentiality level is greater than a preset level threshold. The processing module 602 is specifically used to determine whether the first text message center number exists in the preset blacklist if the target confidentiality level is less than or equal to the preset level threshold.
[0107] Optionally, the electronic device further stores target user card information and a preset mapping table, wherein the preset mapping table includes a correspondence between multiple preset user card information and multiple preset SMS center numbers. Processing module 602 is further used to determine whether the first SMS center number is the same as the second SMS center number corresponding to the target user card information in the preset mapping table if the target confidentiality level is greater than the preset level threshold. Processing module 602 is further used to send the target SMS based on the first SMS center number if the first SMS center number is the same as the second SMS center number.
[0108] Optionally, the processing module 602 is further configured to modify the first SMS center number to the second SMS center number if the first SMS center number is different from the second SMS center number, and send the target SMS based on the second SMS center number.
[0109] Optionally, the processing module 602 is also used to modify the first SMS center number to a second SMS center number and send the target SMS based on the second SMS center number if the target confidentiality level is less than or equal to a preset level threshold and the first SMS center number exists in the preset blacklist.
[0110] Optionally, the target user card information includes the operator information and number segment information of the user card.
[0111] Figure 7 7 is a schematic diagram of a structure of a device for sending short messages according to an exemplary embodiment. The device for sending short messages may include a processor 702, and the processor 702 is used to execute application code to implement the method for sending short messages in the present application.
[0112] The processor 702 may be a CPU, a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.
[0113] like Figure 7 As shown, the SMS sending device may further include a memory 703. The memory 703 is used to store application program codes for executing the solution of the present application, and is controlled to execute by the processor 702.
[0114] The memory 703 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 703 may exist independently and be connected to the processor 702 via the bus 704. The memory 703 may also be integrated with the processor 702.
[0115] like Figure 7 As shown, the SMS sending device may further include a communication interface 701, wherein the communication interface 701, the processor 702, and the memory 703 may be coupled to each other, for example, via a bus 704. The communication interface 701 is used to exchange information with other devices, for example, to support information exchange between the SMS sending device and other devices.
[0116] It should be pointed out that Figure 7 The device structure shown in the figure does not constitute a limitation on the device for sending the text message, except Figure 7 In addition to the components shown, the device for sending short messages may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0117] In actual implementation, the functions implemented by the processing module 602 can be Figure 7 The processor 702 shown calls the program code in the memory 703 to implement.
[0118] The present application also provides a computer-readable storage medium, on which instructions are stored, and when the instructions in the computer-readable storage medium are executed by a processor of a computer device, the computer can execute the sending of the text message provided in the above-mentioned embodiment. For example, the computer-readable storage medium can be a memory 703 including instructions, and the above instructions can be executed by a processor 702 of a computer device to complete the above method. Optionally, the computer-readable storage medium can be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium can be a ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
[0119] Figure 8 A conceptual partial view of a computer program product provided by an embodiment of the present application is exemplarily shown, where the computer program product includes a computer program for executing a computer process on a computing device.
[0120] In one embodiment, the computer program product is provided using a signal bearing medium 800. The signal bearing medium 800 may include one or more program instructions that, when executed by one or more processors, may provide the above-described Figure 2 or Figure 3 Thus, for example, reference to Figure 2 In the embodiment shown in , one or more features of S201 to S203 may be undertaken by one or more instructions associated with the signal bearing medium 800. In addition, Figure 8 The program instructions in also describe example instructions.
[0121] In some examples, the signal bearing medium 800 may include a computer readable medium 801, such as, but not limited to, a hard drive, a compact disk (CD), a digital video disk (DVD), a digital tape, a memory, a read-only memory (ROM), or a random access memory (RAM), and the like.
[0122] In some implementations, the signal bearing medium 800 may include a computer recordable medium 802 such as, but not limited to, a memory, a read / write (R / W) CD, R / W, DVD, or the like.
[0123] In some implementations, signal bearing medium 800 may include communication medium 803 such as, but not limited to, digital and / or analog communication media (eg, fiber optic cables, waveguides, wired communication links, wireless communication links, etc.).
[0124] The signal bearing medium 800 may be communicated by a wireless form of communication medium 803. The one or more program instructions may be, for example, computer executable instructions or logic implemented instructions.
[0125] In some examples, such as for Figure 6 The described text message sending device may be configured to provide various operations, functions, or actions in response to one or more program instructions in the computer-readable medium 801 , the computer-recordable medium 802 , and / or the communication medium 803 .
[0126] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0127] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0128] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0129] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0130] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the full classification part or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute the full classification part or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes various media that can store program codes, such as-U disk, mobile hard disk, ROM, RAM, disk or CD.
[0131] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for sending a text message, characterized in that: Applied to an electronic device, the electronic device stores a preset blacklist, and the SMS center numbers in the preset blacklist are not allowed to execute SMS services. The method includes: Receive the target SMS input by the user; Determine whether the first SMS center number exists in the preset blacklist, where the first SMS center number is a SMS center number preset in the electronic device; If the preset blacklist does not contain the first SMS center number, sending the target SMS based on the first SMS center number.
2. The method according to claim 1, characterized in that After receiving the target SMS input by the user, the method further includes: Determining a target confidentiality level of content in the target text message according to the target text message; Determining whether the target confidentiality level is greater than a preset level threshold; The determining whether the first SMS center number exists in the preset blacklist includes: If the target confidentiality level is less than or equal to the preset level threshold, it is determined whether the first SMS center number exists in the preset blacklist.
3. The method according to claim 2, characterized in that The electronic device also stores target user card information and a preset mapping table, wherein the preset mapping table includes a correspondence between a plurality of preset user card information and a plurality of preset SMS center numbers; the method further includes: If the target confidentiality level is greater than the preset level threshold, determining whether the first SMS center number is the same as the second SMS center number corresponding to the target user card information in the preset mapping table; If the first SMS center number is the same as the second SMS center number, the target SMS is sent based on the first SMS center number.
4. The method according to claim 3, characterized in that The method further comprises: If the first SMS center number is different from the second SMS center number, the first SMS center number is modified to the second SMS center number, and the target SMS is sent based on the second SMS center number.
5. The method according to claim 3, characterized in that: The method further comprises: If the target confidentiality level is less than or equal to the preset level threshold and the first SMS center number exists in the preset blacklist, the first SMS center number is modified to the second SMS center number, and the target SMS is sent based on the second SMS center number.
6. The method according to any one of claims 3 to 5, characterized in that: The target user card information includes the operator information and number segment information of the user card.
7. A device for sending short messages, characterized in that: Applied to an electronic device, the electronic device stores a preset blacklist, and the SMS center numbers in the preset blacklist are not allowed to execute SMS services. The device includes: The acquisition module is used to receive the target SMS input by the user; A processing module, used for determining whether the first SMS center number exists in the preset blacklist, where the first SMS center number is a SMS center number preset in the electronic device; The sending module is configured to send the target SMS based on the first SMS center number if the first SMS center number does not exist in the preset blacklist.
8. A device for sending short messages, characterized in that: include: Processor and memory; The processor is coupled to the memory; The memory is used to store one or more programs, and the one or more programs include computer execution instructions. When the text message sending device is running, the processor executes the computer execution instructions stored in the memory to enable the text message sending device to perform the text message sending method as described in any one of claims 1-6.
9. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, characterized in that: When the computer executes the instruction, the computer executes the method for sending a short message as described in any one of claims 1 to 6.
10. A computer program product, characterized in that The computer program product comprises computer program instructions, and when the computer program instructions are executed, the method for sending a short message according to any one of claims 1 to 6 is implemented.
Citation Information
Cited By
Short message sending method, apparatus and device, and storage medium
WO2026007365A1
