CN114328828A - A message push method, apparatus, device and readable storage medium - Google Patents
A message push method, apparatus, device and readable storage medium Download PDFInfo
- Publication number
- CN114328828A CN114328828A CN202111595248.3A CN202111595248A CN114328828A CN 114328828 A CN114328828 A CN 114328828A CN 202111595248 A CN202111595248 A CN 202111595248A CN 114328828 A CN114328828 A CN 114328828A
- Authority
- CN
- China
- Prior art keywords
- message
- service data
- target message
- sent
- target
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 238000009877 rendering Methods 0.000 claims abstract description 39
- 230000004931 aggregating effect Effects 0.000 claims description 4
- 230000002776 aggregation Effects 0.000 claims description 4
- 238000004220 aggregation Methods 0.000 claims description 4
- 238000004590 computer program Methods 0.000 claims description 3
- 238000004891 communication Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域technical field
本申请涉及信息推送领域,特别是一种消息推送方法、装置、设备及可读存储介质。The present application relates to the field of information push, in particular to a message push method, apparatus, device and readable storage medium.
背景技术Background technique
随着社会科学技术的发展,互联网上业务消息通知形式多种多样,如邮件通知,微信通知,电话通知,站内消息等。而消息通知框架,可以把各类消息通知整合归一,减轻业务人员多类消息的管理压力,让其能更加注重消息的内容分析处理。With the development of social science and technology, there are various forms of business message notifications on the Internet, such as email notifications, WeChat notifications, phone notifications, and site messages. The message notification framework can integrate various types of message notifications, reduce the management pressure of multiple types of messages for business personnel, and allow them to pay more attention to the content analysis and processing of messages.
现有的消息通知框架只是单纯的便捷式消息发送工具,无法对输入的消息进行进一步的处理用以提高用户的工作效率,如何实现对输入消息的处理用于提高用户工作效率是人们关注的问题。The existing message notification framework is just a simple and convenient message sending tool, and cannot further process the input message to improve the work efficiency of the user. .
发明内容SUMMARY OF THE INVENTION
有鉴于此,本申请提供了一种消息推送方法、装置、设备及可读存储介质,用于提高用户的工作效率。In view of this, the present application provides a message push method, apparatus, device, and readable storage medium, which are used to improve the work efficiency of a user.
为了实现上述目的,现提出的方案如下:In order to achieve the above purpose, the proposed scheme is as follows:
一种消息推送方法,包括:A message push method, including:
获取用户输入的待发送消息,所述待发送消息包括业务数据调用命令、接收者地址、消息正文;Obtain a message to be sent input by the user, where the message to be sent includes a service data calling command, a recipient address, and a message body;
根据所述业务数据调用命令调用数据库中对应的业务数据;Invoke corresponding business data in the database according to the business data invocation command;
将所述对应的业务数据、消息正文聚合成第一目标消息;Aggregating the corresponding business data and message body into a first target message;
对所述第一目标消息进行渲染,得到第二目标消息;Rendering the first target message to obtain a second target message;
通过已记录的接收者地址对应的所有渠道,将所述第二目标消息发送至接收者地址。The second target message is sent to the recipient address through all channels corresponding to the recorded recipient address.
可选的,在根据所述业务数据调用命令调用数据库中对应的业务数据之前,还包括:Optionally, before calling the corresponding business data in the database according to the business data calling command, the method further includes:
判断所述待发送消息是否符合预设规则,所述预设规则包括不包含敏感词,及字数不超出预设阈值;Judging whether the to-be-sent message complies with a preset rule, the preset rule includes no sensitive words, and the number of words does not exceed a preset threshold;
若符合,则执行根据所述业务数据调用命令调用数据库中对应的业务数据的步骤;If so, execute the step of invoking the corresponding business data in the database according to the business data invocation command;
若不符合,则发送提示信息。If not, a prompt message will be sent.
可选的,所述根据所述业务数据调用命令调用数据库中对应的业务数据,包括:Optionally, the calling command to call the corresponding business data in the database according to the business data includes:
根据所述业务数据调用命令查询数据库中是否存在对应的业务数据,所述数据库中预先存储有业务数据;Query whether there is corresponding business data in the database according to the business data invocation command, where the business data is pre-stored in the database;
若存在,则调用与业务数据调用命令对应的业务数据。If it exists, call the service data corresponding to the service data calling command.
可选的,所述第一目标消息包括数字信息或文本信息,所述对所述第一目标消息进行渲染,得到第二目标消息,包括:Optionally, the first target message includes digital information or text information, and the rendering of the first target message to obtain the second target message includes:
当所述第一目标消息为文本信息时,将所述第一目标消息按预设文本模板进行编辑,得到编辑后的第二目标消息;When the first target message is text information, editing the first target message according to a preset text template to obtain an edited second target message;
当所述第一目标消息为数字信息时,将所述第一目标消息按预设表格模板进行编辑,得到编辑后的第二目标消息。When the first target message is digital information, the first target message is edited according to a preset form template to obtain an edited second target message.
可选的,所述待发送消息包括渲染命令,在对所述第一目标消息进行渲染之前,还包括:Optionally, the to-be-sent message includes a rendering command, and before rendering the first target message, further includes:
从预先存储的多个模板中,选取与所述渲染命令对应的预设文本模板或预设表格模板。From a plurality of pre-stored templates, a preset text template or a preset table template corresponding to the rendering command is selected.
一种消息推送装置,包括:A message push device, comprising:
消息获取单元,用于获取用户输入的待发送消息,所述待发送消息包括业务数据调用命令、接收者地址、消息正文;a message obtaining unit, configured to obtain a message to be sent input by a user, where the message to be sent includes a service data calling command, a recipient address, and a message body;
数据调用单元,用于根据所述业务数据调用命令调用数据库中对应的业务数据;a data calling unit, configured to call corresponding business data in the database according to the business data calling command;
消息聚合单元,用于将所述对应的业务数据、消息正文聚合成第一目标消息;a message aggregation unit, configured to aggregate the corresponding service data and message body into a first target message;
消息渲染单元,用于对所述第一目标消息进行渲染,得到第二目标消息;a message rendering unit, configured to render the first target message to obtain a second target message;
消息发送单元,用于通过已记录的接收者地址对应的所有渠道,将所述第二目标消息发送至接收者地址。A message sending unit, configured to send the second target message to the recipient address through all channels corresponding to the recorded recipient address.
可选的,本装置还包括:Optionally, the device further includes:
预警单元,用于在执行所述数据调用单元之前,判断所述待发送消息是否符合预设规则,所述预设规则包括不包含敏感词,及字数不超出预设阈值,当所述待发送消息符合预设规则时,则执行所述数据调用单元,当所述待发送消息不符合预设规则时,则发送提示信息。an early warning unit, used to judge whether the to-be-sent message complies with a preset rule before executing the data calling unit, the preset rule includes no sensitive words, and the number of words does not exceed a preset threshold, when the to-be-sent message When the message conforms to the preset rule, the data calling unit is executed, and when the message to be sent does not conform to the preset rule, prompt information is sent.
可选的,所述消息渲染单元,包括:Optionally, the message rendering unit includes:
第一消息渲染子单元,用于当所述第一目标消息为文本信息时,将所述第一目标消息按预设文本模板进行编辑,得到编辑后的第二目标消息;a first message rendering subunit, configured to edit the first target message according to a preset text template when the first target message is text information to obtain an edited second target message;
第二消息渲染子单元,用于当所述第一目标消息为数字信息时,将所述第一目标消息按预设表格模板进行编辑,得到编辑后的第二目标消息。The second message rendering subunit is configured to edit the first target message according to a preset form template when the first target message is digital information to obtain an edited second target message.
一种消息推送设备,包括存储器和处理器;A message push device includes a memory and a processor;
所述存储器,用于存储程序;the memory for storing programs;
所述处理器,用于执行所述程序,实现前述消息推送方法的各个步骤。The processor is configured to execute the program to implement each step of the foregoing message push method.
一种可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时,实现前述消息推送方法的各个步骤。A readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements each step of the foregoing message pushing method.
从上述的技术方案可以看出,本申请实施例提供的一种消息推送方法、装置、设备及可读存储介质,本申请通过获取用户输入的待发送消息,待发送消息包括业务数据调用命令、接收者地址、消息正文,根据业务数据调用命令调用数据库中对应的业务数据,将对应的业务数据、消息正文聚合成第一目标消息,对第一目标消息进行渲染,得到第二目标消息,通过已记录的接收者地址对应的所有渠道,将第二目标消息发送至接收者地址。通过在待发送消息中的增加业务数据调用命令实现对相应业务数据的调用,避免了人工去数据库中查找相应业务数据,使得用户在发送消息时可以缩短消息的输入内容和减少输入时长,进一步的通过对消息的渲染,减少了用户对消息的阅读理解的时间,提高了用户的工作效率。It can be seen from the above technical solutions that, in the method, device, device and readable storage medium for message push provided by the embodiments of the present application, the present application obtains the message to be sent input by the user, and the message to be sent includes a service data call command, The recipient address and message body, call the corresponding business data in the database according to the business data calling command, aggregate the corresponding business data and message body into the first target message, render the first target message, and obtain the second target message, and pass All channels corresponding to the recorded recipient address send the second target message to the recipient address. By adding a business data call command in the message to be sent, the corresponding business data can be called, avoiding the need to manually search for the corresponding business data in the database, so that the user can shorten the input content of the message and reduce the input time when sending a message, and further By rendering the message, the time for the user to read and understand the message is reduced, and the work efficiency of the user is improved.
附图说明Description of drawings
图1为本申请实施例提供的一种消息推送方法流程图;1 is a flowchart of a method for pushing messages according to an embodiment of the present application;
图2为本申请实施例提供的一种文本渲染示意图;2 is a schematic diagram of text rendering provided by an embodiment of the present application;
图3为本申请实施例提供的一种数字渲染示意图;3 is a schematic diagram of a digital rendering provided by an embodiment of the present application;
图4为本申请实施例提供的一种消息推送装置结构示意图;FIG. 4 is a schematic structural diagram of a message pushing apparatus provided by an embodiment of the present application;
图5为本申请实施例提供的一种消息推送设备的硬件结构框图。FIG. 5 is a block diagram of a hardware structure of a message pushing device according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
图1为本申请实施例提供的一种消息推送方法流程图,该方法可以包括以下步骤:FIG. 1 is a flowchart of a method for pushing a message according to an embodiment of the present application, and the method may include the following steps:
步骤S100、获取用户输入的待发送消息,所述待发送消息包括业务数据调用命令、接收者地址、消息正文。Step S100: Obtain a message to be sent input by a user, where the message to be sent includes a service data calling command, a recipient address, and a message body.
具体的,所述待发送消息可以包括业务数据调用命令、接收者地址、消息正文,可以通过多种互联网渠道获取用户输入的待发送消息,可以通过终端获取用户输入的待发送消息,终端可以是手机或电脑等具有消息发送功能的电子产品。Specifically, the message to be sent may include a service data call command, recipient address, and message body, the message to be sent input by the user may be obtained through various Internet channels, and the message to be sent input by the user may be obtained through a terminal, and the terminal may be Electronic products with message sending function, such as mobile phones or computers.
步骤S110、根据所述业务数据调用命令调用数据库中对应的业务数据。Step S110, calling corresponding business data in the database according to the business data calling command.
具体的,业务数据调用命令可以根据用户需求进行设定,示例如调用当月或某个时间段的流水或对账差异的命令,相应的可以从数据库中调用对应的业务数据。Specifically, the business data invocation command can be set according to user requirements, for example, a command for invoking the current month or a certain period of time or the reconciliation difference command, and corresponding business data can be invoked from the database accordingly.
步骤S120、将所述对应的业务数据、消息正文聚合成第一目标消息。Step S120: Aggregate the corresponding service data and message body into a first target message.
具体的,第一目标消息可以包含消息正文,及与业务数据调用命令对应的业务数据,可以将业务数据、消息正文聚合成第一目标消息,聚合形式可以根据需求进行设定。Specifically, the first target message may include a message body and service data corresponding to the service data calling command, the service data and the message body may be aggregated into the first target message, and the aggregation form may be set according to requirements.
步骤S130、对所述第一目标消息进行渲染,得到第二目标消息。Step S130: Render the first target message to obtain a second target message.
具体的,为了使接受者及用户更清楚的明白消息的内容,可以对第一目标消息进行渲染,使得渲染后的第一目标消息简洁明了,减少接受者及用户对消息的理解时间,并将渲染后的第一目标消息作为第二目标消息。Specifically, in order to make the recipient and the user understand the content of the message more clearly, the first target message can be rendered, so that the rendered first target message is concise and clear, reducing the time for the recipient and the user to understand the message, and The rendered first target message is used as the second target message.
步骤S140、通过已记录的接收者地址对应的所有渠道,将所述第二目标消息发送至接收者地址。Step S140: Send the second target message to the recipient address through all channels corresponding to the recorded recipient address.
具体的,已记录的接收者地址对应的所有渠道可以是多种多样的,示例如邮件通知,微信通知,电话通知,站内消息等,可以通过这些已记录的渠道将第二目标消息发送至接收者地址。Specifically, all channels corresponding to the recorded recipient addresses can be various, such as email notifications, WeChat notifications, phone notifications, in-site messages, etc. The second target message can be sent to the recipient through these recorded channels address of the person.
在本申请实施例中,通过获取用户输入的待发送消息,待发送消息包括业务数据调用命令、接收者地址、消息正文,根据业务数据调用命令调用数据库中对应的业务数据,将对应的业务数据、消息正文聚合成第一目标消息,对第一目标消息进行渲染,得到第二目标消息,通过已记录的接收者地址对应的所有渠道,将第二目标消息发送至接收者地址。通过在待发送消息中的增加业务数据调用命令实现对相应业务数据的调用,避免了人工去数据库中查找相应业务数据,使得用户在发送消息时可以缩短消息的输入内容和减少输入时长,进一步的通过对消息的渲染,减少了用户对消息的阅读理解的时间,提高了用户的工作效率。In the embodiment of the present application, by acquiring a message to be sent input by the user, the message to be sent includes a business data call command, a recipient address, and a message body, and the corresponding business data in the database is called according to the business data call command, and the corresponding business data is called. , the message body is aggregated into the first target message, the first target message is rendered, the second target message is obtained, and the second target message is sent to the recipient address through all channels corresponding to the recorded recipient address. By adding a business data call command in the message to be sent, the corresponding business data can be called, avoiding the need to manually search for the corresponding business data in the database, so that the user can shorten the input content of the message and reduce the input time when sending a message, and further By rendering the message, the time for the user to read and understand the message is reduced, and the work efficiency of the user is improved.
在本申请的一些实施例中,考虑到消息内容可能包含一些敏感词或消息内容超出字数限制的问题,本方案在步骤S110、根据所述业务数据调用命令调用数据库中对应的业务数据之前,还可以包括以下步骤;In some embodiments of the present application, considering that the message content may contain some sensitive words or the message content exceeds the character limit, in step S110, before calling the corresponding business data in the database according to the business data calling command, in this solution, the The following steps can be included;
步骤S150、判断所述待发送消息是否符合预设规则。Step S150, judging whether the message to be sent conforms to a preset rule.
具体的,预设规则可以包括不包含敏感词,及字数不超出预设阈值,即判断待发送消息是否不包含敏感词,及字数是否不超出预设阈值。Specifically, the preset rules may include no sensitive words, and the number of words does not exceed the preset threshold, that is, it is determined whether the message to be sent does not contain sensitive words, and whether the number of words does not exceed the preset threshold.
步骤S151、若符合,则执行根据所述业务数据调用命令调用数据库中对应的业务数据的步骤。Step S151 , if it matches, execute the step of invoking the corresponding service data in the database according to the service data invoking command.
具体的,当待发送消息符合预设规则,即当待发送消息不包含敏感词及字数没有超出预设阈值时,可以执行根据所述业务数据调用命令调用数据库中对应的业务数据的步骤。Specifically, when the message to be sent complies with the preset rules, that is, when the message to be sent does not contain sensitive words and the number of words does not exceed the preset threshold, the step of calling corresponding business data in the database according to the business data calling command may be performed.
步骤S152、若不符合,则发送提示信息。Step S152 , if not, sending prompt information.
具体的,当待发送消息不符合预设规则,即当待发送消息包含敏感词或字数超出预设阈值时,可以发送提示信息,提示信息可以包括蜂鸣器报警、灯光闪烁、弹窗提示,或以手机短信的形式发送提示信息至用户。Specifically, when the message to be sent does not conform to the preset rules, that is, when the message to be sent contains sensitive words or the number of words exceeds the preset threshold, prompt information can be sent, and the prompt information can include buzzer alarm, light flashing, and pop-up window prompts. Or send prompt information to users in the form of mobile phone text messages.
在本申请的一些实施例中,对步骤S110、根据所述业务数据调用命令调用数据库中对应的业务数据的过程进行介绍,该过程可以包括以下步骤:In some embodiments of the present application, step S110, the process of invoking the corresponding business data in the database according to the business data invocation command is introduced, and the process may include the following steps:
S111、根据所述业务数据调用命令查询数据库中是否存在对应的业务数据。S111. Query whether there is corresponding service data in the database according to the service data calling command.
具体的,数据库中预先存储有业务数据,可以根据业务数据调用命令查询数据库中是否存在对应的业务数据,示例如查询当月或某个时间段的流水或对账差异。Specifically, business data is pre-stored in the database, and it is possible to query whether there is corresponding business data in the database according to the business data invocation command, for example, querying the current month or a certain period of time, or the difference in account reconciliation.
S112、若存在,则调用与业务数据调用命令对应的业务数据。S112: If it exists, call the service data corresponding to the service data calling command.
具体的,当查询到数据库中存在对应的业务数据时,可以调用对应的业务数据。Specifically, when it is queried that the corresponding service data exists in the database, the corresponding service data can be called.
在本申请的一些实施例中,考虑到第一目标消息可以包括数字信息或文本信息的情况,下面对步骤S130、对所述第一目标消息进行渲染,得到第二目标消息的过程进行介绍,该过程可以包括:In some embodiments of the present application, considering that the first target message may include digital information or text information, the following describes the process of step S130, rendering the first target message to obtain the second target message , the process can include:
步骤S131、当所述第一目标消息为文本信息时,将所述第一目标消息按预设文本模板进行编辑,得到编辑后的第二目标消息。Step S131 , when the first target message is text information, edit the first target message according to a preset text template to obtain an edited second target message.
具体的,预设文本模板可以根据需求进行设定,当第一目标消息为文本信息时,将第一目标消息按预设文本模板进行编辑,得到编辑后的第二目标消息,示例如图2所示,预设文本模板可以是告警文本1,业务数据调用命令可以是查询当日对账差异总数,可以通过业务查询器查询数据库中的当日对账差异数分别是2和4,得到的当日对账差异总数的实际值为6,接收者地址可以包括收件人、抄送人,消息正文可以包括发件人、发送方式、标题及内容,将消息正文及数据库查询得到的数据作为第一目标消息,按告警文本1的模板形式进行编辑,得到编辑后的第二目标消息如图2最右侧的文本框所示。Specifically, the preset text template can be set according to requirements. When the first target message is text information, the first target message is edited according to the preset text template to obtain the edited second target message. An example is shown in Figure 2 As shown, the preset text template can be
步骤S132、当所述第一目标消息为数字信息时,将所述第一目标消息按预设表格模板进行编辑,得到编辑后的第二目标消息。Step S132: When the first target message is digital information, edit the first target message according to a preset form template to obtain an edited second target message.
具体的,预设表格模板可以根据需求进行设定,当第一目标消息为数字信息时,将第一目标消息按预设表格模板进行编辑,得到编辑后的第二目标消息,示例如图3所示,预设表格模板可以是表格模板1,业务数据调用命令可以是查找12月的流水账单,得到编辑后的第二目标消息如图3最右侧的文本框所示。Specifically, the preset form template can be set according to requirements. When the first target message is digital information, the first target message is edited according to the preset form template to obtain the edited second target message. An example is shown in Figure 3 As shown, the preset form template may be
在本申请的一些实施例中,考虑到渲染的模板可能存在不同的接收者有不同的模板标准的情况,可以预先设定并存储多个模板,本方案在步骤S130、对所述第一目标消息进行渲染,得到第二目标消息之前,还可以包括:In some embodiments of the present application, considering that the rendered template may have different template standards for different recipients, multiple templates can be preset and stored. In this solution, in step S130, the first target The message is rendered, and before the second target message is obtained, it can also include:
步骤S160、从预先存储的多个模板中,选取与所述渲染命令对应的预设文本模板或预设表格模板。Step S160: Select a preset text template or a preset table template corresponding to the rendering command from a plurality of pre-stored templates.
具体的,渲染命令可以根据需求进行设定,不同的渲染命令对应不同的模板,可以通过渲染命令从预先存储的多个模板中,选取与所述渲染命令对应的预设文本模板或预设表格模板。Specifically, the rendering command can be set according to requirements. Different rendering commands correspond to different templates. The rendering command can be used to select a preset text template or preset table corresponding to the rendering command from a plurality of pre-stored templates. template.
下面对本申请实施例提供的消息推送装置进行描述,下文描述的消息推送装置与上文描述的消息推送方法可相互对应参照。The message pushing apparatus provided by the embodiments of the present application is described below, and the message pushing apparatus described below and the message pushing method described above may refer to each other correspondingly.
如图4所示,其公开了一种消息推送装置的结构示意图,该消息推送装置可以包括:As shown in FIG. 4, it discloses a schematic structural diagram of a message pushing apparatus, and the message pushing apparatus may include:
消息获取单元11,用于获取用户输入的待发送消息,所述待发送消息包括业务数据调用命令、接收者地址、消息正文;A
数据调用单元12,用于根据所述业务数据调用命令调用数据库中对应的业务数据;a
消息聚合单元13,用于将所述对应的业务数据、消息正文聚合成第一目标消息;a
消息渲染单元14,用于对所述第一目标消息进行渲染,得到第二目标消息;A
消息发送单元15,用于通过已记录的接收者地址对应的所有渠道,将所述第二目标消息发送至接收者地址。The
可选的,本装置,还可以包括:Optionally, the device may also include:
预警单元,用于在执行所述数据调用单元之前,判断所述待发送消息是否符合预设规则,所述预设规则包括不包含敏感词,及字数不超出预设阈值,当所述待发送消息符合预设规则时,则执行所述数据调用单元,当所述待发送消息不符合预设规则时,则发送提示信息。an early warning unit, used to judge whether the to-be-sent message complies with a preset rule before executing the data calling unit, the preset rule includes no sensitive words, and the number of words does not exceed a preset threshold, when the to-be-sent message When the message conforms to the preset rule, the data calling unit is executed, and when the message to be sent does not conform to the preset rule, prompt information is sent.
可选的,所述数据调用单元12,可以包括:Optionally, the
第一数据调用子单元,用于根据所述业务数据调用命令查询数据库中是否存在对应的业务数据,所述数据库中预先存储有业务数据;a first data calling subunit, configured to query whether there is corresponding business data in the database according to the business data calling command, where the business data is pre-stored in the database;
第二数据调用子单元,用于当查询到数据库中存在对应的业务数据时,则调用对应的业务数据。The second data calling subunit is used for calling the corresponding business data when the corresponding business data exists in the database.
可选的,所述第一目标消息可以包括数字信息或文本信息,所述消息渲染单元14,可以包括:Optionally, the first target message may include digital information or text information, and the
文本渲染单元,用于当所述第一目标消息为文本信息时,将所述第一目标消息按预设文本模板进行编辑,得到编辑后的第二目标消息;a text rendering unit, configured to edit the first target message according to a preset text template when the first target message is text information to obtain an edited second target message;
数字渲染单元,用于当所述第一目标消息为数字信息时,将所述第一目标消息按预设表格模板进行编辑,得到编辑后的第二目标消息。The digital rendering unit is configured to edit the first target message according to a preset form template when the first target message is digital information to obtain an edited second target message.
可选的,所述待发送消息可以包括渲染命令,本装置,还可以包括:Optionally, the to-be-sent message may include a rendering command, and the device may further include:
渲染模板选取单元,用于在执行消息渲染单元14之前,从预先存储的多个模板中,选取与所述渲染命令对应的预设文本模板或预设表格模板。The rendering template selection unit is configured to select a preset text template or a preset table template corresponding to the rendering command from a plurality of templates stored in advance before executing the
本申请实施例提供的消息推送装置可应用于消息推送设备。消息推送设备可以是终端。图5示出了消息推送设备的硬件结构框图,参照图5,消息推送设备的硬件结构可以包括:至少一个处理器1,至少一个通信接口2,至少一个存储器3和至少一个通信总线4;The message pushing apparatus provided in the embodiment of the present application can be applied to a message pushing device. The message pushing device may be a terminal. FIG. 5 shows a block diagram of the hardware structure of the message pushing device. Referring to FIG. 5 , the hardware structure of the message pushing device may include: at least one
在本申请实施例中,处理器1、通信接口2、存储器3、通信总线4的数量为至少一个,且处理器1、通信接口2、存储器3通过通信总线4完成相互间的通信;In the embodiment of the present application, the number of the
处理器1可能是一个中央处理器CPU,或者是特定集成电路ASIC(ApplicationSpecific Integrated Circuit),或者是被配置成实施本发明实施例的一个或多个集成电路等;The
存储器3可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatilememory)等,例如至少一个磁盘存储器;The
其中,存储器存储有程序,处理器可调用存储器存储的程序,所述程序用于:Wherein, the memory stores a program, and the processor can call the program stored in the memory, and the program is used for:
获取用户输入的待发送消息,所述待发送消息包括业务数据调用命令、接收者地址、消息正文;Obtain a message to be sent input by the user, where the message to be sent includes a service data calling command, a recipient address, and a message body;
根据所述业务数据调用命令调用数据库中对应的业务数据;Invoke corresponding business data in the database according to the business data invocation command;
将所述对应的业务数据、消息正文聚合成第一目标消息;Aggregating the corresponding business data and message body into a first target message;
对所述第一目标消息进行渲染,得到第二目标消息;Rendering the first target message to obtain a second target message;
通过已记录的接收者地址对应的所有渠道,将所述第二目标消息发送至接收者地址。The second target message is sent to the recipient address through all channels corresponding to the recorded recipient address.
可选的,所述程序的细化功能和扩展功能可参照上文描述。Optionally, the refinement function and extension function of the program may refer to the above description.
本申请实施例还提供一种存储介质,该存储介质可存储有适于处理器执行的程序,所述程序用于:An embodiment of the present application further provides a storage medium, where the storage medium can store a program suitable for the processor to execute, and the program is used for:
获取用户输入的待发送消息,所述待发送消息包括业务数据调用命令、接收者地址、消息正文;Obtain a message to be sent input by the user, where the message to be sent includes a service data calling command, a recipient address, and a message body;
根据所述业务数据调用命令调用数据库中对应的业务数据;Invoke corresponding business data in the database according to the business data invocation command;
将所述对应的业务数据、消息正文聚合成第一目标消息;Aggregating the corresponding business data and message body into a first target message;
对所述第一目标消息进行渲染,得到第二目标消息;Rendering the first target message to obtain a second target message;
通过已记录的接收者地址对应的所有渠道,将所述第二目标消息发送至接收者地址。The second target message is sent to the recipient address through all channels corresponding to the recorded recipient address.
可选的,所述程序的细化功能和扩展功能可参照上文描述。Optionally, the refinement function and extension function of the program may refer to the above description.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this document, relational terms such as first and second are used only to distinguish one entity or operation from another, and do not necessarily require or imply these entities or that there is any such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion such that a process, method, article or device comprising a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间可以相互组合,且相同相似部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The various embodiments can be combined with each other, and the same and similar parts may be referred to each other.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments enables any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, this application is not intended to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111595248.3A CN114328828A (en) | 2021-12-23 | 2021-12-23 | A message push method, apparatus, device and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111595248.3A CN114328828A (en) | 2021-12-23 | 2021-12-23 | A message push method, apparatus, device and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114328828A true CN114328828A (en) | 2022-04-12 |
Family
ID=81013284
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111595248.3A Pending CN114328828A (en) | 2021-12-23 | 2021-12-23 | A message push method, apparatus, device and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114328828A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013189338A2 (en) * | 2012-11-26 | 2013-12-27 | 中兴通讯股份有限公司 | Method, device and system for achieving multi-service server distribution of session initiation protocol |
WO2017067374A1 (en) * | 2015-10-22 | 2017-04-27 | 中兴通讯股份有限公司 | Message push method and push server |
CN107645524A (en) * | 2016-07-21 | 2018-01-30 | 腾讯科技(深圳)有限公司 | A kind of message push processing method and device |
US20180046984A1 (en) * | 2015-02-18 | 2018-02-15 | Zync Pty Ltd | Managing the generation of text messages |
CN110909122A (en) * | 2019-10-10 | 2020-03-24 | 重庆金融资产交易所有限责任公司 | Information processing method and related equipment |
CN111740895A (en) * | 2020-06-16 | 2020-10-02 | 东软睿驰汽车技术(沈阳)有限公司 | Message notification method and device |
CN111953579A (en) * | 2020-07-15 | 2020-11-17 | 广州市玄武无线科技股份有限公司 | Message generation method, system, terminal and storage medium |
CN113656735A (en) * | 2021-08-19 | 2021-11-16 | 携程商旅信息服务(上海)有限公司 | Message pushing system, method, electronic equipment and storage medium |
-
2021
- 2021-12-23 CN CN202111595248.3A patent/CN114328828A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013189338A2 (en) * | 2012-11-26 | 2013-12-27 | 中兴通讯股份有限公司 | Method, device and system for achieving multi-service server distribution of session initiation protocol |
US20180046984A1 (en) * | 2015-02-18 | 2018-02-15 | Zync Pty Ltd | Managing the generation of text messages |
WO2017067374A1 (en) * | 2015-10-22 | 2017-04-27 | 中兴通讯股份有限公司 | Message push method and push server |
CN107645524A (en) * | 2016-07-21 | 2018-01-30 | 腾讯科技(深圳)有限公司 | A kind of message push processing method and device |
CN110909122A (en) * | 2019-10-10 | 2020-03-24 | 重庆金融资产交易所有限责任公司 | Information processing method and related equipment |
CN111740895A (en) * | 2020-06-16 | 2020-10-02 | 东软睿驰汽车技术(沈阳)有限公司 | Message notification method and device |
CN111953579A (en) * | 2020-07-15 | 2020-11-17 | 广州市玄武无线科技股份有限公司 | Message generation method, system, terminal and storage medium |
CN113656735A (en) * | 2021-08-19 | 2021-11-16 | 携程商旅信息服务(上海)有限公司 | Message pushing system, method, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9560003B2 (en) | Erroneous addressing prevention for electronic messaging | |
US8499051B2 (en) | Multiple messaging communication optimization | |
WO2019157882A1 (en) | Method and device for labeling and filtering emails on basis of address list, server and system | |
EP3320499A1 (en) | Contact-based predictive response | |
US20100162132A1 (en) | Techniques to manage and display related communications | |
CN103916513A (en) | Method and device for recording communication message at communication terminal | |
CN105068726B (en) | Information processing method and terminal | |
WO2014117656A1 (en) | Mobile terminal and method for extracting communication contact information | |
WO2018000744A1 (en) | Contact person detail prompting method | |
CN104714970A (en) | E-mail classification method, sending end, receiving end and system | |
CN108768835B (en) | Mail analysis method, device, server and storage medium | |
CN104636438A (en) | Method and device for classifying and storing e-mails | |
CN112543210B (en) | Document sharing method, device, terminal, sharing server and storage medium | |
CN104994223A (en) | Text message editing method and device | |
EP2448226A1 (en) | Mobile phone messages processing method and mobile phone | |
TW201832521A (en) | Recipient determination method utilized in email replying process, and device | |
CN111934930B (en) | Mail contact person recommending method and device, electronic equipment and storage medium | |
CN111080223A (en) | Mail processing method, device and computer readable storage medium | |
CN114328828A (en) | A message push method, apparatus, device and readable storage medium | |
CN111949184B (en) | Method and device for creating document | |
CN107562222A (en) | A kind of data processing method and system | |
CN106897323A (en) | The processing method and processing device of message | |
CN113595884B (en) | Message reminding method and application terminal | |
CN104796519A (en) | Terminal | |
CN110933215A (en) | Call content recording method, communication terminal and computer 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 |