CN111447136A - Message pushing method and device, computer equipment and storage medium - Google Patents

Message pushing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111447136A
CN111447136A CN202010131825.2A CN202010131825A CN111447136A CN 111447136 A CN111447136 A CN 111447136A CN 202010131825 A CN202010131825 A CN 202010131825A CN 111447136 A CN111447136 A CN 111447136A
Authority
CN
China
Prior art keywords
message
target
pushing
swarm
calling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010131825.2A
Other languages
Chinese (zh)
Other versions
CN111447136B (en
Inventor
陈晓博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zhuiyi Technology Co Ltd
Original Assignee
Shenzhen Zhuiyi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Zhuiyi Technology Co Ltd filed Critical Shenzhen Zhuiyi Technology Co Ltd
Priority to CN202010131825.2A priority Critical patent/CN111447136B/en
Publication of CN111447136A publication Critical patent/CN111447136A/en
Application granted granted Critical
Publication of CN111447136B publication Critical patent/CN111447136B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/185Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1859Arrangements for providing special services to substations for broadcast or conference, e.g. multicast adapted to provide push services, e.g. data channels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Manipulator (AREA)

Abstract

The application relates to a message pushing method, a message pushing device, computer equipment and a storage medium. The method comprises the following steps: receiving a push configuration parameter aiming at a target swarm robot, and generating a calling task according to the push configuration parameter; the push configuration parameters comprise a message push period, message contents and an identification of a message receiving user, and the calling task is used for calling the target swarm robots; when the current moment is matched with the message pushing period, executing the calling task to call the target swarm robots; and pushing the message content by the target swarm robot according to the identification of the message receiving user. By adopting the method, the swarm robots can be uniformly managed, and the use threshold of the swarm robots is reduced.

Description

Message pushing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of instant messaging technologies, and in particular, to a message pushing method and apparatus, a computer device, and a storage medium.
Background
With the development of science and technology, instant messaging software is more and more popular, and great convenience is brought to work and life of people. In instant messaging software, groups are often created, and users in the groups can communicate with each other.
In the related art, a script can be written by a developer to create swarm robots, and the swarm robots realize the functions of timed reminding and message pushing.
However, the script writing mode needs to write different scripts for different reminding functions and pushing functions, and is not easy to uniformly manage; moreover, the technical requirements on writers are also high.
Disclosure of Invention
In view of the above, it is desirable to provide a message push method, device, computer device, and storage medium capable of uniformly managing swarm robots in response to the above technical problems.
A method of message push, the method comprising:
receiving a push configuration parameter aiming at the target swarm robot, and generating a calling task according to the push configuration parameter; the push configuration parameters comprise a message push period, message contents and identification of a message receiving user, and the calling task is used for calling the target swarm robots;
when the current moment is matched with the message pushing period, executing a calling task to call the target swarm robots;
and pushing the message content by the target swarm robot according to the identification of the message receiving user.
In one embodiment, the pushing configuration parameters further include a target calling interface corresponding to the target swarm robot, and the executing the calling task calls the target swarm robot, including:
constructing a data structure suitable for swarm robots according to the message content and the identification of the message receiving user;
and sending the data structure to the target swarm robots through the target calling interface.
In one embodiment, after the sending the data structure to the target swarm robots through the target call interface, the pushing, by the target swarm robots, the message content according to the identity of the message receiving user includes:
and pushing the message content according to the data structure through the target swarm robots.
In one embodiment, the message content includes a message script, and before the constructing the data structure for the swarm robots based on the message content and the identification of the message receiving user, the method further includes:
running a message script in a preset safety sandbox to obtain a text corresponding to the message script;
correspondingly, the above-mentioned data structure for constructing the swarm robot according to the message content and the identification of the message receiving user includes:
and constructing a data structure according to the text corresponding to the message script and the identification of the message receiving user.
In one embodiment, the message content includes a predetermined text, and the constructing a data structure for the swarm robots based on the message content and the identification of the message receiving user includes:
and constructing a data structure according to the preset text and the identification of the message receiving user.
In one embodiment, the method further comprises:
and creating target swarm robots in a target group of the instant messaging software, and generating a target calling interface corresponding to the target swarm robots.
In one embodiment, after the invoking task is generated according to the push configuration parameter, the method further includes:
storing the calling task into a preset database;
and after the system is restarted each time, acquiring a calling task from the database and loading the calling task into the memory.
In one embodiment, the receiving the push configuration parameters for the goal group robots includes:
receiving push configuration parameters through a preset user interface in a browser; the user interface is provided with a name input box of the target swarm robot, an input box of the message pushing period, an input box of the message content and an identification input box of the message receiving user.
A message push device, the device comprising:
the pushing configuration parameter receiving module is used for receiving the pushing configuration parameters aiming at the target swarm robots and generating a calling task according to the pushing configuration parameters; the push configuration parameters comprise a message push period, message contents and identification of a message receiving user, and the calling task is used for calling the target swarm robots;
the calling module is used for executing a calling task to call the target swarm robots when the current moment is matched with the message pushing period;
and the message pushing module is used for pushing the message content through the target swarm robot according to the identification of the message receiving user.
In one embodiment, the invoking module includes:
the data structure construction submodule is used for constructing a data structure suitable for swarm robots according to the message content and the identification of the message receiving user;
and the data structure sending submodule is used for sending the data structure to the target swarm robots through the target calling interface.
In one embodiment, the message pushing module is specifically configured to push the message content according to the data structure by the goal group robots.
In one embodiment, the message content includes a message script, and the apparatus further includes:
the message script running module is used for running the message script in a preset safety sandbox to obtain a text corresponding to the message script;
correspondingly, the data structure construction submodule is specifically configured to construct a data structure according to the text corresponding to the message script and the identifier of the message receiving user.
In one embodiment, the message content includes a preset text, and the data structure constructing sub-module is specifically configured to construct the data structure according to the preset text and an identifier of a message receiving user.
In one embodiment, the apparatus further comprises:
and the target calling interface generating module is used for creating target swarm robots in a target group of the instant messaging software and generating a target calling interface corresponding to the target swarm robots.
In one embodiment, the apparatus further comprises:
the calling task storage module is used for storing the calling task into a preset database;
and the calling task loading module is used for acquiring calling tasks from the database and loading the calling tasks into the memory after the system is restarted each time.
In one embodiment, the push configuration parameter receiving module is specifically configured to receive a push configuration parameter through a user interface preset in a browser; the user interface is provided with a name input box of the target swarm robot, an input box of the message pushing period, an input box of the message content and an identification input box of the message receiving user.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
receiving a push configuration parameter aiming at the target swarm robot, and generating a calling task according to the push configuration parameter; the push configuration parameters comprise a message push period, message contents and identification of a message receiving user, and the calling task is used for calling the target swarm robots;
when the current moment is matched with the message pushing period, executing a calling task to call the target swarm robots;
and pushing the message content by the target swarm robot according to the identification of the message receiving user.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
receiving a push configuration parameter aiming at the target swarm robot, and generating a calling task according to the push configuration parameter; the push configuration parameters comprise a message push period, message contents and identification of a message receiving user, and the calling task is used for calling the target swarm robots;
when the current moment is matched with the message pushing period, executing a calling task to call the target swarm robots;
and pushing the message content by the target swarm robot according to the identification of the message receiving user.
The message pushing method, the message pushing device, the computer equipment and the storage medium receive the pushing configuration parameters aiming at the target swarm robots and generate the calling task according to the pushing configuration parameters; when the current moment is matched with the message pushing period, executing a calling task to call the target swarm robots; and pushing the message content by the target swarm robot according to the identification of the message receiving user. Through the embodiment of the application, the calling task can be generated only by receiving the pushing configuration parameters, and when the current moment is matched with the message pushing period, the content of the target swarm robot pushing message is called, and script writing does not need to be carried out on each pushing message, so that the use threshold is reduced, and unified management on swarm robots is facilitated.
Drawings
FIG. 1 is a diagram of an application environment of a message push method in one embodiment;
FIG. 2 is a flowchart illustrating a message pushing method according to an embodiment;
FIG. 3 is a schematic flow chart of the steps performed to invoke the task to invoke the target swarm robots in one embodiment;
fig. 4 is a schematic flow chart of a message pushing method in another embodiment;
FIG. 5 is a block diagram of a user interface in one embodiment;
FIG. 6 is a block diagram of a message pushing apparatus according to an embodiment;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The message pushing method provided by the application can be applied to the application environment shown in fig. 1. The application environment includes a terminal 102 and a server 104, and the terminal 102 and the server 104 communicate through a network. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, a message pushing method is provided, which is described by taking the application of the method to the server in fig. 1 as an example, and includes the following steps:
step 201, receiving a push configuration parameter for a target swarm robot, and generating a calling task according to the push configuration parameter; the push configuration parameters comprise a message push period, message contents and identification of a message receiving user, and the calling task is used for calling the target swarm robots.
In the embodiment of the application, a plurality of swarm robots can be created in the server in advance, when the message pushing is needed, the pushing configuration parameters aiming at the target swarm robots are received through the terminal, and then the server receives the pushing configuration parameters sent by the terminal. And then, the server generates a calling task according to the push configuration parameters sent by the terminal.
For example, the terminal receives the push configuration parameters for the target swarm robot a, and the push configuration parameters may specifically include: the message pushing cycle is 14:00 per friday, the message content is "fill the next week work plan in link XX", and the message receiving users are identified as "user 2, user 3 … …, user 7". And after receiving the push configuration parameters, the terminal sends the push configuration parameters to the server, and the server generates a calling task 1 according to the push configuration parameters. For another example, the terminal receives the push configuration parameters for the target swarm robot B, and the push configuration parameters specifically may include: the message pushing cycle is X month and X day 9:00, the message content is 'work summary meeting', and the identifier of the message receiving user is 'user 9'. And after receiving the push configuration parameters, the terminal sends the push configuration parameters to the server, and the server generates a calling task 2 according to the push configuration parameters.
In practical application, the server may also directly receive the push configuration parameters and generate the call task, which is not limited in detail in the embodiment of the present application and may be set according to practical situations.
And step 202, when the current moment is matched with the message pushing period, executing a calling task to call the target swarm robots.
In the embodiment of the application, after the server generates the calling task, whether the current time is matched with the message pushing period in the calling task or not is monitored, and if the current time is matched with the message pushing period, the calling task is executed to call the target swarm robots; and if the current moment does not match with the message pushing period, the calling task is not executed.
For example, when the server monitors that the current time is friday 14:00 and matches with the message pushing period in the invoking task 1, the invoking task 1 is executed to invoke the target swarm robot a. And when the server monitors that the current time is X month and X day 9:00 and is matched with the message pushing period in the calling task 2, executing the calling task 2 to call the target swarm robot B.
In one embodiment, the executing the invoking task to invoke the target swarm robot may specifically include: and sending a push request to the target swarm robots, wherein the push request comprises the message content and the identification of the message receiving user. For example, the calling task 1 is executed, and a push request is sent to the swarm-targeted robot a, where the push request includes: the message content is "fill the next week work plan in link XX" and the message receiving users are identified as "user 2, user 3 … …, user 7". Executing a calling task 2, and sending a pushing request to the target swarm robot B, wherein the pushing request comprises: the message content is "worklist conference" and the message recipient user is identified as "user 9".
And step 203, pushing the message content by the target swarm robots according to the identification of the message receiving user.
In the embodiment of the application, after the calling task is executed and the pushing request is sent to the target swarm robot, the target swarm robot receives the pushing request and pushes the message content to the message receiving user according to the identifier of the message receiving user in the pushing request.
For example, when the target swarm robot a receives the push request, "fill the next week work plan in the link XX" is pushed to the user 2, the user 3 … …, and the user 7. After receiving the push request, the target swarm robot B pushes a "work summary" to the user 9.
In the message pushing method, pushing configuration parameters aiming at the target swarm robot are received, and a calling task is generated according to the pushing configuration parameters; when the current moment is matched with the message pushing period, executing a calling task to call the target swarm robots; and pushing the message content by the target swarm robot according to the identification of the message receiving user. Through the embodiment of the application, the calling task can be generated only by receiving the pushing configuration parameters, and when the current moment is matched with the message pushing period, the content of the target swarm robot pushing message is called, and script writing does not need to be carried out on each pushing message, so that the use threshold is reduced, and unified management on swarm robots is facilitated.
In one embodiment, referring to fig. 3, the step of executing the calling task to call the target swarm robots is involved, and on the basis of the above embodiment, the step may include the following steps:
step 301, constructing a data structure suitable for swarm robots according to the message content and the identification of the message receiving user.
In the embodiment of the present application, when executing the calling task, it is necessary to construct a data structure suitable for swarm robots first. Specifically, according to different message contents, different construction methods need to be adopted:
the method comprises the steps that firstly, message content comprises a message script, and the message script is operated in a preset safety sandbox to obtain a text corresponding to the message script; and constructing a data structure according to the text corresponding to the message script and the identification of the message receiving user.
Specifically, a security sandbox is set in the server in advance, and when the message content is a message script, the message script is run in the security sandbox to obtain a text corresponding to the message script. For example, if monday runs a message script in the secure sandbox, the text corresponding to the message script is generated as follows: on Monday today, everyone has a meeting at 18 points; and running the message script in the safe sandbox by friday, and generating a text corresponding to the message script as follows: on friday today, everyone is in a 17 o' clock meeting, and returns home early. Therefore, the message script is operated in the safety sandbox, dynamic content can be generated, and the message content is more flexible. And the message script is operated in the safety sandbox, so that the risk caused by aggressive scripts such as dead loop scripts and falsified data scripts can be avoided, and the safety is improved.
And after the text corresponding to the message script is obtained, constructing a data structure according to the text corresponding to the message script and the identification of the message receiving user. The data structure may specifically be in the following format:
{
"msgtype":"text",
"text":{
"content", Monday today, everybody 18 kindred,
"mentioned_mobile_list":["@all"]
}
}
the data structure is not limited in detail in the embodiment of the application, and can be set according to actual conditions.
And secondly, constructing a data structure according to the preset text and the identification of the message receiving user if the message content comprises the preset text.
Specifically, the message content may include preset text, that is, the message content is static content. For example, if the predetermined text is "day monday, everyone 18 has a meeting", and the identities of the message receiving users are all users, the data structure may be constructed directly from the predetermined text and the identities of the message receiving users.
It is understood that the message content may include both the message script and the preset text, that is, the message content may include both dynamic content and static content, so that when the data structure is constructed, either one of the first and second manners or a combination of the two manners may be adopted. The embodiment of the present application does not limit this in detail, and can be set according to actual situations.
Step 302, the data structure is sent to the target swarm robots through the target call interface.
In the embodiment of the application, when the target swarm robot is created in the target swarm of the instant messaging software, a target calling interface corresponding to the target swarm robot is generated. The data structure is sent to the target swarm robots through the target invocation interface while executing the invocation task.
For example, a target group robot a is created in a target group 1 in the enterprise WeChat, and a target call interface is generated as a webhook address 1. When the calling task is executed to call the target swarm robot a, the structured data structure is sent to the target swarm robot a via the webhook address 1.
In the step of executing the calling task to call the target swarm robot, a data structure suitable for the swarm robot is constructed according to the message content and the identification of the message receiving user; and sending the data structure to the target swarm robots through the target calling interface. Through this application embodiment, can construct the data structure who is applicable to swarm robot automatically, be convenient for swarm robot's unified management. Moreover, the message content can be dynamic content or static content, and is flexible.
In an embodiment, referring to fig. 4, a message pushing method is involved, and on the basis of the above embodiment, the method may include the following steps:
step 401, creating a target swarm robot in a target group of the instant messaging software, and generating a target calling interface corresponding to the target swarm robot.
In the embodiment of the application, the target group robot can be created in the target group of instant messaging software such as enterprise WeChat. The instant messaging software is not limited in detail in the embodiment of the application, and can be set according to actual conditions.
Step 402, receiving push configuration parameters through a preset user interface in a browser; and generating a calling task according to the push configuration parameters.
In the embodiment of the present application, a user interface may be preset in the browser, and a name input box of the target swarm robot, an input box of the message pushing cycle, an input box of the message content, and an identification input box of the message receiving user are provided on the user interface, as shown in fig. 5. And receiving the name of the target swarm robot, the message pushing period, the message content and the identification of the message receiving user through the user interface. The user interface can also be provided with other input boxes, which are not limited in detail in the embodiment of the application and can be set according to actual conditions.
Step 403, storing the calling task in a preset database; and after the system is restarted each time, acquiring a calling task from the database and loading the calling task into the memory.
In the embodiment of the application, after the calling task is generated, the calling task can be stored in a preset database, and the calling task is prevented from being lost due to power failure or system restart. For example, after the calling task 1 is generated, the calling task 1 is stored in a database; and after the calling task 2 is generated, storing the calling task 2 into a database. The database is not limited in detail in the embodiment of the application, and can be set according to actual conditions.
And after the system is restarted each time, acquiring a calling task from the database, and loading the calling task into the memory so as to monitor whether the current time is matched with the message pushing period in each calling task. For example, after the system is restarted, the calling task 1 and the calling task 2 are obtained from the database, and the calling task 1 and the calling task 2 are loaded into the memory.
Step 404, running a message script in a preset safety sandbox to obtain a text corresponding to the message script; and constructing a data structure according to the text corresponding to the message script and the identification of the message receiving user.
Step 405, constructing a data structure according to the preset text and the identification of the message receiving user.
In the embodiment of the present application, the sequence of step 404 and step 405 is not limited in detail, and may be set according to actual situations.
Step 406, the data structure is sent to the target swarm robots through the target call interface.
Step 407, pushing the message content by the target swarm robots according to the data structure.
In the message pushing method, swarm robots are created in advance to obtain calling interfaces corresponding to the swarm robots; generating a calling task after receiving a pushing configuration parameter aiming at a target swarm robot; when the current time is matched with the message pushing period, a data structure suitable for the swarm robots is constructed according to the message content and the identification of the message receiving user, and then the data structure is sent to the target swarm robots through a target calling interface corresponding to the target swarm robots; and after receiving the data structure, the target swarm robots push the message content to the message receiving user according to the data structure. Through the embodiment of the application, scripts are not required to be written in each push message, so that the use threshold can be reduced, and unified management on swarm robots is facilitated.
It should be understood that although the various steps in the flowcharts of fig. 2-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-4 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps or stages.
In one embodiment, as shown in fig. 6, there is provided a message pushing apparatus including:
a push configuration parameter receiving module 501, configured to receive a push configuration parameter for the target swarm robot, and generate a call task according to the push configuration parameter; the push configuration parameters comprise a message push period, message contents and identification of a message receiving user, and the calling task is used for calling the target swarm robots;
a calling module 502, configured to execute a calling task to call the target swarm robots when it is monitored that the current time matches the message pushing period;
and a message pushing module 503, configured to push the message content according to the identifier of the message receiving user through the target swarm robots.
In one embodiment, the invoking module 502 includes:
the data structure construction submodule is used for constructing a data structure suitable for swarm robots according to the message content and the identification of the message receiving user;
and the data structure sending submodule is used for sending the data structure to the target swarm robots through the target calling interface.
In one embodiment, the message pushing module 503 is specifically configured to push the message content according to the data structure through the goal group robots.
In one embodiment, the message content includes a message script, and the apparatus further includes:
the message script running module is used for running the message script in a preset safety sandbox to obtain a text corresponding to the message script;
correspondingly, the data structure construction submodule is specifically configured to construct a data structure according to the text corresponding to the message script and the identifier of the message receiving user.
In one embodiment, the message content includes a preset text, and the data structure constructing sub-module is specifically configured to construct the data structure according to the preset text and an identifier of a message receiving user.
In one embodiment, the apparatus further comprises:
and the target calling interface generating module is used for creating target swarm robots in a target group of the instant messaging software and generating a target calling interface corresponding to the target swarm robots.
In one embodiment, the apparatus further comprises:
the calling task storage module is used for storing the calling task into a preset database;
and the calling task loading module is used for acquiring calling tasks from the database and loading the calling tasks into the memory after the system is restarted each time.
In one embodiment, the push configuration parameter receiving module is specifically configured to receive a push configuration parameter through a user interface preset in a browser; the user interface is provided with a name input box of the target swarm robot, an input box of the message pushing period, an input box of the message content and an identification input box of the message receiving user.
For specific definition of the message pushing device, refer to the above definition of the message pushing method, which is not described herein again. The modules in the message pushing device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing message push data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a message push method.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
receiving a push configuration parameter aiming at the target swarm robot, and generating a calling task according to the push configuration parameter; the push configuration parameters comprise a message push period, message contents and identification of a message receiving user, and the calling task is used for calling the target swarm robots;
when the current moment is matched with the message pushing period, executing a calling task to call the target swarm robots;
and pushing the message content by the target swarm robot according to the identification of the message receiving user.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
constructing a data structure suitable for swarm robots according to the message content and the identification of the message receiving user;
and sending the data structure to the target swarm robots through the target calling interface.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and pushing the message content according to the data structure through the target swarm robots.
In one embodiment, the message content includes a message script, and the processor executes the computer program to further implement the following steps:
running a message script in a preset safety sandbox to obtain a text corresponding to the message script;
and constructing a data structure according to the text corresponding to the message script and the identification of the message receiving user.
In one embodiment, the message content includes a preset text, and the processor executes the computer program to further implement the following steps:
and constructing a data structure according to the preset text and the identification of the message receiving user.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and creating target swarm robots in a target group of the instant messaging software, and generating a target calling interface corresponding to the target swarm robots.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
storing the calling task into a preset database;
and after the system is restarted each time, acquiring a calling task from the database and loading the calling task into the memory.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
receiving push configuration parameters through a preset user interface in a browser; the user interface is provided with a name input box of the target swarm robot, an input box of the message pushing period, an input box of the message content and an identification input box of the message receiving user.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving a push configuration parameter aiming at the target swarm robot, and generating a calling task according to the push configuration parameter; the push configuration parameters comprise a message push period, message contents and identification of a message receiving user, and the calling task is used for calling the target swarm robots;
when the current moment is matched with the message pushing period, executing a calling task to call the target swarm robots;
and pushing the message content by the target swarm robot according to the identification of the message receiving user.
In one embodiment, the computer program when executed by the processor further performs the steps of:
constructing a data structure suitable for swarm robots according to the message content and the identification of the message receiving user;
and sending the data structure to the target swarm robots through the target calling interface.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and pushing the message content according to the data structure through the target swarm robots.
In one embodiment, the message content comprises a message script, and the computer program when executed by the processor further performs the steps of:
running a message script in a preset safety sandbox to obtain a text corresponding to the message script;
and constructing a data structure according to the text corresponding to the message script and the identification of the message receiving user.
In one embodiment, the message content comprises a predetermined text, and the computer program when executed by the processor further performs the steps of:
and constructing a data structure according to the preset text and the identification of the message receiving user.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and creating target swarm robots in a target group of the instant messaging software, and generating a target calling interface corresponding to the target swarm robots.
In one embodiment, the computer program when executed by the processor further performs the steps of:
storing the calling task into a preset database;
and after the system is restarted each time, acquiring a calling task from the database and loading the calling task into the memory.
In one embodiment, the computer program when executed by the processor further performs the steps of:
receiving push configuration parameters through a preset user interface in a browser; the user interface is provided with a name input box of the target swarm robot, an input box of the message pushing period, an input box of the message content and an identification input box of the message receiving user.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (11)

1. A message pushing method, the method comprising:
receiving a push configuration parameter aiming at a target swarm robot, and generating a calling task according to the push configuration parameter; the push configuration parameters comprise a message push period, message contents and an identification of a message receiving user, and the calling task is used for calling the target swarm robots;
when the current moment is matched with the message pushing period, executing the calling task to call the target swarm robots;
and pushing the message content by the target swarm robot according to the identification of the message receiving user.
2. The method of claim 1, wherein the push configuration parameters further include a target invocation interface corresponding to the target swarm robot, and wherein the executing the invocation task invokes the target swarm robot comprises:
constructing a data structure suitable for swarm robots according to the message content and the identification of the message receiving user;
and sending the data structure to the target swarm robots through the target calling interface.
3. The method of claim 2, wherein after said sending the data structure to the target swarm robots through the target invocation interface, said pushing the message content by the target swarm robots based on the identity of the message receiving user comprises:
and pushing the message content according to the data structure by the target swarm robots.
4. The method of claim 2, wherein the message content comprises a message script, and prior to said constructing a swarm-robot-appropriate data structure based on the message content and an identification of the message-receiving user, the method further comprises:
running the message script in a preset safety sandbox to obtain a text corresponding to the message script;
correspondingly, the constructing of the data structure of the suitable swarm robots according to the message content and the identification of the message receiving user comprises the following steps:
and constructing the data structure according to the text corresponding to the message script and the identification of the message receiving user.
5. The method of claim 2, wherein the message content includes predetermined text, and wherein constructing the swarm-robot-appropriate data structure based on the message content and the identity of the message-receiving user comprises:
and constructing the data structure according to the preset text and the identification of the message receiving user.
6. The method of claim 2, further comprising:
and creating the target swarm robot in a target group of instant messaging software, and generating the target calling interface corresponding to the target swarm robot.
7. The method of claim 1, wherein after the generating a call task according to the push configuration parameters, the method further comprises:
storing the calling task into a preset database;
and after each system restart, acquiring the calling task from the database and loading the calling task into a memory.
8. The method of any one of claims 1-7, wherein receiving push configuration parameters for the goal group robots comprises:
receiving the push configuration parameters through a preset user interface in a browser; and the user interface is provided with a name input box of the target swarm robot, an input box of the message pushing period, an input box of the message content and an identification input box of the message receiving user.
9. A message push apparatus, the apparatus comprising:
the pushing configuration parameter receiving module is used for receiving pushing configuration parameters aiming at the target swarm robots and generating a calling task according to the pushing configuration parameters; the push configuration parameters comprise a message push period, message contents and an identification of a message receiving user, and the calling task is used for calling the target swarm robots;
the calling module is used for executing the calling task to call the target swarm robots when the current moment is matched with the message pushing period;
and the message pushing module is used for pushing the message content through the target swarm robot according to the identification of the message receiving user.
10. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 8 when executing the computer program.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
CN202010131825.2A 2020-02-29 2020-02-29 Message pushing method and device, computer equipment and storage medium Active CN111447136B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010131825.2A CN111447136B (en) 2020-02-29 2020-02-29 Message pushing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010131825.2A CN111447136B (en) 2020-02-29 2020-02-29 Message pushing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111447136A true CN111447136A (en) 2020-07-24
CN111447136B CN111447136B (en) 2022-10-25

Family

ID=71652769

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010131825.2A Active CN111447136B (en) 2020-02-29 2020-02-29 Message pushing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111447136B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112491692A (en) * 2020-11-09 2021-03-12 北京明略软件系统有限公司 Method and system for collecting information at fixed time, computer readable storage medium and electronic equipment
CN115242742A (en) * 2020-09-29 2022-10-25 支付宝(杭州)信息技术有限公司 Service control method, device and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150127724A1 (en) * 2012-07-11 2015-05-07 Di Xue Method, system and server for pushing information
CN107465759A (en) * 2017-09-07 2017-12-12 武汉楚鼎信息技术有限公司 A kind of message server, message issuing method and terminal
CN109787882A (en) * 2018-12-28 2019-05-21 广东益萃网络科技有限公司 Information push method, device, computer equipment and storage medium
CN110266806A (en) * 2019-06-28 2019-09-20 北京金山安全软件有限公司 Content pushing method and device and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150127724A1 (en) * 2012-07-11 2015-05-07 Di Xue Method, system and server for pushing information
CN107465759A (en) * 2017-09-07 2017-12-12 武汉楚鼎信息技术有限公司 A kind of message server, message issuing method and terminal
CN109787882A (en) * 2018-12-28 2019-05-21 广东益萃网络科技有限公司 Information push method, device, computer equipment and storage medium
CN110266806A (en) * 2019-06-28 2019-09-20 北京金山安全软件有限公司 Content pushing method and device and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115242742A (en) * 2020-09-29 2022-10-25 支付宝(杭州)信息技术有限公司 Service control method, device and system
CN115242742B (en) * 2020-09-29 2023-07-14 支付宝(杭州)信息技术有限公司 Service control method, device and system
CN112491692A (en) * 2020-11-09 2021-03-12 北京明略软件系统有限公司 Method and system for collecting information at fixed time, computer readable storage medium and electronic equipment

Also Published As

Publication number Publication date
CN111447136B (en) 2022-10-25

Similar Documents

Publication Publication Date Title
CN110620812B (en) Interactive information pushing method and device, computer equipment and storage medium
CN111447136B (en) Message pushing method and device, computer equipment and storage medium
CN109144487B (en) Method, device, computer equipment and storage medium for developing business of parts
WO2022142312A1 (en) Page processing method and apparatus, computer device and storage medium
WO2021068348A1 (en) Task deployment method and system, and storage medium
CN111190609B (en) Service processing method, device, equipment and storage medium
WO2020199594A1 (en) Service component loading method and apparatus, and computer device and storage medium
CN115964131B (en) Simulation model management system supporting multiple simulation engines and simulation model scheduling method
CN111666145A (en) Message processing method and system of message queue and computer equipment
CN111614548A (en) Message pushing method and device, computer equipment and storage medium
CN114610404A (en) Component calling method and device based on application framework and computer equipment
CN111885184A (en) Method and device for processing hot spot access keywords in high concurrency scene
CN112817707B (en) Task execution method, device, computer equipment and storage medium
CN113191889A (en) Wind control configuration method, configuration system, electronic device and readable storage medium
CN111026499B (en) Container processing method, device, computer equipment and storage medium
CN111240998B (en) Test case processing method and device
CN115344371A (en) Interface calling method and device, storage medium and computer equipment
CN114567664A (en) Message processing result monitoring method and device, computer equipment and storage medium
CN110889539B (en) Method, system and device for organizing spot market clearing cases based on cloud platform
CN114610413A (en) Method, device, equipment and storage medium for executing synchronous and asynchronous tasks based on Java
CN112149951A (en) Risk control method and device, computer equipment and storage medium
CN113849287A (en) Processing method and device of algorithm service, electronic equipment and storage medium
CN113271364A (en) Sharing system, method, computer device and storage medium of service arrangement data
CN113032118A (en) Asynchronous operation processing method for computer application program and corresponding system
CN113568652A (en) Application system processing method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant