Method and device for processing information related to short messages

By achieving hash computing and cache inspection in the SMS service interface, the problem that the hair interface is prone to be maliciously called in the SMS interface is solved, the service pressure is reduced, the stability is improved, and the cost is saved.

CN115835147BActive Publication Date: 2025-01-28INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211478139.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-23
Publication Date
2025-01-28
Estimated Expiration
2042-11-23

AI Technical Summary

Technical Problem

In the prior art, the SMS sending interface is easily maliciously called, resulting in unstable service operation, increasing SMS costs, and may affect the SMS sending and receiving needs of real users.

Method used

Calculate the SMS call request sent to the terminal to the service interface, the opponent number and service number calculate the hash, generate key value, and check whether there is the same pre -storage key value in the service itself. If you exist, return the prompt message that has been sent to the SMS; if it does not exist, synchronize key values ​​and survival cycle to the remote dictionary server, and store the pre -storage key value in the service itself cache and remote dictionary service cache.

Benefits of technology

It reduces the SMS processing pressure of the service interface, improves the stability of the service operation, saves the cost of sending the SMS, and reduces the impact on real users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115835147B_ABST
    Figure CN115835147B_ABST
Patent Text Reader

Abstract

The present invention provides a method and device for processing SMS related information, which relates to the field of SMS data processing technology and can be used in the financial field or other technical fields. The method comprises: receiving an SMS call request sent by a terminal to a service interface, performing a hash calculation on a mobile phone number and a service number corresponding to the service interface, and using the hash value as a key value; the SMS call request carries the mobile phone number; checking in the service's own cache whether there is a pre-stored key value identical to the key value, and if so, returning a prompt message to the terminal that a SMS has been sent; wherein. The device executes the above method. The method and device for processing SMS related information provided in the embodiments of the present invention can reduce the SMS processing pressure of the service interface, improve the stability of service operation, and save the cost of sending SMS.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of short message data processing, and in particular to a method and device for processing short message related information. Background Art

[0002] With the development of the Internet era, user registration is often the most basic function of some services. With the user's registration behavior, the mobile phone number is often a required item when registering. At the same time, the server will send a verification code message to the user based on the mobile phone number filled in by the user, so the service must have the function of sending SMS. At this time, the SMS sending interface of the service may be maliciously called, which will affect the stability of the service itself and increase the company's SMS costs.

[0003] Although SMS service providers have their own anti-attack measures, there will still be a large number of spam requests, and the service providers have only set limits on the number and time, and SMS will still be sent after a period of time; the service can also adopt a blacklist model. For the numbers that appear in the interface, they will be immediately added to the blacklist after a certain number of requests. When requesting again, if it is a number in the blacklist, an error code will be returned directly without any other processing, and the SMS sending interface will not be called. However, this method may affect the real users' SMS sending and receiving needs and affect the user experience. Summary of the invention

[0004] In view of the problems in the prior art, an embodiment of the present invention provides a method and device for processing text message related information, which can at least partially solve the problems in the prior art.

[0005] On the one hand, the present invention provides a method for processing short message related information, comprising:

[0006] The receiving terminal sends a text message call request to the service interface, performs a hash calculation on the mobile phone number and the service number corresponding to the service interface, and uses the hash value as a key value; the text message call request carries the mobile phone number;

[0007] Checking whether there is a pre-stored key value identical to the key value in the service's own cache, and if so, returning a prompt message to the terminal indicating that a text message has been sent;

[0008] The service cache is a portion of memory allocated from the application's memory space and is used to store data required during the service operation process.

[0009] Wherein, before the step of receiving the SMS call request sent by the terminal to the service interface, the SMS related information processing method further includes:

[0010] If it is determined that the SMS call request sent by the terminal to the service interface is received for the first time, a hash calculation is performed on the mobile phone number and the service number corresponding to the service interface;

[0011] Using the hash value as a key value, determining a life cycle corresponding to the key value, synchronizing the key value and the corresponding life cycle to a remote dictionary server, and using the key value as a pre-stored key value corresponding to a service cache and a remote dictionary service cache, respectively;

[0012] Controlling the storage duration of the pre-stored key value in the service cache and the remote dictionary service cache respectively according to the life cycle;

[0013] The storage capacity of the service's own cache is less than the storage capacity of the remote dictionary service cache.

[0014] The method for processing the SMS related information further includes:

[0015] If not present, forward the key value to the remote dictionary server;

[0016] If a first feedback result returned by the remote dictionary server is received, a prompt message indicating that a text message has been sent is returned to the terminal; the first feedback result indicates that a pre-stored key value identical to the key value exists in the remote dictionary service cache.

[0017] The method for processing the SMS related information further includes:

[0018] If a second feedback result returned by the remote dictionary server is received, the text message is resent to the terminal, the key value is re-determined to be the preset storage key value and the life cycle corresponding to the key value, and the preset storage key value is stored in the service's own cache; the second feedback result indicates that there is no pre-stored key value identical to the key value in the remote dictionary service cache.

[0019] The method for processing the SMS related information further includes:

[0020] If it is determined that the storage capacity of the service's own cache exceeds the limit, the earliest pre-stored key value stored in the service's own cache is deleted.

[0021] The method for processing the SMS related information further includes:

[0022] Determine the SMS call request sent by the first receiving terminal to the service interface based on the terminal's inherent identification.

[0023] Wherein, determining the life cycle corresponding to the key value includes:

[0024] The life cycle corresponding to the key value is set by a command for setting the expiration time of the remote dictionary service.

[0025] In one aspect, the present invention provides a device for processing short message related information, comprising:

[0026] A calculation unit, used to receive a text message call request sent by a terminal to a service interface, perform a hash calculation on a mobile phone number and a service number corresponding to the service interface, and use the hash value as a key value; the text message call request carries the mobile phone number;

[0027] A returning unit, used to check whether there is a pre-stored key value identical to the key value in the service's own cache, and if so, return a prompt message to the terminal indicating that the SMS message has been sent;

[0028] The service cache is a portion of memory allocated from the application's memory space and is used to store data required during the service operation process.

[0029] In another aspect, an embodiment of the present invention provides an electronic device, including: a processor, a memory, and a bus, wherein:

[0030] The processor and the memory communicate with each other via the bus;

[0031] The memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the following method:

[0032] The receiving terminal sends a text message call request to the service interface, performs a hash calculation on the mobile phone number and the service number corresponding to the service interface, and uses the hash value as a key value; the text message call request carries the mobile phone number;

[0033] Checking whether there is a pre-stored key value identical to the key value in the service's own cache, and if so, returning a prompt message to the terminal indicating that a text message has been sent;

[0034] The service cache is a portion of memory allocated from the application's memory space and is used to store data required during the service operation process.

[0035] An embodiment of the present invention provides a non-transitory computer-readable storage medium, including:

[0036] The non-transitory computer-readable storage medium stores computer instructions, which cause the computer to execute the following method:

[0037] The receiving terminal sends a text message call request to the service interface, performs a hash calculation on the mobile phone number and the service number corresponding to the service interface, and uses the hash value as a key value; the text message call request carries the mobile phone number;

[0038] Checking whether there is a pre-stored key value identical to the key value in the service's own cache, and if so, returning a prompt message to the terminal indicating that a text message has been sent;

[0039] The service cache is a portion of memory allocated from the application's memory space and is used to store data required during the service operation process.

[0040] The method and device for processing SMS related information provided by the embodiments of the present invention receive an SMS call request sent by a terminal to a service interface, perform hash calculation on a mobile phone number and a service number corresponding to the service interface, and use the hash value as a key value; the SMS call request carries the mobile phone number; checks in the service's own cache whether there is a pre-stored key value identical to the key value, and if so, returns a prompt message to the terminal that an SMS has been sent; wherein the service's own cache is a portion of memory allocated from the application's memory space, used to store data required during service operation, which can reduce the SMS processing pressure of the service interface, improve the stability of service operation, and save the cost of sending SMS. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] 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 prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0042] Figure 1 The present invention is a flowchart of a method for processing short message related information provided by an embodiment of the present invention.

[0043] Figure 2 It is a flowchart of a method for processing text message related information provided by another embodiment of the present invention.

[0044] Figure 3 It is a structural diagram of a device for processing short message related information provided by an embodiment of the present invention.

[0045] Figure 4 A schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention. It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other arbitrarily.

[0047] Redis (Remote Dictionary Server), also known as remote dictionary service, is an open source log-type, Key-Value database written in ANSI C language, supporting the network, and can be based on memory or persistence.

[0048] TTL (Time To Live) is the life cycle. In Redis, the EXPIRE command is used to set the TTL for the data stored in Redis, so as to automatically delete the data when it expires.

[0049] Multi-level caching is to make full use of each link of request processing to add cache separately to improve service performance.

[0050] Figure 1 FIG. 1 is a flow chart of a method for processing SMS related information provided by an embodiment of the present invention. Figure 1 As shown, the method for processing short message related information provided by the embodiment of the present invention includes:

[0051] Step S1: receiving a text message call request sent by a terminal to a service interface, performing a hash calculation on a mobile phone number and a service number corresponding to the service interface, and using the hash value as a key value; the text message call request carries the mobile phone number.

[0052] Step S2: Checking whether there is a pre-stored key value identical to the key value in the service cache, and if so, returning a prompt message indicating that a text message has been sent to the terminal;

[0053] The service cache is a portion of memory allocated from the application's memory space and is used to store data required during the service operation process.

[0054] In the above step S1, the device receives the SMS call request sent by the terminal to the service interface, performs hash calculation on the mobile phone number and the service number corresponding to the service interface, and uses the hash value as the key value; the SMS call request carries the mobile phone number. The device can be a computer device that executes the method, for example, a server, specifically an application server. It should be noted that the acquisition and analysis of data involved in the embodiments of the present invention are authorized by the user. Figure 2 As shown, Figure 2The "SMS interface service" in the example corresponds to the service interface. The service interface and the service cache itself can be deployed in the application server. The Redis cache service can be deployed in the remote dictionary server. The application server and the remote dictionary server can realize network communication connection.

[0055] The terminal can be Figure 2 The mobile phone in the message sends a text message call request to the service interface, and the text message call request carries the mobile phone number of the mobile phone.

[0056] The service interface has a service number. Different service interfaces correspond to different service numbers. It can be understood that the service number plays the role of identifying the service interface.

[0057] The service number can be represented by a character string without any specific limitation.

[0058] The mobile phone number and the service number can be combined in any way, and a hash calculation is performed on the numbers and characters obtained by the combination to obtain a hash value, which is used as the key value of Redis.

[0059] Before the step of receiving the SMS call request sent by the terminal to the service interface, the method for processing SMS related information further includes:

[0060] If it is determined that this is the first time that the SMS call request is received by the terminal to the service interface, a hash calculation is performed on the mobile phone number and the service number corresponding to the service interface; this step can refer to the above-mentioned description of the SMS call request sent by the terminal to the service interface for a non-first time, and will not be repeated here.

[0061] The method for processing the text message related information further includes:

[0062] The first receiving terminal to send a short message call request to the service interface can be determined based on the terminal inherent identification. The terminal inherent identification can include the IMEI code, as follows:

[0063] The International Mobile Equipment Identity (IMEI), commonly known as the mobile phone serial number or "serial number", is used to identify each independent mobile phone and other mobile communication devices in the mobile phone network. It is equivalent to the ID card of the mobile phone.

[0064] That is, if the IMEI code is obtained for the first time, it means that it is the first time that the SMS call request sent by the terminal to the service interface is received.

[0065] Using the hash value as a key value, determining a life cycle corresponding to the key value, synchronizing the key value and the corresponding life cycle to a remote dictionary server, and using the key value as a pre-stored key value corresponding to a service cache and a remote dictionary service cache, respectively; determining the life cycle corresponding to the key value includes:

[0066] The life cycle corresponding to the key value is set by setting the expiration time of the remote dictionary service. That is, the TTL is set for the data stored in Redis based on the EXPIRE command in Redis. The embodiment of the present invention first determines the life cycle corresponding to the key value in the application server, and then synchronizes the key value and the corresponding life cycle to the remote dictionary server through the network.

[0067] The application server uses the key value as a pre-stored key value and stores it in the local service cache; the remote dictionary server uses the key value as a pre-stored key value and stores it in the local remote dictionary service cache.

[0068] The life cycle can be set independently according to actual conditions. For example, 5 minutes can be understood as the storage duration of the pre-stored key value in the service's own cache and the remote dictionary service cache is 5 minutes. After this duration, the pre-stored key value will be automatically deleted from the service's own cache and the remote dictionary service cache respectively.

[0069] The storage duration of the pre-stored key value in the service's own cache and the remote dictionary service cache is controlled according to the life cycle; that is, when the storage duration of the pre-stored key value in the service's own cache reaches the life cycle, the pre-stored key value in the service's own cache is automatically deleted, and when the storage duration of the pre-stored key value in the remote dictionary service cache of the remote dictionary server reaches the life cycle, the pre-stored key value in the remote dictionary service cache is automatically deleted.

[0070] Wherein, the storage capacity of the service cache itself is less than the storage capacity of the remote dictionary service cache. The method for processing short message related information also includes:

[0071] If it is determined that the storage capacity of the service's own cache exceeds the limit, the earliest pre-stored key value stored in the service's own cache is deleted. Since the storage capacity of the service's own cache is small, if there is a large number of concurrent SMS call requests in the time period corresponding to the life cycle, it will cause the storage capacity of the service's own cache to exceed the limit. Therefore, the earliest pre-stored key value stored in the service's own cache can be deleted. For example, when storing the i-th pre-stored key value, the storage capacity of the service's own cache is full. When it is necessary to store the i+1-th pre-stored key value, the earliest pre-stored key value stored in the service's own cache can be deleted.

[0072] At this time, the earliest stored pre-stored key value is no longer in the service's own cache, but the earliest stored pre-stored key value still exists in the remote dictionary service cache.

[0073] In the above step S2, the device checks whether there is a pre-stored key value identical to the key value in the service's own cache, and if so, returns a prompt message to the terminal indicating that a text message has been sent;

[0074] The service cache is a part of the memory allocated from the application's memory space, which is used to store the data required during the service operation process. If there is a pre-stored key value that is the same as the key value in the service cache, it means that the storage time of the pre-stored key value has not reached the life cycle, and the pre-stored key value still exists in the service cache (not deleted because the storage capacity of the service cache exceeds the limit). Therefore, a prompt message that the SMS has been sent is directly returned to the terminal, that is, there is no need to send SMS, which not only saves SMS costs, but also does not require the remote dictionary server to participate in data processing.

[0075] The method for processing the text message related information further includes:

[0076] If it does not exist, the key value is forwarded to the remote dictionary server; the remote dictionary server receives the key value and compares it with the pre-stored key value in the remote dictionary service cache. If the comparison result is the same, it means that the key value was deleted because the storage capacity of the service's own cache exceeded the limit, and the first feedback result is returned to the application server.

[0077] If the first feedback result returned by the remote dictionary server is received, a prompt message indicating that a text message has been sent is returned to the terminal; the first feedback result indicates that a pre-stored key value identical to the key value exists in the remote dictionary service cache. Please refer to the above description and no further details will be given.

[0078] The method for processing the text message related information further includes:

[0079] If the second feedback result returned by the remote dictionary server is received, the SMS is resent to the terminal, the key value is re-determined to be the preset storage key value and the life cycle corresponding to the key value, and the preset storage key value is stored in the service's own cache; the second feedback result indicates that there is no pre-stored key value identical to the key value in the remote dictionary service cache. The remote dictionary server receives the key value and compares the key value with the pre-stored key value in the remote dictionary service cache. If the comparison result is different, it means that the storage time of the key value exceeds the life cycle and has been automatically deleted. It is necessary to re-determine the key value as the preset storage key value and the life cycle corresponding to the key value, and store the preset storage key value in the service's own cache.

[0080] It should be noted that if the remote dictionary server determines that there is no pre-stored key value identical to the key value in the remote dictionary service cache, it is also necessary to re-determine the key value as the preset storage key value and the life cycle corresponding to the key value, and store the preset storage key value in the remote dictionary service cache.

[0081] The method for processing SMS related information provided by the embodiment of the present invention comprises the following steps: receiving an SMS call request sent by a terminal to a service interface, performing a hash calculation on a mobile phone number and a service number corresponding to the service interface, and using the hash value as a key value; the SMS call request carries the mobile phone number; checking in the service's own cache whether there is a pre-stored key value identical to the key value, and if so, returning a prompt message to the terminal that an SMS has been sent; wherein the service's own cache is a portion of memory allocated from the application's memory space, and is used to store data required during service operation, which can reduce the SMS processing pressure of the service interface, improve the stability of service operation, and save the cost of sending SMS.

[0082] Furthermore, before the step of receiving the SMS call request sent by the terminal to the service interface, the SMS related information processing method further includes:

[0083] If it is determined that the SMS call request sent by the terminal to the service interface is received for the first time, a hash calculation is performed on the mobile phone number and the service number corresponding to the service interface; please refer to the above instructions and no further details will be given.

[0084] Use the hash value as the key value, determine the life cycle corresponding to the key value, synchronize the key value and the corresponding life cycle to the remote dictionary server, and use the key value as the pre-stored key value corresponding to the service's own cache and the remote dictionary service cache respectively; please refer to the above description and no further details will be given.

[0085] The storage duration of the pre-stored key value in the service cache and the remote dictionary service cache is controlled according to the life cycle; please refer to the above description and no further details will be given.

[0086] The storage capacity of the cache of the service itself is less than the storage capacity of the cache of the remote dictionary service. Please refer to the above description and do not repeat it here.

[0087] The SMS related information processing method provided by the embodiment of the present invention realizes SMS related information control based on the secondary cache mechanism, which can further reduce the SMS processing pressure of the service interface, improve the stability of service operation, and save the cost of SMS sending.

[0088] Furthermore, the method for processing the text message related information further includes:

[0089] If it does not exist, the key value is forwarded to the remote dictionary server; please refer to the above description and will not be repeated here.

[0090] If the first feedback result returned by the remote dictionary server is received, a prompt message indicating that a text message has been sent is returned to the terminal; the first feedback result indicates that a pre-stored key value identical to the key value exists in the remote dictionary service cache. Please refer to the above description and no further details will be given.

[0091] The SMS related information processing method provided by the embodiment of the present invention is that the application server directly returns a reminder message of the sent SMS to the terminal, which can further reduce the SMS processing pressure of the service interface, improve the stability of service operation, and save the cost of sending SMS.

[0092] Furthermore, the method for processing the text message related information further includes:

[0093] If a second feedback result returned by the remote dictionary server is received, a text message is resent to the terminal, the key value is re-determined to be the preset storage key value and the life cycle corresponding to the key value, and the preset storage key value is stored in the service cache itself; the second feedback result indicates that there is no pre-stored key value identical to the key value in the remote dictionary service cache. Please refer to the above description and do not repeat it.

[0094] The SMS related information processing method provided by the embodiment of the present invention, in which the application server resends the SMS to the terminal, can further reduce the SMS processing pressure of the service interface, improve the stability of service operation, and save the cost of sending SMS.

[0095] Furthermore, the method for processing the text message related information further includes:

[0096] If it is determined that the storage capacity of the service cache exceeds the limit, the earliest pre-stored key value stored in the service cache is deleted. Please refer to the above description and no further details will be given.

[0097] The method for processing short message related information provided by the embodiment of the present invention realizes optimized storage of pre-stored key values.

[0098] Furthermore, the method for processing the text message related information further includes:

[0099] The first receiving terminal sends a short message call request to the service interface according to the terminal inherent identification. Please refer to the above description and do not repeat it.

[0100] The method for processing short message related information provided by the embodiment of the present invention can effectively determine the short message calling request sent by the first receiving terminal to the service interface.

[0101] Further, determining the life cycle corresponding to the key value includes:

[0102] The life cycle corresponding to the key value is set by setting the remote dictionary service expiration time command. Please refer to the above description and no further details will be given.

[0103] The method for processing short message related information provided by the embodiment of the present invention can conveniently determine the life cycle corresponding to the key value.

[0104] It should be noted that the method for processing SMS related information provided by the embodiment of the present invention can be used in the financial field, and can also be used in any technical field other than the financial field. The embodiment of the present invention does not limit the application field of the method for processing SMS related information.

[0105] Figure 3 is a schematic diagram of the structure of a device for processing short message related information provided by an embodiment of the present invention, such as Figure 3 As shown, the SMS related information processing device provided by the embodiment of the present invention includes a calculation unit 301 and a return unit 302, wherein:

[0106] The calculation unit 301 is used to receive a text message call request sent by the terminal to the service interface, perform hash calculation on the mobile phone number and the service number corresponding to the service interface, and use the hash value as the key value; the text message call request carries the mobile phone number; the return unit 302 is used to check whether there is a pre-stored key value identical to the key value in the service's own cache, and if so, return a prompt message to the terminal that the text message has been sent; wherein the service's own cache is a portion of memory allocated from the application's memory space, which is used to store data required during the service operation process.

[0107] Specifically, the computing unit 301 in the device is used to receive a text message call request sent by the terminal to the service interface, perform hash calculation on the mobile phone number and the service number corresponding to the service interface, and use the hash value as the key value; the text message call request carries the mobile phone number; the return unit 302 is used to check whether there is a pre-stored key value identical to the key value in the service's own cache, and if so, return a prompt message to the terminal that the text message has been sent; wherein the service's own cache is a portion of memory allocated from the application's memory space, which is used to store data required during the service operation process.

[0108] The SMS-related information processing device provided in an embodiment of the present invention receives an SMS call request sent by a terminal to a service interface, performs hash calculation on a mobile phone number and a service number corresponding to the service interface, and uses the hash value as a key value; the SMS call request carries the mobile phone number; checks in the service's own cache whether there is a pre-stored key value identical to the key value, and if so, returns a prompt message to the terminal that an SMS has been sent; wherein the service's own cache is a portion of memory allocated from the application's memory space, which is used to store data required during service operation, can reduce the SMS processing pressure of the service interface, improve the stability of service operation, and save the cost of sending SMS.

[0109] Furthermore, before the step of receiving the SMS call request sent by the terminal to the service interface, the SMS related information processing device is further used to:

[0110] If it is determined that the SMS call request sent by the terminal to the service interface is received for the first time, a hash calculation is performed on the mobile phone number and the service number corresponding to the service interface;

[0111] Using the hash value as a key value, determining a life cycle corresponding to the key value, synchronizing the key value and the corresponding life cycle to a remote dictionary server, and using the key value as a pre-stored key value corresponding to a service cache and a remote dictionary service cache, respectively;

[0112] Controlling the storage duration of the pre-stored key value in the service cache and the remote dictionary service cache respectively according to the life cycle;

[0113] The storage capacity of the service's own cache is less than the storage capacity of the remote dictionary service cache.

[0114] The SMS related information processing device provided by the embodiment of the present invention realizes SMS related information control based on the secondary cache mechanism, which can further reduce the SMS processing pressure of the service interface, improve the stability of service operation, and save the cost of SMS sending.

[0115] Furthermore, the SMS related information processing device is also used for:

[0116] If not present, forward the key value to the remote dictionary server;

[0117] If a first feedback result returned by the remote dictionary server is received, a prompt message indicating that a text message has been sent is returned to the terminal; the first feedback result indicates that a pre-stored key value identical to the key value exists in the remote dictionary service cache.

[0118] The SMS related information processing device provided by the embodiment of the present invention directly returns a reminder message of the sent SMS to the terminal by the application server, which can further reduce the SMS processing pressure of the service interface, improve the stability of service operation, and save the cost of sending SMS.

[0119] Furthermore, the SMS related information processing device is also used for:

[0120] If a second feedback result returned by the remote dictionary server is received, the text message is resent to the terminal, the key value is re-determined to be the preset storage key value and the life cycle corresponding to the key value, and the preset storage key value is stored in the service's own cache; the second feedback result indicates that there is no pre-stored key value identical to the key value in the remote dictionary service cache.

[0121] The SMS related information processing device provided by the embodiment of the present invention resends SMS to the terminal by the application server, etc., which can further reduce the SMS processing pressure of the service interface, improve the stability of service operation, and save the cost of sending SMS.

[0122] Furthermore, the SMS related information processing device is also used for:

[0123] If it is determined that the storage capacity of the service's own cache exceeds the limit, the earliest pre-stored key value stored in the service's own cache is deleted.

[0124] The SMS related information processing device provided by the embodiment of the present invention realizes optimized storage of pre-stored key values.

[0125] Furthermore, the SMS related information processing device is also used for:

[0126] Determine the SMS call request sent by the first receiving terminal to the service interface based on the terminal's inherent identification.

[0127] The device for processing short message related information provided by the embodiment of the present invention can effectively determine the short message calling request sent by the first receiving terminal to the service interface.

[0128] Furthermore, the SMS related information processing device is also used for:

[0129] The life cycle corresponding to the key value is set by a command for setting the expiration time of the remote dictionary service.

[0130] The device for processing short message related information provided by the embodiment of the present invention can conveniently determine the life cycle corresponding to the key value.

[0131] The embodiments of the present invention provide an embodiment of a device for processing SMS related information, which can be specifically used to execute the processing flow of the above-mentioned method embodiments. Its functions are not described in detail here, and reference can be made to the detailed description of the above-mentioned method embodiments.

[0132] Figure 4 A schematic diagram of the physical structure of an electronic device provided in an embodiment of the present invention, such as Figure 4 As shown, the electronic device includes: a processor (processor) 401, a memory (memory) 402 and a bus 403;

[0133] The processor 401 and the memory 402 communicate with each other via a bus 403;

[0134] The processor 401 is used to call the program instructions in the memory 402 to execute the methods provided by the above method embodiments, for example, including:

[0135] The receiving terminal sends a text message call request to the service interface, performs a hash calculation on the mobile phone number and the service number corresponding to the service interface, and uses the hash value as a key value; the text message call request carries the mobile phone number;

[0136] Checking whether there is a pre-stored key value identical to the key value in the service's own cache, and if so, returning a prompt message to the terminal indicating that a text message has been sent;

[0137] The service cache is a portion of memory allocated from the application's memory space and is used to store data required during the service operation process.

[0138] This embodiment discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer can perform the methods provided by the above method embodiments, for example, including:

[0139] The receiving terminal sends a text message call request to the service interface, performs a hash calculation on the mobile phone number and the service number corresponding to the service interface, and uses the hash value as a key value; the text message call request carries the mobile phone number;

[0140] Checking whether there is a pre-stored key value identical to the key value in the service's own cache, and if so, returning a prompt message to the terminal indicating that a text message has been sent;

[0141] The service cache is a portion of memory allocated from the application's memory space and is used to store data required during the service operation process.

[0142] This embodiment provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program enables the computer to execute the methods provided by the above method embodiments, for example, including:

[0143] The receiving terminal sends a text message call request to the service interface, performs a hash calculation on the mobile phone number and the service number corresponding to the service interface, and uses the hash value as a key value; the text message call request carries the mobile phone number;

[0144] Checking whether there is a pre-stored key value identical to the key value in the service's own cache, and if so, returning a prompt message to the terminal indicating that a text message has been sent;

[0145] The service cache is a portion of memory allocated from the application's memory space and is used to store data required during the service operation process.

[0146] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0147] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0148] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0149] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0150] In the description of this specification, the description with reference to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0151] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for processing short message related information, characterized in that: include: If it is determined that the SMS call request sent by the terminal to the service interface is received for the first time, a hash calculation is performed on the mobile phone number and the service number corresponding to the service interface; Using the hash value as a key value, determining a life cycle corresponding to the key value, synchronizing the key value and the corresponding life cycle to a remote dictionary server, and using the key value as a pre-stored key value corresponding to a service cache and a remote dictionary service cache, respectively; Controlling the storage duration of the pre-stored key value in the service cache and the remote dictionary service cache respectively according to the life cycle; The receiving terminal sends a text message call request to the service interface, performs a hash calculation on the mobile phone number and the service number corresponding to the service interface, and uses the hash value as a key value; the text message call request carries the mobile phone number; the service number is used to identify the service interface; different service interfaces correspond to different service numbers; Checking whether there is a pre-stored key value identical to the key value in the service's own cache, and if so, returning a prompt message to the terminal indicating that a text message has been sent; If not, forwarding the key value to the remote dictionary server; the remote dictionary server compares the key value with the pre-stored key value in the remote dictionary service cache, and returns a feedback result according to the comparison result; If a first feedback result returned by the remote dictionary server is received, a prompt message indicating that a text message has been sent is returned to the terminal; The first feedback result indicates that there is a pre-stored key value identical to the key value in the remote dictionary service cache; The service cache is a portion of memory allocated from the application's memory space, used to store data required during service operation; The storage capacity of the service's own cache is less than the storage capacity of the remote dictionary service cache.

2. The method for processing short message related information according to claim 1, characterized in that: The method for processing the text message related information further includes: If a second feedback result returned by the remote dictionary server is received, the text message is resent to the terminal, the key value is re-determined to be the preset storage key value and the life cycle corresponding to the key value, and the preset storage key value is stored in the service's own cache; the second feedback result indicates that there is no pre-stored key value identical to the key value in the remote dictionary service cache.

3. The method for processing short message related information according to claim 1, characterized in that: The method for processing the text message related information further includes: If it is determined that the storage capacity of the service's own cache exceeds the limit, the earliest pre-stored key value stored in the service's own cache is deleted.

4. The method for processing short message related information according to claim 1, characterized in that: The method for processing the text message related information further includes: Determine the SMS call request sent by the first receiving terminal to the service interface based on the terminal's inherent identification.

5. The method for processing short message related information according to claim 1, characterized in that: Determining a life cycle corresponding to the key value includes: The life cycle corresponding to the key value is set by a command for setting the expiration time of the remote dictionary service.

6. A device for processing short message related information, characterized in that: include: A calculation unit, configured to perform a hash calculation on the mobile phone number and the service number corresponding to the service interface if it is determined that the SMS call request sent by the terminal to the service interface is received for the first time; Using the hash value as a key value, determining a life cycle corresponding to the key value, synchronizing the key value and the corresponding life cycle to a remote dictionary server, and using the key value as a pre-stored key value corresponding to a service cache and a remote dictionary service cache, respectively; Controlling the storage duration of the pre-stored key value in the service cache and the remote dictionary service cache respectively according to the life cycle; The receiving terminal sends a text message call request to the service interface, performs a hash calculation on the mobile phone number and the service number corresponding to the service interface, and uses the hash value as a key value; the text message call request carries the mobile phone number; the service number is used to identify the service interface; different service interfaces correspond to different service numbers; A returning unit, used to check whether there is a pre-stored key value identical to the key value in the service's own cache, and if so, return a prompt message to the terminal indicating that the SMS message has been sent; If not, forwarding the key value to the remote dictionary server; the remote dictionary server compares the key value with the pre-stored key value in the remote dictionary service cache, and returns a feedback result according to the comparison result; If a first feedback result returned by the remote dictionary server is received, a prompt message indicating that a text message has been sent is returned to the terminal; The first feedback result indicates that there is a pre-stored key value identical to the key value in the remote dictionary service cache; The service cache is a portion of memory allocated from the application's memory space, used to store data required during service operation; The storage capacity of the service's own cache is less than the storage capacity of the remote dictionary service cache.

7. An electronic 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, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Method and system for preventing resending of short message based on digital signature technology

    CN102946596A