CN109450772B - Message sending method, server and computer readable storage medium - Google Patents

Message sending method, server and computer readable storage medium Download PDF

Info

Publication number
CN109450772B
CN109450772B CN201811122690.2A CN201811122690A CN109450772B CN 109450772 B CN109450772 B CN 109450772B CN 201811122690 A CN201811122690 A CN 201811122690A CN 109450772 B CN109450772 B CN 109450772B
Authority
CN
China
Prior art keywords
message
template
target
user
sending request
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
CN201811122690.2A
Other languages
Chinese (zh)
Other versions
CN109450772A (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 Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China Ltd
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 Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201811122690.2A priority Critical patent/CN109450772B/en
Publication of CN109450772A publication Critical patent/CN109450772A/en
Application granted granted Critical
Publication of CN109450772B publication Critical patent/CN109450772B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/066Format adaptation, e.g. format conversion or compression
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/063Content adaptation, e.g. replacement of unsuitable content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/06Network architectures or network communication protocols for network security for supporting key management in a packet data network
    • H04L63/062Network architectures or network communication protocols for network security for supporting key management in a packet data network for key distribution, e.g. centrally by trusted party
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0869Generation of secret information including derivation or calculation of cryptographic keys or passwords involving random numbers or seeds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention is suitable for the technical field of artificial intelligence, and provides a message sending method, a server and a computer readable storage medium, wherein the message sending method comprises the following steps: receiving a message sending request; the message sending request carries identity verification information of a user who initiates the message sending request and a message identifier of a target message requested to be sent by the message sending request; based on the identity verification information of the user carried by the message sending request, performing identity verification on the user; if the identity verification is passed, acquiring and displaying a message template matched with the message identifier based on the message identifier carried by the message sending request; the method comprises the steps of obtaining configuration contents input by a user aiming at each preset configuration item in the message template, generating a target message based on the configuration contents input by the user aiming at each preset configuration item and the message template, and sending the target message to a target object, so that the message sending efficiency is improved, and the message sending time is saved.

Description

Message sending method, server and computer readable storage medium
Technical Field
The invention belongs to the technical field of artificial intelligence, and particularly relates to a message sending method, a server and a computer readable storage medium.
Background
In daily life, people often need to communicate the same message to multiple people simultaneously, for example, message communication between different departments within a company, message communication between a company business department and a client, and the like. When the same message is conveyed to a plurality of people, the message sender manually edits the full text of the message in the prior art, and when the messages to be conveyed belong to the same type of messages, a great deal of time is wasted by manually editing the full text of the message by the message sender each time, and the message sending efficiency is reduced.
Disclosure of Invention
In view of this, embodiments of the present invention provide a message sending method, a server, and a computer readable storage medium, so as to solve the problems of low message sending efficiency and time waste in the existing message sending method.
A first aspect of an embodiment of the present invention provides a message sending method, including:
receiving a message sending request; the message sending request carries identity verification information of a user who initiates the message sending request and a message identifier of a target message requested to be sent by the message sending request;
based on the identity verification information of the user carried by the message sending request, performing identity verification on the user;
if the identity verification is passed, acquiring and displaying a message template matched with the message identifier based on the message identifier carried by the message sending request;
acquiring configuration contents input by the user aiming at each preset configuration item in the message template, generating a target message based on the configuration contents input by the user aiming at each preset configuration item and the message template, and sending the target message to a target object.
A second aspect of an embodiment of the present invention provides a server, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the following steps when executing the computer program:
receiving a message sending request; the message sending request carries identity verification information of a user who initiates the message sending request and a message identifier of a target message requested to be sent by the message sending request;
based on the identity verification information of the user carried by the message sending request, performing identity verification on the user;
if the identity verification is passed, acquiring and displaying a message template matched with the message identifier based on the message identifier carried by the message sending request;
acquiring configuration contents input by the user aiming at each preset configuration item in the message template, generating a target message based on the configuration contents input by the user aiming at each preset configuration item and the message template, and sending the target message to a target object.
A third aspect of embodiments of the present invention provides a computer-readable storage medium storing a computer program, which when executed by a processor, performs the steps of:
receiving a message sending request; the message sending request carries identity verification information of a user who initiates the message sending request and a message identifier of a target message requested to be sent by the message sending request;
based on the identity verification information of the user carried by the message sending request, performing identity verification on the user;
if the identity verification is passed, acquiring and displaying a message template matched with the message identifier based on the message identifier carried by the message sending request;
and acquiring configuration contents input by the user aiming at each preset configuration item in the message template, generating a target message based on the configuration contents input by the user aiming at each preset configuration item and the message template, and sending the target message to a target object.
The message sending method, the server and the computer readable storage medium provided by the embodiment of the invention have the following beneficial effects:
the embodiment of the invention pre-configures the message template in the server, so that the user can obtain the corresponding message template through the message identifier of the target message requested to be sent when sending the message, and thus, the user only needs to input the corresponding configuration content aiming at each preset configuration item in the message template, the server can generate the target message to be sent based on the configuration content input by the user and the message template and send the target message to the object, thereby avoiding manual editing of the full text of the message, improving the message sending efficiency and saving the time.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating an implementation of a message sending method according to a first embodiment of the present invention;
fig. 2 is a flowchart illustrating a specific implementation of S13 in a message sending method according to a second embodiment of the present invention;
fig. 3 is a flowchart of specific implementation of S133 in a message sending method according to a second embodiment of the present invention;
fig. 4 is a block diagram of a server according to an embodiment of the present invention;
fig. 5 is a block diagram of a server according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention 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 invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating an implementation of a message sending method according to a first embodiment of the present invention. In this embodiment, the main execution body of the message sending method is a background server of the message sending platform. The message transmission method shown in fig. 1 includes the following steps:
s11: receiving a message sending request; the message sending request carries identity verification information of a user who initiates the message sending request and a message identifier of a target message which is requested to be sent by the message sending request.
When a user has a requirement for sending messages in batch, the user can enter the message sending platform provided by the embodiment of the invention through the terminal equipment, and the messages are sent in batch through the message sending platform provided by the embodiment of the invention.
Wherein sending messages in bulk refers to sending messages to multiple different target objects simultaneously. The target object may be a client having business communication with the business department to which the user belongs, or may be a colleague having work communication with other departments to which the business department to which the user belongs, and is not limited herein.
Before a user sends a message through a message sending platform, the user account needs to be registered on the message sending platform. Specifically, the user may register the user account by triggering an account registration option of the messaging platform interactive interface. And if the terminal equipment detects that the user triggers an account registration option of the interactive interface of the message sending platform, sending an account registration request to a background server of the message sending platform. And after receiving the account registration request sent by the terminal equipment, the server returns a preset information item to the terminal equipment. The preset information item is an information item to be filled in by a registered user account, the preset information item at least comprises an information item for uniquely identifying the identity of the user, the information item for uniquely identifying the identity of the user can be an information item such as a work number, an identity card number and a mobile phone number of the user, and the preset information item is specifically set according to actual requirements and is not limited here.
After receiving the preset information items returned by the server, the terminal equipment displays the preset information items on the interactive interface, acquires the content input by the user aiming at each preset information item, and sends the content input by the user aiming at each preset information item to the server. The server detects whether the user requesting to register the account is a preset user authorized to use the message sending platform or not based on the content of the information item which is used for carrying out unique identification on the identity of the user in the preset information item. Specifically, the administrator of the message sending platform may maintain an authorized user list in the server in advance, where the list is used to record the identity information of the user authorized to use the message sending platform, and the identity information of the user includes, but is not limited to, the job number, the identity number, or the mobile phone number of the user.
After receiving the content of each preset information item returned by the terminal equipment, the server detects whether the content of the information item for uniquely identifying the identity of the user is contained in an authorized user list. If the server detects that the content of the information item for uniquely identifying the identity of the user is contained in the authorized user list, the server determines that the user currently requesting to register the user account is a user authorized to use the message sending platform, and at this time, the server allocates the user account to the current user.
In the embodiment of the invention, in order to improve the security of the user account, the server distributes the user account to the user and also distributes a key for verifying the identity of the user to the user. It should be noted that the key assigned by the server to the user is randomly generated, the server assigns different keys to different users, and the server stores the keys assigned by the users in association with the user account of the user.
When a message needs to be sent through the message sending platform, a user can log in the message sending platform through a registered user account and trigger a message sending option of the message sending platform. And if the terminal equipment detects that the user triggers the message sending option of the message platform, the terminal equipment reminds the user to input a secret key for verifying the identity of the user and a message identifier of the target message requested to be sent. The key for verifying the user identity is a key distributed by a background server of the message sending platform when the user registers the user account; the message identifier may be a service type identifier of a service to which the message belongs, or may be a message template number, which is not limited herein.
The terminal equipment generates identity verification information based on a secret key input by a user and a preset encryption rule, generates a message sending request based on the identity verification information, a currently logged user account and a message identifier of a target message, and sends the message sending request to a background server of a message sending platform. The message sending request carries identity verification information, a currently logged user account and a message identifier of the target message. In practical applications, the preset encryption rule may be determined according to practical requirements, and is not limited herein.
After receiving a message sending request sent by a terminal device, a background server of the message sending platform extracts identity verification information, a user account and a message identifier of a target message carried by the message sending request.
S12: and carrying out identity verification on the user based on the identity verification information of the user carried by the message sending request.
In the embodiment of the invention, after the background server of the message sending platform extracts the identity verification information of the user initiating the message sending request from the message sending request, the identity of the user initiating the message sending request is verified based on the identity verification information.
Specifically, the server determines a key corresponding to the user account carried by the message sending request based on a preset corresponding relationship between the user account carried by the message sending request, a pre-stored user account and a key allocated to the user, and generates the electronic signature based on the key corresponding to the user account carried by the message sending request and a preset encryption rule. The preset encryption rule is an encryption rule agreed by a background server of the message sending platform and terminal equipment for deploying the message sending platform.
And the server compares the identity verification information carried by the message sending request with the generated electronic signature, and performs identity verification on the user initiating the message sending request based on a comparison result. Specifically, if the server detects that the identity verification information carried by the message sending request is completely the same as the generated electronic signature, the server determines that the identity verification passes, and at this time, the server executes S13; and if the server detects that the identity verification information carried by the message sending request is different from the generated electronic signature, the server judges that the identity verification fails, and at the moment, the server does not respond to the message sending request sent by the terminal equipment.
S13: and if the identity verification is passed, acquiring and displaying a message template matched with the message identifier based on the message identifier carried by the message sending request.
In practical application, a plurality of different message templates can be pre-configured in the server according to service requirements, and each message template is numbered. The message templates of different message templates have different numbers, each message template corresponds to a service type, different message templates may correspond to different service types, or may correspond to the same service type, that is, a plurality of different message templates may be configured in the same service type. The server can store the message template number, the service type identifier corresponding to the message template and the message template in an associated manner. It should be noted that each message template is configured with a plurality of preset configuration items. The preset configuration items are information items related to the service types of the message templates and/or related to message receivers, the content of the preset configuration items needs to be input by a user, and the preset configuration items contained in different message templates are different.
For example, for a message template of this service type with premium charged, the content of the message template may be: the insurance of the type of the XX is about to expire and needs to pay the premium, the date of paying the premium is multiplied by months multiplied by days, the premium of the period is multiplied by Yuan, and the user is troubled to continue the insurance as soon as possible. Correspondingly, the preset configuration items contained in the message template include: the name of the applicant, the type of insurance to be renewed, the date of the renewal of the premium and the premium to be paid.
In practical application, the message identifier may be a service type identifier of a service to which the message belongs, or may be a message template number. In the embodiment of the invention, if the identity of the user who initiates the message sending request passes the verification, the server determines the message template associated with the message identifier of the target message based on the message identifier of the target message requested to be sent carried by the message sending request, the message template number, the service type identifier corresponding to the message template and the preset corresponding relation between the message templates, determines the message template as the message template matched with the message identifier of the target message, and simultaneously, the server displays the message template matched with the message identifier of the target message to the user so that the user inputs corresponding configuration content aiming at each preset configuration item in the message template matched with the message identifier of the target message.
S14: acquiring configuration contents input by the user aiming at each preset configuration item in the message template, generating a target message based on the configuration contents input by the user aiming at each preset configuration item and the message template, and sending the target message to a target object.
After the server displays the message template matched with the message identifier of the target message to the user, the configuration content input by the user aiming at each preset configuration item in the message template is obtained, and the target message is generated based on the configuration content input by the user aiming at each preset configuration item in the message template and the message template. Specifically, the server combines configuration content input by the user for each preset configuration item in the message template with the message template, and further generates the target message requested to be sent.
For example, with reference to the example in S13, if the configuration contents input by the user for the preset configuration items are: miss li, lifetime insurance, 5 months 20 days, 1000 yuan, the server combines these configuration contents with the message template to get the target message: good Miss Li, you have a kind of life-long insurance that will expire and need to pay the premium continuously, the premium continuous payment day is 5 months and 20 days, the premium of the current period is 1000 yuan, and trouble you can continue to pay the premium as soon as possible.
And after generating the target message, the server sends the target message to the target object. In practical application, the server may send the target message to the target object in the form of mail, short message or instant messaging message.
The contact information of the target object may be input or imported by the server after the server passes the identity verification of the user who initiated the message sending request, and is specifically set according to actual requirements, which is not limited here.
As another embodiment of the present invention, after S12, the method may further include the following steps:
and if the identity verification fails, the message sending request is not responded.
In this embodiment, if the identity verification of the user initiating the message sending request fails, it indicates that the user initiating the message sending request is not a user authorized to use the message sending platform, and at this time, the server does not respond to the message sending request sent by the terminal device.
As can be seen from the above, according to the message sending method provided in this embodiment, the message template is pre-configured in the server, so that when the user sends a message, the corresponding message template can be obtained through the message identifier of the target message requested to be sent, and thus, the user only needs to input the corresponding configuration content for each preset configuration item in the message template, and the server can generate the target message to be sent based on the configuration content input by the user and the message template, and send the target message to the object, so that the full text of the message does not need to be manually edited, the message sending efficiency is improved, and the time is saved.
Referring to fig. 2, fig. 2 is a flowchart illustrating an implementation of S13 in a message sending method according to a second embodiment of the present invention. In this embodiment, a message identifier of a target message carried in a message sending request is a service type identifier of a service to which the target message belongs, and with respect to the embodiment corresponding to fig. 1, in the message sending method provided in this embodiment, S13 may specifically include S131 to S132, which are described in detail as follows:
s131: and if the identity verification is passed, determining a message template associated with the service type identifier of the service to which the target message belongs based on the service type identifier of the service to which the target message belongs carried by the message sending request, and the preset corresponding relation between the service type identifier and the message template.
The background server of the message sending platform stores a preset corresponding relation between the service type identification and the message template in advance. In this embodiment, if the identity of the user initiating the message sending request passes the verification, the server determines the message template associated with the service type identifier of the service to which the target message belongs, based on the service type identifier of the service to which the target message belongs carried by the message sending request, and the preset corresponding relationship between the service type identifier and the message template.
In practical applications, since a plurality of different message templates can be configured for the same service type, there may be one or more message templates associated with the service type identifier of the service to which the target message belongs. In this embodiment, after determining the message template associated with the service type identifier of the service to which the target message belongs, the server counts the number of message templates associated with the service type identifier of the service to which the target message belongs. If the server detects that there is one message template associated with the service type identifier of the service to which the target message belongs, S132 is executed.
S132: and if the message template associated with the service type identifier of the service to which the target message belongs is one, determining the message template associated with the service type identifier of the service to which the target message belongs as the message template matched with the message identifier.
In this embodiment, if the server detects that one message template associated with the service type identifier of the service to which the target message belongs is one, the server directly determines the one message template as the message template matched with the message identifier of the target message.
As another embodiment of the present invention, after S131, S133 may be further included, which is detailed as follows:
s133: if the number of the message templates associated with the service type identifier of the service to which the target message belongs is at least two, determining the priorities of the at least two message templates, and determining the message template with the highest priority in the at least two message templates as the message template matched with the message identifier.
In this embodiment, if the server detects that there are at least two message templates associated with the service type identifier of the service to which the target message belongs, the server determines priorities of the at least two message templates, and determines a message template with a higher priority of the at least two message templates as a message template matched with the message identifier of the template message.
Specifically, the server may determine the priority of at least two message templates associated with the service type identifier of the service to which the target message belongs based on S1331-S1333 shown in fig. 3, which is detailed as follows:
s1331: and acquiring the use frequency and the reply rate of the at least two message templates.
S1332: inputting the use frequency and the response rate of the at least two message templates into a preset message template score value calculation model, and calculating the score value of each message template in the at least two message templates; the message template score value calculation model is as follows:
Score=a×fre+b×ln(1+reply);
wherein, Score is the Score value of the message template, a and b are preset weight coefficients, fre is the frequency of use of the message template, and reply is the reply rate of the message template.
S1333: determining a priority of the message template based on the score value of the message template.
In this embodiment, the server may count and store the usage frequency and the reply rate of each message template configured in advance. The use frequency of the message template refers to the total number of times the message template is used, and the reply rate of the message template refers to the ratio of the number of target objects which reply the target message to the total number of the target objects after the target message is sent to the target objects by using the message template.
After determining the message templates associated with the service type identifiers of the services to which the target messages belong, if detecting that at least two message templates associated with the service type identifiers of the services to which the target messages belong are at least two, the server acquires the use frequency and the reply rate of the at least two message templates from the storage space. After acquiring the use frequency and the response rate of at least two message templates associated with the service type identification of the service of the target message, the server respectively inputs the use frequency and the response rate of each message template into a preset message template score value calculation model so as to respectively calculate the score value of each message template in the at least two message templates through the message template score value calculation model,
after calculating the score value of each message template in at least two message templates associated with the service type identification of the service of the target message, the server determines the priority of the at least two message templates based on the score values of the message templates. Specifically, the server determines the message template with the highest score as the message template with the highest priority.
As can be seen from the above, in the message sending method provided in this embodiment, when at least two message templates associated with the service type identifier of the service to which the target message requested to be sent belongs are stored in the server, the server integrates the frequency of use and the reply rate of the at least two message templates, and automatically selects a message template with the highest priority from the at least two message templates as a message template matched with the message identifier of the target message, so that the target message generated by the server based on the selected message template and the configuration content input by the user for each preset configuration item in the message template is more targeted, and the message sending efficiency is improved.
Referring to fig. 4, fig. 4 is a block diagram of a server according to an embodiment of the present invention. The server in this embodiment is a background server of the message sending platform. The server comprises units for performing the steps in the embodiments corresponding to fig. 1 to 3. Please refer to fig. 1 to 3 and fig. 1 to 3 for the corresponding embodiments. For convenience of explanation, only the portions related to the present embodiment are shown. Referring to fig. 4, the server 400 includes: a communication unit 41, an identity verification unit 42, a presentation unit 43 and a message sending unit 44. Wherein:
the communication unit 41 is configured to receive a message transmission request; the message sending request carries identity verification information of a user who initiates the message sending request and a message identifier of a target message which is requested to be sent by the message sending request.
The identity verification unit 42 is configured to perform identity verification on the user based on the identity verification information of the user carried in the message sending request.
The display unit 43 is configured to, if the identity verification passes, obtain and display a message template matched with the message identifier based on the message identifier carried in the message sending request.
The message sending unit 44 is configured to obtain configuration contents input by the user for each preset configuration item in the message template, generate a target message based on the configuration contents input by the user for each preset configuration item and the message template, and send the target message to a target object.
As an embodiment of the present invention, the message identifier of the target message is a service type identifier of a service to which the target message belongs; the display unit 43 includes: a first determining unit and a second determining unit. Wherein:
the first determining unit is configured to determine, if the identity check passes, a message template associated with the service type identifier of the service to which the target message belongs based on the service type identifier of the service to which the message sending request carries, and a preset correspondence between the service type identifier and the message template.
The second determining unit is configured to determine, if there is one message template associated with the service type identifier of the service to which the target message belongs, the message template associated with the service type identifier of the service to which the target message belongs as the message template matched with the message identifier.
As an embodiment of the present invention, the display unit 43 further includes: and a third determination unit.
The third determining unit is configured to determine priorities of the at least two message templates if the number of the message templates associated with the service type identifier of the service to which the target message belongs is at least two, and determine the message template with the highest priority among the at least two message templates as the message template matched with the message identifier.
As an embodiment of the present invention, the third determining unit includes: the device comprises a first acquisition unit, a calculation unit and a fourth determination unit. Wherein:
the first obtaining unit is used for obtaining the use frequency and the reply rate of the at least two message templates.
The calculating unit is used for inputting the use frequency and the reply rate of the at least two message templates into a preset message template score value calculating model and calculating the score value of each message template in the at least two message templates; the message template score value calculation model is as follows:
Score=a×fre+b×ln(1+reply);
wherein, Score is the Score value of the message template, a and b are preset weight coefficients, fre is the use frequency of the message template, and reply is the reply rate of the message template;
the fourth determining unit is used for determining the priority of the message template based on the score value of the message template.
As an embodiment of the present invention, the server further includes an information processing unit.
The information processing unit is used for not responding to the message sending request if the identity verification fails.
As can be seen from the above, according to the server provided in this embodiment, the message template is configured in advance in the server, so that when the user sends a message, the corresponding message template can be obtained through the message identifier of the target message requested to be sent, and thus, the user only needs to input the corresponding configuration content for each preset configuration item in the message template, and the server can generate the target message to be sent based on the configuration content input by the user and the message template, and send the target message to the object, so that the full text of the message does not need to be manually edited, the message sending efficiency is improved, and the time is saved.
Fig. 5 is a block diagram of a server according to another embodiment of the present invention. As shown in fig. 5, the server 5 of this embodiment includes: a processor 50, a memory 51 and a computer program 52, such as a program for a message sending method, stored in said memory 51 and being executable on said processor 50. The processor 50, when executing the computer program 52, implements the steps in the various embodiments of the message sending method described above, such as S11-S14 shown in fig. 1. Alternatively, when the processor 50 executes the computer program 52, the functions of the units in the embodiment corresponding to fig. 4, for example, the functions of the units 41 to 44 shown in fig. 4, are implemented, for which reference is specifically made to the relevant description in the embodiment corresponding to fig. 4, which is not repeated herein.
Illustratively, the computer program 52 may be divided into one or more units, which are stored in the memory 51 and executed by the processor 50 to accomplish the present invention. The unit or units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 52 in the server 5. For example, the computer program 52 may be divided into a communication unit, an identity verification unit, a presentation unit and a message sending unit, each of which functions as described above.
The server may include, but is not limited to, a processor 50, a memory 51. Those skilled in the art will appreciate that fig. 5 is merely an example of a server 5 and does not constitute a limitation of server 5 and may include more or fewer components than shown, or some components in combination, or different components, e.g., the server may also include input output devices, network access devices, buses, etc.
The Processor 50 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 51 may be an internal storage unit of the server 5, such as a hard disk or a memory of the server 5. The memory 51 may also be an external storage device of the server 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) and the like provided on the server 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the server 5. The memory 51 is used for storing the computer program and other programs and data required by the server. The memory 51 may also be used to temporarily store data that has been output or is to be output.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (8)

1. A method for sending a message, comprising:
receiving a message sending request; the message sending request carries identity verification information of a user who initiates the message sending request and a message identifier of a target message requested to be sent by the message sending request; the message sending request is a batch message sending request which refers to sending messages to a plurality of different target objects at the same time;
based on the identity verification information of the user carried by the message sending request, performing identity verification on the user;
if the identity verification is passed, acquiring and displaying a message template matched with the message identifier based on the message identifier carried by the message sending request; each message template is configured with a plurality of preset configuration items, the content of the preset configuration items is input by a user, and the preset configuration items contained in different message templates are different; the message identification of the target message is the service type identification of the service to which the target message belongs; if the identity verification is passed, acquiring and displaying a message template matched with the message identifier based on the message identifier carried by the message sending request, wherein the method comprises the following steps: if the identity verification is passed, determining a message template associated with the service type identifier of the service to which the target message belongs based on the service type identifier of the service to which the target message belongs carried by the message sending request, and a preset corresponding relation between the service type identifier and the message template; if the message template associated with the service type identifier of the service to which the target message belongs is one, determining the message template associated with the service type identifier of the service to which the target message belongs as a message template matched with the message identifier;
the method comprises the steps of obtaining configuration contents input by a user aiming at each preset configuration item in a message template, generating a target message based on the configuration contents input by the user aiming at each preset configuration item and the message template, and sending the target message to a target object, wherein the preset configuration items are information items related to the service type of the message template and/or related to a message receiver, and the contact way of the target object is input or imported by the user after the identity verification of the user passes.
2. The message sending method according to claim 1, wherein, after determining the message template associated with the service type identifier of the service to which the target message belongs based on the service type identifier of the service to which the target message belongs carried by the message sending request, the preset correspondence between the service type identifier and the message template if the identity check passes, the method further comprises:
if the number of the message templates associated with the service type identifier of the service to which the target message belongs is at least two, determining the priorities of the at least two message templates, and determining the message template with the highest priority in the at least two message templates as the message template matched with the message identifier.
3. The method according to claim 2, wherein the determining the priority of the at least two message templates comprises:
acquiring the use frequency and the reply rate of the at least two message templates;
inputting the use frequency and the response rate of the at least two message templates into a preset message template score value calculation model, and calculating the score value of each message template in the at least two message templates; the message template score value calculation model is as follows:
Score=a×fre+b×ln(1+reply);
wherein, Score is the Score value of the message template, a and b are preset weight coefficients, fre is the use frequency of the message template, and reply is the reply rate of the message template;
determining a priority of the message template based on the score value of the message template.
4. The message sending method according to any one of claims 1 to 3, wherein after the identity verification of the user is performed based on the identity verification information of the user carried in the message sending request, the method further comprises:
and if the identity verification fails, the message sending request is not responded.
5. A server, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the steps when executing the computer program:
receiving a message sending request; the message sending request carries identity verification information of a user who initiates the message sending request and a message identifier of a target message requested to be sent by the message sending request; the message sending request is a batch message sending request which refers to sending messages to a plurality of different target objects at the same time;
based on the identity verification information of the user carried by the message sending request, performing identity verification on the user;
if the identity verification is passed, acquiring and displaying a message template matched with the message identifier based on the message identifier carried by the message sending request; each message template is configured with a plurality of preset configuration items, the content of the preset configuration items is input by a user, and the preset configuration items contained in different message templates are different; the message identification of the target message is the service type identification of the service to which the target message belongs; if the identity verification is passed, acquiring and displaying a message template matched with the message identifier based on the message identifier carried by the message sending request, wherein the method comprises the following steps: if the identity verification is passed, determining a message template associated with the service type identifier of the service to which the target message belongs based on the service type identifier of the service to which the target message belongs carried by the message sending request, and a preset corresponding relation between the service type identifier and the message template; if the message template associated with the service type identifier of the service to which the target message belongs is one, determining the message template associated with the service type identifier of the service to which the target message belongs as a message template matched with the message identifier;
the method comprises the steps of obtaining configuration contents input by a user aiming at each preset configuration item in a message template, generating a target message based on the configuration contents input by the user aiming at each preset configuration item and the message template, and sending the target message to a target object, wherein the preset configuration items are information items related to the service type of the message template and/or related to a message receiver, and the contact way of the target object is input or imported by the user after the identity verification of the user passes.
6. The server according to claim 5, wherein, after determining the message template associated with the service type identifier of the service to which the target message belongs based on the service type identifier of the service to which the target message belongs carried by the message sending request, the preset correspondence between the service type identifier and the message template if the identity verification passes, the method further comprises:
if the number of the message templates associated with the service type identifier of the service to which the target message belongs is at least two, determining the priorities of the at least two message templates, and determining the message template with the highest priority in the at least two message templates as the message template matched with the message identifier.
7. The server according to claim 6, wherein the determining the priority of the at least two message templates comprises:
acquiring the use frequency and the reply rate of the at least two message templates;
inputting the use frequency and the response rate of the at least two message templates into a preset message template score value calculation model, and calculating the score value of each message template in the at least two message templates; the message template score value calculation model is as follows:
Score=a×fre+b×ln(1+reply);
wherein, Score is the Score value of the message template, a and b are preset weight coefficients, fre is the use frequency of the message template, and reply is the reply rate of the message template;
determining a priority of the message template based on the score value of the message template.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of a method according to any one of claims 1 to 4.
CN201811122690.2A 2018-09-26 2018-09-26 Message sending method, server and computer readable storage medium Active CN109450772B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811122690.2A CN109450772B (en) 2018-09-26 2018-09-26 Message sending method, server and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811122690.2A CN109450772B (en) 2018-09-26 2018-09-26 Message sending method, server and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109450772A CN109450772A (en) 2019-03-08
CN109450772B true CN109450772B (en) 2022-08-02

Family

ID=65544545

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811122690.2A Active CN109450772B (en) 2018-09-26 2018-09-26 Message sending method, server and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109450772B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110336786B (en) * 2019-05-23 2022-02-11 平安科技(深圳)有限公司 Message sending method, device, computer equipment and storage medium
CN110782355A (en) * 2019-11-05 2020-02-11 泰康保险集团股份有限公司 Method, device, equipment and storage medium for processing annuity investment supervision information
CN111049727A (en) * 2019-11-22 2020-04-21 用友网络科技股份有限公司 Message processing method, message processing apparatus, and computer-readable storage medium
CN111756620B (en) * 2020-06-28 2022-05-27 中国银行股份有限公司 Message pushing method and device
CN112015979A (en) * 2020-07-24 2020-12-01 上海淇玥信息技术有限公司 Method and device for sending information to target crowd and electronic equipment
CN111984901A (en) * 2020-08-31 2020-11-24 上海博泰悦臻电子设备制造有限公司 Message pushing method and related product thereof
CN112383584A (en) * 2020-10-12 2021-02-19 联通智网科技有限公司 Message pushing method, message display method and communication system
CN112182400B (en) * 2020-10-16 2024-03-29 中国工商银行股份有限公司 Message processing method, message processing device, electronic equipment and storage medium
CN114615221B (en) * 2020-12-07 2023-04-07 腾讯科技(深圳)有限公司 Reply content control method, device, equipment and computer storage medium
CN114222256B (en) * 2021-11-16 2023-10-20 中国建设银行股份有限公司 Message sending method and device and electronic equipment
CN114329293A (en) * 2021-12-23 2022-04-12 上海淇玥信息技术有限公司 Message pushing method and device and electronic equipment
CN114338584B (en) * 2022-01-11 2023-11-14 平安科技(深圳)有限公司 Message withdraw method and message transmission system
CN114610511B (en) * 2022-03-07 2024-08-09 北京百度网讯科技有限公司 Input verification method and device, electronic equipment and storage medium
CN114760600A (en) * 2022-04-01 2022-07-15 中国银行股份有限公司 Expense notice sending method and device, storage medium and electronic equipment
CN116384956B (en) * 2023-06-05 2023-08-15 天津金城银行股份有限公司 Message batch sending method, device, equipment and storage medium
CN116708025B (en) * 2023-07-31 2023-11-28 厦门起量科技有限公司 Account management method and device based on cloud computing

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270223A (en) * 2014-09-10 2015-01-07 四川九洲电器集团有限责任公司 Message transmitting method and device
CN105635464A (en) * 2015-12-30 2016-06-01 厦门欣欣信息有限公司 Message processing method and apparatus
CN106302116A (en) * 2016-08-12 2017-01-04 北京小米移动软件有限公司 Message method and device
CN107943775A (en) * 2017-11-24 2018-04-20 泰康保险集团股份有限公司 Method, apparatus, storage medium and the electronic equipment of message push
CN108235092A (en) * 2016-12-14 2018-06-29 杭州芯讯科技有限公司 information issuing method and device
CN108337296A (en) * 2018-01-12 2018-07-27 深圳壹账通智能科技有限公司 Message push processing method, device, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10084606B2 (en) * 2016-04-15 2018-09-25 International Business Machines Corporation Construction of digital identity documents in a manner that allows the user to select which attributes are to be revealed

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270223A (en) * 2014-09-10 2015-01-07 四川九洲电器集团有限责任公司 Message transmitting method and device
CN105635464A (en) * 2015-12-30 2016-06-01 厦门欣欣信息有限公司 Message processing method and apparatus
CN106302116A (en) * 2016-08-12 2017-01-04 北京小米移动软件有限公司 Message method and device
CN108235092A (en) * 2016-12-14 2018-06-29 杭州芯讯科技有限公司 information issuing method and device
CN107943775A (en) * 2017-11-24 2018-04-20 泰康保险集团股份有限公司 Method, apparatus, storage medium and the electronic equipment of message push
CN108337296A (en) * 2018-01-12 2018-07-27 深圳壹账通智能科技有限公司 Message push processing method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN109450772A (en) 2019-03-08

Similar Documents

Publication Publication Date Title
CN109450772B (en) Message sending method, server and computer readable storage medium
JP6935406B2 (en) Service implementation method and equipment
US10936733B2 (en) Reducing inappropriate online behavior using analysis of email account usage data to select a level of network service
US10491388B2 (en) Multi-level encryption of tokenized protected data
CN104954322A (en) Account binding method, device and system
CN108132926A (en) Contract generating means and system
CN104219326A (en) Resource sharing device and method in cleaning service information management system
CN101652967A (en) Be used to reduce the method and system of the propagation of electronic information
CA2862557C (en) Method for certifying the sending of electronic mail
CN112672357A (en) Method and device for processing user account in business system and computer equipment
CN110458507B (en) Authorization method and device for public number business hosting
CN110955905A (en) Block chain based asset transfer method, device, equipment and readable storage medium
US9973463B2 (en) Method for the certification of data messages transmission to mobile terminals
CN112785240A (en) Method and device for processing e-mail, computer readable medium and electronic equipment
US20020016728A1 (en) Temporary worker information management system, temporary worker information management method, dispatching terminal, job offer terminal, dispatching information server, and recording medium
CN113946739A (en) Sensitive data query method, device, equipment and storage medium
CN109582720B (en) Data storage method, device and storage medium
CN110647757A (en) Data processing method based on intelligent contract and related device
CN113283792A (en) Method, device and equipment for inquiring private information and storage medium
KR20110038990A (en) System and method for processing electronic vat invoice
CN110942316A (en) Transfer verification method and system based on multi-party verification
CN110011808A (en) Method and system and servomechanism with guard digit stamped signature mechanism
CN104038562A (en) Method for conducting service message pushing under tobacco industry cloud application
KR102493093B1 (en) Apparatus and method for serving email service based on blockchain network
CN115222488B (en) Quotation data processing method, quotation data processing device, computer equipment 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