CN111368522A - 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
CN111368522A
CN111368522A CN202010247237.5A CN202010247237A CN111368522A CN 111368522 A CN111368522 A CN 111368522A CN 202010247237 A CN202010247237 A CN 202010247237A CN 111368522 A CN111368522 A CN 111368522A
Authority
CN
China
Prior art keywords
information
electronic prompt
electronic
template
dynamic information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010247237.5A
Other languages
Chinese (zh)
Other versions
CN111368522B (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
CCB Finetech 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 China Construction Bank Corp, CCB Finetech Co Ltd 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

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • 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, computer equipment and a computer readable storage medium, wherein the method comprises the following steps: when a condition for generating electronic prompt information is triggered, acquiring an electronic prompt template from an electronic prompt template library meeting a preset database physical structure; receiving dynamic information which is sent by an application program and accords with the attribute of the dynamic information; 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. The invention does not need to assemble the electronic prompt information manually or assemble the electronic prompt information after serially developing each content of the electronic prompt information, thereby improving the efficiency and the flexibility of generating the electronic prompt information.

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 trading has become the most common trading mode in daily life. In the process of electronic transaction, when the triggering condition of the electronic prompt message is met, the prompt message is sent to the customer through a certain path (such as WeChat, mail, short message and the like). The electronic prompt can facilitate the customer to check the transaction state or the transaction content in time, and improve the vigilance and the safety of the transaction.
When the requirement of the electronic prompt message is received, the content, format, peripheral interface and the like of the electronic prompt message need to be appointed. After the content requirement is determined, a message interface is provided according to a required format, and the content is assembled into the content such as a title, a text, an end and the like in the electronic prompt by the peripheral interface according to the type of the electronic prompt. The electronic prompt text needs to acquire and assemble the customer name, the account number, the card number, the transaction amount, the transaction time and the like in real time to form an electronic prompt which is sent to the customer.
The current electronic transaction which can enable electronic prompt can not cover the transaction of all channels, and part of third-party transfer (including transfer to a third-party deposit account or transfer to a payment transaction of a listing internal account) is carried out through the electronic channels. The customer generally thinks that enough prompt service can improve the confidence of the customer when using. On the other hand, too many electronic prompts can be annoying to the customer and degrade the customer service experience, so a balance needs to be struck between sending a prompt and not sending it.
At present, when electronic prompt information is generated by assembly, various contents of the electronic prompt information need to be developed in series, namely, only after the previous content is developed, the next content can be developed on the basis of the previous content, and only after the last content is developed, the electronic prompt information can be assembled, so that the electronic prompt information is poor in flexibility and low in efficiency.
Therefore, the prior art has the problems of poor flexibility and low efficiency when generating the electronic prompt information.
Disclosure of Invention
The embodiment of the invention provides an information generation method, which is used for improving the flexibility and efficiency of generating electronic prompt information and comprises the following steps:
when a condition for generating electronic prompt information is triggered, 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 sent by an application program and accords with the attribute of the dynamic information;
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.
An embodiment of the present invention further provides an information generating apparatus, configured to improve flexibility and efficiency of generating electronic prompt information, where the information generating apparatus includes:
the template acquisition module is used for acquiring an electronic prompt template meeting the physical structure of a preset database from the electronic prompt template library when a condition for generating the 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 is used for receiving the dynamic information which is sent by the application program and accords with the attribute of the dynamic information;
and the assembling 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 the electronic prompt information.
The embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and the processor implements the information generating method when executing the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program for executing the information generating method is stored.
In the embodiment of the invention, when the condition of generating the electronic prompt information is triggered, the electronic prompt template is obtained from the electronic prompt template library; the electronic prompt template reflects the dynamic information attribute of the dynamic information which needs to be embedded into the template, and further after the dynamic information which is sent 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 the static information and the dynamic information are assembled to form the electronic prompt information, the electronic prompt information does not need to be assembled manually, the electronic prompt information does not need to be assembled after various contents of the electronic prompt information are developed in series, and the efficiency and the flexibility of generating the electronic prompt information are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
fig. 1 is a flowchart illustrating an implementation of forming an electronic prompt template library in an information generating method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating an implementation of an information generating method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating an implementation of step 201 in an information generating method according to an 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 prompt 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 illustrating a structure of a template acquisition module 601 in the information generating apparatus according to the embodiment of the present invention;
fig. 8 is another block diagram of the template obtaining module 601 in the information generating apparatus according to the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
The current transaction which can enable the electronic prompt cannot cover the transactions of all channels, and part of third-party transfer (including payment transaction of transfer to a third-party savings account or transfer to a listing internal account) is carried out through the electronic channels.
The existing technology for generating electronic prompt information mainly has the following defects:
1. after the current electronic prompt requirement is provided, too many parties need to participate in the discussion, the circulation time is too long, and the timeliness is poor;
2. each application program or platform respectively generates electronic prompt information, and huge labor cost is consumed to respectively develop the programs;
3. the current electronic prompts all need to be reorganized and assembled by components, and the system needs to store all the electronic prompt contents, so that the system cost is high;
4. the current electronic prompt information is automatically organized by application program components, no effective system check mechanism exists, and the error rate is high
5. Information such as account receiving and payment sensitive to the client is easy to appear in the current electronic prompt information, and the privacy of the client is exposed.
6. The current electronic prompt information passes through multiple assembly links, consumes long time, is easy to delay, and increases the waiting time of customers.
7. When the component developers assemble the electronic prompts, the component developers need to develop in series and completely assemble the whole electronic prompt content, and long development time is needed.
In order to improve the flexibility and efficiency of information generation, the invention provides an information generation method and an information generation device. 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 into the template, and further after the dynamic information which is sent 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 the static information and the dynamic information are assembled to form the electronic prompt information, the electronic prompt information does not need to be assembled manually, the electronic prompt information does not need to be assembled after various contents of the electronic prompt information are developed in series, and 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 configured in advance, so that the efficiency of acquiring the electronic prompt template is improved, and the efficiency of generating information is improved.
Fig. 1 illustrates an implementation flow of forming an electronic prompt template library in an information generation method provided by an embodiment of the present invention, and for convenience of description, only a part related to the embodiment of the present invention is illustrated, and details are as follows:
in an embodiment of the present invention, in order to improve the efficiency of obtaining the electronic prompt template and further improve the efficiency of generating the information, as shown in fig. 1, the forming an electronic prompt template library in the information generating method includes:
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 end symbol, wherein the dynamic information label at least comprises a dynamic information type and a maximum length of the dynamic information;
and 102, 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 maintaining electronic prompt information in an intuitive mode. The administrator with authority, such as a developer or an operation and maintenance manager, can configure and maintain the electronic prompt maintenance interface.
The following refers to UTF-8 encoding
The electronic prompt maintenance interface comprises the following three elements:
1. static information
The static information includes semantic fixation, prompting information of content standards such as "customer number", "account number", and "customer name", etc., and also such as "warm prompt", "fraud reminder", etc.
2. Dynamic information label
The dynamic information tag refers to dynamic information provided when the application program is inserted and run, such as "account", "name", "transaction time", and "transaction amount", and the like. The dynamic information tag content structure is shown in table one below:
Figure BDA0002434277390000041
Figure BDA0002434277390000051
watch 1
The dynamic information label in the electronic prompt maintenance interface at least comprises a dynamic information type and a maximum dynamic information length. In addition to the above-mentioned type and maximum length of the dynamic information, the dynamic information tag may further include a start tag, an end tag, and a separator 'or' between the type and the maximum length of the dynamic information.
Wherein, the dynamic information type may be one of 12 items in the following table two:
Figure BDA0002434277390000052
Figure BDA0002434277390000061
watch two
3. Ending symbol
The terminator is a vertical line '|' (UTF-8:0x7C) indicating that the electronic prompt 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 end symbol in the electronic prompt maintenance interface is not greater than a first preset bit length. Namely, the bit length of the electronic prompt maintenance interface (static information + dynamic information label + end character) is not more 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 200 bytes (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 200 bytes may also be preset to the first preset bit length, for example, the first preset bit length is preset to be 180 bytes or 250 bits, which is not limited by the embodiment of the present invention.
In addition, in order to consider compatibility between different systems, in an embodiment of the present invention, 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 dynamic information tag is not greater than a second preset bit length.
In order to consider compatibility between different systems, the sum of the bit length of the electronic prompt message and the bit length of the maximum length of the dynamic information in each dynamic information tag is not greater 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 be 6000Byte, and it will be understood by those skilled in the art that other bit lengths than 6000Byte may also be preset, for example, the first preset bit length is preset to be 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 this embodiment of the invention.
In terms of logic design, the order of the static information and dynamic information labels is not fixed, but an end mark must appear at the end of the information, and a space (0x20) can be filled after the end mark to make up a first preset bit length (for example, 200 bits). For example, electronic prompt maintenance interface structure:
static information a Dynamic prompt label Static information b Ending symbol Complete filling of blank (0x20)
The electronic prompt information to be assembled is assumed to be: the customer number 0000000001 does not exist, and the corresponding electronic prompt maintenance interface example needing to be configured in advance is as follows: the client number {001, 010} does not exist |;
the "customer number" and "absence" are static information in a 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 a dynamic information type, and "010" is a maximum length of the dynamic information.
Namely, when electronic prompt information of 'customer number 0000000001 does not exist' needs to be generated, the electronic prompt maintenance interface customer number {001, 010} does not exist |; subsequently, through the electronic prompt maintenance interface, the client number {001, 010} does not exist |, and corresponding electronic prompt information "the client number 0000000001 does not exist" is generated.
For another example, assume that the electronic prompt information to be assembled is: a level a director authorization is required. The electronic prompt maintenance interface structure which needs to be configured in advance at this time is as follows:
static information a Ending symbol Complete filling of blank (0x20)
The corresponding electronic prompt maintenance interface example needing to be configured in advance is as follows: requiring a level a director authorization. Wherein, the 'authorization of A level supervisor' is static information in the pre-configured electronic prompt maintenance interface, and the 'I' is an end symbol. And then, generating electronic prompt information according to the electronic prompt maintenance interface ' needing A-level supervisor authorization | ' needing A-level supervisor authorization '. It can be seen that in this example, the dynamic information tag is empty, i.e., the electronic prompt message is generated completely by means of the static information.
In the same way, the electronic prompt information can be generated only according to the dynamic information. The electronic prompt maintenance interface structure which needs to be configured in advance at this time is as follows:
dynamic information label a Ending symbol Complete filling of blank (0x20)
The electronic prompt maintenance interface is suitable for human-machine interaction, but not for machine recognition 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 database physical structure is shown in the following table three:
Figure BDA0002434277390000081
watch III
The third table shows 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, 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 maximum dynamic information length and a dynamic information offset. Wherein, the dynamic information offset can be calculated by the maintenance tool according to the static information length.
And converting a large amount of even massive configured electronic prompt maintenance interfaces into electronic prompt templates so as to form an electronic prompt template library. Specifically, the electronic prompt maintenance interface can be converted into an electronic prompt template through a maintenance tool.
Wherein the maintenance tool is a visualization program Module development (tool) VMD (visualized Module development) based on Eclipse development. Through the VMD tool, program development is converted from a traditional code input interface into a visualization and modularization development interface customized based on Eclips. The tool can integrate functions of data dictionary import, data model import, interface definition, program template definition, electronic prompt template definition, program detailed design, code generation, compiling and debugging and the like into the same interface, and is effectively integrated with the ERWIN, CC configuration management, code debugging and other tools, so that the visual design of the program is supported, and the code is automatically generated to the final program compiling and validating actions. The electronic prompt template in the application 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, the type of the dynamic information (only 12 types in the table II are supported at present), the offset of the dynamic information to be inserted in the electronic prompt template, the length of the dynamic information to be inserted in the template and other information in the electronic prompt maintenance interface.
In the embodiment of the invention, the electronic prompt maintenance interface is pre-configured according to the configuration instruction, and then the configured electronic prompt maintenance interface is converted into the electronic prompt template meeting the preset physical structure of the database to form the electronic prompt template library, so that the efficiency of obtaining the electronic prompt template can be improved, and the efficiency of generating information is improved.
Fig. 2 shows an implementation flow of the information generation method provided by the embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown, and the details are as follows:
as shown in fig. 2, the information generating method includes:
step 201, when a condition for generating electronic prompt information is triggered, 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 which is sent by an application program and accords with the attribute of the dynamic information;
and 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, conditions for triggering the generation of the electronic prompt information are set, and when the conditions for triggering the generation of the electronic prompt information are triggered, the electronic prompt template corresponding to the conditions for triggering the generation of the electronic prompt information is acquired from the electronic prompt template library, so that the electronic prompt information is generated according to the acquired electronic prompt template. The electronic prompt information is the content of interest of the customer, such as an account opening, account change, contract opening and due reminding, and the like, which is pushed to the customer through different electronic channels such as a short message, a WeChat and an email.
And after the electronic prompt template is obtained, receiving dynamic information which is sent by an application program and accords with the dynamic prompt attribute. The application is an application that needs to send the generated electronic prompt message to the corresponding target user, and can be a component that provides services of credit and debit card for public/private credit and debit card, for example. The dynamic information provided by the application program needs to define a data structure of the dynamic information according to the requirements and specifications of the dynamic prompt attributes, assign values to the dynamic information and send the dynamic information to a dynamic information interface of an information generating device (which can be various systems or platforms, for example, components for providing bottom layer support for public/private credit and debit cards and other systems at home and abroad) provided by the invention. The dynamic information sent by the application program is dynamic information used for being embedded in the electronic prompt information, and specifically refers to dynamic supplementary information in the electronic prompt information, such as customer numbers, transaction amounts, accounts, transaction time and the like, and dynamic content of the electronic prompt information which needs to be dynamically embedded in the electronic prompt template and is formed with static information to be completed.
The information generating device provides a dynamic information interface for the application program, and receives the 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 attribute of the dynamic information, further sequentially intercepts the dynamic contents of the dynamic information with a certain length sent by the application program, and embeds the intercepted contents into the electronic prompt template according to the offset of the dynamic information, so that the static information and the dynamic information are spliced into the electronic prompt information. In addition, when the electronic prompting message is assembled, whether to shield certain part of the position of the payment account or not can be determined according to the type of the dynamic message in the maintained electronic prompting template.
Therefore, the static information and the dynamic information can provide various types of information in a separated mode, different types of electronic prompt information can be conveniently and quickly assembled, and the flexibility and the efficiency of information generation are improved.
In the embodiment of the invention, when the condition of generating the electronic prompt information is triggered, the electronic prompt template is obtained from the electronic prompt template library; the electronic prompt template reflects the dynamic information attribute of the dynamic information which needs to be embedded into the template, and further after the dynamic information which is sent 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 the static information and the dynamic information are assembled to form the electronic prompt information, the electronic prompt information does not need to be assembled manually, the electronic prompt information does not need to be assembled after various contents of the electronic prompt information are developed in series, and the efficiency and the flexibility of generating the electronic prompt information are improved.
Fig. 3 shows an implementation flow of step 201 in the information generating method provided by the embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown, and the details are as follows:
in an embodiment of the present invention, in order to further improve the efficiency of obtaining the electronic prompt template and further improve the efficiency of generating information, as shown in fig. 3, step 201, when a condition for generating the electronic prompt information is triggered, obtaining the electronic prompt template from the electronic prompt template library includes:
step 301, when receiving an identification code for identifying an electronic prompt template, obtaining the electronic prompt template corresponding to the identification code from an electronic prompt template library.
Wherein, the identification code and the electronic prompt template have a one-to-one corresponding relationship. When the electronic prompt template is obtained, an operation and maintenance person or a developer can specifically input an identification code for identifying the electronic prompt template, and the corresponding electronic prompt template is obtained through the identification code. The situation is generally applicable to the situation that the electronic prompt message 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 acquired from the electronic prompt template library, and then the 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 quickly through the static information, and the information generation 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 provided by the embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown, and the details are as follows:
in an embodiment of the present invention, in order to further improve the efficiency of obtaining the electronic prompt template and further improve the efficiency of generating information, as shown in fig. 4, in step 201, when a condition for generating the electronic prompt information is triggered, obtaining the electronic prompt template from the electronic prompt template library includes:
step 401, when the preset program function occurs, an identification code embedded in the preset program function and used for identifying the electronic prompt template is determined, and the electronic prompt template corresponding to the identification code is obtained from the electronic prompt template library.
The preset program function is a preset program function. For example, the program function may be an electronic transaction, or a balance inquiry, which may be freely set in advance according to the requirement. The identification code corresponding to the electronic prompt template is embedded in the program code corresponding to the preset program function, the identification code embedded in the preset program function can be determined when the preset program function occurs, and then the electronic prompt template corresponding to the identification code is determined through the identification code. And generating electronic prompt information through the electronic prompt template.
In the embodiment of the invention, the identification code embedded in the preset program function and used for identifying the electronic prompt template 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.
An embodiment of the present invention further provides an information generating apparatus, as described in the following embodiments. Because the principle of solving the problems of the devices is similar to the information generation method, the implementation of the devices can be referred to the implementation of the method, and repeated details are not repeated.
Fig. 5 shows functional modules forming an electronic prompt template library in the information generating method according to the embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown, which are detailed as follows:
in an embodiment of the present invention, in order to improve the efficiency of obtaining the electronic prompt template and further improve the efficiency of generating information, referring to fig. 5, each module included in the electronic prompt template library is configured to execute each step in the embodiment corresponding to fig. 1, and specific reference is made to fig. 1 and the related description in the embodiment corresponding to fig. 1, which is not repeated herein. In the embodiment of the present invention, the forming of the electronic prompt 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 end symbol, wherein the dynamic information label at least comprises a dynamic information type and a maximum length of the dynamic information.
A conversion module 502, configured to convert the configured electronic prompt maintenance interface into an electronic prompt template meeting the physical structure of the preset database, so as to form an electronic prompt template library.
In the embodiment of the present invention, the configuration module 501 configures an electronic prompt maintenance interface in advance according to a configuration instruction, and then the conversion module 502 converts the configured electronic prompt maintenance interface into an electronic prompt template meeting a preset database physical structure to form an electronic prompt template library, which can improve the efficiency of obtaining the electronic prompt template, and further improve the efficiency of generating information.
In an embodiment of the present invention, the static information in the electronic prompt template includes static information content and static information length, and the electronic prompt template further reflects a language type (e.g., chinese, english, etc.) of the electronic prompt information and an identification code corresponding to the electronic prompt template.
In an embodiment of the present invention, a sum of bit lengths of the static information, the dynamic information tag, and the end symbol in the electronic prompt maintenance interface is a first preset bit length.
In an embodiment of the present invention, 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 dynamic information tag is a second preset bit length.
Fig. 6 shows a schematic configuration of an information generating apparatus according to an embodiment of the present invention, and for convenience of description, only the portions related to the embodiment of the present invention are shown, and the details are as follows:
referring to fig. 6, each unit included in the information generating apparatus is configured to execute each step in the embodiment corresponding to fig. 2, and specifically refer to fig. 2 and the related description in the embodiment corresponding to fig. 2, which is not described herein again. In the embodiment of the present invention, the information generating apparatus includes a template obtaining module 601, a receiving module 602, and an assembling module 603.
The template acquisition module 601 is used for acquiring an electronic prompt template meeting the physical structure of a preset database from an electronic prompt template library 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 that is sent by an application and conforms to the attribute of the dynamic information.
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 condition for generating the electronic prompt information is triggered, the template obtaining module 601 obtains the electronic prompt template from the electronic prompt template library; the electronic prompt template reflects the dynamic information attribute of the dynamic information to be embedded into the template, and then after the receiving module 602 receives the dynamic information which is sent 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 the static information and the dynamic information are assembled to form the electronic prompt information, therefore, the electronic prompt information does not need to be assembled manually, and the electronic prompt information does not need to be assembled after various contents of the electronic prompt information are developed in series, thereby improving the efficiency and the flexibility of generating the electronic prompt information.
Fig. 7 shows a schematic structure of a template acquisition module 601 in an information generating apparatus according to an embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown, which are detailed as follows:
in an embodiment of the present invention, in order to further improve the efficiency of obtaining the electronic prompt template and further improve the efficiency of generating information, referring to fig. 7, each unit included in the template obtaining module 601 is configured to execute each step in the embodiment corresponding to fig. 3, specifically please refer to fig. 3 and the related description in the embodiment corresponding to fig. 3, which is not described herein again. In this 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, when receiving an identification code for identifying an electronic prompt template, obtain the electronic prompt template corresponding to the identification code from an electronic prompt template library.
In the embodiment of the present invention, when receiving the identification code for identifying the electronic prompt template, the first template obtaining unit 701 obtains the electronic prompt template corresponding to the identification code from the electronic prompt template library, so as to further improve the efficiency of obtaining the electronic prompt template, and further improve the efficiency of generating information.
Fig. 8 shows another structural schematic diagram of the template obtaining module 601 in the information generating apparatus according to the embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown, and the details are as follows:
in an embodiment of the present invention, in order to further improve the efficiency of obtaining the electronic prompt template and further improve the efficiency of generating information, referring to fig. 8, each unit included in the template obtaining module 601 is configured to execute each step in the embodiment corresponding to fig. 4, specifically please refer to fig. 4 and the related description in the embodiment corresponding to fig. 4, which is not described herein again. In this 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 prompt template when the preset program function occurs, and obtain the electronic prompt template corresponding to the identification code from the electronic prompt template library.
In the embodiment of the present invention, when the preset program function occurs, the second template obtaining unit 801 determines the identification code embedded in the preset program function and used for identifying the electronic prompt template, and obtains the electronic prompt template corresponding to the identification code from the electronic prompt template library, so as to further improve the efficiency of obtaining the electronic prompt template, and further improve the efficiency of generating information.
The embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and the processor implements the information generating method when executing the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program for executing the information generating method is stored.
In summary, in the embodiment of the present invention, when the condition for generating the electronic prompt information is triggered, the electronic prompt template is obtained from the electronic prompt template library; the electronic prompt template reflects the dynamic information attribute of the dynamic information which needs to be embedded into the template, and further after the dynamic information which is sent 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 the static information and the dynamic information are assembled to form the electronic prompt information, the electronic prompt information does not need to be assembled manually, the electronic prompt information does not need to be assembled after various contents of the electronic prompt information are developed in series, and 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 assembling static information and dynamic information. Static information can be maintained in an electronic prompt maintenance interface (electronic prompt template) in advance and stored in a database in a fixed content (template) mode, so that the randomness of manual input can be avoided, and content errors can be avoided. The electronic prompt template can be maintained for one time and used for multiple times, and system resources and human resources are saved. Dynamic content can be dynamically input by the application component and flexibly assembled with static information, so that the flexibility of the system is improved. In addition, partial dynamic content can be shielded according to needs, the privacy of a client is protected, and the satisfaction degree of the client is improved. Developers can respectively and independently maintain the electronic prompt template (static information) and develop the dynamic information, and the project cycle is shortened. The electronic prompt scenes which need to be increased in the future can be deployed quickly and flexibly, and the development time is reduced.
As will be appreciated by one skilled in the art, 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. An information generating method, comprising:
when a condition for generating electronic prompt information is triggered, 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 sent by an application program and accords with the attribute of the dynamic information;
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.
2. The information generating method of claim 1, wherein acquiring the electronic prompt template from the electronic prompt template library upon triggering a condition for generating the electronic prompt information, comprises:
and when the identification code for identifying the electronic prompt template is received, acquiring the electronic prompt template corresponding to the identification code from the electronic prompt template library.
3. The information generating method of claim 1, wherein acquiring the electronic prompt template from the electronic prompt template library upon triggering a condition for generating the electronic prompt information, comprises:
and when the preset program function occurs, determining an identification code embedded in the preset program function and used for identifying the electronic prompt template, and acquiring the electronic prompt template corresponding to the identification code from the electronic prompt template library.
4. The information generating method according to claim 2 or 3, wherein the static information in the electronic prompt template includes static information content and static information length, and the electronic prompt template further reflects the language type of the electronic prompt information and the identification code corresponding to the electronic prompt template.
5. The information generating method according to claim 1, further 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 end symbol, wherein the dynamic information label at least comprises a dynamic information type and a maximum length of the dynamic information;
and 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.
6. The information generating method according to claim 5, wherein the sum of the bit lengths of the static information, the dynamic information tag, and the end-stop in the electronic prompt maintenance interface is a first preset bit length.
7. The information generating method according to claim 5, 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 dynamic information tag is a second preset bit length.
8. An information generating apparatus, characterized by comprising:
the template acquisition module is used for acquiring an electronic prompt template meeting the physical structure of a preset database from the electronic prompt template library when a condition for generating the 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 is used for receiving the dynamic information which is sent by the application program and accords with the attribute of the dynamic information;
and the assembling 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 the electronic prompt information.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the information generating method of any one of claims 1 to 7 when executing the computer program.
10. 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 7.
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 true CN111368522A (en) 2020-07-03
CN111368522B 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)

Cited By (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 (8)

* 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
US20170171143A1 (en) * 2015-12-14 2017-06-15 International Business Machines Corporation Method and apparatus for unified message adaptation
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

Patent Citations (8)

* 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
US20170171143A1 (en) * 2015-12-14 2017-06-15 International Business Machines Corporation Method and apparatus for unified message adaptation
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

Cited By (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

Also Published As

Publication number Publication date
CN111368522B (en) 2024-01-30

Similar Documents

Publication Publication Date Title
CN106155686B (en) Interface generation method, device and system
CN115658041B (en) Low-code enhanced service implementation method based on online service flow arrangement
US9977655B2 (en) System and method for automatic extraction of software design from requirements
CN102880649A (en) Individualized information processing method and system
US20190147029A1 (en) Method and system for generating conversational user interface
CN109445818A (en) Method for updating pages and device, electronic equipment, storage medium based on big data
CN111767217A (en) JS unit test case generation method and device
CN114594934A (en) Visual page generation method, device, equipment and medium
CN111368522A (en) Information generation method and device, computer equipment and computer readable storage medium
CN108427580A (en) Configure detection method, storage medium and the smart machine repeated to name
CN111914548A (en) Intelligent document filling method and system and related equipment
CN116841559A (en) Transcoding method, device, apparatus, medium and program product
CN116339690A (en) Method and device for executing business process, electronic equipment and storage medium
CN115774672A (en) Test case generation method, test case generation device, server and storage medium
CN109582411A (en) Graphical user interface creating method, device, computer equipment and storage medium
CN114356379A (en) Backup-based service upgrading method, device, equipment and storage medium
CN114398282A (en) Test script generation method, device, equipment and storage medium
CN113032256A (en) Automatic test method, device, computer system and readable storage medium
CN111913692A (en) Billing engine based on natural language design
CN109522210A (en) Interface testing parameters analysis method, device, electronic device and storage medium
US20220122211A1 (en) Methods and systems for scheduling a user transport
CN114650436B (en) Remote control method, device, equipment and medium based on background service
CN114996427A (en) Message display method, device, equipment and storage medium based on intelligent question answering
Hazra et al. Modeling, analysis and verification of real-time resource access control protocols: a formal approach
CN114006877A (en) Message transmission method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
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.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant