A data processing method, apparatus, device, medium, and product

By obtaining the mapping relationship between the Uniform Resource Locator (URL) and message structure template of data processing requests, the system enables on-demand exposure of data and feedback of target data in the bank's core system, solving the core data security problem and reducing the risk of abnormal request attacks.

CN118694571BActive Publication Date: 2026-03-13CHINA CONSTRUCTION BANK +1
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

In existing technologies, when a bank's core system interacts with external clients, the security of core data is difficult to protect effectively, resulting in high-risk data exposure issues.

Method used

By obtaining the Uniform Resource Locator (URL) of the data processing request, the corresponding message structure template is determined, and based on the pre-created structure template mapping relationship, external data is filled into different message structure templates, realizing on-demand data exposure and target data feedback, and reducing the possibility of abnormal request attacks.

Benefits of technology

It improves the security of core data, ensuring that the core system only exposes target data to legitimate requests, and reduces the risk of attacks from abnormal requests.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694571B_ABST
    Figure CN118694571B_ABST
Patent Text Reader

Abstract

This invention discloses a data processing method, apparatus, device, medium, and product. The invention relates to the field of computer application technology. The method includes: obtaining a first Uniform Resource Locator (URL) for a data processing request; determining a first message structure template corresponding to the data processing request based on the first URL and a first entry point information corresponding to the data processing request; determining external data and a second message structure template corresponding to the data processing request based on the first message structure template; filling the external data into the second message structure template according to a pre-created structure template mapping relationship to obtain data to be forwarded; and sending the data to be forwarded to the second entry point information corresponding to the second message structure template to determine the target data corresponding to the data to be forwarded and providing feedback. Based on this data processing method, the possibility of the core system being attacked by abnormal requests can be reduced, and the security of core data can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of computer application technology, and in particular to a data processing method, apparatus, device, medium and product. Background Technology

[0002] The bank's core system exposes its servers to external clients for external transactions. These external transactions require strong management to ensure that the exposure of external transactions to external clients does not pose a security risk of expanding the exposure of the core system's core data during business interactions and data processing.

[0003] In related technologies, data processing is usually carried out through port forwarding or Uniform Resource Locator (URL) forwarding to achieve secure filtering of outbound requests and improve the security of core data in the core system. However, the risk of core data exposure in the core system is still very high, which cannot meet the user's needs for security protection of core data. Summary of the Invention

[0004] This invention provides a data processing method, apparatus, device, medium, and product to address the technical problem that the risk of core data exposure in the core system remains high during business interactions with external customers, i.e., during data processing, and cannot meet users' needs for security protection of core data.

[0005] In a first aspect, embodiments of the present invention provide a data processing method, wherein the method includes:

[0006] Upon receiving a data processing request, obtain the first Uniform Resource Locator (URL) of the data processing request;

[0007] Based on the first Uniform Resource Locator and the first entry information corresponding to the data processing request, determine the first message structure template corresponding to the data processing request;

[0008] Based on the first message structure template, determine the external data corresponding to the data processing request and the second message structure template, wherein the first message structure template and the second message structure template correspond to different data processing layers;

[0009] The external data is filled into the second message structure template according to the pre-created structure template mapping relationship to obtain the data to be forwarded, and the data to be forwarded is sent to the second entry information corresponding to the second message structure template so that the core data processing layer corresponding to the second message structure template can determine the target data corresponding to the data to be forwarded and provide feedback.

[0010] Secondly, embodiments of the present invention also provide a data processing apparatus, wherein the apparatus includes:

[0011] The data request location module is used to obtain the first Uniform Resource Locator (URL) of the data processing request when a data processing request is received.

[0012] The first template determination module is used to determine a first message structure template corresponding to the data processing request based on the first Uniform Resource Locator and the first entry information corresponding to the data processing request.

[0013] The second template determination module is used to determine the external data corresponding to the data processing request and the second message structure template based on the first message structure template, wherein the first message structure template and the second message structure template correspond to different data processing layers;

[0014] The data forwarding module is used to fill the external data into the second message structure template according to the pre-created structure template mapping relationship to obtain the data to be forwarded, and send the data to be forwarded to the second entry information corresponding to the second message structure template, so that the core data processing layer corresponding to the second message structure template can determine the target data corresponding to the data to be forwarded and provide feedback.

[0015] Thirdly, embodiments of the present invention also provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the data processing method as described in any of the embodiments of the present invention.

[0016] Fourthly, embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the data processing method as described in any of the embodiments of the present invention.

[0017] Fifthly, embodiments of the present invention also provide a computer program product, including a computer program that, when executed by a processor, implements the data processing method as described in any of the embodiments of the present invention.

[0018] In this embodiment of the invention, upon receiving a data processing request, a first Uniform Resource Locator (URL) for the data processing request is obtained; based on the first URL and the first entry point information corresponding to the data processing request, a first message structure template corresponding to the data processing request is determined; based on the first message structure template, external data and a second message structure template corresponding to the data processing request are determined, wherein the first and second message structure templates correspond to different data processing layers; the external data is filled into the second message structure template according to a pre-created structure template mapping relationship to obtain the data to be forwarded, and the data to be forwarded is sent to the second entry point information corresponding to the second message structure template, so that the core data processing layer corresponding to the second message structure template can determine the target data corresponding to the data to be forwarded and provide feedback. This invention, through a one-to-one conversion of the message structure of the data processing request, allows the target data to be exposed on demand, that is, only exposed to the tenant corresponding to the data processing request, reducing the possibility of the core system being attacked by abnormal requests and improving the security of core data. Attached Figure Description

[0019] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 A flowchart of a data processing method provided in an embodiment of the present invention;

[0021] Figure 2 A flowchart of a data processing method provided in an embodiment of the present invention;

[0022] Figure 3 A flowchart of a data processing method provided in an embodiment of the present invention;

[0023] Figure 4 A flowchart of a data processing method provided in an embodiment of the present invention;

[0024] Figure 5 This is a schematic diagram of the structure of a data processing device provided in an embodiment of the present invention;

[0025] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0026] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present invention, and not all of the structures.

[0027] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this invention, terms such as "first," "second," etc., are used only for distinguishing descriptions and should not be construed as indicating or implying relative importance. The acquisition, storage, use, and processing of data in the technical solution of this invention all comply with relevant national laws and regulations.

[0028] It should be noted that in the embodiments of this application, certain software, components, models and other existing solutions in the industry may be mentioned. These should be regarded as exemplary and are only intended to illustrate the feasibility of implementing the technical solution of this application. However, it does not mean that the applicant has used or necessarily used the solution.

[0029] Before introducing the technical solutions provided in the embodiments of this invention, a brief explanation of the data processing layer involved in these embodiments is provided: Typically, data center equipment deployment areas and firewalls are divided into an external data processing layer and a core data processing layer. Currently, all external solutions deploy an external transaction forwarder at the data processing layer to forward external transaction requests, i.e., data processing requests, to the core data processing layer for processing. The external data processing layer primarily receives data processing requests and forwards them to the core data processing layer; the core data processing layer primarily receives the forwarded data processing requests, processes them, and further returns the data processing result, i.e., the target data, to the external data processing layer, enabling the external data processing layer to return the target data to the external client that initiated the data processing request. This invention can convert IP addresses, ports, URLs, packet structures, and field names; simultaneously, it performs one-to-one limitation and detection on the above conversions. This invention exposes transactions on demand and forwards packets locally; it can ensure that 100% of core data in the core system is not exposed unnecessarily, and the one-to-one precise filtering of external transaction requests prevents the penetration of abnormal external transaction requests, ensuring the security of core data.

[0030] Figure 1This is a flowchart illustrating a data processing method provided in an embodiment of the present invention. The present invention is applicable to situations where data processing requests are processed based on an external data processing layer and a core data processing layer. This method can be executed by a data processing device, which can be implemented in hardware and / or software, optionally through an electronic device, such as a mobile terminal, PC, or server. Figure 1 As shown, the method includes:

[0031] S110. Upon receiving a data processing request, obtain the first Uniform Resource Locator (URL) for the data processing request.

[0032] The data processing request can be a request generated based on a user's triggering action on the client, and this request can be a request that can provide content adapted to the client's triggering action. In this embodiment of the invention, the data processing request can be preset according to scenario requirements, and is not specifically limited here. Optionally, the data processing request can include resource access requests or data modification requests, etc. For example, the data processing request can be a request to transfer funds or check the balance.

[0033] The first Uniform Resource Locator (URL) can be understood as a resource locator associated with a data processing request. In this embodiment of the invention, the first URL associated with different data processing requests can be different. The first URL associated with a data processing request can be related to the tenant that initiated the data processing request. A tenant can be understood as a user who has external transactions with the core system. The association between the tenant that initiated the data processing request and the first URL can be set in advance according to the scenario requirements, and is not specifically limited here. The association between a tenant and the first URL can be one-to-one, that is, each data processing request initiated by a tenant corresponds to a unique first URL. For example, tenants can include tenant 1, tenant 2, and tenant 3, etc. In this embodiment of the invention, the first URL associated with the data processing request initiated by tenant 1 can be URL 1; the first URL associated with the data processing request initiated by tenant 2 can be URL 2; and the first URL associated with the data processing request initiated by tenant 3 can be URL 3.

[0034] S120. Based on the first Uniform Resource Locator and the first entry information corresponding to the data processing request, determine the first message structure template corresponding to the data processing request.

[0035] The first entry information can be understood as the entry information corresponding to the data processing request. In this embodiment of the invention, the first entry information corresponding to data processing requests initiated by different tenants may be different. The correspondence between data processing requests and the first entry information can be pre-set according to scenario requirements, and is not specifically limited here. Optionally, the first entry information may include the local port and Internet Protocol (IP) address of the initiating data processing request. Specifically, the first entry information corresponding to the data processing request can be determined based on the first Uniform Resource Locator (URL) associated with the data processing request. There can be a one-to-one correspondence between the first URL and the first entry information. For example, if the first URL corresponding to the data processing request is URL 1, the first entry information associated with URL 1 may be entry information 1 (which may include local port 1 and IP address 1), then the first entry information of the data processing request includes local port 1 and IP address 1.

[0036] Optionally, the first entry point information corresponding to the data processing request can be unique. That is, the first entry point information corresponding to the data processing request may include a local port and an IP address.

[0037] The first message structure template can be understood as a message structure template adapted to the external data processing layer. In this embodiment of the invention, the first message structure template can parse the message body in the target message associated with the data processing request based on fixed template content. In this invention, a first message structure template for parsing data processing requests is set in the external data processing layer. This first message structure template is a private template with a template structure and content different from the second message structure template of the core data processing layer, set by the developers. The template structure and content are not publicly disclosed. The purpose is to allow for personalized message body parsing of data processing requests based on the template content of the first message structure template in the external data processing layer. In case of parsing anomalies, such as abnormal field names, the data processing request can be intercepted or filtered. The advantage is that template-based parsing based on the first message structure template prevents the penetration of abnormal data processing requests, adding a layer of security for the core system and its core data.

[0038] This invention discloses a specific method for determining a first message structure template corresponding to a data processing request. Based on the above embodiments, optionally, the first entry information includes the local port and IP address of the machine initiating the data processing request. Determining the first message structure template corresponding to the data processing request based on the first Uniform Resource Locator (URL) and the first entry information corresponding to the data processing request includes:

[0039] Obtain the local port and IP address of the data processing request;

[0040] Based on the local port, IP address, and first Uniform Resource Locator, locate the first message structure template from the external data processing layer;

[0041] The first message structure template is a data template adapted to the external data processing layer.

[0042] In this embodiment of the invention, the message structure template adapted to the external data processing layer may include multiple templates. Specifically, a unique first message structure template associated with the data processing request can be found in the external data processing layer based on the local port, IP address, and first Uniform Resource Locator.

[0043] In this embodiment of the invention, the first entry information corresponding to the data processing request may include a local port and an IP address.

[0044] S130. Based on the first message structure template, determine the external data corresponding to the data processing request and the second message structure template, wherein the first message structure template and the second message structure template correspond to different data processing layers.

[0045] External data can be understood as transaction data between the company and its tenants.

[0046] The second message structure template can be understood as a message structure template adapted to the core data processing layer. Specifically, in this embodiment of the invention, the target filling method is determined based on the structure template mapping relationship between the first and second message structure templates, and the content mapping relationship between the template content of the first and second message structure templates based on this mapping relationship. The external data parsed from the first message structure template is then filled into the second message structure template based on this target filling method. In this invention, a second message structure template for filling external data is set in the core data processing layer. The message structure and template content of the second and first message structure templates can be different. The purpose is to allow for secondary template-based filling of the external data parsed from the first message structure template in the core data processing layer, based on the second message structure template, which differs from the first message structure template in both message structure and template content. In case of filling anomalies, such as message structure anomalies or field name anomalies, the data processing request can be intercepted or filtered. The advantage is that it prevents the penetration of abnormal data processing requests based on the second message structure template, and adds another layer of security for the core system and the core data in the core system.

[0047] The structure template mapping relationship can be understood as the mapping relationship between the first message structure template and the message structure between the second message structure template. The content mapping relationship can be understood as the mapping relationship between the template content of the first message structure template and the second message structure template, based on the structure template mapping relationship. The template content can include message field names and field values. Optionally, the message structure corresponding to the first message structure template can be XML, and the message structure corresponding to the second message structure template can be JSON or a tiled structure; field A in the template content of the first message structure template (XML) can be mapped to field B in the template content of the second message structure template (JSON).

[0048] In this embodiment of the invention, the mapping relationship between the template content of the second message structure template and the template content of the first message structure template can be set in advance according to the scenario requirements, and no specific limitation is made here.

[0049] The data processing layer can be understood as the network layer that performs data processing. In this embodiment of the invention, the data processing layer may include an external data processing layer and a core data processing layer. The external data processing layer is used to receive data processing requests from tenants and forward the data processing requests to the core data processing layer; the core data processing layer is used to perform data processing based on the forwarded data processing requests and return the target data corresponding to the processing result to the external data processing layer, so that the external data processing layer can send the target data to the tenant.

[0050] S140. Based on the pre-created structural template mapping relationship, the external data is filled into the second message structure template to obtain the data to be forwarded, and the data to be forwarded is sent to the second entry information corresponding to the second message structure template so that the core data processing layer corresponding to the second message structure template can determine the target data corresponding to the data to be forwarded and provide feedback.

[0051] The structure template mapping relationship can be understood as the mapping relationship between the first message structure template and the second message structure template.

[0052] The data to be forwarded can be understood as the external data filled in based on the second message structure template.

[0053] The second entry information can be understood as the entry information corresponding to the second message structure template. In this embodiment of the invention, there may be multiple second message structure templates adapted to the core data processing layer. The second entry information corresponding to different second message structure templates may be different. In this embodiment of the invention, the correspondence between the second message structure template and the second entry information can be set in advance according to the scenario requirements, which is not specifically limited here. One second message structure template can correspond to a unique second entry information.

[0054] In this embodiment of the invention, the second entry information may optionally include the core transaction IP, port, and second Uniform Resource Locator.

[0055] The target data can be understood as the data requested based on the data to be forwarded determined by the core data processing layer. It can also be understood as the data requested by the data processing request. In this embodiment of the invention, the target data is data that is not exposed externally; it can also be understood as the target data being disclosed only to the target tenant and not to other tenants.

[0056] Based on the above embodiments, in order to obtain the data processing requests corresponding to the external data processing layer, a listening port can be set in the external data processing layer. Optionally, the data processing method further includes:

[0057] In the external data processing layer, a listening port is set up so that when a data processing request is received based on the listening port, the steps of determining the first Uniform Resource Locator and the target data are executed.

[0058] The listening port can be understood as a port used to listen for data processing requests. The listening port can be set in the external data processing layer. In this embodiment of the invention, the listening port can be preset according to scenario requirements, and no specific limitation is made here. Optionally, the listening port can be TCP or HTTP.

[0059] In this embodiment of the invention, upon receiving a data processing request, a first Uniform Resource Locator (URL) for the data processing request is obtained; based on the first URL and the first entry point information corresponding to the data processing request, a first message structure template corresponding to the data processing request is determined; based on the first message structure template, external data and a second message structure template corresponding to the data processing request are determined, wherein the first and second message structure templates correspond to different data processing layers; the external data is filled into the second message structure template according to a pre-created structure template mapping relationship to obtain the data to be forwarded, and the data to be forwarded is sent to the second entry point information corresponding to the second message structure template, so that the core data processing layer corresponding to the second message structure template can determine the target data corresponding to the data to be forwarded and provide feedback. This invention, through a one-to-one conversion of the message structure of the data processing request, allows the target data to be exposed on demand, that is, only exposed to the tenant corresponding to the data processing request, reducing the possibility of the core system being attacked by abnormal requests and improving the security of core data.

[0060] Based on the above embodiments, the message body of the data processing request can be parsed according to the template content of the first message structure template to obtain the external data; and, according to the pre-established message template mapping relationship and the first message template identifier, a second message template identifier corresponding to the first message structure template is determined, so as to retrieve the second message structure template based on the second message template identifier. For specific implementation methods, please refer to the detailed description of this embodiment. Technical terms that are the same as or corresponding to those in the above embodiments will not be repeated here. Figure 2 This is a flowchart illustrating a data processing method provided in an embodiment of the present invention. Figure 2 As shown, this data processing method includes the following steps:

[0061] S210. Upon receiving a data processing request, obtain the first Uniform Resource Locator (URL) for the data processing request.

[0062] S220. Based on the first Uniform Resource Locator and the first entry information corresponding to the data processing request, determine the first message structure template corresponding to the data processing request.

[0063] S230. Parse the message body of the data processing request based on the template content of the first message structure template to obtain the external data.

[0064] The template content can be pre-set content for the first message structure template. Optionally, the template content can include message field names and field values. For example, the message field names can be pre-set to A, B, or C, etc.

[0065] External data can be understood as message data associated with data processing requests. In scenarios where the data processing request is an external transaction request, the message data is the external data. A tenant can be understood as an external user, that is, a user who has external transactions with the core system.

[0066] S240. Based on the pre-established message template mapping relationship and the first message template identifier, determine the second message template identifier corresponding to the first message structure template, so as to retrieve the second message structure template based on the second message template identifier.

[0067] The message template mapping relationship includes the correspondence between multiple first message template identifiers and multiple second message template identifiers.

[0068] The first message template identifier can be understood as a template identifier corresponding to each first message structure template. In this embodiment of the invention, there may be multiple first message structure templates adapted to the external data processing layer. Each first message structure template may correspond to a unique template identifier. The template identifier that characterizes the uniqueness of the first message template can be preset according to the scenario requirements, and is not specifically limited here. For example, the template identifier may include a template name or a template ID.

[0069] The second message template identifier can be understood as a template identifier corresponding to each second message structure template. In this embodiment of the invention, multiple second message structure templates adapted to the core data processing layer may be included. Each second message structure template may correspond to a unique template identifier. The template identifier characterizing the uniqueness of the second message template can be preset according to scenario requirements, and is not specifically limited here.

[0070] In this embodiment of the invention, the message template mapping relationship can be understood as a correspondence between multiple first message template identifiers and multiple second message template identifiers. Optionally, the message template mapping relationship can include a one-to-one relationship.

[0071] S250. Based on the pre-created structural template mapping relationship, the external data is filled into the second message structure template to obtain the data to be forwarded, and the data to be forwarded is sent to the second entry information corresponding to the second message structure template so that the core data processing layer corresponding to the second message structure template can determine the target data corresponding to the data to be forwarded and provide feedback.

[0072] This invention discloses a specific method for filling external data into a second message structure template to obtain data to be forwarded. Based on the above embodiments, optionally, external data is filled into the second message structure template according to a pre-created structure template mapping relationship to obtain the data to be forwarded, including:

[0073] Based on the content mapping relationship between multiple first message template identifiers and multiple second message template identifiers in the structure template mapping relationship, determine the target filling method corresponding to the first message structure template;

[0074] The external data is filled into the second message structure template according to the target filling method to obtain the data to be forwarded.

[0075] The structure template mapping relationship can be understood as the mapping relationship between the first message structure template and the message structure between the second message structure template. The content mapping relationship can be understood as the mapping relationship between the template content of the first message structure template and the second message structure template, based on the structure template mapping relationship.

[0076] In this embodiment of the invention, the content mapping relationship between different first message structure templates and different second message structure templates can be different. Therefore, specifically, the target content mapping relationship between two message structure templates can be determined based on the first message template identifier and the second message template identifier.

[0077] The target fill method can be understood as the target method for filling external data into the second message template. The target fill method can be determined based on the content mapping relationship between the first and second message template identifiers. For example, the target fill method could be to transform the fields of the external data located at the first level of the first message structure template according to the target transformation method and then fill it into the second level of the second message structure template. The first level can be different from the second level, and the target transformation method could be to transform the first field into the second field. The transformation method between fields can be pre-set according to scenario requirements and is not specifically limited here.

[0078] In this embodiment of the invention, the local port and IP address of the data processing request are obtained; based on the local port, IP address, and first Uniform Resource Locator (URL), a first message structure template is searched from the external data processing layer; wherein, the first message structure template is a data template adapted to the external data processing layer. This invention achieves the effect of locating a unique first message structure template corresponding to a data processing request based on the local port, IP address, and first URL.

[0079] Based on the above embodiments, the second entry information corresponding to the second message structure template can be determined according to the pre-established first mapping relationship. The second entry information includes the core transaction IP, port, and second Uniform Resource Locator (URL), thus enabling the determination of the second entry information corresponding to the second message structure template. For specific implementation details, please refer to the detailed description of this embodiment. Technical terms that are the same as or corresponding to those in the above embodiments will not be repeated here. Figure 3 This is a flowchart illustrating a data processing method provided in an embodiment of the present invention. Figure 3 As shown, this data processing method includes the following steps:

[0080] S310. Upon receiving a data processing request, obtain the first Uniform Resource Locator (URL) for the data processing request.

[0081] S320. Based on the first Uniform Resource Locator and the first entry information corresponding to the data processing request, determine the first message structure template corresponding to the data processing request.

[0082] S330. Based on the first message structure template, determine the external data corresponding to the data processing request and the second message structure template, wherein the first message structure template and the second message structure template correspond to different data processing layers.

[0083] S340. Determine the second entry information corresponding to the second message structure template based on the pre-established first mapping relationship. The second entry information includes the core transaction IP, port, and second Uniform Resource Locator.

[0084] The first mapping relationship can be understood as the mapping relationship between the second message structure template and the second entry information. In this embodiment of the invention, the first mapping relationship between the second message structure template and the second entry information can be pre-established according to scenario requirements, and is not specifically limited here. Optionally, the first mapping relationship can include a one-to-one relationship. Specifically, the first mapping relationship can be established based on the access requirements of each tenant.

[0085] In this embodiment of the invention, the second entry information corresponding to each second message structure template may include a core transaction IP, a port, and a second Uniform Resource Locator.

[0086] The core transaction IP can be understood as the transaction IP corresponding to the core data processing layer.

[0087] The second Uniform Resource Locator can be understood as a resource locator associated with the second message structure template.

[0088] This invention discloses a specific method for forwarding data to be forwarded. Based on the above embodiments, optionally, the data to be forwarded is sent to the second entry information corresponding to the second message structure template, including: forwarding the data to be forwarded from the external data processing layer to the second entry information of the core data processing layer through a network request, so that the core data processing layer receives the data to be forwarded based on the second entry information.

[0089] This invention discloses a data processing method for situations where there are anomalies in the lookup of entry information and message structure templates. Optionally, based on the above embodiments, the data processing method further includes:

[0090] If the first entry point information, the first message structure template, the second message structure template, and / or the second entry point information are not found, the data processing request is intercepted based on the external data processing layer and the request exception information is reported.

[0091] Among them, the information of request exception can be understood as information that indicates an error in the data processing request.

[0092] Optionally, specifically, the system searches for the first entry point information corresponding to the data processing request based on the first Uniform Resource Locator (URL). If the first entry point information is not found, the system intercepts the data processing request and reports a request exception. If the first entry point information is found, the system performs the operation of determining the first message structure template corresponding to the data processing request based on the first URL and the first entry point information corresponding to the data processing request.

[0093] Furthermore, if the first message structure template is not found, the data processing request is intercepted and an error message is returned; if the first message structure template is found, the message body of the data processing request is parsed according to the template content of the first message structure template to obtain the external data.

[0094] Furthermore, if the external data is not parsed, i.e. the content parsing is abnormal, the data processing request is intercepted and the request abnormality information is returned; if the external data is parsed, the operation of determining the external data corresponding to the data processing request and the second message structure template based on the first message structure template is executed.

[0095] Furthermore, if the second message structure template is not found, the data processing request is intercepted and an error message is returned; if the second message structure template is found, the operation of filling the external data into the second message structure template according to the pre-created structure template mapping relationship is performed to obtain the data to be forwarded.

[0096] Furthermore, if the data to be forwarded is not filled, i.e., the data filling is abnormal, the data processing request is intercepted and the abnormal request information is fed back; if the data to be forwarded is filled, the operation of determining the second entry information corresponding to the second message structure template based on the pre-established first mapping relationship is performed.

[0097] Furthermore, if the second entry point information is not found, the data processing request is intercepted and an error message is returned; if the second entry point information is found, the data to be forwarded is sent to the second entry point information corresponding to the second message structure template, so that the core data processing layer corresponding to the second message structure template can determine the target data corresponding to the data to be forwarded and return the information.

[0098] In this embodiment of the invention, if any lookup or matching step is abnormal during message data forwarding, request interception will be triggered. This enables mandatory checks at every stage of the conversion of data processing requests for external transactions, thereby improving the security of data processing based on data processing requests for external transactions.

[0099] S350. Based on the pre-created structural template mapping relationship, the external data is filled into the second message structure template to obtain the data to be forwarded, and the data to be forwarded is sent to the second entry information corresponding to the second message structure template so that the core data processing layer corresponding to the second message structure template can determine the target data corresponding to the data to be forwarded and provide feedback.

[0100] In this embodiment of the invention, a second entry information corresponding to a second message structure template is determined based on a pre-established first mapping relationship. The second entry information includes a core transaction IP address, a port, and a second Uniform Resource Locator (URL). This invention achieves the effect of determining a unique second entry information corresponding to a second message structure template based on a first mapping relationship.

[0101] Based on the above embodiments, corresponding second entry information can be assigned to multiple tenants; multiple first message structure templates can be configured for the external data processing layer and multiple second message structure templates can be configured for the core data processing layer. A message template mapping relationship corresponding to the multiple first message structure templates and multiple second message structure templates can be established. Based on the message template mapping relationship and the template identifier of the determined first message structure template, the second message structure template can be determined, thus realizing the pre-establishment of the message template mapping relationship corresponding to the multiple first message structure templates and multiple second message structure templates. For specific implementation details, please refer to the detailed description of this embodiment. Technical terms that are the same as or corresponding to those in the above embodiments will not be repeated here. Figure 4 This is a flowchart illustrating a data processing method provided in an embodiment of the present invention. Figure 4 As shown, this data processing method includes the following steps:

[0102] S410: Assign corresponding second entry information to multiple tenants.

[0103] In this context, a tenant can be understood as a user who has external transactions with the core system. A tenant can be the object that initiates a data processing request. In this embodiment of the invention, there can be multiple tenants.

[0104] S420. Configure multiple first message structure templates for the external data processing layer and multiple second message structure templates for the core data processing layer, and establish a message template mapping relationship between the multiple first message structure templates and the multiple second message structure templates, so as to determine the second message structure template based on the message template mapping relationship and the template identifier of the determined first message structure template.

[0105] The message template mapping relationship can be understood as the correspondence between multiple first message template identifiers and multiple second message template identifiers. Optionally, the message template mapping relationship can include a one-to-one relationship. In this embodiment of the invention, the message template mapping relationship can be preset according to scenario requirements, and is not specifically limited here. For example, first message template identifier a is mapped to second message template identifier a', or first message template identifier a is mapped to second message template identifier b, etc.

[0106] This invention discloses a specific preset method for finding the mapping relationship between entry information and message structure templates. Based on the above embodiments, optionally, the data processing method further includes:

[0107] Configure a first lookup mapping relationship between the first entry information and multiple first message structure templates for the external data processing layer, so as to determine the first message structure template based on the first lookup mapping relationship;

[0108] Configure a second lookup mapping relationship between the second entry information and multiple second message structure templates for the core data processing layer, so as to determine the second message structure template based on the second lookup mapping relationship.

[0109] The first lookup mapping relationship can be understood as the mapping relationship between the first entry information and the first packet structure template. Optionally, the first lookup mapping relationship can include a one-to-one relationship, that is, one local port corresponds to one IP address, one IP address corresponds to one first Uniform Resource Locator (URI), and one URI corresponds to one first packet template identifier of the first packet structure template. In this embodiment of the invention, the first lookup mapping relationship can be preset according to scenario requirements, and is not specifically limited here. For example, local port 1 corresponds to IP address 1, IP address 1 corresponds to URI 1, and URI 1 corresponds to first packet template identifier a; or local port 1 corresponds to IP address 2, IP address 2 corresponds to URI 3, and URI 3 corresponds to first packet template identifier a, etc.

[0110] The second lookup mapping relationship can be understood as the mapping relationship between the second entry information and the second message structure template. Optionally, the second lookup mapping relationship can include a one-to-one relationship, that is, one core transaction IP corresponds to one port, one port corresponds to one second Uniform Resource Locator (URI), and one URI corresponds to one second message structure template. In this embodiment of the invention, the first lookup mapping relationship can be preset according to scenario requirements, and is not specifically limited here. The second lookup mapping relationship can be established using the same method as the first lookup mapping relationship, and will not be elaborated further here.

[0111] S430. Upon receiving a data processing request, obtain the first Uniform Resource Locator (URL) for the data processing request.

[0112] S440. Based on the first Uniform Resource Locator and the first entry information corresponding to the data processing request, determine the first message structure template corresponding to the data processing request.

[0113] S450. Based on the first message structure template, determine the external data corresponding to the data processing request and the second message structure template, wherein the first message structure template and the second message structure template correspond to different data processing layers.

[0114] S460. Based on the pre-created structural template mapping relationship, the external data is filled into the second message structure template to obtain the data to be forwarded, and the data to be forwarded is sent to the second entry information corresponding to the second message structure template so that the core data processing layer corresponding to the second message structure template can determine the target data corresponding to the data to be forwarded and provide feedback.

[0115] In this embodiment of the invention, multiple tenants are assigned corresponding second entry information; multiple first message structure templates are configured for the external data processing layer; and multiple second message structure templates are configured for the core data processing layer. A message template mapping relationship is established between the multiple first and second message structure templates. Based on this mapping relationship and the template identifier of the determined first message structure template, the second message structure template is determined. This invention achieves the effect of pre-establishing mapping relationships between message templates and between message templates and entry information based on the needs of each tenant.

[0116] As an optional embodiment of the above embodiments, if the overall process of processing data requests based on the external data processing layer and the core data processing layer is described in steps, the following steps can be taken. First, before describing the specific steps, the terms are uniformly defined, where url1 represents the first Uniform Resource Locator, url2 represents the second Uniform Resource Locator, external layer represents the external data processing layer, core layer represents the core data processing layer, message structure template 1 represents the first message structure template, message structure template 2 represents the second message structure template, url rule 1 represents the first lookup mapping relationship, and url rule 2 represents the second lookup mapping relationship.

[0117] Based on the above-mentioned terminology, the optional data processing steps are described below:

[0118] 1. Analyze the external access requirements of tenants and identify the core transaction IPs, ports, URLs, and message structure templates associated with each tenant.

[0119] 2. Design a message structure template 2 for the outer layer that is completely different from the message structure template 1 of the core layer. The message structure template can include field names. For example, the core layer is xml and the outer layer is json or flat. For example, A in xml is A' in json.

[0120] 3. Map the two sets of message structure templates of the two data processing layers, the outer layer and the core layer, one-to-one;

[0121] 4. Design a URL rule 1 for the outer layer, which is different from the URL rule 2 of the core layer;

[0122] 5. Associate the local port, IP address, and URL1 exposed by the external layer with the message structure template 1 of the external layer one-to-one;

[0123] 6. Associate the core transaction IP, port, and URL2 of the core layer with the message structure template 2 of the core layer one-to-one;

[0124] 7. Open the specific external listening port mentioned in step 5, which can be TCP or HTTP;

[0125] 8. When the external listening port receives a data processing request, it parses out URL1;

[0126] 9. Based on the local port, IP address, and url1 from step 8, locate the associated external layer message structure template 1;

[0127] 10. Strictly follow the message structure template 1 in step 9 to parse the message body of this data processing request into external data;

[0128] 11. Locate the core layer message structure template 2 based on message structure template 1 from step 9;

[0129] 12. Fill the external data parsed in step 10 into the message structure template 2 found in step 11 in strict accordance with the mapping rules in step 3;

[0130] 13. Based on the message structure template 2 from step 11, reverse look up the core transaction IP, port, and URL 2 of the core layer in step 6;

[0131] 14. The external data filled in according to the core layer message structure template 2 in step 12 is forwarded to the core transaction IP, port and URL2 found in step 13 via network request;

[0132] 15. The core layer accurately receives the request forwarded by the external layer, processes it, and returns the target data to the external layer;

[0133] 16. The external layer returns the target data to the tenant;

[0134] 17. If no matching result is found in any of the steps 1-16 above, or if an exception occurs, failure filtering will be triggered. At the same time, this invention will perform a mandatory check on the conversion process of all external transactions. If the conversion requirements are not met, the process will not be started, and a conversion failure alarm will be issued.

[0135] In the data processing process, this invention transforms IP addresses, ports, URLs, message structures, and field names, and performs one-to-one constraints and lookup checks on the transformations. The forced execution of the transformations ensures that 100% of the data is not exposed unless necessary. The one-to-one precise filtering achieves accurate filtering of the external connection layer, which prevents abnormal request penetration and protects the core system from intrusion by illegal external connection requests, thus ensuring the security of the target data of the core system.

[0136] Compared to the traditional method of processing data requests through port forwarding or resource locator forwarding, this invention adds a step of converting the message body corresponding to the data processing request. Furthermore, all conversions in this invention are enforced at the software level; otherwise, they will not be executed, thereby further ensuring the security of data processing.

[0137] Figure 5 This is a schematic diagram of a data processing device provided in an embodiment of the present invention. Figure 5 As shown, the device includes: a data request positioning module 510, a first template determination module 520, a second template determination module 530, and a data forwarding module 540.

[0138] The data request positioning module 510 is used to obtain a first Uniform Resource Locator (URL) for the data processing request upon receiving it. The first template determination module 520 is used to determine a first message structure template corresponding to the data processing request based on the first URL and a first entry point information corresponding to the data processing request. The second template determination module 530 is used to determine external data and a second message structure template corresponding to the data processing request based on the first message structure template, wherein the first message structure template and the second message structure template correspond to different data processing layers. The data forwarding module 540 is used to fill the external data into the second message structure template according to a pre-created structure template mapping relationship to obtain data to be forwarded, and send the data to be forwarded to the second entry point information corresponding to the second message structure template, so that the core data processing layer corresponding to the second message structure template determines the target data corresponding to the data to be forwarded and provides feedback.

[0139] In this embodiment of the invention, upon receiving a data processing request, a first Uniform Resource Locator (URL) for the data processing request is obtained; based on the first URL and the first entry point information corresponding to the data processing request, a first message structure template corresponding to the data processing request is determined; based on the first message structure template, external data and a second message structure template corresponding to the data processing request are determined, wherein the first and second message structure templates correspond to different data processing layers; the external data is filled into the second message structure template according to a pre-created structure template mapping relationship to obtain the data to be forwarded, and the data to be forwarded is sent to the second entry point information corresponding to the second message structure template, so that the core data processing layer corresponding to the second message structure template can determine the target data corresponding to the data to be forwarded and provide feedback. This invention, through a one-to-one conversion of the message structure of the data processing request, allows the target data to be exposed on demand, that is, only exposed to the tenant corresponding to the data processing request, reducing the possibility of the core system being attacked by abnormal requests and improving the security of core data.

[0140] Based on the above-described device, optionally, the first entry information includes the local port and IP address that initiated the data processing request, and the first template determination module 520 is specifically used for:

[0141] Obtain the local port and IP address of the data processing request;

[0142] Based on the local port, the IP address, and the first Uniform Resource Locator, the first message structure template is searched from the external data processing layer;

[0143] The first message structure template is a data template adapted to the external data processing layer.

[0144] Based on the above-mentioned device, optionally, the second template determining module 530 is specifically used for:

[0145] The message body of the data processing request is parsed based on the template content of the first message structure template to obtain the external data; and,

[0146] Based on the pre-established message template mapping relationship and the first message template identifier, a second message template identifier corresponding to the first message structure template is determined, so as to retrieve the second message structure template based on the second message template identifier;

[0147] The message template mapping relationship includes the correspondence between multiple first message template identifiers and multiple second message template identifiers.

[0148] Based on the above-mentioned device, optionally, the data forwarding module 540 is specifically used for:

[0149] Based on the content mapping relationship between multiple first message template identifiers and multiple second message template identifiers in the structure template mapping relationship, the target filling method corresponding to the first message structure template is determined;

[0150] The external data is filled into the second message structure template according to the target filling method to obtain the data to be forwarded.

[0151] Optionally, based on the above-mentioned device, the data processing device further includes: an entry information determination module, used to determine the second entry information corresponding to the second message structure template according to a pre-established first mapping relationship after obtaining the second message structure template, wherein the second entry information includes the core transaction IP, port and second unified resource locator.

[0152] Based on the above-mentioned device, optionally, the data forwarding module 540 is specifically used to: forward the data to be forwarded from the external data processing layer to the second entry information of the core data processing layer through a network request, so that the core data processing layer receives the data to be forwarded based on the second entry information.

[0153] Optionally, based on the above-mentioned device, the data processing device further includes: a request interception module, specifically used to intercept the data processing request based on the external data processing layer and report information indicating a request abnormality when the first entry information, the first message structure template, the second message structure template and / or the second entry information are not found.

[0154] Optionally, based on the above-described apparatus, the data processing apparatus may further include: an information allocation module and a mapping establishment module; wherein,

[0155] The information allocation module is used to allocate corresponding second entry information to multiple tenants;

[0156] The mapping establishment module is used to configure multiple first message structure templates for the external data processing layer and multiple second message structure templates for the core data processing layer, and to establish a message template mapping relationship between the multiple first message structure templates and the multiple second message structure templates, so as to determine the second message structure template based on the message template mapping relationship and the template identifier of the determined first message structure template.

[0157] Based on the above-described device, optionally, the data processing device further includes: an external configuration module and a core configuration module; wherein,

[0158] The external configuration module is used to configure a first lookup mapping relationship between the first entry information and multiple first message structure templates for the external data processing layer, so as to determine the first message structure template based on the first lookup mapping relationship;

[0159] The core configuration module is used to configure a second lookup mapping relationship between the second entry information and multiple second message structure templates for the core data processing layer, so as to determine the second message structure template based on the second lookup mapping relationship.

[0160] Optionally, based on the above-mentioned device, the data processing device further includes: a port listening module, specifically used to set a listening port in the external data processing layer, so as to perform the step of determining the first Uniform Resource Locator and the target data when a data processing request is received based on the listening port.

[0161] The data processing apparatus provided in the embodiments of the present invention can execute the data processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.

[0162] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Figure 6 A block diagram is shown of an exemplary electronic device 50 suitable for implementing embodiments of the present invention. Figure 6 The electronic device 50 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present invention.

[0163] like Figure 6 As shown, the electronic device 50 is represented in the form of a general-purpose computing device. The components of the electronic device 50 may include, but are not limited to: one or more processors or processing units 501, system memory 502, and bus 503 connecting different system components (including system memory 502 and processing unit 501).

[0164] Bus 503 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. Examples of these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.

[0165] Electronic device 50 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by electronic device 50, including volatile and non-volatile media, removable and non-removable media.

[0166] System memory 502 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 504 and / or cache memory 505. Electronic device 50 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 506 may be used to read and write non-removable, non-volatile magnetic media (… Figure 6 Not shown; usually referred to as a "hard drive"). Although Figure 6 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 503 via one or more data media interfaces. Memory 502 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of the present invention.

[0167] A program / utility 508 having a set (at least one) of program modules 507 may be stored, for example, in memory 502. Such program modules 507 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. Program modules 507 typically perform the functions and / or methods described in the embodiments of the present invention.

[0168] Electronic device 50 can also communicate with one or more external devices 509 (e.g., keyboard, pointing device, display 510, etc.), and with one or more devices that enable a user to interact with the electronic device 50, and / or with any device that enables the electronic device 50 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed via input / output (I / O) interface 511. Furthermore, electronic device 50 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 512. As shown, network adapter 512 communicates with other modules of electronic device 50 via bus 503. It should be understood that, although... Figure 6 As not shown, other hardware and / or software modules may be used in conjunction with electronic device 50, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0169] The processing unit 501 executes various functional applications and data processing by running programs stored in the system memory 502, such as implementing the data processing method provided in the embodiments of the present invention.

[0170] This invention also provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform a data processing method, the method comprising:

[0171] Acquire at least one stream of data from the target messaging system, wherein the stream of data includes product base data of at least one product to be selected under at least one base field, and floating data under a floating field where the data can change.

[0172] For the streaming data, determine the target product corresponding to the streaming data, and read the target configuration rule corresponding to the target product from the configuration center;

[0173] Based on the objective function, the fields to be processed in the target configuration rules are read, and the target data content in the streaming data is obtained based on the fields to be processed.

[0174] Based on the target data content and the target configuration rules, the target processing result of the streaming data is determined.

[0175] The computer storage medium of this invention can be any combination of one or more computer-readable media. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0176] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.

[0177] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including—but not limited to—wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0178] Computer program code for performing the operations of embodiments of the present invention can be written in one or more programming languages ​​or a combination thereof. Programming languages ​​include object-oriented programming languages—such as Java, Smalltalk, and C++—as well as conventional procedural programming languages—such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0179] This invention also provides a computer program product, including a computer program that, when executed by a processor, implements the data processing method provided in any embodiment of this invention.

[0180] In implementing the computer program product, computer program code for performing the operations of this invention can be written in one or more programming languages ​​or a combination thereof. Programming languages ​​include object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0181] Note that the above description is merely a preferred embodiment of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, the scope of which is determined by the scope of the appended claims.

Claims

1. A data processing method, characterized by, The application comprises the following steps: Upon receiving a data processing request, obtaining a first uniform resource locator of the data processing request; According to the first uniform resource locator and first entry information corresponding to the data processing request, determining a first message structure template corresponding to the data processing request; According to the first message structure template, determining external data corresponding to the data processing request and a second message structure template, wherein the first message structure template and the second message structure template correspond to different data processing layers; According to a first mapping relationship established in advance, determining second entry information corresponding to the second message structure template, wherein the second entry information includes a core transaction IP, a port, and a second uniform resource locator, and the first mapping relationship is a mapping relationship between the second message structure template and the second entry information established based on the access demand of each tenant; According to the structure template mapping relationship established in advance, filling the external data into the second message structure template to obtain to-be-forwarded data, and sending the to-be-forwarded data to the second entry information corresponding to the second message structure template, so that a core data processing layer corresponding to the second message structure template determines target data corresponding to the to-be-forwarded data and feeds back the target data; The first entry information includes a local port and an IP address of the data processing request, and the first message structure template is determined according to the first uniform resource locator and the first entry information corresponding to the data processing request, which comprises the following steps: Obtaining the local port and the IP address of the data processing request; According to the local port, the IP address, and the first uniform resource locator, searching for the first message structure template from an external data processing layer; The first message structure template is a private data template that is adapted to the external data processing layer and different from the template structure and template content of the second message structure template of the core data processing layer; According to the template content of the first message structure template, analyzing the message body of the data processing request to obtain the external data; and According to a message template mapping relationship and a first message template identifier established in advance, determining a second message template identifier corresponding to the first message structure template, so as to call the second message structure template based on the second message template identifier; The message template mapping relationship includes a corresponding relationship between a plurality of first message template identifiers and a plurality of second message template identifiers. According to the structure template mapping relationship established in advance, filling the external data into the second message structure template to obtain to-be-forwarded data, which comprises the following steps:

2. The method of claim 1, wherein, According to a content mapping relationship between a plurality of first message template identifiers and a plurality of second message template identifiers in the structure template mapping relationship, determining a target filling mode corresponding to the first message structure template; ​ The external connection data is filled into the second message structure template according to the target filling mode, and the to-be-transmitted data is obtained.

3. The method of claim 1, wherein, The sending of the to-be-transmitted data to the second entry information corresponding to the second message structure template comprises: forwarding the to-be-transmitted data from the external connection data processing layer to the second entry information of the core data processing layer through a network request, so that the core data processing layer receives the to-be-transmitted data based on the second entry information.

4. The method according to any one of claims 1 to 3, characterized in that, The method further comprises: In the case where the first entry information, the first message structure template, the second message structure template and / or the second entry information are not found, the data processing request is intercepted based on the external connection data processing layer and information of request exception is fed back.

5. The method of claim 1, wherein, The method further comprises: The second entry information corresponding to each tenant is allocated. The external connection data processing layer is configured with a plurality of first message structure templates, the core data processing layer is configured with a plurality of second message structure templates, and a message template mapping relationship corresponding to the plurality of first message structure templates and the plurality of second message structure templates is established, so as to determine the second message structure template based on the message template mapping relationship and the template identifier of the determined first message structure template.

6. The method of claim 1, wherein, The method further comprises: The first entry information and the first lookup mapping relationship between the plurality of first message structure templates of the external connection data processing layer are configured, so as to determine the first message structure template based on the first lookup mapping relationship. The second entry information and the second lookup mapping relationship between the plurality of second message structure templates of the core data processing layer are configured, so as to determine the second message structure template based on the second lookup mapping relationship.

7. The method of claim 1, wherein, The method further comprises: A listening port is set in the external connection data processing layer, so as to execute the steps of determining the first uniform resource locator and the target data when a data processing request is received based on the listening port.

8. A data processing apparatus, characterized by, Comprise: A data request positioning module is configured to execute the step of acquiring the first uniform resource locator of the data processing request when the data processing request is received. A first template determination module is configured to execute the step of determining the first message structure template corresponding to the data processing request according to the first uniform resource locator and the first entry information corresponding to the data processing request. A second template determination module is configured to execute the step of determining the external connection data and the second message structure template corresponding to the data processing request according to the first message structure template, wherein the first message structure template and the second message structure template correspond to different data processing layers. An entry information determination module is configured to execute the step of determining the second entry information corresponding to the second message structure template according to a first mapping relationship, wherein the second entry information comprises a core transaction IP, a port and a second uniform resource locator, and the first mapping relationship is a mapping relationship between the second message structure template and the second entry information established based on the access demand of each tenant. The data forwarding module is configured to fill the external data into the second message structure template according to a pre-created structure template mapping relationship, to obtain to-be-forwarded data, and to send the to-be-forwarded data to second entry information corresponding to the second message structure template, so that a core data processing layer corresponding to the second message structure template determines target data corresponding to the to-be-forwarded data and feeds back the target data. The first entry information includes a local port and an IP address of the data processing request, and the first template determination module is configured to obtain the local port and the IP address of the data processing request, and to find the first message structure template from an external data processing layer according to the local port, the IP address, and the first uniform resource locator. The first message structure template is a private data template that is adapted to the external data processing layer and different from a second message structure template of the core data processing layer in template structure and template content. The second template determination module is configured to parse a message body of the data processing request according to template content of the first message structure template, to obtain the external data, and to determine second message template identifiers corresponding to the first message structure template according to a pre-created message template mapping relationship and the first message template identifier, to call the second message structure template based on the second message template identifiers. The message template mapping relationship includes a corresponding relationship between a plurality of first message template identifiers and a plurality of second message template identifiers.

9. The apparatus of claim 8, wherein, The apparatus further includes: The request interception module is configured to intercept the data processing request based on the external data processing layer and to feed back information of a request exception, if the first entry information, the first message structure template, the second message structure template, and / or the second entry information are not found.

10. A data processing electronic device, characterized in that, The computer program is stored in the memory and executable by the processor, and when the processor executes the computer program, the data processing method of any one of claims 1-7 is implemented.

11. A computer readable storage medium having stored thereon a computer program, characterized in that The program is executed by the processor to implement the data processing method of any one of claims 1-7.

12. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to implement the data processing method of any one of claims 1-7.

Citation Information

Patent Citations

  • Message conversion method and device, computer equipment and computer readable storage medium

    CN109617647A

  • Data mapping method and device, electronic equipment and storage medium

    CN117827943A

  • Message conversion method and device, gateway, medium and product

    CN118075352A