CN111428463A - Short message processing method and device, electronic equipment and storage medium - Google Patents

Short message processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111428463A
CN111428463A CN202010223223.XA CN202010223223A CN111428463A CN 111428463 A CN111428463 A CN 111428463A CN 202010223223 A CN202010223223 A CN 202010223223A CN 111428463 A CN111428463 A CN 111428463A
Authority
CN
China
Prior art keywords
short message
field
acquiring
identifier
configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010223223.XA
Other languages
Chinese (zh)
Inventor
谢伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Smart Technology Co Ltd
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN202010223223.XA priority Critical patent/CN111428463A/en
Publication of CN111428463A publication Critical patent/CN111428463A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • G06F16/3341Query execution using boolean model
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]

Abstract

The application relates to data processing and discloses a short message processing method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a first short message template identifier and a first mapping relation, wherein the first mapping relation is the relation between the first short message template identifier and first sending time; acquiring the first sending time from a configuration table according to the first short message template identifier and the first mapping relation; when the system time is the first sending time, acquiring a plurality of field identifications and preset characters; acquiring a plurality of short message fields from a database according to the field identification; acquiring a plurality of characters in a first short message template corresponding to the first short message template identification according to the preset characters; and configuring the short message field in the first short message template according to the field name associated with the character to obtain a first short message. By implementing the embodiment of the application, the filling efficiency of the short message content is improved, and the influence on the timeliness of the short message sending is avoided.

Description

Short message processing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a short message processing method and apparatus, an electronic device, and a storage medium.
Background
At present, mobile internet is increasingly infiltrated into economic life of people, for example, when the fund of a user changes, a bank sends a short message to the user. For example, when a user logs in a client, the server sends an authentication code to the user. Therefore, in order to improve the efficiency of sending short messages, a short message template is usually set. When a short message needs to be sent, the filled short message template can be sent to the user only by filling the corresponding short message content into the corresponding short message template.
However, only a single short message content can be filled into the short message template each time, which results in low filling efficiency and affects the short message sending timeliness.
Disclosure of Invention
The embodiment of the application provides a short message processing method, a short message processing device, electronic equipment and a storage medium, and provides a specific means.
A first aspect of the present application provides a short message processing method, including:
acquiring a first short message template identifier and a first mapping relation, wherein the first mapping relation is the relation between the first short message template identifier and first sending time;
acquiring the first sending time from a configuration table according to the first short message template identifier and the first mapping relation;
when the system time is the first sending time, acquiring a plurality of field identifications and preset characters;
acquiring a plurality of short message fields from a database according to the field identification;
acquiring a plurality of characters in a first short message template corresponding to the first short message template identification according to the preset characters;
and configuring the short message field in the first short message template according to the field name associated with the character to obtain a first short message.
A second aspect of the present application provides a short message processing apparatus, including:
an obtaining module, configured to obtain a first short message template identifier and a first mapping relationship, where the first mapping relationship is a relationship between the first short message template identifier and a first sending time;
the acquisition module is used for acquiring the first sending time from a configuration table according to the first short message template identifier and the first mapping relation;
the acquisition module is used for acquiring a plurality of field identifications and preset characters when the system time is the first sending time;
the acquisition module is used for acquiring a plurality of short message fields from a database according to the field identification;
the acquisition module is used for acquiring a plurality of characters in a first short message template corresponding to the first short message template identification according to the preset characters;
and the processing module is used for configuring the short message field in the first short message template according to the field name associated with the character to obtain a first short message.
A third aspect of the present application provides an electronic device for processing a short message, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory, and the processor executes instructions of steps in any method of a short message processing method.
A fourth aspect of the present application provides a computer-readable storage medium for storing a computer program, where the stored computer program is executed by a processor to perform the method of any one of the short message processing methods.
It can be seen that, in the above technical solution, a first short message template identifier and a first mapping relationship are obtained, where the first mapping relationship is a relationship between the first short message template identifier and a first sending time; acquiring the first sending time from a configuration table according to the first short message template identifier and the first mapping relation; when the system time is the first sending time, acquiring a plurality of field identifications and preset characters; acquiring a plurality of short message fields from a database according to the field identification; acquiring a plurality of characters in a first short message template corresponding to the first short message template identification according to the preset characters; and configuring the short message fields in the first short message template according to the field names associated with the characters to obtain the first short message, thereby realizing the completion of filling a plurality of short message fields at one time, improving the filling efficiency of the short message content and avoiding influencing the time efficiency of short message sending.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
fig. 1A is a schematic diagram illustrating an architecture of a short message processing method according to an embodiment of the present application;
fig. 1B is a schematic flow chart of a short message processing method according to an embodiment of the present application;
fig. 1C is a schematic flow chart of another short message processing method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of another short message processing method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a short message processing apparatus according to an embodiment of the present application;
fig. 4 is a schematic server structure diagram of a hardware operating environment according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The following are detailed below.
The terms "first" and "second" in the description and claims of the present application and the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
First, an execution subject in the embodiment of the present application may be, for example, a server, or a local short message processing device based on a short message template. The server may be, for example, a tablet computer, a notebook computer, a palm top computer, an MID, a desktop computer, or other server devices. And are not limiting in this application.
Referring to fig. 1A, fig. 1A is a schematic diagram illustrating an architecture of a short message processing method according to an embodiment of the present disclosure. As shown in fig. 1A, the server 10 may obtain the sending time from the configuration table 11 based on the short message template identifier and the mapping relationship. Next, when the system time is the transmission time, the server 10 acquires a plurality of field identifications and preset characters. The server 10 may also obtain a plurality of short message fields from the database 12 according to the field identifiers.
Referring to fig. 1B, fig. 1B is a schematic flow chart of a short message processing method according to an embodiment of the present disclosure. As shown in fig. 1B, the method includes:
101. acquiring a first short message template identifier and a first mapping relation, wherein the first mapping relation is the relation between the first short message template identifier and first sending time;
optionally, in a possible implementation manner, before the obtaining the first short message template identifier and the first mapping relationship, the method further includes: when information submission operation is detected on a configuration interface, acquiring a plurality of configuration information from the configuration interface; acquiring at least one first configuration information matched with a preset first configuration identifier set in the plurality of configuration information; storing the at least one first configuration information in the configuration table, the first configuration information including the first transmission time; acquiring at least one second configuration information matched with a preset second configuration identifier set in the plurality of configuration information; and storing the at least one second configuration message in the database, wherein the plurality of short message fields are included in the at least one second configuration message.
The preset first configuration identifier set comprises a first short message template identifier, and the preset second configuration identifier set comprises the first short message template identifier.
Wherein the configuration interface includes a first input box and a second input box. The user can input the sending time in the first input box, and can input a plurality of short message fields in the second input box. Further, the configuration interface includes a confirmation button. That is, when the user inputs the corresponding configuration information in the first input box and the second input box, the information submission operation may be performed on the confirmation button. For example, the user has clicked the confirmation button. Then, the server may obtain the configuration information with the first input box and the second input box. Further, the configuration information includes a first sending time and a plurality of short message fields.
It can be understood that, when the input operation for the first input box is detected, the server displays the sending time recommendation list corresponding to the first input box. The configuration information recommendation list comprises a plurality of preset sending times.
The preset first configuration identifier set and the preset second configuration identifier set may be set by an administrator, or may be configured in a configuration file. The preset first configuration identifier set comprises a plurality of preset first configuration identifiers, and the preset second configuration identifier set comprises a plurality of preset second configuration identifiers.
Wherein each short message field of the plurality of short message fields comprises one of: user name field, contact, bank name or payment date, etc. The user name field is, for example, a name or a nickname, etc.
Optionally, the storing the at least one second configuration information in the database includes: and calling a first interface to process the at least one second configuration information so as to store the at least one second configuration information in a first data table of the database. The first interface is used for the server to store the at least one second configuration information in the first data table.
It can be seen that, in the above technical solution, when an information submission operation is detected on a configuration interface, a plurality of pieces of configuration information are obtained from the configuration interface; acquiring at least one first configuration information matched with a preset first configuration identifier set in the plurality of configuration information; storing the at least one first configuration information in the configuration table, the first configuration information including the first transmission time; acquiring at least one second configuration information matched with a preset second configuration identifier set in the plurality of configuration information; and storing the at least one piece of second configuration information in the database, wherein the plurality of short message fields are contained in the at least one piece of second configuration information, so that the configuration information is obtained from the configuration interface, and the configuration information is stored in different data tables to prepare for filling a plurality of short message contents into the short message template subsequently.
It is understood that the first delivery time is constituted by a first expression, which is a Cron expression, which is a string of characters separated by 5 or 6 spaces, which includes 6 or 7 fields, each representing a meaning, the Cron expression includes two syntax formats, one is secondsminues sources dayoffmonth DayofWeek Yea, and the other is secondsminues sources dayoffmonth dayoffeek, i.e., 7 fields include secondsminues sources dayoffeek Yea, 6 fields include secondsminues sources dayoffmonth dayoffeek Yea, each field corresponds to at least one character, for example, the term "Seconds", "rayoffmonth", "dayoffeek", "6 fields include" Seconds sources dayoffmonth dayoffeek "," each field corresponds to at least one character ", for example, the term" may correspond to "," four characters "," dayoffw "," 35 ", and" may correspond to "eight characters".
For example, 0021? I.e. the first sending time was 2 am on 1 day each month.
102. Acquiring the first sending time from a configuration table according to the first short message template identifier and the first mapping relation;
for example, referring to table 1, table 1 is a configuration table provided in the embodiments of the present application, as shown in table 1:
table 1 is a configuration table provided in the embodiment of the present application
First sending time First short message template mark
0 0 2 1*?* template1
It can be seen that, in table 1, the first transmission time is 0021? I.e. the first sending time was 2 am on 1 day each month. The first text message template is identified as template 1.
103. When the system time is the first sending time, acquiring a plurality of field identifications and preset characters;
wherein, the field identification is used for identifying the short message field.
For example, the field id may be, for example, Custname, or mobile no, and is not limited in this application.
Wherein the system time is the time of the server.
For example, referring to fig. 1C, fig. 1C is a schematic flow chart of another short message processing method provided in the embodiment of the present application. The server is the server 10 in fig. 1A. As shown in fig. 1C, the system time is 12 months, 12 days, 15:26 in 2019. Assume that the first sending time is also 12 months, 12 days, 15:26 in 2019, i.e., the system time is the first sending time. Then, the server 10 acquires a plurality of field identifications and preset characters.
The preset characters can be set by an administrator or configured in a configuration file. For example, the default characters may be, for example: and $ 3.
104. Acquiring a plurality of short message fields from a database according to the field identification;
wherein the database comprises a first data table and a second data table.
105. Acquiring a plurality of characters in a first short message template corresponding to the first short message template identification according to the preset characters;
for example, the first short message module is: the honored $ username is good, the $ bankname $ productname applied by you fails to be deducted at $ time, the $ number element needs to be paid after entering into an overdue state, the $ bankname reports the overdue information to a people credit center, and the user is required to pay as soon as possible to avoid credit damage. If the payment is not settled. Clicking can view the detailed repayment guide $ https:// xxxx. Then, each character of the plurality of characters in the first short message template may be $, for example. Further, for example, $ username, with the field name username; $ productname, its field name is productname.
106. And configuring the short message field in the first short message template according to the field name associated with the character to obtain a first short message.
It can be seen that, in the above technical solution, a first short message template identifier and a first mapping relationship are obtained, where the first mapping relationship is a relationship between the first short message template identifier and a first sending time; acquiring the first sending time from a configuration table according to the first short message template identifier and the first mapping relation; when the system time is the first sending time, acquiring a plurality of field identifications and preset characters; acquiring a plurality of short message fields from a database according to the field identification; acquiring a plurality of characters in a first short message template corresponding to the first short message template identification according to the preset characters; and configuring the short message fields in the first short message template according to the field names associated with the characters to obtain the first short message, thereby realizing the completion of filling a plurality of short message fields at one time, improving the filling efficiency of the short message content and avoiding influencing the time efficiency of short message sending.
Optionally, in a possible implementation manner, before the configuring, according to the field name associated with the character, a plurality of short message fields in the first short message template to obtain the first short message, the method further includes: acquiring a plurality of preset regular expressions; checking the short message field according to the preset regular expression; the step of configuring the short message field in the first short message template according to the field name associated with the character to obtain a first short message comprises the following steps: and if the verification is successful, configuring the short message field in the first short message template according to the field name associated with the character to obtain the first short message.
Wherein each preset regular expression in the plurality of preset regular expressions is a regular expression. Regular expressions are made up of strings of characters that include letters, numbers, and/or symbols, among others.
For example, a first preset regular expression in the preset regular expressions is used for detecting that the name is not empty, a second preset regular expression in the preset regular expressions is used for detecting that the number of digits of the contact way is a first digit, and the first digit is a preset digit. For example, the mobile phone numbers are all 11 digits, i.e., the first digit is 11. If a contact address is only 10, this means that the number of digits for that contact address is not 11.
Further, the second preset regular expression may be, for example:
/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/。
it can be seen that, in the above technical scheme, a plurality of preset regular expressions are obtained; checking the short message field according to the preset regular expression; the step of configuring the short message field in the first short message template according to the field name associated with the character to obtain a first short message comprises the following steps: if the verification is successful, the short message field is configured in the first short message template according to the field name associated with the character to obtain the first short message, so that the condition that the short message field does not accord with a plurality of preset regular expressions is avoided, and the effectiveness of filling the short message content is improved.
Referring to fig. 2, fig. 2 is a schematic flow chart of another short message processing method according to the embodiment of the present application. As shown in fig. 2, a short message field Q is any one of the short message fields, the short message field Q corresponds to a field identifier Q, and the obtaining a plurality of short message fields from a database according to the field identifier includes:
201. acquiring a data type associated with the field identifier Q from a first data table in the database according to the field identifier Q;
for example, referring to table 2, table 2 is a first data table provided in the embodiment of the present application, as shown in table 2:
first short message template mark Field identification Data type Value of
template1 Custname Fixed value Zhang three
template1 MobileNo Source value Cust.MobileNo
It can be seen that, in table 2, the first sms module is identified as template 1. The field identification includes Custname and MobileNo. When the field is identified as Custname, the data type is a fixed value, i.e., a first type. Further, the value corresponding to the fixed value associated with Custname is zhang, i.e., the short message field is zhang. When the field is identified as MobileNo, its data type is the source value, i.e., the second type. Further, the source value associated with the mobile no corresponds to a value of cure. Further, the second data table is named as an adjacent field before the first character, and the value corresponding to the data type associated with the field identification Q in the first data table comprises the adjacent field before the first character, the adjacent field after the first character and the first character. Wherein the first character is ". It will be appreciated that the adjacent field following the first character identifies Q for the field.
Further, for example, referring to table 3, table 3 is a second data table provided in the embodiments of the present application, as shown in table 3:
field identification Value of
MobileNo 13622222222
It can be seen that, in table 3, the field id is mobileon, and the server obtains the value corresponding to the field id Q based on the second data table name, that is, 13622222222.
202. When the data type associated with the field identifier Q in the first data table is a first type, taking a value corresponding to the data type associated with the field identifier Q in the first data table as the short message field Q;
203. and when the data type associated with the field identifier Q in the first data table is a second type, taking a value corresponding to the field identifier Q in a second data table as the short message field Q, wherein the second data table is determined according to a second data table name, and the second data table name is a value corresponding to the data type associated with the field identifier Q in the first data table.
It can be seen that, in the above technical solution, the data type associated with the field identifier Q is obtained from the first data table in the database according to the field identifier Q; when the data type associated with the field identifier Q in the first data table is a first type, taking a value corresponding to the data type associated with the field identifier Q in the first data table as the short message field Q; and when the data type associated with the field identifier Q in the first data table is a second type, taking a value corresponding to the field identifier Q in a second data table as the short message field Q, wherein the second data table is determined according to a second data table name, and the second data table name is a value corresponding to the data type associated with the field identifier Q in the first data table, so that the short message field is acquired. The short message fields with different data types are separately stored in the two data tables, so that the short message fields with different data types are prevented from being stored in the same data table, the structure of the data table is simplified, and the acquisition efficiency of the short message fields is improved.
Further, in a possible embodiment, the method further includes: acquiring a user name field in the short message field; acquiring grade information of a user according to the user name field; when the grade information of the user is higher than the preset grade information, setting a first label for the first short message, wherein the first label is used for indicating that the first short message is sent preferentially when being sent through a gateway; and sending the first short message through the gateway according to the first label.
The preset level information may be set by an administrator or may be configured in a configuration file of the server.
It can be seen that, in the above technical solution, a user name field in the short message field is obtained; acquiring grade information of a user according to the user name field; when the grade information of the user is higher than the preset grade information, setting a first label for the first short message, wherein the first label is used for indicating that the first short message is sent preferentially when being sent through a gateway; and according to the first label, the first short message is sent through the gateway, so that the short message is sent preferentially.
Further, in a possible implementation manner, the sending the first short message through the gateway according to the first tag includes: determining a short message type corresponding to the first short message according to the first short message template identifier; if the short message type is a first type of short message type, sending the first short message through the gateway according to the first label; if the short message type is the second type short message type, after the short message belonging to the first type short message type is sent through the gateway, the first short message is sent through the gateway according to the first label.
The short message types comprise a repayment overdue short message, a repayment success short message, a repayment failure short message and a greeting short message. The first type of short message comprises a repayment overdue type short message, a repayment success type short message and a repayment failure type short message. The first type of short message is a greeting type of short message.
For example, repayment of an overdue short message, honored little, good, and a happy bank house applied by you fails to deduct money in 2/25/2020, enters an overdue state, and needs to repayment of 3980 yuan, and a happy bank will report the overdue information to a people credit center to avoid credit damage and request to make up as soon as possible. If the payment is not settled. Click can see detailed repayment guide https:// kuaile.
It can be seen that, in the above technical solution, the short message type corresponding to the first short message is determined according to the first short message template identifier; if the short message type is a first type of short message type, sending the first short message through the gateway according to the first label; if the short message type is the second type short message type, after the short message belonging to the first type short message type is sent through the gateway, the first short message is sent through the gateway according to the first label, so that the short message is sent according to the short message type, and the problem that the short message belonging to the first type short message type cannot be sent in time due to overhigh level information of a user is avoided.
Referring to fig. 3, fig. 3 is a schematic diagram of a short message processing apparatus according to an embodiment of the present disclosure. As shown in fig. 3, a short message processing apparatus 300 according to an embodiment of the present disclosure may include:
an obtaining module 301, configured to obtain a first short message template identifier and a first mapping relationship, where the first mapping relationship is a relationship between the first short message template identifier and a first sending time;
optionally, in a possible implementation manner, before the obtaining module 301 is configured to obtain the first short message template identifier and the first mapping relationship, the apparatus further includes a storing module 303, where the obtaining module 301 is further configured to obtain a plurality of configuration information from a configuration interface when an information submission operation is detected on the configuration interface; the obtaining module 301 is further configured to obtain at least one piece of configuration information, which is matched with a preset first configuration identifier set, from the plurality of pieces of configuration information; the storing module 303 is configured to store the at least one first configuration information in the configuration table, where the first configuration information includes the first sending time; the obtaining module 301 is further configured to obtain at least one piece of configuration information, which is matched with a preset second configuration identifier set, from the plurality of pieces of configuration information, so as to obtain at least one piece of second configuration information; the storage module 303 is configured to store the at least one second configuration information in the database, where the plurality of short message fields are included in the at least one second configuration information.
The obtaining module 301 is configured to obtain the first sending time from a configuration table according to the first short message template identifier and the first mapping relationship;
the obtaining module 301 is configured to obtain a plurality of field identifiers and preset characters when the system time is the first sending time;
the obtaining module 301 is configured to obtain a plurality of short message fields from a database according to the field identifier;
optionally, in a possible implementation manner, the short message field Q is any one of the short message fields, the short message field Q corresponds to a field identifier Q, and the obtaining module 301 is configured to obtain, according to the field identifier Q, a data type associated with the field identifier Q from a first data table in the database; the obtaining module 301 is configured to, when the data type associated with the field identifier Q in the first data table is a first type, use a value corresponding to the data type associated with the field identifier Q in the first data table as the short message field Q; the obtaining module 301 is configured to, when the data type associated with the field identifier Q in the first data table is a second type, use a value corresponding to the field identifier Q in a second data table as the short message field Q, where the second data table is determined according to a second data table name, and the second data table name is a value corresponding to the data type associated with the field identifier Q in the first data table.
The obtaining module 301 is configured to obtain a plurality of characters in a first short message template corresponding to the first short message template identifier according to the preset characters;
the processing module 302 is configured to configure the short message field in the first short message template according to the field name associated with the character, so as to obtain a first short message.
Optionally, in a possible real-time manner, before the short message field is configured in the first short message template according to the field name associated with the character to obtain the first short message, the obtaining module 301 is further configured to obtain a plurality of preset regular expressions; the processing module 302 is further configured to verify the short message field according to the preset regular expression; the processing module 302 is further configured to configure the short message field in the first short message template according to the field name associated with the character to obtain the first short message if the verification is successful.
Optionally, in a possible implementation manner, the apparatus further includes a transceiver module 304, and the obtaining module 301 is further configured to obtain a user name field in the short message field; the obtaining module 301 is further configured to obtain level information of a user according to the user name field; the processing module 302 is further configured to set a first tag for the first short message when the level information of the user is higher than preset level information, where the first tag is used to indicate that the first short message is preferentially sent when being sent through a gateway; the transceiver module 304 is configured to send the first short message through the gateway according to the first tag.
Referring to fig. 4, fig. 4 is a schematic diagram of a server structure of a hardware operating environment according to an embodiment of the present application.
The embodiment of the application provides an electronic device for processing short messages, which comprises a processor, a memory, a communication interface and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor so as to execute instructions comprising the steps of any short message processing method. As shown in fig. 4, a server of a hardware operating environment according to an embodiment of the present application may include:
a processor 401, such as a CPU.
The memory 402 may alternatively be a high speed RAM memory or a stable memory such as a disk memory.
A communication interface 403 for implementing connection communication between the processor 401 and the memory 402.
Those skilled in the art will appreciate that the configuration of the server shown in fig. 4 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 4, the memory 402 may include an operating system, a network communication module, and the one or more programs. An operating system is a program that manages and controls the server hardware and software resources, supporting the execution of one or more programs. The network communication module is used to implement communication between the components within the memory 402 and with other hardware and software within the server.
In the server shown in fig. 4, the processor 401 is configured to execute the one or more programs stored in the memory 402, implementing the steps of: acquiring a first short message template identifier and a first mapping relation, wherein the first mapping relation is the relation between the first short message template identifier and first sending time; acquiring the first sending time from a configuration table according to the first short message template identifier and the first mapping relation; when the system time is the first sending time, acquiring a plurality of field identifications and preset characters; acquiring a plurality of short message fields from a database according to the field identification; acquiring a plurality of characters in a first short message template corresponding to the first short message template identification according to the preset characters; and configuring the short message field in the first short message template according to the field name associated with the character to obtain a first short message.
For specific implementation of the server according to the present application, reference may be made to various embodiments of the short message processing method, which are not described herein again.
The present application further provides a computer readable storage medium for storing a computer program, the stored computer program being executable by the processor to perform the steps of: acquiring a first short message template identifier and a first mapping relation, wherein the first mapping relation is the relation between the first short message template identifier and first sending time; acquiring the first sending time from a configuration table according to the first short message template identifier and the first mapping relation; when the system time is the first sending time, acquiring a plurality of field identifications and preset characters; acquiring a plurality of short message fields from a database according to the field identification; acquiring a plurality of characters in a first short message template corresponding to the first short message template identification according to the preset characters; and configuring the short message field in the first short message template according to the field name associated with the character to obtain a first short message.
For specific implementation of the computer-readable storage medium related to the present application, reference may be made to the embodiments of the short message processing method, which are not described herein again.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art should understand that the present application is not limited by the order of acts described, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in this specification are preferred embodiments and that the acts and modules involved are not necessarily required for this application.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A short message processing method is characterized by comprising the following steps:
acquiring a first short message template identifier and a first mapping relation, wherein the first mapping relation is the relation between the first short message template identifier and first sending time;
acquiring the first sending time from a configuration table according to the first short message template identifier and the first mapping relation;
when the system time is the first sending time, acquiring a plurality of field identifications and preset characters;
acquiring a plurality of short message fields from a database according to the field identification;
acquiring a plurality of characters in a first short message template corresponding to the first short message template identification according to the preset characters;
and configuring the short message field in the first short message template according to the field name associated with the character to obtain a first short message.
2. The method according to claim 1, wherein before said obtaining the first short message template identifier and the first mapping relationship, the method further comprises:
when information submission operation is detected on a configuration interface, acquiring a plurality of configuration information from the configuration interface;
acquiring at least one first configuration information matched with a preset first configuration identifier set in the plurality of configuration information;
storing the at least one first configuration information in the configuration table, the first configuration comprising the first transmission time;
acquiring at least one second configuration information matched with a preset second configuration identifier set in the plurality of configuration information;
and storing the at least one second configuration message in the database, wherein the plurality of short message fields are included in the at least one second configuration message.
3. The method of claim 1, wherein before configuring the plurality of text message fields in the first text message template according to the field names associated with the characters to obtain the first text message, the method further comprises:
acquiring a plurality of preset regular expressions;
checking the short message field according to the preset regular expression;
the step of configuring the short message field in the first short message template according to the field name associated with the character to obtain a first short message comprises the following steps: and if the verification is successful, configuring the short message field in the first short message template according to the field name associated with the character to obtain the first short message.
4. The method according to any one of claims 1-3, wherein the short message field Q is any one of the short message fields, the short message field Q corresponds to a field identifier Q, and the obtaining a plurality of short message fields from a database according to the field identifier comprises:
acquiring a data type associated with the field identifier Q from a first data table in the database according to the field identifier Q;
when the data type associated with the field identifier Q in the first data table is a first type, taking a value corresponding to the data type associated with the field identifier Q in the first data table as the short message field Q;
and when the data type associated with the field identifier Q in the first data table is a second type, taking a value corresponding to the field identifier Q in a second data table as the short message field Q, wherein the second data table is determined according to a second data table name, and the second data table name is a value corresponding to the data type associated with the field identifier Q in the first data table.
5. The method of claim 4, further comprising:
acquiring a user name field in the short message field;
acquiring grade information of a user according to the user name field;
when the grade information of the user is higher than the preset grade information, setting a first label for the first short message, wherein the first label is used for indicating that the first short message is sent preferentially when being sent through a gateway;
and sending the first short message through the gateway according to the first label.
6. A short message processing device is characterized by comprising:
an obtaining module, configured to obtain a first short message template identifier and a first mapping relationship, where the first mapping relationship is a relationship between the first short message template identifier and a first sending time;
the acquisition module is used for acquiring the first sending time from a configuration table according to the first short message template identifier and the first mapping relation;
the acquisition module is used for acquiring a plurality of field identifications and preset characters when the system time is the first sending time;
the acquisition module is used for acquiring a plurality of short message fields from a database according to the field identification;
the acquisition module is used for acquiring a plurality of characters in a first short message template corresponding to the first short message template identification according to the preset characters;
and the processing module is used for configuring the short message field in the first short message template according to the field name associated with the character to obtain a first short message.
7. The apparatus of claim 6, wherein before obtaining the first short message template identifier and the first mapping relationship, the apparatus further comprises a storage module,
the obtaining module is further configured to obtain a plurality of configuration information from the configuration interface when an information submission operation is detected on the configuration interface;
the obtaining module is further configured to obtain at least one piece of configuration information, which is matched with a preset first configuration identifier set, from the plurality of pieces of configuration information;
the storage module is configured to store the at least one piece of first configuration information in the configuration table, where the first configuration information includes the first sending time;
the obtaining module is further configured to obtain at least one piece of configuration information, which is matched with a preset second configuration identifier set, from the plurality of pieces of configuration information to obtain at least one piece of second configuration information;
the storage module is configured to store the at least one second configuration information in the database, and the plurality of short message fields are included in the at least one second configuration information.
8. The apparatus of claim 6, wherein before the short message field is configured in the first short message template according to the field name associated with the character to obtain the first short message,
the acquisition module is further used for acquiring a plurality of preset regular expressions;
the processing module is further used for verifying the short message field according to the preset regular expression;
and the processing module is also used for configuring the short message field in the first short message template according to the field name associated with the character to obtain the first short message if the verification is successful.
9. An electronic device for short message processing, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory, and wherein the instructions of the steps of the method of any one of claims 1-5 are executed by the processor.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium is used for storing a computer program, which is executed by the processor for performing the method of any of claims 1-5.
CN202010223223.XA 2020-03-26 2020-03-26 Short message processing method and device, electronic equipment and storage medium Pending CN111428463A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010223223.XA CN111428463A (en) 2020-03-26 2020-03-26 Short message processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010223223.XA CN111428463A (en) 2020-03-26 2020-03-26 Short message processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111428463A true CN111428463A (en) 2020-07-17

Family

ID=71555743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010223223.XA Pending CN111428463A (en) 2020-03-26 2020-03-26 Short message processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111428463A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114390137A (en) * 2020-10-20 2022-04-22 阿里巴巴集团控股有限公司 Short message processing method, device, equipment and storage medium
CN114866405A (en) * 2022-04-15 2022-08-05 西安广和通无线软件有限公司 Module configuration method, communication module, electronic device, and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114390137A (en) * 2020-10-20 2022-04-22 阿里巴巴集团控股有限公司 Short message processing method, device, equipment and storage medium
CN114866405A (en) * 2022-04-15 2022-08-05 西安广和通无线软件有限公司 Module configuration method, communication module, electronic device, and storage medium
CN114866405B (en) * 2022-04-15 2024-04-05 西安广和通无线软件有限公司 Module configuration method, communication module, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN111176963B (en) Service evaluation information processing method and device
CN105868202A (en) Multi-platform access data management system
CN109741118A (en) Invoice issuing method, apparatus, equipment and computer readable storage medium
CN110852816A (en) Block chain based automatic invoicing method, terminal equipment and storage medium
CN112613917A (en) Information pushing method, device and equipment based on user portrait and storage medium
CN107634947A (en) Limitation malice logs in or the method and apparatus of registration
US20170250993A1 (en) System, apparatus and method for access and authorization control
CN110263581A (en) Contract signs method, system, terminal device and storage medium
CN110602056A (en) Service parameter transmission method and device
CN111428463A (en) Short message processing method and device, electronic equipment and storage medium
CN112631924A (en) Automatic testing method and device, computer equipment and storage medium
CN107741954B (en) Declaration and entry method of electronic document, server and storage medium
CN116308236A (en) Mail processing method, mail processing device, electronic equipment and storage medium
CN111598707B (en) Page generation method and electronic equipment
CN111526184B (en) Business auditing method and device
CN112559646A (en) Report downloading method and device
CN114637672A (en) Automatic data testing method and device, computer equipment and storage medium
CN114428723A (en) Test system, system test method, related device and storage medium
CN112182552A (en) Real-name authentication method and device, electronic equipment and storage medium
WO2020215542A1 (en) Information notification method and device, computer apparatus, and storage medium
CN110032703A (en) A kind of enterprise web site trustship method and system
CN111865726A (en) Service message testing method, device, computer system and storage medium
CN113852627B (en) Extensible payment message processing method and device and electronic equipment
CN113436000A (en) Remittance processing method, remittance processing apparatus, electronic device, and readable storage medium
CN107992521B (en) Method and device for processing service request of user

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination