CN111368522B - Information generation method and device, computer equipment and computer readable storage medium - Google Patents

Information generation method and device, computer equipment and computer readable storage medium Download PDF

Info

Publication number
CN111368522B
CN111368522B CN202010247237.5A CN202010247237A CN111368522B CN 111368522 B CN111368522 B CN 111368522B CN 202010247237 A CN202010247237 A CN 202010247237A CN 111368522 B CN111368522 B CN 111368522B
Authority
CN
China
Prior art keywords
information
electronic
dynamic information
electronic prompt
prompt
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
CN202010247237.5A
Other languages
Chinese (zh)
Other versions
CN111368522A (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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202010247237.5A priority Critical patent/CN111368522B/en
Publication of CN111368522A publication Critical patent/CN111368522A/en
Application granted granted Critical
Publication of CN111368522B publication Critical patent/CN111368522B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance

Abstract

The invention discloses an information generation method and device, a computer device and a computer readable storage medium, wherein the method comprises the following steps: when triggering a condition for generating electronic prompt information, acquiring an electronic prompt template from an electronic prompt template library meeting a preset database physical structure; receiving dynamic information which is transmitted by an application program and accords with the dynamic information attribute; and embedding the dynamic information into the electronic prompt template according to the dynamic information attribute of the electronic prompt template so as to assemble the static information and the dynamic information to form the electronic prompt information. According to the invention, the electronic prompt information is not required to be assembled manually, and the electronic prompt information is not required to be assembled after each item of content of the electronic prompt information is developed in series, so that the efficiency and the flexibility of generating the electronic prompt information are improved.

Description

Information generation method and device, computer equipment and computer readable storage medium
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to an information generating method and apparatus, a computer device, and a computer readable storage medium.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
Electronic transactions have become the most common way of doing so in daily life. In the process of electronic transaction, when the triggering condition of the electronic prompt information is met, the prompt information is sent to the client through a certain path (such as WeChat, mail, short message and the like). The electronic prompt can facilitate clients to check the transaction state or the transaction content in time, and improves the alertness and the safety of the transaction.
When receiving the requirement of the electronic prompt information, the content, the format, the peripheral interface and the like of the electronic prompt information need to be contracted. After the content requirement is determined, a message interface is provided according to the required format, and the content is assembled into the content such as title, text, end and the like in the electronic prompt by the peripheral interface according to the type of the electronic prompt. The electronic prompt text is used for acquiring and assembling the name, account number, card number, transaction amount, transaction time and the like of the client in real time to form an electronic prompt and transmitting the electronic prompt to the client.
The current electronic transaction capable of enabling electronic prompt cannot cover all channels of transaction, and part of third party transfer (including payment transaction transferred to a third party savings account or to a hanging sales internal account) performed through the electronic channel, when customers use electronic mode to perform transaction, the bank should provide enough prompt to meet the requirement of risk management according to the supervision requirement. Clients generally consider adequate prompt services to improve the sense of trust when they are using. On the other hand, too many electronic prompts may be annoying to the customer and may reduce the customer service experience, so a balance needs to be struck between sending prompts and not sending.
At present, when the electronic prompt information is generated by assembly, various contents of the electronic prompt information need to be developed in series, namely, the later content can be developed on the basis of the former content only after the former content is developed, and the electronic prompt information can be assembled only after the final content is developed, so that the flexibility of generating the electronic prompt information is poor and the efficiency is low.
Therefore, the prior art has the problems of poor flexibility and low efficiency in generating the electronic prompt information.
Disclosure of Invention
The embodiment of the invention provides an information generation method for improving the flexibility and efficiency of generating electronic prompt information, which comprises the following steps:
when triggering a condition for generating electronic prompt information, acquiring an electronic prompt template from an electronic prompt template library meeting a preset database physical structure; the electronic prompt template at least reflects static information and dynamic information attributes; the dynamic information attribute comprises a dynamic information type, a dynamic information offset and a dynamic information maximum length;
receiving dynamic information which is transmitted by an application program and accords with the dynamic information attribute;
embedding the dynamic information into the electronic prompt template according to the dynamic information attribute of the electronic prompt template so as to assemble the static information and the dynamic information to form electronic prompt information;
Forming an electronic alert template library comprising:
configuring an electronic prompt maintenance interface according to the configuration instruction; the electronic prompt maintenance interface comprises static information, a dynamic information label and an ending symbol, wherein the dynamic information label at least comprises a dynamic information type and a dynamic information maximum length; the static information comprises prompt information of semantic fixation and content standard; the dynamic information label refers to dynamic information provided by the application program when the application program is inserted therein;
and converting the configured electronic prompt maintenance interface into an electronic prompt template meeting the physical structure of the preset database to form an electronic prompt template library.
The embodiment of the invention also provides an information generating device for improving the flexibility and efficiency of generating the electronic prompt information, which comprises:
the template acquisition module is used for acquiring the electronic prompt template meeting the physical structure of the preset database from the electronic prompt template library when triggering the condition for generating the electronic prompt information; the electronic prompt template at least reflects static information and dynamic information attributes; the dynamic information attribute comprises a dynamic information type, a dynamic information offset and a dynamic information maximum length;
the receiving module is used for receiving dynamic information which accords with the dynamic information attribute and is sent by the application program;
The assembly module is used for embedding the dynamic information into the electronic prompt template according to the dynamic information attribute of the electronic prompt template so as to assemble the static information and the dynamic information to form electronic prompt information;
and (3) a configuration module: the electronic prompt maintenance interface is configured according to the configuration instruction; the electronic prompt maintenance interface comprises static information, a dynamic information label and an ending symbol, wherein the dynamic information label at least comprises a dynamic information type and a dynamic information maximum length; the static information comprises prompt information of semantic fixation and content standard; the dynamic information label refers to dynamic information provided by the application program when the application program is inserted therein;
the conversion module is used for converting the configured electronic prompt maintenance interface into an electronic prompt template meeting the physical structure of the preset database to form an electronic prompt template library.
The embodiment of the invention also provides computer equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the information generation method when executing the computer program.
Embodiments of the present invention also provide a computer-readable storage medium storing a computer program for executing the above-described information generating method.
In the embodiment of the invention, when triggering the condition for generating the electronic prompt information, acquiring the electronic prompt template from an electronic prompt template library; the electronic prompt template reflects the dynamic information attribute of the dynamic information which needs to be embedded in the template, and further after the dynamic information which is transmitted by the application program and accords with the dynamic information attribute is received, the dynamic information can be directly embedded into the electronic prompt template according to the dynamic information attribute, so that static information and the dynamic information are assembled to form electronic prompt information, and therefore the electronic prompt information does not need to be assembled manually, and the electronic prompt information does not need to be assembled again after various contents of the electronic prompt information are developed in series, so that the efficiency and the flexibility of generating the electronic prompt information are improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. In the drawings:
FIG. 1 is a flowchart of an implementation of forming an electronic alert template library in an information generating method according to an embodiment of the present invention;
FIG. 2 is a flowchart of an implementation of an information generating method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating implementation of step 201 in the information generating method according to the embodiment of the present invention;
FIG. 4 is a flowchart of another implementation of step 201 in the information generating method according to the embodiment of the present invention;
FIG. 5 is a functional block diagram of an electronic alert template library formed in the information generating apparatus according to the embodiment of the present invention;
FIG. 6 is a functional block diagram of an information generating apparatus according to an embodiment of the present invention;
fig. 7 is a block diagram of a template acquiring module 601 in the information generating apparatus according to the embodiment of the present invention;
fig. 8 is another block diagram of the template acquiring module 601 in the information generating apparatus according to the embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention will be described in further detail with reference to the accompanying drawings. The exemplary embodiments of the present invention and their descriptions herein are for the purpose of explaining the present invention, but are not to be construed as limiting the invention.
The current transaction capable of enabling electronic prompt cannot cover all channels of transaction, and a part of third party transfer (including payment transaction transferred to a third party savings account or to a hanging sales internal account) is performed through the electronic channel, so that when a customer performs transaction in an electronic manner according to the supervision requirement, the bank should provide enough prompt to meet the requirement of risk management.
The existing technology for generating the electronic prompt information mainly has the following defects:
1. the current electronic prompt requirement is proposed, and then the number of participants to participate in the discussion is excessive, the circulation time is too long, and the timeliness is poor;
2. each application program or platform respectively generates electronic prompt information, and the programs are respectively developed with huge labor cost;
3. at present, electronic prompt contents are reorganized and assembled by components, all electronic prompt contents are required to be stored in a system, and the system cost is high;
4. the current electronic prompt information is self-organized by the application program component, no effective system checking mechanism exists, and the error rate is high
5. Information such as account receipts and payments sensitive to clients easily appear in the current electronic prompt information, so that the privacy of the clients is exposed.
6. The current electronic prompt information has more assembly links, long time consumption, easy delay generation and increased waiting time of clients.
7. When the electronic prompt is assembled, the component developer needs to develop the electronic prompt in series and assemble the whole electronic prompt content completely, and needs longer development time.
In order to improve flexibility and efficiency of generating information, the invention provides an information generating method and an information generating device. When triggering a condition for generating electronic prompt information, acquiring an electronic prompt template from an electronic prompt template library; the electronic prompt template reflects the dynamic information attribute of the dynamic information which needs to be embedded in the template, and further after the dynamic information which is transmitted by the application program and accords with the dynamic information attribute is received, the dynamic information can be directly embedded into the electronic prompt template according to the dynamic information attribute, so that static information and the dynamic information are assembled to form electronic prompt information, and therefore the electronic prompt information does not need to be assembled manually, and the electronic prompt information does not need to be assembled again after various contents of the electronic prompt information are developed in series, so that the efficiency and the flexibility of generating the electronic prompt information are improved.
Accordingly, before the electronic prompt template is acquired, the electronic prompt template (electronic prompt maintenance interface) can be preconfigured, so that the efficiency of acquiring the electronic prompt template is improved, and the efficiency of generating information is further improved.
Fig. 1 shows a flow of forming an electronic alert template library in the information generating method according to the embodiment of the present invention, and for convenience of description, only the portions relevant to the embodiment of the present invention are shown, which are described in detail below:
in an embodiment of the present invention, in order to improve efficiency of acquiring an electronic alert template and further improve efficiency of generating information, as shown in fig. 1, an electronic alert template library is formed in an information generating method, including:
step 101, configuring an electronic prompt maintenance interface according to a configuration instruction; the electronic prompt maintenance interface comprises static information, a dynamic information label and an ending symbol, wherein the dynamic information label at least comprises a dynamic information type and a dynamic information maximum length;
step 102, converting the configured electronic prompt maintenance interface into an electronic prompt template meeting the physical structure of the preset database to form an electronic prompt template library.
The electronic prompt maintenance interface is a man-machine interaction interface for providing maintenance electronic prompt information in an intuitive way. A manager with rights, such as a developer or an operation and maintenance manager, can configure and maintain the electronic prompt maintenance interface.
The following are all referred to as UTF-8 coding
The electronic prompt maintenance interface comprises the following three elements:
1. static information
Static information includes hints for semantic fixation, content criteria, such as "customer number", "account number" and "customer name", etc., as well as "warm hints", "fraud reminders", etc.
2. Dynamic information label
Dynamic information tags refer to dynamic information provided at the time of insertion into the application program run, such as "account," "name," "transaction time," and "transaction amount," among others. The dynamic information tag content structure is shown in the following table one:
list one
The dynamic information label in the electronic prompt maintenance interface at least comprises a dynamic information type and a dynamic information maximum length. In addition, the dynamic information tag may include a start tag, an end tag, and a separator between the dynamic information type and the maximum length of the dynamic information, in addition to the dynamic information type and the maximum length of the dynamic information.
Wherein, the dynamic information type can be one of 12 items in the following table two:
watch II
3. End symbol
The ending symbol is a vertical line '|' (UTF-8:0x7C) indicating that the electronic hint information content has ended.
In an embodiment of the present invention, a sum of bit lengths of the static information, the dynamic information tag, and the ending symbol in the electronic alert maintenance interface is not greater than a first preset bit length. I.e. the bit length of the electronic alert maintenance interface (static information + dynamic information tag + terminator) is not greater than the first preset bit length.
The first preset length is a preset bit length. For example, the first preset bit length may be preset to be 200Byte (because the number of bits occupied by the dynamic hint tag may be longer than the maximum length of the dynamic hint), and those skilled in the art will understand that other bit lengths than 200Byte may be preset, for example, the first preset bit length may be preset to be 180Byte or 250 bits, which is not a specific limitation in the embodiment of the present invention.
In addition, in order to achieve compatibility between different systems, in an embodiment of the present invention, the electronic alert maintenance interface includes a plurality of dynamic information tags, and a sum of a bit length of the electronic alert information and a bit length of a maximum length of the dynamic information in each dynamic information tag is not greater than a second preset bit length.
Assuming that the electronic prompt maintenance interface comprises a plurality of static information and a plurality of dynamic information labels, in order to consider compatibility among different systems, the sum of the bit length of the electronic prompt information and the bit length of the maximum length of the dynamic information in each dynamic information label is not more than a second preset bit length.
Wherein the second preset bit length is a preset bit length. For example, the second preset bit length may be preset to 6000Byte, those skilled in the art will understand that other bit lengths other than 6000Byte may also be preset, for example, the first preset bit length may be preset to 5900Byte or 6200 bit, and the second preset bit length may be flexibly determined according to the data structure and requirements of other systems, which is not limited in particular by the embodiment of the present invention.
In the logic design, the sequence of the static information and the dynamic information labels is not required to be fixed, but an ending symbol must appear at the end of the information, and the ending symbol can complement a first preset bit length (for example, 200 bits) with a space (0 x 20). For example, electronic hint maintenance interface structures:
Static information a Dynamic prompt tag Static information b End symbol Space (0 x 20) filling
The electronic prompt information to be assembled is assumed to be: the client number 0000000001 does not exist, and the example of the electronic prompt maintenance interface which corresponds to the client number and needs to be preconfigured is as follows: customer number {001, 010} does not exist;
wherein, "client number" and "absence" are static information in the preconfigured electronic prompt maintenance interface, "{001, 010}" is a dynamic information tag, "{" is a start tag of the dynamic information tag, "}" is an end tag of the dynamic information tag, "001" is a number of the dynamic information type, and "010" is a maximum length of the dynamic information.
That is, when it is necessary to generate an electronic prompt message of "client number 0000000001 does not exist", the electronic prompt maintenance interface client numbers {001, 010} do not exist | may be preconfigured; and then, the client numbers {001, 010} are not existed in the interface maintenance interface through the electronic prompt, and corresponding electronic prompt information 'client numbers 0000000001 are not existed' is generated.
For another example, assume that the electronic hint information that needs to be assembled is: a level a director authorization is required. The electronic prompt maintenance interface structure which needs to be preconfigured at this time is as follows:
Static information a End symbol Space (0 x 20) filling
Examples of the electronic prompt maintenance interface which is corresponding to the electronic prompt maintenance interface and needs to be preconfigured are as follows: level a director authorization is required. The "requiring class A director authorization" is static information in a preconfigured electronic prompt maintenance interface, and the "|" is an ending symbol. And then generating electronic prompt information according to the electronic prompt maintenance interface 'requiring class A director authorization'. In this example, the dynamic information tag is empty, i.e. the electronic prompt message is generated entirely by means of the static information.
Similarly, the electronic prompt information can be generated completely only according to the dynamic information. The electronic prompt maintenance interface structure which needs to be preconfigured at this time is as follows:
dynamic information tag a End symbol Space (0 x 20) filling
The electronic alert maintenance interface is suitable for human-machine interaction, but not machine identification and reading. Therefore, after the electronic prompt maintenance interface is configured, the configured electronic prompt maintenance interface needs to be converted into an electronic prompt template meeting the physical structure of the preset database for system identification and reading. The electronic prompt template structure meeting the preset physical structure of the database is shown in the following table III:
Watch III
The third table can show that the electronic prompt template meeting the preset physical structure of the database comprises the language type of the electronic prompt information, the identification code corresponding to the electronic prompt template, static information content, static information length and dynamic prompt attribute. The dynamic prompt attribute at least comprises a dynamic information type, a dynamic information maximum length and a dynamic information offset. The dynamic information offset can be calculated by a maintenance tool according to the static information length.
And converting a large number of or even a large number of configured electronic prompt maintenance interfaces into electronic prompt templates, thereby forming an electronic prompt template library. The electronic prompt maintenance interface can be converted into the electronic prompt template through a maintenance tool.
Among these, the maintenance tool is a visualizer module development (tool) VMD (Visualized Module Development) developed based on Eclipse. Through the VMD tool, program development is converted from a traditional code input interface to an eclipse-based customized visualization and modular development interface. The tool can integrate the functions of data dictionary importing, data model importing, interface defining, program template defining, electronic prompt template defining, program detailed designing, code generating, compiling, debugging and the like into the same interface, and is effectively integrated with tools of ERWIN, CC configuration management, code debugging and the like, thereby supporting the visual design of the program and automatically generating the code to the final compiling and validating action of the program. The electronic prompt template is defined as one of basic functions supported by the tool, namely, the tool is used for realizing the assembly of the static template and the dynamic information through the configuration of a human-computer interaction interface, the maintenance of the static template and the dynamic information type (only 12 types in a second table are supported at present), the dynamic information offset required to be inserted in the electronic prompt template, the length of the dynamic information required to be inserted in the template and the like.
In the embodiment of the invention, the electronic prompt maintenance interface is pre-configured according to the configuration instruction, and the configured electronic prompt maintenance interface is further converted into the electronic prompt template meeting the physical structure of the preset database, so that the electronic prompt template library is formed, the efficiency of acquiring the electronic prompt template can be improved, and the efficiency of generating information is further improved.
Fig. 2 shows a flow of implementation of the information generating method according to the embodiment of the present invention, and for convenience of description, only the portions relevant to the embodiment of the present invention are shown, which are described in detail below:
as shown in fig. 2, the information generating method includes:
step 201, when triggering a condition for generating electronic prompt information, acquiring an electronic prompt template from an electronic prompt template library meeting a preset database physical structure; the electronic prompt template at least reflects static information and dynamic information attributes; the dynamic information attribute comprises a dynamic information type, a dynamic information offset and a dynamic information maximum length;
step 202, receiving dynamic information conforming to the dynamic information attribute sent by an application program;
step 203, embedding the dynamic information into the electronic prompt template according to the dynamic information attribute of the electronic prompt template so as to assemble the static information and the dynamic information to form the electronic prompt information.
When the electronic prompt information needs to be generated, a condition for triggering the generation of the electronic prompt information is set, and when the condition for triggering the generation of the electronic prompt information is set, an electronic prompt template corresponding to the condition for triggering the generation of the electronic prompt information is acquired from an electronic prompt template library, so that the electronic prompt information is generated according to the acquired electronic prompt template. The electronic prompt information is content of interest to customers such as spending customers, account variation, contract opening, expiration reminding and the like which are pushed to the customers through different electronic channels such as short messages, weChat and mails.
And after the electronic prompt template is acquired, receiving dynamic information which is transmitted by the application program and accords with the dynamic prompt attribute. The application program is an application program which needs to send the generated electronic prompt information to the corresponding target user, and can be a component for providing credit and debit card services for public/private. The dynamic information provided by the application program needs to define the data structure of the dynamic information according to the requirement and specification of the dynamic prompt attribute, and the dynamic information is assigned and sent to the dynamic information interface of the information generating device (which can be various systems or platforms, for example, can be a component for providing bottom support for public/private credit, debit card and other systems in China and abroad). The dynamic information sent by the application program is dynamic information used for being embedded into the electronic prompt information, and specifically refers to dynamic supplementary information in the electronic prompt information, such as a client number, a transaction amount, an account, a transaction time and the like, which are required to be dynamically embedded into the electronic prompt template and form the dynamic content of the completed electronic prompt information together with the static information.
The information generating device provides a dynamic information interface for the application program, and receives dynamic information sent by the application program through the dynamic information interface. The information generating device assembles the dynamic information provided by the application program and the static information in the electronic prompt template to form the electronic prompt information. Specifically, the maintenance tool determines the offset of the dynamic information according to the length of the static information in the dynamic information attribute, further sequentially intercepts dynamic contents with a certain length of the dynamic information sent by the application program, embeds the intercepted contents into the electronic prompt template according to the offset of the dynamic information, and accordingly assembles the static information and the dynamic information into the electronic prompt information. In addition, when the electric prompt information is assembled, whether to mask a certain part of bits of the receiving and paying account number can be determined according to the dynamic information type in the maintained electric prompt template.
Therefore, the static information and the dynamic information can provide various information in a separated mode, so that different kinds of electronic prompt information can be assembled conveniently and quickly, and the flexibility and the efficiency of information generation are improved.
In the embodiment of the invention, when triggering the condition for generating the electronic prompt information, acquiring the electronic prompt template from an electronic prompt template library; the electronic prompt template reflects the dynamic information attribute of the dynamic information which needs to be embedded in the template, and further after the dynamic information which is transmitted by the application program and accords with the dynamic information attribute is received, the dynamic information can be directly embedded into the electronic prompt template according to the dynamic information attribute, so that static information and the dynamic information are assembled to form electronic prompt information, and therefore the electronic prompt information does not need to be assembled manually, and the electronic prompt information does not need to be assembled again after various contents of the electronic prompt information are developed in series, so that the efficiency and the flexibility of generating the electronic prompt information are improved.
Fig. 3 shows a flow of implementation of step 201 in the information generating method according to the embodiment of the present invention, and for convenience of description, only the portion relevant to the embodiment of the present invention is shown, which is described in detail below:
in an embodiment of the present invention, in order to further improve the efficiency of acquiring the electronic alert template and further improve the efficiency of generating information, as shown in fig. 3, step 201, when triggering a condition of generating the electronic alert information, acquires the electronic alert template from the electronic alert template library, including:
step 301, when an identification code for identifying an electronic prompt template is received, acquiring the electronic prompt template corresponding to the identification code from an electronic prompt template library.
The identification codes and the electronic prompt templates have a one-to-one correspondence. When the electronic prompt template is acquired, an operation and maintenance person or a developer can input an identification code for identifying the electronic prompt template, and the corresponding electronic prompt template is acquired through the identification code. The situation is generally applicable to the situation that the electronic prompt information is generated only by static information, and the corresponding electronic prompt template can be quickly generated without dynamic information. The corresponding electronic prompt template is obtained through the identification code, so that the efficiency of obtaining the electronic prompt template can be improved, and the efficiency of generating information is further improved.
Specifically, when the information generating device receives the identification code for identifying the electronic prompt template, the electronic prompt template corresponding to the received identification code is obtained from the electronic prompt template library, and then electronic prompt information is generated according to the electronic prompt template. Particularly, when the electronic prompt template only comprises static information, the electronic prompt information can be generated through the static information quickly, and the information generating efficiency is improved.
In the embodiment of the invention, when the identification code for identifying the electronic prompt template is received, the electronic prompt template corresponding to the identification code is acquired from the electronic prompt template library, so that the efficiency of acquiring the electronic prompt template can be further improved, and the efficiency of generating information is further improved.
Fig. 4 shows another implementation flow of step 201 in the information generating method according to the embodiment of the present invention, and for convenience of description, only the portion relevant to the embodiment of the present invention is shown, which is described in detail below:
in an embodiment of the present invention, in order to further improve the efficiency of acquiring the electronic alert template and further improve the efficiency of generating information, as shown in fig. 4, step 201, when triggering a condition of generating the electronic alert information, acquires the electronic alert template from the electronic alert template library, including:
Step 401, determining an embedded identification code for identifying the electronic prompt template in the preset program function when the preset program function occurs, and acquiring the electronic prompt template corresponding to the identification code from the electronic prompt template library.
The preset program function is a preset program function. For example, the electronic transaction can be generated, or the balance can be queried, and the program functions can be freely set according to the requirements. The identification codes corresponding to the electronic prompt templates are embedded in the program codes corresponding to the preset program functions, when the preset program functions occur, the identification codes embedded in the preset program functions can be determined, and then the electronic prompt templates corresponding to the identification codes are determined through the identification codes. And then generating electronic prompt information through the electronic prompt template.
In the embodiment of the invention, the embedded identification code used for identifying the electronic prompt template in the preset program function is determined when the preset program function occurs, and the electronic prompt template corresponding to the identification code is acquired from the electronic prompt template library, so that the efficiency of acquiring the electronic prompt template can be further improved, and the efficiency of generating information is further improved.
The embodiment of the invention also provides an information generating device, as described in the following embodiment. Since the principle of solving the problem of these devices is similar to that of the information generation method, the implementation of these devices can refer to the implementation of the method, and the repetition is not repeated.
Fig. 5 shows functional modules for forming an electronic alert template library in the information generating method according to the embodiment of the present invention, and for convenience of explanation, only the portions relevant to the embodiment of the present invention are shown, which are described in detail below:
in an embodiment of the present invention, in order to improve the efficiency of acquiring the electronic alert template and further improve the efficiency of generating the information, referring to fig. 5, each module included in the electronic alert template library is used to execute each step in the corresponding embodiment of fig. 1, and specifically please refer to fig. 1 and the related description in the corresponding embodiment of fig. 1, which are not repeated herein. In the embodiment of the present invention, the forming the electronic alert template library includes a configuration module 501 and a conversion module 502.
A configuration module 501, configured to configure an electronic prompt maintenance interface according to a configuration instruction; the electronic prompt maintenance interface comprises static information, a dynamic information label and an ending symbol, wherein the dynamic information label at least comprises a dynamic information type and a dynamic information maximum length.
The conversion module 502 is configured to convert the configured electronic prompt maintenance interface into an electronic prompt template that satisfies a preset database physical structure, so as to form an electronic prompt template library.
In the embodiment of the invention, the configuration module 501 pre-configures the electronic prompt maintenance interface according to the configuration instruction, and the conversion module 502 converts the configured electronic prompt maintenance interface into the electronic prompt template meeting the physical structure of the preset database, so as to form an electronic prompt template library, thereby improving the efficiency of acquiring the electronic prompt template and further improving the efficiency of generating information.
In an embodiment of the present invention, the static information in the electronic alert template includes static information content and static information length, and the electronic alert template further reflects a language type (for example, chinese, english, etc.) of the electronic alert information and an identification code corresponding to the electronic alert template.
In an embodiment of the present invention, a sum of bit lengths of the static information, the dynamic information tag and the ending symbol in the electronic alert maintenance interface is a first preset bit length.
In an embodiment of the present invention, the electronic alert maintenance interface includes a plurality of dynamic information tags, and a sum of a bit length of the electronic alert information and a bit length of a maximum length of the dynamic information in each dynamic information tag is a second preset bit length.
Fig. 6 shows a schematic structure of an information generating apparatus according to an embodiment of the present invention, and for convenience of explanation, only the portions related to the embodiment of the present invention are shown in detail as follows:
referring to fig. 6, each unit included in the information generating apparatus is configured to perform each step in the corresponding embodiment of fig. 2, and detailed descriptions referring to fig. 2 and the related descriptions in the corresponding embodiment of fig. 2 are omitted herein. In the embodiment of the present invention, the information generating device includes a template obtaining module 601, a receiving module 602, and an assembling module 603.
The template obtaining module 601 is configured to obtain, from an electronic prompt template library, an electronic prompt template that meets a preset database physical structure when a condition for generating electronic prompt information is triggered; the electronic prompt template at least reflects static information and dynamic information attributes; the dynamic information attribute comprises a dynamic information type, a dynamic information offset and a dynamic information maximum length.
The receiving module 602 is configured to receive dynamic information conforming to a dynamic information attribute sent by an application program.
The assembling module 603 is configured to embed the dynamic information into the electronic prompt template according to the dynamic information attribute of the electronic prompt template, so as to assemble the static information and the dynamic information to form the electronic prompt information.
In the embodiment of the present invention, when the template acquisition module 601 triggers a condition for generating electronic prompt information, an electronic prompt template is acquired from an electronic prompt template library; the electronic prompt template reflects the dynamic information attribute of the dynamic information which needs to be embedded in the template, so that after the receiving module 602 receives the dynamic information which is transmitted by the application program and accords with the dynamic information attribute, the assembling module 603 can directly embed the dynamic information into the electronic prompt template according to the dynamic information attribute, so that static information and the dynamic information are assembled to form electronic prompt information, manual assembly of the electronic prompt information is not needed, assembly of the electronic prompt information after serial development of various contents of the electronic prompt information is not needed, and efficiency and flexibility of generating the electronic prompt information are improved.
Fig. 7 shows a schematic structure of a template acquiring module 601 in the information generating apparatus according to the embodiment of the present invention, and for convenience of explanation, only the portions related to the embodiment of the present invention are shown, which is described in detail below:
in an embodiment of the present invention, in order to further improve the efficiency of acquiring the electronic alert template and further improve the efficiency of generating the information, referring to fig. 7, each unit included in the template acquiring module 601 is configured to execute each step in the corresponding embodiment of fig. 3, and specifically please refer to fig. 3 and the related description in the corresponding embodiment of fig. 3, which are not repeated herein. In the embodiment of the present invention, the template obtaining module 601 includes a first template obtaining unit 701.
The first template obtaining unit 701 is configured to obtain, when receiving an identification code for identifying an electronic alert template, the electronic alert template corresponding to the identification code from the electronic alert template library.
In the embodiment of the present invention, when the first template obtaining unit 701 receives the identification code for identifying the electronic alert template, the electronic alert template corresponding to the identification code is obtained from the electronic alert template library, which can further improve the efficiency of obtaining the electronic alert template, and further improve the efficiency of generating information.
Fig. 8 shows another schematic structure of the template obtaining module 601 in the information generating apparatus according to the embodiment of the present invention, and for convenience of explanation, only the portion relevant to the embodiment of the present invention is shown, which is described in detail below:
in an embodiment of the present invention, in order to further improve the efficiency of acquiring the electronic alert template and further improve the efficiency of generating the information, referring to fig. 8, each unit included in the template acquiring module 601 is configured to execute each step in the corresponding embodiment of fig. 4, and specifically please refer to fig. 4 and the related description in the corresponding embodiment of fig. 4, which are not repeated herein. In the embodiment of the present invention, the template obtaining module 601 includes a second template obtaining unit 801.
The second template obtaining unit 801 is configured to determine an identification code embedded in the preset program function and used for identifying the electronic alert template when the preset program function occurs, and obtain the electronic alert template corresponding to the identification code from the electronic alert template library.
In the embodiment of the present invention, when the preset program function occurs, the second template obtaining unit 801 determines the embedded identification code for identifying the electronic prompt template in the preset program function, and obtains the electronic prompt template corresponding to the identification code from the electronic prompt template library, so that the efficiency of obtaining the electronic prompt template can be further improved, and the efficiency of generating information is further improved.
The embodiment of the invention also provides computer equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the information generation method when executing the computer program.
Embodiments of the present invention also provide a computer-readable storage medium storing a computer program for executing the above-described information generating method.
In summary, in the embodiment of the present invention, when a condition for generating electronic prompt information is triggered, an electronic prompt template is obtained from an electronic prompt template library; the electronic prompt template reflects the dynamic information attribute of the dynamic information which needs to be embedded in the template, and further after the dynamic information which is transmitted by the application program and accords with the dynamic information attribute is received, the dynamic information can be directly embedded into the electronic prompt template according to the dynamic information attribute, so that static information and the dynamic information are assembled to form electronic prompt information, and therefore the electronic prompt information does not need to be assembled manually, and the electronic prompt information does not need to be assembled again after various contents of the electronic prompt information are developed in series, so that the efficiency and the flexibility of generating the electronic prompt information are improved.
The invention can realize the traditional electronic prompt information by adopting a mode of static information and dynamic information assembly. Static information can be maintained in an electronic prompt maintenance interface (electronic prompt template) in advance and stored in a database in a mode of fixed content (template), so that randomness during manual input can be avoided, and content errors can be avoided. The electronic prompt template can be maintained once and used for multiple times, so that system resources and human resources are saved. Dynamic content can be dynamically input by an application component and flexibly assembled with static information, so that the flexibility of the system is improved. In addition, part of dynamic content can be shielded according to the needs, so that the privacy of the clients is protected, and the satisfaction of the clients is improved. The developer can independently maintain the electronic prompt template (static information) and develop the dynamic information, so that the project period is reduced. The electronic prompt scene which needs to be added in the future can be rapidly and flexibly deployed, and the development time is reduced.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing description of the embodiments has been provided for the purpose of illustrating the general principles of the invention, and is not meant to limit the scope of the invention, but to limit the invention to the particular embodiments, and any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (8)

1. An information generation method, comprising:
when triggering a condition for generating electronic prompt information, acquiring an electronic prompt template from an electronic prompt template library meeting a preset database physical structure; the electronic prompt template at least reflects static information and dynamic information attributes; the dynamic information attribute comprises a dynamic information type, a dynamic information offset and a dynamic information maximum length;
Receiving dynamic information which is transmitted by an application program and accords with the dynamic information attribute;
embedding the dynamic information into the electronic prompt template according to the dynamic information attribute of the electronic prompt template so as to assemble the static information and the dynamic information to form electronic prompt information;
forming an electronic alert template library comprising:
configuring an electronic prompt maintenance interface according to the configuration instruction; the electronic prompt maintenance interface comprises static information, a dynamic information label and an ending symbol, wherein the dynamic information label at least comprises a dynamic information type and a dynamic information maximum length; the static information comprises prompt information of semantic fixation and content standard; the dynamic information label refers to dynamic information provided by the application program when the application program is inserted therein;
converting the configured electronic prompt maintenance interface into an electronic prompt template meeting the physical structure of a preset database to form an electronic prompt template library;
the electronic prompt maintenance interface is a man-machine interaction interface for providing maintenance electronic prompt information in an intuitive way; the electronic prompt template meeting the preset physical structure of the database comprises the language type of the electronic prompt information, the identification code corresponding to the electronic prompt template, the static information content, the static information length and the dynamic prompt attribute; the dynamic prompt attribute at least comprises a dynamic information type, a dynamic information maximum length and a dynamic information offset; the dynamic information offset can be calculated by a maintenance tool according to the static information length;
Embedding the dynamic information into the electronic prompt template according to the dynamic information attribute of the electronic prompt template so as to assemble the static information and the dynamic information to form the electronic prompt information, comprising:
dynamic content with a certain length of dynamic information sent by an application program is sequentially intercepted, the intercepted content is embedded into an electronic prompt template according to the offset of the dynamic information, and therefore static information and the dynamic information are spliced into the electronic prompt information.
2. The information generating method as claimed in claim 1, wherein, when the condition for generating the electronic cue information is triggered, the electronic cue templates are acquired from the electronic cue template library, comprising:
when an identification code for identifying the electronic prompt template is received, the electronic prompt template corresponding to the identification code is acquired from an electronic prompt template library.
3. The information generating method as claimed in claim 1, wherein, when the condition for generating the electronic cue information is triggered, the electronic cue templates are acquired from the electronic cue template library, comprising:
when the preset program function occurs, determining an embedded identification code for identifying the electronic prompt template in the preset program function, and acquiring the electronic prompt template corresponding to the identification code from an electronic prompt template library.
4. The information generating method as claimed in claim 1, wherein a sum of bit lengths of the static information, the dynamic information tag and the ending symbol in the electronic prompt maintenance interface is a first preset bit length.
5. The information generating method as claimed in claim 1, wherein the electronic prompt maintenance interface includes a plurality of dynamic information tags, and a sum of a bit length of the electronic prompt information and a bit length of a maximum length of the dynamic information in each of the dynamic information tags is a second preset bit length.
6. An information generating apparatus, comprising:
the template acquisition module is used for acquiring the electronic prompt template meeting the physical structure of the preset database from the electronic prompt template library when triggering the condition for generating the electronic prompt information; the electronic prompt template at least reflects static information and dynamic information attributes; the dynamic information attribute comprises a dynamic information type, a dynamic information offset and a dynamic information maximum length;
the receiving module is used for receiving dynamic information which accords with the dynamic information attribute and is sent by the application program;
the assembly module is used for embedding the dynamic information into the electronic prompt template according to the dynamic information attribute of the electronic prompt template so as to assemble the static information and the dynamic information to form electronic prompt information;
And (3) a configuration module: the electronic prompt maintenance interface is configured according to the configuration instruction; the electronic prompt maintenance interface comprises static information, a dynamic information label and an ending symbol, wherein the dynamic information label at least comprises a dynamic information type and a dynamic information maximum length; the static information comprises prompt information of semantic fixation and content standard; the dynamic information label refers to dynamic information provided by the application program when the application program is inserted therein;
the conversion module is used for converting the configured electronic prompt maintenance interface into an electronic prompt template meeting the physical structure of the preset database to form an electronic prompt template library;
the electronic prompt maintenance interface is a man-machine interaction interface for providing maintenance electronic prompt information in an intuitive way; the electronic prompt template meeting the preset physical structure of the database comprises the language type of the electronic prompt information, the identification code corresponding to the electronic prompt template, the static information content, the static information length and the dynamic prompt attribute; the dynamic prompt attribute at least comprises a dynamic information type, a dynamic information maximum length and a dynamic information offset; the dynamic information offset can be calculated by a maintenance tool according to the static information length;
The assembly module is specifically used for sequentially intercepting dynamic contents with a certain length of dynamic information sent by the application program, embedding the intercepted contents into the electronic prompt template according to the offset of the dynamic information, and accordingly assembling the static information and the dynamic information into the electronic prompt information.
7. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the information generating method according to any of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the information generating method according to any one of claims 1 to 5.
CN202010247237.5A 2020-03-31 2020-03-31 Information generation method and device, computer equipment and computer readable storage medium Active CN111368522B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010247237.5A CN111368522B (en) 2020-03-31 2020-03-31 Information generation method and device, computer equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010247237.5A CN111368522B (en) 2020-03-31 2020-03-31 Information generation method and device, computer equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111368522A CN111368522A (en) 2020-07-03
CN111368522B true CN111368522B (en) 2024-01-30

Family

ID=71209321

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010247237.5A Active CN111368522B (en) 2020-03-31 2020-03-31 Information generation method and device, computer equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111368522B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114116055A (en) * 2021-11-22 2022-03-01 北京自如信息科技有限公司 Prompt tag adding method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101311922A (en) * 2007-05-25 2008-11-26 百度在线网络技术(北京)有限公司 Advertisement formwork style matching method and system
CN101778160A (en) * 2010-01-08 2010-07-14 中兴通讯股份有限公司 Method and device for dynamically presetting message
CN101945346A (en) * 2009-07-06 2011-01-12 北京亿阳信通软件研究院有限公司 Method and device for automatically creating multimedia message
CN105653509A (en) * 2015-12-24 2016-06-08 北京经纬恒润科技有限公司 Document processing method and device
CN105930313A (en) * 2016-04-13 2016-09-07 平安科技(深圳)有限公司 Method and device for processing notification message
CN107562552A (en) * 2017-09-06 2018-01-09 深圳市中润四方信息技术有限公司 A kind of service message generation method and system
CN108074131A (en) * 2016-11-11 2018-05-25 维萨国际服务协会 Customized content in mobile device application program integrates

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10230681B2 (en) * 2015-12-14 2019-03-12 International Business Machines Corporation Method and apparatus for unified message adaptation

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101311922A (en) * 2007-05-25 2008-11-26 百度在线网络技术(北京)有限公司 Advertisement formwork style matching method and system
CN101945346A (en) * 2009-07-06 2011-01-12 北京亿阳信通软件研究院有限公司 Method and device for automatically creating multimedia message
CN101778160A (en) * 2010-01-08 2010-07-14 中兴通讯股份有限公司 Method and device for dynamically presetting message
CN105653509A (en) * 2015-12-24 2016-06-08 北京经纬恒润科技有限公司 Document processing method and device
CN105930313A (en) * 2016-04-13 2016-09-07 平安科技(深圳)有限公司 Method and device for processing notification message
CN108074131A (en) * 2016-11-11 2018-05-25 维萨国际服务协会 Customized content in mobile device application program integrates
CN107562552A (en) * 2017-09-06 2018-01-09 深圳市中润四方信息技术有限公司 A kind of service message generation method and system

Also Published As

Publication number Publication date
CN111368522A (en) 2020-07-03

Similar Documents

Publication Publication Date Title
CN108804140B (en) Batch instruction analysis method, device and equipment
CN101207624B (en) Method and system for configuring applications component in net work
CN109086046A (en) A kind of front-end code automatic generation method and system based on interface specification document
US9977655B2 (en) System and method for automatic extraction of software design from requirements
CN110795697B (en) Method and device for acquiring logic expression, storage medium and electronic device
CN110262783A (en) A kind of interface creation method, device and terminal device
CN109995643A (en) Business mail push method and device
CN109947408A (en) Information push method and device, storage medium and electronic equipment
CN111695328B (en) Method, device, equipment and storage medium for generating simulation test message
CN110807311A (en) Method and apparatus for generating information
Iqbal et al. Generating UML activity diagram from SBVR rules
CN111368522B (en) Information generation method and device, computer equipment and computer readable storage medium
CN109284452B (en) Electronic protocol online display method and device, electronic equipment and storage medium
CN113885876A (en) Parameter checking method, device, storage medium and computer system
CN111914548A (en) Intelligent document filling method and system and related equipment
CN101116349B (en) Context cognizance enhancing message transform system, and method for the same
CN116339690A (en) Method and device for executing business process, electronic equipment and storage medium
CN111612508A (en) Financial resource allocation request processing method and device and electronic equipment
CN112312335A (en) Reminding short message sending method and device and electronic equipment
CN111801696A (en) Payment page management method, payment page management device, payment system and storage medium
CN110209442A (en) Plug-in unit function automatic execution method, electronic equipment, storage medium
CN114996427A (en) Message display method, device, equipment and storage medium based on intelligent question answering
CN113312900A (en) Data verification method and device
CN113312104A (en) Advertisement conversion method and system based on small program
CN100499479C (en) Method for dynamically support multi-languages for business management agency in intelligent network platform

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20221009

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 25 Financial Street, Xicheng District, Beijing 100033

Applicant before: CHINA CONSTRUCTION BANK Corp.

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant