CN116709214A - Message sending method, device and server - Google Patents

Message sending method, device and server Download PDF

Info

Publication number
CN116709214A
CN116709214A CN202310665267.1A CN202310665267A CN116709214A CN 116709214 A CN116709214 A CN 116709214A CN 202310665267 A CN202310665267 A CN 202310665267A CN 116709214 A CN116709214 A CN 116709214A
Authority
CN
China
Prior art keywords
message
text
server
sending
terminal equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310665267.1A
Other languages
Chinese (zh)
Inventor
刘余
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202310665267.1A priority Critical patent/CN116709214A/en
Publication of CN116709214A publication Critical patent/CN116709214A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

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

Abstract

The embodiment of the application provides a message sending method, a message sending device and a server, which can be used in the technical field of mobile interconnection. The method comprises the following steps: acquiring a message sending request, wherein the message sending request comprises an identifier of a terminal device, a first service type and service data; determining a first message template corresponding to a first service type according to a corresponding relation table, wherein the corresponding relation table comprises a plurality of service types and message templates corresponding to each service type; generating a first message according to the service data and the first message template, wherein the first message comprises at least one of the following: text, voice, video, picture, or links; performing text conversion processing on the first message to obtain a text message corresponding to the first message; and generating a target message according to the first message, the text message and the identification of the terminal equipment, and sending the target message to a second server, wherein the second server is used for sending the first message or the text message to the terminal equipment. The efficiency of message transmission is improved.

Description

Message sending method, device and server
Technical Field
The embodiment of the application relates to the technical field of mobile interconnection, in particular to a message sending method, a message sending device and a server.
Background
Mobile interconnection is centered on broadband technology, and can simultaneously provide high-quality telecommunication networks for voice, fax, data, image, multimedia, etc. The terminal device of the user may access the telecommunication network through the operator and use a plurality of applications of the terminal device through the telecommunication network.
The business can push business information or prompt business transaction by sending a message. In the related art, the message transmission can be performed as follows: the business may determine the business data to be sent in a business system in the server. And generating a message corresponding to the service data according to the service data, and sending the message corresponding to the service data to a server of an operator, so that the server of the operator sends the message corresponding to the service data to the terminal equipment used by the user. Since the message currently transmitted is a fifth generation mobile communication technology (5th Generation Mobile Communication Technology,5G) message, if the terminal device used by the user does not support the 5G service, the message cannot be received. And sending prompt information to the server of the enterprise only after the server of the operator confirms that the user cannot receive the 5G message. After receiving the prompt message sent by the server of the operator, the enterprise converts the 5G message into a common message and then sends the common message to the server of the operator. At this time, the server of the operator transmits a general message to the terminal device used by the user.
In the above process, after determining that the terminal used by the user cannot receive the 5G message, it is necessary to send a prompt message to the server of the enterprise, so that the server of the enterprise converts the 5G message into a common message and sends the common message to the server of the operator. After the server of the operator sends the common message to the terminal equipment used by the user, the user can only receive the message corresponding to the service data, so that the efficiency of sending the message is lower.
Disclosure of Invention
The embodiment of the application provides a message sending method, a message sending device and a server, which are used for solving the problem of low message sending efficiency.
In a first aspect, an embodiment of the present application provides a message sending method, applied to a first server, including:
acquiring a message sending request, wherein the message sending request comprises an identifier of terminal equipment, a first service type and service data;
determining a first message template corresponding to the first service type according to a corresponding relation table, wherein the corresponding relation table comprises a plurality of service types and message templates corresponding to each service type;
generating a first message according to the service data and the first message template, wherein the first message comprises at least one of the following components: text, voice, video, picture, or links;
Performing text conversion processing on the first message to obtain a text message corresponding to the first message;
generating a target message according to the first message, the text message and the identification of the terminal equipment, and sending the target message to a second server, wherein the second server is used for sending the first message or the text message to the terminal equipment.
In a second aspect, an embodiment of the present application provides a message sending method, applied to a second server, including:
receiving a target message sent by a first server, wherein the target message comprises a first message, a text message corresponding to the first message and an identifier of terminal equipment;
according to the identification of the terminal equipment, the first message is sent to the terminal equipment;
and sending the text message to the terminal equipment when the first message is determined to be not sent successfully.
In a third aspect, an embodiment of the present application provides a message sending apparatus, including:
the system comprises an acquisition module, a message sending module and a message sending module, wherein the acquisition module is used for acquiring a message sending request, and the message sending request comprises an identifier of terminal equipment, a first service type and service data;
the determining module is used for determining a first message template corresponding to the first service type according to a corresponding relation table, wherein the corresponding relation table comprises a plurality of service types and message templates corresponding to each service type;
The generating module is used for generating a first message according to the service data and the first message template, wherein the first message comprises at least one of the following components: text, voice, video, picture, or links;
the processing module is used for performing text conversion processing on the first message to obtain a text message corresponding to the first message;
and the sending module is used for generating a target message according to the first message, the text message and the identification of the terminal equipment, and sending the target message to a second server, wherein the second server is used for sending the first message or the text message to the terminal equipment.
In a fourth aspect, an embodiment of the present application provides a message sending apparatus, including:
the receiving module is used for receiving a target message sent by a first server, wherein the target message comprises a first message, a text message corresponding to the first message and an identifier of terminal equipment;
a sending module, configured to send the first message to the terminal device according to the identifier of the terminal device;
the sending module is further configured to send the text message to the terminal device when it is determined that the first message is not sent successfully.
In a fifth aspect, the present application provides a server comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory to implement the method of any one of the first or second aspects.
In a sixth aspect, the present application provides a computer readable storage medium having stored therein computer executable instructions for implementing the method according to any of the first or second aspects when executed by a processor.
In a seventh aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the method of any of the first or second aspects.
The message sending method, the message sending device and the message sending server provided by the embodiment of the application are that the first server obtains a message sending request, and the message sending request comprises the identification of the terminal equipment, the first service type and the service data. And determining a first message template corresponding to the first service type according to the corresponding relation table. And generating a first message according to the service data and the first message template. And simultaneously, performing text conversion processing on the first message to obtain a text message corresponding to the first message. And generating a target message according to the first message, the text message and the identification of the terminal equipment, and sending the target message to the second server so that the second server can send the first message or the text message corresponding to the first message to the terminal equipment. In the above process, the first server sends the first message and the text message corresponding to the first message to the second server at the same time when sending the message. After the second server determines that the terminal cannot receive the first message, the text message corresponding to the first message may be immediately sent to the terminal device. The process that the first server converts the first message into the text message after receiving the prompt message sent by the second server and then sends the text message to the second server is avoided, and the efficiency of message sending is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic diagram of an application scenario provided in an embodiment of the present application;
fig. 2 is a flow chart of a message sending method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a process for obtaining a message sending request according to an embodiment of the present application;
fig. 4 is a flow chart of another message sending method according to an embodiment of the present application;
fig. 5 is a schematic diagram of a process of generating a first message according to an embodiment of the present application;
FIG. 6 is a schematic diagram illustrating a message sending process according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a message sending device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of another message sending device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a server according to an embodiment of the present application.
Specific embodiments of the present application have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or fully authorized by each party, and the collection, use and processing of the related data need to comply with related laws and regulations and standards, and provide corresponding operation entries for the user to select authorization or rejection.
In the present application, "and/or" is merely an association relationship describing an association object, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist together, and B exists alone. In this context, the character "/" indicates that the front and rear associated objects are an "or" relationship.
The following at least one (item) or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b or c may represent: a, b, c, a and b, a and c, b and c, or a, b and c, wherein each of a, b, c may itself be an element, or may be a collection comprising one or more elements.
The term "at least one" in the present application means one or more. "plurality" means two or more.
In the present disclosure, "exemplary," "in some embodiments," "for example," "in other embodiments," etc. are used to indicate an example, instance, or illustration. Any embodiment or design described herein as "example" or "such as" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, the term use of an example is intended to present concepts in a concrete fashion.
It should be noted that the method and apparatus for data processing of the present application may be used in the field of mobile interconnection, and may also be used in any field other than the field of mobile interconnection, and the application field of the method and apparatus for sending a message of the present application is not limited.
In order to facilitate understanding, an application scenario to which the embodiment of the present application is applicable is described below with reference to fig. 1.
Fig. 1 is a schematic diagram of an application scenario provided in an embodiment of the present application. Referring to fig. 1, the server includes a first server 101, a second server 102, and a terminal device 103. The first server 101 is deployed in a room of an enterprise, and the second server 102 is deployed in a room of an operator. The first server 101 is provided with an enterprise business system, the second server 102 is provided with a database, and the terminal device 103 is provided with an application program. The terminal device 103 may be a mobile phone, a tablet computer, etc. When the enterprise needs to push the service information to the user, the service data to be pushed can be determined in the service system of the first server 101, and a message corresponding to the service data is generated. The first server 101 sends a service message to the second server 102 to cause the second server 102 to send a message to the terminal device 103. If the terminal device 103 does not receive the message, a prompt message is sent to the second server 102, where the prompt message is used to instruct the second server 102 that the sent message is not received. The second server 102 sends a prompt message to the first server 101 to prompt that the staff message of the enterprise was not sent successfully.
In the related art, the message transmission can be performed as follows: and after the server of the operator confirms that the user cannot receive the 5G message, sending prompt information to the server of the enterprise. After receiving the prompt message sent by the server of the operator, the enterprise converts the 5G message into a common message and then sends the common message to the server of the operator. At this time, the server of the operator transmits a general message to the terminal device used by the user. In the above process, after determining that the terminal used by the user cannot receive the 5G message, it is necessary to send a prompt message to the server of the enterprise, so that the server of the enterprise converts the 5G message into a common message and sends the common message to the server of the operator. After the server of the operator sends the common message to the terminal equipment used by the user, the user can only receive the message corresponding to the service data, so that the efficiency of sending the message is lower.
In the embodiment of the application, a first server acquires a message sending request, wherein the message sending request comprises an identifier of a terminal device, a first service type and service data. And determining a first message template corresponding to the first service type according to the corresponding relation table. And generating a first message according to the service data and the first message template. And simultaneously, performing text conversion processing on the first message to obtain a text message corresponding to the first message. And generating a target message according to the first message, the text message and the identification of the terminal equipment, and sending the target message to the second server so that the second server can send the first message or the text message corresponding to the first message to the terminal equipment. In the above process, the first server sends the first message and the text message corresponding to the first message to the second server at the same time when sending the message. After the second server determines that the terminal cannot receive the first message, the text message corresponding to the first message may be immediately sent to the terminal device. The process that the first server converts the first message into the text message after receiving the prompt message sent by the second server and then sends the text message to the second server is avoided, and the efficiency of message sending is improved.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 2 is a flow chart of a message sending method according to an embodiment of the present application. Referring to fig. 2, the method may include:
s201, the first server acquires a message sending request.
The first server may be deployed in a machine room of the enterprise.
The message transmission request includes an identification of the terminal device, a first service type, and service data.
The message sending request can be set in advance and stored in a preset storage space of the first server, and can be edited and sent in real time through terminal equipment used by enterprise staff, and the first server receives the message sending request sent by the terminal equipment.
For example, the message sending request may specifically be as shown in table 1:
TABLE 1
From the message transmission request shown in table 1, it can be determined that the first message corresponding to the message transmission request can be automatically pushed to the user at a timing (No. 9 per month). Therefore, the message transmission request shown in table 1 may be set in advance and stored in the preset storage space of the first server, and the first server may acquire the message transmission request shown in table 1 in the preset storage space at the preset time of 9 th month.
If the message sending request is edited in real time by the enterprise staff through the terminal equipment, the message sending request can be obtained according to the operation of the enterprise staff. Next, a procedure of acquiring a message transmission request will be described with reference to fig. 3. Fig. 3 is a schematic diagram of a process for obtaining a message sending request according to an embodiment of the present application. Referring to FIG. 3, interfaces 301-302 are included. Interfaces 301-302 are message pages provided by the terminal device. Referring to interface 301, in a message page provided by an application program of a terminal device, an enterprise staff member inputs a terminal device identifier ZDA-002, a first service type service 1 and a service data link 1 through a keyboard. After the input is completed, the sending button is clicked, the terminal device responds to the input clicking operation of the user, generates a message sending request, and sends the message sending request to the first server. Referring to interface 302, the message sending request is displayed in a message page provided by an application program of the terminal device, indicating that the message sending request is sent successfully.
S202, the first server determines a first message template corresponding to the first service type according to the corresponding relation table.
The corresponding relation table comprises a plurality of service types and message templates corresponding to the service types.
The message templates corresponding to each service type can be set in advance, and a corresponding relation table is generated according to the plurality of service types and the message templates corresponding to each service type and stored in a preset storage space of the first server.
The message template comprises at least one of the following: text, voice, video, pictures, or links. The message template can change the service data into clear and beautiful, and promote the reading interest and user experience of the user.
For example, the inclusion of voice in the message template may enable the user to quickly learn the content of the message directly through voice without extensive text reading. The message template comprises pictures or videos, so that a user can intuitively and clearly know key contents of the message. The message template comprises links, and the user can click on the links to know all business data related to the business or directly click on the links to conduct corresponding business transactions, so that the business transactions of the user are more convenient.
S203, the first server generates a first message according to the service data and the first message template.
The first message includes at least one of: text, voice, video, pictures, or links. The first message may be a 5G message.
The first server may generate the first message from the traffic data and the first message template by: determining at least one bit to be filled in a first message template; determining filling information corresponding to each bit to be filled in service data; and filling the filling information into the corresponding bit to be filled in the first message template to obtain the first message.
For example, according to the message transmission request shown in the above table 1, it is determined that the service data includes 9 days per month of 2023 of the repayment date and 2000 yuan of the repayment amount. According to the first service type shown in the above table 1, it is determined that the first message template corresponding to the first service type includes text and a link. If the message sending time is 2023, 4 and 5 days, the filling information corresponding to the text to be filled is 2023, 4 and 9 days, and the filling information corresponding to the link filling bit is the link address corresponding to the repayment page. And filling the 2 filling information into the corresponding bits to be filled in the first message template to obtain a first message. The first message may specifically be as shown in table 2:
TABLE 2
S204, the first server performs text conversion processing on the first message to obtain a text message corresponding to the first message.
The first server may perform text conversion processing on the first message to obtain a text message corresponding to the first message in the following manner: determining a first message type corresponding to the first message, wherein the first message type is a text type or a non-text type; if the first message type is the text type, performing format conversion processing on the first message to obtain a text message corresponding to the first message; and if the type of the first message is a non-text type, performing text extraction processing on the first message to obtain a text message corresponding to the first message.
For example, according to the first message shown in table 2 above, it may be determined that the first message includes text and a link, and then the first message type is determined to be a non-text type. At this time, text extraction processing is performed on the first message, so as to obtain a text message corresponding to the first message. The text message corresponding to the first message may be specifically as shown in table 3:
TABLE 3 Table 3
S205, the first server generates a target message according to the first message, the text message and the identification of the terminal equipment, and sends the target message to the second server.
The second server is used for sending the first message or the text message to the terminal equipment. The second server may be deployed in a machine room of the operator.
For example, according to the first message, the text message and the identification of the terminal device shown in the above example, the generated target message may be specifically shown in table 4:
TABLE 4 Table 4
The target message shown in table 4 may be compressed and the compressed target message may be sent to the second server.
S206, the second server receives the target message sent by the first server.
The target message comprises the first message, a text message corresponding to the first message and an identifier of the terminal equipment.
For example, the first server may compress the target message shown in table 4, and send the compressed target message to the second server.
S207, the second server sends a first message to the terminal equipment according to the identification of the terminal equipment.
For example, the second server analyzes the target message to obtain the first message shown in table 4, the text message corresponding to the first message, and the identifier of the terminal device. The second server sends a first message (enterprise A) to the terminal equipment according to the identification ZDA-001 of the terminal equipment, and the user honored the first message, pays 2000 yuan for 4 months and 9 days of the bill repayment day 2023, pays on the day of the repayment day, and can click a link or log in an application program before 9 days 2023 and 4 months for active repayment. https:// www.boc.cn/.
And S208, the second server sends the text message to the terminal equipment when determining that the first message is not sent successfully.
For example, if the terminal device cannot accept the first message sent by the second server and shown in the above example, the terminal device sends a response message to the second server. The response message indicates that the first message transmission failed. After receiving the response message sent by the terminal equipment, the second server sends text information (enterprise A) corresponding to the first message to the terminal equipment according to the identification ZDA-001 of the terminal equipment, and the user is in honor with the bill and pays for 2023, 4, 9, and the user can pay for 2000 yuan on the day of paying, and can log in the application program for active payoff before 2023, 4, 9.
The application provides a message sending method provided by an embodiment, wherein a first server acquires a message sending request. And the first server determines a first message template corresponding to the first service type according to the corresponding relation table. The first server generates a first message according to the service data and the first message template. And the first server performs text conversion processing on the first message to obtain a text message corresponding to the first message. The first server generates a target message according to the first message, the text message and the identification of the terminal equipment, and sends the target message to the second server. The second server receives the target message sent by the first server. And the second server sends the first message to the terminal equipment according to the identification of the terminal equipment. And the second server sends the text message to the terminal equipment when determining that the first message is not sent successfully. In the above process, the first server sends the first message and the text message corresponding to the first message to the second server at the same time when sending the message. After the second server determines that the terminal cannot receive the first message, the text message corresponding to the first message may be immediately sent to the terminal device. The process that the first server converts the first message into the text message after receiving the prompt message sent by the second server and then sends the text message to the second server is avoided, and the efficiency of message sending is improved.
On the basis of any one of the above embodiments, a detailed procedure for determining message transmission will be described below with reference to fig. 4.
Fig. 4 is a flowchart of another message sending method according to an embodiment of the present application. Referring to fig. 4, the method includes:
s401, the first server acquires a message sending request.
It should be noted that, the execution process of S401 may refer to S201, which is not described herein.
S402, the first server determines a first message template corresponding to the first service type according to the corresponding relation table.
The corresponding relation table comprises a plurality of service types and message templates corresponding to the service types.
The first message template may include at least one material, where the material is at least one of: text, voice, video, picture, links.
The message templates corresponding to each service type can be set in advance, and a corresponding relation table is generated according to the plurality of service types and the message templates corresponding to each service type and stored in a preset storage space of the first server. And simultaneously, the corresponding relation table and the message templates are sent to the second server, and if the first server updates the corresponding relation table or the message templates, the updated corresponding relation table or the updated message templates are sent to the second server, so that the corresponding relation table and the message templates stored in the second server can be updated in time.
S403, the first server generates a first message according to the service data and the first message template.
For example, the message sending request may specifically be as shown in table 5:
TABLE 5
And determining a first message template corresponding to business transaction pushing as a template 1 according to the corresponding relation table.
Determining at least one bit to be filled in the first message template;
determining filling information corresponding to each bit to be filled in the service data;
and filling the filling information into the corresponding bit to be filled in the first message template to obtain the first message.
Next, a process of generating the first message will be described with reference to fig. 5. Fig. 5 is a schematic diagram of a process of generating a first message according to an embodiment of the present application. Referring to fig. 5, a first message template 501 and a first message 502 are included. The first message template 501 pushes the corresponding message template for the business transaction. The first message template 501 includes 1 picture material and 2 text materials. The text materials are respectively a header to-be-filled bit 1 and a contact way to-be-filled bit 2. The picture material comprises a business data to-be-filled bit 3. The padding information corresponding to each bit to be padded is determined in the traffic data shown in table 5. And the filling information of the bit 1 to be filled is service information pushing. The filling information of the bit 2 to be filled is the contact way: a telephone number 1; telephone number 2. The filling information of the to-be-filled bit 3 is financial product 1 and product information 1; financial products 2, product information 2; financial products 3, product information 3. In the first message template 501, the above padding information is padded to the corresponding bits to be padded, so as to obtain the first message 502.
S404, the first server determines a first message type corresponding to the first message.
The first message type is a text type or a non-text type.
The first server may determine a first message type corresponding to the first message by: if the first message comprises at least one of voice, video, picture or link, determining that the first message type is a non-text type; if the first message includes text and does not include voice, video, picture and link, then the first message type is determined to be the text type.
For example, from the first message 502 shown in fig. 5, it is determined that text and pictures are included in the first message 502. It may be determined that the first message type corresponding to the first message 502 is a non-text type.
And S405, if the first message type is the text type, the first server performs format conversion processing on the first message to obtain a text message corresponding to the first message.
For example, if the first message is a text message as shown in table 4, it may be determined that the first message type corresponding to the first message is a text type. At this time, the first server performs format conversion processing on the first message, and obtains a text message corresponding to the first message.
S406, if the type of the first message is a non-text type, the first server performs text extraction processing on the first message to obtain a text message corresponding to the first message.
The first server may perform text extraction processing on the first message to obtain a text message corresponding to the first message in the following manner: if the first message comprises the picture, carrying out text recognition and extraction processing on the picture to obtain a first conversion text; if the first message comprises voice, performing text conversion processing on the voice to obtain a second converted text; if the first message comprises a video, extracting a voice fragment and a video frame from the video, performing text conversion processing on the voice fragment, and performing text recognition processing on the video frame to obtain a third converted text; if the first message comprises the link, determining a webpage corresponding to the link, and extracting a text in the webpage to obtain a fourth conversion text; a text message is determined based on at least one of the first converted text, the second converted text, the third converted text, and the fourth converted text.
If the first message includes a video, the video may be subjected to image extraction according to a preset frame number to obtain a plurality of images corresponding to the video, and then text recognition processing is performed on the plurality of images corresponding to the video.
If the text with the same or similar semantic meaning exists in the first conversion text, the second conversion text, the third conversion text and the fourth conversion text, the text message only keeps any one conversion text of the first conversion text, the second conversion text, the third conversion text and the fourth conversion text.
For example, according to the first message 502 shown in fig. 5, it may be determined that a picture is included in the first message. Carrying out text recognition and extraction processing on the pictures to obtain a first converted text as a financial product 1 and product information 1; financial products 2, product information 2; financial products 3, product information 3. From the text of the first message 502 and the first converted text, determining the text message corresponding to the first message 502 may specifically be as shown in table 6:
TABLE 6
S407, the first server generates a target message according to the first message, the text message and the identification of the terminal equipment, and sends the target message to the second server.
For example, the identifier of the terminal device shown in table 5 is compressed into the first message 502 shown in table 5 and the text message shown in table 6, and the target message is generated and transmitted to the second server.
S408, the second server sends a first message to the terminal equipment according to the identification of the terminal equipment.
The second server may send the first message to the terminal device according to the identifier of the terminal device by: analyzing the target message to obtain a first message, a text message and an identifier of the terminal equipment; and sending a first message to the terminal equipment according to the identification of the terminal equipment.
For example, the second server may analyze the target message shown in the foregoing example, and the obtained first message, the text message, and the identifier of the terminal device may be specifically shown in table 7:
TABLE 7
The second server sends the first message 502 shown in fig. 5 described above to the terminal device according to the identification DNA-005 of the terminal device shown in table 7.
S409, the second server receives the response message sent by the terminal equipment.
The response message is used to indicate whether the first message was sent successfully.
S410, if the response message indicates that the first message is failed to be sent, the second server sends a text message to the terminal equipment.
For example, according to the above, the second server transmits the first message 502 shown in fig. 5 to the terminal device according to the identification DNA-005 of the terminal device shown in table 7. If the second server receives the response message sent by the terminal equipment, indicating that the first message is failed to be sent. At this time, the second server transmits the text message shown in the above Table 7 to the terminal device according to the identification DNA-005 of the terminal device.
According to the message sending method provided by the embodiment of the application, the first server acquires the message sending request. And the first server determines a first message template corresponding to the first service type according to the corresponding relation table. The first server generates a first message according to the service data and the first message template. And the first server performs text conversion processing on the first message to obtain a text message corresponding to the first message. The first server generates a target message according to the first message, the text message and the identification of the terminal equipment, and sends the target message to the second server. The second server receives the target message sent by the first server. And the second server sends the first message to the terminal equipment according to the identification of the terminal equipment. And the second server sends the text message to the terminal equipment when determining that the first message is not sent successfully. In the above process, the first server sends the first message and the text message corresponding to the first message to the second server at the same time when sending the message. After the second server determines that the terminal cannot receive the first message, the text message corresponding to the first message may be immediately sent to the terminal device. The process that the first server converts the first message into the text message after receiving the prompt message sent by the second server and then sends the text message to the second server is avoided, and the efficiency of message sending is improved.
On the basis of any one of the above embodiments, a procedure of determining message transmission will be exemplified below with reference to fig. 6.
Fig. 6 is a schematic diagram of a message sending process according to an embodiment of the present application. Referring to fig. 6, the server includes a first server 601, a second server 602, and a terminal device 603. The first server 601 is deployed in a room of an enterprise and the second server 602 is deployed in a room of an operator. The first server 601 is provided with an enterprise business system, the second server 602 is provided with a database, and the terminal device 603 is provided with an application program. The terminal device 603 may be a mobile phone, a tablet computer, etc.
The first server 601 obtains a messaging request set by an enterprise staff member. The message sending request may specifically be as shown in table 8:
TABLE 8
The first server 601 determines that the first service type is a balance alert according to the message sending request shown in table 8. The first server 601 obtains a corresponding relation table from a preset storage space, and determines a first message template corresponding to balance reminding as a message template A according to the corresponding relation table. Message template a may be specifically as shown in table 9:
TABLE 9
The first server 601 determines that there are two bits to be filled, bit 1 and bit 2 to be filled, respectively, in the message template a shown in table 9. According to the service data shown in the above table 8, it is determined that the padding information corresponding to the bit 1 to be padded is 2023, 4, 21 days, and it is determined that the padding information corresponding to the bit 2 to be padded is 1600 yuan. The first server 601 fills the filling information into the corresponding bits to be filled in the message template a, and the specific result of the first message may be as shown in table 10:
Table 10
The first server 601 determines, according to the first message shown in table 10, that the first message type corresponding to the first message is a text type. The first server 601 performs format conversion processing on the first message, and obtains a text message corresponding to the first message. The text message is identical to the text content of the first message and has a different format. The first server 601 compresses the first message, the text message, and the identifier of the terminal device, generates a target message, and sends the target message to the second server 602.
The second server 602 receives the target message sent by the first server 601, and performs parsing processing on the target message, so as to obtain the first message, the text message, and the identifier of the terminal device, which may be specifically shown in table 11:
TABLE 11
The second server 602 sends the first message shown in table 11 to the terminal device 603 according to the identification ZDB-003 of the terminal device shown in table 11. The second server 602 receives a response message sent by the terminal device 603. If the response message indicates that the first message was sent successfully, the second server 602 determines that the first message was sent successfully. If the response message indicates that the first message transmission fails, the second server 602 transmits a text message shown in table 11 to the terminal device 603 according to the identification ZDB-003 of the terminal device.
According to the message sending method provided by the embodiment of the application, the first server acquires the message sending request. And the first server determines a first message template corresponding to the first service type according to the corresponding relation table. The first server generates a first message according to the service data and the first message template. And the first server performs text conversion processing on the first message to obtain a text message corresponding to the first message. The first server generates a target message according to the first message, the text message and the identification of the terminal equipment, and sends the target message to the second server. The second server receives the target message sent by the first server. And the second server sends the first message to the terminal equipment according to the identification of the terminal equipment. And the second server sends the text message to the terminal equipment when determining that the first message is not sent successfully. In the above process, the first server sends the first message and the text message corresponding to the first message to the second server at the same time when sending the message. After the second server determines that the terminal cannot receive the first message, the text message corresponding to the first message may be immediately sent to the terminal device. The process that the first server converts the first message into the text message after receiving the prompt message sent by the second server and then sends the text message to the second server is avoided, and the efficiency of message sending is improved.
Fig. 7 is a schematic structural diagram of a message sending device according to an embodiment of the present application. Referring to fig. 7, the message transmission apparatus 10 is provided in a first server, and the message transmission apparatus 10 may include:
an obtaining module 11, configured to obtain a message sending request, where the message sending request includes an identifier of a terminal device, a first service type, and service data;
a determining module 12, configured to determine a first message template corresponding to the first service type according to a correspondence table, where the correspondence table includes a plurality of service types and message templates corresponding to each service type;
a generating module 13, configured to generate a first message according to the service data and the first message template, where the first message includes at least one of the following: text, voice, video, picture, or links;
the processing module 14 is configured to perform text conversion processing on the first message, so as to obtain a text message corresponding to the first message;
and the sending module 15 is configured to generate a target message according to the first message, the text message, and the identifier of the terminal device, and send the target message to a second server, where the second server is configured to send the first message or the text message to the terminal device.
In one possible implementation, the processing module 14 is specifically configured to:
determining a first message type corresponding to the first message, wherein the first message type is a text type or a non-text type;
if the first message type is the text type, performing format conversion processing on the first message to obtain a text message corresponding to the first message;
and if the type of the first message is the non-text type, performing text extraction processing on the first message to obtain a text message corresponding to the first message.
In one possible implementation, the processing module 14 is specifically configured to:
if the first message comprises at least one of voice, video, picture or link, determining that the first message type is a non-text type;
if the first message includes text and does not include voice, video, picture and link, determining that the first message type is a text type.
In one possible implementation, the processing module 14 is specifically configured to:
if the first message comprises a picture, performing text recognition and extraction processing on the picture to obtain a first conversion text;
If the first message comprises voice, performing text conversion processing on the voice to obtain a second converted text;
if the first message comprises a video, extracting a voice fragment and a video frame from the video, performing text conversion processing on the voice fragment, and performing text recognition processing on the video frame to obtain a third converted text;
if the first message comprises a link, determining a webpage corresponding to the link, and extracting a text in the webpage to obtain a fourth conversion text;
the text message is determined according to at least one of the first converted text, the second converted text, the third converted text and the fourth converted text.
In a possible embodiment, the generating module 13 is specifically configured to:
determining at least one bit to be filled in the first message template;
determining filling information corresponding to each bit to be filled in the service data;
and filling the filling information into the corresponding bit to be filled in the first message template to obtain the first message.
The message sending device provided by the embodiment of the application can execute the technical scheme shown in the embodiment of the method, and the implementation principle and the beneficial effects are similar, and the detailed description is omitted.
Fig. 8 is a schematic structural diagram of another message sending device according to an embodiment of the present application. Referring to fig. 8, the message transmission apparatus 20 is provided in the second server, and the message transmission apparatus 20 may include:
a receiving module 21, configured to receive a target message sent by a first server, where the target message includes a first message, a text message corresponding to the first message, and an identifier of a terminal device;
a sending module 22, configured to send the first message to the terminal device according to the identifier of the terminal device;
the sending module is further configured to send the text message to the terminal device when it is determined that the first message is not sent successfully.
In one possible implementation, the sending module 22 is specifically configured to:
analyzing the target message to obtain the first message, the text message and the identification of the terminal equipment;
and sending the first message to the terminal equipment according to the identification of the terminal equipment.
In one possible implementation, the sending module 22 is specifically configured to:
receiving a response message sent by the terminal equipment;
and if the response message indicates that the first message is failed to be sent, sending the text message to the terminal equipment.
The message sending device provided by the embodiment of the application can execute the technical scheme shown in the embodiment of the method, and the implementation principle and the beneficial effects are similar, and the detailed description is omitted.
Fig. 9 is a schematic structural diagram of a server according to an embodiment of the present application. Referring to fig. 9, the server 20 may include: a memory 21, and a processor 22. The memory 21, the processor 22, are illustratively interconnected by a bus 23.
The memory 21 is used for storing program instructions;
the processor 22 is configured to execute the program instructions stored in the memory, so as to cause the server 20 to perform the method shown in the above-described method embodiment.
The server provided by the embodiment of the application can execute the technical scheme shown in the embodiment of the method, and the implementation principle and the beneficial effects are similar, and are not repeated here.
Embodiments of the present application provide a computer-readable storage medium having stored therein computer-executable instructions for implementing the above-described method when the computer-executable instructions are executed by a processor.
Embodiments of the present application may also provide a computer program product comprising a computer program which, when executed by a processor, performs the above-described method.
All or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a readable memory. The program, when executed, performs steps including the method embodiments described above; and the aforementioned memory (storage medium) includes: read-only memory (ROM), random-access memory (RAM), flash memory, hard disk, solid state disk, magnetic tape, floppy disk, optical disk, and any combination thereof.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made to the embodiments of the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims and the equivalents thereof, the present application is also intended to include such modifications and variations.

Claims (12)

1. A method of messaging, applied to a first server, the method comprising:
acquiring a message sending request, wherein the message sending request comprises an identifier of terminal equipment, a first service type and service data;
determining a first message template corresponding to the first service type according to a corresponding relation table, wherein the corresponding relation table comprises a plurality of service types and message templates corresponding to each service type;
generating a first message according to the service data and the first message template, wherein the first message comprises at least one of the following components: text, voice, video, picture, or links;
performing text conversion processing on the first message to obtain a text message corresponding to the first message;
generating a target message according to the first message, the text message and the identification of the terminal equipment, and sending the target message to a second server, wherein the second server is used for sending the first message or the text message to the terminal equipment.
2. The method of claim 1, wherein performing text conversion processing on the first message to obtain a text message corresponding to the first message comprises:
Determining a first message type corresponding to the first message, wherein the first message type is a text type or a non-text type;
if the first message type is the text type, performing format conversion processing on the first message to obtain a text message corresponding to the first message;
and if the type of the first message is the non-text type, performing text extraction processing on the first message to obtain a text message corresponding to the first message.
3. The method of claim 2, wherein determining a first message type corresponding to the first message comprises:
if the first message comprises at least one of voice, video, picture or link, determining that the first message type is a non-text type;
if the first message includes text and does not include voice, video, picture and link, determining that the first message type is a text type.
4. A method according to claim 2 or 3, wherein performing text extraction processing on the first message to obtain a text message corresponding to the first message comprises:
if the first message comprises a picture, performing text recognition and extraction processing on the picture to obtain a first conversion text;
If the first message comprises voice, performing text conversion processing on the voice to obtain a second converted text;
if the first message comprises a video, extracting a voice fragment and a video frame from the video, performing text conversion processing on the voice fragment, and performing text recognition processing on the video frame to obtain a third converted text;
if the first message comprises a link, determining a webpage corresponding to the link, and extracting a text in the webpage to obtain a fourth conversion text;
the text message is determined according to at least one of the first converted text, the second converted text, the third converted text and the fourth converted text.
5. The method of any of claims 1-4, wherein generating the first message comprises:
determining at least one bit to be filled in the first message template;
determining filling information corresponding to each bit to be filled in the service data;
and filling the filling information into the corresponding bit to be filled in the first message template to obtain the first message.
6. A message sending method applied to a second server, comprising:
Receiving a target message sent by a first server, wherein the target message comprises a first message, a text message corresponding to the first message and an identifier of terminal equipment;
according to the identification of the terminal equipment, the first message is sent to the terminal equipment;
and sending the text message to the terminal equipment when the first message is determined to be not sent successfully.
7. The method of claim 6, wherein transmitting the first message to the terminal device based on the identity of the terminal device comprises:
analyzing the target message to obtain the first message, the text message and the identification of the terminal equipment;
and sending the first message to the terminal equipment according to the identification of the terminal equipment.
8. The method according to claim 6 or 7, wherein upon determining that the first message was not sent successfully, sending the text message to the terminal device comprises:
receiving a response message sent by the terminal equipment;
and if the response message indicates that the first message is failed to be sent, sending the text message to the terminal equipment.
9. A message transmission apparatus, the apparatus comprising:
The system comprises an acquisition module, a message sending module and a message sending module, wherein the acquisition module is used for acquiring a message sending request, and the message sending request comprises an identifier of terminal equipment, a first service type and service data;
the determining module is used for determining a first message template corresponding to the first service type according to a corresponding relation table, wherein the corresponding relation table comprises a plurality of service types and message templates corresponding to each service type;
the generating module is used for generating a first message according to the service data and the first message template, wherein the first message comprises at least one of the following components: text, voice, video, picture, or links;
the processing module is used for performing text conversion processing on the first message to obtain a text message corresponding to the first message;
and the sending module is used for generating a target message according to the first message, the text message and the identification of the terminal equipment, and sending the target message to a second server, wherein the second server is used for sending the first message or the text message to the terminal equipment.
10. A message transmission apparatus, the apparatus comprising:
the receiving module is used for receiving a target message sent by a first server, wherein the target message comprises a first message, a text message corresponding to the first message and an identifier of terminal equipment;
A sending module, configured to send the first message to the terminal device according to the identifier of the terminal device;
the sending module is further configured to send the text message to the terminal device when it is determined that the first message is not sent successfully.
11. A server, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 5 or the method of any one of claims 6 to 8.
12. A non-transitory computer readable storage medium storing computer instructions, wherein the computer instructions are for causing a computer to perform the method of any one of claims 1 to 5, or the method of any one of claims 6 to 8.
CN202310665267.1A 2023-06-06 2023-06-06 Message sending method, device and server Pending CN116709214A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310665267.1A CN116709214A (en) 2023-06-06 2023-06-06 Message sending method, device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310665267.1A CN116709214A (en) 2023-06-06 2023-06-06 Message sending method, device and server

Publications (1)

Publication Number Publication Date
CN116709214A true CN116709214A (en) 2023-09-05

Family

ID=87828714

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310665267.1A Pending CN116709214A (en) 2023-06-06 2023-06-06 Message sending method, device and server

Country Status (1)

Country Link
CN (1) CN116709214A (en)

Similar Documents

Publication Publication Date Title
WO2014206278A1 (en) Message query methods and devices
CN110855555B (en) Mail sending method, device, equipment and computer readable storage medium
CN107728892B (en) Picture display method, device, terminal and storage medium
EP3068070B1 (en) Method and device for initiating network conference
WO2019019645A1 (en) Method and apparatus for executing information pushing task, and computer device and storage medium
CN102938807B (en) A kind of method of recommending contact persons and message and device
CN103347137A (en) Method and device for processing user service handling data
CN108364171B (en) Graphic code generation method, resource sending and receiving method, device and electronic equipment
US20170200244A1 (en) Systems and Techniques for Integrating Electronic Signature Platforms with Social Messaging Applications for Authenticated Electronic Documents
CN104639973B (en) Information pushing method and device
CN114338793A (en) Message pushing method and device, electronic equipment and readable storage medium
CN106453582B (en) Asynchronous message pushing method and system
CN112788090B (en) Network resource transmission method, device and system
CN116709214A (en) Message sending method, device and server
CN109120509B (en) Information collection method and device
CN107688978A (en) The method and device of sequence information is repeated for detecting
CN116308236A (en) Mail processing method, mail processing device, electronic equipment and storage medium
CN105681523A (en) Method and apparatus for sending birthday blessing short message automatically
CN112637795B (en) On-hook short message transmission method, server, terminal equipment, system and storage medium
CN109344372B (en) Big data-based document generation method and system
CN115114114A (en) Data report generation method and device in online file feeding mode and related equipment
CN108023949A (en) dial-up networking method, system, intelligent terminal and server
CN114238585A (en) Query method and device based on 5G message, computer equipment and storage medium
CN110363537B (en) Remote surface signature screen calling method and device, storage medium and computer equipment
CN114282913A (en) Multi-main-body online signing method and device

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