WO2019019645A1 - 信息推送任务执行方法、装置、计算机设备和存储介质 - Google Patents

信息推送任务执行方法、装置、计算机设备和存储介质 Download PDF

Info

Publication number
WO2019019645A1
WO2019019645A1 PCT/CN2018/078317 CN2018078317W WO2019019645A1 WO 2019019645 A1 WO2019019645 A1 WO 2019019645A1 CN 2018078317 W CN2018078317 W CN 2018078317W WO 2019019645 A1 WO2019019645 A1 WO 2019019645A1
Authority
WO
WIPO (PCT)
Prior art keywords
push
information
message
task
queue
Prior art date
Application number
PCT/CN2018/078317
Other languages
English (en)
French (fr)
Inventor
王强
刘浩
Original Assignee
深圳壹账通智能科技有限公司
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 深圳壹账通智能科技有限公司 filed Critical 深圳壹账通智能科技有限公司
Priority to SG11201913325TA priority Critical patent/SG11201913325TA/en
Publication of WO2019019645A1 publication Critical patent/WO2019019645A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0631Item recommendations

Definitions

  • the present application relates to information processing technologies, and in particular, to an information push task execution method, apparatus, computer device, and storage medium.
  • An information push task execution method comprising:
  • the information push task is generated by the service server according to the user consumption information
  • An information push task execution device comprising:
  • a queue monitoring module configured to listen to an information push task added by the service server in the task message queue; the information push task is generated by the service server according to user consumption information;
  • An information extraction module configured to extract user consumption information from the monitored information push task
  • a solution query module configured to query an information push scheme that matches the extracted user consumption information
  • a template obtaining module configured to obtain a message pushing template corresponding to the information pushing solution that is queried
  • a message body generating module configured to generate a push message body according to the extracted user consumption information and the obtained message push template
  • the message body pushing module is configured to push the generated push message body to the terminal registered by the user account included in the extracted user consumption information.
  • a computer device comprising a memory, a processor, and a computer program stored on the memory and operative on the processor, the processor executing the computer program to implement the following steps:
  • the information push task is generated by the service server according to the user consumption information
  • One or more storage media storing computer executable instructions that, when executed by one or more processors, cause the one or more processors to perform the following steps:
  • the information push task is generated by the service server according to the user consumption information
  • the above information push task execution method, device, computer device and storage medium ensure that the information push can be performed according to the matched information push scheme; and the push message body is generated according to the extracted user feed information and the obtained message push template, so that the generated push message is generated.
  • the body is targeted; the pushed push message body is matched with the user consumption information, thereby improving the accuracy of the information push.
  • FIG. 1 is an application environment diagram of an information push task execution method in an embodiment
  • FIG. 2 is a structural block diagram of a push server in an information push task execution system in an embodiment
  • FIG. 3 is a schematic flowchart of a method for executing an information push task in an embodiment
  • FIG. 4 is a schematic flow chart of steps of monitoring a task message queue in an embodiment
  • FIG. 5 is a schematic flowchart of steps of a query message pushing scheme in an embodiment
  • FIG. 6 is a schematic flow chart of a step of generating a push message body in an embodiment
  • FIG. 7 is a structural block diagram of an information push task execution apparatus in an embodiment
  • FIG. 8 is a structural block diagram of a queue listening module in an embodiment
  • FIG. 9 is a structural block diagram of a scheme query module in an embodiment
  • FIG. 10 is a structural block diagram of a message body generating module in an embodiment.
  • FIG. 1 is an application environment diagram of an information push task execution method in an embodiment.
  • the information push task execution method is applied to an information push task execution system.
  • the information push task execution system includes a terminal 110, a push server 120, a service server 130, a queue server 140, and a terminal 150.
  • the terminal 110 and the terminal 150 are connected to the push server 120, the service server 130, and the queue server 140 through a network, and the server 120 is pushed.
  • the service server 130 and the queue server 140 are connected through a network.
  • the terminal 110 and the terminal 150 may be a fixed terminal or a mobile terminal, and the fixed terminal may specifically be at least one of a printer, a scanner and a monitor, and the mobile terminal may specifically be a tablet computer, a smart phone, a personal data assistant, and a digital camera. At least one.
  • FIG. 2 is a schematic diagram showing the internal structure of the push server 120 in the information push task execution system of FIG. 1 in an embodiment.
  • the push server 120 includes a processor, a non-volatile storage medium, an internal memory, and a network interface connected by a system bus.
  • the processor of the push server 120 is used to provide computing and control capabilities to support the operation of the entire push server 120
  • the memory is used to store data, code instructions, etc.
  • the network interface is used for communication with the terminal 110, the queue server 130, the service server 140, and the terminal 150.
  • At least one computer executable instruction is stored on the memory, and the computer executable instruction can be executed by the processor to implement the information push task execution method applicable to the push server 120 provided in the embodiment of the present application.
  • the memory may include a non-volatile storage medium such as a magnetic disk, a optical disk, a read-only memory (ROM), or a random access memory (RAM).
  • the memory includes a non-volatile storage medium and an internal memory; the non-volatile storage medium stores an operating system, a database, and computer executable instructions, the database stores a plurality of message push schemes and messages a message push template corresponding to the push scheme, the computer executable instructions executable by the processor to implement the information push task execution method described above; the internal memory provides a cache for an operating system and computer executable instructions in the non-volatile storage medium Operating environment.
  • an information push task execution method is provided.
  • the method is applied to the push server 120 in FIG. 1 by using the method.
  • the method specifically includes the following content:
  • S302 The information pushing task added by the service server in the message queue of the monitoring task; the information pushing task is generated by the service server according to the user consumption information.
  • the terminal 150 can access the service server 140 through a browser or an installed business application.
  • the service server 140 provides service services to the terminal 150 through a browser or a business application.
  • the user enters a user account in the browser of the terminal 150 or the installed business application to log in to the business transaction page provided by the service server 140.
  • the user purchases the product through the service transaction page registered by the terminal 150.
  • the service server 140 acquires the product information and the user account purchased by the user, and generates user consumption information according to the obtained product information and the user account.
  • the user consumption information includes a product identifier, an order number of the purchased product, a consumption amount, and a user account, and may further include an application identifier; the product identifier includes a product name and a product number.
  • the service server 140 generates an information push task according to the user consumption information, and adds the information push task to the task message queue corresponding to the service.
  • the push server 120 listens to the task message for whether there is an information push task in the column.
  • the task message queue may be set on any one of the push server 120, the queue server 130, and the service server 140.
  • the service server 140 obtains the configured queue identifier, queries the task message queue corresponding to the obtained queue identifier in the queue server 130, and adds the generated information push task to the queried task message queue.
  • the push server 120 monitors the information push task added by the service server 140 in the task message queue, the push information task is obtained from the task message queue, and the user consumption information is extracted from the obtained information push task.
  • the application identifier and the program matching value obtained by the push server 120 from the extracted user consumption information are used to query the corresponding information pushing scheme from the database according to the application identifier, and the program matching value and the obtained information in the pushed information pushing scheme are detected. Whether the matching values of the schemes match, if the matching, the information pushing scheme that is queried is an available scheme; if not, the information pushing scheme that is queried is an unavailable scheme.
  • the user consumption information includes multiple types of consumption information.
  • the push server 120 obtains the consumption information type identifier in the extracted user consumption information, and identifies the information pushing scheme that matches the query according to the acquired consumption information type identifier.
  • the push server 120 may extract the application identifier and the service type in the user consumption information, and push the information according to the information matching the application identifier and the service type.
  • the push server 120 queries the information push scheme that matches the extracted user consumption information, extracts the message push template identifier from the queryed information push scheme, and queries the database corresponding to the extracted message push template identifier.
  • Message push template After the push server 120 queries the information push scheme that matches the extracted user consumption information, extracts the message push template identifier from the queryed information push scheme, and queries the database corresponding to the extracted message push template identifier.
  • the push server 120 queries the information to be pushed in the extracted user consumption information, and fills in the information to be pushed into the obtained message push template to generate a push message body.
  • the push server 120 obtains the user account from the extracted user consumption information, queries the terminal that is logged in by the obtained user account, and sends the push message body to the queried terminal.
  • the user can view the content of the message in the received push message body through the application or browser installed on the terminal.
  • S312 specifically includes: acquiring a push channel type corresponding to the queried message push scheme; and pushing the generated push message body to be included in the extract by using a push channel corresponding to the acquired push channel type The terminal to which the user account in the user consumption information is registered.
  • the push server 120 extracts a corresponding push channel type from the queried message push scheme, and the push channel type includes at least one of a short message type and an application type.
  • the push server 120 obtains the user account matching the extracted push channel type from the extracted user consumption information, and the push server 120 pushes the push message body to the obtained through the push channel corresponding to the extracted push channel type.
  • the user consumption information is extracted from the monitored information push task, and the information push scheme matching the extracted user consumption information is queried to ensure that the information is pushed.
  • Information can be pushed according to the matching information push scheme.
  • the message pushing template corresponding to the information pushing scheme is obtained, and the push message body is generated according to the extracted user information and the obtained message pushing template, so that the generated push message body is targeted.
  • the user account is obtained from the extracted user consumption information, and the targeted push message is sent to the terminal where the corresponding user account is logged in to ensure that the pushed push message body matches the user consumption information, thereby improving the accuracy of the information push. .
  • S302 specifically includes the step of monitoring a task message queue, and the step specifically includes the following:
  • S402. Receive a queue monitoring instruction uploaded by a terminal that logs in by using an administrator account.
  • the push administrator can push the administrator account input terminal 110 to log in to the queue monitoring configuration page provided by the push server 120, and the push administrator inputs the queue monitoring configuration information in the queue monitoring configuration page.
  • the queue monitoring configuration information includes a queue identifier, and at least one of a service type, a queue server address, and a parsing format identifier of the message pushing task.
  • the terminal 110 acquires the queue monitoring configuration information input in the queue monitoring configuration page, generates a queue listening instruction according to the queue monitoring configuration information, and sends the queue monitoring instruction to the push server 120.
  • the push server 120 receives the queue listening instruction uploaded by the terminal 110.
  • the push server 120 parses the queue listening instruction, extracts the queue monitoring configuration information in the queue listening instruction, and extracts the queue identifier from the queue monitoring configuration information.
  • a plurality of task message queues are established in the queue server 130, one application may correspond to one or more task message queues, and one task message queue corresponds to one application.
  • the push server 120 extracts the queue server address in the column listener configuration information, and accesses the queue server 130 according to the queue server address.
  • the push server 120 queries the task message queue in the queue server 130 based on the extracted queue identifier.
  • the push server 120 monitors whether the information push task added by the amateur server 140 exists in the queried message queue.
  • the information push task is generated by the service server 140 according to the user consumption information.
  • the queried task message queue is monitored to ensure that the correct task message queue is monitored, and the accuracy of the queue monitoring is provided.
  • S306 specifically includes the step of querying a message pushing scheme, and the step specifically includes the following content:
  • the user consumption information includes an application identifier and various types of consumption information, where each type of message information is respectively stored corresponding to the corresponding message type identifier.
  • the push server 120 extracts the application identifier and the message type identifier corresponding to the various types of consumption information from the user message information.
  • the message pushing scheme and the application identifier are stored in the database of the push server 120.
  • Each message pushing scheme corresponds to the application identifier, and one message pushing scheme may correspond to one application identifier, and one application identifier may correspond to one or more message pushing schemes.
  • the push server 120 queries a plurality of message pushing schemes corresponding to the application identifiers in the database, and obtains a message pushing scheme set corresponding to the application identifiers.
  • the push server 120 queries the message push scheme that matches the extracted message type identifier in the obtained message push scheme set.
  • the message push scheme set is obtained according to the application identifier, and the query scope of the message push scheme is reduced.
  • the message push scheme matching the message type identifier is queried in the obtained message push scheme set, and the accuracy of the query message push scheme is improved.
  • S310 specifically includes the step of generating a push message body, and the step specifically includes the following content:
  • the message push template includes fixed information and an information identifier of the information to be added.
  • the push server 120 extracts the information identifier of the information to be added in the obtained message push template.
  • the push server 120 searches for the matched information to be added in the extracted user consumption information according to the extracted information identifier.
  • the push server 120 adds the queried information to be added to the location corresponding to the information identifier in the message push template, and adds the queried information to be added to the message push template, and then adds the information according to the message push template.
  • Information and fixed information generate a complete push message body.
  • the information to be added corresponding to the information identifier is queried in the user consumption information, and the queried information to be added is added to the message push template to generate
  • the complete push message body matches the push message body with the user consumption information, which improves the accuracy of the push message body, and makes the push message body more targeted.
  • the push administrator inputs a push administrator account in the terminal 110, logs in to the queue listen configuration page of the push server 120, and sends a queue monitor command to the push server 120 by inputting the listen configuration information in the queue monitor configuration page.
  • the push server 120 After receiving the queue listening instruction, the push server 120 extracts the queue identifier in the queue listening instruction, and listens to the task message queue corresponding to the extracted queue identifier in the queue server 130, and listens to whether the service server 140 is added in the task message queue.
  • Information push task The information push task is generated by the service server 140 according to the user consumption information.
  • the user logs in to the business transaction page provided by the service server 140 by inputting the user account in the terminal 150, and the user purchases the product in the business transaction page, and the service server 140 generates corresponding user consumption information, and the user consumption information includes the application identifier. , order number, consumption amount, program matching value, user account and product identification.
  • the push server 120 monitors that there is a task message queue in the task message queue, extracting the user consumption information in the monitored task message queue, according to the application identifier, the product identifier, and the scheme matching value in the user consumption information, according to the application identifier and the product identifier.
  • the corresponding information pushing scheme is queried in the database, and it is checked whether the matching value of the scheme in the user consumption information is consistent with the matching value of the scheme in the information pushing scheme.
  • the push server 120 extracts the message push template identifier in the information push scheme when the scheme matching value in the user consumption information is consistent with the scheme matching value in the information pushing scheme, and obtains the message pushing template from the database according to the message pushing template identifier.
  • the push server 120 extracts the information identifier of the information to be added in the message push template, and queries the information to be added corresponding to the information identifier in the user consumption information, and adds the queried information to be added to the message push template to obtain the push message body.
  • the information to be added information is identified as an order number, a user account, and a spending amount.
  • the push server 120 extracts the user account in the user consumption information, and pushes the push message body to the terminal that logs in with the extracted user account.
  • an information push task execution apparatus 700 is provided.
  • the apparatus specifically includes the following contents: a queue monitoring module 702, an information extraction module 704, a scheme query module 706, a template acquisition module 708, and a message.
  • the queue monitoring module 702 is configured to listen to the information push task added by the service server in the task message queue; the information push task is generated by the service server according to the user consumption information.
  • the information extraction module 704 is configured to extract user consumption information from the monitored information pushing task.
  • the solution querying module 706 is configured to query an information pushing scheme that matches the extracted user consumption information.
  • the template obtaining module 708 is configured to obtain a message pushing template corresponding to the information pushing solution that is queried.
  • the message body generating module 710 is configured to generate a push message body according to the extracted user consumption information and the obtained message push template.
  • the message body pushing module 712 is configured to push the generated push message body to the terminal registered by the user account included in the extracted user consumption information.
  • the message body pushing module 712 is further configured to obtain a push channel type corresponding to the queried message push solution; and push the generated push message body to include by using a push channel corresponding to the acquired push channel type.
  • the user consumption information is extracted from the monitored information push task, and the information push scheme matching the extracted user consumption information is queried to ensure that the information is pushed.
  • Information can be pushed according to the matching information push scheme.
  • the message pushing template corresponding to the information pushing scheme is obtained, and the push message body is generated according to the extracted user information and the obtained message pushing template, so that the generated push message body is targeted.
  • the user account is obtained from the extracted user consumption information, and the targeted push message is sent to the terminal where the corresponding user account is logged in to ensure that the pushed push message body matches the user consumption information, thereby improving the accuracy of the information push. .
  • the queue monitoring module 702 specifically includes the following: a listening instruction receiving module 702a, a queue identifier extracting module 702b, a task queue querying module 702c, and a push task monitoring module 702d.
  • the monitoring instruction receiving module 702a is configured to receive a queue monitoring instruction uploaded by the terminal that logs in by the administrator account.
  • the queue identifier extraction module 702b is configured to extract a queue identifier in the queue monitor instruction.
  • the task queue query module 702c is configured to query, in the queue server, a task message queue corresponding to the extracted queue identifier.
  • the push task monitoring module 702d is configured to listen to the information push task added by the service server in the query task message queue.
  • the task message queue is queried in the queue server according to the queue identifier carried in the queue monitoring instruction, and the queried task message queue is monitored to ensure that the correct task message is monitored. Queue, which provides the accuracy of queue monitoring.
  • the solution query module 706 specifically includes: a type identifier extraction module 706a, a push scheme acquisition module 706b, and a push scheme query module 706c.
  • the type identifier extraction module 706a is configured to extract an application identifier in the user consumption information and a message type identifier of each type of consumption information.
  • the push solution obtaining module 706b is configured to obtain a message push solution set corresponding to the application identifier
  • the push scheme query module 706c is configured to query, in the acquired message push scheme set, a message push scheme that matches the extracted message type identifier.
  • the message identifier of the application identifier and various types of consumption information is extracted from the user consumption information, and the message pushing scheme set is obtained according to the application identifier, and the query scope of the message pushing scheme is reduced.
  • the message push scheme matching the message type identifier is queried in the obtained message push scheme set, and the accuracy of the query message push scheme is improved.
  • the message body generating module 710 specifically includes: an identifier extracting module 710a, an information querying module 710b, and an information adding module 710c.
  • the identifier extraction module 710a is configured to extract an information identifier of the information to be added from the obtained message push template.
  • the information querying module 710b is configured to query, in the extracted user consumption information, information to be added that matches the extracted information identifier.
  • the information adding module 710c is configured to add the queried information to be added to the obtained message push template to generate a push message body.
  • the information to be added corresponding to the information identifier is queried in the user consumption information, and the information to be added is added to the message push template, and is pushed according to the message.
  • the information and fixed information added in the template generate a complete push message body, which matches the push message body with the user consumption information, improves the accuracy of the push message body, and makes the push message body more targeted.
  • a computer device comprising: a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor executing the computer program, the following steps are performed: monitoring the information message queue added by the service server in the task message queue
  • the information push task is generated by the service server according to the user consumption information; the user consumption information is extracted from the monitored information push task; the information push scheme matching the extracted user consumption information is queried; and the information push scheme selected by the query is obtained.
  • Corresponding message push template ; generating a push message body according to the extracted user consumption information and the acquired message push template; and pushing the generated push message body to the terminal registered by the user account included in the extracted user consumption information.
  • the information pushing task added by the service server in the message queue of the monitoring task includes: receiving a queue listening instruction uploaded by the terminal logged in by pushing the administrator account; extracting the queue identifier in the queue listening instruction; and in the queue server Query the task message queue corresponding to the extracted queue identifier; listen to the information push task added by the service server in the task message queue that is queried.
  • the information pushing solution that matches the extracted user consumption information includes: extracting an application identifier in the user consumption information and a message type identifier of each type of consumption information; and acquiring a message pushing scheme set corresponding to the application identifier; The message push scheme matching the extracted message type identifier is queried in the obtained message push scheme set.
  • generating the push message body according to the extracted user consumption information and the obtained message push template including: extracting the information identifier of the information to be added from the obtained message push template; and extracting the user consumption information Querying the information to be added that matches the extracted information identifier; adding the queried information to be added to the obtained message push template to generate a push message body.
  • pushing the generated push message body to the terminal that is logged in by the user account included in the extracted user consumption information includes: acquiring a push channel type corresponding to the queried message push solution; The push channel corresponding to the push channel type pushes the generated push message body to the terminal registered by the user account included in the extracted user consumption information.
  • the user consumption information is extracted from the monitored information push task, and the information push scheme matching the extracted user consumption information is queried to ensure that the information is pushed.
  • Information can be pushed according to the matching information push scheme.
  • the message pushing template corresponding to the information pushing scheme is obtained, and the push message body is generated according to the extracted user information and the obtained message pushing template, so that the generated push message body is targeted.
  • the user account is obtained from the extracted user consumption information, and the targeted push message is sent to the terminal where the corresponding user account is logged in to ensure that the pushed push message body matches the user consumption information, thereby improving the accuracy of the information push. .
  • One or more storage media storing computer executable instructions that, when executed by one or more processors, cause one or more processors to perform the steps of: listening to information added by the business server in the task message queue
  • the push task is generated by the service server according to the user consumption information; the user consumption information is extracted from the monitored information push task; the information push scheme matching the extracted user consumption information is queried; and the information push scheme obtained by the query is obtained.
  • Corresponding message push template ; generating a push message body according to the extracted user consumption information and the acquired message push template; and pushing the generated push message body to the terminal registered by the user account included in the extracted user consumption information.
  • the information pushing task added by the service server in the message queue of the monitoring task includes: receiving a queue listening instruction uploaded by the terminal logged in by pushing the administrator account; extracting the queue identifier in the queue listening instruction; and in the queue server Query the task message queue corresponding to the extracted queue identifier; listen to the information push task added by the service server in the task message queue that is queried.
  • the information pushing solution that matches the extracted user consumption information includes: extracting an application identifier in the user consumption information and a message type identifier of each type of consumption information; and acquiring a message pushing scheme set corresponding to the application identifier; The message push scheme matching the extracted message type identifier is queried in the obtained message push scheme set.
  • generating the push message body according to the extracted user consumption information and the obtained message push template including: extracting the information identifier of the information to be added from the obtained message push template; and extracting the user consumption information Querying the information to be added that matches the extracted information identifier; adding the queried information to be added to the obtained message push template to generate a push message body.
  • pushing the generated push message body to the terminal that is logged in by the user account included in the extracted user consumption information includes: acquiring a push channel type corresponding to the queried message push solution; The push channel corresponding to the push channel type pushes the generated push message body to the terminal registered by the user account included in the extracted user consumption information.
  • the user consumption information is extracted from the monitored information push task, and the information push scheme matching the extracted user consumption information is queried to ensure that the information is pushed.
  • Information can be pushed according to the matching information push scheme.
  • the message pushing template corresponding to the information pushing scheme is obtained, and the push message body is generated according to the extracted user information and the obtained message pushing template, so that the generated push message body is targeted.
  • the user account is obtained from the extracted user consumption information, and the targeted push message is sent to the terminal where the corresponding user account is logged in to ensure that the pushed push message body matches the user consumption information, thereby improving the accuracy of the information push. .
  • the storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

一种信息推送任务执行方法、装置、计算机设备和存储介质,所述方法包括:监听任务消息队列中由业务服务器添加的信息推送任务;所述信息推送任务为所述业务服务器根据用户消费信息生成的(S302);从监听到的信息推送任务中提取用户消费信息(S304);查询与提取到的用户消费信息匹配的信息推送方案(S306);获取查询到的信息推送方案所对应的消息推送模板(S308);根据所述提取到的用户消费信息和获取的消息推送模板生成推送消息体(S310);将生成的推送消息体推送至以包含于所述提取到的用户消费信息的用户账号所登录的终端(S312)。保证了推送的推送消息体与用户消费信息相匹配,从而提高了信息推送的准确率。

Description

信息推送任务执行方法、装置、计算机设备和存储介质
本申请申明享有2017年7月24日递交的申请号为201710608515.3、名称为“信息推送任务执行方法、装置、计算机设备和存储介质”的中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。
技术领域
本申请涉及信息处理技术,特别是涉及一种信息推送任务执行方法、装置、计算机设备和存储介质。
背景技术
随着互联网技术的迅猛发展,各种电子商务平台也层出不穷,用户可以通过电子商务平台可以购买到各种商品,在购买过程中需要通过互联网向用户终端推送消费通知。传统的消费通知的推送过程中,推动的消费通知中的内容都是固定不变的。但是,用户的消费信息都是不相同的,因此,推送的消费通知不具有针对性。对于不同的用户,在推送固定内容的消费通知时可能会出现推送的消费通知不准确的情况,导致信息推送的准确率较低。
发明内容
基于此,有必要针对信息推送的准确率较低问题,提供一种信息推送任务执行方法、装置、计算机设备和存储介质。
一种信息推送任务执行方法,所述方法包括:
监听任务消息队列中由业务服务器添加的信息推送任务;所述信息推送任务为所述业务服务器根据用户消费信息生成的;
从监听到的信息推送任务中提取用户消费信息;
查询与提取到的用户消费信息匹配的信息推送方案;
获取查询到的信息推送方案所对应的消息推送模板;
根据所述提取到的用户消费信息和获取的消息推送模板生成推送消息体;
将生成的推送消息体推送至以包含于所述提取到的用户消费信息的用户账号所登录的终端。
一种信息推送任务执行装置,所述装置包括:
队列监听模块,用于监听任务消息队列中由业务服务器添加的信息推送任务;所述信息推送任务为所述业务服务器根据用户消费信息生成的;
信息提取模块,用于从监听到的信息推送任务中提取用户消费信息;
方案查询模块,用于查询与提取到的用户消费信息匹配的信息推送方案;
模板获取模块,用于获取查询到的信息推送方案所对应的消息推送模板;
消息体生成模块,用于根据所述提取到的用户消费信息和获取的消息推送模板生成推送消息体;
消息体推送模块,用于将生成的推送消息体推送至以包含于所述提取到的用户消费信息的用户账号所登录的终端。
一种计算机设备,所述计算机设备包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:
监听任务消息队列中由业务服务器添加的信息推送任务;所述信息推送任务为所述业务服务器根据用户消费信息生成的;
从监听到的信息推送任务中提取用户消费信息;
查询与提取到的用户消费信息匹配的信息推送方案;
获取查询到的信息推送方案所对应的消息推送模板;
根据所述提取到的用户消费信息和获取的消息推送模板生成推送消息 体;
将生成的推送消息体推送至以包含于所述提取到的用户消费信息的用户账号所登录的终端。
一个或多个存储有计算机可执行指令的存储介质,所述计算机可执行指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
监听任务消息队列中由业务服务器添加的信息推送任务;所述信息推送任务为所述业务服务器根据用户消费信息生成的;
从监听到的信息推送任务中提取用户消费信息;
查询与提取到的用户消费信息匹配的信息推送方案;
获取查询到的信息推送方案所对应的消息推送模板;
根据所述提取到的用户消费信息和获取的消息推送模板生成推送消息体;
将生成的推送消息体推送至以包含于所述提取到的用户消费信息的用户账号所登录的终端。
上述信息推送任务执行方法、装置、计算机设备和存储介质,保证可以根据匹配的信息推送方案进行信息推送;根据提取到用户消费信息和获取到的消息推送模板生成推送消息体,使生成的推送消息体具有针对性;保证推送的推送消息体与用户消费信息相匹配,从而提高了信息推送的准确率。
附图说明
图1为一个实施例中信息推送任务执行方法的应用环境图;
图2为一个实施例中信息推送任务执行系统中的推送服务器的结构框图;
图3为一个实施例中信息推送任务执行方法的流程示意图;
图4为一个实施例中监听任务消息队列的步骤的流程示意图;
图5为一个实施例中查询消息推送方案的步骤的流程示意图;
图6为一个实施例中生成推送消息体的步骤的流程示意图;
图7为一个实施例中信息推送任务执行装置的结构框图;
图8为一个实施例中队列监听模块的结构框图;
图9为一个实施例中方案查询模块的结构框图;
图10为一个实施例中消息体生成模块的结构框图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
图1为一个实施例中信息推送任务执行方法的应用环境图。参照图1,该信息推送任务执行方法应用于信息推送任务执行系统。信息推送任务执行系统包括终端110、推送服务器120、业务服务器130、队列服务器140和终端150,其中终端110和终端150通过网络与推送服务器120、业务服务器130和队列服务器140连接,推送服务器120、业务服务器130和队列服务器140之间通过网络连接。终端110和终端150可以是固定终端或移动终端,固定终端具体可以是打印机、扫描仪和监控器中的至少一种,移动终端具体可以是平板电脑、智能手机、个人数据助理和数码相机中的至少一种。
图2为一个实施例中图1信息推送任务执行系统中的推送服务器120的内部结构示意图。如图2所示,该推送服务器120包括通过系统总线连接的处理器、非易失性存储介质、内存储器和网络接口。推送服务器120的处理器用于提供计算和控制能力,支撑整个推送服务器120的运行,存储器用于存储数据、代码指令等,网络接口用于与终端110、队列服务器130、业务服务器140和终端150进行网络通信。存储器上存储有至少一个计算机可执行指令,该计算机可执行指令可被处理器执行,以实现本申请实施例中提供的适用于推送服务器120的信息推送任务执行方法。存储器可包括磁碟、光 盘、只读存储记忆体(Read-Only Memory,ROM)等非易失性存储介质,或随机存储记忆体(Random Access Memory,RAM)等。例如,在一个实施例中,存储器包括非易失性存储介质及内存储器;非易失性存储介质存储有操作系统、数据库和计算机可执行指令,数据库存储着多个消息推送方案和与各消息推送方案对应的消息推送模板,该计算机可执行指令可被处理器执行以实现上述的信息推送任务执行方法;内存储器为非易失性存储介质中的操作系统及计算机可执行指令提供高速缓存的运行环境。
如图3所示,在一个实施例中,提供一种信息推送任务执行方法,本实施例以该方法应用于图1中的推送服务器120来举例说明,该方法具体包括以下内容:
S302,监听任务消息队列中由业务服务器添加的信息推送任务;信息推送任务为业务服务器根据用户消费信息生成的。
具体地,终端150可以通过浏览器或安装的业务应用访问业务服务器140。业务服务器140通过浏览器或业务应用向终端150提供业务服务。用户在终端150的浏览器或安装的业务应用中输入用户账号登录到业务服务器140提供的业务交易页面。用户通过终端150登录的业务交易页面购买产品,在用户购买成功后,业务服务器140获取用户所购买的产品信息和用户账号,根据获取到的产品信息和用户账号生成用户消费信息。其中,用户消费信息包括产品标识、购买产品的订单号、消费金额和用户账号,还可以包括应用标识;产品标识包括产品名称和产品编号。
业务服务器140根据用户消费信息生成信息推送任务,将信息推送任务添加到业务对应的任务消息队列中。推送服务器120监听任务消息对列中是否存在信息推送任务。其中,任务消息队列可以设置在推送服务器120、队列服务器130和业务服务器140中任一种服务器上。
在一个实施例中,业务服务器140获取配置的队列标识,在队列服务器130中查询与获取的队列标识对应的任务消息队列,将生成的信息推送任务 添加到查询到的任务消息队列中。
S304,从监听到的信息推送任务中提取用户消费信息。
具体地,推送服务器120监听任务消息队列中存在业务服务器140添加的信息推送任务后,从任务消息队列中获取监听到的信息推送任务,从获取到的信息推送任务中提取用户消费信息。
S306,查询与提取到的用户消费信息匹配的信息推送方案。
具体地,推送服务器120从提取到的用户消费信息中获取的应用标识和方案匹配值,根据应用标识从数据库中查询对应的信息推送方案,检测查询到的信息推送方案中的方案匹配值与获取的方案匹配值是否匹配,若匹配,则查询到的信息推送方案为可用方案;若不匹配,查询到的信息推送方案为不可用方案。
在一个实施例中,用户消费信息中包括多种类型的消费信息。推送服务器120获取提取到的用户消费信息中的消费信息类型标识,根据获取到的消费信息类型标识查询匹配的信息推送方案。
在一个实施例中,推送服务器120可以提取用户消费信息中的应用标识和业务类型,根据查询与应用标识和业务类型匹配的信息推送方案。
S308,获取查询到的信息推送方案所对应的消息推送模板。
具体地,推送服务器120查询到与提取到的用户消费信息匹配的信息推送方案后,从查询到的信息推送方案中提取消息推送模板标识,从数据库中查询与提取到的消息推送模板标识对应的消息推送模板。
S310,根据提取到的用户消费信息和获取的消息推送模板生成推送消息体。
具体地,推送服务器120在提取到的用户消费信息中查询待推送的信息,将待推送的信息填写到获取到的消息推送模板中,生成推送消息体。
S312,将生成的推送消息体推送至以包含于提取到的用户消费信息的用户账号所登录的终端。
具体地,推送服务器120从提取到的用户消费信息中获取用户账号,查询以获取到的用户账号登录的终端,将推送消息体发送至查询到的终端。用户可以通过终端上安装的应用或浏览器查看接收到的推送消息体中的消息内容。
在一个实施例中,S312具体包括以下内容:获取与查询到的消息推送方案对应的推送通道类型;通过与获取的推送通道类型对应的推送通道,将生成的推送消息体推送至以包含于提取到用户消费信息中的用户账号所登录的终端。
具体地,推送服务器120从查询到的消息推送方案中提取对应的推送通道类型,推送通道类型包括短信类型和应用程序类型中的至少一种。推送服务器120从提取到的用户消费信息中获取与提取到的推送通道类型匹配的用户账号,推送服务器120通过与提取到的推送通道类型对应的推送通道,将推送消息体推送至以获取到的用户账号登录的终端。其中,若提取到的推送通道类型为短信类型,则与短信类型匹配的用户账号为手机号码;若提取到的推送通道类型为应用程序类型,则与应用程序类型匹配的用户账号为登录应用程序的用户账号。
本实施例中,在监听到任务消息对中存在业务服务添加的信息推送任务时,从监听到的信息推送任务中提取用户消费信息,查询与提取到的用户消费信息匹配的信息推送方案,保证可以根据匹配的信息推送方案进行信息推送。在查询到匹配的信息推送方案,获取查询到的信息推送方案所对应的消息推送模板,根据提取到用户消费信息和获取到的消息推送模板生成推送消息体,使生成的推送消息体具有针对性。从提取到的用户消费信息中获取用户账号,将具有针对性的推送消息发送至相应的用户账号登录的终端,保证推送的推送消息体与用户消费信息相匹配,从而提高了信息推送的准确率。
如图4所示,在一个实施例中,S302具体包括监听任务消息队列的步骤,该步骤具体包括以下内容:
S402,接收以推送管理员账号登录的终端上传的队列监听指令。
具体地,推送管理员可以推送管理员账号输入终端110来登录推送服务器120提供的队列监听配置页面,推送管理员在队列监听配置页面中输入队列监听配置信息。其中队列监听配置信息包括队列标识,以及业务类型、队列服务器地址和消息推送任务的解析格式标识中的至少一种。终端110获取队列监听配置页面中输入的队列监听配置信息,根据队列监听配置信息生成队列监听指令,将队列监听指令发送至推送服务器120。推送服务器120接收终端110上传的队列监听指令。
S404,提取队列监听指令中的队列标识。
具体地,推送服务器120接收到终端110上传的队列监听指令后,对队列监听指令进行解析,通过解析提取队列监听指令中的队列监听配置信息,从队列监听配置信息中提取队列标识。
S406,在队列服务器中查询与提取到的队列标识对应的任务消息队列。
具体地,队列服务器130中建立有多个任务消息队列,一个应用可以对应一个或多个任务消息队列,一个任务消息队列对应一个应用。推送服务器120提取对列监听配置信息中的队列服务器地址,根据队列服务器地址访问队列服务器130。推送服务器120在队列服务器130中根据提取到的队列标识查询任务消息队列。
S408,监听查询到的任务消息队列中由业务服务器添加的信息推送任务。
具体地,推送服务器120在查询到任务消息队列后,监听查询到的消息队列中是否存在业余服务器140添加的信息推送任务。其中,信息推送任务为业务服务器140根据用户消费信息生成的。
本实施例对查询到的任务消息队列进行监听,保证监听到正确的任务消息队列,提供队列监听的准确性。
如图5所示,在一个实施例中,S306具体还包括查询消息推送方案的 步骤,该步骤具体包括以下内容:
S502,提取用户消费信息中的应用标识和各类消费信息的消息类型标识。
具体地,用户消费信息中包括应用标识和各类消费信息,其中各类消息信息分别与对应的消息类型标识对应存储。推送服务器120从用户消息信息中提取应用标识和各类消费信息对应的消息类型标识。
S504,获取应用标识对应的消息推送方案集合。
具体地,推送服务器120的数据库中存储着消息推送方案和应用标识,各消息推送方案分别与应用标识对应,一个消息推送方案可以对应一个应用标识,一个应用标识可以对应一个或多个消息推送方案。推送服务器120在数据库中查询应用标识对应的多个消息推送方案,得到应用标识对应的消息推送方案集合。
S506,在获取到的消息推送方案集合中查询与提取到的消息类型标识匹配的消息推送方案。
具体地,不同的消息推送方案对应的消息类型标识不同。推送服务器120在获取到的消息推送方案集合中查询与提取到的消息类型标识匹配的消息推送方案。
本实施例根据应用标识获取消息推送方案集合,缩小了消息推送方案的查询范围。在获取到的消息推送方案集合中查询与消息类型标识匹配的消息推送方案,提高了查询消息推送方案的准确性。
如图6所示,在一个实施例中,S310具体还包括生成推送消息体的步骤,该步骤具体包括以下内容:
S602,从获取到的消息推送模板中提取待添加信息的信息标识。
具体地,消息推送模板包括固定信息和待添加信息的信息标识。推送服务器120在获取到的消息推送模板中提取待添加信息的信息标识。
S604,在提取到的用户消费信息中查询与提取到的信息标识匹配的待添 加信息。
具体地,推送服务器120在从消息推送模板中提取待添加信息的信息标识后,根据提取到的信息标识在提取到的用户消费信息中查询匹配的待添加信息。
S606,将查询到的待添加信息添加到获取到的消息推送模板中生成推送消息体。
具体地,推送服务器120将查询到的待添加信息,添加到消息推送模板中的信息标识对应的位置,在将查询到的待添加信息添加到消息推送模板中后,根据消息推送模板中添加的信息和固定信息生成了完整的推送消息体。
本实施例中,根据消息推送模板中的待添加信息的信息标识,在用户消费信息中查询与信息标识对应的待添加信息,将查询到的待添加信息添加到消息推送模板中,以生成了完整的推送消息体,使推送消息体与用户消费信息相匹配,提高了推送消息体的准确性,使得推送消息体更加具有针对性。
在一个实施例中,推送管理员在终端110中输入推送管理员账号,登录到推送服务器120的队列监听配置页面,通过在队列监听配置页面中输入监听配置信息向推送服务器120发送队列监听指令。
推送服务器120接收到队列监听指令后,提取队列监听指令中的队列标识,对队列服务器130中与提取到的队列标识对应的任务消息队列进行监听,监听该任务消息队列中是否存在业务服务器140添加的信息推送任务。其中,信息推送任务是业务服务器140根据用户消费信息生成的。
例如,用户通过在终端150中输入用户账号登录到业务服务器140提供的业务交易页面,用户在业务交易页面中购买了产品,业务服务器140就会产生相应的用户消费信息,用户消费信息包括应用标识、订单号、消费金额、方案匹配值、用户账户和产品标识等。
推送服务器120监听到任务消息队列中存在任务消息队列时,提取监听到的任务消息队列中的用户消费信息,根据用户消费信息中应用标识、产品 标识和方案匹配值,根据应用标识和产品标识在数据库中查询对应的信息推送方案,检验用户消费信息中的方案匹配值与信息推送方案中的方案匹配值是否一致。
推送服务器120在检验到用户消费信息中的方案匹配值与信息推送方案中的方案匹配值一致时,提取信息推送方案中的消息推送模板标识,根据消息推送模板标识从数据库中获取消息推送模板。推送服务器120提取消息推送模板中待添加信息的信息标识,在用户消费信息中查询信息标识对应的待添加信息,将查询到的待添加信息添加到消息推送模板中得到推送消息体。例如,待添加信息的信息标识为订单号、用户账号和消费金额等。推送服务器120提取用户消费信息中的用户账号,将推送消息体推送至以提取到的用户账号登录的终端。
如图7所示,在一个实施例中,提供一种信息推送任务执行装置700,该装置具体包括以下内容:队列监听模块702、信息提取模块704、方案查询模块706、模板获取模块708、消息体生成模块710和消息体推送模块712。
队列监听模块702,用于监听任务消息队列中由业务服务器添加的信息推送任务;信息推送任务为业务服务器根据用户消费信息生成的。
信息提取模块704,用于从监听到的信息推送任务中提取用户消费信息。
方案查询模块706,用于查询与提取到的用户消费信息匹配的信息推送方案。
模板获取模块708,用于获取查询到的信息推送方案所对应的消息推送模板。
消息体生成模块710,用于根据提取到的用户消费信息和获取的消息推送模板生成推送消息体。
消息体推送模块712,用于将生成的推送消息体推送至以包含于提取到的用户消费信息的用户账号所登录的终端。
在一个实施例中,消息体推送模块712还用于获取与查询到的消息推送 方案对应的推送通道类型;通过与获取的推送通道类型对应的推送通道,将生成的推送消息体推送至以包含于提取到用户消费信息中的用户账号所登录的终端。
本实施例中,在监听到任务消息对中存在业务服务添加的信息推送任务时,从监听到的信息推送任务中提取用户消费信息,查询与提取到的用户消费信息匹配的信息推送方案,保证可以根据匹配的信息推送方案进行信息推送。在查询到匹配的信息推送方案,获取查询到的信息推送方案所对应的消息推送模板,根据提取到用户消费信息和获取到的消息推送模板生成推送消息体,使生成的推送消息体具有针对性。从提取到的用户消费信息中获取用户账号,将具有针对性的推送消息发送至相应的用户账号登录的终端,保证推送的推送消息体与用户消费信息相匹配,从而提高了信息推送的准确率。
如图8所示,在一个实施例中,队列监听模块702具体包括以下内容:监听指令接收模块702a、队列标识提取模块702b、任务队列查询模块702c和推送任务监听模块702d。
监听指令接收模块702a,用于接收以推送管理员账号登录的终端上传的队列监听指令。
队列标识提取模块702b,用于提取队列监听指令中的队列标识。
任务队列查询模块702c,用于在队列服务器中查询与提取到的队列标识对应的任务消息队列。
推送任务监听模块702d,用于监听查询到的任务消息队列中由业务服务器添加的信息推送任务。
本实施例中,在接收到终端上传的队列监控指令,根据队列监控指令中携带的队列标识在队列服务器中查询任务消息队列,对查询到的任务消息队列进行监听,保证监听到正确的任务消息队列,提供队列监听的准确性。
如图9所示,在一个实施例中,方案查询模块706具体包括:类型标识提取模块706a、推送方案获取模块706b和推送方案查询模块706c。
类型标识提取模块706a,用于提取用户消费信息中的应用标识和各类消费信息的消息类型标识;
推送方案获取模块706b,用于获取应用标识对应的消息推送方案集合;
推送方案查询模块706c,用于在获取到的消息推送方案集合中查询与提取到的消息类型标识匹配的消息推送方案。
本实施例中,从用户消费信息中提取应用标识和各类消费信息的消息类型标识,根据应用标识获取消息推送方案集合,缩小了消息推送方案的查询范围。在获取到的消息推送方案集合中查询与消息类型标识匹配的消息推送方案,提高了查询消息推送方案的准确性。
如图10所示,在一个实施例中,消息体生成模块710具体还包括:标识提取模块710a、信息查询模块710b和信息添加模块710c。
标识提取模块710a,用于从获取到的消息推送模板中提取待添加信息的信息标识。
信息查询模块710b,用于在提取到的用户消费信息中查询与提取到的信息标识匹配的待添加信息。
信息添加模块710c,用于将查询到的待添加信息添加到获取到的消息推送模板中生成推送消息体。
本实施例中,根据消息推送模板中的待添加信息的信息标识,在用户消费信息中查询与信息标识对应的待添加信息,将查询到的待添加信息添加到消息推送模板中,根据消息推送模板中添加的信息和固定信息生成了完整的推送消息体,使推送消息体与用户消费信息相匹配,提高了推送消息体的准确性,使得推送消息体更加具有针对性。
一种计算机设备,计算机设备包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现以下步骤:监听任务消息队列中由业务服务器添加的信息推送任务;信息推送任务为业务服务器根据用户消费信息生成的;从监听到的信息推送任务中提取用户消 费信息;查询与提取到的用户消费信息匹配的信息推送方案;获取查询到的信息推送方案所对应的消息推送模板;根据提取到的用户消费信息和获取的消息推送模板生成推送消息体;将生成的推送消息体推送至以包含于提取到的用户消费信息的用户账号所登录的终端。
在一个实施例中,监听任务消息队列中由业务服务器添加的信息推送任务,包括:接收以推送管理员账号登录的终端上传的队列监听指令;提取队列监听指令中的队列标识;在队列服务器中查询与提取到的队列标识对应的任务消息队列;监听查询到的任务消息队列中由业务服务器添加的信息推送任务。
在一个实施例中,查询与提取到的用户消费信息匹配的信息推送方案,包括:提取用户消费信息中的应用标识和各类消费信息的消息类型标识;获取应用标识对应的消息推送方案集合;在获取到的消息推送方案集合中查询与提取到的消息类型标识匹配的消息推送方案。
在一个实施例中,根据提取到的用户消费信息和获取的消息推送模板生成推送消息体,包括:从获取到的消息推送模板中提取待添加信息的信息标识;在提取到的用户消费信息中查询与提取到的信息标识匹配的待添加信息;将查询到的待添加信息添加到获取到的消息推送模板中生成推送消息体。
在一个实施例中,将生成的推送消息体推送至以包含于提取到的用户消费信息的用户账号所登录的终端,包括:获取与查询到的消息推送方案对应的推送通道类型;通过与获取的推送通道类型对应的推送通道,将生成的推送消息体推送至以包含于提取到用户消费信息中的用户账号所登录的终端。
本实施例中,在监听到任务消息对中存在业务服务添加的信息推送任务时,从监听到的信息推送任务中提取用户消费信息,查询与提取到的用户消费信息匹配的信息推送方案,保证可以根据匹配的信息推送方案进行信息推送。在查询到匹配的信息推送方案,获取查询到的信息推送方案所对应的消 息推送模板,根据提取到用户消费信息和获取到的消息推送模板生成推送消息体,使生成的推送消息体具有针对性。从提取到的用户消费信息中获取用户账号,将具有针对性的推送消息发送至相应的用户账号登录的终端,保证推送的推送消息体与用户消费信息相匹配,从而提高了信息推送的准确率。
一个或多个存储有计算机可执行指令的存储介质,计算机可执行指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:监听任务消息队列中由业务服务器添加的信息推送任务;信息推送任务为业务服务器根据用户消费信息生成的;从监听到的信息推送任务中提取用户消费信息;查询与提取到的用户消费信息匹配的信息推送方案;获取查询到的信息推送方案所对应的消息推送模板;根据提取到的用户消费信息和获取的消息推送模板生成推送消息体;将生成的推送消息体推送至以包含于提取到的用户消费信息的用户账号所登录的终端。
在一个实施例中,监听任务消息队列中由业务服务器添加的信息推送任务,包括:接收以推送管理员账号登录的终端上传的队列监听指令;提取队列监听指令中的队列标识;在队列服务器中查询与提取到的队列标识对应的任务消息队列;监听查询到的任务消息队列中由业务服务器添加的信息推送任务。
在一个实施例中,查询与提取到的用户消费信息匹配的信息推送方案,包括:提取用户消费信息中的应用标识和各类消费信息的消息类型标识;获取应用标识对应的消息推送方案集合;在获取到的消息推送方案集合中查询与提取到的消息类型标识匹配的消息推送方案。
在一个实施例中,根据提取到的用户消费信息和获取的消息推送模板生成推送消息体,包括:从获取到的消息推送模板中提取待添加信息的信息标识;在提取到的用户消费信息中查询与提取到的信息标识匹配的待添加信息;将查询到的待添加信息添加到获取到的消息推送模板中生成推送消息体。
在一个实施例中,将生成的推送消息体推送至以包含于提取到的用户消费信息的用户账号所登录的终端,包括:获取与查询到的消息推送方案对应的推送通道类型;通过与获取的推送通道类型对应的推送通道,将生成的推送消息体推送至以包含于提取到用户消费信息中的用户账号所登录的终端。
本实施例中,在监听到任务消息对中存在业务服务添加的信息推送任务时,从监听到的信息推送任务中提取用户消费信息,查询与提取到的用户消费信息匹配的信息推送方案,保证可以根据匹配的信息推送方案进行信息推送。在查询到匹配的信息推送方案,获取查询到的信息推送方案所对应的消息推送模板,根据提取到用户消费信息和获取到的消息推送模板生成推送消息体,使生成的推送消息体具有针对性。从提取到的用户消费信息中获取用户账号,将具有针对性的推送消息发送至相应的用户账号登录的终端,保证推送的推送消息体与用户消费信息相匹配,从而提高了信息推送的准确率。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,该计算机程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,前述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等非易失性存储介质,或随机存储记忆体(Random Access Memory,RAM)等。
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。

Claims (18)

  1. 一种信息推送任务执行方法,所述方法包括:
    监听任务消息队列中由业务服务器添加的信息推送任务;所述信息推送任务为所述业务服务器根据用户消费信息生成的;
    从监听到的信息推送任务中提取用户消费信息;
    查询与提取到的用户消费信息匹配的信息推送方案;
    获取查询到的信息推送方案所对应的消息推送模板;
    根据所述提取到的用户消费信息和获取的消息推送模板生成推送消息体;
    将生成的推送消息体推送至以包含于所述提取到的用户消费信息的用户账号所登录的终端。
  2. 根据权利要求1所述的方法,其特征在于,所述监听任务消息队列中由业务服务器添加的信息推送任务,包括:接收以推送管理员账号登录的终端上传的队列监听指令;提取所述队列监听指令中的队列标识;在队列服务器中查询与提取到的队列标识对应的任务消息队列;监听查询到的任务消息队列中由业务服务器添加的信息推送任务。
  3. 根据权利要求1所述的方法,其特征在于,所述查询与提取到的用户消费信息匹配的信息推送方案,包括:提取用户消费信息中的应用标识和各类消费信息的消息类型标识;获取所述应用标识对应的消息推送方案集合;在获取到的消息推送方案集合中查询与提取到的消息类型标识匹配的消息推送方案。
  4. 根据权利要求1所述的方法,其特征在于,所述根据所述提取到的用户消费信息和获取的消息推送模板生成推送消息体,包括:从获取到的消息推送模板中提取待添加信息的信息标识;在提取到的用户消费信息中查询与提取到的信息标识匹配的待添加信息;将查询到的待添加信息添加到所述 获取到的消息推送模板中生成推送消息体。
  5. 根据权利要求1所述的方法,其特征在于,所述将生成的推送消息体推送至以包含于所述提取到的用户消费信息的用户账号所登录的终端,包括:获取与查询到的消息推送方案对应的推送通道类型;通过与获取的推送通道类型对应的推送通道,将生成的推送消息体推送至以包含于所述提取到用户消费信息的用户账号所登录的终端。
  6. 一种信息推送任务执行装置,其特征在于,所述装置包括:
    队列监听模块,用于监听任务消息队列中由业务服务器添加的信息推送任务;所述信息推送任务为所述业务服务器根据用户消费信息生成的;
    信息提取模块,用于从监听到的信息推送任务中提取用户消费信息;
    方案查询模块,用于查询与提取到的用户消费信息匹配的信息推送方案;
    模板获取模块,用于获取查询到的信息推送方案所对应的消息推送模板;
    消息体生成模块,用于根据所述提取到的用户消费信息和获取的消息推送模板生成推送消息体;
    消息体推送模块,用于将生成的推送消息体推送至以包含于所述提取到的用户消费信息的用户账号所登录的终端。
  7. 根据权利要求6所述的装置,其特征在于,所述监队列监听模块包括:
    监听指令接收模块,用于接收以推送管理员账号登录的终端上传的队列监听指令;队列标识提取模块,用于提取所述队列监听指令中的队列标识;
    任务队列查询模块,用于在队列服务器中查询与提取到的队列标识对应的任务消息队列;
    推送任务监听模块,用于监听查询到的任务消息队列中由业务服务器添加的信息推送任务。
  8. 根据权利要求6所述的装置,其特征在于,所述方案查询模块包括:
    类型标识提取模块,用于提取用户消费信息中的应用标识和各类消费信息的消息类型标识;
    推送方案获取模块,用于获取所述应用标识对应的消息推送方案集合;
    推送方案查询模块,用于在获取到的消息推送方案集合中查询与提取到的消息类型标识匹配的消息推送方案。
  9. 一种计算机设备,所述计算机设备包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:
    监听任务消息队列中由业务服务器添加的信息推送任务;所述信息推送任务为所述业务服务器根据用户消费信息生成的;
    从监听到的信息推送任务中提取用户消费信息;
    查询与提取到的用户消费信息匹配的信息推送方案;
    获取查询到的信息推送方案所对应的消息推送模板;
    根据所述提取到的用户消费信息和获取的消息推送模板生成推送消息体;
    将生成的推送消息体推送至以包含于所述提取到的用户消费信息的用户账号所登录的终端。
  10. 根据权利要求9所述的计算机设备,其特征在于,所述监听任务消息队列中由业务服务器添加的信息推送任务,包括:接收以推送管理员账号登录的终端上传的队列监听指令;提取所述队列监听指令中的队列标识;在队列服务器中查询与提取到的队列标识对应的任务消息队列;监听查询到的任务消息队列中由业务服务器添加的信息推送任务。
  11. 根据权利要求9所述的计算机设备,其特征在于,所述查询与提取到的用户消费信息匹配的信息推送方案,包括:提取用户消费信息中的应用标识和各类消费信息的消息类型标识;获取所述应用标识对应的消息推送方 案集合;在获取到的消息推送方案集合中查询与提取到的消息类型标识匹配的消息推送方案。
  12. 根据权利要求9所述的计算机设备,其特征在于,所述根据所述提取到的用户消费信息和获取的消息推送模板生成推送消息体,包括:从获取到的消息推送模板中提取待添加信息的信息标识;在提取到的用户消费信息中查询与提取到的信息标识匹配的待添加信息;将查询到的待添加信息添加到所述获取到的消息推送模板中生成推送消息体。
  13. 根据权利要求9所述的计算机设备,其特征在于,所述将生成的推送消息体推送至以包含于所述提取到的用户消费信息的用户账号所登录的终端,包括:获取与查询到的消息推送方案对应的推送通道类型;通过与获取的推送通道类型对应的推送通道,将生成的推送消息体推送至以包含于所述提取到用户消费信息的用户账号所登录的终端。
  14. 一个或多个存储有计算机可执行指令的存储介质,所述计算机可执行指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
    监听任务消息队列中由业务服务器添加的信息推送任务;所述信息推送任务为所述业务服务器根据用户消费信息生成的;
    从监听到的信息推送任务中提取用户消费信息;
    查询与提取到的用户消费信息匹配的信息推送方案;
    获取查询到的信息推送方案所对应的消息推送模板;
    根据所述提取到的用户消费信息和获取的消息推送模板生成推送消息体;
    将生成的推送消息体推送至以包含于所述提取到的用户消费信息的用户账号所登录的终端。
  15. 根据权利要求14所述的存储介质,其特征在于,所述监听任务消息队列中由业务服务器添加的信息推送任务,包括:接收以推送管理员账号 登录的终端上传的队列监听指令;提取所述队列监听指令中的队列标识;在队列服务器中查询与提取到的队列标识对应的任务消息队列;监听查询到的任务消息队列中由业务服务器添加的信息推送任务。
  16. 根据权利要求14所述的存储介质,其特征在于,所述查询与提取到的用户消费信息匹配的信息推送方案,包括:提取用户消费信息中的应用标识和各类消费信息的消息类型标识;获取所述应用标识对应的消息推送方案集合;在获取到的消息推送方案集合中查询与提取到的消息类型标识匹配的消息推送方案。
  17. 根据权利要求14所述的存储介质,其特征在于,所述根据所述提取到的用户消费信息和获取的消息推送模板生成推送消息体,包括:从获取到的消息推送模板中提取待添加信息的信息标识;在提取到的用户消费信息中查询与提取到的信息标识匹配的待添加信息;将查询到的待添加信息添加到所述获取到的消息推送模板中生成推送消息体。
  18. 根据权利要求14所述的存储介质,其特征在于,所述将生成的推送消息体推送至以包含于所述提取到的用户消费信息的用户账号所登录的终端,包括:获取与查询到的消息推送方案对应的推送通道类型;通过与获取的推送通道类型对应的推送通道,将生成的推送消息体推送至以包含于所述提取到用户消费信息的用户账号所登录的终端。
PCT/CN2018/078317 2017-07-24 2018-03-07 信息推送任务执行方法、装置、计算机设备和存储介质 WO2019019645A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SG11201913325TA SG11201913325TA (en) 2017-07-24 2018-03-07 Method and apparatus for executing information pushing task, and computer device and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710608515.3 2017-07-24
CN201710608515.3A CN107784552B (zh) 2017-07-24 2017-07-24 信息推送任务执行方法、装置、计算机设备和存储介质

Publications (1)

Publication Number Publication Date
WO2019019645A1 true WO2019019645A1 (zh) 2019-01-31

Family

ID=61437750

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/078317 WO2019019645A1 (zh) 2017-07-24 2018-03-07 信息推送任务执行方法、装置、计算机设备和存储介质

Country Status (3)

Country Link
CN (1) CN107784552B (zh)
SG (1) SG11201913325TA (zh)
WO (1) WO2019019645A1 (zh)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108897631A (zh) * 2018-06-27 2018-11-27 杭州贝店科技有限公司 消息推送方法、装置、设备及存储介质
CN110896409A (zh) * 2018-09-13 2020-03-20 雅座在线(北京)科技发展有限公司 一种会员消费消息触发方法
CN110049118A (zh) * 2019-04-12 2019-07-23 深圳乐信软件技术有限公司 消息推送方法、装置、设备及存储介质
CN110535900A (zh) * 2019-06-17 2019-12-03 无线生活(杭州)信息科技有限公司 信息推送方法及装置
CN110337075A (zh) * 2019-06-28 2019-10-15 北京奇才天下科技有限公司 一种基于app业务类型的短信消息发送方法、装置及电子设备
CN110442786B (zh) * 2019-07-15 2020-08-25 苏州亿歌网络科技有限公司 一种提示信息推送的方法、装置、设备及存储介质
CN111464427A (zh) * 2020-03-27 2020-07-28 北京三快在线科技有限公司 发送消息的方法、装置、设备及存储介质
CN111786886B (zh) * 2020-06-30 2022-09-06 京东科技控股股份有限公司 一种消息处理方法、装置、系统、电子设备及存储介质
CN111984901A (zh) * 2020-08-31 2020-11-24 上海博泰悦臻电子设备制造有限公司 一种消息推送方法及其相关产品
CN112286662B (zh) * 2020-10-30 2023-02-10 康键信息技术(深圳)有限公司 基于共享资源的任务推送方法、装置、设备及存储介质
CN113159908A (zh) * 2021-05-26 2021-07-23 中国银行股份有限公司 一种业务推荐方法、装置及可读存储介质
CN115294741B (zh) * 2022-10-10 2023-02-10 深圳曼顿科技有限公司 报警消息推送方法、装置、终端设备以及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103929350A (zh) * 2013-01-16 2014-07-16 阿里巴巴集团控股有限公司 一种信息推送的方法、设备和系统
US20140207737A1 (en) * 2013-01-24 2014-07-24 Electronics And Telecommunications Research Institute Method and apparatus for synchronizing knowledge service
CN105491539A (zh) * 2014-09-18 2016-04-13 博雅网络游戏开发(深圳)有限公司 消息推送管理方法和装置
CN106846132A (zh) * 2017-04-12 2017-06-13 杭州纳戒科技有限公司 商品信息推送方法、装置以及系统

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634203B (zh) * 2013-11-29 2018-04-03 北京奇虎科技有限公司 消息异步传输方法、装置和系统
CN104702484A (zh) * 2013-12-06 2015-06-10 中兴通讯股份有限公司 推送方法及装置
CN105812411A (zh) * 2014-12-30 2016-07-27 大唐软件技术股份有限公司 定制信息的推荐方法和装置
CN105871966A (zh) * 2015-09-22 2016-08-17 乐视网信息技术(北京)股份有限公司 消息分发的方法、装置及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103929350A (zh) * 2013-01-16 2014-07-16 阿里巴巴集团控股有限公司 一种信息推送的方法、设备和系统
US20140207737A1 (en) * 2013-01-24 2014-07-24 Electronics And Telecommunications Research Institute Method and apparatus for synchronizing knowledge service
CN105491539A (zh) * 2014-09-18 2016-04-13 博雅网络游戏开发(深圳)有限公司 消息推送管理方法和装置
CN106846132A (zh) * 2017-04-12 2017-06-13 杭州纳戒科技有限公司 商品信息推送方法、装置以及系统

Also Published As

Publication number Publication date
CN107784552A (zh) 2018-03-09
CN107784552B (zh) 2021-01-12
SG11201913325TA (en) 2020-01-30

Similar Documents

Publication Publication Date Title
WO2019019645A1 (zh) 信息推送任务执行方法、装置、计算机设备和存储介质
WO2020185330A1 (en) Solution for implementing computing service based on structured query language statement
WO2019019361A1 (zh) 数据库数据处理方法、装置、计算机设备和存储介质
CN109558199B (zh) 一种信息推送方法、装置、设备和存储介质
WO2019100986A1 (zh) 一种信息发送方法及装置
CN115208951B (zh) 请求处理方法、装置、电子设备及计算机可读存储介质
WO2019196260A1 (zh) 自动查找物流信息的方法、装置、终端设备及可读存储介质
CN109753424B (zh) Ab测试的方法和装置
JP2018500670A (ja) 非構造化メッセージの処理
CN111294288A (zh) 一种流量识别方法、装置、应用程序接口网关和存储介质
CN113556695B (zh) 一种基于5g消息的信息交互方法、信息交互系统
CN112788090B (zh) 一种网络资源传输方法、装置及系统
CN112187622B (zh) 即时消息的展示方法、装置及服务器
WO2016037489A1 (zh) Rcs垃圾消息的监控方法、装置及系统
CN110336731B (zh) 一种群组中的用户匹配方法及设备
CN108737350B (zh) 一种信息处理方法及客户端
CN110751464A (zh) 一种信息提示方法、装置、设备及存储介质
CN110995848B (zh) 一种服务治理方法、装置、系统、电子设备及存储介质
CN110460512B (zh) 系统消息生成方法、装置、服务器及存储介质
CN111767544A (zh) 多频重放攻击漏洞确定方法、装置、设备及可读存储介质
CN114270389A (zh) 信息获取方法、装置、系统、电子设备以及存储介质
CN118250341B (zh) 表单请求处理方法、装置、设备及存储介质
CN114629973B (zh) 报文处理方法、装置、计算机设备和存储介质
CN106844540B (zh) 一种信息处理方法及装置
KR102255339B1 (ko) 인터넷 오브 미디어 정보 생성 방법 및 장치

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18837646

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18837646

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 28/05/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18837646

Country of ref document: EP

Kind code of ref document: A1