Message Escape Method, Device and Electronic Equipment
By obtaining the message escape configuration library and multi-language escaping of escaped messages according to its configuration, the problem of language inconsistency when interacting with overseas information technology systems is solved, efficient message escape is achieved, and customer experience is improved.
Patent Information
- Application Number
- CN202211193220.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-28
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2042-09-28
AI Technical Summary
When interacting with overseas information technology systems, how to effectively implement multilingual escape of service information in messages to solve the problem of language inconsistency.
By obtaining the message escape configuration library, the database includes information type encodings corresponding to multiple service information, as well as at least one escape type escape information corresponding to each information type encoding, receives the message to be escaped sent by the server, parses it, and escapes the escaped information according to the predefined escape rules, and generates and returns the escaped target message.
Quickly identify and process the information to be escaped in the message, and process it according to predefined escape rules, effectively solving the problem of language inconsistency when interacting with overseas information technology systems, improving the efficiency of message escape, and providing overseas customers with a better customer experience.
Smart Images

Figure CN115714824B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of big data intelligent analysis, and particularly to a message escape method, apparatus, and electronic device. Background Art
[0002] With the continuous development of technology and information technology, the international and cross-border businesses of various enterprises are increasing. Various domestic information technology systems may need to provide services for overseas customers. In the interaction with overseas business systems, the message data returned by the service end of the domestic business system needs to be converted into the local language of the overseas region and then interacted with the overseas business system. At the same time, the message data returned by the service end of the overseas business system also needs to be converted into Chinese and then interacted with the domestic business system. Therefore, how to effectively implement the multi-language escape of business information in messages is an urgent problem to be solved. Summary of the Invention
[0003] The present disclosure provides a message escape method, apparatus, and electronic device to at least solve the problem of provincial unified management in related technologies. The technical solution of the present disclosure is as follows:
[0004] According to a first aspect of an embodiment of the present disclosure, a message escape method is provided, including:
[0005] Obtain a message escape configuration library, where the message escape configuration library includes information type codes corresponding to multiple business information, and escape information of at least one escape type corresponding to each information type code;
[0006] Receive a message to be escaped sent by a service end, where the message to be escaped includes information to be escaped;
[0007] Perform parsing processing on the message to be escaped to obtain the information to be escaped;
[0008] According to a predefined escape rule, based on the information type code in the message escape configuration library and the escape information of at least one escape type corresponding to each information type code, perform escape processing on the information to be escaped to obtain the target information after escape;
[0009] Generate a target message after escape according to the target information, and return the target message.
[0010] Optionally, the performing parsing processing on the message to be escaped to obtain the information to be escaped includes:
[0011] Perform parsing processing on the message to be escaped to obtain the information to be escaped, and the target information type code and target escape type corresponding to the information to be escaped.
[0012] Optionally, the escaping process for the information to be escaped according to predefined escaping rules to obtain the escaped target information includes:
[0013] Querying in the message escaping configuration library with the target information type code and the target escaping type corresponding to the information to be escaped to obtain the escaped target information;
[0014] Wherein, the escaped target information is the escaped information of the target type corresponding to the target information type code.
[0015] Optionally, generating an escaped target message according to the target information includes:
[0016] Recording the target information into the field corresponding to the target information to obtain the target message.
[0017] Optionally, the method further includes:
[0018] Classifying and coding multiple service information that needs to be escaped in the historical message to obtain the information type codes corresponding to the multiple service information;
[0019] Configuring the escaped information of at least one escaping type corresponding to each service information;
[0020] Establishing the message escaping configuration library according to the information type codes corresponding to the multiple service information and the escaped information of at least one escaping type corresponding to each service information.
[0021] According to the second aspect of the embodiments of the present disclosure, a message escaping device is provided, including:
[0022] An obtaining unit, configured to obtain a message escaping configuration library, where the message escaping configuration library includes information type codes corresponding to multiple service information and escaped information of at least one escaping type corresponding to each information type code;
[0023] A receiving unit, configured to receive a message to be escaped sent by a server, where the message to be escaped includes information to be escaped;
[0024] An analyzing unit, configured to perform parsing processing on the message to be escaped to obtain the information to be escaped;
[0025] An escaping unit, configured to perform escaping processing on the information to be escaped according to predefined escaping rules, based on the information type codes in the message escaping configuration library and the escaped information of at least one escaping type corresponding to each information type code, to obtain the escaped target information;
[0026] A sending unit, configured to generate an escaped target message according to the target information and return the target message.
[0027] Optionally, the parsing unit is specifically configured to:
[0028] Parse and process the message to be escaped to obtain the target information type code and the target escape type corresponding to the information to be escaped.
[0029] Optionally, the escape unit includes:
[0030] A query module, configured to query in the message escape configuration library by using the target information type code and the target escape type corresponding to the information to be escaped as indexes to obtain the escaped target information;
[0031] Wherein, the escaped target information is the escape information of the target type corresponding to the target information type code.
[0032] Optionally, the sending unit includes:
[0033] An escape record module, configured to record the target information into the field corresponding to the target information to obtain the target message.
[0034] Optionally, the apparatus further includes:
[0035] An information classification unit, configured to classify and code multiple service information that needs to be escaped in historical messages to obtain the information type codes corresponding to the multiple service information;
[0036] A definition configuration unit, configured to configure the escape information of at least one escape type corresponding to each service information;
[0037] A definition record unit, configured to establish the message escape configuration library according to the information type codes corresponding to the multiple service information and the escape information of at least one escape type corresponding to each service information.
[0038] According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including: a processor; a memory for storing instructions executable by the processor; wherein, the processor is configured to execute the instructions to implement the message escape method as described in the first aspect.
[0039] According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, enabling the electronic device to execute the message escape method as described in the first aspect.
[0040] According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer program product, and when the computer program is executed by a processor, it implements the message escape method described in the first aspect.
[0041] According to a sixth aspect of the embodiments of the present disclosure, there is provided a message escape system, and the system includes a server and a message escape device; wherein, the server is used for data exchange with the message escape device; the message escape device can execute the message escape method described in the first aspect.
[0042] The technical solutions provided by the embodiments of the present disclosure at least bring the following beneficial effects: By obtaining a message escape configuration library, which includes information type codes corresponding to multiple service information and escape information of at least one escape type corresponding to each information type code, receiving a message to be escaped sent by the server, parsing and processing the message to be escaped to obtain the information to be escaped, according to predefined escape rules, performing escape processing on the information to be escaped to obtain the target information after escape, generating a target message after escape according to the target information, and returning the target message, it can quickly identify the information to be escaped in the message and process it according to the predefined escape rules, so as to be able to return message information in the local language to business systems in different overseas regions, effectively solving the problem of inconsistent languages when interacting with overseas information technology systems, and at the same time improving the efficiency of message escape and providing a better customer experience for overseas customers.
[0043] It should be understood that the above general description and subsequent detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure, and do not constitute an improper limitation of the present disclosure.
[0045] Figure 1 is a flowchart of a message escape method shown according to the first embodiment;
[0046] Figure 2 is a flowchart of a message escape method shown according to the second embodiment;
[0047] Figure 3 is a flowchart of a message escape method shown according to the third embodiment;
[0048] Figure 4 is a block diagram of a message escape device shown according to an exemplary embodiment;
[0049] Figure 5It is a block diagram of an electronic device 500 for message escape shown according to an exemplary embodiment. Detailed implementation manners
[0050] In order to enable those of ordinary skill in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0051] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that such used data can be interchanged under appropriate circumstances so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0052] It should be noted that the acquisition, storage, use, processing, etc. of data in the technical solutions disclosed in this application all comply with the relevant regulations of national laws and regulations.
[0053] Figure 1 It is a flowchart of a message escape method shown according to the first embodiment. As Figure 1 shown, the method includes the following steps.
[0054] Step S101, obtain a message escape configuration library, which includes information type codes corresponding to multiple service information, and escape information of at least one escape type corresponding to each information type code.
[0055] Among them, the message escape configuration library is a pre-established database, which stores a large amount of service information that may need to be escaped in messages and escape information of at least one escape type corresponding to the service information.
[0056] In the embodiments of the present application, the message escape configuration library includes multiple service information, and each service information has a corresponding information type code. Each service information can correspond to at least one escape type, and each escape type corresponds to an escape information. For example, the information type code corresponding to the first service information is 001, the escape information under the first escape type corresponding to the first service information is the first escape information, and the escape information under the second escape type corresponding to the first service information is the second escape information, etc. That is, the first service information is escaped according to the first escape type to obtain the first escape information, and the first service information is escaped according to the second escape type to obtain the second escape information.
[0057] In some embodiments, establishing the message escape configuration library may include the following steps:
[0058] Classify and encode multiple service information that needs to be escaped in the historical messages to obtain information type codes corresponding to the multiple service information;
[0059] Configure escape information of at least one escape type corresponding to each service information;
[0060] Establish the message escape configuration library according to the information type codes corresponding to the multiple service information and the escape information of at least one escape type corresponding to each service information.
[0061] It can be understood that the message escape configuration library can be initialized and configured after the system development is completed, and continuously updated and improved according to the subsequent actual usage conditions (such as adding new service information that may need to be escaped in subsequent usage, updating and improving the escape information corresponding to each service information, etc.).
[0062] Step S102: Receive the message to be escaped sent by the server, where the message to be escaped includes the information to be escaped.
[0063] The message to be escaped refers to the message that needs to be escaped, that is, the message to be escaped includes the service information that needs to be escaped, that is, the information to be escaped.
[0064] Step S103: Parse the message to be escaped to obtain the information to be escaped.
[0065] The information to be escaped refers to the service information that needs to be escaped in the message to be escaped.
[0066] In some embodiments, by parsing the message to be escaped, the target information type code and the target escape type corresponding to the information to be escaped can be obtained.
[0067] It can be understood that the target information type code corresponding to the information to be escaped obtained by parsing is included in the message escape configuration library in the above steps.
[0068] Step S104: According to the predefined escape rules, based on the information type codes in the message escape configuration library and the escape information of at least one escape type corresponding to each information type code, perform escape processing on the information to be escaped to obtain the escaped target information.
[0069] In the embodiments of the present application, after parsing the message to be escaped returned by the server to obtain the information to be escaped, the information to be escaped can be escaped according to the predefined escape rules to obtain the escaped target information.
[0070] In some embodiments, it is possible to query in the message escape configuration library according to the target information type code and the target escape type corresponding to the information to be escaped, so as to obtain the escaped target information. That is, the target information type code and the target escape type can be used as indexes to query the corresponding escape information in the message escape configuration library, and the escaped target information can be obtained.
[0071] Among them, the escaped target information is the escape information under the corresponding target type of the target type code.
[0072] Step S105, generate an escaped target message according to the target information, and return the target message.
[0073] In the embodiments of the present application, an escaped target message can be generated according to the obtained escaped target information, and the target message can be returned.
[0074] In some embodiments, the target information can be recorded in the field corresponding to the target information to obtain the target message. And the target message can be returned to the requesting end to achieve the escape of the message.
[0075] The method provided by the embodiments of the present application, by obtaining a message escape configuration library, which includes information type codes corresponding to multiple service information and escape information of at least one escape type corresponding to each information type code, receiving an unescaped message sent by the server, parsing and processing the unescaped message to obtain the information to be escaped, performing escape processing on the information to be escaped according to predefined escape rules to obtain the escaped target information, generating an escaped target message according to the target information, and returning the target message, can quickly identify the information to be escaped in the message and process it according to the predefined escape rules, so as to be able to return message information in the local language to business systems in different overseas regions, effectively solve the problem of inconsistent languages when interacting with overseas information technology systems, and at the same time improve the efficiency of message escape, providing a better customer experience for overseas customers.
[0076] Figure 2 It is a flowchart of a message escape method shown according to the second embodiment, as Figure 2 shown, the method includes the following steps.
[0077] Step S201, classify and encode multiple service information that needs to be escaped in the historical message to obtain the information type codes corresponding to the multiple service information.
[0078] In the embodiments of the present application, multiple service information that needs to be escaped in the historical message can be classified, defined, and encoded to obtain information type codes corresponding to the multiple service information.
[0079] Among them, the historical message refers to the message including service information that needs to be escaped in historical interactions. The selection of historical messages (including time range, service range, etc.) can be flexibly adjusted according to actual situations, and the embodiments of the present application do not limit this.
[0080] Multiple service information that needs to be escaped can be obtained from the historical messages, and they are classified, defined, and encoded to obtain information type codes corresponding to multiple pieces of service information.
[0081] As an example, for instance, the service information in the message can be divided into summary information, service terms, response prompt information, etc., and are identified by classification codes as shown in Table 1 below.
[0082]
[0083]
[0084] Table 1: Classification Definition of Service Information
[0085] In the embodiments of the present application, the classified service information can be encoded. As an example, for instance, in the service information of the summary information category, the information type code corresponding to the service information "transfer" is "A0000001", the information type code corresponding to the service information "consumption" is "A0000002", etc.; in the service information of the service term category, the information type code corresponding to the service information "customer number" is "B0000001", the information type code corresponding to the service information "customer account" is "B0000002", etc.; in the service information of the response prompt information category, the information type code corresponding to the service information "success" is "00000000", the information type code corresponding to the service information "your input information is incorrect" is "R0000001", etc.
[0086] It can be understood that the above is only an example for illustrating a classification definition and encoding method of service information, and does not represent a limitation on the classification and encoding of service information. Other classifications and encodings can be adopted according to actual situations, and other classification information can also be added or deleted. The embodiments of the present application do not limit this.
[0087] Step S202, configure escape information of at least one escape type corresponding to each piece of service information.
[0088] In the embodiments of the present application, at least one type of escaped information can be configured for each piece of service information. As an example, for each piece of service information, two types of escaped information can be configured. The escaped information under the first type of escape is the Chinese interpretation of the service information, and the escaped information under the second type of escape is the English interpretation of the service information. For example, in the service information of the abstract information category, the escaped information of the service information "transfer" corresponding to the first type of escape is "transfer", and the escaped information corresponding to the second type of escape is "transfer"; the escaped information of the service information "consumption" corresponding to the first type of escape is "consumption", and the escaped information corresponding to the second type of escape is "consume", and so on; in the service information of the business term category, the escaped information of the service information "customer number" corresponding to the first type of escape is "customer number", and the escaped information corresponding to the second type of escape is "Customer ID"; the escaped information of the service information "customer account" corresponding to the first type of escape is "customer account", and the escaped information corresponding to the second type of escape is "Customer Account", and so on; in the service information of the response prompt information category, the escaped information of the service information "success" corresponding to the first type of escape is "success", and the escaped information corresponding to the second type of escape is "Success"; the escaped information of the service information "Your input information is incorrect" corresponding to the first type of escape is "Your input information is incorrect", and the escaped information corresponding to the second type of escape is "The information you entered is not correct", and so on.
[0089] It can be understood that the above is only an example to illustrate a method of configuring escaped information for service information, and does not represent a limitation on the escaped configuration of service information. Other configurations can be adopted according to actual situations, and other types of escapes can also be added or deleted. The embodiments of the present application do not limit this.
[0090] Step S203: Establish a message escape configuration library according to the information type codes corresponding to the multiple pieces of service information, and the escaped information of at least one type of escape corresponding to each piece of service information.
[0091] In the embodiments of the present application, a message escape configuration library can be established according to the information type codes corresponding to each piece of service information obtained in step S201, and the escaped information of at least one type of escape corresponding to each piece of service information obtained in S202.
[0092] As an example, the message escape configuration library can be as shown in Table 2 below. The message escape configuration library includes the information type codes corresponding to multiple pieces of service information, and the escaped information of at least one type of escape corresponding to each information type code.
[0093]
[0094] Table 2: Message Escape Configuration Library
[0095] It can be understood that the above is only an example to illustrate the message escape configuration library, and does not represent a limitation on the message escape configuration library. Other message escape configuration libraries can be established according to actual situations, and the embodiments of the present application do not limit this.
[0096] Step S204, obtain the message escape configuration library.
[0097] In the embodiments of the present application, the established message escape configuration library can be obtained. The message escape configuration library includes multiple service information, and each service information has a corresponding information type code. Each service information can correspond to at least one escape type, and each escape type corresponds to an escape information.
[0098] Step S205, receive the message to be escaped sent by the server.
[0099] The message to be escaped refers to the message that needs to be escaped, that is, the message to be escaped includes the service information that needs to be escaped, that is, the information to be escaped.
[0100] Step S206, perform parsing processing on the message to be escaped to obtain the information to be escaped.
[0101] The information to be escaped refers to the service information that needs to be escaped in the message to be escaped.
[0102] In some embodiments, by performing parsing processing on the message to be escaped, the target information type code and the target escape type corresponding to the information to be escaped can be obtained.
[0103] It can be understood that the target information type code corresponding to the information to be escaped obtained by parsing is included in the message escape configuration library in the above steps.
[0104] Step S207, according to the predefined escape rules, perform escape processing on the information to be escaped to obtain the escaped target information.
[0105] In the embodiments of the present application, after performing parsing processing on the message to be escaped returned by the server to obtain the information to be escaped, the information to be escaped can be escaped according to the predefined escape rules to obtain the escaped target information.
[0106] In some embodiments, it is possible to query in the message escape configuration library according to the target information type code and the target escape type corresponding to the information to be escaped, so as to obtain the escaped target information. That is, the target information type code and the target escape type can be used as indexes to query the corresponding escape information in the message escape configuration library, and the escaped target information can be obtained.
[0107] Among them, the escaped target information is the escape information of the corresponding target type under the target type code.
[0108] Step S208, generate an escaped target message according to the target information, and return the target message.
[0109] In the embodiments of the present application, an escaped target message can be generated according to the obtained escaped target information, and the target message can be returned.
[0110] In some embodiments, the target information can be recorded in the field corresponding to the target information to obtain the target message. And the target message can be returned to the request end to realize the escape of the message.
[0111] The method provided by the embodiments of the present application classifies and encodes multiple service information that needs to be escaped in the historical message to obtain the information type codes corresponding to the multiple service information, configures the escape information of at least one escape type corresponding to each service information, establishes a message escape configuration library according to the information type codes corresponding to the multiple service information and the escape information of at least one escape type corresponding to each service information, obtains the message escape configuration library, receives the message to be escaped sent by the server, parses and processes the message to be escaped to obtain the information to be escaped, performs escape processing on the information to be escaped according to the predefined escape rules to obtain the escaped target information, generates an escaped target message according to the target information, and returns the target message, which can quickly identify the information to be escaped in the message and process it according to the predefined escape rules, so as to be able to return the message information in the local language to the business systems in different overseas regions, effectively solve the problem of inconsistent languages when interacting with overseas information technology systems, and at the same time improve the efficiency of message escape, providing a better customer experience for overseas customers.
[0112] Figure 3 It is a flowchart of a message escape method shown in the third embodiment, as Figure 3 shown, and the method includes the following steps.
[0113] Step S301, obtain a message escape configuration library, where the message escape configuration library includes information type codes corresponding to multiple service information, and escape information of at least one escape type corresponding to each information type code.
[0114] In an embodiment of the present application, a pre-established message escape configuration library can be obtained. The message escape configuration library includes multiple service information, and each service information has a corresponding information type code. Each service information can correspond to at least one escape type, and each escape type corresponds to an escape information.
[0115] As an example, in an embodiment of the present application, the message escape configuration library is as shown in Table 2 of the foregoing embodiment, and will not be elaborated here.
[0116] Step S302: Receive the message to be escaped sent by the server.
[0117] The message to be escaped refers to a message that needs to be escaped, that is, the message to be escaped includes service information that needs to be escaped, that is, the information to be escaped.
[0118] In some embodiments, the message to be escaped includes multiple fields, and the information to be escaped can be obtained by parsing the content recorded in the multiple fields.
[0119] As an example, when querying account details, a message returned by the server can be received. The message includes a language information field language (used to describe the language type in which the service information in the message needs to be converted, that is, the target escape type of the message), a field resp_code for the information type code of the response prompt information class, a field resp_desc for the information description of the response prompt information class, and a field sym_cd for the information type code of the summary information class. Among them, the language information field records the language type "en" that needs to be converted, en represents English, the field for the information type code of the response prompt information class records the code "00000000", the field for the information description of the response prompt information class records the description "success" of the service information, and the field for the information type code of the summary information class records the code "A0000001".
[0120] Step S303: Parse and process the message to be escaped to obtain the target information type code and the target escape type corresponding to the information to be escaped.
[0121] In an embodiment of the present application, the received message to be escaped can be parsed and processed to obtain the target information type code and the target escape type corresponding to the information to be escaped.
[0122] As an example, the received message shown in step S302 is parsed and processed to obtain the target type codes "00000000" and "A0000001" corresponding to the information to be escaped, and the target escape type "en" (the second escape type).
[0123] Step S304: Using the target information type code and the target escape type corresponding to the information to be escaped as indexes, query in the message escape configuration library to obtain the escaped target information.
[0124] In the embodiment of the present application, the obtained target information type code and the target escape type can be used as indexes to query in the escape configuration library to obtain the escaped target information. Among them, the escaped target information is the escape information of the target type corresponding to the target information type code.
[0125] As an example, according to the target information type code and the target escape type parsed in step S303, query and retrieve in the message escape configuration library. The escape information of the second escape type corresponding to the target information type code "00000000" is "Success", and the escape information of the second escape type corresponding to the target information type code "A0000001" is "Transfer". That is, the escaped target information of the message is "Success" and "Transfer".
[0126] Step S305: Record the target information in the field corresponding to the target information to obtain the target message, and return the target message.
[0127] In the embodiment of the present application, after obtaining the escaped target information, the target information can be recorded in the field corresponding to the target information to obtain the escaped target message, and the target message is returned.
[0128] As an example, record the target information "Transfer" in the field sym_desc of the information description of the summary information class, and record the target information "Success" in the field resp_desc of the information description of the response prompt information class.
[0129] It can be understood that in the example proposed in the embodiment of the present application, only the case where the response prompt information and one piece of summary information need to be escaped is listed. The information that needs to be escaped in the actual message may also include other cases. For example, there is only response prompt information; or, there are both response prompt information and multiple other at least one type of information.
[0130] The method provided by the embodiment of the present application obtains a message escape configuration library, which includes information type codes corresponding to multiple service information and escape information of at least one escape type corresponding to each information type code. It receives an escape-required message sent by the server, parses and processes the escape-required message to obtain the target information type code and target escape type corresponding to the escape-required information. According to the target information type code and target escape type corresponding to the escape-required information, it queries in the message escape configuration library to obtain the escaped target information, records the target information in the field corresponding to the target information to obtain the target message, and returns the target message. It can quickly identify the escape-required information in the message and process it according to the predefined escape rules, so as to return message information in the local language to business systems in different overseas regions, effectively solving the problem of inconsistent languages when interacting with overseas information technology systems. At the same time, it improves the efficiency of message escape and provides a better customer experience for overseas customers.
[0131] Figure 4 It is a block diagram of a message escape device shown according to an exemplary embodiment, as Figure 4 shown. The device includes an acquisition unit 410, a reception unit 420, a parsing unit 430, an escape unit 440, and a sending unit 450. Among them,
[0132] The acquisition unit 410 is used to obtain a message escape configuration library, which includes information type codes corresponding to multiple service information and escape information of at least one escape type corresponding to each information type code;
[0133] The reception unit 420 is used to receive an escape-required message sent by the server, and the escape-required message includes escape-required information;
[0134] The parsing unit 430 parses and processes the escape-required message to obtain the escape-required information;
[0135] The escape unit 440 is used to perform escape processing on the escape-required information according to the predefined escape rules, based on the information type codes in the message escape configuration library and the escape information of at least one escape type corresponding to each information type code, to obtain the escaped target information;
[0136] The sending unit 450 is used to generate an escaped target message according to the target information and return the target message.
[0137] As a possible implementation manner, the parsing unit 430 is specifically used for:
[0138] Parse and process the escape-required message to obtain the target information type code and target escape type corresponding to the escape-required information.
[0139] As a possible implementation, the escape unit 440 includes:
[0140] A query module, configured to query in the message escape configuration library by using the target information type code corresponding to the information to be escaped and the target escape type as indexes, so as to obtain the escaped target information;
[0141] Wherein, the escaped target information is the escape information of the target type corresponding to the target information type code.
[0142] As a possible implementation, the sending unit 450 includes:
[0143] An escape record module, configured to record the target information into the field corresponding to the target information to obtain the target message.
[0144] As a possible implementation, the device further includes:
[0145] An information classification unit, configured to classify and encode multiple service information that needs to be escaped in the historical message to obtain the information type codes corresponding to the multiple service information;
[0146] A definition configuration unit, configured to configure the escape information of at least one escape type corresponding to each service information;
[0147] A definition record unit, configured to establish the message escape configuration library according to the information type codes corresponding to the multiple service information and the escape information of at least one escape type corresponding to each service information.
[0148] Regarding the device in the above embodiments, the specific manners in which each unit performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.
[0149] The device provided by the embodiments of the present disclosure can obtain a message escape configuration library, which includes information type codes corresponding to multiple service information and escape information of at least one escape type corresponding to each information type code, receive an unescaped message sent by a server, parse and process the unescaped message to obtain unescaped information, perform escape processing on the unescaped information according to predefined escape rules to obtain the escaped target information, generate an escaped target message according to the target information, and return the target message, can quickly identify the information to be escaped in the message and process it according to the predefined escape rules, so as to be able to return message information in the local language to business systems in different overseas regions, effectively solve the problem of inconsistent languages when interacting with overseas information technology systems, and at the same time improve the efficiency of message escape, providing a better customer experience for overseas customers.
[0150] Figure 5 is a block diagram of an electronic device 500 for message escape shown according to an exemplary embodiment. As Figure 5 shown, the above-mentioned electronic device 500 may further include:
[0151] a memory 510 and a processor 520, a bus 530 connecting different components (including the memory 510 and the processor 520), and the memory 510 stores a computer program, and when the processor 520 executes the program, the message escape method described in the embodiments of the present disclosure is implemented.
[0152] The bus 530 represents one or more of several types of bus structures, including a memory bus or a memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any bus structure in a variety of bus structures. For example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
[0153] The electronic device 500 typically includes a variety of electronic device-readable media. These media can be any available media that can be accessed by the electronic device 500, including volatile and non-volatile media, removable and non-removable media.
[0154] The memory 510 may further include a computer system-readable medium in the form of volatile memory, such as a random access memory (RAM) 540 and / or a cache memory 550. The server 500 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, a storage system 560 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, commonly referred to as a "hard disk drive"). Although Figure 5 not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (such as a "floppy disk") and an optical disk drive for reading and writing a removable non-volatile optical disk (such as a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 530 through one or more data media interfaces. The memory 510 may include at least one program product having a set (such as at least one) of program modules configured to perform the functions of the embodiments of the present disclosure.
[0155] A program / utilities 580 having a set (at least one) of program modules 570 can be stored, for example, in a memory 510. Such program modules 570 include—but are not limited to—an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. The program modules 570 generally execute the functions and / or methods in the embodiments described in this disclosure.
[0156] The electronic device 500 can also communicate with one or more external devices 590 (such as a keyboard, a pointing device, a display 591, etc.), and can also communicate with one or more devices that enable a user to interact with the electronic device 500, and / or communicate with any device that enables the electronic device 500 to communicate with one or more other computing devices (such as a network card, a modem, etc.). Such communication can be carried out through an input / output (I / O) interface 592. Moreover, the electronic device 500 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 593. As shown in the figure, the network adapter 593 communicates with other modules of the electronic device 500 through a bus 530. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0157] The processor 520 executes various functional applications and data processing by running programs stored in the memory 510.
[0158] It should be noted that for the implementation process and technical principle of the electronic device in this embodiment, refer to the foregoing explanation of the message escape method of the embodiments of the present disclosure, and details will not be repeated here.
[0159] In an exemplary embodiment, there is also provided a computer-readable storage medium including instructions, such as a memory including instructions. The above instructions can be executed by a processor of an electronic device to complete the method proposed in any of the foregoing embodiments. Optionally, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0160] In an exemplary embodiment, there is also provided a computer program product including a computer program, characterized in that the computer program implements the method proposed in any of the foregoing embodiments when executed by a processor.
[0161] Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include known or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are only illustrative, and the true scope and spirit of the present disclosure are pointed out by the following claims.
[0162] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.
Claims
1. A message escape method, characterized in that, including: Obtain a message escape configuration library, which includes information type codes corresponding to multiple service information, and escape information of at least one escape type corresponding to each information type code; Receive an escape-required message sent by a server, where the escape-required message includes information to be escaped; Perform parsing processing on the escape-required message to obtain the information to be escaped; According to predefined escape rules, based on the information type codes in the message escape configuration library and the escape information of at least one escape type corresponding to each information type code, perform escape processing on the information to be escaped to obtain the escaped target information; Generate an escaped target message according to the target information and return the target message.
2. The method according to claim 1, characterized in that, The performing parsing processing on the escape-required message to obtain the information to be escaped includes: Perform parsing processing on the escape-required message to obtain the target information type code and the target escape type corresponding to the information to be escaped.
3. The method according to claim 2, wherein The performing escape processing on the information to be escaped according to predefined escape rules, based on the information type codes in the message escape configuration library and the escape information of at least one escape type corresponding to each information type code, to obtain the escaped target information includes: Use the target information type code and the target escape type corresponding to the information to be escaped as indexes to query in the message escape configuration library to obtain the escaped target information; wherein, the escaped target information is the escape information of the target escape type corresponding to the target information type code.
4. The method according to claim 1, wherein The generating an escaped target message according to the target information includes: Record the target information into the field corresponding to the target information to obtain the target message.
5. The method according to any one of claims 1-4, characterized in that, The method further includes: Classify and code multiple service information that needs to be escaped in historical messages to obtain information type codes corresponding to the multiple service information; Configure escape information of at least one escape type corresponding to each service information; Establish the message escape configuration library according to the information type codes corresponding to the multiple service information and the escape information of at least one escape type corresponding to each service information.
6. A message escape device, characterized in that, including: An obtaining unit, configured to obtain a message escape configuration library, which includes information type codes corresponding to multiple service information, and escape information of at least one escape type corresponding to each information type code; A receiving unit, configured to receive an escape-required message sent by a server, where the escape-required message includes information to be escaped; A parsing unit, configured to perform parsing processing on the escape-required message to obtain the information to be escaped; An escape unit, configured to perform escape processing on the information to be escaped according to predefined escape rules, based on the information type codes in the message escape configuration library and the escape information of at least one escape type corresponding to each information type code, to obtain the escaped target information; A sending unit, configured to generate an escaped target message according to the target information and return the target message.
7. The device according to claim 6, characterized in that, The parsing unit is specifically configured to: Parse and process the message to be escaped to obtain the target information type code and the target escape type corresponding to the information to be escaped.
8. The device according to claim 7, characterized in that, The escape unit includes: A query module, configured to query in the message escape configuration library by using the target information type code and the target escape type corresponding to the information to be escaped, so as to obtain the escaped target information; Wherein, the escaped target information is the escape information of the target escape type corresponding to the target information type code.
9. The device according to claim 6, characterized in that, The sending unit includes: An escape record module, configured to record the target information into the field corresponding to the target information to obtain the target message.
10. The device according to any one of claims 6-9, characterized in that, The apparatus further includes: An information classification unit, configured to classify and code multiple service information that needs to be escaped in the historical message to obtain the information type codes corresponding to the multiple service information; A definition configuration unit, configured to configure the escape information of at least one escape type corresponding to each service information; A definition record unit, configured to establish the message escape configuration library according to the information type codes corresponding to the multiple service information and the escape information of at least one escape type corresponding to each service information.
11. An electronic device, characterized in that, Includes: A processor and a memory communicatively connected to the processor; The memory stores computer execution instructions; The processor executes the computer execution instructions stored in the memory to implement the method according to any one of claims 1 to 5.
12. A computer-readable storage medium, when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, enabling the electronic device to execute the message escape method according to any one of claims 1 to 5.
13. A computer program product, comprising a computer program, characterized in that, The computer program, when executed by a processor, implements the message escape method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Remittance message blacklist monitoring system and method
CN110298747A
Data message processing method and device
CN111464638A