SMS deduction detection method and device, electronic device and storage medium
By verifying the valid status of the target mobile phone number, the SMS deduction behavior of the third-party server is automatically detected, which solves the corporate losses caused by the SMS deduction of the third-party middlemen, and improves the detection efficiency and accuracy.
Patent Information
- Application Number
- CN202110949094.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-18
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2041-08-18
AI Technical Summary
In the prior art, the company suffers losses due to the SMS deduction behavior of third-party middlemen, and there is a lack of effective detection and prevention measures.
By obtaining the successful sending information feedback from the third-party server, verifying the valid status of the target mobile phone number, and determining whether it is an invalid number, thereby determining whether there is any SMS deduction behavior in the third-party server.
It automatically detects the SMS deduction behavior of third-party servers, avoids losses caused by false SMS sending, and improves verification efficiency and accuracy.
Smart Images

Figure CN115708378B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent monitoring technology, and in particular to a method and device for detecting SMS deductions, an electronic device, and a storage medium. Background Art
[0002] Many SMS clients currently work directly with telecom operators, and in this scenario, third-party intermediaries generally don't deduct SMS volume. SMS deduction refers to the practice of fraudulently sending SMS messages to carriers via third-party servers to further illicit commercial interests. These intermediaries may then falsely report or withhold SMS messages, while still returning a successful delivery status receipt to the enterprise, in order to illegally collect settlement fees. Enterprise SMS is a messaging service specifically designed for businesses, enabling them to send SMS messages, query content, and receive status report receipts. While most third-party intermediaries are compliant and trustworthy and do not engage in SMS deductions, a few unregulated third-party intermediaries still engage in SMS deductions.
[0003] In related technologies, since the settlement between the client and the third-party intermediary is based on the billing and settlement of each SMS success status report (failure status report is not settled), when the third-party intermediary deducts SMS volume, losses will be caused by the SMS deduction behavior.
[0004] There is currently no effective solution to the technical problem of losses caused by the SMS deduction behavior in related technologies. Summary of the Invention
[0005] In order to solve the above-mentioned technical problem of losses caused by the SMS deduction behavior, the present application provides a SMS deduction detection method and device, electronic equipment and storage medium.
[0006] In a first aspect, an embodiment of the present application provides a method for detecting SMS deductions, comprising:
[0007] Obtaining a successful delivery message from a third-party server, wherein the successful delivery message indicates that the target SMS message has been successfully delivered to the terminal corresponding to the target mobile phone number;
[0008] Verifying the validity status corresponding to the target mobile phone number to obtain a verification result, wherein the verification result is used to indicate whether the target mobile phone number is an invalid number;
[0009] When the verification result indicates that the target mobile phone number is an invalid number, the third-party server is determined to be an illegal server that has engaged in SMS deduction behavior.
[0010] Optionally, as in the aforementioned method, verifying the validity status corresponding to the target mobile phone number to obtain a verification result includes:
[0011] Obtaining a mobile phone number database storing invalid mobile phone numbers, wherein the invalid mobile phone numbers include mobile phone numbers that cannot be used for communication;
[0012] When the invalid mobile phone number that is consistent with the target mobile phone number is found in the mobile phone number database, the verification result indicating that the target mobile phone number is an invalid number is generated.
[0013] Optionally, as in the aforementioned method, when the verification result indicates that the target mobile phone number is an invalid number, determining that the third-party server is an illegal server that has engaged in SMS deductions includes:
[0014] If the verification result indicates that the target mobile phone number is an invalid number, initiating a communication request for establishing a communication connection with a terminal corresponding to the target mobile phone number within a preset time period;
[0015] When a response indicating that the target mobile phone number is invalid is received, the third-party server is determined to be an illegal server that has engaged in SMS deduction behavior.
[0016] Optionally, as in the aforementioned method, the method further includes:
[0017] When a response indicating that the target mobile phone number is valid is received, a final verification result indicating that the target mobile phone number is a valid number is generated;
[0018] According to the final verification result, the invalid mobile phone number that is consistent with the target mobile phone number is deleted from the mobile phone number database to obtain the modified mobile phone number database.
[0019] Optionally, as in the aforementioned method, verifying the validity status corresponding to the target mobile phone number to obtain a verification result includes:
[0020] Establishing a connection with a verification server for verification, wherein the verification server is used to determine the validity status of the input mobile phone number;
[0021] The target mobile phone number is transmitted to the verification server for verification, and the verification result fed back by the verification server is obtained.
[0022] Optionally, as in the aforementioned method, after obtaining the sending success information fed back by the third-party server, the method further includes:
[0023] If the verification result indicates that the target mobile phone number is a valid number, obtaining SMS information of the terminal corresponding to the target mobile phone number;
[0024] When the target SMS message is not found in the SMS information, the third-party server is determined to be the illegal server.
[0025] Optionally, as in the aforementioned method, before obtaining the sending success information fed back by the third-party server, the method further includes at least one of the following steps:
[0026] Determine the target SMS content to be sent and the mobile phone number to be sent corresponding to the terminal to which the target SMS content needs to be sent, and send the target SMS content and the mobile phone number to be sent to the third-party server;
[0027] Obtaining a control plan corresponding to each SMS type; when the control plan is triggered for execution, controlling the SMS content of the SMS to be sent according to the control plan corresponding to the SMS type to be sent;
[0028] Obtain monitoring time period information; within the time period corresponding to the monitoring time period information, monitor whether the third-party server has any SMS deduction behavior.
[0029] In a second aspect, an embodiment of the present application provides a device for detecting SMS deductions, comprising:
[0030] An acquisition module is used to obtain a sending success message fed back by a third-party server, wherein the sending success message is used to indicate that the target SMS message is successfully sent to the terminal corresponding to the target mobile phone number;
[0031] a verification module, configured to verify the validity status corresponding to the target mobile phone number and obtain a verification result, wherein the verification result is used to indicate whether the target mobile phone number is an invalid number;
[0032] The determination module is used to determine that the third-party server is an illegal server that has engaged in SMS deduction behavior when the verification result indicates that the target mobile phone number is an invalid number.
[0033] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
[0034] The memory is used to store computer programs;
[0035] The processor is configured to implement any of the aforementioned methods when executing the computer program.
[0036] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the storage medium includes a stored program, wherein the program executes the method as described in any of the preceding items when running.
[0037] The embodiment of the present application provides a method and device for detecting SMS deductions, an electronic device, and a storage medium; wherein the method includes: obtaining a sending success message fed back by a third-party server, wherein the sending success message is used to indicate that the target SMS is successfully sent to the terminal corresponding to the target mobile phone number; verifying the valid status corresponding to the target mobile phone number to obtain a verification result, wherein the verification result is used to indicate whether the target mobile phone number is an invalid number; when the verification result indicates that the target mobile phone number is an invalid number, determining that the third-party server is an illegal server that has engaged in SMS deductions. Through the method in this embodiment, it is possible to automatically detect whether a third-party server is an illegal server that has engaged in SMS deductions; thereby, it is possible to avoid losses caused by the false SMS sending behavior of the illegal third-party server. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0040] Figure 1 A flowchart of a method for detecting SMS deductions provided in an embodiment of the present application;
[0041] Figure 2 A flowchart of a method for detecting SMS deductions provided in another embodiment of the present application;
[0042] Figure 3 A flowchart of a method for detecting SMS deductions provided in another embodiment of the present application;
[0043] Figure 4 A block diagram of a device for detecting SMS deductions provided in an embodiment of the present application;
[0044] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0046] According to one aspect of an embodiment of the present application, a method for detecting SMS deductions is provided. Optionally, in this embodiment, the above-mentioned SMS deduction detection method can be applied to a hardware environment consisting of a terminal and a server. The server is connected to the terminal via a network and can be used to provide services for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server.
[0047] The aforementioned network may include, but is not limited to, at least one of the following: a wired network and a wireless network. The aforementioned wired network may include, but is not limited to, at least one of the following: a wide area network, a metropolitan area network, or a local area network. The aforementioned wireless network may include, but is not limited to, at least one of the following: Wi-Fi (Wireless Fidelity) and Bluetooth. The terminal may be, but is not limited to, a PC, a mobile phone, a tablet computer, or the like.
[0048] The SMS deduction detection method of the embodiment of the present application can be executed by a server, or by a terminal, or by both a server and a terminal. The execution of the SMS deduction detection method of the embodiment of the present application by the terminal can also be executed by a client installed thereon.
[0049] Taking the SMS deduction detection method in this embodiment executed by the server as an example, Figure 1 A method for detecting SMS deductions provided in an embodiment of the present application includes the following steps:
[0050] Step S101: Obtain sending success information fed back by a third-party server, wherein the sending success information is used to indicate that the target SMS is successfully sent to the terminal corresponding to the target mobile phone number.
[0051] The SMS deduction detection method in this embodiment can be applied to scenarios where a company sends SMS messages through a third-party intermediary other than an operator, and determines whether the third-party intermediary has actually sent the SMS message to the terminal corresponding to the target mobile phone number through a third-party server. For other non-contradictory situations, the above SMS deduction detection method is also applicable.
[0052] Generally, the steps for a company to send a text message to a terminal through a third-party intermediary may include the following: the company sends the text message content and mobile phone number to the third-party intermediary, and then the third-party intermediary sends the text message content and mobile phone number to the operator, and then the operator sends the text message content to the terminal corresponding to the mobile phone number. When the mobile phone number is valid, the terminal corresponding to the mobile phone number will feedback the successful sending information to the operator, and the company can obtain the successful sending information through the third-party intermediary; when the mobile phone number is invalid, the operator generates a sending failure information, and the company can obtain the successful sending information through the third-party intermediary. When the third-party intermediary deducts text messages, the third-party intermediary will not send the text message content and mobile phone number to the operator, and will directly return the successful sending information to the company.
[0053] A successful delivery message can be a message sent by a third-party server to a third-party intermediary after the server sends the target SMS to the server corresponding to the target mobile phone number. This message notifies the server that the third-party server has delivered the target SMS to the terminal corresponding to the target mobile phone number. Typically, the target SMS is a corporate SMS. However, since the third-party server may not deliver the target SMS to the terminal corresponding to the target mobile phone number, even though it returns a successful delivery message, this successful delivery message may be forged.
[0054] The target mobile phone number can be any mobile phone number, or it can be a mobile phone number that can be used to verify whether the target text message is actually received; for example, a suspended mobile phone number, an empty number, etc.
[0055] Step S102: Verify the validity status corresponding to the target mobile phone number to obtain a verification result, wherein the verification result is used to indicate whether the target mobile phone number is an invalid number.
[0056] After obtaining the successful sending information, you can verify the validity status of the target mobile phone number.
[0057] The valid status can be, for example, in call, empty number, out of service, powered off, invalid mobile phone number, etc., which is used to characterize whether the target mobile phone number can currently be used for communication. Based on the valid status, the verification result of whether the target mobile phone number is currently an invalid number can be obtained. An invalid number is a number that cannot be used for communication.
[0058] Step S103: When the verification result indicates that the target mobile phone number is an invalid number, the third-party server is determined to be an illegal server that has engaged in SMS deduction behavior.
[0059] After obtaining the verification result, you can determine whether the third-party server has deducted SMS volume based on the verification result.
[0060] SMS deduction can occur when a company's SMS is sent and transmitted. In order to satisfy more illegal commercial interests, an illegal third-party intermediary will not send or fail to send the company's SMS when sending it to the operator through a third-party server, but will still return a status report receipt of successful sending to the company, thereby illegally earning the company's settlement fees by sending false SMS.
[0061] If the verification result indicates that the target mobile phone number is an invalid number, it means that the third-party server is unable to send the target SMS to the terminal corresponding to the target mobile phone number. Therefore, the successful sending information is obviously false information. In this case, the third-party server can be identified as an illegal server that has engaged in SMS deduction behavior.
[0062] The illegal server is a third-party server that deducts SMS messages.
[0063] Through the method in this embodiment, it is possible to automatically detect whether a third-party server is an illegal server that deducts SMS messages; thereby avoiding losses caused by the false SMS sending behavior of the illegal third-party server.
[0064] like Figure 2 As shown, as an optional implementation, as in the above method, step S102 verifies the valid status corresponding to the target mobile phone number, and obtaining the verification result includes the following steps:
[0065] Step S201: Obtain a mobile phone number database storing invalid mobile phone numbers, wherein the invalid mobile phone numbers include mobile phone numbers that cannot be used for communication.
[0066] The mobile phone number database may pre-store multiple invalid mobile phone numbers; and an invalid mobile phone number may be a mobile phone number that cannot be used for communication in a historical period before the current time point, such as an empty number, an invalid mobile phone number, etc.
[0067] The historical time period can be the time period before and including the time point when the invalid mobile phone number is stored in the mobile phone number database, or the time period before and including the time point when the mobile phone number in the mobile phone number database is verified as unusable for communication; for example, if the time when the invalid mobile phone number I is stored in the mobile phone number database is 12:00:00 on June 23, 2021, then the historical time period is the time period before and including 12:00:00 on June 23, 2021.
[0068] Step S202: When an invalid mobile phone number that is consistent with the target mobile phone number is found in the mobile phone number database, a verification result indicating that the target mobile phone number is an invalid number is generated.
[0069] Since the mobile phone number database stores invalid mobile phone numbers, when an invalid mobile phone number that is consistent with the target mobile phone number is found in the mobile phone number database, the target mobile phone number is also an invalid mobile phone number.
[0070] After determining that the target mobile phone number is also an invalid mobile phone number, it can be determined that the target mobile phone number has not been available for communication in the historical period; therefore, the target mobile phone number is also likely to be unavailable for communication at the moment. Therefore, the verification result indicating that the target mobile phone number is currently unavailable for communication can be generated.
[0071] Through the method in this embodiment, it is only necessary to compare the target mobile phone number with invalid mobile phone numbers in the mobile phone number database to determine whether the target mobile phone number can be used for communication, thereby effectively improving the efficiency of verification and reducing the verification pressure of the system.
[0072] As an optional implementation, as in the aforementioned method, since the historical time period is generally earlier than the time when the target SMS is sent to the terminal corresponding to the target mobile phone number through the third-party server, even if the target mobile phone number cannot be used for communication during the historical time period, there is still a probability that the target mobile phone number can be used for communication when the third-party server sends the target SMS to the terminal corresponding to the target mobile phone number. Therefore, when it is determined through steps S201 and S202 that the target mobile phone number is currently unavailable for communication, the target mobile phone number can be further verified to obtain the final verification result.
[0073] Furthermore, before further verification of the target mobile phone number, the target mobile phone number may be written into a preset pending review list, so that each mobile phone number in the pending review list can be further verified later.
[0074] When no invalid mobile phone number that is consistent with the target mobile phone number is found in the mobile phone number database, the target mobile phone number can be determined as a mobile phone number that can be used for communication, and subsequent steps are stopped.
[0075] Therefore, if Figure 3 As shown, in step S103, when the verification result indicates that the target mobile phone number is an invalid number, determining that the third-party server is an illegal server that has engaged in SMS deduction behavior includes the following steps:
[0076] Step S301: When the verification result indicates that the target mobile phone number is an invalid number, a communication request for establishing a communication connection with a terminal corresponding to the target mobile phone number is initiated within a preset time period.
[0077] After obtaining the successful sending information corresponding to the target mobile phone number, and when the verification result indicates that the target mobile phone number is an invalid number, in order to further verify whether the target mobile phone number can receive the target text message, a communication request for communication connection with the terminal corresponding to the target mobile phone number can be initiated within a preset time period, so as to verify whether the target mobile phone number actually receives the target text message, that is, whether it is an invalid number, by whether a communication connection can be established between the terminal corresponding to the target mobile phone number. Furthermore, when the server can establish a communication connection with the terminal, the communication request can be directly initiated through the server. When the server cannot establish a communication connection with the terminal, the communication request can be initiated through the server control of the device that can be used to establish a communication connection with the terminal. If a communication connection cannot be established with the terminal corresponding to the target mobile phone number, the target mobile number cannot receive the target text message.
[0078] The preset time period can be a pre-set time period that limits the maximum time interval from receiving the successful transmission information to initiating the communication request, for example, 1 hour, 0.5 hours, etc. Generally, verification is completed within 1 hour, and the probability of error increases if it exceeds 1 hour.
[0079] By setting a preset time period, it is possible to avoid misjudgment of the verification result caused by changes in the device status (for example, power on, power off, shutdown) of the terminal corresponding to the target mobile phone number.
[0080] Step S302: When a response indicating that the target mobile phone number is invalid is received, the third-party server is determined to be an illegal server that has engaged in SMS deduction behavior.
[0081] When a response indicating that the target mobile phone number is invalid is received, it means that after further verification of the target mobile phone number within the preset time period, it is still determined that the target mobile phone number cannot be used for communication.
[0082] The response indicating that the target mobile phone number is invalid may be, for example, a response message from the operator, such as a message indicating an incorrect number or an automatic hang-up. If the server can establish a communication connection with the terminal, the server may directly obtain the response. If the server cannot establish a communication connection with the terminal, the server may obtain the response through a device that can be used to establish a communication connection with the terminal.
[0083] Through the method in this embodiment, by initiating a communication request when the verification result indicates that the target mobile phone number is currently unavailable for communication, the third-party server can be determined as an illegal server that has engaged in SMS deductions only when a response indicating that the target mobile phone number is invalid is received. This can avoid misjudgments caused by using a mobile phone number database of a historical time period to verify whether the target mobile phone number can currently be used for communication.
[0084] As an optional implementation, as in the above method, the method further includes the following steps:
[0085] Step S401: When a response indicating that the target mobile phone number is valid is received, a final verification result indicating that the target mobile phone number can currently be used for communication is generated.
[0086] When a response indicating that the target mobile number is valid is received, it means that although the target mobile number was not available for communication in the past time period, it is currently available for communication. Therefore, a final verification result indicating that the target mobile number is currently available for communication is generated. A valid response may be a response such as a successful SMS delivery.
[0087] When the server can establish a communication connection with the terminal, the server can directly obtain the response; when the server cannot establish a communication connection with the terminal, the server can obtain the response through a device that can be used to establish a communication connection with the terminal.
[0088] The final verification result may be final result information indicating whether the target mobile phone number can be used for communication, for example: a valid mobile phone number, an invalid mobile phone number, etc.
[0089] Step S402: Based on the final verification result, in the mobile phone number database, the invalid mobile phone number that is consistent with the target mobile phone number is deleted to obtain a modified mobile phone number database.
[0090] When it is determined that there is an invalid mobile phone number that is consistent with the target mobile phone number in the mobile phone number database, since the historical time period may be earlier than the time when the target SMS is sent to the terminal corresponding to the target mobile phone number through the third-party server, it is possible that the target mobile phone number cannot be used for communication when it is stored in the mobile phone number database, but when the target SMS is sent to the terminal corresponding to the target mobile phone number, the target mobile phone number can be used for communication because it is activated; therefore, when the final verification result indicates that the target mobile phone number can be used for communication, that is, the target mobile phone number is currently activated, the invalid mobile phone number that is consistent with the target mobile phone number can be deleted from the mobile phone number database to obtain a modified mobile phone number database, thereby ensuring that the invalid mobile phone numbers in the modified mobile phone number database are all mobile phone numbers that cannot be used for communication.
[0091] Through the method in this embodiment, invalid mobile phone numbers in the mobile phone number database can be updated in a timely manner to avoid the situation where a third-party server is mistakenly judged as an illegal server because the invalid mobile phone number can be used for communication, thereby improving the accuracy of subsequent SMS deduction behavior judgments.
[0092] As an optional implementation, as in the aforementioned method, step S102 verifies the validity status corresponding to the target mobile phone number, and obtaining the verification result includes the following steps:
[0093] Step S501: Establish a connection with a verification server for verification, wherein the verification server is used to determine the validity status of the input mobile phone number.
[0094] After obtaining the successful sending information corresponding to the target mobile phone number, in order to verify whether the target mobile phone number actually receives the target SMS, a connection can be established with the verification server used for verification to verify the valid status of the target mobile phone number through the verification server.
[0095] The verification server may store valid mobile phone number data of all valid numbers that can be used for communication. For example, when the verification server is located on the operator side, the server may access the valid mobile phone number data in the verification server by accessing an interface provided by the operator.
[0096] Step S502: The target mobile phone number is transmitted to a verification server for verification, and a verification result fed back by the verification server is obtained.
[0097] When the server verifies the target mobile phone number through the verification server, the target mobile phone number can be transmitted to the verification server. The verification server can query the target mobile phone number in the valid mobile phone number data and obtain the verification result based on the query result. For example, when the verification server queries a mobile phone number that is consistent with the target mobile phone number in the valid mobile phone number data, the verification result can be: the target mobile phone number is available; when the verification server does not query a mobile phone number that is consistent with the target mobile phone number in the valid mobile phone number data, the verification result can be: the target mobile phone number is unavailable.
[0098] The method in this embodiment provides another method for determining whether a target mobile phone number can be used for communication, and can quickly determine whether a mobile phone number can be used for communication, thereby significantly improving verification efficiency.
[0099] As an optional implementation, as in the aforementioned method, after obtaining the sending success information fed back by the third-party server in step S101, the method further includes the following steps:
[0100] Step S601: When the verification result indicates that the target mobile phone number is a valid number, obtain the SMS information of the terminal corresponding to the target mobile phone number.
[0101] The target mobile phone number is a valid number. It can be a pre-determined mobile phone number that can be used for communication, such as the mobile phone number of an internal employee of the company where the server is located. All information on the terminal corresponding to the target mobile phone number can be obtained. Therefore, in this case, all SMS messages on the terminal corresponding to the target mobile phone number can be obtained.
[0102] Step S602: If the target SMS message is not found in the SMS message, the third-party server is determined to be an illegal server.
[0103] Since the third-party server has fed back a successful sending message, if the successful sending message is true, the target SMS must be present in the SMS message.
[0104] If the target SMS is not found in the SMS information, it means that the successful sending information is false information, and the third-party server is determined to be an illegal server that has deducted SMS volume.
[0105] Through the method in this embodiment, another method for determining whether a third-party server is an illegal server that has engaged in SMS deduction behavior is provided, which can further improve the detection accuracy of illegal servers.
[0106] As an optional implementation, as in the aforementioned method, before obtaining the sending success information fed back by the third-party server in step S101, the method further includes at least one of the following steps:
[0107] Step S701: determine the target SMS content to be sent and the mobile phone number to which the target SMS content is to be sent, and send the target SMS content and the mobile phone number to a third-party server.
[0108] Since the server needs to send the target SMS through a third-party server, the server can specify the target SMS content to be sent and the mobile phone number to which the target SMS content needs to be sent, corresponding to the terminal.
[0109] After the server sends the target SMS content and the mobile phone number to be sent to the third-party server, the purpose of monitoring the SMS deduction behavior of a single user is achieved.
[0110] Step S702, obtaining a control plan corresponding to each SMS type; when the control plan is triggered for execution, controlling the SMS content of the SMS to be sent according to the control plan corresponding to the SMS type.
[0111] Before sending the SMS to be sent to the third-party server, the content, number of characters and other information of the SMS to be sent may be controlled, and then the controlled SMS to be sent to the third-party server.
[0112] SMS messages can be verification code messages, notification messages, marketing messages, and other messages with different functions. Different SMS types require different management and control, so you need to obtain a management and control plan that corresponds to each SMS type.
[0113] The control scheme can be a scheme for controlling text messages of the corresponding text message type. For example, when the text message type of text message A is a verification code text message, the control scheme a corresponding to text message A needs to determine whether the verification code in text message A meets the preset digit requirement (for example, 4 digits or 6 digits, etc.); when text message B is a marketing text message, the control scheme b corresponding to text message B needs to control the content in text message B to avoid sending text messages containing sensitive words or illegal words to users. After determining the control scheme corresponding to each type of text message, when the control scheme is triggered for execution, the content of the text message to be sent can be controlled according to the control scheme corresponding to the type of text message to be sent.
[0114] Optionally, whether the SMS content is controlled through the control scheme can be controlled by setting a switch to indicate whether a certain type of SMS or all SMS messages needs to be controlled. When the switch is turned on, the control scheme is triggered for execution. Therefore, the SMS content to be sent can be controlled according to the control scheme corresponding to the SMS type to be sent. For example, when the switch corresponding to control scheme a is turned on, the SMS content in SMS A needs to be determined by control scheme a to determine whether the verification code therein meets the preset digit requirement (for example, 4 digits or 6 digits, etc.). If the switch corresponding to control scheme a is turned off, the SMS content in SMS A will not be controlled, and will be sent directly to the third-party server to be sent to the corresponding terminal through the third-party server.
[0115] Step S703, obtaining monitoring time period information; within the time period corresponding to the monitoring time period information, monitoring whether there is any SMS deduction behavior on the third-party server.
[0116] When monitoring whether a third-party server has SMS deduction behavior, it is not necessary to monitor it all the time. You can select the monitoring time period that needs to be monitored to monitor the SMS deduction behavior.
[0117] The monitoring time period information can be used to indicate the time period corresponding to the SMS deduction behavior that needs to be monitored. For example, the peak SMS sending period or the monitoring personnel's working hours, etc. The monitoring time period information can also be customized, for example, it can be set to 9:00-18:00, 12:00-24:00, etc. After obtaining the monitoring time period information, the third-party server can be monitored for SMS deduction behavior only during the time period corresponding to the monitoring time period information.
[0118] Among them, the method for monitoring whether there is SMS deduction behavior on the third-party server can be as described in the SMS deduction detection method in the aforementioned embodiment, and will not be repeated here.
[0119] Through the method in this embodiment, it is possible to implement management and control of text messages sent with respect to individual users, text message types, and monitoring time periods, thereby achieving the purpose of refined control of text messages.
[0120] like Figure 4 As shown, according to an embodiment of another aspect of the present application, a device for detecting SMS deduction is provided, comprising:
[0121] Acquisition module 1 is used to obtain the sending success information fed back by the third-party server, wherein the sending success information is used to indicate that the target SMS is successfully sent to the terminal corresponding to the target mobile phone number;
[0122] Verification module 2 is used to verify the validity status corresponding to the target mobile phone number and obtain a verification result, wherein the verification result is used to indicate whether the target mobile phone number is an invalid number;
[0123] Determination module 3 is used to determine that the third-party server is an illegal server that has deducted SMS volume when the verification result indicates that the target mobile phone number is an invalid number.
[0124] Specifically, the specific process of each module in the device of the embodiment of the present invention realizing its function can be referred to the relevant description in the method embodiment, which will not be repeated here.
[0125] As an optional embodiment, the aforementioned device further includes:
[0126] An invalid mobile phone number acquisition module is used to obtain a mobile phone number database storing invalid mobile phone numbers, wherein invalid mobile phone numbers include mobile phone numbers that cannot be used for communication;
[0127] The target type determination module is used to determine that the target mobile phone number is a target type mobile phone number when an invalid mobile phone number that is consistent with the target mobile phone number is queried in the mobile phone number database, and to perform a jump operation, wherein the target type mobile phone number is a mobile phone number that cannot be used for communication, and the jump operation is used to jump to the step of verifying the valid status corresponding to the target mobile phone number and obtaining the verification result.
[0128] Specifically, the specific process of each module in the device of the embodiment of the present invention realizing its function can be referred to the relevant description in the method embodiment, which will not be repeated here.
[0129] As an optional embodiment, the aforementioned device further includes:
[0130] The deletion module is used to delete the invalid mobile phone number that is consistent with the target mobile phone number in the mobile phone number database when the verification result indicates that the target mobile phone number can currently be used for communication, so as to obtain a modified mobile phone number database.
[0131] Specifically, the specific process of each module in the device of the embodiment of the present invention realizing its function can be referred to the relevant description in the method embodiment, which will not be repeated here.
[0132] As an optional implementation, as in the aforementioned apparatus, the verification module 2 is configured to:
[0133] Initiate a communication request to establish a communication connection with the terminal corresponding to the target mobile phone number within a preset time period;
[0134] When receiving a response indicating that the target mobile phone number is invalid, generating a verification result indicating that the target mobile phone number is currently unavailable for communication;
[0135] When a response to the communication request is received, a verification result is generated indicating that the target mobile phone number is a valid number.
[0136] Specifically, the specific process of each module in the device of the embodiment of the present invention realizing its function can be referred to the relevant description in the method embodiment, which will not be repeated here.
[0137] As an optional implementation, as in the aforementioned apparatus, the verification module 2 is further configured to:
[0138] Establishing a connection with a verification server for verification, wherein the verification server is used to determine the validity status of the input mobile phone number;
[0139] The target mobile phone number is transmitted to the verification server for verification, and the verification result is fed back by the verification server.
[0140] Specifically, the specific process of each module in the device of the embodiment of the present invention realizing its function can be referred to the relevant description in the method embodiment, which will not be repeated here.
[0141] As an optional implementation, the aforementioned device further includes a text message verification module for:
[0142] If the verification result indicates that the target mobile phone number is a valid number, obtain the SMS information of the terminal corresponding to the target mobile phone number;
[0143] When the target SMS message is not found in the SMS information, the third-party server is determined to be an illegal server.
[0144] Specifically, the specific process of each module in the device of the embodiment of the present invention realizing its function can be referred to the relevant description in the method embodiment, which will not be repeated here.
[0145] As an optional implementation, the aforementioned device further includes at least one of the following modules:
[0146] The first control module is used to determine the target SMS content to be sent and the mobile phone number to which the target SMS content is to be sent, and send the target SMS content and the mobile phone number to be sent to the third-party server;
[0147] The second control module is used to obtain a control plan corresponding to each SMS type; when the control plan is triggered for execution, the SMS content to be sent is controlled according to the control plan corresponding to the SMS type;
[0148] The third control module is used to obtain monitoring time period information; within the time period corresponding to the monitoring time period information, monitor whether there is any SMS deduction behavior on the third-party server.
[0149] Specifically, the specific process of each module in the device of the embodiment of the present invention realizing its function can be referred to the relevant description in the method embodiment, which will not be repeated here.
[0150] According to another embodiment of the present application, there is also provided an electronic device, including: Figure 5 As shown, the electronic device may include: a processor 1501 , a communication interface 1502 , a memory 1503 and a communication bus 1504 , wherein the processor 1501 , the communication interface 1502 , and the memory 1503 communicate with each other via the communication bus 1504 .
[0151] Memory 1503, used for storing computer programs;
[0152] The processor 1501 is configured to implement the steps of the above method embodiment when executing the program stored in the memory 1503 .
[0153] The bus mentioned in the electronic device mentioned above may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. This bus can be divided into address buses, data buses, control buses, etc. For ease of illustration, only one thick line is used in the figure, but this does not mean that there is only one bus or only one type of bus.
[0154] The communication interface is used for communication between the above electronic device and other devices.
[0155] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage. Alternatively, the memory may be at least one storage device located away from the processor.
[0156] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be 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, and discrete hardware components.
[0157] An embodiment of the present application further provides a computer-readable storage medium, the storage medium including a stored program, wherein the method steps of the above method embodiment are executed when the program is run.
[0158] 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.
[0159] The foregoing description is intended only to provide specific embodiments of the present invention, which will enable those skilled in the art to understand and implement the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention is not intended to be limited to the embodiments shown herein, but is intended to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for detecting SMS deduction, characterized in that: include: Obtaining a successful delivery message from a third-party server, wherein the successful delivery message indicates that the target SMS message has been successfully delivered to the terminal corresponding to the target mobile phone number; Verifying the validity status corresponding to the target mobile phone number to obtain a verification result, wherein the verification result is used to indicate whether the target mobile phone number is an invalid number; When the verification result indicates that the target mobile phone number is an invalid number, the third-party server is determined to be an illegal server that has engaged in SMS deduction behavior.
2. The method according to claim 1, characterized in that The valid status corresponding to the target mobile phone number is verified, and the verification result obtained includes: Obtaining a mobile phone number database storing invalid mobile phone numbers, wherein the invalid mobile phone numbers include mobile phone numbers that cannot be used for communication; When the invalid mobile phone number that is consistent with the target mobile phone number is found in the mobile phone number database, the verification result indicating that the target mobile phone number is an invalid number is generated.
3. The method according to claim 2, characterized in that When the verification result indicates that the target mobile phone number is an invalid number, determining that the third-party server is an illegal server that has engaged in SMS deductions includes: If the verification result indicates that the target mobile phone number is an invalid number, initiating a communication request for establishing a communication connection with a terminal corresponding to the target mobile phone number within a preset time period; When a response indicating that the target mobile phone number is invalid is received, the third-party server is determined to be an illegal server that has engaged in SMS deduction behavior.
4. The method according to claim 3, characterized in that The method further comprises: When a response indicating that the target mobile phone number is valid is received, a final verification result indicating that the target mobile phone number is a valid number is generated; According to the final verification result, the invalid mobile phone number that is consistent with the target mobile phone number is deleted from the mobile phone number database to obtain the modified mobile phone number database.
5. The method according to claim 1, wherein The valid status corresponding to the target mobile phone number is verified, and the verification result obtained includes: Establishing a connection with a verification server for verification, wherein the verification server is used to determine the validity status of the input mobile phone number; The target mobile phone number is transmitted to the verification server for verification, and the verification result fed back by the verification server is obtained.
6. The method according to claim 1, characterized in that After obtaining the sending success information fed back by the third-party server, the method further includes: If the verification result indicates that the target mobile phone number is a valid number, obtaining SMS information of the terminal corresponding to the target mobile phone number; When the target SMS message is not found in the SMS information, the third-party server is determined to be the illegal server.
7. The method according to claim 1, characterized in that Before obtaining the sending success information fed back by the third-party server, the method further includes at least one of the following steps: Determine the target SMS content to be sent and the mobile phone number to be sent corresponding to the terminal to which the target SMS content needs to be sent, and send the target SMS content and the mobile phone number to be sent to the third-party server; Obtain the control plan corresponding to each SMS type; When the control scheme is triggered for execution, the content of the SMS to be sent is controlled according to the control scheme corresponding to the SMS type of the SMS to be sent; Obtain monitoring time period information; within the time period corresponding to the monitoring time period information, monitor whether the third-party server has any SMS deduction behavior.
8. A device for detecting SMS deduction, characterized in that: include: An acquisition module is used to obtain a sending success message fed back by a third-party server, wherein the sending success message is used to indicate that the target SMS message is successfully sent to the terminal corresponding to the target mobile phone number; a verification module, configured to verify the validity status corresponding to the target mobile phone number and obtain a verification result, wherein the verification result is used to indicate whether the target mobile phone number is an invalid number; The determination module is used to determine that the third-party server is an illegal server that has engaged in SMS deduction behavior when the verification result indicates that the target mobile phone number is an invalid number.
9. An electronic device, characterized in that: include: A processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is configured to implement the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that The storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
False number determination method, equipment, device and readable storage medium
CN109219051A
Control method and terminal for short message reading
WO2016154783A1