Data sharing method, device, equipment and storage medium based on association system
By determining and analyzing the data request type, parsing the associated system code and verifying the authorization, the problem of duplicate construction of associated system data is solved, efficient data sharing and secure transmission between multiple systems are achieved, and resource waste and maintenance costs are reduced.
Patent Information
- Application Number
- CN202111431077.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-29
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2041-11-29
AI Technical Summary
In the prior art, repeated construction of data in related systems leads to waste of resources and increased maintenance costs.
By receiving data requests, determining whether they are operation requests or transmission requests, parsing the associated systems and codes, calling the interface for data transmission, and storing the page address or message in the database after verification and authorization, the message middleware is used to improve data synchronization efficiency.
It realizes data sharing among multiple systems, reduces resource waste and maintenance costs, and improves data transmission security and synchronization efficiency.
Smart Images

Figure CN114138513B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a data sharing method, device, electronic device and computer-readable storage medium based on an association system. Background Art
[0002] Platform-type systems generally connect to many related systems. Take the order platform as an example. For example, the order platform of the Good Car Owner app has more than twenty related systems of different order types, such as auto insurance, roadside assistance, car services, etc. In a certain related system, there are many functional modules, such as ordering, payment, viewing details, evaluation, order cancellation, return and refund, etc. Under normal circumstances, all functional modules need to be built in each related system of the order platform. For example, the auto insurance system originally has built function modules such as ordering, payment, viewing details, evaluation, order cancellation, return and refund, etc., and the auto insurance related system part of the order platform has also built function modules such as ordering, payment, viewing details, evaluation, order cancellation, return and refund, etc. The data corresponding to the original function modules of the related system are actually the same as the data of the function modules of the corresponding related system on the platform system. This method has caused a lot of duplication and waste of resources. Summary of the Invention
[0003] The present invention provides a data sharing method, device and computer-readable storage medium based on an association system, the main purpose of which is to solve the problem of resource waste caused by repeated construction of association system data.
[0004] To achieve the above objectives, the present invention provides a data sharing method based on an association system, comprising:
[0005] receiving a data request, and determining whether the data request is an operation request or a transmission request;
[0006] If the data request is an operation request, parsing to obtain the associated system and operation code corresponding to the operation request;
[0007] Retrieving an interface of the associated system, and transmitting the operation code to the associated system through the interface;
[0008] Determine whether the associated system corresponding to the page address returned by the interface is authorized;
[0009] When the associated system has authorization, the page address is returned to the front-end page and the page address is identified using the operation request and the corresponding associated system information, and the page address is stored in a preset database;
[0010] If the data request is a transmission request, then parsing to obtain the associated system corresponding to the transmission request and receiving the message transmitted by the message middleware;
[0011] The message is identified using information of the associated system corresponding to the transmission request, and the message is stored in the database.
[0012] Optionally, determining whether the data request is an operation request or a transmission request includes:
[0013] Obtaining a message header of the data request;
[0014] A client extracting the message header;
[0015] Determining whether the client is a front-end user or a back-end associated system;
[0016] If the client is a front-end user, it is determined that the data request is an operation request.
[0017] If the client is a backend associated system, it is determined that the data request is a transmission request.
[0018] Optionally, before receiving the data request, the method further includes:
[0019] Write address codes according to the information of the associated system, and write operation codes according to the operation functions;
[0020] The address code and the operation code are stored in a trigger instruction of an operation page corresponding to the front end.
[0021] Optionally, the parsing to obtain the associated system and operation code corresponding to the operation request includes:
[0022] Extracting the data type field of the operation request;
[0023] Selecting a parser corresponding to the data type field to parse the operation request to obtain an address code and an operation code included in the operation request;
[0024] The operation code is used as an operation code, and information of the associated system corresponding to the address code is extracted.
[0025] Optionally, calling the interface of the associated system and transmitting the operation code to the associated system through the interface includes:
[0026] receiving an interface call request, and storing the operation code in an interface parameter of the interface call request;
[0027] Loading a business logic processing object for the interface parameters of the interface call request, and setting the associated system to the business logic processing object;
[0028] The interface parameters are passed into the business logic processing object.
[0029] Optionally, the step of determining whether the associated system corresponding to the page address returned by the interface is authorized includes:
[0030] Receive the request parameters returned by the interface and extract the verification signature in the request parameters;
[0031] Retrieving the verification signature according to a preset authorized signature list;
[0032] If the verification signature is retrieved from the authorization signature list, the information of the corresponding associated system is extracted from the authorization signature list according to the verification signature, and the page address is extracted from the request parameter to determine whether the associated system corresponding to the page address is authorized.
[0033] Optionally, returning the page address to the front-end page and identifying the page address using the operation request and corresponding associated system information includes:
[0034] Get the page of the page address, and jump the front page to the page of the page address;
[0035] The operation code and associated information of the operation request are set as the attribute identifier of the page address.
[0036] In order to solve the above problems, the present invention further provides a data sharing device based on an association system, the device comprising:
[0037] A data request determination module, configured to receive a data request and determine whether the data request is an operation request or a transmission request;
[0038] an operation request parsing module, configured to parse and obtain, when the data request is an operation request, an associated system and an operation code corresponding to the operation request;
[0039] a page address acquisition module, configured to call the interface of the associated system, transmit the operation code to the associated system through the interface, determine whether the associated system corresponding to the page address returned by the interface is authorized, and if the associated system is authorized, return the page address to the front-end page and identify the page address using the operation request and the corresponding associated system information, and store the page address in a preset database;
[0040] A transmission request parsing module, which, if the data request is a transmission request, parses the request to obtain the associated system corresponding to the transmission request and receives the message transmitted by the message middleware;
[0041] The message storage module is used to identify the message using the information of the associated system corresponding to the transmission request and store the message in the database.
[0042] In order to solve the above problem, the present invention further provides an electronic device, comprising:
[0043] at least one processor; and,
[0044] a memory communicatively connected to the at least one processor; wherein,
[0045] The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor to enable the at least one processor to perform the above-mentioned data sharing method based on the association system.
[0046] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in an electronic device to implement the above-mentioned data sharing method based on the association system.
[0047] The embodiment of the present invention performs corresponding data sharing operations by judging operation requests or transmission requests, thereby realizing two system sharing modes and realizing data transmission between multiple related systems; by verifying the authorization of the page address returned by the system, the security of data transmission between multiple systems is improved; by receiving third-party system synchronization data through the message middleware, the efficiency of data synchronization between related systems is improved; the present invention reduces the workload and complexity caused by the duplication of functional module data with multiple types of related systems when building a platform system, and also reuses the existing functional data of the related system to the greatest extent, reducing resource waste and subsequent maintenance costs. Therefore, the data sharing method, device, electronic device and computer-readable storage medium based on the related system proposed by the present invention can solve the problem of resource waste caused by the repeated construction of related system data. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 A flowchart of a data sharing method based on an association system provided by one embodiment of the present invention;
[0049] Figure 2 A schematic diagram of a process for determining a data request according to an embodiment of the present invention;
[0050] Figure 3 A schematic diagram of a process for parsing an operation request according to an embodiment of the present invention;
[0051] Figure 4A functional module diagram of a data sharing device based on an association system provided by one embodiment of the present invention;
[0052] Figure 5 A schematic structural diagram of an electronic device for implementing the data sharing method based on the association system provided in one embodiment of the present invention.
[0053] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION
[0054] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0055] The embodiment of the present application provides a data sharing method based on an association system. The execution subject of the data sharing method based on the association system includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the data sharing method based on the association system can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0056] Reference Figure 1 FIG. 1 is a flow chart of a data sharing method based on an association system according to an embodiment of the present invention. In this embodiment, the data sharing method based on an association system includes:
[0057] S1. Receive a data request and determine whether the data request is an operation request or a transmission request;
[0058] In an embodiment of the present invention, the data request may be a data request initiated by a front-end user operation or a data request issued by internal transmission of a back-end associated system, wherein the data request initiated by the front-end user operation is an operation request, and the data request issued by internal transmission of a back-end associated system is a transmission request.
[0059] In the embodiment of the present invention, the data request triggered by the front-end user operation will store different content depending on the actual request. After the front-end project is passed in and the front-end page is triggered, the cached data is successively passed in to the data processing center; the data request issued by the internal transmission of the back-end associated system is passed in through the back-end and successively passed in to the data processing center.
[0060] In the embodiment of the present invention, referring to Figure 2 As shown, the determining whether the data request is an operation request or a transmission request includes:
[0061] S11, obtaining the message header of the data request;
[0062] S12, extracting the client of the message header;
[0063] S13, determining whether the client is a front-end user or a back-end associated system;
[0064] If the client is a front-end user, then S14 is executed to determine whether the data request is an operation request.
[0065] If the client is a backend associated system, step S15 is executed to determine whether the data request is a transmission request.
[0066] In an embodiment of the present invention, the data request is composed of a request header and a request header, wherein the request header further includes a request line, an entity header and a header end flag. The entity header indicates a lot of request information, such as: Referer, which is used to identify where the client comes from, so that the data request can be executed after transmission and achieve the corresponding purpose.
[0067] In an embodiment of the present invention, before receiving the data request, the method further includes:
[0068] Write address codes according to the information of the associated system, and write operation codes according to the operation functions;
[0069] The address code and the operation code are stored in a trigger instruction of an operation page corresponding to the front end.
[0070] For example, in an H5 page, there is an operation button for viewing details. When the user clicks this operation button, an operation request is triggered. The instruction includes an address code and an operation code, which can be parsed by a data processing center.
[0071] S2. If the data request is an operation request, parse to obtain the associated system and operation code corresponding to the operation request;
[0072] In an embodiment of the present invention, the operation request is generated by a front-end user triggering a corresponding code, and the corresponding code and the triggering of the corresponding code to execute the data sending request are pre-written by the program assembler; the associated system refers to a system that can realize data transmission and call, and the associated system can transmit data through an external transmission network interface, or through an internal transmission network through a message middleware when transmitting data.
[0073] In the embodiment of the present invention, referring to Figure 3 As shown, the parsing obtains the associated system and operation code corresponding to the operation request, including:
[0074] S21, extracting the data type field of the operation request;
[0075] S22. Select a parser corresponding to the data type field to parse the operation request to obtain an address code and an operation code included in the operation request;
[0076] S23: Use the operation code as an operation code, and extract information of the associated system corresponding to the address code.
[0077] Specifically, the data type field is used to identify the type of data in the operation request. A pre-built regular expression can be used to extract the data type field of the device wake-up packet. The regular expression is a pre-compiled function that can recall data in a fixed format. Both the operation code and the address code are stored in the operation request.
[0078] In the embodiment of the present invention, the parser can evaluate the syntax of the script when executing it on the server, which includes but is not limited to C language and Java.
[0079] S3. Calling the interface of the associated system, and transmitting the operation code to the associated system through the interface;
[0080] In the embodiment of the present invention, the step of calling the interface of the associated system and transmitting the operation code to the associated system through the interface includes:
[0081] receiving an interface call request, and storing the operation code in an interface parameter of the interface call request;
[0082] Loading a business logic processing object for the interface parameters of the interface call request, and setting the associated system to the business logic processing object;
[0083] The interface parameters are passed into the business logic processing object.
[0084] In an embodiment of the present invention, business logic processing objects for different interfaces are encapsulated in an external object encapsulation module. After the interface parameters in the interface call request are received, the corresponding business logic processing object is retrieved from the external object encapsulation module and loaded into the designated process. Different programming languages employ different loading methods for business logic processing objects. For example, Java and C# can load business logic processing objects through reflection, while C / C++ can load business logic processing objects through the dynamic link library loading mechanism provided by the operating system.
[0085] Specifically, the following Java implementation example illustrates this: First, a class path must be pre-set for each business logic processing object encapsulated in the external object encapsulation module. This allows the class path of the corresponding business logic processing object to be retrieved after the interface parameters in the interface call request are passed. Java's reflection mechanism then loads the corresponding business logic processing object based on the retrieved class path, and generates a business processing entry point in the corresponding process that implements the business logic processing object according to the agreed specifications. For example, in Java, a business processing entry point is implemented using interface (a keyword for interface operations in object-oriented programming languages).
[0086] S4. Determine whether the associated system corresponding to the page address returned by the interface is authorized;
[0087] In an embodiment of the present invention, determining whether the associated system corresponding to the page address returned by the interface is authorized includes:
[0088] Receive the request parameters returned by the interface and extract the verification signature in the request parameters;
[0089] Retrieving the verification signature according to a preset authorized signature list;
[0090] If the verification signature is retrieved from the authorization signature list, the information of the corresponding associated system is extracted from the authorization signature list according to the verification signature, and the page address is extracted from the request parameter to determine whether the associated system corresponding to the page address is authorized.
[0091] In an embodiment of the present invention, when receiving information returned by an interface, it is not possible to directly determine whether the associated system corresponding to the information is authorized. If different interfaces are set for different associated systems to transmit information, the operation of the system will be very cumbersome, and when associated systems are added later, the corresponding interfaces must be re-established. Therefore, by verifying the information received from the interface, the security of the received information can be guaranteed.
[0092] When the associated system is authorized, executing S5, intercepting the page address;
[0093] When the associated system has authorization, execute S6, return the page address to the front-end page, identify the page address using the operation request and the corresponding associated system information, and store the page address in a preset database;
[0094] In an embodiment of the present invention, when the associated system is authorized, the received page address can be sent to the front end for display, that is, after the user triggers the operation request, the page represented by the function operated by the instruction; in order to facilitate the subsequent front end to trigger the same instruction for easy viewing, the received page address can be stored in the database. After the instruction is triggered again in the future, it is first called from the database and displayed on the front end, and then updated after receiving the new page address sent by the associated system.
[0095] In the embodiment of the present invention, the information of the associated system may be the name of the associated system, the corresponding number, etc.
[0096] In the embodiment of the present invention, returning the page address to the front-end page and identifying the page address using the operation request and the corresponding associated system information includes:
[0097] Get the page of the page address, and jump the front page to the page of the page address;
[0098] The operation code and associated information of the operation request are set as the attribute identifier of the page address.
[0099] In an embodiment of the present invention, storing the page address in a preset database includes:
[0100] Obtaining a data transmission request header of the database;
[0101] Adding an extension field to the data transmission request header;
[0102] sending a data transmission request to the database using a data transmission request header with the extension field added;
[0103] receiving a data transmission status returned by the database based on the data transmission request;
[0104] Determining whether the data transmission status is a transmittable state;
[0105] When the data transmission status is a non-transferable state, returning to the step of receiving the data transmission status returned by the database based on the data transmission request;
[0106] When the data transmission state is a transmittable state, the page address is stored in the database.
[0107] In detail, the extended field includes the data transmission status field of the database; the data transmission status field of the target device memory is diff-tag, and its value can be represented by a Boolean value False or True, where True indicates that the data transmission status is a transmittable state, and False indicates that the data transmission status is a non-transferable state.
[0108] When the database receives the data transmission request in the data transmission request header, it determines the current data transmission status. If the data transmission status is a non-transferable state, the data transmission status field diff-tag in the extended field is assigned a value of False. If the data transmission status is a transmittable state, the data transmission status field diff-tag in the extended field is assigned a value of True. After the data transmission status field diff-tag in the extended field is assigned a value, the data transmission status field diff-tag in the extended field is returned.
[0109] In the embodiment of the present invention, by storing the received page address, it is convenient for subsequent retrieval and timely display, which reduces the time for page jump and update and improves the operation experience.
[0110] S7. If the data request is a transmission request, parse to obtain the associated system corresponding to the transmission request and receive a message transmitted by a message middleware;
[0111] In an embodiment of the present invention, a message pushed from an associated system through an internal transmission network is received by a message middleware, and the message includes updated data, such as logistics information. The logistics information operation button can be triggered according to the front end to receive the updated logistics information of the associated system, or after the logistics information of the associated system is updated, the database storage update is actively transmitted. When the logistics information operation button is triggered again on the front end, the updated page address can be first retrieved from the database for front-end display.
[0112] In the embodiment of the present invention, the message transmitted by the message middleware includes a new page address, a corresponding operation code, and the like.
[0113] In the embodiment of the present invention, the steps of parsing to obtain the associated system corresponding to the transmission request and receiving the message transmitted by the message middleware are similar to the steps of parsing to obtain the associated system corresponding to the operation request and the operation code in the above step S2, and are not repeated here.
[0114] In the embodiment of the present invention, the information actively pushed by the associated system through the message middleware is transmitted through the internal transmission network, which reduces the process of verifying the information, and transmits the information through the message middleware, thereby improving the transmission efficiency.
[0115] S8. Identify the message using the information of the associated system corresponding to the transmission request, and store the message in the database.
[0116] In an embodiment of the present invention, the step of identifying the message by using the information of the associated system corresponding to the transmission request and storing the message in the database is similar to the step of identifying the page address by using the information of the associated system corresponding to the operation request and storing the page address in a preset database in the above-mentioned step S5, and will not be elaborated here.
[0117] The embodiment of the present invention performs corresponding data sharing operations by judging operation requests or transmission requests, thereby realizing two system sharing modes and realizing data transmission between multiple related systems; by verifying the authorization of the page address returned by the system, the security of data transmission between multiple systems is improved; by receiving third-party system synchronization data through the message middleware, the synchronization efficiency of data between related systems is improved; the present invention reduces the workload and complexity caused by the duplication of functional module data with multiple types of related systems when building a platform system, and also reuses the existing functional data of the related system to the greatest extent, reducing resource waste and subsequent maintenance costs. Therefore, the data sharing method based on the related system proposed by the present invention can solve the problem of resource waste caused by the repeated construction of related system data.
[0118] like Figure 4 FIG. 1 is a functional module diagram of a data sharing device based on an association system provided by an embodiment of the present invention.
[0119] The data sharing device 100 based on the association system described in the present invention can be installed in an electronic device. Depending on the functionality implemented, the data sharing device 100 based on the association system can include a data request determination module 101, an operation request parsing module 102, a page address acquisition module 103, a transmission request parsing module 104, and a message storage module 105. A module, also referred to as a unit, is a series of computer program segments that can be executed by an electronic device processor and perform a fixed function, and is stored in the electronic device's memory.
[0120] In this embodiment, the functions of each module / unit are as follows:
[0121] The data request determination module 101 is configured to receive a data request and determine whether the data request is an operation request or a transmission request;
[0122] The operation request parsing module 102 is configured to parse and obtain the associated system and operation code corresponding to the operation request when the data request is an operation request;
[0123] The page address acquisition module 103 is used to call the interface of the associated system and transmit the operation code to the associated system through the interface; determine whether the associated system corresponding to the page address returned by the interface is authorized; if the associated system is authorized, return the page address to the front-end page and identify the page address using the operation request and the corresponding associated system information, and store the page address in a preset database;
[0124] The transmission request parsing module 104 parses the data request to obtain the associated system corresponding to the transmission request and receives the message transmitted by the message middleware if the data request is a transmission request;
[0125] The message storage module 105 is configured to identify the message using the information of the associated system corresponding to the transmission request and store the message in the database.
[0126] In detail, each module in the data sharing device 100 based on the association system in the embodiment of the present invention adopts the same Figures 1 to 3 The technical means are the same as the data sharing method based on the association system described in , and can produce the same technical effects, so they will not be repeated here.
[0127] like Figure 5 FIG. 1 is a schematic diagram of the structure of an electronic device for implementing a data sharing method based on an association system provided by an embodiment of the present invention.
[0128] The electronic device 1 may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13. It may also include a computer program stored in the memory 11 and executable on the processor 10, such as a data sharing program based on an association system.
[0129] In some embodiments, the processor 10 may be composed of an integrated circuit, such as a single packaged integrated circuit or a plurality of packaged integrated circuits with the same or different functions, including a combination of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips. The processor 10 is the control core (Control Unit) of the electronic device, connecting various components of the entire electronic device using various interfaces and circuits. It executes or runs programs or modules stored in the memory 11 (such as executing data sharing programs based on an associated system) and calls data stored in the memory 11 to perform various functions of the electronic device and process data.
[0130] The memory 11 includes at least one type of readable storage medium, including flash memory, a mobile hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of the electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 may also be an external storage device of the electronic device, such as a plug-in mobile hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device. Furthermore, the memory 11 may include both an internal storage unit of the electronic device and an external storage device. The memory 11 can be used not only to store application software installed in the electronic device and various types of data, such as the code of a data sharing program based on an associated system, but also to temporarily store data that has been output or is about to be output.
[0131] The communication bus 12 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. This bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to enable communication between the memory 11 and at least one processor 10, etc.
[0132] The communication interface 13 is used for communication between the above-mentioned electronic device and other devices, and includes a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.
[0133] Figure 5 Only the electronic device with components is shown, and it can be understood by those skilled in the art that Figure 5 The structure shown does not constitute a limitation on the electronic device 1 , and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0134] For example, although not shown, the electronic device may further include a power source (e.g., a battery) to power various components. Preferably, the power source may be logically connected to the at least one processor 10 via a power management device, thereby enabling functions such as charge management, discharge management, and power consumption management via the power management device. The power source may further include any of one or more DC or AC power sources, a recharging device, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like. The electronic device may also include various sensors, Bluetooth modules, Wi-Fi modules, and the like, which are not further detailed here.
[0135] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0136] The data sharing program based on the association system stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve the following:
[0137] receiving a data request, and determining whether the data request is an operation request or a transmission request;
[0138] If the data request is an operation request, parsing to obtain the associated system and operation code corresponding to the operation request;
[0139] Retrieving an interface of the associated system, and transmitting the operation code to the associated system through the interface;
[0140] Determine whether the associated system corresponding to the page address returned by the interface is authorized;
[0141] When the associated system has authorization, the page address is returned to the front-end page and the page address is identified using the operation request and the corresponding associated system information, and the page address is stored in a preset database;
[0142] If the data request is a transmission request, then parsing to obtain the associated system corresponding to the transmission request and receiving the message transmitted by the message middleware;
[0143] The message is identified using information of the associated system corresponding to the transmission request, and the message is stored in the database.
[0144] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to the description of the relevant steps in the corresponding embodiment of the drawings, which will not be repeated here.
[0145] Furthermore, if the modules / units integrated into the electronic device 1 are implemented as software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. The computer-readable storage medium may be volatile or non-volatile. For example, the computer-readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard drive, a magnetic disk, an optical disk, a computer memory, or a read-only memory (ROM).
[0146] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a processor of an electronic device, the computer program can implement:
[0147] receiving a data request, and determining whether the data request is an operation request or a transmission request;
[0148] If the data request is an operation request, parsing to obtain the associated system and operation code corresponding to the operation request;
[0149] Retrieving an interface of the associated system, and transmitting the operation code to the associated system through the interface;
[0150] Determine whether the associated system corresponding to the page address returned by the interface is authorized;
[0151] When the associated system has authorization, the page address is returned to the front-end page and the page address is identified using the operation request and the corresponding associated system information, and the page address is stored in a preset database;
[0152] If the data request is a transmission request, then parsing to obtain the associated system corresponding to the transmission request and receiving the message transmitted by the message middleware;
[0153] The message is identified using information of the associated system corresponding to the transmission request, and the message is stored in the database.
[0154] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the module division is merely a logical function division, and other division methods may be used in actual implementation.
[0155] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed across multiple network elements. Some or all of the modules may be selected to achieve the purpose of the solution of this embodiment according to actual needs.
[0156] In addition, the functional modules in various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or hardware plus software functional modules.
[0157] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0158] Therefore, the embodiments should be considered in all respects as illustrative and non-restrictive, and the scope of the invention is defined by the appended claims rather than the foregoing description, and all changes that come within the meaning and range of equivalents of the claims are intended to be embraced therein. Any reference to a figure in a claim should not be construed as limiting the claim to which it relates.
[0159] Blockchain, as used in this article, refers to a novel application model for computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Blockchain is essentially a decentralized database, a series of data blocks generated using cryptographic methods. Each block contains information about a batch of online transactions, used to verify the validity of this information (to prevent counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, the platform product service layer, and the application service layer.
[0160] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) refers to the theories, methods, techniques, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to achieve optimal results.
[0161] Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices recited in a system claim may also be implemented by a single unit or device through software or hardware. Terms such as "first" and "second" are used to indicate names and do not imply any particular order.
[0162] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not limiting. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention.
Claims
1. A data sharing method based on an association system, characterized in that: The method comprises: receiving a data request, obtaining a message header of the data request, extracting a client from the message header, and determining whether the data request is an operation request or a transmission request by determining whether the client is a front-end user or a back-end associated system; If the client is a front-end user, determining that the data request is an operation request, parsing to obtain the associated system and operation code corresponding to the operation request; Retrieving an interface of the associated system, and transmitting the operation code to the associated system through the interface; Determine whether the associated system corresponding to the page address returned by the interface is authorized; When the associated system has authorization, the page address is returned to the front-end page and the page address is identified using the operation request and the corresponding associated system information, and the page address is stored in a preset database; If the client is a backend associated system, it is determined that the data request is a transmission request, the associated system corresponding to the transmission request is obtained by parsing and receiving the message transmitted by the message middleware; The message is identified using information of the associated system corresponding to the transmission request, and the message is stored in the database.
2. The data sharing method based on the association system according to claim 1, characterized in that: Before receiving the data request, the method further includes: Write address codes according to the information of the associated system, and write operation codes according to the operation functions; The address code and the operation code are stored in a trigger instruction of an operation page corresponding to the front end.
3. The data sharing method based on the association system according to claim 2, characterized in that: The parsing obtains the associated system and operation code corresponding to the operation request, including: Extracting the data type field of the operation request; Selecting a parser corresponding to the data type field to parse the operation request to obtain an address code and an operation code included in the operation request; The operation code is used as an operation code, and information of the associated system corresponding to the address code is extracted.
4. The data sharing method based on the association system according to claim 1, characterized in that: The calling of the interface of the associated system and transmitting the operation code to the associated system through the interface includes: receiving an interface call request, and storing the operation code in an interface parameter of the interface call request; Loading a business logic processing object for the interface parameters of the interface call request, and setting the associated system to the business logic processing object; The interface parameters are passed into the business logic processing object.
5. The data sharing method based on the association system according to claim 1, characterized in that: Determining whether the associated system corresponding to the page address returned by the interface is authorized includes: Receive the request parameters returned by the interface and extract the verification signature in the request parameters; Retrieving the verification signature according to a preset authorized signature list; If the verification signature is retrieved from the authorization signature list, the information of the corresponding associated system is extracted from the authorization signature list according to the verification signature, and the page address is extracted from the request parameter to determine whether the associated system corresponding to the page address is authorized.
6. The data sharing method based on the association system according to claim 1, characterized in that: The step of returning the page address to the front-end page and identifying the page address using the operation request and the corresponding associated system information includes: Get the page of the page address, and jump the front page to the page of the page address; The operation code and associated information of the operation request are set as the attribute identifier of the page address.
7. A data sharing device based on an association system, characterized in that: The device comprises: a data request determination module, configured to receive a data request, obtain a message header of the data request, extract a client from the message header, and determine whether the data request is an operation request or a transmission request by determining whether the client is a front-end user or a back-end associated system; an operation request parsing module, configured to, when determining that the data request is an operation request based on the client being a front-end user, parse and obtain the associated system and operation code corresponding to the operation request; a page address acquisition module, configured to call the interface of the associated system, transmit the operation code to the associated system through the interface, determine whether the associated system corresponding to the page address returned by the interface is authorized, and if the associated system is authorized, return the page address to the front-end page and identify the page address using the operation request and the corresponding associated system information, and store the page address in a preset database; A transmission request parsing module, configured to, when determining that the data request is a transmission request based on the fact that the client is a backend associated system, parse and obtain the associated system corresponding to the transmission request and receive a message transmitted by a message middleware; The message storage module is used to identify the message using the information of the associated system corresponding to the transmission request and store the message in the database.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to perform the data sharing method based on the association system according to any one of claims 1 to 6.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the data sharing method based on the association system according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Enhanced data management virtualization system
CN104769555A
Medical examination data sharing method and medical examination data sharing system
CN111063426A