CN114500640A - Message generation method, message transmission device, electronic equipment and medium - Google Patents

Message generation method, message transmission device, electronic equipment and medium Download PDF

Info

Publication number
CN114500640A
CN114500640A CN202210082715.0A CN202210082715A CN114500640A CN 114500640 A CN114500640 A CN 114500640A CN 202210082715 A CN202210082715 A CN 202210082715A CN 114500640 A CN114500640 A CN 114500640A
Authority
CN
China
Prior art keywords
message
sending
module
template library
variable 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.)
Pending
Application number
CN202210082715.0A
Other languages
Chinese (zh)
Inventor
房志瑞
张石磊
范世豪
余凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202210082715.0A priority Critical patent/CN114500640A/en
Publication of CN114500640A publication Critical patent/CN114500640A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • 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/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure provides a message generation method for balance change reminding, which can be applied to the financial field or other fields. The method comprises the following steps: acquiring a message template library, wherein the message template library comprises various types of messages; determining a target type; determining the message of the target type in the message template library; extracting general information and variable information fields of the target type message; configuring parameters of the variable information field; and splicing the general information and the parameters of the configured variable information fields to obtain a new message. The disclosure also provides a message sending method, a device, equipment, a storage medium and a program product.

Description

Message generation method, message transmission device, electronic equipment and medium
Technical Field
The present disclosure relates to the financial field, and in particular, to a message generation method, a message transmission method, an apparatus, a device, a medium, and a program product.
Background
The balance change reminding is used as an account moving reminding transaction, has large proportion in daily transactions of customers, high sensitivity and strong importance, but has the characteristics of wide related channels, various service types, long transaction process and the like, so that the balance change reminding has various types. Therefore, in the routine verification process of the balance change reminding message, various types of messages need to be generated for verification. Due to the fact that the types of the messages are numerous, the speed of generating the verification messages is low, and the verification efficiency is low.
Disclosure of Invention
In view of the foregoing, the present disclosure provides a message generation method, a message transmission method, an apparatus, a device, a medium, and a program product for balance change reminding.
According to a first aspect of the present disclosure, a message generating method for balance change reminding is provided, including: acquiring a message template library, wherein the message template library comprises various types of messages; determining a target type; determining the message of the target type in the message template library; extracting general information and variable information fields of the target type message; configuring parameters of the variable information field; and splicing the general information and the parameters of the configured variable information fields to obtain a new message.
According to the embodiment of the present disclosure, the step of obtaining the message template library includes: acquiring all historical messages within preset time and sending quantities corresponding to different message types; and extracting messages corresponding to the message types with the sending quantity being N bits in the front from all the historical messages to obtain an initial message library.
According to the embodiment of the present disclosure, the step of obtaining the message template library further includes: in the initial report library, at least one message is extracted from each message type aiming at the message type with the first N bits of the sending quantity so as to obtain a message template library.
According to an embodiment of the present disclosure, the value of N is 100.
According to an embodiment of the present disclosure, the step of configuring the parameter of the variable information field includes: and when a plurality of target types exist, configuring parameters of the same variable information fields in the messages of the target types in batch.
According to an embodiment of the present disclosure, the method further comprises: and updating the message template base based on the new message.
A second aspect of the present disclosure provides a message sending method for balance change reminding, including: generating a new message according to the method; when the new message is normal, determining a sending channel of the new message; packaging the message based on the sending channel; and sending the encapsulated message.
According to an embodiment of the present disclosure, the method further comprises: and when the new message is abnormal, the new message is not sent.
According to the embodiment of the disclosure, the sending channel comprises a short message channel and an application message channel.
A third aspect of the present disclosure provides a message generating apparatus for balance change reminding, including: the first acquisition module is used for acquiring a message template library, and the message template library comprises various types of messages; the first determining module is used for determining the type of the target; the second determining module is used for determining the message of the target type in the message template library; the extraction module is used for extracting the general information and the variable information field of the target type message; a configuration module for configuring parameters of the variable information field; and the second acquisition module is used for acquiring a new message based on the general information and the configured parameters of the variable information fields.
A fourth aspect of the present disclosure provides a message sending apparatus for balance change reminding, including: the message generating module is used for generating a new message by the method; the third determining module is used for determining a sending channel of the new message when the new message is normal; the packaging module is used for packaging the message based on the sending channel; and the sending module is used for sending the packaged message.
A fifth aspect of the present disclosure provides an electronic device, comprising: one or more processors; memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the above-described method.
A sixth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the above-described method.
A seventh aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the above method.
One or more of the embodiments described above have the following advantages or benefits: the transaction message is split and processed, the general information and the variable information field are extracted, the variable information field is parameterized, and then the general information and the configured parameters of the variable information field are spliced through parameter configuration to generate a new message meeting the verification requirement.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be apparent from the following description of embodiments of the disclosure, which proceeds with reference to the accompanying drawings, in which:
fig. 1 schematically illustrates an application scenario diagram of a message generation method, a message transmission method, an apparatus, a device, a medium, and a program product according to an embodiment of the present disclosure;
fig. 2 schematically shows a flow chart of a message generation method according to an embodiment of the present disclosure;
FIG. 3 schematically shows a flow chart of a message sending method according to an embodiment of the disclosure;
fig. 4 schematically shows a block diagram of a structure of a message generation apparatus according to an embodiment of the present disclosure;
fig. 5 schematically shows a block diagram of a message sending apparatus according to an embodiment of the present disclosure; and
fig. 6 schematically shows a block diagram of an electronic device adapted to implement a message generation method and a message transmission method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
Due to the fact that balance change reminding transaction types are multiple and transaction links are long, the process of generating the message file meeting the verification requirements in the verification process of balance change reminding is complex.
In view of this, an embodiment of the present disclosure provides a message generating method for balance change reminding, including: acquiring a message template library, wherein the message template library comprises various types of messages; determining a target type; determining the message of the target type in the message template library; extracting general information and variable information fields of the target type message; configuring parameters of the variable information field; and splicing the general information and the parameters of the configured variable information fields to obtain a new message.
The embodiment of the present disclosure further provides a message sending method for balance change reminding, including: generating a new message according to the method; when the new message is normal, determining a sending channel of the new message; packaging the message based on the sending channel; and sending the encapsulated message.
It should be noted that the method and apparatus determined by the present disclosure may be used for message generation and message transmission in the financial field, and may also be used for message generation and message transmission in any field other than the financial field.
Fig. 1 schematically shows an application scenario diagram of a message generation method, a message transmission method, an apparatus, a device, a medium, and a program product according to an embodiment of the present disclosure.
As shown in fig. 1, the application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (for example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a webpage, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the message generation method and the message sending method provided by the embodiments of the present disclosure may be generally executed by the server 105. Accordingly, the message generating apparatus and the message sending apparatus provided by the embodiments of the present disclosure may be generally disposed in the server 105. The message generation method and the message transmission method provided by the embodiments of the present disclosure may also be executed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the message generating device and the message sending device provided by the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
On the basis of a balance change type message sending link, the message processing module and the simulation sending module are added, and the message of a specific scene is output by means of splitting, parameterizing, splicing, recombining and the like on the message, so that the quick verification of balance change reminding transaction is realized, and the method mainly relates to 7 modules: namely a data import module, a message storage module, a message processing module, a parameter configuration module, a sending control module, a service processing module and a sending module.
The following describes in detail a message generation method and a message transmission method according to the disclosed embodiment with reference to fig. 2 to 3 based on the scenario described in fig. 1.
Fig. 2 schematically shows a flow chart of a message generation method according to an embodiment of the present disclosure.
As shown in fig. 2, the message generation method of this embodiment includes operations S201 to S206.
In operation S201, a message template library is obtained, where the message template library includes multiple types of messages. The user can select the required message type from the message template library according to the requirement.
According to the embodiment of the present disclosure, the step of obtaining the message template library includes: acquiring all historical messages within preset time and sending quantities corresponding to different message types; and extracting messages corresponding to the message types with the sending quantity being N bits in the front from all the historical messages to obtain an initial message library.
The preset time may be selected according to a time requirement, and may be selected for one year or one month, which is not limited in this embodiment of the disclosure. Transaction messages are reminded by periodically and automatically extracting balance change stored in the umsp application; and the extracted quantity is parameterized and configured, so that a user can extract a balance change reminding service message with a higher transaction proportion according to actual needs. In addition, since the message types of the first N bits of the transmission amount may change at different time periods, each time the message corresponding to the message type of the first N bits of the transmission amount is extracted, the message type needs to be compared with the original message type in the message template library. If the message type already exists in the message template library, removing the message corresponding to the existing repeated message type; and if the message type does not exist in the message template library, writing the message corresponding to the message type into the message template library.
The messages have various types, such as transfer money transfer type, credit card repayment type, quick payment type, loan payment type, financing purchase type and the like. In order to improve the verification efficiency, only the main message type needs to be verified, so the message type needing to be verified needs to be judged according to the transmission quantity. The sending amount refers to the sending amount of the message type, for example, for balance change reminding of credit card repayment types, the sending number of balance reminding messages of all credit card repayment types in the last year is counted, ranking is carried out according to the sending amount of different message types, and the top N types are selected. The first N types selected are the message types to be verified.
According to the embodiment of the present disclosure, the step of obtaining the message template library further includes: in the initial report library, at least one message is extracted from each message type aiming at the message type with the sending quantity at the first N bits so as to obtain a message template library.
It should be noted that, since the purpose of establishing the message template library is to cover all message types, in order to reduce the computational complexity, reduce the volume of the message template library, and facilitate subsequent computation, only one message may be extracted for the same message type. Because the message types of the same type are basically the same, only one message is extracted as an example to represent the message type.
According to an embodiment of the present disclosure, the value of N is 100. It should be noted that, according to data statistics, it is found that the balance change reminding message whose current transmission amount accounts for 100 th of the current transmission amount accounts for more than 90% of the total service amount of balance change reminding, and can cover the key balance change reminding scene within the preset time. Therefore, the value of N is set to 100, namely, the message corresponding to the type of the balance change reminding message with the sending amount accounting for 100 is taken, and the actual verification requirement can be met.
In operation S202, a target type is determined. And determining the message type needing to be verified, wherein the message type is the target type needing to be generated.
In operation S203, the message of the target type is determined in the message template library. And after the target type is determined, selecting a specific message corresponding to the target type from a message template library.
In operation S204, the general information and variable information fields of the message of the target type are extracted.
Illustratively, the current balance change reminding message adopts a UTF-8 encoding rule, each field is expanded according to the length, a python tool can be used for intercepting the message according to the length of each field, and the general information and the variable information field in the message are extracted.
Specifically, for a message, the message itself includes a plurality of fields, which mainly include: the method comprises the following steps of serial number, customer number, service number, template number, sending channel, strategy number, mobile phone number, area number, network point number, transaction code, application abbreviation, card type, card number, transaction date, abstract, currency unit, finance and other fields, wherein the sending channel, the mobile phone number, the card type, the card number, the abstract, the currency unit, the generation amount and other fields are classified into variable information fields, and the other fields are classified into general information fields, namely, the messages of the message type have the same content fields, such as the network point number and the like.
In operation S205, parameters of the variable information field are configured. After extracting the general information and the variable information field of the selected message of the target type, the user can set the content of the variable information field according to the actual situation so as to generate the required test message, and for example, the user can set parameters such as a sending channel, a mobile phone number, a card type, a card number, an abstract, a currency unit, an occurrence amount and the like on a foreground according to the requirement.
According to an embodiment of the present disclosure, the step of configuring the parameter of the variable information field includes: and when a plurality of target types exist, configuring parameters of the same variable information fields in the messages of the target types in batch.
When multiple types of messages need to be generated simultaneously, the multiple types of messages can be configured in batch, if the multiple types of messages need to be generated have the same mobile phone number field, the field can be set in batch, namely, the mobile phone number field of the multiple types of messages needing to be generated is set at the foreground once, and then the setting of the mobile phone number field of the multiple types of messages needing to be generated is completed. Therefore, if only one type of message needs to be generated, the user can purposefully manually compile balance change reminding messages; if various types of messages need to be generated, the user can perform full-scale routine verification on various balance change reminding messages in a batch message generation mode.
For example, a process of configuring parameters of the same variable information field in the target type message in batch is as follows:
1. the system acquires the push file from the UMSP server and imports the push file into a message storage module.
2. And (4) carrying out data analysis on the imported message, extracting a balance change reminding transaction message which is 100 times of the transaction amount, and storing the balance change reminding transaction message in a message template library.
3. And judging whether the incoming message template is repeated according to the message service code, if so, not updating the message into the template library, and if not, updating the message template library.
4. The user selects a batch message sending function, the system performs batch processing on the messages, classifies the messages with the same types of the general information fields and the variable information fields, and outputs the general information fields and the variable information fields, wherein the variable information fields are displayed for the user to configure.
5. According to the variable information field output after message decomposition, the variable information field is directly displayed to a user for configuration, and the parameter content generally comprises: the method comprises the steps of sending channels, mobile phone numbers, card types, card numbers, abstracts, currency units and generation amount.
6. And generating a general information file corresponding to the message.
7. And matching the general information file with the configured variable information field file in batches.
8. And generating a batch of recombined message messages for sending, wherein the message sending module analyzes and compiles the processed message file, and finally sends the information to different receiving channels to realize closed loop of balance change message verification.
In operation S206, the parameters of the general information and the configured variable information field are concatenated to obtain a new message. Since the general information is information that does not change the type of message, after the parameter configuration of the variable information field is completed in the above-mentioned order, the new message can be generated only by splicing with the general information.
Illustratively, a process for extracting the generic information and the variable information fields of the message of the target type and generating a new message is as follows:
1. and the system reads the message and imports the message into a python reading system.
2. Extracting an original message by using a python tool, firstly obtaining all fields in the message, and then circularly calling through the line number and the field length of the field to intercept each field variable.
3. Storing the extracted fields in sequence, dividing the extracted fields into general information fields and variable information fields according to the service rule, and carrying out parameterization processing on the variable information fields, wherein the extracted information is as follows: serial number, customer number, service number, template serial number, sending channel, policy number, mobile phone number, area number, website number, transaction code, application abbreviation, card type, card number, transaction date, abstract, currency unit, finance and other fields.
4. The parameter information of the variable information field is input, and comprises a sending channel, a mobile phone number, a card type, a card number, an abstract, a currency unit and an amount of occurrence.
5. And splicing the general information and the variable information field again to generate a new message.
According to an embodiment of the present disclosure, the method further comprises: and updating the message template base based on the new message. And replacing the generated new message with the original example of the message type in the message template library so as to facilitate the subsequent sending process. And when the message is sent in the subsequent process, the message in the message template library can be directly sent for verification.
Fig. 3 schematically shows a flow chart of a message sending method according to an embodiment of the present disclosure.
As shown in fig. 3, the message sending method according to this embodiment includes operations S301 to S304.
In operation S301, a new message is generated according to the above-described method.
In operation S302, when the new message is normal, a transmission channel of the new message is determined.
According to the embodiment of the disclosure, the sending channel comprises a short message channel and an application message channel. The short message channel message is sent to an MQ server of the UMSP for transmission, and the application message channel message is sent to be transmitted through EINFOkafka.
In operation S303, the packet is encapsulated based on the transmission channel.
In operation S304, the encapsulated packet is sent.
According to an embodiment of the present disclosure, the method further comprises: and when the new message is abnormal, the new message is not sent.
Illustratively, the sending module may include a message storage module, a sending control module, a service processing module and a sending module, and the specific message sending process is as follows:
1. the sending control module converts the information content of the message transmitted from the message storage module, extracts key elements for reminding check of balance change, and checks element information, wherein the element information mainly relates to the following steps: and sending application, service codes and protocol information.
2. And when the element information is not verified, the new message is abnormal, an abnormal information receipt is generated, and the abnormal message is discarded without being sent.
3. And the checked message enters a message processing flow, and a service processing module judges the CHANNELCONF field in the message business code to acquire a sending channel in the message. Delivery channels are currently mainly divided into two main categories: a short message channel and an application message channel.
4. And when the channel is equal to 0, sending the short message channel, and when the channel is equal to 1, sending the APP channel message.
5. Packaging the message according to the message style of the short message channel; and packaging the message according to the message style of the app channel.
6. The sending module sends the short message channel message to an MQ server applied by the UMSP, and then the UMSP sends the short message channel message to a corresponding operator; and the sending module transmits the APP messages to each channel message component through the kafka queue of the EINFO application.
7. And the message is sent through an internal processing system.
8. And after the message transmission is completed, generating a sending receipt and returning the receipt to the system.
By the method of the embodiment, the general information and the variable information field of the target type message are extracted and classified into the general information and the variable information field, after the variable information field is configured, the general information and the parameters of the configured variable information field are spliced to obtain a new message, so that personalized configuration of message content is realized, a message file required for verification is quickly generated, the problems of multiple service types, long transaction flow, insufficient coverage and the like in balance change reminding transaction verification are solved, the verification efficiency and the verification accuracy of balance change reminding transactions are improved, and the quick verification of balance change reminding transactions is realized.
Based on the message generation method, the disclosure also provides a message generation device. The apparatus will be described in detail below with reference to fig. 4.
Fig. 4 schematically shows a block diagram of a message generation apparatus according to an embodiment of the present disclosure.
As shown in fig. 4, the message generating apparatus 400 of this embodiment includes a first obtaining module 410, a first determining module 420, a second determining module 430, an extracting module 440, a configuring module 450, and a second obtaining module 460.
The first obtaining module 410 is configured to obtain a message template library, where the message template library includes multiple types of messages. In an embodiment, the first obtaining module 410 may be configured to perform the operation S201 described above, which is not described herein again.
A first determining module 420 for determining the target type. In an embodiment, the first determining module 420 may be configured to perform the operation S202 described above, which is not described herein again.
The second determining module 430 is configured to determine the message of the target type in the message template library. In an embodiment, the second determining module 430 may be configured to perform the operation S203 described above, which is not described herein again.
The extracting module 440 is configured to extract the general information and the variable information fields of the target type packet. In an embodiment, the extraction module 440 may be configured to perform the operation S204 described above, which is not described herein again.
A configuration module 450, configured to configure parameters of the variable information field. In an embodiment, the configuration module 450 may be configured to perform the operation S205 described above, which is not described herein again.
A second obtaining module 460, configured to obtain a new packet based on the general information and the configured parameter of the variable information field. In an embodiment, the second obtaining module 460 may be configured to perform the operation S206 described above, and is not described herein again.
Based on the message sending method, the disclosure also provides a message sending device. The apparatus will be described in detail below with reference to fig. 5.
Fig. 5 schematically shows a block diagram of a message sending apparatus according to an embodiment of the present disclosure.
As shown in fig. 5, the message sending apparatus 500 of this embodiment includes a message generating module 510, a third determining module 520, an encapsulating module 530, and a sending module 540.
A message generating module 510, configured to generate a new message according to the foregoing method. In an embodiment, the message generating module 510 may be configured to perform the operation S301 described above, which is not described herein again.
A third determining module 520, configured to determine a sending channel of the new message when the new message is normal. In an embodiment, the third determining module 520 may be configured to perform the operation S302 described above, which is not described herein again.
An encapsulating module 530, configured to encapsulate the message based on the sending channel. In an embodiment, the encapsulation module 530 may be configured to perform the operation S303 described above, which is not described herein again.
A sending module 540, configured to send the encapsulated packet. In an embodiment, the sending module 540 may be configured to perform the operation S304 described above, and is not described herein again.
According to the embodiment of the present disclosure, any multiple modules of the first obtaining module 410, the first determining module 420, the second determining module 430, the extracting module 440, the configuring module 450, the second obtaining module 460, the message generating module 510, the third determining module 520, the encapsulating module 530 and the sending module 540 may be combined into one module to be implemented, or any one of the modules may be split into multiple modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to the embodiment of the present disclosure, at least one of the first obtaining module 410, the first determining module 420, the second determining module 430, the extracting module 440, the configuring module 450, the second obtaining module 460, the message generating module 510, the third determining module 520, the encapsulating module 530 and the sending module 540 may be implemented at least partially as a hardware circuit, for example, a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable manner of integrating or encapsulating a circuit, or implemented by any one of three implementations of software, hardware and firmware, or implemented by a suitable combination of any of them. Alternatively, at least one of the first obtaining module 410, the first determining module 420, the second determining module 430, the extracting module 440, the configuring module 450, the second obtaining module 460, the message generating module 510, the third determining module 520, the encapsulating module 530 and the sending module 540 may be at least partially implemented as a computer program module, which may perform corresponding functions when executed.
Fig. 6 schematically shows a block diagram of an electronic device adapted to implement a construction method and an evaluation method of an evaluation model according to an embodiment of the present disclosure.
As shown in fig. 6, an electronic device 600 according to an embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. Processor 601 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 601 may also include onboard memory for caching purposes. Processor 601 may include a single processing unit or multiple processing units for performing different actions of a method flow according to embodiments of the disclosure.
In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are stored. The processor 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. The processor 601 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 602 and/or RAM 603. It is to be noted that the programs may also be stored in one or more memories other than the ROM 602 and RAM 603. The processor 601 may also perform various operations of the method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
Electronic device 600 may also include input/output (I/O) interface 605, input/output (I/O) interface 605 also connected to bus 604, according to an embodiment of the disclosure. The electronic device 600 may also include one or more of the following components connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM 602 and/or RAM 603 described above and/or one or more memories other than the ROM 602 and RAM 603.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method illustrated in the flow chart. The program code is for causing a computer system to perform the methods of the embodiments of the disclosure when the computer program product is run on the computer system.
The computer program performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure when executed by the processor 601. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed in the form of a signal on a network medium, downloaded and installed through the communication section 609, and/or installed from the removable medium 611. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program, when executed by the processor 601, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (14)

1. A message generation method for balance change reminding is characterized by comprising the following steps:
acquiring a message template library, wherein the message template library comprises various types of messages;
determining a target type;
determining the message of the target type in the message template library;
extracting general information and variable information fields of the target type message;
configuring parameters of the variable information field; and
and splicing the general information and the parameters of the configured variable information fields to obtain a new message.
2. The method of claim 1, wherein the step of obtaining a message template library comprises:
acquiring all historical messages within preset time and sending quantities corresponding to different message types; and
and extracting messages corresponding to the message types with the sending quantity of N bits in the front from all the historical messages to obtain an initial report library.
3. The method of claim 2, wherein the step of obtaining a message template library further comprises:
in the initial report library, at least one message is extracted from each message type aiming at the message type with the sending quantity at the first N bits so as to obtain a message template library.
4. The method of claim 2, wherein the value of N is 100.
5. The method of claim 1, wherein the step of configuring the parameters of the variable information field comprises:
and when a plurality of target types exist, configuring parameters of the same variable information fields in the messages of the target types in batch.
6. The method of claim 5, further comprising:
and updating the message template base based on the new message.
7. A message sending method for balance change reminding is characterized by comprising the following steps:
generating a new message according to the method of any one of claims 1 to 6;
when the new message is normal, determining a sending channel of the new message;
packaging the message based on the sending channel; and
and sending the packaged message.
8. The method of claim 7, further comprising:
and when the new message is abnormal, the new message is not sent.
9. The method of claim 7, wherein the transmission channel comprises a short message channel and an application message channel.
10. A message generating device for balance change reminding comprises:
the first acquisition module is used for acquiring a message template library, and the message template library comprises various types of messages;
the first determining module is used for determining the type of the target;
the second determining module is used for determining the message of the target type in the message template library;
the extraction module is used for extracting the general information and the variable information field of the target type message;
a configuration module for configuring parameters of the variable information field; and
and the second acquisition module is used for acquiring a new message based on the general information and the configured parameters of the variable information field.
11. A message sending device for balance change reminding is characterized by comprising:
a message generation module for generating a new message according to the method of any one of claims 1 to 6;
the third determining module is used for determining a sending channel of the new message when the new message is normal;
the packaging module is used for packaging the message based on the sending channel; and
and the sending module is used for sending the packaged message.
12. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-9.
13. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 9.
14. A computer program product comprising a computer program which, when executed by a processor, implements a method according to any one of claims 1 to 9.
CN202210082715.0A 2022-01-24 2022-01-24 Message generation method, message transmission device, electronic equipment and medium Pending CN114500640A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210082715.0A CN114500640A (en) 2022-01-24 2022-01-24 Message generation method, message transmission device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210082715.0A CN114500640A (en) 2022-01-24 2022-01-24 Message generation method, message transmission device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN114500640A true CN114500640A (en) 2022-05-13

Family

ID=81475288

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210082715.0A Pending CN114500640A (en) 2022-01-24 2022-01-24 Message generation method, message transmission device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN114500640A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115103034A (en) * 2022-06-27 2022-09-23 京东科技信息技术有限公司 Message protocol conversion method and device
CN115550232A (en) * 2022-09-19 2022-12-30 中国银行股份有限公司 Test method and device for simulating report sending

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108876379A (en) * 2018-07-12 2018-11-23 北京京东金融科技控股有限公司 A kind of method and apparatus for generating message
CN111950249A (en) * 2020-08-12 2020-11-17 中国工商银行股份有限公司 Message generation method and device, electronic equipment and storage medium
CN112055016A (en) * 2020-09-02 2020-12-08 中国建设银行股份有限公司 Message generation method and device, electronic equipment and storage medium
CN112861501A (en) * 2021-01-21 2021-05-28 中国建设银行股份有限公司 Report generation method and device, electronic equipment and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108876379A (en) * 2018-07-12 2018-11-23 北京京东金融科技控股有限公司 A kind of method and apparatus for generating message
CN111950249A (en) * 2020-08-12 2020-11-17 中国工商银行股份有限公司 Message generation method and device, electronic equipment and storage medium
CN112055016A (en) * 2020-09-02 2020-12-08 中国建设银行股份有限公司 Message generation method and device, electronic equipment and storage medium
CN112861501A (en) * 2021-01-21 2021-05-28 中国建设银行股份有限公司 Report generation method and device, electronic equipment and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115103034A (en) * 2022-06-27 2022-09-23 京东科技信息技术有限公司 Message protocol conversion method and device
CN115550232A (en) * 2022-09-19 2022-12-30 中国银行股份有限公司 Test method and device for simulating report sending

Similar Documents

Publication Publication Date Title
CN114500640A (en) Message generation method, message transmission device, electronic equipment and medium
US20190147539A1 (en) Method and apparatus for outputting information
CN110427304A (en) O&M method, apparatus, electronic equipment and medium for banking system
CN115965474A (en) Service processing method, device, equipment and storage medium
CN112965916B (en) Page testing method, page testing device, electronic equipment and readable storage medium
CN113132400B (en) Business processing method, device, computer system and storage medium
CN112015383A (en) Login method and device
CN106875268B (en) Bank account information reminding method, server and terminal
CN111414154A (en) Method and device for front-end development, electronic equipment and storage medium
CN115408297A (en) Test method, device, equipment and medium
CN114881739A (en) Order event processing method and device, electronic equipment and storage medium
CN111865726B (en) Service message testing method, device, computer system and storage medium
CN112182400B (en) Message processing method, message processing device, electronic equipment and storage medium
CN114780807A (en) Service detection method, device, computer system and readable storage medium
CN113448578A (en) Page data processing method, processing system, electronic device and readable storage medium
CN113535565A (en) Interface use case generation method, device, equipment, medium and program product
CN113485902A (en) Method, device, equipment and computer readable medium for testing service platform
CN113760315A (en) Method and device for testing system
CN114428723A (en) Test system, system test method, related device and storage medium
CN114066651A (en) Product recommendation method and device, electronic equipment and storage medium
CN115185798A (en) Data acquisition and analysis method and device, electronic equipment and storage medium
CN114328096A (en) Index monitoring method, device, equipment and medium
CN117668904A (en) Data desensitization method and device
CN116483654A (en) Data detection method, device, electronic equipment and medium
CN113989046A (en) Transaction processing method, apparatus, electronic device, storage medium, and program product

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