CN110351293B - Method, device and system for sending information - Google Patents

Method, device and system for sending information Download PDF

Info

Publication number
CN110351293B
CN110351293B CN201910656499.4A CN201910656499A CN110351293B CN 110351293 B CN110351293 B CN 110351293B CN 201910656499 A CN201910656499 A CN 201910656499A CN 110351293 B CN110351293 B CN 110351293B
Authority
CN
China
Prior art keywords
task
information
client
executed
sending
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910656499.4A
Other languages
Chinese (zh)
Other versions
CN110351293A (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.)
Miaozhen Information Technology Co Ltd
Original Assignee
Miaozhen Information 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 Miaozhen Information Technology Co Ltd filed Critical Miaozhen Information Technology Co Ltd
Priority to CN201910656499.4A priority Critical patent/CN110351293B/en
Publication of CN110351293A publication Critical patent/CN110351293A/en
Application granted granted Critical
Publication of CN110351293B publication Critical patent/CN110351293B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Abstract

The application provides a method, a device and a system for sending information, which comprises the following steps: a client and a server; the server is used for generating a task and sending the task to the client; and the tasks include: the method comprises the steps of sending information to be sent, type identification used for indicating a task operation process and information of a receiver; the client is used for receiving the tasks sent by the server; acquiring a task flow based on the type identifier; and based on the acquired task flow and the information of the receiver, the information to be sent is sent to the receiver corresponding to the information of the receiver, and the information is automatically replied through the interaction between the client and the server, so that the efficiency of information communication is improved.

Description

Method, device and system for sending information
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, and a system for sending information.
Background
Along with the rapid development of science and technology, the transfer time between different information is shorter and shorter, and the mode that people know information is more and more diversified, for example, the customer pays close attention to own demand commodity channel not only through the shopping malls such as Taobao, Jingdong, etc. or go to the market and buy, can also know the information of product through paying close attention to the popularization of trade company to the product in the little letter crowd.
But introduce for the staff occasionally that customer goes to market and purchases the thing, when the customer purchases the product on line, and need consult some problems of product, have the condition that customer service personnel do not reply in time, to this kind of condition, adopt the mode of automatic reply can fine solution problem, for example, the automatic reply method of believe a little that adopts at present has two kinds of modes: firstly, a web end of a website automatically replies; and secondly, the terminal automatically replies.
However, the registered micro-signals cannot be automatically replied after being logged in through a web end of a website in 2017, and the risk that the micro-letters cannot be normally used exists in a terminal automatic reply mode for accessing an installation package of the micro-letters in a Hook program mode, so that a more effective solution is needed for a mode for automatically replying to carry out information communication.
Disclosure of Invention
In view of the above, an object of the present application is to provide a method, an apparatus and a system for transmitting information, which can improve the efficiency of information exchange by automatically transmitting information.
In a first aspect, an embodiment of the present application provides a system for sending information, where the system includes: a client and a server;
the server is used for generating a task and sending the task to the client; the tasks include: the method comprises the steps of sending information to be sent, type identification used for indicating a task operation process and information of a receiver;
the client is used for receiving the tasks sent by the server; acquiring a task flow based on the type identification; and sending the information to be sent to a receiver corresponding to the receiver information based on the acquired task flow and the receiver information.
In an embodiment of the application, the server is configured to generate the task by:
receiving task information input by a user based on a form page and execution information corresponding to the task information;
and generating a task based on the task information and the execution information, and storing the task in a task table of a database.
In an embodiment of the application, the execution information includes execution time information and execution target information; after receiving a task request of the client;
the server is used for sending the task to the client in the following mode:
detecting whether a current task to be executed exists in the task table or not based on execution time information corresponding to each task;
and if the task to be executed exists, reading the task information of the task to be executed from the task table, and sending the task information of the task to be executed to a client corresponding to the execution target information based on the execution target information of the task to be executed.
In an embodiment of the application, the server is further configured to, after reading the task information of the to-be-executed task from the task table, change a to-be-executed state of the to-be-executed task in the task table to an executing state, and update the executing state of the to-be-executed task according to an execution result of the to-be-executed task by the client.
In an embodiment of the application, the client is specifically configured to send the information to be sent to a receiver corresponding to the receiver information in the following manner:
copying the information to be sent to an operation position corresponding to the receiver information based on the acquired task flow;
and triggering an information sending instruction corresponding to the operation position so as to send the information to be sent to the receiver.
In a second aspect, an embodiment of the present application provides a method for sending information, which is applied to a server, and the method includes:
generating a task, the task comprising: the method comprises the steps of sending information to be sent, type identification used for indicating a task operation process and information of a receiver;
sending the task to a client;
the type identifier is used for indicating the client to acquire the task operation flow and sending the information to be sent to a receiver corresponding to the receiver information based on the task operation flow.
In an embodiment of the present application, the task is generated by:
receiving task information input by a user based on a form page and execution information corresponding to the task information;
and generating a task based on the task information and the execution information, and storing the task in a task table of a database.
In an embodiment of the application, the execution information includes execution time information and execution target information; after receiving a task request of the client;
the server sends the task to the client in the following mode:
detecting whether a current task to be executed exists in the task table or not based on execution time information corresponding to each task;
and if the task to be executed exists, reading the task information of the task to be executed from the task table, and sending the task information of the task to be executed to a client corresponding to the execution target information based on the execution target information of the task to be executed.
In an embodiment of the present application, the method further includes: after reading the task information of the task to be executed from the task table, changing the state of the task to be executed in the task table to be the executing state, and updating the executing state according to the execution result of the client to the task to be executed.
In a third aspect, an embodiment of the present application provides a method for sending information, which is applied to a client, and the method includes:
receiving a task sent by a server, wherein the task comprises the following steps: the method comprises the steps of sending information to be sent, type identification used for indicating a task operation process and information of a receiver;
acquiring a task flow based on the type identification;
and sending the information to be sent to a receiver corresponding to the receiver information based on the acquired task flow and the receiver information.
In an embodiment of the application, the sending the information to be sent to the receiver corresponding to the receiver information based on the obtained task flow and the receiver information includes:
copying the information to be sent to an operation position corresponding to the receiver based on the acquired task flow;
and triggering an information sending instruction corresponding to the operation position so as to send the information to be sent to the receiver.
In a fourth aspect, an embodiment of the present application provides an apparatus for sending information, where the apparatus is applied to a server, and the apparatus includes:
a generating module configured to generate a task, the task including: the method comprises the steps of sending information to be sent, type identification used for indicating a task operation process and information of a receiver;
the sending module is used for sending the task to the client;
the type identifier is used for indicating the client to acquire the task operation flow and sending the information to be sent to a receiver corresponding to the receiver information based on the task operation flow.
In an embodiment of the application, the generating module generates the task by:
receiving task information input by a user based on a form page and execution information corresponding to the task information;
and generating a task based on the task information and the execution information, and storing the task in a task table of a database.
In an embodiment of the application, in the generating module, the execution information includes execution time information and execution target information; after receiving a task request of the client;
in the sending module, the task is sent to the client side by adopting the following mode:
detecting whether a current task to be executed exists in the task table or not based on execution time information corresponding to each task;
and if the task to be executed exists, reading the task information of the task to be executed from the task table, and sending the task information of the task to be executed to a client corresponding to the execution target information based on the execution target information of the task to be executed.
In an embodiment of the present application, the apparatus is further configured to: after reading the task information of the task to be executed from the task table, changing the state of the task to be executed in the task table to be the executing state, and updating the executing state according to the execution result of the client to the task to be executed.
In a fifth aspect, an embodiment of the present application provides an apparatus for sending information, which is applied to a client, and the apparatus includes:
a receiving module, configured to receive a task sent by a server, where the task includes: the method comprises the steps of sending information to be sent, type identification used for indicating a task operation process and information of a receiver;
the acquisition module is used for acquiring a task flow based on the type identifier;
and the sending module is used for sending the information to be sent to a receiver corresponding to the receiver information based on the acquired task flow and the receiver information.
In an embodiment of the application, the sending module, based on the acquired task flow and the receiver information, sends the information to be sent to a receiver corresponding to the receiver information, and includes:
copying the information to be sent to an operation position corresponding to the receiver based on the acquired task flow;
and triggering an information sending instruction corresponding to the operation position so as to send the information to be sent to the receiver.
In a sixth aspect, an embodiment of the present application further provides an electronic device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is operating, the machine-readable instructions when executed by the processor performing the steps of the first aspect described above, or any one of the possible implementations of the first aspect, or the second aspect described above, or any one of the possible implementations of the second aspect.
In a seventh aspect, this application provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to perform the steps in the first aspect, or any one of the possible implementations of the first aspect, or the steps in the second aspect, or any one of the possible implementations of the second aspect.
The embodiment of the application provides a system for sending information, which comprises: a client and a server; the server is used for generating a task and sending the task to the client; and the tasks include: the method comprises the steps of sending information to be sent, type identification used for indicating a task operation process and information of a receiver; the client is used for receiving the tasks sent by the server; acquiring a task flow based on the type identifier; and based on the acquired task flow and the information of the receiver, the information to be sent is sent to the receiver corresponding to the information of the receiver, and the information is automatically replied through the interaction between the client and the server, so that the efficiency of information communication is improved.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. The objectives and other advantages of the application will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the detailed description of the present application or the technical solutions in the prior art, the drawings needed to be used in the detailed description of the present application or the prior art description will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flow chart illustrating a system for sending information according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a method for sending information according to an embodiment of the present application;
fig. 3 is a flowchart illustrating another method for sending information according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram illustrating an apparatus for sending information according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of another apparatus for sending information provided in an embodiment of the present application;
fig. 6 shows a schematic structural diagram of an electronic device 600 provided in an embodiment of the present application;
fig. 7 shows a schematic structural diagram of another electronic device 700 provided in an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the present application will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
For the convenience of understanding the present embodiment, a detailed description will be given first of all of a system for transmitting information disclosed in the embodiments of the present application.
Example one
Referring to fig. 1, a schematic flow chart of a system for sending information provided in an embodiment of the present application is shown, where the system includes: the client and the server specifically comprise the following steps:
and step 101, generating a task.
Wherein, the task specifically includes: the system comprises information to be sent, type identification used for indicating a task operation flow and information of a receiver.
A server for generating tasks in the following manner:
receiving task information input by a user based on a form page and execution information corresponding to the task information; and generating a task based on the task information and the execution information, and storing the task in a task table of the database.
Here, the execution information includes execution time information and execution target information.
Specifically, the execution time information is a preset time.
Illustratively, when the time is 8 am on 23 am on 4/2019, a user inputs task information on a form page to promote a product activity at 4 am on 24 pm on 4/2019, and execution information corresponding to the task information is to promote the product activity in an X group in a mobile phone a, then a task is generated according to the task information and the execution information corresponding to the task information, the task is to promote the product activity in the X group in the mobile phone a at 4 pm on 24/4/2019, and the task is stored in a task table of a database. And when the time reaches 3:58 pm of 24 th of 4.2019, judging that no task is located in the task table of the database before the task, sending the promotion task of the product activity to the mobile phone A after receiving a task request instruction of the mobile phone A, and if the task is located in the task table of the database before the task, completing the task before the task first and then completing the task.
Illustratively, when information is automatically replied through WeChat, an interface which can be accessed by a client is opened by adopting a spring-boot framework, a server realizes the form page setting of a web end through acquiring a task interface and setting a task state interface and through thymeleaf, wherein the spring-boot framework can simplify the initial building and development process of spring application and is configured in a specific mode, so that developers do not need to define the configuration of template.
102, sending a task to a client;
after receiving a task request of a client, a server sends a task to the client in the following way:
detecting whether a current task to be executed exists in a task table or not based on execution time information corresponding to each task;
and if the task to be executed exists, reading task information of the task to be executed from the task table, and sending the task information of the task to be executed to the client corresponding to the execution target information based on the execution target information of the task to be executed.
Illustratively, when the time is 8 am on 23/4/2019, the current time and the task to be executed with the time sending requirement before the current time do not exist in the task table, and the task to be executed without the time sending requirement exists in the task table, the task to be executed is sent.
Illustratively, when the time is 8 am on 4/23/2019, a user firstly inputs task information on a form page to promote product activities at 4 am on 4/24/2019, an execution information corresponding to the task information is promotion of the product activities in an X group in a mobile phone a, then inputs product inquiry information of a client queen at 4 pm on 4/23/2018 on the form page, finds a dialog box with the queen in a mobile phone B, periodically sends a task request instruction to a server by the client mobile phone a and the mobile phone B, further periodically detects whether a corresponding execution task exists in a task table of a database by the server, and reads the task information of the task to be executed and the corresponding execution information from the task table of the database after the server receives the task request instruction sent by the mobile phone B when the time reaches 4 am on 4/23/2018/23/4/2019, and sending the task information of the task to be executed to the B mobile phone.
Illustratively, when the information is automatically replied through the WeChat, the client can acquire a timing task through the Alarm Manager, request once every minute to check whether a new task exists, wait if no new task exists, open the WeChat if a new task exists, and trigger an on Access Event function of the Access Service when the client receives a task sent by the server and a WeChat page changes, so as to complete the task according to the task instruction.
Here, different clients periodically send task request commands to the server according to their respective periodic time periods, and the server determines whether there is a task corresponding to the client.
And the server is used for changing the to-be-executed state of the to-be-executed task in the task table into the executing state after reading the task information of the to-be-executed task from the task table, and updating the executing state of the to-be-executed task according to the executing result of the to-be-executed task of the client.
Here, the state of the task to be executed that is not read in the task table is a to-be-executed state, after the server sends the to-be-executed task to the client, the to-be-executed state of the to-be-executed task in the task table is changed to an executing state, after the client successfully executes the to-be-executed task, the server receives a success instruction and changes the executing state of the to-be-executed task to a completed state, and after the client unsuccessfully executes the to-be-executed task, the server receives a failure instruction and changes the executing state of the to-be-executed task to a failed state.
The task in the failure state in the task table can be reset to be the task to be executed, and the time to be executed can be preset.
And step 103, receiving the tasks sent by the server.
104, acquiring a task flow based on the type identifier; and sending the information to be sent to a receiver corresponding to the receiver information based on the acquired task flow and the receiver information.
Specifically, based on the acquired task flow, the information to be sent is copied to an operation position corresponding to the information of the receiver; and triggering an information sending instruction corresponding to the operation position so as to send the information to be sent to the receiving party.
Illustratively, when information is automatically replied through WeChat, after a client receives a task sent by a server, a task flow of the task is judged according to a task type identifier, if a task to be executed exists in a mobile phone A, X, Y, Z WeChat groups are stored in the mobile phone A, when the task needs to reply the information to an X WeChat group, the operation of manually clicking a page can be simulated through an auxiliary function corresponding to the mobile phone A, an input interface of the X WeChat group is further determined according to the task information, the information to be sent is copied to the input interface of the X WeChat group, and after a trigger information sending instruction is received, the information to be sent is sent to the X WeChat group to complete the task.
When the task is a person needing to reply information to some X WeChat group, an input interface of the X WeChat group is determined according to the task information, the input interface is input to the X WeChat group at first, then the member in the X WeChat group is selected according to an instruction, after the selected member is judged to be a designated member after the selection is completed, the information to be sent is copied to the input interface of the X WeChat group, and after a trigger information sending instruction is received, the information to be sent is sent to the X WeChat group to complete the task.
When the task is that information needs to be replied to some friends in the mobile phone A, a friend interface which can be selected is determined by a group sending assistant in the WeChat, after the selection is completed, the information to be sent is copied to a corresponding input interface, and after a trigger information sending instruction is received, the information to be sent is sent to some friends in the mobile phone A, so that the task is completed.
After the task of the client is completed, the opened WeChat interface is returned to the interface state before the task is received by calling the return instruction.
After sending the information to be sent to a receiver, the client sends a task completion instruction to the server; and after receiving the task completion instruction sent by the client, the server updates the task state.
The present embodiment provides a system for transmitting information, including: a client and a server; the server is used for generating a task and sending the task to the client; and the tasks include: the method comprises the steps of sending information to be sent, type identification used for indicating a task operation process and information of a receiver; the client is used for receiving the tasks sent by the server; acquiring a task flow based on the type identifier; and based on the acquired task flow and the information of the receiver, the information to be sent is sent to the receiver corresponding to the information of the receiver, and the information is automatically replied through the interaction between the client and the server, so that the efficiency of information communication is improved.
Example two
Referring to fig. 2, a schematic flow chart of a method for sending information provided in the embodiment of the present application is applied to a server, and specifically includes the following steps:
step 201, generating a task, wherein the task comprises: the system comprises information to be sent, type identification used for indicating a task operation flow and information of a receiver.
The type identifier is used for indicating the client to acquire the task operation flow and sending the information to be sent to the receiver corresponding to the receiver information based on the acquired task operation flow.
Specifically, the task is generated in the following way:
receiving task information input by a user based on a form page and execution information corresponding to the task information; and generating a task based on the task information and the execution information, and storing the task in a task table of the database.
Here, the execution information includes execution time information and execution target information.
Step 202, sending the task to the client.
After receiving a task request of a client, a server sends a task to the client in the following way:
detecting whether a current task to be executed exists in a task table or not based on execution time information corresponding to each task;
and if the task to be executed exists, reading task information of the task to be executed from the task table, and sending the task information of the task to be executed to the client corresponding to the execution target information based on the execution target information of the task to be executed.
Optionally, the method further comprises: after reading the task information of the task to be executed from the task table, changing the state of the task to be executed in the task table into the executing state, and updating the executing state of the task to be executed according to the executing result of the task to be executed by the client.
Referring to fig. 3, a schematic flow chart of another method for sending information provided in the embodiment of the present application is applied to a client, and specifically includes the following steps:
step 301, receiving a task sent by a server, wherein the task comprises: the method comprises the steps of sending information to be sent, type identification used for indicating a task operation process and information of a receiver;
step 302, acquiring a task flow based on the type identifier;
and step 303, sending the information to be sent to a receiver corresponding to the receiver information based on the acquired task flow and the receiver information.
Specifically, based on the acquired task flow, the information to be sent is copied to an operation position corresponding to the receiver; and triggering an information sending instruction corresponding to the operation position so as to send the information to be sent to the receiving party.
The embodiment provides a method for sending information, which sends a task to a client after the task is generated by a server, wherein the task comprises: the method comprises the steps of sending information to be sent, type identification used for indicating a task operation process and information of a receiver; the client receives a task sent by the server and obtains a task flow based on the type identifier; and then, based on the acquired task flow and the information of the receiver, the information to be sent is sent to the receiver corresponding to the information of the receiver, and the information is automatically replied through the interaction between the client and the server, so that the efficiency of information communication is improved.
EXAMPLE III
Referring to fig. 4, a schematic flow chart of an apparatus for sending information according to an embodiment of the present application, applied to a server, includes: the generating module 401 and the sending module 402 specifically:
a generating module 401, configured to generate a task, where the task includes: the method comprises the steps of sending information to be sent, type identification used for indicating a task operation process and information of a receiver;
a sending module 402, configured to send the task to a client;
the type identifier is used for indicating the client to acquire the task operation flow and sending the information to be sent to a receiver corresponding to the receiver information based on the acquired task operation flow.
In an embodiment of the present application, the generating module 401 generates the task by using the following method:
receiving task information input by a user based on a form page and execution information corresponding to the task information;
and generating a task based on the task information and the execution information, and storing the task in a task table of a database.
In an embodiment of the application, in the generating module 401, the execution information includes execution time information and execution target information; after receiving a task request of the client;
in the sending module, the task is sent to the client side by adopting the following mode:
detecting whether a current task to be executed exists in the task table or not based on execution time information corresponding to each task;
and if the task to be executed exists, reading the task information of the task to be executed from the task table, and sending the task information of the task to be executed to a client corresponding to the execution target information based on the execution target information of the task to be executed.
In an embodiment of the present application, the apparatus is further configured to: after reading the task information of the task to be executed from the task table, changing the state of the task to be executed in the task table to be the executing state, and updating the executing state according to the execution result of the client to the task to be executed.
Referring to fig. 5, a schematic flow chart of another apparatus for sending information according to the embodiment of the present application is applied to a client, and the apparatus includes: a receiving module 501, an obtaining module 502, and a sending module 503, specifically:
a receiving module 501, configured to receive a task sent by a server, where the task includes: the method comprises the steps of sending information to be sent, type identification used for indicating a task operation process and information of a receiver;
an obtaining module 502, configured to obtain a task flow based on the type identifier;
a sending module 503, configured to send the information to be sent to a receiver corresponding to the receiver information based on the obtained task flow and the receiver information.
In an embodiment of the application, in the sending module 503, sending the information to be sent to the receiver corresponding to the receiver information based on the obtained task flow and the receiver information includes:
copying the information to be sent to an operation position corresponding to the receiver based on the acquired task flow;
and triggering an information sending instruction corresponding to the operation position so as to send the information to be sent to the receiver.
Example four
Based on the same technical concept, the embodiment of the application also provides the electronic equipment. Referring to fig. 6, a schematic structural diagram of an electronic device 600 provided in the embodiment of the present application includes a processor 601, a memory 602, and a bus 603. The memory 602 is used for storing execution instructions and includes a memory 6021 and an external memory 6022; the memory 6021 is also referred to as an internal memory, and is configured to temporarily store the operation data in the processor 601 and the data exchanged with the external memory 6022 such as a hard disk, the processor 601 exchanges data with the external memory 6022 through the memory 6021, and when the electronic device 600 operates, the processor 601 communicates with the memory 602 through the bus 603, so that the processor 601 executes the following instructions:
generating a task, the task comprising: the method comprises the steps of sending information to be sent, type identification used for indicating a task operation process and information of a receiver;
sending the task to a client;
the type identifier is used for indicating the client to acquire the task operation flow and sending the information to be sent to a receiver corresponding to the receiver information based on the acquired task operation flow.
In one possible design, the processor 601 performs the processing to generate the tasks as follows:
receiving task information input by a user based on a form page and execution information corresponding to the task information;
and generating a task based on the task information and the execution information, and storing the task in a task table of a database.
In one possible design, the processor 601 executes the processing, where the execution information includes execution time information and execution target information; after receiving a task request of the client;
the server sends the task to the client in the following mode:
detecting whether a current task to be executed exists in the task table or not based on execution time information corresponding to each task;
and if the task to be executed exists, reading the task information of the task to be executed from the task table, and sending the task information of the task to be executed to a client corresponding to the execution target information based on the execution target information of the task to be executed.
In one possible design, the processor 601 performs the process further comprising: after reading the task information of the task to be executed from the task table, changing the state of the task to be executed in the task table to be the executing state, and updating the executing state of the task to be executed according to the execution result of the client to the task to be executed.
Based on the same technical concept, the embodiment of the application also provides the electronic equipment. Referring to fig. 7, a schematic structural diagram of an electronic device 700 provided in the embodiment of the present application includes a processor 701, a memory 702, and a bus 703. The memory 702 is used for storing execution instructions and includes a memory 7021 and an external memory 7022; the memory 7021 is also referred to as an internal memory, and is used to temporarily store operation data in the processor 701 and data exchanged with an external memory 7022 such as a hard disk, the processor 701 exchanges data with the external memory 7022 through the memory 7021, and when the electronic device 700 is operated, the processor 701 and the memory 702 communicate with each other through the bus 703, so that the processor 701 executes the following instructions:
receiving a task sent by a server, wherein the task comprises the following steps: the method comprises the steps of sending information to be sent, type identification used for indicating a task operation process and information of a receiver;
acquiring a task flow based on the type identification;
and sending the information to be sent to a receiver corresponding to the receiver information based on the acquired task flow and the receiver information.
In a possible design, in the processing executed by the processor 701, the sending the information to be sent to the receiver corresponding to the receiver information based on the acquired task flow and the receiver information includes:
copying the information to be sent to an operation position corresponding to the receiver based on the acquired task flow;
and triggering an information sending instruction corresponding to the operation position so as to send the information to be sent to the receiver.
EXAMPLE five
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program performs the steps of the above method for sending information.
Specifically, the storage medium can be a general-purpose storage medium, such as a removable disk, a hard disk, and the like, and when a computer program on the storage medium is executed, the steps of the method for sending the information can be executed, so that automatic reply of the information is realized, and efficiency of communication between the information is improved.
The computer program product of the method for sending information provided in the embodiment of the present application includes a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method in the foregoing method embodiment, and specific implementation may refer to the method embodiment, and details are not described here again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the present disclosure, which should be construed in light of the above teachings. Are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. A system for transmitting information, the system comprising: a client and a server;
the server is used for generating a task and sending the task to the client; the tasks include: the method comprises the steps of sending information to be sent, type identification used for indicating a task operation process and information of a receiver;
the client is used for receiving the tasks sent by the server; acquiring a task flow based on the type identification; based on the acquired task flow and the receiver information, sending the information to be sent to a receiver corresponding to the receiver information;
the server is used for generating the task by adopting the following modes: receiving task information input by a user based on a form page and execution information corresponding to the task information; generating a task based on the task information and the execution information, and storing the task in a task table of a database;
the client is used for periodically sending a task request instruction to the server so that the server judges whether a task corresponding to the client exists in the task table;
the execution information comprises execution time information and execution target information; after receiving a task request of the client; the server is used for sending the task to the client in the following mode: detecting whether a current task to be executed exists in the task table or not based on execution time information corresponding to each task; if the task to be executed exists, reading task information of the task to be executed from the task table, and sending the task information of the task to be executed to a client corresponding to the execution target information based on the execution target information of the task to be executed;
and before detecting whether a current task to be executed exists in the task table based on the execution time information corresponding to each task, the server judges whether a task before the task exists in the task table of the database, and if the task before the task exists, the server sends the task before the task to the client and then sends the task to the client.
2. The system according to claim 1, wherein the server is further configured to, after reading the task information of the task to be executed from the task table, change a state of the task to be executed in the task table to an executing state, and update the executing state of the task to be executed according to an execution result of the task to be executed by the client.
3. The system according to claim 1, wherein the client is specifically configured to send the information to be sent to a receiver corresponding to the receiver information in the following manner:
copying the information to be sent to an operation position corresponding to the receiver information based on the acquired task flow;
and triggering an information sending instruction corresponding to the operation position so as to send the information to be sent to the receiver.
4. A method for sending information, applied to a server, the method comprising:
generating a task, the task comprising: the method comprises the steps of sending information to be sent, type identification used for indicating a task operation process and information of a receiver;
sending the task to a client;
the type identifier is used for indicating the client to acquire the task operation flow and sending the information to be sent to a receiver corresponding to the receiver information based on the task operation flow;
generating the task in the following way: receiving task information input by a user based on a form page and execution information corresponding to the task information; generating a task based on the task information and the execution information, and storing the task in a task table of a database;
receiving a task request instruction periodically sent by the client, and judging whether a task corresponding to the client exists in the task table;
the execution information comprises execution time information and execution target information; after receiving a task request of the client; the server sends the task to the client in the following mode: detecting whether a current task to be executed exists in the task table or not based on execution time information corresponding to each task; if the task to be executed exists, reading task information of the task to be executed from the task table, and sending the task information of the task to be executed to a client corresponding to the execution target information based on the execution target information of the task to be executed;
and before detecting whether a current task to be executed exists in the task table based on the execution time information corresponding to each task, the server judges whether a task before the task exists in the task table of the database, and if the task before the task exists, the server sends the task before the task to the client and then sends the task to the client.
5. The method of claim 4, further comprising: after reading the task information of the task to be executed from the task table, changing the state of the task to be executed in the task table to be the executing state, and updating the executing state according to the execution result of the client to the task to be executed.
6. A method for sending information, applied to a client, the method comprising:
receiving a task sent by a server, wherein the task comprises the following steps: the method comprises the steps of sending information to be sent, type identification used for indicating a task operation process and information of a receiver;
acquiring a task flow based on the type identification;
based on the acquired task flow and the receiver information, sending the information to be sent to a receiver corresponding to the receiver information;
the task is generated by the server in the following way: receiving task information input by a user based on a form page and execution information corresponding to the task information; generating a task based on the task information and the execution information, and storing the task in a task table of a database;
periodically sending a task request instruction to the server so that the server judges whether a task corresponding to the client exists in the task table;
the execution information comprises execution time information and execution target information; the task is sent by the server in the following way: after receiving a task request of the client; detecting whether a current task to be executed exists in the task table or not based on execution time information corresponding to each task; if the task to be executed exists, reading task information of the task to be executed from the task table, and sending the task information of the task to be executed to a client corresponding to the execution target information based on the execution target information of the task to be executed;
and before detecting whether a current task to be executed exists in the task table based on the execution time information corresponding to each task, the server judges whether a task before the task exists in the task table of the database, and if the task before the task exists, the server sends the task before the task to the client and then sends the task to the client.
7. The method according to claim 6, wherein the sending the information to be sent to the receiver corresponding to the receiver information based on the acquired task flow and the receiver information includes:
copying the information to be sent to an operation position corresponding to the receiver based on the acquired task flow;
and triggering an information sending instruction corresponding to the operation position so as to send the information to be sent to the receiver.
8. An apparatus for transmitting information, applied to a server, the apparatus comprising:
a generating module configured to generate a task, the task including: the method comprises the steps of sending information to be sent, type identification used for indicating a task operation process and information of a receiver;
the sending module is used for sending the task to the client;
the type identifier is used for indicating the client to acquire the task operation flow and sending the information to be sent to a receiver corresponding to the receiver information based on the acquired task operation flow;
the generating module specifically generates the task in the following manner: receiving task information input by a user based on a form page and execution information corresponding to the task information; generating a task based on the task information and the execution information, and storing the task in a task table of a database;
the generation module is further to: receiving a task request instruction periodically sent by the client, and judging whether a task corresponding to the client exists in the task table;
the execution information comprises execution time information and execution target information; after receiving a task request of the client; the sending module sends the task to the client by adopting the following method: detecting whether a current task to be executed exists in the task table or not based on execution time information corresponding to each task; if the task to be executed exists, reading task information of the task to be executed from the task table, and sending the task information of the task to be executed to a client corresponding to the execution target information based on the execution target information of the task to be executed;
the sending module is configured to, before the sending module is configured to detect whether there is a current task to be executed in the task table based on the execution time information corresponding to each task, further: and judging whether a task before the task exists in a task table of the database, if so, sending the task before the task to the client, and then sending the task to the client.
9. An apparatus for transmitting information, applied to a client, the apparatus comprising:
a receiving module, configured to receive a task sent by a server, where the task includes: the method comprises the steps of sending information to be sent, type identification used for indicating a task operation process and information of a receiver;
the acquisition module is used for acquiring a task flow based on the type identifier;
the sending module is used for sending the information to be sent to a receiver corresponding to the receiver information based on the acquired task flow and the receiver information;
the task is generated by the server in the following way: receiving task information input by a user based on a form page and execution information corresponding to the task information; generating a task based on the task information and the execution information, and storing the task in a task table of a database;
the receiving module is further configured to: periodically sending a task request instruction to the server so that the server judges whether a task corresponding to the client exists in the task table;
the execution information comprises execution time information and execution target information; the task is sent by the server in the following way: after receiving a task request of the client; detecting whether a current task to be executed exists in the task table or not based on execution time information corresponding to each task; if the task to be executed exists, reading task information of the task to be executed from the task table, and sending the task information of the task to be executed to a client corresponding to the execution target information based on the execution target information of the task to be executed;
and before detecting whether a current task to be executed exists in the task table based on the execution time information corresponding to each task, the server judges whether a task before the task exists in the task table of the database, and if the task before the task exists, the server sends the task before the task to the client and then sends the task to the client.
10. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when the electronic device is operating, the machine-readable instructions when executed by the processor performing the steps of the method of transmitting information according to any one of claims 4 to 5 or performing the steps of the method of transmitting information according to any one of claims 6 to 7.
11. A computer-readable storage medium, having stored thereon a computer program for performing, when executed by a processor, the steps of the method for transmitting information according to any one of claims 4 to 5, or the steps of the method for transmitting information according to any one of claims 6 to 7.
CN201910656499.4A 2019-07-19 2019-07-19 Method, device and system for sending information Active CN110351293B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910656499.4A CN110351293B (en) 2019-07-19 2019-07-19 Method, device and system for sending information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910656499.4A CN110351293B (en) 2019-07-19 2019-07-19 Method, device and system for sending information

Publications (2)

Publication Number Publication Date
CN110351293A CN110351293A (en) 2019-10-18
CN110351293B true CN110351293B (en) 2022-03-01

Family

ID=68179464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910656499.4A Active CN110351293B (en) 2019-07-19 2019-07-19 Method, device and system for sending information

Country Status (1)

Country Link
CN (1) CN110351293B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791080A (en) * 2014-12-24 2016-07-20 北京奇虎科技有限公司 Group-sending message processing method and system as well as electronic device
CN106412047A (en) * 2016-09-23 2017-02-15 北京小米移动软件有限公司 Notification message prompting methods and apparatuses
CN107040450A (en) * 2016-07-20 2017-08-11 平安科技(深圳)有限公司 Automatic reply method and device
CN109492152A (en) * 2018-09-26 2019-03-19 平安科技(深圳)有限公司 Push method, apparatus, computer equipment and the storage medium of customized content
CN109587038A (en) * 2018-11-30 2019-04-05 深圳市买买提信息科技有限公司 Information push method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791080A (en) * 2014-12-24 2016-07-20 北京奇虎科技有限公司 Group-sending message processing method and system as well as electronic device
CN107040450A (en) * 2016-07-20 2017-08-11 平安科技(深圳)有限公司 Automatic reply method and device
CN106412047A (en) * 2016-09-23 2017-02-15 北京小米移动软件有限公司 Notification message prompting methods and apparatuses
CN109492152A (en) * 2018-09-26 2019-03-19 平安科技(深圳)有限公司 Push method, apparatus, computer equipment and the storage medium of customized content
CN109587038A (en) * 2018-11-30 2019-04-05 深圳市买买提信息科技有限公司 Information push method and device

Also Published As

Publication number Publication date
CN110351293A (en) 2019-10-18

Similar Documents

Publication Publication Date Title
CN108228814B (en) Data synchronization method and device
US20030115570A1 (en) Development environment for building software applications that mimics the target environment
CN111723313A (en) Page jump processing method, device, equipment and storage medium
JP2019500680A (en) Data processing method and apparatus
CN110264190A (en) Triggering method, device, equipment and the storage medium of intelligent contract
CN109145590B (en) Function hook detection method, detection equipment and computer readable medium
CN110222535B (en) Processing device, method and storage medium for block chain configuration file
CN106095814A (en) Contact person's processing method and server
CN104732329A (en) Device tracking method and system
CN112672357A (en) Method and device for processing user account in business system and computer equipment
CN111767128A (en) Method and device for executing timing task
CN110187877B (en) Icon acquisition method, device and system, electronic equipment and storage medium
CN109391658B (en) Account data synchronization method and equipment, storage medium and terminal thereof
CN110351293B (en) Method, device and system for sending information
CN109656592A (en) Card management method, apparatus, terminal and computer readable storage medium
CN107705384B (en) Attendance checking method, system, electronic device and storage medium
CN114282940A (en) Method and apparatus for intention recognition, storage medium, and electronic device
CN111767481B (en) Access processing method, device, equipment and storage medium
CN114968822A (en) Interface testing method and device, computer equipment and storage medium
JP2007310807A (en) Plug-in version management system
CN106354620B (en) Resource monitoring method and system
CN111291335B (en) Bill data processing method and device, computer equipment and storage medium
CN114745280B (en) Asset information management method, device, equipment and readable storage medium
CN112561455B (en) Business application control system and business application control method
CN111324472B (en) Method and device for judging garbage items of information to be detected

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