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

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

Info

Publication number
CN113873450A
CN113873450A CN202111091270.4A CN202111091270A CN113873450A CN 113873450 A CN113873450 A CN 113873450A CN 202111091270 A CN202111091270 A CN 202111091270A CN 113873450 A CN113873450 A CN 113873450A
Authority
CN
China
Prior art keywords
short message
scene
template
sending
preset
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.)
Granted
Application number
CN202111091270.4A
Other languages
Chinese (zh)
Other versions
CN113873450B (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

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 use scene; according to the short message use scene, matching the short message use scene in a preset short message template library, wherein the preset short message template library stores the preset short message use scene and a preset short message template applicable to the preset short message use scene; when the short message using scene is not matched, a short message template suitable for the short message using 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 using scene based on the short message template and the short message sending rule, 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 short message configuration efficiency can be improved.

Description

Short message configuration method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a short message configuration method and apparatus, a computer device, and a storage medium.
Background
With the development of communication technology and the popularization of intelligent terminals, short message service is widely applied to daily lives of various users, in order to make short message service faster, short message templates and sending rules thereof which are suitable for different use scenes are generally preset in a memory of the intelligent terminal, and the user can select a proper short message template and sending rules thereof according to the requirements of the use scenes and the self requirements, so that the time for editing short messages is shortened, and the efficiency of sending short messages is improved.
However, when the existing short message template cannot meet the requirements of the use scenario or the requirements of the user, a new short message template needs to be created, and a series of configurations are performed on the sending rules of the new short message template. At present, code development is required to be carried out on the configuration of the short message template and the sending rule thereof, 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 necessary to provide a short message configuration method, an apparatus, a computer device and a storage medium capable of improving efficiency of short message configuration.
A short message configuration method, the method comprising:
acquiring a short message use scene;
according to the short message use scene, matching the short message use scene in a preset short message template library, wherein the preset short message template library stores the preset short message use scene and a preset short message template applicable to the preset short message use scene;
when the short message using scene is not matched, a short message template suitable for the short message using 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 using scene based on the short message template and the short message sending rule, and sending the short message.
In one embodiment, the obtaining of the short message service scenario includes:
responding to the selection information aiming at the short message use scene;
determining the short message using scene based on the selection information;
and/or the presence of a gas in the gas,
acquiring each keyword of a short message use scene;
and identifying the type of each keyword, and determining the short message using scene according to the type.
In one embodiment, the matching the short message usage scenario in a preset short message template library according to the short message usage scenario includes:
determining the type of the short message using scene according to the short message using scene;
and matching the short message using scene in the preset short message template library based on the type of the short message using scene.
In one embodiment, the creating a short message template applicable to the short message usage scenario when the short message usage scenario is not matched includes:
when the short message using scene is not matched, a short message template corresponding to the type of the short message using scene is created according to the type of the short message using scene; the short message template comprises a fixed field and a user-defined field, wherein the fixed field comprises: and at least one of a drop field and a time field matched with the short message using 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 of the short message sending rule corresponding to the short message template comprises:
determining the sending times of the short messages within a preset time length according to a set short message sending frequency, and setting a short message sending type corresponding to the sending times;
and/or the presence of a gas in the gas,
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/or the presence of a gas in the gas,
acquiring the 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 and generating 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;
and 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 using 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 use scene;
the scene matching module is used for matching the short message using scene in a preset short message template library according to the short message using scene, wherein the preset short message template library stores the preset short message using scene and a preset short message template applicable to the preset short message using scene;
the template configuration module is used for creating a short message template suitable for the short message use scene when the short message use scene is not matched, 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 using scene based on the short message template and the short message sending rule and sending the short message.
A computer device 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, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the above-mentioned short message configuration method.
According to the short message configuration method, the short message configuration device, the computer equipment and the storage medium, the short message use scene is obtained; according to the short message use scene, matching the short message use scene in a preset short message template library, wherein the preset short message template library stores the preset short message use scene and a preset short message template applicable to the preset short message use scene; when the short message using scene is not matched, a short message template suitable for the short message using 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 using scene based on the short message template and the short message sending rule, 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 short message sending rule corresponding to the short message template is configured at the background, so that code development is not needed, the development cost can be reduced, the development efficiency is improved, and the short message configuration efficiency is improved.
Drawings
FIG. 1 is a diagram of an exemplary embodiment of an application environment for a short message configuration method;
FIG. 2 is a flow chart illustrating a short message configuration method according to an embodiment;
FIG. 3 is a diagram illustrating a short message configuration method according to an embodiment;
FIG. 4 is a block diagram of an embodiment of a short message configuration device;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an 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 is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, the short message configuration method provided by the present application, the application environment may relate to both the terminal 102 and the server 104, as shown in fig. 1. The terminal 102 communicates with the server 104 through a network, a protocol, or the like. Specifically, the server 104 obtains a short message service scene 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 the preset short message use scene and a preset short message template applicable to the preset short message use scene; when the short message using scene is not matched, a short message template suitable for the short message using 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 using scene based on the short message template and the short message sending rule, and sending the short message.
In one embodiment, the application environment of the short message configuration method provided by the present application may only relate to the terminal 102 or the server 104. Specifically, the terminal 102 or the server 104 directly obtains a short message usage scenario; according to the short message use scene, matching the short message use scene in a preset short message template library, wherein the preset short message template library stores the preset short message use scene and a preset short message template applicable to the preset short message use scene; when the short message using scene is not matched, a short message template suitable for the short message using 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 using scene based on the short message template and the short message sending rule, and sending the short message.
The terminal 102 is 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 short message configuration method is provided, which is described by taking the application of the method to the terminal 102 and/or the server 104 in fig. 1 as an example, and includes:
step S202, obtaining a short message service scene.
In one embodiment, the short message refers to information directly transmitted or received by a user through a terminal, the terminal for transmitting the short message is referred to as a short message transmitting terminal, and the terminal for receiving the short message is referred to as 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 numbers, and the multimedia short message can comprise various types of contents such as video, voice, webpage, position, picture or text. The short message service scene refers to a service scene where the short message is located, and the short message service scene includes but is not limited to: at least one of a service class, a marketing class, an interaction class, and a blessing class. Specifically, taking a service-type short message service scenario as an example, the method mainly includes: chat, notification, reminder, and verification scenarios. 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 short message. In the notification scenario, include: order notification, logistics notification, system notification, account notification, payment notification, and the like, and the short message in the notification scene may also be referred to as a notification-type short message.
In one embodiment, the short message usage scenario is obtained before generating and sending the short message. The short message using scene can be determined by the user through direct selection of the terminal, can also be determined by acquiring keywords related to the short message using scene, or can be determined by combining the keywords and the short message using scene.
Step S204, according to the short message use scene, matching the short message use scene in a preset short message template library, wherein the preset short message template library stores the preset short message use scene and a preset short message template applicable to the preset short message use scene.
In one embodiment, a preset short message template library is created in advance, and a preset short message use 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 and can also be stored in the server. The preset short message use scene can be a short message use scene set by a user or an open short message use scene. Specifically, the preset short message use scene is set and stored according to the type of the short message use scene, and the type includes: and the service type, the marketing type, the interaction type and the blessing type can be set into more specific types, and the types and the specific types can be stored through corresponding keywords so as to determine the short message use scene through keyword query in the following. And the preset short message template corresponding to the preset short message use scene is stored in the preset short message template storage. Specifically, the preset short message template has a unique preset template identifier, the preset template identifier may be a character string formed by combining letters and numbers, and the preset short message template is associated with a preset short message use scene through the preset template identifier. The preset short message template does not comprise special characters, and comprises a fixed field and a user-defined field, wherein the fixed field comprises: and at least one of a drop 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 scale of the operator server, and may be set to 59 characters. The custom field needs to be filled in after generating a corresponding field according to the content edited by the user.
In one embodiment, if the short message use scene is the short message use scene which is directly selected by the user through the terminal for determination, the type of the selected short message use scene is directly determined, and if the short message use scene is the short message use scene which is determined by acquiring the keywords related to the short message use scene, the type of the corresponding short message use scene is determined according to the keywords. Specifically, the type of the short message use scene is determined according to the short message use scene, and short message use scene matching is performed in a preset short message template library based on the type of the short message use scene to determine whether a short message template suitable for the type of the short message use scene exists. When the preset short message template library comprises the type of the short message use scene, the short message use scene is determined to be matched, and the corresponding short message template is directly obtained. And when the type of the short message using scene is not included in the preset short message template library, determining that the short message using scene is not matched, and creating a corresponding short message template.
And step S206, when the short message using scene is not matched, creating a short message template suitable for the short message using scene, and configuring a short message sending rule corresponding to the short message template.
In one embodiment, when the short message using scene is not matched, a short message template corresponding to the type of the short message using scene is created according to the type of the short message using scene. The short message template can be directly created in the background of the short message sending terminal or created in the 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 user-defined field, wherein the fixed field comprises: and at least one of a drop field and a time field matched with the short message using scene, wherein the custom field needs to be filled after generating a corresponding field according to the content edited by the user. After the short message template is created, the only template identification of the short message template is set, and the short message template is associated with the short message using scene 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, the 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 the 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 sending the short message when the short message generated by final configuration is determined to accord with the short message sending rule.
In one embodiment, the short message sending type is associated with a short message sending frequency, and the short message sending frequency is the sending times of the short message within a preset duration, that is, the sending times corresponds 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 within the preset duration according to the set short message sending frequency, and setting the short message sending type corresponding to the sending times. Wherein the preset time period may be set to 5-10 minutes. For example, the number of short message sending times in 10 minutes is set to 5, the 1 st to 3 th times correspond to one short message sending type, the 4 th to 5 th times correspond to one short message sending type, and if the number exceeds the 5 th time, the sending operation is determined to be frequent, and a period of time needs to be waited. Specifically, when the short message sending type is determined, the short message sending type may be implemented based on a remote dictionary service (Redis), and the character string numerical values corresponding to parameters such as the template identifier of the short message template, the sending times, the short message sending type of the sent short message, and the like are stored in the remote dictionary, the sending times are determined according to the stored character string numerical values, and the corresponding short message sending type is determined.
In one embodiment, the short message content sensitive word may be a sensitive word set by a user or a recognized sensitive word. Specifically, configuring a filtering rule for short message content sensitive words includes: and 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. The method for identifying the short message content sensitive words can be used for matching the sensitive words based on a Deterministic Finite Automata (DFA) algorithm to realize the filtering of the short message content sensitive words.
In one embodiment, the short message receiving terminal is a terminal for receiving a short message, and 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 the short message receiving terminal check rule includes: and 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. The method comprises the steps of sending state inquiry 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 the inspection when the user identification card is determined to be in a normal state according to the state information of the user identification card. In addition, the method can also pre-store the preset terminal identification of the preset short message receiving terminal with the normal user identification card, determine whether the user identification card of the short message receiving terminal is in the normal state or not according to the terminal identification of the short message receiving terminal, and determine that the short message receiving terminal passes the inspection when the user identification card is in the normal state. 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 state, a power-off state or a blank number state.
And S208, configuring and generating the short message in the short message using 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 located through the short message template identifier, the short message in the short message using 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. 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 usage scenario 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 for subsequent calling.
In the short message configuration method, the short message use scene is acquired; according to the short message use scene, matching the short message use scene in a preset short message template library, wherein the preset short message template library stores the preset short message use scene and a preset short message template applicable to the preset short message use scene; when the short message using scene is not matched, a short message template suitable for the short message using 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 using scene based on the short message template and the short message sending rule, 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 short message sending rule corresponding to the short message template is configured at the background, so that code development is not needed, the development cost can be reduced, the development efficiency is improved, and the short message configuration efficiency is improved.
In one embodiment, the step S202 of obtaining a short message service scenario includes:
step S302, responding to the selection information of the short message use scene.
In one embodiment, the user can select the short message using scene to generate the selection information. Specifically, in response to the selection information for the short message usage scenario.
And step S304, determining a short message using scene based on the selection information.
In one embodiment, the short message use scene is determined based on the selection information of the user for the short message use scene, and then the type of the short message use scene is determined.
In one embodiment, the step S202 of obtaining a short message service scenario includes:
step S402, obtaining each keyword of the short message using scene.
In one embodiment, the short message usage scenario may also be determined according to related keywords. Specifically, each keyword of a short message use scene is acquired. Wherein the keywords may be input by the user.
And S404, identifying the type of each keyword, and determining a short message using scene according to the type.
In one embodiment, semantic analysis is performed on each keyword, the type of each keyword is identified, and a short message use scene corresponding to the type is determined according to the identified type.
In one embodiment, step S208 configures and generates the short message in the short message usage scenario based on the short message template and the short message sending rule, including:
step S502, obtaining user-defined information of a user.
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, custom information of the user is acquired. The type of the user-defined information may be information such as pictures, words, or voice, and is not limited herein.
Step S504, based on the custom information, converting the custom information into custom field content.
In one embodiment, the custom information is converted into custom field content in the short message template. And determining a corresponding information conversion mode according to the type of the custom information, and converting the custom information into custom field contents according to the information conversion mode.
Step S506, the self-defined field content is filled into the self-defined field of the short message template, and the short message in the short message using scene is configured and generated according to the short message sending rule.
In one embodiment, the self-defined field content is filled in the self-defined field of the short message template, and the short message in the short message using scene is configured and generated according to the short message sending rule. Specifically, the regular expression may be adopted to fill the self-defined field content into the self-defined field of the short message template, and check the short message sending rule, so that the configured and generated short message conforms to the short message sending rule.
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In a specific embodiment, as shown in fig. 3, a schematic diagram of a short message configuration method is shown, which relates to a short message sending terminal and an operator server, and services included in a background of the short message sending terminal include: developer options, short message service, short message template service and short message rule service, wherein the short message configuration method comprises the following specific steps:
s1, the user prepares to call the short message service to send the short message through the short message sending terminal, wherein, the user can input or select each keyword related to the short message using scene through the display interface of the short message sending terminal, the short message sending terminal obtains each keyword of the short message using scene, and the short message using scene is identified and determined according to each keyword;
s2, the short message sending terminal matches the short message using scene in a preset short message template library according to the short message using 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 stores the preset short message using scene and a preset short message template suitable for the preset short message using scene, the preset short message using scene is set and stored according to the type of the short message using scene and the keyword corresponding to the type of the short message using scene, and the preset short message template is associated with the preset short message using scene through a preset template mark;
when the short message using scene is not matched, a short message template corresponding to the type of the short message using scene is created according to the short message using scene, the short message template comprises a fixed field and a self-defined field, and a short message template identifier is set; configuring a short message sending rule corresponding to the short message template, which specifically comprises the following steps: the method comprises the steps of determining a rule based on a short message sending type realized by Redis, filtering a rule based on a short message content sensitive word realized by a DFA algorithm, and detecting a rule based on an API (application program interface) interface;
s3, after the short message sending terminal creates the short message template, the short message sending terminal locates the short message template through the short message template mark, and the regular expression is adopted to fill the user-defined field content of the user into the user-defined field of the short message template, and the short message is configured and generated;
s4, the short message sending terminal determines the short message sending rule corresponding to the short message template;
s5, the short message sending terminal checks the short message sending rule to confirm that the short message generated by configuration accords with the short message sending rule;
and S6, the short message sending terminal calls the 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 stores the short message using scene and the created short message template in a preset short message template library.
It should be understood that, although the steps in the flowcharts shown above are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in the above-mentioned figures may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the other steps or stages.
In one embodiment, as shown in fig. 4, a short message configuration apparatus is provided, which includes: the system comprises 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 obtaining module 410 is configured to obtain a short message usage scene.
And the scene matching module 420 is used for matching the short message use scene in a preset short message template library according to the short message use scene, wherein the preset short message template library stores the preset short message use scene and a preset short message template applicable to the preset short message use scene.
The template configuration module 430 is configured to create a short message template suitable for the short message usage scenario when the short message usage scenario is not matched, and configure a short message sending rule corresponding to the short message template.
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 capture module 410 includes the following elements:
and the selection information acquisition unit is used for responding to the selection information aiming at the short message use scene.
And the scene first determining unit is used for determining the short message using scene based on the selection information.
And the keyword acquisition unit is used for acquiring each keyword of the short message use scene.
And the scene second determining unit is used for identifying the type of each keyword and determining the short message using 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 using scene according to the short message using scene;
and the type matching unit is used for matching the short message using scene in the preset short message template base based on the type of the short message using scene.
In one embodiment, the template configuration module 430 includes the following elements:
the template creating unit is used for creating a short message template corresponding to the type of the short message using scene according to the type of the short message using scene when the short message using scene is not matched; the short message template comprises a fixed field and a user-defined field, wherein the fixed field comprises: and at least one of a drop field and a time field matched with the short message using scene.
A rule determining unit, configured to determine that 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.
And the short message sending type setting unit is used for determining the sending times of the short messages in the preset duration according to the set short message sending frequency and setting the short message sending type corresponding to the sending times.
And 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 short message sending module 440 includes the following units:
and the custom information acquisition unit is used for acquiring the custom 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 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 using 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 the operator server.
For the specific limitation of the short message configuration device, reference may be made to the above limitation on the short message configuration method, which is not described herein again. All modules in the short message configuration device can be completely or partially realized through software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram 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 comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used for storing 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 is executed by a processor to implement a short message configuration method.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram 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 comprises a nonvolatile 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 an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a short message configuration method. 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, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the configurations shown in fig. 5 and 6 are merely block diagrams of some configurations relevant to the present disclosure, and do not constitute a limitation on the computing devices to which the present disclosure may be applied, and that a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the short message configuration method when executing the computer program.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the short message configuration method described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A short message configuration method, the method comprising:
acquiring a short message use scene;
according to the short message use scene, matching the short message use scene in a preset short message template library, wherein the preset short message template library stores the preset short message use scene and a preset short message template applicable to the preset short message use scene;
when the short message using scene is not matched, a short message template suitable for the short message using 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 using scene based on the short message template and the short message sending rule, and sending the short message.
2. The short message configuration method of claim 1, wherein the obtaining of the short message usage scenario comprises:
responding to the selection information aiming at the short message use scene;
determining the short message using scene based on the selection information;
and/or the presence of a gas in the gas,
acquiring each keyword of a short message use scene;
and identifying the type of each keyword, and determining the short message using scene according to the type.
3. The short message configuration method according to claim 2, wherein the matching of the short message usage scenario in a preset short message template library according to the short message usage scenario comprises:
determining the type of the short message using scene according to the short message using scene;
and matching the short message using scene in the preset short message template library based on the type of the short message using scene.
4. The short message configuration method according to claim 1, wherein the creating a short message template applicable to the short message usage scenario when the short message usage scenario is not matched comprises:
when the short message using scene is not matched, a short message template corresponding to the type of the short message using scene is created according to the type of the short message using scene; the short message template comprises a fixed field and a user-defined field, wherein the fixed field comprises: and at least one of a drop field and a time field matched with the short message using scene.
5. The short message configuration method of claim 1, wherein the short message sending rule comprises: 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 of the short message sending rule corresponding to the short message template comprises:
determining the sending times of the short messages within a preset time length according to a set short message sending frequency, and setting a short message sending type corresponding to the sending times;
and/or the presence of a gas in the gas,
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/or the presence of a gas in the gas,
acquiring the 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.
6. The short message configuration method according to claim 4, wherein the configuring and generating the short message in the short message usage scenario based on the short message template and the short message sending rule comprises:
acquiring user-defined information of a user;
converting the custom information into custom field content based on the custom information;
and 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 using scene according to the short message sending rule.
7. The short message configuration method of claim 1, wherein the sending the short message comprises:
and calling a short message sending interface corresponding to the short message template, and sending the short message to an operator server.
8. A short message configuration device, the device comprising:
the scene acquisition module is used for acquiring a short message use scene;
the scene matching module is used for matching the short message using scene in a preset short message template library according to the short message using scene, wherein the preset short message template library stores the preset short message using scene and a preset short message template applicable to the preset short message using scene;
the template configuration module is used for creating a short message template suitable for the short message use scene when the short message use scene is not matched, 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 using scene based on the short message template and the short message sending rule and sending the short message.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the short message configuration method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the short message configuration method according to any one of claims 1 to 7.
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 true CN113873450A (en) 2021-12-31
CN113873450B 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)

Cited By (1)

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

Citations (7)

* 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
CN106488419A (en) * 2016-12-12 2017-03-08 惠州Tcl移动通信有限公司 A kind of sending short messages in groups method and system based on intelligent terminal
CN106533920A (en) * 2016-12-02 2017-03-22 北京红马传媒文化发展有限公司 Customized short message sending system
CN109962949A (en) * 2017-12-22 2019-07-02 武汉楚鼎信息技术有限公司 A kind of delivery method and terminal of short message
CN111953579A (en) * 2020-07-15 2020-11-17 广州市玄武无线科技股份有限公司 Message generation method, system, terminal and storage medium
CN112492535A (en) * 2020-12-17 2021-03-12 平安普惠企业管理有限公司 Short message sending method and device
CN112822647A (en) * 2020-12-30 2021-05-18 平安普惠企业管理有限公司 Short message sending method, device, storage medium and computer equipment

Patent Citations (7)

* 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
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
CN111953579A (en) * 2020-07-15 2020-11-17 广州市玄武无线科技股份有限公司 Message generation method, system, terminal and storage medium
CN112492535A (en) * 2020-12-17 2021-03-12 平安普惠企业管理有限公司 Short message sending method and device
CN112822647A (en) * 2020-12-30 2021-05-18 平安普惠企业管理有限公司 Short message sending method, device, storage medium and computer equipment

Cited By (2)

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

Also Published As

Publication number Publication date
CN113873450B (en) 2023-05-12

Similar Documents

Publication Publication Date Title
CN102783121B (en) Communications device
CN101611588A (en) Secure access for limited resources
CN104239804A (en) Data protecting method and device
CN110177039B (en) Message sharing method and device, computer equipment and storage medium
WO2016025756A1 (en) Form filling method and related terminal
US10606477B1 (en) Intelligent keyboard
CN109286933B (en) Authentication method, device, system, computer equipment and storage medium
CN102202297B (en) Method and device for encrypting mobile terminals
CN113114707B (en) Rule filtering method for power chip Ethernet controller
CN105515887B (en) application testing method, server and system
CN110545538A (en) Method for configuring wireless terminal network, mobile terminal, wireless terminal and system
CN106465076A (en) Control method and terminal for short message reading
US20180349580A1 (en) Information processing method and device, and electronic equipment
CN113873450B (en) Short message configuration method, 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
CN111222153A (en) Application program authority management method and device and storage medium
CN104168362A (en) Terminal, two-dimensional management apparatus, and electronic card management method
CN110673970A (en) Cross-process calling system and method based on web application
CN113114623B (en) Data connection method, device, terminal equipment and computer readable storage medium
CN112543194B (en) Mobile terminal login method and device, computer equipment and storage medium
CN112395138B (en) Method and device for checking parameters
CN114448722A (en) Cross-browser login method and device, computer equipment and storage medium
CN111614676B (en) Login method, device, equipment and medium
CN112749355B (en) Page display method, device, terminal, server and storage medium

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