CN113873450B - Short message configuration method, device, computer equipment and storage medium - Google Patents

Short message configuration method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN113873450B
CN113873450B CN202111091270.4A CN202111091270A CN113873450B CN 113873450 B CN113873450 B CN 113873450B CN 202111091270 A CN202111091270 A CN 202111091270A CN 113873450 B CN113873450 B CN 113873450B
Authority
CN
China
Prior art keywords
short message
sending
template
preset
rule
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.)
Active
Application number
CN202111091270.4A
Other languages
Chinese (zh)
Other versions
CN113873450A (en
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.)
Ping An Pension Insurance Corp
Original Assignee
Ping An Pension Insurance Corp
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 Ping An Pension Insurance Corp filed Critical Ping An Pension Insurance Corp
Priority to CN202111091270.4A priority Critical patent/CN113873450B/en
Publication of CN113873450A publication Critical patent/CN113873450A/en
Application granted granted Critical
Publication of CN113873450B publication Critical patent/CN113873450B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The application relates to a short message configuration method, a short message configuration device, computer equipment and a storage medium. The method comprises the following steps: acquiring a short message service scene; according to the short message use scene, carrying out short message use scene matching in a preset short message template library, wherein the preset short message template library stores preset short message use scenes and preset short message templates suitable for the preset short message use scenes; when the short message service scene is not matched, a short message template suitable for the short message service scene is created, and a short message sending rule corresponding to the short message template is configured; based on the short message template and the short message sending rule, configuring and generating the short message in the short message use scene, and sending the short message. By adopting the method of the embodiment of the application, the development cost can be reduced, the development efficiency can be improved, and the efficiency of short message configuration can be improved.

Description

Short message configuration method, device, computer equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and apparatus for configuring a short message, a computer device, and a storage medium.
Background
Along with development of communication technology and popularization of intelligent terminals, short message service is widely applied to daily life of various users, short message templates and sending rules thereof which are suitable for different use scenes are generally preset in a memory of the intelligent terminal for short message service more quickly, and the users can select the appropriate short message templates and sending rules thereof according to requirements of the use scenes and own requirements so as to reduce the time of short message editing and improve the efficiency of short message sending.
However, when the existing short message template cannot meet the requirement of the use scene or the requirement of the user, a new short message template is needed, and a series of configuration is performed on the sending rule of the new short message template. At present, the configuration of the short message template and the sending rule thereof needs to be subjected to code development, so that the development cost is high, the development efficiency is low, and the short message configuration efficiency is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a short message configuration method, apparatus, computer device, and storage medium that enable efficient short message configuration.
A method for configuring a short message, the method comprising:
acquiring a short message service scene;
according to the short message use scene, short message use scene matching is carried out in a preset short message template library, wherein the preset short message template library stores preset short message use scenes and preset short message templates applicable to the preset short message use scenes;
when the short message service scene is not matched, a short message template suitable for the short message service scene is created, and a short message sending rule corresponding to the short message template is configured;
and configuring and generating the short message in the short message service scene based on the short message template and the short message sending rule, and sending the short message.
In one embodiment, the obtaining a short message usage scenario includes:
responding to the selection information of the short message use scene;
determining the short message service scene based on the selection information;
and/or the number of the groups of groups,
acquiring keywords of a short message service scene;
and identifying the type of each keyword, and determining the short message service scene according to the type.
In one embodiment, the performing the matching of the short message usage scenario in the preset short message template library according to the short message usage scenario includes:
determining the type of the short message service scene according to the short message service scene;
and based on the type of the short message service scene, performing short message service scene matching in the preset short message template library.
In one embodiment, when the short message usage scenario is not matched, creating a short message template applicable to the short message usage scenario includes:
when the short message service scene is not matched, a short message template corresponding to the type of the short message service scene is created according to the type of the short message service scene; the short message template comprises a fixed field and a custom field, wherein the fixed field comprises: and at least one of a deposit field and a time field matched with the short message service scene.
In one embodiment, the short message sending rule includes: at least one of a short message sending type determining rule, a short message content sensitive word filtering rule and a short message receiving terminal checking rule;
the configuring the short message sending rule corresponding to the short message template comprises the following steps:
determining the sending times of the short messages in a preset time period according to the set sending frequency of the short messages, and setting the sending types of the short messages corresponding to the sending times;
and/or the number of the groups of groups,
setting a short message content sensitive word, and filtering the short message content sensitive word when the short message content sensitive word appears in the short message;
and/or the number of the groups of groups,
acquiring state information of a user identification card of a short message receiving terminal, and checking the state of the user identification card of the short message receiving terminal according to the state information.
In one embodiment, the configuring to generate the short message in the short message usage scenario based on the short message template and the short message sending rule includes:
acquiring user-defined information of a user;
converting the custom information into custom field content based on the custom information;
filling the content of the custom field into the custom field of the short message template, and configuring and generating the short message in the short message service scene according to the short message sending rule.
In one embodiment, the sending the short message includes:
and calling a short message sending interface corresponding to the short message template, and sending the short message to an operator server.
A short message configuration device, the device comprising:
the scene acquisition module is used for acquiring a short message service scene;
the scene matching module is used for matching the short message use scenes in a preset short message template library according to the short message use scenes, wherein the preset short message template library is stored with preset short message use scenes and preset short message templates suitable for the preset short message use scenes;
the template configuration module is used for creating a short message template applicable to the short message service scene when the short message service scene is not matched with the short message service scene, and configuring a short message sending rule corresponding to the short message template;
and the short message sending module is used for configuring and generating the short message in the short message use scene based on the short message template and the short message sending rule, and sending the short message.
The computer equipment comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of the short message configuration method when executing the computer program.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the above-described short message configuration method.
The short message configuration method, the short message configuration device, the computer equipment and the storage medium are used for acquiring a short message service scene; according to the short message use scene, carrying out short message use scene matching in a preset short message template library, wherein the preset short message template library stores preset short message use scenes and preset short message templates suitable for the preset short message use scenes; when the short message service scene is not matched, a short message template suitable for the short message service scene is created, and a short message sending rule corresponding to the short message template is configured; based on the short message template and the short message sending rule, configuring and generating the short message in the short message use scene, and sending the short message. By adopting the method of the embodiment, the applicability of the short message template can be improved by creating the short message template suitable for the short message use scene, and the development cost can be reduced and the development efficiency can be improved by configuring the short message sending rule corresponding to the short message template in the background without developing codes, so that the efficiency of short message configuration is improved.
Drawings
FIG. 1 is an application environment diagram of a SMS configuration method in one embodiment;
fig. 2 is a flow chart of a short message configuration method in an embodiment;
FIG. 3 is a schematic diagram of a SMS configuration method in an embodiment;
fig. 4 is a block diagram of a short message configuration device in one embodiment;
FIG. 5 is an internal block diagram of a computer device in one embodiment;
fig. 6 is an internal structural view of a computer device in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
In one embodiment, in the short message configuration method provided in the present application, the application environment may relate to both the terminal 102 and the server 104, as shown in fig. 1. Wherein the terminal 102 communicates with the server 104 through a network, a protocol, or the like. Specifically, the server 104 acquires a short message usage scenario through the terminal 102; the server 104 performs short message use scene matching in a preset short message template library according to the short message use scene, wherein the preset short message template library stores preset short message use scenes and preset short message templates applicable to the preset short message use scenes; when the short message service scene is not matched, a short message template suitable for the short message service scene is created, and a short message sending rule corresponding to the short message template is configured; based on the short message template and the short message sending rule, configuring and generating the short message in the short message use scene, and sending the short message.
In one embodiment, the application environment may only relate to the terminal 102 or the server 104 in the short message configuration method provided in the present application. Specifically, the terminal 102 or the server 104 directly acquires a short message usage scenario; according to the short message use scene, carrying out short message use scene matching in a preset short message template library, wherein the preset short message template library stores preset short message use scenes and preset short message templates suitable for the preset short message use scenes; when the short message service scene is not matched, a short message template suitable for the short message service scene is created, and a short message sending rule corresponding to the short message template is configured; based on the short message template and the short message sending rule, configuring and generating the short message in the short message use scene, and sending the short message.
The terminal 102 refers to a short message sending terminal, and may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, a method for configuring a short message is provided, which is applied to the terminal 102 and/or the server 104 in fig. 1 for illustration, and includes:
step S202, a short message service scene is acquired.
In one embodiment, the short message refers to information directly sent or received by the user through the terminal, the terminal for sending the short message is called a short message sending terminal, and the terminal for receiving the short message is called a short message receiving terminal. The short message can comprise a text short message and a multimedia short message, wherein the text short message can comprise contents such as Chinese, english or numerals, and the multimedia short message can comprise various types of contents such as video, voice, web page, position, picture or text. The short message use scene refers to a use scene where the short message is located, and the short message use scene includes but is not limited to: at least one of a service class, a marketing class, an interactive class, and a blessing class. Specifically, taking a service class short message service scenario as an example, the method mainly comprises the following steps: chat, notification, alert, and verification, etc. In the verification scenario, it includes: user registration, terminal binding, secure login, identity verification, password recovery, payment authentication and the like, and the short message in the verification scene can also be called a verification type short message. The notification scene includes: order notification, logistics notification, system notification, account notification, payment notification, and the like, and the short message in the notification scene can also be called a notification type short message.
In one embodiment, a short message usage scenario is obtained before a short message is generated and sent. The short message use scene can be determined by the user through the direct selection of the terminal, or by acquiring keywords related to the short message use scene, or by combining the keywords with the short message use scene.
Step S204, according to the short message usage scene, the short message usage scene is matched in a preset short message template library, and the preset short message template library stores preset short message usage scenes and preset short message templates applicable to the preset short message usage scenes.
In one embodiment, a preset short message template library is created in advance, and a preset short message usage scene is stored in the preset short message template library. The preset short message template library can be stored in a memory of the short message sending terminal or a server. The preset short message service scene can be a short message service scene set by a user or a public short message service scene. Specifically, the preset short message service scene is set and stored according to the type of the short message service scene, and the type comprises: at least one of service class, marketing class, interaction class and blessing class, more specific types can be set in the above types, and the above types and specific types can be stored by keywords corresponding to the types and specific types, so that the short message service scene can be determined by keyword query later. Wherein, the preset short message template library stores the preset short message templates corresponding to the preset short message use scenes. Specifically, the preset short message template has a unique preset template identifier, the preset template identifier can be a character string formed by combining letters and numbers, and the preset short message template passes through the preset template identifier and a preset short message service field Jing Guanlian. The preset short message template does not comprise special characters, the preset short message template comprises fixed fields and custom fields, and the fixed fields comprise: at least one of a deposit field and a time field matched with a preset short message use scene. The size of the preset short message template does not exceed the preset size. The preset size may be determined according to the size of the operator server, and may be set to 59 characters. Custom fields need to be filled in after corresponding fields are generated according to the content edited by the user.
In one embodiment, if the short message usage scenario is determined by the user directly selecting the short message usage scenario through the terminal, the type of the selected short message usage scenario is directly determined, and if the short message usage scenario is determined by acquiring keywords related to the short message usage scenario, the type of the corresponding short message usage scenario is determined according to the keywords. Specifically, the type of the short message usage scene is determined according to the short message usage scene, and based on the type of the short message usage scene, short message usage scene matching is performed in a preset short message template library to determine whether a short message template suitable for the type of the short message usage scene exists. When the preset short message template library comprises the types of the short message service scenes, the short message template library determines that the short message service scenes are matched, and the corresponding short message templates are directly acquired. When the type of the short message service scene is not included in the preset short message template library, determining that the short message service scene is not matched, and creating a corresponding short message template.
Step S206, when the short message service scene is not matched, a short message template suitable for the short message service scene is created, and a short message sending rule corresponding to the short message template is configured.
In one embodiment, when the short message usage scenario is not matched, a short message template corresponding to the type of the short message usage scenario is created according to the type of the short message usage scenario. The short message template can be directly established in the background of the short message sending terminal or in a server. Specifically, the short message template is similar to a preset short message template. The short message template does not comprise special characters, and comprises a fixed field and a custom field, wherein the fixed field comprises: at least one of a deposit field and a time field matched with the short message service scene, and the custom field is filled after corresponding fields are generated according to the content edited by the user. After the short message template is created, a unique template identification of the short message template is set, and the short message template and a short message service field Jing Guanlian are provided through the template identification. In addition, the display interface of the short message template can be set according to the preference of the user.
In one embodiment, after the short message template is created, a short message sending rule corresponding to the short message template is configured. The short message sending rule can be configured in the background of the short message sending terminal or in a server. The short message sending rule comprises the following steps: at least one of a short message sending type determining rule, a short message content sensitive word filtering rule and a short message receiving terminal checking rule. And when the short message generated by final configuration confirms to meet the short message sending rule, sending the short message.
In one embodiment, the short message sending type is associated with a short message sending frequency, where the short message sending frequency is the sending times of the short message in a preset duration, that is, the sending times correspond to the short message sending type. Specifically, configuring a short message sending type determining rule includes: and determining the sending times of the short messages in the preset time according to the set sending frequency of the short messages, and setting the sending type of the short messages corresponding to the sending times. Wherein the preset time period can be set to 5-10 minutes. For example, the number of times of sending the short message within 10 minutes is set to be 5 times, the 1 st to 3 rd times are set to correspond to one type of sending the short message, the 4 th to 5 th times correspond to one type of sending the short message, and if the number of times exceeds the 5 th time, the sending operation is determined to be frequent, and a period of time needs to be waited. Specifically, when determining the short message sending type, the method can be realized based on remote dictionary service (dis), and the character string values corresponding to parameters such as the template identification, the sending times of the short message template, the short message sending type of the sent short message and the like are stored in the remote dictionary, and the sending times and the corresponding short message sending type are determined according to the stored character string values.
In one embodiment, the text message content sensitive words may be sensitive words set by the user or recognized sensitive words. Specifically, configuring a text message content sensitive word filtering rule includes: setting a short message content sensitive word, and filtering the short message content sensitive word when the short message content sensitive word appears in the short message. The method for identifying the sensitive words of the short message content can be based on a finite automaton (DFA) algorithm for matching the sensitive words, so that the filtering of the sensitive words of the short message content is realized.
In one embodiment, the short message receiving terminal is a terminal for receiving a short message, which may be a user terminal or a server. When the short message receiving terminal is a user terminal, the user terminal can be a mobile phone, and the user terminal comprises a user identification card. Specifically, configuring a short message receiving terminal inspection rule includes: acquiring state information of a user identification card of the short message receiving terminal, and checking the state of the user identification card of the short message receiving terminal according to the state information. The method comprises the steps of sending state query information to an operator server of a user identification card of a short message receiving terminal through an Application Program Interface (API), receiving state information of the user identification card of the short message receiving terminal, and determining that the short message receiving terminal passes inspection when the user identification card is in a normal state according to the state information of the user identification card. In addition, the preset terminal identifier of the preset short message receiving terminal with the normal user identification card can be stored in advance, whether the user identification card of the short message receiving terminal is in a normal state is determined according to the terminal identifier of the short message receiving terminal, and when the user identification card is in the normal state, the short message receiving terminal is determined to pass the test. And after the short message receiving terminal passes the inspection, sending the short message to the short message receiving terminal. The normal state refers to that the short message receiving terminal is not in a shutdown, shutdown or idle state.
Step S208, configuring and generating the short message in the short message service scene based on the short message template and the short message sending rule, and sending the short message.
In one embodiment, after the short message template is created, the short message template can be positioned by the short message template identifier, the short message in the short message use scene is configured and generated based on the short message template and the short message sending rule, and the short message accords with the short message sending rule. And when the short message sending rule corresponding to the short message template is configured, a short message sending interface corresponding to the short message template is also configured, and the short message is sent to the operator server by calling the short message sending interface corresponding to the short message template, so that the operator server sends the short message to the short message receiving terminal.
In one embodiment, after configuring and generating the short message in the short message service scene based on the short message template and the short message sending rule and sending the short message, the method further includes: and storing the short message service scene and the short message template in a preset short message template library so as to facilitate subsequent calling.
In the short message configuration method, a short message service scene is acquired; according to the short message use scene, carrying out short message use scene matching in a preset short message template library, wherein the preset short message template library stores preset short message use scenes and preset short message templates suitable for the preset short message use scenes; when the short message service scene is not matched, a short message template suitable for the short message service scene is created, and a short message sending rule corresponding to the short message template is configured; based on the short message template and the short message sending rule, configuring and generating the short message in the short message use scene, and sending the short message. By adopting the method of the embodiment, the applicability of the short message template can be improved by creating the short message template suitable for the short message use scene, and the development cost can be reduced and the development efficiency can be improved by configuring the short message sending rule corresponding to the short message template in the background without developing codes, so that the efficiency of short message configuration is improved.
In one embodiment, step S202 obtains a short message usage scenario, including:
step S302, responding to the selection information of the short message service scene.
In one embodiment, a user may select a short message usage scenario to generate selection information. Specifically, selection information for a short message usage scenario is responded.
Step S304, determining a short message service scene based on the selection information.
In one embodiment, the short message usage scenario is determined based on the selection information of the user for the short message usage scenario, so as to determine the type of the short message usage scenario.
In one embodiment, step S202 obtains a short message usage scenario, including:
step S402, each keyword of the short message service scene is acquired.
In one embodiment, the usage scenario of the short message may also be determined according to related keywords. Specifically, each keyword of the short message usage scene is acquired. Wherein the keywords may be entered by a user.
Step S404, the types of the keywords are identified, and the short message use scene is determined according to the types.
In one embodiment, semantic analysis is performed on each keyword, the type of each keyword is identified, and a short message usage scenario corresponding to the type is determined according to the identified type.
In one embodiment, step S208 configures a short message in a short message service scenario to be generated based on a short message template and a short message sending rule, including:
step S502, user-defined information of a user is obtained.
In one embodiment, the short message template includes a fixed field and a custom field, and when the short message is configured and generated, the content of the short message needs to be perfected according to the information edited by the user. Specifically, user-defined information of the user is obtained. The type of the user-defined information may be information such as a picture, text, or voice, which is not limited herein.
Step S504, based on the custom information, the custom information is converted into custom field content.
In one embodiment, the custom information is converted into custom field content in the SMS template. And determining a corresponding information conversion mode according to the type of the custom information, and converting the custom information into custom field content according to the information conversion mode.
Step S506, filling the self-defined field content into the self-defined field of the short message template, and configuring and generating the short message in the short message service scene according to the short message sending rule.
In one embodiment, the content of the custom field is filled into the custom field of the short message template, and the short message in the short message service scene is configured and generated according to the short message sending rule. Specifically, the regular expression can be adopted to fill the content of the custom field into the custom field of the short message template, and the short message is checked for the short message sending rule, so that the short message generated by configuration accords with the short message sending rule.
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
In a specific embodiment, as shown in fig. 3, which is a schematic diagram of a short message configuration method, the short message sending terminal and an operator server are related, and services included in a background of the short message sending terminal are as follows: the developer options, the short message service, the short message template service and the short message rule service, and the short message configuration method comprises the following specific steps:
s1, a user prepares to call a short message service to send a short message through a short message sending terminal, wherein the user can input or select each keyword related to a short message service scene through a display interface of the short message sending terminal, and the short message sending terminal acquires each keyword of the short message service scene and identifies and determines the short message service scene according to each keyword;
s2, the short message sending terminal performs short message use scene matching in a preset short message template library according to the short message use scene, wherein the preset short message template library is stored in the memory of the short message sending terminal, the preset short message template library is stored with the preset short message use scene and the preset short message template suitable for the preset short message use scene, the preset short message use scene is set and stored according to the type of the short message use scene and keywords corresponding to the type of the short message use scene, and the preset short message template is identified with the preset short message use field Jing Guanlian through the preset template;
when the short message service scene is not matched, a short message template corresponding to the type of the short message service scene is created according to the short message service scene, the short message template comprises a fixed field and a custom field, and a short message template identifier is set; the configuration of the short message sending rule corresponding to the short message template specifically comprises the following steps: short message sending type determining rules based on Redis, short message content sensitive word filtering rules based on DFA algorithm, and short message receiving terminal detecting rules based on API interface;
s3, after the short message template is created, the short message sending terminal locates to the short message template through the short message template identification, and the user-defined field content of the user is filled into the user-defined field of the short message template by adopting the regular expression, so as to configure and generate a short message;
s4, the short message sending terminal determines a short message sending rule corresponding to the short message template;
s5, the short message sending terminal checks the short message sending rule to determine that the configured short message accords with the short message sending rule;
s6, the short message sending terminal calls a short message sending interface to send the short message to the operator server, so that the operator server sends the short message to the short message receiving terminal, and the short message service scene and the created short message template are stored in a preset short message template library.
It should be understood that, although the steps in the flowcharts described above are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the figures described above may include steps or stages that are not necessarily performed at the same time, but may be performed at different times, and the order in which the steps or stages are performed is not necessarily sequential, but may be performed in rotation or alternatively with at least some of the other steps or stages.
In one embodiment, as shown in fig. 4, there is provided a short message configuration apparatus, including: a scene acquisition module 410, a scene matching module 420, a template configuration module 430 and a short message sending module 440, wherein:
the scene acquisition module 410 is configured to acquire a short message usage scene.
The scene matching module 420 performs the matching of the short message usage scene in a preset short message template library according to the short message usage scene, where the preset short message template library stores preset short message usage scenes and preset short message templates applicable to the preset short message usage scenes.
And the template configuration module 430 is configured to create a short message template applicable to the short message usage scenario and configure a short message sending rule corresponding to the short message template when the short message usage scenario is not matched.
And the short message sending module 440 is configured to generate a short message in the short message usage scenario based on the short message template and the short message sending rule, and send the short message.
In one embodiment, the scene acquisition module 410 includes the following elements:
and the selection information acquisition unit is used for responding to the selection information of the short message service scene.
And the first scene determining unit is used for determining the short message service scene based on the selection information.
And the keyword acquisition unit is used for acquiring each keyword of the short message service scene.
And the second scene determining unit is used for identifying the type of each keyword and determining the short message service scene according to the type.
In one embodiment, the scene matching module 420 includes the following elements:
the type determining unit is used for determining the type of the short message service scene according to the short message service scene;
and the type matching unit is used for matching the short message use scenes in the preset short message template library based on the types of the short message use scenes.
In one embodiment, the template configuration module 430 includes the following elements:
the template creation unit is used for creating a short message template corresponding to the type of the short message service scene according to the type of the short message service scene when the short message service scene is not matched; the short message template comprises a fixed field and a custom field, wherein the fixed field comprises: and at least one of a deposit field and a time field matched with the short message service scene.
The rule determining unit is configured to determine the short message sending rule, including: at least one of a short message sending type determining rule, a short message content sensitive word filtering rule and a short message receiving terminal checking rule.
And the short message sending type setting unit is used for determining the sending times of the short message in a preset duration according to the set short message sending frequency and setting the short message sending type corresponding to the sending times.
The short message content sensitive word filtering unit is used for setting short message content sensitive words, and filtering the short message content sensitive words when the short message content sensitive words appear in the short message.
And the short message receiving terminal checking unit is used for acquiring the state information of the user identification card of the short message receiving terminal and checking the state of the user identification card of the short message receiving terminal according to the state information.
In one embodiment, the sms sending module 440 includes the following units:
the user-defined information acquisition unit is used for acquiring user-defined information of the user.
And the field content conversion unit is used for converting the custom information into custom field content based on the custom information.
And the configuration generating unit is used for filling the custom field content into the custom field of the short message template, and configuring and generating the short message in the short message service scene according to the short message sending rule.
And the short message sending unit is used for calling a short message sending interface corresponding to the short message template and sending the short message to an operator server.
For specific limitations of the short message configuration device, reference may be made to the above limitation of the short message configuration method, and no further description is given here. All or part of the modules in the short message configuration device can be realized by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing the short message configuration data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method of short message configuration.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program, when executed by a processor, implements a method of short message configuration. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structures shown in fig. 5 and 6 are block diagrams of only portions of structures that are relevant to the present application and are not intended to limit the computer device on which the present application may be implemented, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, including a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the short message configuration method described above when the processor executes the computer program.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the steps of the sms configuration method described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. A method for configuring a short message, the method comprising:
acquiring a short message service scene;
according to the short message use scene, short message use scene matching is carried out in a preset short message template library, wherein the preset short message template library stores preset short message use scenes and preset short message templates applicable to the preset short message use scenes;
when the short message service scene is not matched, a short message template suitable for the short message service scene is created, a short message sending rule corresponding to the short message template is configured, the short message template comprises a custom field, the short message sending rule comprises a short message content sensitive word filtering rule, a short message receiving terminal checking rule and a short message sending type determining rule, the short message content sensitive word filtering rule comprises filtering the short message content sensitive word when the set short message content sensitive word appears in the short message, the short message receiving terminal checking rule comprises acquiring state information of a user identification card of the short message receiving terminal, checking the state of the user identification card of the short message receiving terminal according to the state information, when the user identification card is determined to be in a normal state according to the state information of the user identification card, determining that the short message receiving terminal is checked to pass, the short message sending type determining rule comprises determining the sending times of the short message in a preset duration according to a set short message sending frequency, and setting the short message sending type corresponding to the sending times;
acquiring user-defined information of a user;
converting the custom information into custom field content based on the custom information;
filling the content of the custom field into the custom field of the short message template, and configuring to generate a short message;
checking the short message sending rule of the short message generated by configuration to determine that the short message generated by configuration accords with the short message sending rule;
and when the short message generated by configuration accords with the short message sending rule, sending the short message generated by configuration according to the short message sending type determined by the short message sending type determining rule.
2. The method for configuring a sms message according to claim 1, wherein the obtaining a sms message usage scenario includes:
responding to the selection information of the short message use scene;
determining the short message service scene based on the selection information;
and/or the number of the groups of groups,
acquiring keywords of a short message service scene;
and identifying the type of each keyword, and determining the short message service scene according to the type.
3. The method for configuring short messages according to claim 2, wherein said performing short message usage scenario matching in a preset short message template library according to the short message usage scenario comprises:
determining the type of the short message service scene according to the short message service scene;
and based on the type of the short message service scene, performing short message service scene matching in the preset short message template library.
4. The method for configuring a short message according to claim 1, wherein when the short message usage scenario is not matched, creating a short message template applicable to the short message usage scenario comprises:
when the short message service scene is not matched, a short message template corresponding to the type of the short message service scene is created according to the type of the short message service scene; the short message template comprises fixed fields, wherein the fixed fields comprise: and at least one of a deposit field and a time field matched with the short message service scene.
5. The method for configuring a sms message according to claim 1, wherein said sending the sms message comprises:
and calling a short message sending interface corresponding to the short message template, and sending the short message to an operator server.
6. A short message configuring apparatus, characterized in that the apparatus comprises:
the scene acquisition module is used for acquiring a short message service scene;
the scene matching module is used for matching the short message use scenes in a preset short message template library according to the short message use scenes, wherein the preset short message template library is stored with preset short message use scenes and preset short message templates suitable for the preset short message use scenes;
the template configuration module is used for creating a short message template suitable for the short message service scene when the short message service scene is not matched, configuring a short message sending rule corresponding to the short message template, wherein the short message template comprises a self-defined field, the short message sending rule comprises a short message content sensitive word filtering rule, a short message receiving terminal checking rule and a short message sending type determining rule, the short message content sensitive word filtering rule comprises filtering the short message content sensitive word when the set short message content sensitive word appears in the short message, the short message receiving terminal checking rule comprises the steps of acquiring the state information of a user identification card of the short message receiving terminal, checking the state of the user identification card of the short message receiving terminal according to the state information, determining that the short message receiving terminal passes the check when the user identification card is in a normal state according to the state information of the user identification card, and the short message sending type determining rule comprises the sending times of the short message in a preset duration according to the set short message sending frequency and setting the short message sending type corresponding to the sending times;
the short message sending module is used for acquiring user-defined information of a user, converting the user-defined information into user-defined field content based on the user-defined information, filling the user-defined field content into the user-defined field of the short message template, configuring and generating a short message, checking the short message sending rule of the configured and generated short message to determine that the configured and generated short message accords with the short message sending rule, and sending the configured and generated short message according to the short message sending type determined by the short message sending type determining rule when the configured and generated short message accords with the short message sending rule.
7. The sms configuration device of claim 6, wherein the template configuration module comprises the following elements:
the template creation unit is used for creating a short message template corresponding to the type of the short message service scene according to the type of the short message service scene when the short message service scene is not matched; the short message template comprises fixed fields, wherein the fixed fields comprise: and at least one of a deposit field and a time field matched with the short message service scene.
8. The short message configuration device according to claim 6, wherein the short message sending module comprises:
and the short message sending unit is used for calling a short message sending interface corresponding to the short message template and sending the short message to an operator server.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the short message configuration method of any one of claims 1 to 5.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the short message configuration method of any one of claims 1 to 5.
CN202111091270.4A 2021-09-17 2021-09-17 Short message configuration method, device, computer equipment and storage medium Active CN113873450B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111091270.4A CN113873450B (en) 2021-09-17 2021-09-17 Short message configuration method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111091270.4A CN113873450B (en) 2021-09-17 2021-09-17 Short message configuration method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113873450A CN113873450A (en) 2021-12-31
CN113873450B true CN113873450B (en) 2023-05-12

Family

ID=78996457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111091270.4A Active CN113873450B (en) 2021-09-17 2021-09-17 Short message configuration method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113873450B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115103321B (en) * 2022-06-25 2023-05-16 平安银行股份有限公司 Short message sending method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902710A (en) * 2010-08-02 2010-12-01 福州星网视易信息系统有限公司 GSM Modem-based short message sending system
CN111953579A (en) * 2020-07-15 2020-11-17 广州市玄武无线科技股份有限公司 Message generation method, system, terminal and storage medium
CN112822647A (en) * 2020-12-30 2021-05-18 平安普惠企业管理有限公司 Short message sending method, device, storage medium and computer equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106533920A (en) * 2016-12-02 2017-03-22 北京红马传媒文化发展有限公司 Customized short message sending system
CN106488419A (en) * 2016-12-12 2017-03-08 惠州Tcl移动通信有限公司 A kind of sending short messages in groups method and system based on intelligent terminal
CN109962949A (en) * 2017-12-22 2019-07-02 武汉楚鼎信息技术有限公司 A kind of delivery method and terminal of short message
CN112492535B (en) * 2020-12-17 2023-03-31 平安普惠企业管理有限公司 Short message sending method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902710A (en) * 2010-08-02 2010-12-01 福州星网视易信息系统有限公司 GSM Modem-based short message sending system
CN111953579A (en) * 2020-07-15 2020-11-17 广州市玄武无线科技股份有限公司 Message generation method, system, terminal and storage medium
CN112822647A (en) * 2020-12-30 2021-05-18 平安普惠企业管理有限公司 Short message sending method, device, storage medium and computer equipment

Also Published As

Publication number Publication date
CN113873450A (en) 2021-12-31

Similar Documents

Publication Publication Date Title
CN104618315B (en) A kind of method, apparatus and system of verification information push and Information Authentication
CN104935744A (en) Verification code display method, verification code display device and mobile terminal
CN102783121A (en) Communications device
CN107086984A (en) A kind of method, terminal and server for obtaining and generating identifying code
US10461934B2 (en) Authentication-based message display method and communication terminal thereof
US10997384B2 (en) Service process starting method and apparatus
CN104346560A (en) Security authentication method and security authentication device
CN105357204A (en) Method and apparatus for generating terminal identifying information
CN106465076A (en) Control method and terminal for short message reading
CN113873450B (en) Short message configuration method, device, computer equipment and storage medium
CN114385382A (en) Light application access method and device, computer equipment and storage medium
KR101328118B1 (en) Method for providing log in service based on passdata
CN113946739A (en) Sensitive data query method, device, equipment and storage medium
CN116304403A (en) Webpage access method and device, computer equipment and storage medium
CN116112457A (en) Method, device, computer equipment and storage medium for notifying message
CN115795544A (en) File security attribute storage method and related device
CN113114623B (en) Data connection method, device, terminal equipment and computer readable storage medium
CN109543398B (en) Application program account migration method and device and electronic equipment
CN111556482B (en) Virtual SIM card switching method and device, storage medium and terminal
CN114339628A (en) Method, device, storage medium and product for sending 5G rich media message
CN112395138A (en) Method and device for checking parameters
CN114386010A (en) Application login method and device, electronic equipment and storage medium
CN107222559B (en) Information calling method
CN104063659A (en) Network connection safety improvement method and electronic equipment
KR102261789B1 (en) Smishing message monitoring method and smishing level determination method

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
GR01 Patent grant
GR01 Patent grant