Short message sending code number generation method, device, equipment and medium

CN122698960APending Publication Date: 2026-09-04PING AN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610816775.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-08
Publication Date
2026-09-04

AI Technical Summary

Technical Problem

[0005]本发明实施例提供了一种短信发送码号生成方法、装置、设备及介质,旨在解决现有技术中短信的发送号码因其编码规则固定且公开,导致伪冒成本低、用户鉴别伪冒短信困难以及用户行为信息泄露的问题

Benefits of technology

[0010]This invention provides a method, apparatus, device, and medium for generating SMS sending codes. The method includes: responding to an SMS sending request sent by the terminal to which the SMS belongs; obtaining an SMS template and a customer's mobile phone number corresponding to the SMS sending request; obtaining the sending channel configured for the SMS template from a locally stored channel table, and obtaining the sending number corresponding to the sending channel; obtaining a status identifier parameter associated with the customer's mobile phone number from a locally stored number status table; generating a corresponding SMS sending code number based on the sending number, the customer's mobile phone number, and the status identifier parameter; and executing SMS sending to the customer's mobile phone number using the SMS sending code number. This invention optimizes the sending number using the customer's mobile phone number and status identifier parameter to dynamically generate a unique SMS sending code number exclusive to each customer, raising the threshold for counterfeiting, improving user-side anti-counterfeiting capabilities, and effectively protecting user behavior information privacy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122698960A_ABST
    Figure CN122698960A_ABST
Patent Text Reader

Abstract

The application relates to the field of data security, and can be applied to the fields of finance and medicine. The application discloses a short message sending code number generation method, device, equipment and medium. The method comprises the following steps: in response to a short message sending request sent by a terminal of a short message owner, a short message template corresponding to the short message sending request and a customer mobile phone number are acquired; a sending channel configured by the short message template is acquired from a locally stored channel table, and a sending number corresponding to the sending channel is acquired; a state identification parameter associated with the customer mobile phone number is acquired according to a locally stored number state table; a corresponding short message sending code number is generated according to the sending number, the customer mobile phone number and the state identification parameter; and short message sending to the customer mobile phone number is executed by using the short message sending code number. According to the application, the sending number is optimized by using the customer mobile phone number and the state identification parameter, a unique short message sending code number special for the customer is dynamically generated, a pseudo threshold is improved, the anti-pseudo capability of the user side is improved, and the user behavior information privacy is effectively protected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology and can be applied to the financial and medical fields. In particular, it relates to a method, apparatus, device and medium for generating SMS sending codes. Background Technology

[0002] According to current regulations, each enterprise in the financial and healthcare sectors can only apply for one SMS access code for customer communication services, such as the 5-digit code 95XXX, or the 8-digit codes 1068XXXX, 1069XXXX, etc. With the increasing demand for SMS communication from enterprises, they typically use a "main number + sub-number" expansion method to meet the SMS sending needs of different business scenarios. Enterprises use the SMS access code as the main number and then expand it into sub-numbers (such as three-digit codes 001, 002, 003, etc.) based on different products, business lines, and scenarios within the enterprise. For example, a bank in the financial sector holds the main code 10691234 and expands it into 10691234001 (for customer registration), 10691234002 (for verification code sending), 10691234003 (for transaction alerts), etc. This method of extending fixed business sub-numbers based on a single main number is straightforward and simple, making it easy for enterprises to manage and send templated messages for various subdivided businesses.

[0003] However, the publicly displayed sending numbers of enterprises follow a public and fixed sub-number extension coding rule (i.e., "main number + sub-number" extension method), which has the following drawbacks in practical applications: First, because the number rules are fixed and predictable, the simulation cost of counterfeit SMS messages is extremely low. Malicious parties can easily generate counterfeit numbers that conform to this coding rule (for example, by slightly altering the main number or using similar sub-numbers) to send fraudulent messages. Furthermore, from the perspective of the customer's mobile terminal, their interactive service SMS messages with the same enterprise are scattered across multiple different numbers, with content displayed on different screens. This makes customers accustomed to the enterprise using numerous sending numbers, making it difficult to establish a stable and reliable basis for identification. For other counterfeit SMS sending numbers using the enterprise's signature, the difficulty for individual customers to verify authenticity increases significantly, resulting in weak security and a poor user experience. For example, customer B of bank A receives multiple text messages from bank A's mobile phone, with the content displayed in a split-screen format, such as 10691234001, 10691234002, 10691234003, etc. If customer B then receives a fake text message from the spoofed number 10681234001, it is easy for customer B to believe that this fake text message is also from bank A. Secondly, the binding relationship between business types and sub-numbers creates a certain space for information leakage. This allows any third party that has access to the number (such as the platform provider of the SMS sending channel or third-party software on the mobile terminal) to infer the service behavior between the enterprise and the customer simply by looking at the sending code number of the SMS received by the customer, without parsing the SMS content. For example, if a third-party APP on customer B's mobile terminal detects the code number "10691234003" and sends an SMS to customer B, it can determine, based on the rule of large numbers, that "10691234" is the main number of bank A and "003" is a specific business sub-number for transaction notification, thus inferring that customer B has made a transaction at this time, without reading the specific SMS content, leading to the leakage of user behavior information.

[0004] Therefore, the fixed and publicly available encoding rules of existing SMS sending numbers result in low cost of counterfeiting, difficulty for users to identify counterfeit SMS messages, and leakage of user behavior information. Summary of the Invention

[0005] This invention provides a method, apparatus, device, and medium for generating SMS sending codes, aiming to solve the problems in the prior art where the sending codes of SMS messages are fixed and publicly available, resulting in low counterfeiting costs, difficulty for users to identify counterfeit SMS messages, and leakage of user behavior information.

[0006] In a first aspect, embodiments of the present invention provide a method for generating a text message sending code, comprising: In response to a text message sending request sent by the terminal to which the text message belongs, obtain the text message template and customer mobile phone number corresponding to the text message sending request; Retrieve the sending channel configured for the SMS template from the locally stored channel table, and retrieve the sending number from the sending channel; Obtain the status identifier parameters associated with the customer's mobile phone number based on the locally stored number status table; Generate a corresponding SMS sending code number based on the sending number, the customer's mobile phone number, and the status identifier parameter; The SMS sending code is used to send an SMS to the customer's mobile phone number.

[0007] Secondly, embodiments of the present invention also provide an SMS sending code number generation apparatus, the apparatus being used to execute the SMS sending code number generation method of the first aspect described above, the apparatus comprising: A request-response unit is used to respond to a text message sending request sent by the terminal to which the text message belongs, and to obtain the text message template and customer mobile phone number corresponding to the text message sending request; The sending channel acquisition unit is used to obtain the sending channel configured in the SMS template from the locally stored channel table, and to obtain the sending number in the sending channel; The number status acquisition unit is used to acquire the status identifier parameters associated with the customer's mobile phone number based on the locally stored number status table; The sending code generation unit is used to generate a corresponding SMS sending code based on the sending number, the customer's mobile phone number, and the status identifier parameter; The SMS sending unit is used to send an SMS to the customer's mobile phone number using the SMS sending code.

[0008] Thirdly, embodiments of the present invention also provide a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the SMS sending code generation method of the first aspect described above.

[0009] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to perform the SMS sending code number generation method described in the first aspect.

[0010] This invention provides a method, apparatus, device, and medium for generating SMS sending codes. The method includes: responding to an SMS sending request sent by the terminal to which the SMS belongs; obtaining an SMS template and a customer's mobile phone number corresponding to the SMS sending request; obtaining the sending channel configured for the SMS template from a locally stored channel table, and obtaining the sending number corresponding to the sending channel; obtaining a status identifier parameter associated with the customer's mobile phone number from a locally stored number status table; generating a corresponding SMS sending code number based on the sending number, the customer's mobile phone number, and the status identifier parameter; and executing SMS sending to the customer's mobile phone number using the SMS sending code number. This invention optimizes the sending number using the customer's mobile phone number and status identifier parameter to dynamically generate a unique SMS sending code number exclusive to each customer, raising the threshold for counterfeiting, improving user-side anti-counterfeiting capabilities, and effectively protecting user behavior information privacy. Attached Figure Description

[0011] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0012] Figure 1 This is a flowchart illustrating a method for generating SMS sending codes according to an embodiment of the present invention; Figure 2 This is a schematic block diagram of a text message sending code number generation device provided in an embodiment of the present invention; Figure 3 This is a schematic block diagram of a computer device provided in an embodiment of the present invention. Detailed Implementation

[0013] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0014] It should be noted that any AI models, software tools, or components not belonging to this company appearing in the embodiments of this application are merely illustrative examples and do not represent actual use. All user personal information involved in the embodiments of this application has been obtained by authorized entities (who have known and consented) or fully authorized by all parties through various legal and compliant means. The collection, storage, use, processing, transmission, provision, and disclosure of the information, data, and signals involved all comply with relevant laws and regulations and do not violate public order and good morals.

[0015] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0016] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0017] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0018] This invention provides a method, apparatus, device, and medium for generating SMS sending codes. The execution entity of the SMS sending code generation method provided in this embodiment can be an SMS sending code generation device corresponding to the method. The SMS sending code generation device is applied to an SMS system platform, which is an integrated SMS sending system that integrates SMS sending, interface services, user terminal and management terminal applications, data storage and processing capabilities.

[0019] like Figure 1 As shown, the SMS sending code generation method includes the following steps S11 to S15, which will be described from the perspective of the SMS sending code generation device.

[0020] S11. In response to the SMS sending request sent by the terminal to which the SMS belongs, obtain the SMS template and customer mobile phone number corresponding to the SMS sending request.

[0021] In this embodiment, when a text message sending request is received from the terminal that owns the text message, the corresponding text message template and customer mobile phone number are obtained according to the text message sending request. The terminal that owns the text message is the terminal of the sender, which can also be understood as the terminal on the enterprise side. The text message template includes the text message signature and the text message content to be sent.

[0022] S12. Obtain the sending channel configured for the SMS template from the locally stored channel table, and obtain the sending number in the sending channel.

[0023] In this embodiment, after obtaining the SMS template, the locally stored channel table is first queried to retrieve the sending channel matching the SMS template. The sending channel contains data such as the operator name, speed, and sending number. Then, the sending number configured in that sending channel is obtained to facilitate subsequent optimization, generating a unique and personalized SMS sending code for the customer. The SMS is sent using this dedicated sending code, rather than directly using a sending number based on existing sub-number extension coding rules.

[0024] In one embodiment, step S12 includes: Obtain the SMS signature from the SMS template, and the sub-number corresponding to the SMS template; Obtain the sending channel corresponding to the SMS signature and the sub-number from the channel table, and obtain the sending number in the sending channel; wherein the sending number is a combination of the main number of the SMS owner and the sub-number.

[0025] In this embodiment, the SMS signature in the SMS template is obtained, and the sub-number configured for the SMS template is also obtained. The sending channel matching the SMS signature and sub-number is retrieved from the channel table, and the sending number in the sending channel is obtained. Thus, the corresponding sending number is obtained through the SMS signature and sub-number. The sending number is a combination of the main number and sub-number of the SMS sender. For example, if a bank's main number is 10691234 and the sub-number configured for the SMS template is 006, then the sending number configured for the SMS template is 10691234006.

[0026] S13. Obtain the status identifier parameter associated with the customer's mobile phone number based on the locally stored number status table.

[0027] In this embodiment, the system queries the locally stored number status table corresponding to the sending channel to obtain status identifier parameters associated with the customer's mobile phone number. These status identifier parameters indicate the cumulative number of times the customer's mobile phone number has been reclaimed and reassigned by the operator, as well as the cumulative number of times the customer's mobile phone number has been marked as requiring blocking. By incorporating the status identifier parameters into the subsequent optimization process of the sending number, dynamic and differentiated information with a customer dimension is added to the sending number. This reduces the possibility of third parties using existing sub-number extension coding rules for spoofing or business inference, thereby enhancing the uniqueness of the number, anti-counterfeiting capabilities, and business privacy protection.

[0028] In one embodiment, the number status table includes a number redistribution table and a number masking table; step S13 includes: The number of reassignments corresponding to the customer's mobile phone number is obtained from the number reassignment table and used as the first state sub-parameter. The number of times the customer's mobile number is blocked is obtained from the number blocking table and used as the second state sub-parameter. The first state sub-parameter and the second state sub-parameter are combined to form the state identifier parameter.

[0029] In this embodiment, the number status table includes a number redistribution table and a number blocking table. The number redistribution table records the cumulative number of times different customers' mobile phone numbers have been reclaimed and redistributed by the operator (i.e., the number of redistributions). The number blocking table records the cumulative number of times different customers' mobile phone numbers have been marked as needing blocking (i.e., the number of blockings). For example, the number redistribution table records that the cumulative number of times the mobile phone number 13688888888 has been reclaimed and redistributed by the operator is 1, indicating that the mobile phone number 13688888888 is a secondary number. The current owner of the mobile phone number 13688888888 is a different natural person from its previous owner (i.e., the previous customer). Therefore, the cumulative number of times a mobile phone number has been reclaimed and redistributed by the operator can provide a differentiated identifier for the communication behavior of the same mobile phone number under different owners. The number blocking table records that the mobile number 13699999999 has been marked as needing blocking a total of 1 time. This indicates that the number needs to be marked as needing blocking due to reasons such as customer complaints about rejecting SMS messages from the corresponding sending channel of the SMS provider. This prevents the number from receiving SMS messages from the SMS provider's corresponding sending channel after being marked as needing blocking. The cumulative number of times the number has been marked as needing blocking in the number blocking table changes from 0 to 1, so that when communication needs to be restored later, the sending number can be optimized based on this count, allowing the number to receive SMS messages from the SMS provider's corresponding sending channel again. Therefore, the cumulative number of times a mobile number has been marked as needing blocking reflects the real-time status of the communication relationship between the mobile number and the SMS provider's SMS service, providing a dynamic and unpredictable differential variable for subsequent optimization of the sending number.

[0030] In the process of obtaining the status identifier parameter associated with the customer's mobile phone number, the number redistribution table is first queried to obtain the redistribution count corresponding to the customer's mobile phone number as the first status sub-parameter. The first status sub-parameter is used to indicate the cumulative number of times the customer's mobile phone number has been reclaimed and redistributed by the operator. Specifically, if the customer's mobile phone number is found in the number redistribution table, that is, there is a mobile phone number in the number redistribution table that matches the customer's mobile phone number, then the cumulative number of times the customer's mobile phone number has been reclaimed and redistributed by the operator recorded in the number redistribution table is used as the first status sub-parameter; if the customer's mobile phone number is not found in the number redistribution table, that is, there is no mobile phone number in the number redistribution table that matches the customer's mobile phone number, then the redistribution count is zero, and the first status sub-parameter is set to zero. Next, the number blocking table is queried to obtain the number of times the customer's mobile number has been blocked, which is used as the second state sub-parameter. This second state sub-parameter indicates the cumulative number of times the customer's mobile number has been marked as requiring blocking. Specifically, if the customer's mobile number is found in the number blocking table, the cumulative number of times it has been marked as requiring blocking is used as the second state sub-parameter; if the customer's mobile number is not found in the number blocking table, the number of blocks is zero, and the second state sub-parameter is set to zero. Finally, the first and second state sub-parameters are combined to form a state identifier parameter, which can be incorporated into the subsequent optimization process of sending numbers, adding dynamic, customer-dimensional differentiation information to the sending numbers.

[0031] S14. Generate a corresponding SMS sending code number based on the sending number, the customer's mobile phone number, and the status identifier parameter.

[0032] In this embodiment, the sending number is optimized by combining the customer's mobile phone number and dynamic, unpredictable status identifier parameters to dynamically generate a unique SMS sending code number for each customer. This code number establishes a dedicated SMS communication channel between the SMS sender and the customer, ensuring that different customers receiving SMS messages from the same sender will display different numbers, thus enhancing the uniqueness of the number and improving anti-spoofing capabilities on the user side. Simultaneously, it hides the real sub-number from external sources, making it difficult for third parties to reliably extract the original sub-number from the SMS sending code number, thereby hindering the inference of customer business behavior information, raising the threshold for spoofing, and effectively protecting user privacy. Furthermore, the sending number, customer's mobile phone number, and sub-parameters included in the status identifier parameters can be concatenated in a preset order to form the corresponding SMS sending code number.

[0033] In one embodiment, step S14 includes: The sending number, the first status sub-parameter, the customer's mobile phone number, and the second status sub-parameter are concatenated in sequence to obtain the corresponding SMS sending code.

[0034] In this embodiment, the sending number A, the first state sub-parameter x, the customer's mobile phone number B, and the second state sub-parameter z are sequentially concatenated to form the SMS sending code AxBz, thereby quickly generating a customer-specific SMS sending code. For example, if the obtained sending number is 10691234006, the first state sub-parameter is 0, the customer's mobile phone number is 13688888888, and the second state sub-parameter is 0, then the generated corresponding SMS sending code is 106912340060136888888880.

[0035] Furthermore, a sub-number is used and only used to indicate a corresponding service type. When the status identifier parameter does not change, it can ensure that the same service from the same SMS provider always presents the same SMS sending code number to the same customer. This allows SMS messages under the same service to be aggregated under one SMS sending code number, making it convenient to accumulate and read, forming an intuitive contextual relationship, and making customers more vigilant about SMS messages of this type of service sent from other codes, thus preventing counterfeiting.

[0036] S15. Use the SMS sending code to send an SMS to the customer's mobile phone number.

[0037] In this embodiment, an SMS message is sent to a customer's mobile phone number based on the SMS sending code. Specifically, the SMS sending code, along with the SMS signature corresponding to the SMS sending request and the SMS content, are sent to the customer's receiving terminal corresponding to the customer's mobile phone number. This allows the SMS sending code to be displayed on the customer's receiving terminal as the display number of the SMS message from the sender. Because the SMS sending code incorporates the customer's mobile phone number and dynamic, unpredictable status parameters, each customer receives a unique display number, thereby enhancing the uniqueness of the number, anti-counterfeiting capabilities, and protection of business privacy.

[0038] In one embodiment, the SMS sending code number generation method provided by this invention further includes: If a number redistribution notification is received from an operator terminal, the redistribution count of the mobile number corresponding to the number redistribution notification in the number redistribution table is incremented by one, and the number redistribution table is updated.

[0039] In this embodiment, if a number redistribution notification is received from the operator terminal via the operator interface, it indicates that a customer's mobile phone number has been reclaimed and redistributed by the operator, and the owner of the mobile phone number has changed. In this case, the redistribution count of the mobile phone number corresponding to the number redistribution notification in the number redistribution table is incremented by 1, and the number redistribution table is updated. This lays the foundation for generating a brand new exclusive number that is different from its former owner when sending SMS messages to the new customer (i.e., the current owner) corresponding to the mobile phone number. Even if the mobile phone number is the same, the displayed number of the SMS message received by the new and old customers corresponding to the mobile phone number is different, avoiding information confusion and cross-leakage of privacy.

[0040] In one embodiment, the SMS sending code number generation method provided by this invention further includes: If a number blocking instruction based on customer feedback is received, the number of times the number corresponding to the number blocking instruction is blocked in the number blocking table is incremented by one, and the number blocking table is updated.

[0041] In this embodiment, if a number blocking instruction based on customer feedback is received, it indicates that a relevant customer's mobile phone number has been marked for blocking. For example, if a customer of a certain mobile phone number has proactively complained about needing to refuse SMS messages from the corresponding sending channel of the SMS provider, then the blocking count for the mobile phone number corresponding to the number blocking instruction in the number blocking table is incremented by 1, and the number blocking table is updated. This lays the foundation for generating a completely new code number when communication with that mobile phone number needs to be restored later. Additionally, the number blocking instruction can also be triggered by preset rules, such as when a mobile phone number receives an abnormal number of verification codes within a short period of time, triggering the number blocking instruction.

[0042] In one embodiment, the SMS sending code number generation method provided by this invention further includes: If a channel configuration instruction is received, the sending channel, SMS signature, and sub-number in the channel configuration instruction are obtained, stored in the channel table, and the channel table is updated.

[0043] In this embodiment, the channel configuration command can be triggered by relevant personnel through the terminal of the SMS provider. Upon receiving the channel configuration command, the sending channel, SMS signature and sub-number in the channel configuration command are obtained to update the channel table and store the sending configuration information of the corresponding service in a timely manner.

[0044] The SMS sending code generation method in this embodiment of the invention can be applied to the financial field. For example, this method generates a unique SMS sending code for a bank's transaction notification service. When customer A conducts a transfer transaction with the bank, this method optimizes the sending number of the sending channel configured by the bank for transaction notification SMS using customer A's mobile phone number and the corresponding status identifier parameter, thereby generating a unique SMS sending code for customer A. The bank then sends a transfer completion notification SMS to customer A using this SMS sending code. The SMS sending code generation method in this embodiment of the invention can also be applied to the medical field. For example, this method generates a unique SMS sending code for a hospital's examination report push SMS service. When customer B completes a physical examination, this method optimizes the sending number of the sending channel configured by the hospital for examination report push SMS using customer B's mobile phone number and the corresponding status identifier parameter, thereby generating a unique SMS sending code for customer B. The hospital then sends a report retrieval notification SMS to customer B using this SMS sending code.

[0045] The SMS sending code generation method provided in this invention optimizes the sending number by using the customer's mobile phone number and dynamic, unpredictable status identifier parameters to dynamically generate a unique SMS sending code for each customer. This raises the threshold for counterfeiting, enhances the user's anti-counterfeiting capabilities, and effectively protects the privacy of user behavior information.

[0046] This invention also provides an SMS sending code number generation device, which is used to execute any embodiment of the aforementioned SMS sending code number generation method. Specifically, please refer to... Figure 2 , Figure 2 This is a schematic block diagram of a text message sending code number generation device according to an embodiment of the present invention. The text message sending code number generation device provided in this embodiment includes a sending request response unit 11, a sending channel acquisition unit 12, a number status acquisition unit 13, a sending code number generation unit 14, and a text message sending unit 15. Detailed descriptions of each functional unit are as follows: The sending request response unit 11 is used to respond to the SMS sending request sent by the terminal to which the SMS belongs, and to obtain the SMS template and customer mobile phone number corresponding to the SMS sending request; The sending channel acquisition unit 12 is used to obtain the sending channel configured by the SMS template from the channel table stored locally, and to obtain the sending number in the sending channel; The number status acquisition unit 13 is used to acquire the status identifier parameters associated with the customer's mobile phone number according to the locally stored number status table; The sending code generation unit 14 is used to generate a corresponding SMS sending code based on the sending number, the customer's mobile phone number and the status identifier parameter; The SMS sending unit 15 is used to send an SMS to the customer's mobile phone number using the SMS sending code.

[0047] In one embodiment, the transmission channel acquisition unit 12 is specifically used for: Obtain the SMS signature from the SMS template, and the sub-number corresponding to the SMS template; Obtain the sending channel corresponding to the SMS signature and the sub-number from the channel table, and obtain the sending number in the sending channel; wherein the sending number is a combination of the main number of the SMS owner and the sub-number.

[0048] In one embodiment, the number status table includes a number redistribution table and a number masking table; the number status acquisition unit 13 is specifically used for: The number of reassignments corresponding to the customer's mobile phone number is obtained from the number reassignment table and used as the first state sub-parameter. The number of times the customer's mobile number is blocked is obtained from the number blocking table and used as the second state sub-parameter. The first state sub-parameter and the second state sub-parameter are combined to form the state identifier parameter.

[0049] In one embodiment, the sending code generation unit 14 is specifically used for: The sending number, the first status sub-parameter, the customer's mobile phone number, and the second status sub-parameter are concatenated in sequence to obtain the corresponding SMS sending code.

[0050] In one embodiment, the SMS sending code number generation device provided by this invention further includes a reallocation table update unit, used for: If a number redistribution notification is received from an operator terminal, the redistribution count of the mobile number corresponding to the number redistribution notification in the number redistribution table is incremented by one, and the number redistribution table is updated.

[0051] In one embodiment, the SMS sending code generation device provided by this invention further includes a mask table update unit, used for: If a number blocking instruction based on customer feedback is received, the number of times the number corresponding to the number blocking instruction is blocked in the number blocking table is incremented by one, and the number blocking table is updated.

[0052] In one embodiment, the SMS sending code number generation device provided by the present invention further includes a channel table updating unit, used for: If a channel configuration instruction is received, the sending channel, SMS signature, and sub-number in the channel configuration instruction are obtained, stored in the channel table, and the channel table is updated.

[0053] The SMS sending code generation device disclosed in this invention is used to execute any embodiment of the aforementioned SMS sending code generation method. It optimizes the sending number by using the customer's mobile phone number and dynamic, unpredictable status identifier parameters to dynamically generate a unique SMS sending code exclusive to the customer, thereby raising the threshold for counterfeiting, improving the user's anti-counterfeiting capabilities, and effectively protecting the privacy of user behavior information.

[0054] The above-mentioned method for generating SMS sending codes can be implemented as a computer program, which can be used in various ways, such as... Figure 3 It runs on the computer device shown.

[0055] Please see Figure 3 , Figure 3 This is a schematic block diagram of a computer device provided in an embodiment of the present invention. The computer device 500 includes a processor 502, a memory, and a network interface 505 connected via a device bus 501, wherein the memory may include a storage medium 503 and internal memory 504.

[0056] The storage medium 503 may store the operating device 5031 and the computer program 5032. When the computer program 5032 is executed, it causes the processor 502 to execute the SMS sending code generation method.

[0057] The processor 502 provides computing and control capabilities to support the operation of the entire computer device 500.

[0058] The internal memory 504 provides an environment for the computer program 5032 in the storage medium 503 to run. When the computer program 5032 is executed by the processor 502, the processor 502 can execute the SMS sending code number generation method.

[0059] This network interface 505 is used for network communication, such as providing data transmission. Those skilled in the art will understand that... Figure 3 The structure shown is merely a block diagram of a portion of the structure related to the present invention and does not constitute a limitation on the computer device 500 to which the present invention is applied. The specific computer device 500 may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0060] The processor 502 is used to run the computer program 5032 stored in the memory to implement the SMS sending code number generation method disclosed in the embodiments of the present invention.

[0061] Those skilled in the art will understand that Figure 3The embodiments of the computer device shown do not constitute a limitation on the specific configuration of the computer device. In other embodiments, the computer device may include more or fewer components than illustrated, or combine certain components, or have different component arrangements. For example, in some embodiments, the computer device may include only memory and a processor. In such embodiments, the structure and function of the memory and processor are different from those shown. Figure 3 The embodiments shown are consistent and will not be repeated here.

[0062] It should be understood that, in this embodiment of the invention, the processor 502 may be a Central Processing Unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0063] In another embodiment of the present invention, a computer-readable storage medium is provided. This computer-readable storage medium may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, wherein when executed by a processor, the computer program implements the SMS sending code generation method disclosed in this embodiment of the present invention.

[0064] Those skilled in the art will readily understand that, for the sake of convenience and brevity, the specific working processes of the devices and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this invention.

[0065] In the embodiments provided by this invention, it should be understood that the disclosed devices, systems, and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Units with the same function may be grouped into one unit. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, systems, or units, or it may be an electrical, mechanical, or other form of connection.

[0066] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of the embodiments of the present invention, depending on actual needs.

[0067] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0068] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of this invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a backend server, or a network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks.

[0069] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A method for generating SMS sending codes, characterized in that, include: In response to a text message sending request sent by the terminal to which the text message belongs, obtain the text message template and customer mobile phone number corresponding to the text message sending request; Retrieve the sending channel configured for the SMS template from the locally stored channel table, and retrieve the sending number from the sending channel; Obtain the status identifier parameters associated with the customer's mobile phone number based on the locally stored number status table; Generate a corresponding SMS sending code number based on the sending number, the customer's mobile phone number, and the status identifier parameter; The SMS sending code is used to send an SMS to the customer's mobile phone number.

2. The method for generating SMS sending code numbers according to claim 1, characterized in that, The step of retrieving the sending channel configured for the SMS template from the locally stored channel table and retrieving the sending number from the sending channel includes: Obtain the SMS signature from the SMS template, and the sub-number corresponding to the SMS template; Obtain the sending channel corresponding to the SMS signature and the sub-number from the channel table, and obtain the sending number in the sending channel; wherein the sending number is a combination of the main number of the SMS owner and the sub-number.

3. The method for generating SMS sending code numbers according to claim 1, characterized in that, The number status table includes a number redistribution table and a number masking table; The step of obtaining the status identifier parameter associated with the customer's mobile phone number based on the locally stored number status table includes: The number of reassignments corresponding to the customer's mobile phone number is obtained from the number reassignment table and used as the first state sub-parameter. The number of times the customer's mobile number is blocked is obtained from the number blocking table and used as the second state sub-parameter. The first state sub-parameter and the second state sub-parameter are combined to form the state identifier parameter.

4. The method for generating SMS sending code numbers according to claim 3, characterized in that, The step of generating a corresponding SMS sending code number based on the sending number, the customer's mobile phone number, and the status identifier parameter includes: The sending number, the first status sub-parameter, the customer's mobile phone number, and the second status sub-parameter are concatenated in sequence to obtain the corresponding SMS sending code.

5. The method for generating SMS sending code numbers according to claim 3, characterized in that, Also includes: If a number redistribution notification is received from an operator terminal, the redistribution count of the mobile number corresponding to the number redistribution notification in the number redistribution table is incremented by one, and the number redistribution table is updated.

6. The method for generating SMS sending code numbers according to claim 3, characterized in that, Also includes: If a number blocking instruction based on customer feedback is received, the number of times the number corresponding to the number blocking instruction is blocked in the number blocking table is incremented by one, and the number blocking table is updated.

7. The method for generating SMS sending code numbers according to claim 1, characterized in that, Also includes: If a channel configuration instruction is received, the sending channel, SMS signature, and sub-number in the channel configuration instruction are obtained, stored in the channel table, and the channel table is updated.

8. A device for generating SMS sending codes, characterized in that, The apparatus is used to perform the SMS sending code number generation method as described in any one of claims 1-7, the apparatus comprising: A request-response unit is used to respond to a text message sending request sent by the terminal to which the text message belongs, and to obtain the text message template and customer mobile phone number corresponding to the text message sending request; The sending channel acquisition unit is used to obtain the sending channel configured in the SMS template from the locally stored channel table, and to obtain the sending number in the sending channel; The number status acquisition unit is used to acquire the status identifier parameters associated with the customer's mobile phone number based on the locally stored number status table; The sending code generation unit is used to generate a corresponding SMS sending code based on the sending number, the customer's mobile phone number, and the status identifier parameter; The SMS sending unit is used to send an SMS to the customer's mobile phone number using the SMS sending code.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the SMS sending code number generation method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, causes the processor to perform the SMS sending code generation method as described in any one of claims 1 to 7.