A business interaction system, method, electronic device and storage medium
By introducing message decoder and multiple instruction parsers in the service interaction system, the problem of high coupling of instruction message encoding and decoding processing in the prior art is solved, the analysis efficiency and code maintainability are improved, and more efficient is achieved message processing.
Patent Information
- Application Number
- CN202211116931.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-14
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2042-09-14
AI Technical Summary
In the prior art, the codec processing of instruction messages is completed by a general instruction parser, resulting in high code coupling, low parsing efficiency and inconvenient maintenance.
By introducing a message decoder and multiple instruction parsers into the service interaction system, the message decoder determines the corresponding target parser for decoding based on the instruction identification, distributes the parsing logic, and improves development efficiency and maintainability of the code.
It realizes more efficient packet analysis and processing, reduces code coupling, and improves the maintainability and scalability of the system.
Smart Images

Figure CN115499523B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data transmission and processing, and in particular to a business interaction system, method, electronic device and storage medium. Background Art
[0002] In the existing technology, during the transmission of instruction messages, only one instruction parser is used to encode and decode the message. All instruction messages share one instruction parser. When an instruction message is received, it is necessary to traverse and match the parsing steps corresponding to the instruction message, and use the determined parsing steps to parse the instruction message. All parsing logic is aggregated in the same instruction parser, which greatly increases the coupling of the code, reduces the efficiency of message parsing, and is not convenient for later maintenance. Summary of the Invention
[0003] In view of this, the purpose of this application is to provide at least a business interaction system method, electronic device and storage medium, which abstracts the various components and collaborates with each other to complete the encoding and decoding work, thereby improving development efficiency and facilitating code maintainability.
[0004] This application mainly includes the following aspects:
[0005] In the first aspect, an embodiment of the present application provides a business interaction system, which includes a business sending end and a business receiving end, and the business receiving end includes a message decoder and multiple first instruction parsers, wherein the business sending end generates a message stream according to the business processing instruction; the message decoder parses the message stream received from the business sending end to obtain the instruction identifier and business content; the message decoder determines the first target instruction parser that matches the business content from the multiple first instruction parsers according to the instruction identifier; the first target instruction parser decodes the business content through an internal preset decoding method to obtain the business processing instruction.
[0006] In one possible implementation, the service receiving end further includes a frame breaker, wherein the frame breaker performs frame breaking processing on the message stream received from the service sending end to obtain multiple complete frame data; the message decoder parses each complete frame data, determines the instruction identifier and service content corresponding to each complete frame data, and determines the first target instruction parser that matches the service content of each complete frame data.
[0007] In one possible embodiment, the message decoder determines the instruction identifier and service content corresponding to each complete frame data in the following manner: the complete frame data is parsed according to the parsing method indicated by the corresponding preset communication protocol between the service sending end and the service receiving end, and the instruction identifier and service content corresponding to the complete frame data are identified.
[0008] In one possible implementation, the business sending end includes a display, an instruction collector, a message encoder, and multiple second instruction parsers, wherein the display displays a business processing page, and the business processing page includes a business processing instruction configuration item; the instruction collector generates a business processing instruction based on the input executed for the business processing instruction configuration item on the business processing page, and determines the instruction identifier corresponding to the business processing instruction; the message encoder obtains the business processing instruction and the instruction identifier; the message encoder determines a second target instruction parser that matches the business processing instruction from multiple second instruction parsers based on the instruction identifier; the second target instruction parser encodes the business processing instruction through an internal preset decoding method to obtain the business content formed after the business processing instruction is encoded; the message encoder obtains the preset communication protocol between the business sending end and the business receiving end, and encapsulates the business content and instruction identifier into a message stream under the preset communication protocol.
[0009] In one possible embodiment, the business processing page also includes an instruction receiving object configuration item associated with the business processing instruction configuration item, wherein the message encoder obtains the preset communication protocol in the following manner: generating an instruction receiving object based on the input executed for the instruction receiving object configuration item on the business processing page; determining, based on the instruction receiving object, a target communication channel for communicating with the instruction receiving object from multiple communication channels established with the business sending end; and obtaining the preset communication protocol indicated by the target communication channel.
[0010] In a possible implementation, the service sending end further includes a channel manager, wherein the channel manager obtains an instruction receiving object and receives a message stream from a second target instruction parser; the channel manager determines a target communication channel from a plurality of communication channels based on the instruction receiving object associated with the service processing instruction; and the channel manager sends the message stream to the service receiving end indicated by the instruction receiving object through the target communication channel.
[0011] In a possible implementation, the service receiving end further includes multiple instruction executors, and the second target instruction parser sends the service processing instruction to the target instruction executor among the multiple instruction executors; the target instruction executor performs corresponding operation processing on the received service processing instruction.
[0012] On the second aspect, an embodiment of the present application also provides a business interaction method, which is applied to a business interaction system, wherein the business interaction system includes a business sending end and a business receiving end, and the business receiving end includes a message decoder and multiple first instruction parsers, wherein the business sending end generates a message stream according to the business processing instructions; the message decoder parses the message stream received from the business sending end to obtain the instruction identifier and business content; the message decoder determines the first target instruction parser that matches the business content from multiple first instruction parsers according to the instruction identifier; the first target instruction parser decodes the business content through an internal preset decoding method to obtain business processing instructions for the target service.
[0013] In a third aspect, an embodiment of the present application further provides an electronic device comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to execute the steps of the above-mentioned business interaction method.
[0014] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run by a processor, the steps of the business interaction method as described above are executed.
[0015] The business interaction system, method, electronic device and storage medium provided by the embodiments of the present application, the business interaction system includes a business sending end and a business receiving end, the business receiving end includes a message decoder and multiple first instruction parsers, wherein the business sending end generates a message stream according to the business processing instruction; the message decoder parses the message stream received from the business sending end to obtain the instruction identifier and business content; the message decoder determines the first target instruction parser that matches the business content from multiple first instruction parsers according to the instruction identifier; the first target instruction parser decodes the business content through an internal preset decoding method to obtain the business processing instruction. This application improves development efficiency while facilitating code maintainability by abstracting the various components to collaborate with each other to complete the encoding and decoding work.
[0016] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 A schematic diagram of a business interaction provided by an embodiment of the present application is shown Figure 1 ;
[0019] Figure 2 A schematic diagram of a business interaction provided by an embodiment of the present application is shown Figure 2 ;
[0020] Figure 3 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of illustration and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowcharts can be implemented out of sequence, and steps without logical context can be reversed or implemented simultaneously. In addition, those skilled in the art, under the guidance of the contents of this application, can add one or more other operations to the flowchart, or remove one or more operations from the flowchart.
[0022] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.
[0023] In order to facilitate network transmission, the messages sent by general terminal devices are usually binary stream messages that are difficult to understand. This requires converting them into easy-to-understand instruction messages that can be recognized by the business processing service on the receiving end at the receiving end, and then performing corresponding processing. The existing message sending and receiving process is encoded and decoded by a general instruction parser. All instruction messages share one instruction parser. When an instruction message is received, it is necessary to traverse and match the parsing steps corresponding to the instruction for parsing. It can be seen that the traditional encoding and decoding method is full of a large number of binary code conversions and corresponding decoding operations, which is not conducive to development and maintenance, and the code coupling is high and the scalability is poor.
[0024] Based on this, the embodiments of the present application provide a service interaction system, method, electronic device, and storage medium. By abstracting the various components and collaborating with each other to complete the encoding and decoding work, development efficiency is improved while facilitating code maintainability. The details are as follows:
[0025] See also Figure 1 , Figure 1 A schematic diagram of a business interaction provided by an embodiment of the present application is shown Figure 1 .like Figure 1 As shown, the service interaction system includes a service sending end 10 and a service receiving end 20 . The service receiving end 20 includes a message decoder 21 and a plurality of first instruction parsers 22 .
[0026] The business interaction system completes the transmission and processing of business processing instructions through the following process:
[0027] S100: The service sending end generates a message flow according to the service processing instruction.
[0028] In a preferred embodiment, see Figure 2 , Figure 2 A schematic diagram of a business interaction provided by an embodiment of the present application is shown Figure 2 .like Figure 3 As shown, the service sending end 10 includes a display (not shown in the figure), an instruction collector 11, a message encoder 12, and multiple second instruction parsers (not shown in the figure), wherein the display displays the service processing page, and the service processing page includes service processing instruction configuration items.
[0029] like Figure 2 As shown, the service sending end 10 generates a message flow corresponding to the service processing instruction in the following manner:
[0030] S101: The instruction collector generates a business processing instruction according to input executed on a business processing instruction configuration item on a business processing page, and determines an instruction identifier corresponding to the business processing instruction.
[0031] In a specific embodiment, the user can configure the business processing instruction configuration items on the business processing page provided by the display according to actual needs, thereby generating business processing instructions corresponding to the actual needs. In addition, the instruction collector 11 can also be connected to different application services. The instruction collector 11 can automatically intercept the business processing instructions issued by each application service. The instruction collector 11 also pre-defines multiple different business processing instructions and instruction identifiers corresponding to each business processing instruction. After obtaining the business processing instruction, the unique instruction identifier corresponding to the business processing instruction can be determined. The instruction collector 11 sends the business processing instruction and the instruction identifier to the message encoder 12.
[0032] S102: The message encoder obtains a service processing instruction and an instruction identifier.
[0033] S103: The message encoder determines, according to the instruction identifier, a second target instruction parser that matches the service processing instruction from a plurality of second instruction parsers.
[0034] In a specific embodiment, each business processing instruction corresponds to a second instruction parser for encoding and processing the business processing instruction. That is, the message encoder 12 is provided with a mapping relationship between multiple business processing instructions and multiple second instruction parsers. After determining the business processing instruction received from the display or the target application service, the legal person second target instruction parser corresponding to the business processing instruction can be determined.
[0035] S104: The second target instruction parser encodes the business processing instruction using an internal preset encoding method to obtain business content formed by encoding the business processing instruction.
[0036] S105 , the message encoder obtains a preset communication protocol between the service sending end and the service receiving end, and encapsulates the service content and the instruction identifier into a message stream under the preset communication protocol.
[0037] In a specific embodiment, after the second target instruction parser encodes the business processing instruction to form the business content, the business content and the corresponding instruction identifier must be further encapsulated and processed according to the preset communication protocol between the business sending end and the business receiving end, so that the encapsulated message flow can be further applied to the preset communication protocol, so that the message flow can be sent down to the corresponding business receiving end.
[0038] In a specific embodiment, the business processing page further includes an instruction receiving object configuration item associated with the business processing instruction configuration item.
[0039] The message encoder obtains the preset communication protocol in the following ways:
[0040] The instruction receiving object is generated based on the input executed for the instruction receiving object configuration item on the business processing page. On the other hand, if the business processing instruction is issued by the target application service, the target application service will also issue the instruction receiving object associated with the business processing instruction at the same time as issuing the business processing instruction.
[0041] According to the instruction receiving object, a target communication channel for communicating with the instruction receiving object is determined from multiple communication channels established with the service sending end, and a preset communication protocol indicated by the target communication channel is obtained.
[0042] Since the business receiving ends connected to the business sending ends are different, the preset communication protocols supported by each communication channel are also different. Therefore, it is necessary to clarify the instruction receiving object indicated by the business processing instruction, that is, to clarify the business receiving end corresponding to the business processing instruction. The target communication channel and the corresponding preset communication protocol can be determined through the instruction receiving object.
[0043] In a preferred embodiment, if Figure 2 As shown, the service sending end 10 further includes a channel manager 13. After obtaining the message flow, the service sending end 10 further includes:
[0044] S106: The channel manager obtains the instruction receiving object and receives a message stream from the second target instruction parser.
[0045] S107 : The channel manager determines a target communication channel from multiple communication channels according to the instruction receiving object associated with the business processing instruction.
[0046] In a specific embodiment, a channel identifier may be determined according to the instruction receiving object, and a target communication channel may be determined according to the channel identifier.
[0047] S108. The channel manager sends the message stream to the service receiving end indicated by the instruction receiving object through the target communication channel.
[0048] In a specific embodiment, when different service receiving ends 20 are connected to the service sending end 10, the different channels established between the service sending end 10 and each service receiving end 20 and the channel information corresponding to each communication channel will be cached in the channel manager 15 for maintenance and management, so that when it is necessary to send a service processing instruction to the service sending end, the service processing instruction can be sent to the corresponding service sending end 10 through the corresponding communication channel through the channel manager 15. 3. The channel manager 15 centrally manages the communication channels between the service sending end and different service receiving ends. Therefore, the service sending end can find any service receiving end connected to it through the channel manager 15 for active communication.
[0049] return Figure 1 , S110, the message decoder parses the message stream received from the service sending end to obtain the instruction identifier and service content.
[0050] In a specific embodiment, the service receiving end 20 further includes a frame breaker (not shown in the figure).
[0051] Among them, before the message decoder 21 parses the message stream received from the service sending end, the frame breaker performs frame breaking processing on the message stream received from the service sending end 10 to obtain multiple complete frame data. The message decoder 21 parses each complete frame data, determines the instruction identifier and service content corresponding to each complete frame data, and determines the first target instruction parser that matches the service content of each complete frame data.
[0052] Specifically, since the message stream is transmitted in the form of a binary byte stream, multiple business processing instructions may form a string of unseparated binary byte streams, so it is necessary to identify the complete frames of the received message stream, so as to identify the unseparated binary byte streams as complete frames. After identifying the complete frames, they are truncated and stored in an array of byte length indicated by the complete frame, and then handed over to the message decoder 21 for processing.
[0053] S120: The message decoder determines a first target instruction parser that matches the service content from a plurality of first instruction parsers according to the instruction identifier.
[0054] In a specific embodiment, the message decoder determines the instruction identifier and service content corresponding to each complete frame of data in the following manner:
[0055] The complete frame data is parsed according to the parsing method indicated by the corresponding preset communication protocol between the service sending end and the service receiving end, and the instruction identifier and service content corresponding to the complete frame data are identified.
[0056] Specifically, the instruction identifier, business content and information length corresponding to the message flow are identified through the binary bit meaning defined by the preset communication protocol. Each business content will correspond to a first instruction parser, and the first target instruction parser that matches the business content can be determined through the parsed instruction identifier.
[0057] S130: The first target instruction parser decodes the service content using an internal preset decoding method to obtain a service processing instruction.
[0058] In a specific embodiment, for example, the first instruction parser is a login instruction parser, and the service processing instruction is a login instruction. Then, the service content binary byte stream corresponding to the login instruction is parsed as follows:
[0059] 68 01 00 00 00 1D 12 19 03 18 00 00 00 04 02 09 00 00 00 00 00 00 0001 00 01 02 00 00 00 00 00 00 00 00 4A B7
[0060] The business processing instructions parsed by the login instruction parser are:
[0061] {"beginFlag":104,"code":1,"sequenceId":1,"bodyLength":29,"deviceNo":"1219031800000004","chargeType":2,"interfaceCount":9,"operatorId":0," pwd":"000000","softwareVersion":"1.0","protocolVersion":"1.2","priceRuleId":0,"priceRuleVersion":0,"checksum":5105,"checksumExpect":5105}
[0062] Among them, each value in the binary byte stream is hexadecimal. For example, the protocol stipulates that the first data bit "68" in the login instruction represents the starting identifier "beginFlag", and "68" converted to decimal is "104", the second data bit "01" is the command code "code", 1 indicates that this instruction is a login instruction, the third and fourth data bits "00 00" represent the message sequence number "sequenceId:1", the fifth and sixth data bits "00 1D" represent the message body length "bodyLength:29", the seventh to the fourteenth data bits "12 19 03 18 00 00 00 04" represent the device number "deviceNo:1219031800000004", the fifteenth data bit "02" represents the device type "chargeType:2", the sixteenth data bit "09" represents the number of charging guns "interfaceCount:9", the seventeenth to the twentieth data bits "00 00 00 "00" indicates the operator code "operatorId:0", the 21st-23rd digits "00 00 00" indicate the password "pwd:000000", the 24th-25th digits "01 00" indicate the software version number "softwareVersion:1.0", the 26th-27th digits "01 02" indicate the protocol version number "protocolVersion:1.2", the 28th-31st digits "00 00 00 00" indicate the charging rule "priceRuleId:0", the 32nd-35th digits "00 00 00 00" indicate the charging rule version number "priceRuleVersion:0", the 36th digit "4A" indicates the command checksum "checksum:5105", and the 37th digit "B7" indicates the expected command checksum "checksumExpect:5105".
[0063] The service receiving end also includes multiple instruction executors (not shown in the figure).
[0064] S140. The second target instruction parser sends the business processing instruction to a target instruction executor among the multiple instruction executors;
[0065] S150: The target instruction executor performs corresponding operation processing on the received business processing instruction.
[0066] Based on the same application concept, the embodiments of the present application also provide a business interaction method corresponding to the business interaction system provided in the above embodiments. Since the principles of solving problems by the business interaction method in the embodiments of the present application are similar to those of the business interaction system in the above embodiments of the present application, the repeated parts will not be repeated.
[0067] Based on the same application idea, please refer to Figure 3 , Figure 3 A structural schematic diagram of an electronic device provided for an embodiment of the present application is shown, wherein the electronic device 300 includes: a processor 310, a memory 320 and a bus 330, wherein the memory 320 stores machine-readable instructions executable by the processor 310. When the electronic device 300 is running, the processor 310 communicates with the memory 320 through the bus 330, and the machine-readable instructions are executed by the processor 310 when running, as in any of the steps of the business interaction method described in the above embodiments.
[0068] Based on the same application concept, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the business interaction method provided in the above embodiment are executed.
[0069] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0070] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0071] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0072] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0073] The above are only specific embodiments of the present application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A business interaction system, characterized in that: The service interaction system includes a service sending end and a service receiving end, wherein the service receiving end includes a message decoder and a plurality of first instruction parsers, and different first instruction parsers correspond to different service contents. Wherein, the service sending end generates a message flow according to the service processing instruction; The message decoder parses the message stream received from the service sending end according to the parsing method indicated by the preset communication protocol corresponding to the service sending end and the service receiving end, and obtains the instruction identifier and the service content; The message decoder determines, according to the instruction identifier, a first target instruction parser that matches the service content from among the multiple first instruction parsers; The first target instruction parser decodes the service content by an internal preset decoding method to obtain a service processing instruction.
2. The business interaction system according to claim 1, characterized in that: The service receiving end also includes a frame breaker, The frame breaker performs frame breaking processing on the message stream received from the service sending end to obtain a plurality of complete frame data; The message decoder parses each complete frame of data, determines the instruction identifier and service content corresponding to each complete frame of data, and determines a first target instruction parser that matches the service content of each complete frame of data.
3. The business interaction system according to claim 2, characterized in that: The message decoder determines the instruction identifier and service content corresponding to each complete frame of data in the following manner: The complete frame data is parsed according to the parsing method indicated by the corresponding preset communication protocol between the service sending end and the service receiving end, and the instruction identifier and service content corresponding to the complete frame data are identified.
4. The business interaction system according to claim 1, characterized in that: The service sending end includes a display, an instruction collector, a message encoder, and a plurality of second instruction parsers. Wherein, the display displays a business processing page, and the business processing page includes business processing instruction configuration items; The instruction collector generates a business processing instruction according to the input executed for the business processing instruction configuration item on the business processing page, and determines the instruction identifier corresponding to the business processing instruction; The message encoder obtains the service processing instruction and the instruction identifier; The message encoder determines, according to the instruction identifier, a second target instruction parser that matches the service processing instruction from the multiple second instruction parsers; The second target instruction parser encodes the business processing instruction by an internal preset encoding method to obtain the business content formed by the encoding of the business processing instruction; The message encoder obtains a preset communication protocol between a service sending end and a service receiving end, and encapsulates the service content and the instruction identifier into the message stream under the preset communication protocol.
5. The business interaction system according to claim 4, characterized in that: The business processing page also includes an instruction receiving object configuration item associated with the business processing instruction configuration item. The message encoder obtains the preset communication protocol in the following manner: Generate an instruction receiving object based on the input performed on the instruction receiving object configuration item on the business processing page; According to the instruction receiving object, determining a target communication channel for communicating with the instruction receiving object from a plurality of communication channels established with the service sending end; Get the default communication protocol indicated by the target communication channel.
6. The business interaction system according to claim 5, characterized in that: The service sending end also includes a channel manager, The channel manager obtains the instruction receiving object and receives the message stream from the second target instruction parser; The channel manager determines a target communication channel from a plurality of communication channels according to an instruction receiving object associated with the business processing instruction; The channel manager sends the message stream to the service receiving end indicated by the instruction receiving object through the target communication channel.
7. The business interaction system according to claim 4, characterized in that: The service receiving end also includes a plurality of instruction executors, The second target instruction parser sends the business processing instruction to a target instruction executor among the multiple instruction executors; The target instruction executor performs corresponding operation processing on the received business processing instruction.
8. A business interaction method, characterized in that: The method is applied to a service interaction system, the service interaction system comprises a service sending end and a service receiving end, the service receiving end comprises a message decoder and a plurality of first instruction parsers, different first instruction parsers correspond to different service contents, Wherein, the service sending end generates a message flow according to the service processing instruction; The message decoder parses the message stream received from the service sending end according to the parsing method indicated by the preset communication protocol corresponding to the service sending end and the service receiving end, and obtains the instruction identifier and the service content; The message decoder determines, according to the instruction identifier, a first target instruction parser that matches the service content from among the multiple first instruction parsers; The first target instruction parser decodes the service content by an internal preset decoding method to obtain a service processing instruction for the target service.
9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to execute the steps of the business interaction method as described in claim 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the service interaction method according to claim 8 are executed.
