CN111597784A - Information sending method, device, terminal equipment and medium - Google Patents

Information sending method, device, terminal equipment and medium Download PDF

Info

Publication number
CN111597784A
CN111597784A CN202010272994.8A CN202010272994A CN111597784A CN 111597784 A CN111597784 A CN 111597784A CN 202010272994 A CN202010272994 A CN 202010272994A CN 111597784 A CN111597784 A CN 111597784A
Authority
CN
China
Prior art keywords
information
service
user
template
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010272994.8A
Other languages
Chinese (zh)
Inventor
余文胜
刘旭东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Mengwang Technology Development Co ltd
Original Assignee
Hunan Mengwang Technology Development 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 Hunan Mengwang Technology Development Co ltd filed Critical Hunan Mengwang Technology Development Co ltd
Priority to CN202010272994.8A priority Critical patent/CN111597784A/en
Publication of CN111597784A publication Critical patent/CN111597784A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Artificial Intelligence (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application is applicable to the technical field of information, and provides an information sending method, an information sending device, terminal equipment and a medium.

Description

Information sending method, device, terminal equipment and medium
Technical Field
The present application belongs to the field of information technology, and in particular, to an information sending method, apparatus, terminal device, and medium.
Background
Currently, there are various business systems in an enterprise, each of which contains a corresponding client. When the notification information needs to be sent to the client through the service system, a worker needs to manually edit the notification information in advance or temporarily edit the notification information, which not only takes a long time to input the content of the notification information, but also needs to modify the content of the notification information of each corresponding client more or less if the number of the clients is too large, which may cause the problem that the information cannot be sent in time and the efficiency of sending the notification information is low.
Disclosure of Invention
The embodiment of the application provides an information sending method, an information sending device, terminal equipment and a medium, and can solve the problems that existing notification information cannot be sent in time and sending efficiency is low.
In a first aspect, an embodiment of the present application provides an information sending method, including:
receiving a configuration instruction of a first user, and configuring the service attribute of each service according to the configuration instruction;
when the state corresponding to the target service is detected to be in processing, analyzing the service attribute of the target service to obtain an information template matched with the target service and second user information;
generating an information text to be sent according to the information template and the second user information;
and sending the information text to be sent to a user terminal corresponding to the second user information.
In one embodiment, the service attributes include one or more service attribute tags; the receiving of the configuration instruction of the first user includes:
displaying an editable service attribute label;
and receiving the service attribute information of each service input by the first user aiming at the service attribute tag.
In one embodiment, the service attributes include an execution period of the service; after configuring the service attribute of each service according to the configuration instruction, the method further includes:
traversing each service to obtain an execution cycle corresponding to each service;
and changing the state of the service with the execution period matched with the current time into the processing.
In an embodiment, the analyzing the service attribute of the target service to obtain an information template and second user information matched with the target service includes:
determining target execution threads corresponding to the target services, each service being configured to be processed by an independent execution thread;
and calling the target execution thread to analyze the service attribute of the target service, and acquiring an information template and second user information which are matched with the target service.
In an embodiment, the invoking the target execution thread to analyze the service attribute of the target service to obtain an information template and second user information matched with the target service includes:
calling the target execution thread to analyze the target service to obtain a user information condition configured by the first user and an information template of the target service;
and screening the second user information from a preset database according to the user information condition.
In one embodiment, the information template comprises a plurality of information templates; after the second user information is screened from a preset database according to the user information condition, the method further comprises the following steps:
analyzing each information template to obtain template conditions corresponding to each information template;
and determining a target information template matched with the second user information according to the second user information and the template condition.
In an embodiment, after the generating an information text to be sent according to the information template and the second user information, the method further includes:
detecting whether the information text and the second user information are effective or not;
if at least one of the information text and the second user information is invalid, recording invalid data, and reminding the first user according to the invalid data;
and if the information text and the second user information are both effective, executing the step of sending the information text to be sent to a user terminal corresponding to the second user information.
In a second aspect, an embodiment of the present application provides an information sending apparatus, including:
the first receiving module is used for receiving a configuration instruction of a first user and configuring the service attribute of each service according to the configuration instruction;
the analysis module is used for analyzing the service attribute of the target service when the state corresponding to the target service is detected to be in processing, and acquiring an information template and second user information which are matched with the target service;
the generating module is used for generating an information text to be sent according to the information template and the second user information;
and the first sending module is used for sending the information text to be sent to the user terminal corresponding to the second user information.
In a third aspect, an embodiment of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the information sending method according to any one of the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, and the embodiment of the present application provides a computer-readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the information sending method according to any one of the first aspect.
In a fifth aspect, an embodiment of the present application provides a computer program product, which, when running on a terminal device, causes the terminal device to execute the information sending method according to any one of the above first aspects.
Compared with the prior art, the embodiment of the application has the advantages that: the service attributes of different services are configured on the system according to the configuration instruction of the first user, when the current service is detected to be in a processing state, the service attribute of the corresponding target service is analyzed, an information template and second user information which are configured in advance by the service are obtained, an information text to be sent is generated according to the information template and the second user information and is sent to the user terminal of the second user information, the notification information can be sent in time, and the sending efficiency of the notification information is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flow chart of an implementation of an information sending method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of another implementation of an information sending method according to an embodiment of the present application;
fig. 3 is a schematic view of a configuration interface of an information sending system in an information sending method according to an embodiment of the present application;
fig. 4 is a schematic view of another configuration interface of an information sending system in an information sending method according to an embodiment of the present application;
fig. 5 is a schematic view of another configuration interface of an information sending system in an information sending method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an information sending apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
The information sending method provided by the embodiment of the present application may be applied to terminal devices such as a tablet computer, a notebook computer, and an ultra-mobile personal computer (UMPC), and the specific type of the terminal device is not limited in any way in the embodiment of the present application.
In application, the terminal device includes an information transmission system therein for executing an information transmission method. Specifically, the information transmission system includes: the second receiving module, the execution module, the second sending module and the storage module; the second receiving module is responsible for receiving a configuration instruction of the service from the terminal device, transmitting the configuration instruction of the service to the execution module, and also responsible for receiving an instruction of executing and stopping the service, and in other applications, the number of the terminals may be one or multiple, which is not limited herein. The execution module is responsible for executing the configuration instruction transmitted by the second receiving module and transmitting the execution result to the sending module. Specifically, the execution module further includes a configuration submodule, an acquisition submodule, and a matching submodule, and the configuration submodule notifies the acquisition submodule to call data from the storage module after receiving the configuration instruction. For example, the obtaining submodule retrieves data, such as an execution period of a service, user information, an information template and the like, which are pre-stored by a user, from the storage module, and transmits the obtained data to the matching submodule; the matching submodule is responsible for generating a complete information text to be sent after matching the information template according to the obtained data and transmitting the generated information text to the second sending module; the second sending module sends the information text to be sent to a destination address (namely a user terminal) according to user information, wherein the user information comprises but is not limited to a mobile phone number, a micro signal, a mailbox account and the like. The storage module is responsible for storing data, such as execution cycles of services, and configures which execution cycle the current service runs in according to the logic rules of the service that needs to be configured currently, wherein options including but not limited to: the execution is performed once per day at a specified time, once per week at a specified time, and once per month at a specified time, which is not limited. The stored data also comprises user information, wherein the user information comprises one or more labels such as organization codes, associated serial numbers, mobile phone numbers and the like of the user which are configured according to specified fields in the SQL statement; in addition, the storage data also comprises an information template, wherein the information template mainly comprises a template name, template contents, template conditions and an identifier for judging whether the template is a default template. Each service can define a plurality of information templates in a user-defined mode, and each template contains a template condition of the service, so that which template is specifically used for the second user information is determined by the matched template condition; when the information template is newly created, one or more different template conditions can be set according to different services. For example, for a bill consumption template, the template name is "bill consumption", the template content is "respected" # nickname #, your bill has been generated ", the template condition may be sent when the customer consumption reaches a certain amount, and if there is only one bill consumption template for the current service, the bill consumption template may be considered to have the template identification and preferentially use the current information template.
Fig. 1 shows a flowchart of an implementation of an information sending method provided in an embodiment of the present application, which is detailed as follows:
s101, receiving a configuration instruction of a first user, and configuring the service attribute of each service according to the configuration instruction.
In an application, the first user may be a developer of the information transmission system, may be a project administrator of a certain configured service in the information transmission system, or may be created by combining the two, which is not limited herein. For example, a developer develops an information delivery system, a project principal creates a service, and configures a service identification, an information template, a template condition, and the like for each scene content.
In application, the service attribute includes, but is not limited to, an execution cycle of the service: how often the service is executed; service identification: the service identification can be composed of alphanumerics or underlines and is the unique identification of the service, and the information sending system can identify each service according to the service identification; service name: a name describing the service; service description: brief introduction and description of the functional role of the current service; service priority: each service has its own priority, and when a plurality of services are executed simultaneously, the service attributes of the corresponding service are sequentially analyzed according to the priority of each service, which is not limited.
In application, the services include, but are not limited to, a coupon service, an order notification service, and the like, for example, the coupon pickup information may be sent to a second user when the coupon service set by the first user is consumed by a consumer (the second user) at a certain limit.
S102, when the condition corresponding to the target service is detected to be in processing, analyzing the service attribute of the target service, and obtaining an information template matched with the target service and second user information.
In the application, a plurality of services can be configured in one service system at the same time, wherein if the current state of a service is a processing state, the current service is a target service, that is, the target service is a service which is required to be executed by the information sending system currently. The service state in one execution cycle includes an unexecuted unprocessed state, an executing processed state, and a processed state after the information text to be sent is sent to the user terminal corresponding to the second user information, which is not limited herein.
In the application, a target service may include one or more information templates, and when configuring the service attributes of the service, an association relationship between the target service and the information templates may be established, and the specified information templates may be queried according to the target service, where the target service and the information templates are in a single-to-single or single-to-multiple mapping relationship. The information template includes, but is not limited to, a WeChat template, a short message template and an APP notification information template, and the second user information meeting the preset template condition is second user information pre-stored in the database, if only including a mobile phone number of the second user, it can be determined that the second user information meets the template condition of the short message template, and if the pre-stored second user information only includes a micro signal of the second user, it is determined that the second user information meets the template condition of the WeChat template, which is not limited thereto.
In the application, the second user information includes, but is not limited to, a real name of the second user, a second user terminal contact address (e.g., a corresponding short message contact address, a corresponding mail contact address, etc.), an organization code of the second user, and so on. The second user information may be provided by the first user, which records the corresponding related information in advance, and makes the related information available for the code in the information template. For example, the second user information may be pre-stored in a database for the first user, and when the target service is executed, the information sending system invokes a relevant service interface to preliminarily obtain all or part of the user information from the database, and screens the second user information from the obtained user information according to an information template, which is not limited herein.
S103, generating an information text to be sent according to the information template and the second user information.
In application, the information template includes fixed information and variable information, the fixed information is fixed content, and the variable information can be replaced by related SQL codes configured by the first user to become corresponding specific information. For example, the information text to be sent may be "respected" # nickname #, your bill has been generated ", where" respected "is fixed information and" # nickname # "is variable information, a nickname of the user is obtained according to the obtained second user information, and then the nickname is replaced by the user name so as to replace the variable information, that is, the" # nickname # "may be replaced by a preconfigured SQL code for corresponding fixed information, which is not limited. In an application, the second user information further includes a contact information of the second user, for example, a short message contact information, a corresponding mail contact information, a wechat public number, and the like, which is not limited herein.
And S104, sending the information text to be sent to a user terminal corresponding to the second user information.
In the application, the information text includes but is not limited to a short message form, or a WeChat public number form, or an APP notification information form through downloaded APP software. Specifically, after the second user purchases an item on the internet and uses the pay bank APP to pay a bill, the information sending system can form a' respected [ # nickname # ] according to the information of the second user, and you have paid [ # number # ] for waiting for sending an information text, and send the information text to a user terminal downloading the pay bank APP, or send the information text to a corresponding user terminal according to a mobile phone number associated with the pay bank or a mobile phone number recorded by the information of the second user, which is not limited to this.
In this embodiment, service attributes of different services are configured on the system according to a configuration instruction of a first user, and when it is detected that a current service is in a processing state, a service attribute of a corresponding target service is analyzed, an information template and second user information configured in advance by the service are obtained, and an information text to be sent is generated according to the information template and the second user information and is sent to a user terminal of the second user information, so that notification information can be sent in time, and the sending efficiency of the notification information is improved.
Referring to FIG. 2, in one embodiment, the service attributes comprise one or more service attribute tags; s101 includes:
s201, displaying an editable service attribute label;
s202, receiving the service attribute information of each service, which is input by the first user aiming at the service attribute label.
In application, the information sending system mainly comprises a software interface and a background program, wherein the software interface mainly comprises three parts: a first part creation/modification service; a second part import/export service; the third part starts/stops the service. Specifically, the creation/modification service includes: and displaying the editable service attribute labels on the software interface, and then carrying out configuration according to the received service attribute information of each service input by the first user aiming at the service attribute labels.
For example, service attributes of the service, such as the execution type, are configured according to the logic rule of the service that needs to be configured currently. Further comprising: and configuring service logic, namely configuring a logic SQL statement of second user information (mobile phone number) in the sent user, namely configuring the second user information (the mechanism code, the mobile phone number and other labels of the second user) according to a specified field in the logic SQL statement. And configuring the logic SQL sentences of the content in the sent information template, and giving labels corresponding to each field in the logic SQL sentences according to different service requirements, wherein the labels are used for generating the information template. And the SQL server is also used for configuring a message text transmission success mark in the service, and modifying a transmission record in the database after the message text transmission is successful, so as to indicate that a second user corresponding to the second user information is notified aiming at the current service. In other applications, the creating/modifying service further includes configuring a short message template of the service, for example, a template name, a template content, a template condition, and the like of the short message template.
In a specific application, referring to fig. 3 and 4, for a short message template, a service may configure multiple short message templates, multiple optional tags may be dynamically inserted into the content of the short message template, and multiple template conditions may be added to one short message template. The selectable tags in the template are tags pre-configured in the database, the "replaced tag (variable 1)" in the template content needs to be consistent with the tag edited in the "content" function, specifically refer to fig. 3, and if the "replaced tag (variable 1)" is not consistent with the tag edited in the "content" function, the replacement failure is sent to the user terminal of the first user for prompting. In addition, the tag of the content configuration may be selected to be null, and when the tag is allowed to be null, the value of the tag inserted in the short message template may be null, that is, the column field value of the corresponding tag fetched from the database by the service may be null, which may be specifically referred to fig. 4. And according to the service attribute configured by the first user, the label can be dynamically inserted and the template content of the short message template assembled by filling the static content, and one or more template conditions can be selected, wherein each label can correspond to one or more template conditions.
In application, the import/export service is used for exporting the existing similar service if the information sending system does not want to manually create a new service when a large number of services exist, and further manually modifies the service attributes of some services, so that a new service can be formed for use, and each service is conveniently and flexibly managed and maintained. For the start/stop service, the background program may be notified to start executing the service when the service is started, the background program may be notified to stop executing the service at any time when the service is not needed, and a certain service may be started/stopped, or a plurality of services may be started/stopped in batch, which is not limited.
In the application, the background program comprises: the background timing task framework is used for providing a stable background running environment for the user-defined service, regularly and uniformly managing and maintaining a plurality of user-defined services according to the service attributes of the service, improving the running efficiency and ensuring the efficient and stable execution of the service; the system also comprises execution threads, wherein each service runs in an independent execution thread, and when a certain service is down, the operation of other services is not influenced, so that the concurrency of service operation is improved; also includes service analysis and matching information template: the logic SQL statement used for analyzing the second user information which is pre-configured by the current service acquires the second user information from the database, acquires a corresponding information template according to the SQL statement used for analyzing the pre-configured information template, and dynamically replaces a label (variable information) in the information template into fixed information to generate an information text to be sent; the method also comprises the following steps of calling a gateway personalized group sending interface: the system is used for sending the information text by using a personalized mass sending interface provided by a gateway of a related platform (a short message platform and a WeChat platform).
In this embodiment, through the input box capable of editing the service attribute tag provided in the software interface, the first user can edit and test whether the input service attribute tag is valid on line, and can input any service attribute tag meeting the requirements according to the service requirements, so that the service rules and requirements of various services are compatible, and the first user can use the service attribute tag flexibly.
In other embodiments, after receiving the service attribute information of each service input by the first user for the service attribute tag, the content of the current information template may also be previewed to query the use effect. For example, after the service attribute configuration of the service is completed, the first user information of the first user is set to meet the configured template condition, the state of the modified target service is in the processing state, and then the user terminal corresponding to the first user information can acquire the information text generated by the information sending system according to the first user information and the information template, so that when the first user creates the service on line, the effect that the second user actually receives the information text on line can be previewed, and the service attribute of the service can be modified again according to the using effect.
In one embodiment, the service attributes include an execution period of the service; after S101, the method further includes:
and traversing each service to obtain the execution cycle corresponding to each service.
In the application, for a service with regularity, for example, every holiday (weekend or national day), if a fixed message text needs to be sent to the second user, a corresponding execution period may be configured in advance for the service, for example, every other week or every other year, and a specific service execution time point may be set every other week or every other year, which is not limited.
In other applications, the execution period may also be an execution time point pre-configured by the first user, where the execution time point has no fixed execution period, and the execution time point may be configured to know in advance what kind of service needs to be executed for the first user.
And changing the state of the service with the execution period matched with the current time into the processing.
In application, the execution period is a specific time point of a certain day, the information sending system can add the service to be executed on the day into the background timing task frame according to the execution period on the day, traverse all the services in the background timing task frame all the time, change the service from the state to be processed into the state to be processed when the time point in the set execution period is matched with the current time, and execute the current service (execute the background related program).
In this embodiment, by setting the execution cycle of each service, when a plurality of services need to be executed simultaneously, a plurality of configured services can be managed and maintained in a unified manner, so that the operation efficiency of the services is improved, and efficient and stable execution of the services is ensured.
In one embodiment, S102 includes:
determining target threads of execution corresponding to the target services, each service being configured to be processed by a separate thread of execution.
In application, the target execution thread may establish an association relationship with a corresponding target service in advance, and then start the target execution thread to process the target service when the target service is in a processing state according to the association relationship; alternatively, the information delivery system may include a plurality of execution threads, and when the service is in the processing state, the target execution thread may be randomly determined among the execution threads that have not processed the service, which is not limited to this. Each service runs in the background server by an independent execution thread, each execution thread processes the respective service, other services are down without influencing the process of the current service, and the running concurrency of the background service can be improved.
And calling the target execution thread to analyze the service attribute of the target service, and acquiring an information template and second user information which are matched with the target service.
In application, when the target execution thread analyzes the service attribute, the service logic of the first user to the target service is specifically analyzed, and the service logic includes target logic, data logic and success flag logic. Referring to fig. 5, the target logic is mainly used for screening out information of the second user, and the first user may select a select statement, an insert statement, a delete statement, an update statement, a non-select statement, and an SQL statement of any operation type of the storage process in advance according to a rule of setting a service. In addition, when the unselect statement is executed, the number of the affected recording lines is 0, and whether the next operation is executed or not can design a more complex service logic in the target logic. Meanwhile, the statement of each operation type can select an appointed data source name, all information for establishing database connection is stored in the data source in advance, and then similar to the step of finding files in a file system by appointing the file name, the correct data source name can be provided, and corresponding database connection can be correspondingly found, so that a plurality of data sources can be operated by one service, the service range of the service is expanded, a plurality of different information sending systems can be compatible to carry out corresponding service operation, and the service is flexible and changeable, and the expansion compatibility is enhanced. The SQL statement may be manually edited by the first user, or may be derived from a currently selected data source, which is not limited to this.
For example, when the first user inputs a select type SQL statement and clicks the edit SQL statement button, the information delivery system may execute the SQL statement online and display the execution result of the current SQL statement on the software interface. After the execution result is stored, the software interface dynamically displays all query columns of the current SQL statement. Each column name may specify a corresponding tag, and key-value pairs of a plurality of column name tags may be stored according to rules of the service. In addition, the key-value pair of the list name tag in the service can be stored in two ways, i.e., an english-chinese key-value pair, a chinese-english key-value pair, i.e., a list name in english, and a tag in chinese, without limitation. Finally, as shown in fig. 4, an interface formed on the software interface has a sending target (target logic unit) under the service logic, and the mobile phone number of the second user is displayed after further subdivision.
In application, the data logic is mainly a logic statement for processing information content needing to be transmitted. The configuration steps are the same as those of the target logic, and the difference is that the used SQL statements are different.
In the application, the success flag logic is mainly the steps that need to be executed after the execution of the data logic configured by the first user is completed. After the execution is successful, the subsequent service trend can be executed according to the preset service rule. The first user can still configure one or more select statements, insert statements, delete statements, update statements, SQL storing any one operation type of the process to execute different services.
In this embodiment, each service may be executed by an independent execution thread in the background server, each execution thread processes its own service, and other services are down without affecting the current service process, so that the concurrence of background service operation may be increased.
In an embodiment, the invoking the target execution thread to analyze the service attribute of the target service to obtain an information template and second user information matched with the target service includes:
and calling the target execution thread to analyze the target service to obtain the user information condition configured by the first user and the information template of the target service.
In the application, all information of the service configured by the first user, including the service attribute, the SQL statement in the service logic and the data source information, is stored in the big data < BLOB > field of the database in the format of XML. The XML records the Chinese-English and English-Chinese mapping relation of the column name and the label of the target logic and the data logic, and when the service is in processing, the execution thread can automatically analyze all the configuration information in the XML. For example, referring to fig. 3, in parsing the target service, "customer name 2" (i.e., second user information) and a corresponding short message template (i.e., information template) in the optional tag configured by the first user may be parsed.
And screening the second user information from a preset database according to the user information condition.
In application, the preset database is a middle library pre-configured by the first user, and each short message sending system needs to be connected to the middle library and pre-store the content to be sent into the middle library. And acquiring required data from the intermediate library according to the service logic corresponding to the analyzed service attribute.
In this embodiment, by analyzing the service attribute of the corresponding target service, the information template and the user information condition configured in advance by the service are obtained, and the second user information is screened from the preset database according to the user information condition, so that the efficiency of obtaining the second user needing to send the notification information is improved.
In one embodiment, the information template comprises a plurality of information templates; after the second user information is screened from a preset database according to the user information condition, the method further comprises the following steps:
and analyzing each information template to obtain template conditions respectively corresponding to each information template.
And determining a target information template matched with the second user information according to the second user information and the template condition.
In application, the service may correspond to one or more information templates, and when facing a plurality of templates, the second user information preliminarily acquired according to the user information condition corresponds to different information templates, respectively. Illustratively, the information template consists of an A information template: "respected [ nickname # ] women" and B information template: mr. Zun [ nickname # ] can be set as the second user information gender. In other applications, different information templates have different template conditions, and the setting is not limited to this.
In this embodiment, by setting different template conditions of the information templates, when a plurality of information templates in one service are faced, the information template matched with the second user information can be further determined according to the template conditions and the second user information, so that errors of the obtained information templates are prevented, and formed corresponding information is also confused.
In one embodiment, S103 is followed by:
and detecting whether the information text and the second user information are effective.
In application, the invalidity of the information text includes but is not limited to that the variable information in the information template is not completely replaced, the label which is configured in advance in the information template is empty, and the value of the label is replaced by other information in error during replacement; the second user information is invalid, including but not limited to, the mobile phone number of the second user information is written with few or many digits, or the second user information cannot be identified, which is not limited herein.
And if at least one of the information text and the second user information is invalid, recording invalid data, and reminding the first user according to the invalid data.
In an application, the reminding the first user comprises: the phone number reminding the second user is invalid, the variable information in the reminding information template is not completely replaced, and the like, the reminding information can be displayed on an interface of the information sending system, or the reminding information can be directly sent to the terminal of the first user, and the method is not limited to this. And sending the prompt message when one of the message text and the second user message is detected to be invalid.
And if the information text and the second user information are both effective, executing the step of sending the information text to be sent to a user terminal corresponding to the second user information.
In application, the user terminal contact information corresponding to the second user information may be a corresponding short message contact information, a corresponding mail contact information, and the like. The corresponding user terminal can be a mobile phone when the user terminal is in the short message contact mode; when the email contact is used, the corresponding user terminal may be a mobile phone or an electronic device including an email APP, which is not limited.
In this embodiment, by performing the verification processing on the generated information text and the corresponding second user information, the accuracy of sending the information text can be made higher.
As shown in fig. 6, the present embodiment also provides an information transmitting apparatus 600, including:
the first receiving module 610 is configured to receive a configuration instruction of a first user, and configure a service attribute of each service according to the configuration instruction.
And the analyzing module 620 is configured to, when it is detected that the state corresponding to the target service is in processing, analyze the service attribute of the target service to obtain an information template and second user information that are matched with the target service.
A generating module 630, configured to generate an information text to be sent according to the information template and the second user information.
A first sending module 640, configured to send the information text to be sent to a user terminal corresponding to the second user information.
In one embodiment, the service attributes include one or more service attribute tags; the first receiving module 610 is further configured to:
displaying an editable service attribute label;
and receiving the service attribute information of each service input by the first user aiming at the service attribute tag.
In one embodiment, the service attributes include an execution period of the service; the information transmission device 100 further includes:
and the second acquisition module is used for traversing each service and acquiring the execution cycle corresponding to each service.
And the changing module is used for changing the state of the service of which the execution cycle is matched with the current time into processing.
In an embodiment, the parsing module 620 is further configured to:
determining target execution threads corresponding to the target services, each service being configured to be processed by an independent execution thread;
and calling the target execution thread to analyze the service attribute of the target service, and acquiring an information template and second user information which are matched with the target service.
In an embodiment, the parsing module 620 is further configured to:
calling the target execution thread to analyze the target service to obtain a user information condition configured by the first user and an information template of the target service;
and screening the second user information from a preset database according to the user information condition.
In one embodiment, the information template comprises a plurality of information templates; the parsing module 20 is further configured to:
analyzing each information template to obtain template conditions corresponding to each information template;
and determining a target information template matched with the second user information according to the second user information and the template condition.
In an embodiment, the information sending apparatus 600 further includes:
the detection module is used for detecting whether the information text and the second user information are effective or not;
the recording module is used for recording invalid data if at least one of the information text and the second user information is invalid, and reminding the first user according to the invalid data;
and a third sending module, configured to execute the step of sending the to-be-sent information text to a user terminal corresponding to the second user information if the information text and the second user information are both valid.
An embodiment of the present application further provides a terminal device, where the terminal device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor implementing the steps of any of the various method embodiments described above when executing the computer program.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a terminal device, enables the terminal device to implement the steps in the above method embodiments when executed.
Fig. 7 is a schematic diagram of a terminal device 70 according to an embodiment of the present application. As shown in fig. 7, the terminal device 70 of this embodiment includes: a processor 703, a memory 701 and a computer program 702 stored in said memory 701 and executable on said processor 703. The processor 703, when executing the computer program 702, implements the steps in the various method embodiments described above, such as the steps S101 to S104 shown in fig. 1. Alternatively, the processor 703 implements the functions of each module/unit in the above-described device embodiments when executing the computer program 702.
Illustratively, the computer program 702 may be partitioned into one or more modules/units that are stored in the memory 701 and executed by the processor 703 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 702 in the terminal device 70. For example, the computer program 702 may be divided into a first receiving module, an analyzing module, a generating module, and a first sending module, and the specific functions of each module are as follows:
the first receiving module is used for receiving a configuration instruction of a first user and configuring the service attribute of each service according to the configuration instruction.
The analysis module is used for analyzing the service attribute of the target service when the state corresponding to the target service is detected to be in processing, and acquiring an information template and second user information which are matched with the target service.
The generating module is used for generating an information text to be sent according to the information template and the second user information.
And the first sending module is used for sending the information text to be sent to the user terminal corresponding to the second user information.
The terminal device 70 may be a computing device such as a desktop computer, a notebook, a palm computer, and a cloud server. The terminal device may include, but is not limited to, a processor 703 and a memory 701. Those skilled in the art will appreciate that fig. 7 is merely an example of a terminal device 70 and does not constitute a limitation of terminal device 70 and may include more or fewer components than shown, or some components may be combined, or different components, for example, the terminal device may also include input-output devices, network access devices, buses, etc.
The Processor 703 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 701 may be an internal storage unit of the terminal device 70, such as a hard disk or a memory of the terminal device 70. The memory 701 may also be an external storage device of the terminal device 70, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 70. In one embodiment, the memory 701 may also include both an internal storage unit and an external storage device of the terminal device 70. The memory 701 is used for storing the computer program and other programs and data required by the terminal device. The memory 701 may also be used to temporarily store data that has been output or is to be output.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. An information transmission method, comprising:
receiving a configuration instruction of a first user, and configuring the service attribute of each service according to the configuration instruction;
when the state corresponding to the target service is detected to be in processing, analyzing the service attribute of the target service to obtain an information template matched with the target service and second user information;
generating an information text to be sent according to the information template and the second user information;
and sending the information text to be sent to a user terminal corresponding to the second user information.
2. The method of transmitting information of claim 1, wherein the service attributes comprise one or more service attribute tags;
the receiving of the configuration instruction of the first user includes:
displaying an editable service attribute label;
and receiving the service attribute information of each service input by the first user aiming at the service attribute tag.
3. The information transmission method according to claim 1 or 2, wherein the service attribute includes an execution period of a service;
after configuring the service attribute of each service according to the configuration instruction, the method further includes:
traversing each service to obtain an execution cycle corresponding to each service;
and changing the state of the service with the execution period matched with the current time into the processing.
4. The method for sending information according to claim 3, wherein the analyzing the service attribute of the target service to obtain the information template and the second user information matched with the target service includes:
determining target execution threads corresponding to the target services, each service being configured to be processed by an independent execution thread;
and calling the target execution thread to analyze the service attribute of the target service, and acquiring an information template and second user information which are matched with the target service.
5. The information sending method according to claim 4, wherein the invoking the target execution thread to analyze the service attribute of the target service to obtain an information template and second user information matched with the target service includes:
calling the target execution thread to analyze the target service to obtain a user information condition configured by the first user and an information template of the target service;
and screening the second user information from a preset database according to the user information condition.
6. The information transmission method according to claim 5, wherein the information template includes a plurality;
after the second user information is screened from a preset database according to the user information condition, the method further comprises the following steps:
analyzing each information template to obtain template conditions corresponding to each information template;
and determining a target information template matched with the second user information according to the second user information and the template condition.
7. The method for sending information according to claim 1, wherein after the generating of the information text to be sent according to the information template and the second user information, the method further comprises:
detecting whether the information text and the second user information are effective or not;
if at least one of the information text and the second user information is invalid, recording invalid data, and reminding the first user according to the invalid data;
and if the information text and the second user information are both effective, executing the step of sending the information text to be sent to a user terminal corresponding to the second user information.
8. An information transmission apparatus, comprising:
the first receiving module is used for receiving a configuration instruction of a first user and configuring the service attribute of each service according to the configuration instruction;
the analysis module is used for analyzing the service attribute of the target service when the state corresponding to the target service is detected to be in processing, and acquiring an information template and second user information which are matched with the target service;
the generating module is used for generating an information text to be sent according to the information template and the second user information;
and the first sending module is used for sending the information text to be sent to the user terminal corresponding to the second user information.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202010272994.8A 2020-04-09 2020-04-09 Information sending method, device, terminal equipment and medium Pending CN111597784A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010272994.8A CN111597784A (en) 2020-04-09 2020-04-09 Information sending method, device, terminal equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010272994.8A CN111597784A (en) 2020-04-09 2020-04-09 Information sending method, device, terminal equipment and medium

Publications (1)

Publication Number Publication Date
CN111597784A true CN111597784A (en) 2020-08-28

Family

ID=72190644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010272994.8A Pending CN111597784A (en) 2020-04-09 2020-04-09 Information sending method, device, terminal equipment and medium

Country Status (1)

Country Link
CN (1) CN111597784A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111698308A (en) * 2020-06-05 2020-09-22 电子科技大学 Service model and distributed data communication method based on SOA and DDS

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110688236A (en) * 2019-08-08 2020-01-14 深圳木成林科技有限公司 Information touch method, system and terminal equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110688236A (en) * 2019-08-08 2020-01-14 深圳木成林科技有限公司 Information touch method, system and terminal equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111698308A (en) * 2020-06-05 2020-09-22 电子科技大学 Service model and distributed data communication method based on SOA and DDS

Similar Documents

Publication Publication Date Title
US10528656B2 (en) Application module for managing jobs asynchronously
US8972934B2 (en) Support for temporally asynchronous interface extensions
CN111400061A (en) Data processing method and system
US20150120479A1 (en) Catalog driven order management for rule definition
US20200125336A1 (en) System and method for enhancing component based development models with auto-wiring
CN111708589A (en) Information processing system, method, device and readable storage medium
WO2023179725A1 (en) Application integration method and device
EP3532922B1 (en) Processing application programming interface (api) queries based on variable schemas
CN108363574B (en) Front-end customization method and device based on SDK, terminal equipment and storage medium
CN111597784A (en) Information sending method, device, terminal equipment and medium
CN112905178A (en) Method, device, equipment and medium for generating business function page
CN113569257A (en) User authority management method and device in gray scale release
CN112650522A (en) Method, device, storage medium and equipment for dynamically configuring platform
CN110673827A (en) Resource calling method and device based on android system and electronic equipment
CN112104544B (en) Method and device for sending dynamic mail based on Freemarker
US20130046840A1 (en) System and method for dynamically generating an email message
CN112835962A (en) Information display method and device, electronic equipment and storage medium
US20170310451A1 (en) Full-duplex real-time cross-module updates of customer relationship management (crm) data in a crm data processing system
CN113741888A (en) Service processing method and device
CN113448960A (en) Method and device for importing form file
CN111652580A (en) Method and device for processing data of nodes
CN111459907A (en) Method, system and storage medium for configuring master data through model
CN111506644A (en) Application data processing method and device and electronic equipment
US20140278725A1 (en) Enterprise product management system and method
CN115904380B (en) Page field creation and assembly method, electronic device and computer readable 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