Service data processing method and apparatus, computer device, and readable storage medium
By converting the operator's communication protocols and data into the logistics system's protocols and data formats through the interface processing system, the problem of low efficiency in business data processing caused by different operator communication protocols is solved, and more efficient business data processing is achieved.
Patent Information
- Application Number
- PCT/CN2025/103071
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-24
- Filing Date
- 2025-06-24
- Publication Date
- 2026-01-02
AI Technical Summary
Different operators use different communication protocols, which leads to low efficiency in processing operator business data when an independent communication system is built for each operator.
The interface processing system converts the operator's first communication protocol into the logistics business processing system's second communication protocol, and converts the business processing request into the data format of the logistics business processing system. The logistics business processing system determines the business data and application information, and finally pushes the business data to the target application through the target communication protocol.
It improves the efficiency of operators' business data processing. Through a unified interface processing system, it realizes the conversion of communication protocols and data of different operators, thereby improving the efficiency of business data processing in the logistics system.
Smart Images

Figure CN2025103071_02012026_PF_FP_ABST
Abstract
Description
Business data processing method and device, computer equipment and readable storage medium
[0001] Related applications
[0002] The present application claims priority to the Chinese patent application No. 2024108230734, filed on June 24, 2024, and entitled "Business data processing method, device, computer equipment and readable storage medium", the contents of which are hereby incorporated by reference in their entirety. TECHNICAL FIELD
[0003] The present application relates to the technical field of logistics communication, in particular to a business data processing method and device, computer equipment, computer readable storage medium and computer program product. BACKGROUND
[0004] With the development of Internet technology, the related business of operators can be promoted and spread through the Internet at present, especially through the logistics system. The logistics system is closely related to users, and the operators can make the pushing range wider by transmitting and pushing business data through the logistics system. However, the communication protocols of various operators are different, and when the operators transmit and process business data through the logistics system at present, the logistics system needs to build a set of communication system for each operator to adapt to the communication protocols of various operators. However, the way of building an independent communication system for each operator to process the business data of the operators will lead to the reduction of the efficiency of business data processing.
[0005] Therefore, the current processing method for the business data of the operators has the defect of low processing efficiency. SUMMARY
[0006] Therefore, it is necessary to provide a business data processing method and device, computer equipment, computer readable storage medium and computer program product capable of improving efficiency in view of the above technical problems.
[0007] In a first aspect, the present application provides a business data processing method, which comprises:
[0008] When a first business processing request sent by an operator through a first communication protocol is received, the first communication protocol is converted into a second communication protocol corresponding to a logistics business processing system through an interface processing system, and the first business processing request is converted into a second business processing request meeting the data format of the logistics business processing system;
[0009] sending the second service processing request to the logistics service processing system according to the second communication protocol; the logistics service processing system is configured to determine service data and application information corresponding to the operator according to the second service processing request, and send the service data and the application information to the interface processing system through the second communication protocol;
[0010] determining a target communication protocol and a target data format according to the application information, converting the service data into target service data satisfying the target data format, and pushing the target service data to a target application corresponding to the application information through the target communication protocol.
[0011] In one of the embodiments, the method further comprises:
[0012] receiving an access request sent by the operator to be accessed, and obtaining a communication protocol and access application information corresponding to the operator according to the access request;
[0013] generating configuration information corresponding to the operator to be accessed according to the communication protocol, the second communication protocol and the access application information;
[0014] when receiving a first service processing request sent by the operator through a first communication protocol, converting the first communication protocol into a second communication protocol corresponding to a logistics service processing system through an interface processing system, comprising:
[0015] when receiving a first service processing request sent by the operator through a first communication protocol, obtaining configuration information corresponding to the operator through the interface processing system, and converting the first communication protocol into a second communication protocol corresponding to a logistics service processing system according to the configuration information.
[0016] In one of the embodiments, the receiving of the first service processing request sent by the operator through the first communication protocol comprises:
[0017] receiving an encrypted first service processing request sent by the operator through the first communication protocol;
[0018] obtaining a decryption algorithm corresponding to the first communication protocol, performing decryption packet processing on the encrypted first service processing request according to the decryption algorithm, and obtaining the first service processing request.
[0019] In one of the embodiments, the converting of the service data into target service data satisfying the target data format, and the pushing of the target service data to a target application corresponding to the application information through the target communication protocol, comprise:
[0020] convert the service data into target service data satisfying the target data format, and determine a push cycle corresponding to the target service data according to the first service processing request;
[0021] determine each current service data corresponding to the target service data according to each push time in the push cycle;
[0022] push each current service data to a target application corresponding to the application information through the target communication protocol at each push time.
[0023] In one embodiment, after the second service processing request is sent to the logistics service processing system according to the target communication protocol, the method further comprises:
[0024] obtain preset verification information corresponding to the operator;
[0025] verify the application information and the target communication protocol according to the preset verification information to obtain a corresponding verification result;
[0026] if the verification result is passed, determine the target communication protocol and the target data format according to the application information, and convert the service data into target service data satisfying the target data format.
[0027] In one embodiment, the obtaining of the preset verification information corresponding to the operator comprises:
[0028] obtain application verification information, user permission verification information and interface permission verification information corresponding to the operator to obtain the preset verification information corresponding to the operator;
[0029] the verifying of the application information and the target communication protocol according to the preset verification information to obtain a corresponding verification result comprises:
[0030] first verify the application information according to the application verification information to obtain a first verification result;
[0031] second verify whether the operator is allowed to access the application corresponding to the application information according to the user permission verification information to obtain a second verification result;
[0032] third verify whether the target communication protocol is allowed to use the communication interface of the application corresponding to the application information according to the interface permission verification information to obtain a third verification result.
[0033] In a second aspect, the application provides a service data processing device, which comprises:
[0034] The receiving module is configured to, when receiving a first service processing request sent by an operator through a first communication protocol, convert the first communication protocol into a second communication protocol corresponding to a logistics service processing system through an interface processing system, and convert the first service processing request into a second service processing request meeting a data format of the logistics service processing system.
[0035] The processing module is configured to send the second service processing request to the logistics service processing system according to the second communication protocol; and the logistics service processing system is configured to determine service data and application information corresponding to the operator according to the second service processing request, and send the service data and the application information to the interface processing system through the second communication protocol.
[0036] The pushing module is configured to determine a target communication protocol and a target data format according to the application information, convert the service data into target service data meeting the target data format, and push the target service data to a target application corresponding to the application information through the target communication protocol.
[0037] In a third aspect, a computer device is provided, which includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the steps of the above method are implemented.
[0038] In a fourth aspect, a computer readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the steps of the above method are implemented.
[0039] In a fifth aspect, a computer program product is provided, which includes a computer program. When the computer program is executed by a processor, the steps of the above method are implemented.
[0040] The business data processing method, device, computer device, computer readable storage medium and computer program product convert the first communication protocol corresponding to the operator into the second communication protocol corresponding to the logistics business processing system through the interface processing system, convert the first business processing request sent by the operator into the second business processing request meeting the data format of the logistics business processing system, send the second business processing request to the logistics business processing system according to the second communication protocol, determine the business data and application information corresponding to the operator through the logistics business processing system, and push the target business data meeting the target data format corresponding to the application information to the target application corresponding to the application information through the target communication protocol corresponding to the application information in the interface processing system. Compared with the traditional way of building a data transmission system for each operator, the present application independently sets the interface processing system, so that the communication protocol and data of each operator are converted into the protocol and data of the logistics system through the interface processing system, and then the related business data processing is performed, thereby improving the processing efficiency of the business data of the operator. BRIEF DESCRIPTION OF DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only embodiments of the present application, and other drawings can be obtained by the disclosed drawings without creative labor for those skilled in the art.
[0042] FIG. 1 is an application environment diagram of a business data processing method in an embodiment.
[0043] FIG. 2 is a flowchart of a business data processing method in an embodiment.
[0044] FIG. 3 is a flowchart of a business data processing method in another embodiment.
[0045] FIG. 4 is a structural diagram of a business processing system in an embodiment.
[0046] FIG. 5 is a structural block diagram of a business data processing device in an embodiment.
[0047] FIG. 6 is an internal structure diagram of a computer device in an embodiment. DETAILED DESCRIPTION
[0048] With reference to the accompanying drawings, the technical solutions in the embodiments of the present application will be described clearly and completely. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all the other embodiments obtained by those skilled in the art without creative work fall within the scope of the present application.
[0049] The service data processing method provided by the embodiments of the present application can be applied to the application environment as shown in FIG. 1. The logistics service processing system communicates with the interface processing system through a network, and the interface processing system communicates with the operator and the application in the logistics system through a network. The interface processing system can include multiple modules, such as an interface access module, a message pushing module, a log module, etc. When the interface processing system receives a first service processing request sent by the operator system through a first communication protocol, the first communication protocol and the first service processing request are converted and sent to the logistics service processing system. After the logistics service processing system determines the service data and application information corresponding to the operator, the interface processing system returns to the interface processing system. The interface processing system converts the service data into a format corresponding to the application information, and transmits the converted service data to the corresponding application using the communication protocol corresponding to the application information. The logistics service processing system and the interface processing system can be independent physical interface processing systems, or can be an interface processing system cluster or a distributed system formed by multiple physical interface processing systems, or can be a cloud interface processing system providing cloud computing services.
[0050] In an exemplary embodiment, as shown in FIG. 2, a service data processing method is provided. Taking the interface processing system in FIG. 1 as an example, the method includes the following steps S202 to S206. Wherein:
[0051] Step S202, when receiving a first service processing request sent by an operator through a first communication protocol, the interface processing system converts the first communication protocol into a second communication protocol corresponding to the logistics service processing system, and converts the first service processing request into a second service processing request meeting the data format of the logistics service processing system.
[0052] The operator can be connected with the logistics system in advance, so that the operator can display the relevant business data of the operator through the logistics system. For example, the operator pushes the incentive policy of activating the communication card and other business data in the relevant application of the logistics system. To solve the problem that each operator needs to develop a corresponding communication interface, resulting in low efficiency of business data processing. An independent interface processing system is constructed, which can convert the business data sent by each operator through their respective communication protocols into standard communication protocols and standard format business data corresponding to the logistics system, and then process them. Among them, there can be multiple operators, and the communication protocols used by each operator can be different. Therefore, multiple modules can be provided in the above interface processing system for data conversion and data transmission. They include interface access module, message pushing module and log module, etc. The interface access module can be used for protocol data conversion, security authentication, access application, interface permission related control, etc. The message pushing module can be used for business data pushing and abnormal re-throwing. The log module can be used for log access, log storage and log query, etc.
[0053] When the operator needs to use a certain application in the logistics system to push business data, the operator can send a corresponding first business processing request to the interface processing system through its corresponding first communication protocol. The interface processing system can receive the above first communication protocol and the corresponding first business processing request, convert the first communication protocol into a second communication protocol, and convert the first business processing request into a second business processing request. The second communication protocol can be a communication protocol corresponding to the logistics business processing system; the second business processing request can be a business processing request that meets the data format of the logistics business processing system. The above logistics business processing system can be used to process the above second business processing request, and then determine the information of the business data that the operator needs to push, the application that needs to be pushed to, the rules of pushing, etc.
[0054] The interface processing system can generate and store each configuration information corresponding to each operator based on the communication protocol of each operator and the data format of the business data in advance, so that when the interface processing system receives the business processing request sent by the corresponding operator using its corresponding communication protocol, it can find the corresponding configuration information from the database based on the identifier of the operator, so that the interface processing system can use the above configuration information to convert and process the first communication protocol and the first business processing request of the operator.
[0055] The above first business processing request can also be a request encrypted by the operator, which needs to be decrypted by the interface processing system before further conversion processing.
[0056] In one embodiment, receiving the first service processing request sent by the operator through the first communication protocol includes: receiving the encrypted first service processing request sent by the operator through the first communication protocol; obtaining a decryption algorithm corresponding to the first communication protocol, and performing decryption packet processing on the encrypted first service processing request according to the decryption algorithm to obtain the first service processing request.
[0057] In this embodiment, the operator can perform encryption processing on the first service processing request to be sent to obtain an encrypted first service processing request. The encryption algorithm can be set according to the communication protocol corresponding to the operator, and the encryption algorithm can include multiple algorithms, such as AES (symmetric encryption) and RSA (asymmetric encryption) algorithms. The interface processing system can receive the encrypted first service processing request sent by the operator through the first communication protocol. The interface processing system can obtain a decryption algorithm corresponding to the first communication protocol, and perform decryption packet processing on the encrypted first service processing request according to the decryption algorithm to obtain the decrypted first service processing request. The interface processing system can pre-store each encryption algorithm corresponding to each first communication protocol corresponding to each operator, that is, the first communication protocol and the encryption algorithm can correspond one by one.
[0058] Step S204: sending the second service processing request to the logistics service processing system according to the second communication protocol; the logistics service processing system is configured to determine service data and application information corresponding to the operator according to the second service processing request, and send the service data and the application information to the interface processing system through the second communication protocol.
[0059] The logistics business processing system can be used to process the first business processing request. Specifically, the first business processing request can include order synchronization, which means processing of relevant orders of the corresponding application synchronization operator in the logistics system. The logistics business processing system communicates with the outside world through its corresponding standard interface, and has a corresponding data format. The logistics business processing system can process business data that meets the corresponding data format. The standard interface can use the second communication protocol. The interface processing system converts the first business processing request into a second business processing request that meets the data format of the logistics business system, and converts the first communication protocol into the second communication protocol. After the conversion, the second business processing request can be sent to the logistics business processing system according to the second communication protocol. The logistics business processing system can receive the second business processing request through the second communication protocol, and determine the business data and application information of the operator according to the second business processing request. The business data of the operator can be the business data contained in the business processing request sent by the operator. The business data includes the business information that the operator needs to display in the application of the logistics system. The application information can be the relevant information of the application in which the operator expects to display the business data.
[0060] The business data and application information of the operator can be obtained by the logistics business processing system by analyzing the second business processing request. Thus, the logistics business processing system can send the business data and the application information to the interface processing system through the second communication protocol.
[0061] Step S206: According to the application information, determine the target communication protocol and the target data format, convert the business data into target business data that meets the target data format, and push the target business data to the target application corresponding to the application information through the target communication protocol.
[0062] The application information can be information about an application to which the logistics business processing system determines to push business data based on the second business processing request. The application information includes a corresponding target communication protocol and a target data format, so that the interface processing system can determine the target communication protocol and the target data format according to the application information. The target communication protocol can be a communication protocol used by an interface of the application corresponding to the application information, and the target data format can be a format used by data in the application corresponding to the application information. The data format of the business data obtained by the logistics business processing system based on the second business processing request can not satisfy the target data format, so that the interface processing system can convert the business data into target business data satisfying the target data format. Therefore, the interface processing system can push the target business data to the target application corresponding to the application information through the target communication protocol.
[0063] The interface processing system can log the transmission process, such as logging the data conversion process and the target business data transmission. After the target application receives the result, the target application can process and display the target business data in a corresponding form, for example, for the activation card incentive information, the target application displays the information in the interface of the application through a pop-up window or a banner notification.
[0064] In the business data processing method, the interface processing system converts the first communication protocol corresponding to the operator into the second communication protocol corresponding to the logistics business processing system, converts the first business processing request sent by the operator into the second business processing request satisfying the data format of the logistics business processing system, sends the second business processing request to the logistics business processing system according to the second communication protocol, determines the business data corresponding to the operator and the application information through the logistics business processing system, and pushes the target business data satisfying the target data format corresponding to the application information to the target application corresponding to the application information through the interface processing system. Compared with the traditional method of constructing a data transmission system for each operator, the present application independently sets the interface processing system, so that the communication protocol and data of each operator are converted into the protocol and data of the logistics system through the interface processing system, and then the related business data is processed, thereby improving the processing efficiency of the business data of the operator.
[0065] In one embodiment, the method further includes: when an access request sent by an operator to be accessed is received, obtaining a communication protocol corresponding to the operator and access application information according to the access request; and generating configuration information corresponding to the operator to be accessed according to the communication protocol, the second communication protocol, and the access application information.
[0066] In this embodiment, the interface processing system can generate the configuration information corresponding to each operator in advance, and then when each operator sends a service processing request through a corresponding communication protocol, the interface processing system can call the corresponding configuration information to convert the communication protocol and the service processing request of the operator. Each of the above-mentioned to-be-connected operators can send a connection request to the interface processing system, and the connection request can be used to establish an association relationship, such as a subscription relationship, with the interface processing system and the logistics service processing system. When the interface processing system receives the connection request sent by the to-be-connected operator, the interface processing system can obtain the communication protocol and the access application information corresponding to the operator according to the connection request. The interface processing system can obtain the communication protocol and the access application information corresponding to the operator by analyzing the connection request. The access application information represents the related information of the application through which the operator needs to push the service data in the application corresponding to the access application information. For example, the service data of the operator is displayed in the application corresponding to the access application information.
[0067] The interface processing system can be connected to the logistics service processing system through a second communication protocol, and the interface processing system can determine the conversion rule between the communication protocol of the above-mentioned to-be-connected operator and the second communication protocol in advance, so that the interface processing system can generate the configuration information corresponding to the to-be-connected operator according to the above-mentioned communication protocol, the above-mentioned second communication protocol, the above-mentioned conversion rule, and the access application information. The operator and the configuration information can correspond to each other. Specifically, the above-mentioned configuration information can include application access configuration, application interface configuration, and application customer configuration. The application access configuration can represent the configuration of the function information of the application accessed by the operator, the application interface configuration can represent the configuration of the interface and the communication protocol of the application accessed by the operator, and the application customer configuration can represent the configuration of the user attribute of the application accessed by the operator. Then, the interface processing system can obtain the above-mentioned application access configuration, application interface configuration, and application customer configuration based on the above-mentioned communication protocol, the above-mentioned second communication protocol, the above-mentioned conversion rule, and the access application information.
[0068] Therefore, the interface processing system can convert the communication protocol of the operator by using the above-mentioned configuration information.
[0069] In one embodiment, when the first service processing request sent by the operator through the first communication protocol is received, the first communication protocol is converted into the second communication protocol corresponding to the logistics service processing system through the interface processing system, including: when the first service processing request sent by the operator through the first communication protocol is received, the configuration information corresponding to the operator is obtained through the interface processing system, and the first communication protocol is converted into the second communication protocol corresponding to the logistics service processing system according to the configuration information.
[0070] In the embodiment, the interface processing system can receive a first service processing request sent by an operator through a first communication protocol, and then query a database according to the first communication protocol to obtain configuration information corresponding to the operator from the database, so that the interface processing system converts the first communication protocol into a second communication protocol corresponding to the logistics service processing system according to the configuration information corresponding to the operator. In addition, in some embodiments, the interface processing system can also convert the first service processing request into a second service processing request in a data format meeting the logistics service processing system according to the configuration information. For example, the interface processing system converts the first communication protocol into the second communication protocol according to the conversion rule in the configuration information, and converts the first service processing request into the second service processing request in the data format of the logistics service processing system.
[0071] Through the above embodiment, the interface processing system pre-generates configuration information corresponding to each operator, so that when the operator sends a service processing request based on the corresponding communication protocol, the interface processing system converts the communication protocol and the service processing request based on the corresponding configuration information, so that the communication protocol and the service processing request meet the communication requirements and processing requirements of the logistics service processing system, and the efficiency of processing the service data of the operator is improved.
[0072] In one embodiment, converting the service data into target service data meeting the target data format and pushing the target service data to a target application corresponding to the application information through the target communication protocol includes: converting the service data into target service data meeting the target data format, and determining a push cycle corresponding to the target service data according to the first service processing request; determining each current service data corresponding to each push time in the push cycle from the target service data; and pushing each current service data to the target application corresponding to the application information through the target communication protocol at each push time.
[0073] In the embodiment, the first service processing request can also be a request containing multiple push service data. The multiple push service data can be periodically pushed according to a preset period, and the preset period can be determined according to the first service processing request. After the interface processing system converts the service data into target service data meeting the target data format, if it is determined based on the first service processing request that the request needs to be periodically pushed, the interface processing system can determine a push cycle corresponding to the target service data according to the first service processing request. For example, the interface processing system analyzes the first service processing request to obtain the push cycle therein.
[0074] The push period includes a plurality of push moments, and the interface processing system can determine the current service data corresponding to each push moment from the target service data according to each push moment in the period. The target service data can be the whole service data, which can be split into a plurality of sub-data corresponding to each push moment, i.e., the current service data. Thus, the interface processing system can push the current service data corresponding to each push moment to the target application corresponding to the application information through the target communication protocol when each push moment arrives, to realize the push of service data once.
[0075] The interface processing system can record a log of pushing the current service data each time. The log includes but is not limited to the communication protocol used, the total number of push periods, the pushed period, the pushed current service data, and the like.
[0076] Through the embodiment, the interface processing system can analyze the periodic push request in the service processing request of the operator, and then periodically push the service data to the target application multiple times, thereby improving the efficiency of the logistics system in pushing the service data of the operator.
[0077] In one embodiment, after sending the second service processing request to the logistics service processing system according to the target communication protocol, the method further includes: obtaining preset verification information corresponding to the operator; verifying the application information and the target communication protocol according to the preset verification information to obtain a corresponding verification result; if the verification result is passed, determining the target communication protocol and the target data format according to the application information, and converting the service data into target service data satisfying the target data format.
[0078] In the embodiment, after the interface processing system receives the application information and the target communication protocol analyzed by the logistics service processing system based on the second service processing request, the interface processing system can verify the application information and the target communication protocol before sending the target service data to the target application corresponding to the application information, to determine whether the operator is allowed to send the target service data to the target application through the target communication protocol.
[0079] The interface processing system can pre-store preset verification information corresponding to each operator. The preset verification information includes the communication protocol allowed to be used by the operator, the data type of the service data allowed to be sent, and the information of the application allowed to be sent, and the like. The interface processing system can obtain the preset verification information corresponding to the operator, and verify the returned application information and the target communication protocol according to the preset verification information to obtain a corresponding verification result.
[0080] If the interface processing system detects that the preset verification information does not contain the application information and the target communication protocol, the interface processing system determines that the verification result is not passed, and at this time, the interface processing system can stop converting and sending the target service data, and generate corresponding verification failure information, and then return the verification failure information to the corresponding operator.
[0081] If the interface processing system detects that the preset verification information contains the application information and the target communication protocol, the interface processing system determines that the verification result is passed, and at this time, the interface processing system can determine the target communication protocol and the target data format according to the application information, convert the service data into target service data that meets the target data format.
[0082] Through the embodiment, the interface processing system can verify the application information and the communication protocol based on the preset verification information, and then perform data conversion and data sending only after the verification is passed, thereby improving the security of sending operator service data by using the logistics system.
[0083] In one embodiment, the preset verification information corresponding to the operator is obtained, including: obtaining the application verification information, the user permission verification information and the interface permission verification information corresponding to the operator, to obtain the preset verification information corresponding to the operator.
[0084] In the embodiment, the preset verification information can include multiple types of verification information. For example, the interface processing system can obtain the application verification information, the user permission verification information and the interface permission verification information corresponding to the operator, and obtain the preset verification information corresponding to the operator according to the application verification information, the user permission verification information and the interface permission verification information. The application verification information can be used to verify whether the application corresponding to the application information is a qualified application; the user permission verification information is used to verify whether the operator has the permission to push the service data; and the interface permission verification is used to verify whether the operator can use the target communication protocol to push the service data. In addition, in some embodiments, the preset verification information can also include other verification information, and the content of the preset verification information can correspond to the operator. After the interface processing system determines the preset verification information corresponding to the operator, the interface processing system can verify the application information and the target communication protocol based on the preset verification information.
[0085] In an embodiment, the verifying the application information and the target communication protocol according to the preset verification information comprises: performing a first verification on the application information according to the application verification information to obtain a first verification result; performing a second verification on whether the operator is allowed to access the application corresponding to the application information according to the user permission verification information to obtain a second verification result; and performing a third verification on whether the target communication protocol is allowed to use the communication interface of the application corresponding to the application information according to the interface permission verification information to obtain a third verification result.
[0086] In the embodiment, the preset verification information comprises three verification information, and the interface processing system can perform three verifications on the application information and the target communication protocol. For example, the interface processing system can perform a first verification on the application information according to the application verification information to obtain a first verification result. The first verification can be a verification on whether the application corresponding to the application information is a qualified application.
[0087] The interface processing system can perform a second verification on whether the operator is allowed to access the application corresponding to the application information according to the user permission verification information to obtain a second verification result. The second verification can be a verification on whether the operator has the permission to perform the business data pushing based on the user permission verification information.
[0088] The interface processing system can perform a third verification on whether the target communication protocol is allowed to use the communication interface of the application corresponding to the application information according to the interface permission verification information to obtain a third verification result.
[0089] The interface processing system can determine the verification result of the operator according to the first verification result, the second verification result and the third verification result. For example, if the interface processing system detects that any one of the first verification result, the second verification result and the third verification result is not passed, the interface processing system can determine that the verification result of the operator is not passed.
[0090] If the interface processing system detects that the first verification result, the second verification result and the third verification result are all passed, the interface processing system can determine that the verification result of the operator is passed. Thus, the interface processing system can perform the format conversion on the target business data based on the application information, and send the target business data to the corresponding target application by using the target communication protocol.
[0091] Through the above embodiment, the interface processing system can pre-generate preset verification information containing multiple verification processes, and verify the application information and the communication protocol in the request of the operator based on the preset verification information, and after verification, data conversion and sending are performed, thereby improving the security of sending operator service data by using the logistics system.
[0092] In one exemplary embodiment, as shown in FIG. 3, FIG. 3 is a flowchart of a service data processing method in another embodiment. In this embodiment, the interface processing system and the logistics service processing system can be divided into multiple hierarchical structures, as shown in FIG. 4, which is a structural diagram of a service processing system in one embodiment. It includes a monitoring layer, a management layer, and a running layer, etc. Among them, the monitoring layer can perform functions such as access log and push log; the management layer can perform application access management, system interface management, application interface data management, user permission management of the application, and message management, etc.; the running layer can perform protocol / data conversion, security authentication (preset verification information), event processing, exception handling, and log storage, etc.
[0093] Among them, when the operator needs to push service data, the interface processing system can send a service processing request to the interface processing system, the interface processing system processes the request, first performs protocol data conversion to obtain the second service processing request and the second communication protocol, and then performs request verification, decrypts the message, and verifies the access application and the interface, for example, based on the preset verification information. After verification, the pre-processing, request processing, response conversion, and post-processing steps of the logistics service processing system are performed to obtain the application information and the service data. The interface processing system can record the logs of each step from verification to conversion to the final result.
[0094] When the interface processing system needs to push service data, it can listen to the MQ (Message Queue) service message, perform message routing, convert the protocol and data according to the access information configuration and filtering strategy of the application, obtain the target communication protocol and the target service data. The interface processing system can push the target service data to the target application based on the target communication protocol. Among them, when the push fails, the interface processing system can perform exception retry, if the number of retries is greater than the preset number of retries, the interface processing system can stop sending and record the log of retry failure; if the interface processing system pushes successfully, it can record the log of push success.
[0095] Through the above embodiment, by independently setting the interface processing system, the communication protocol and data of each operator are converted into the protocol and data of the logistics system by the interface processing system, and then the related service data processing is performed, thereby improving the processing efficiency of the service data of the operator.
[0096] It should be understood that although each step in the flowchart involved in each of the above embodiments is shown in sequence according to the arrow, the steps are not necessarily executed in the order indicated by the arrow. Unless otherwise specified herein, the execution of the steps is not strictly limited in sequence, and the steps can be executed in other orders. Moreover, at least some of the steps in the flowchart involved in each of the above embodiments can include multiple steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution order of the steps or stages is not necessarily sequential, but can be alternately or alternately executed with at least part of other steps or steps or stages in other steps.
[0097] Based on the same inventive concept, the embodiments of the present application also provide a business data processing device for implementing the above-mentioned business data processing method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more business data processing device embodiments provided below can refer to the limitations of the business data processing method described above, which will not be repeated here.
[0098] In an exemplary embodiment, as shown in FIG. 5, a business data processing device is provided, comprising: a receiving module 500, a processing module 502 and a pushing module 504, wherein:
[0099] The receiving module 500 is configured to, when a first service processing request sent by an operator through a first communication protocol is received, convert the first communication protocol into a second communication protocol corresponding to a logistics service processing system through an interface processing system, and convert the first service processing request into a second service processing request meeting the data format of the logistics service processing system.
[0100] The processing module 502 is configured to send the second service processing request to the logistics service processing system according to the second communication protocol; and the logistics service processing system is configured to determine service data and application information corresponding to the operator according to the second service processing request, and send the service data and the application information to the interface processing system through the second communication protocol.
[0101] The pushing module 504 is configured to determine a target communication protocol and a target data format according to the application information, convert the service data into target service data meeting the target data format, and push the target service data to a target application corresponding to the application information through the target communication protocol.
[0102] In one embodiment, the apparatus further comprises a configuration module configured to, when receiving an access request sent by an operator to be accessed, acquire a communication protocol and access application information corresponding to the operator according to the access request; and generate configuration information corresponding to the operator to be accessed according to the communication protocol, the second communication protocol and the access application information.
[0103] In one embodiment, the receiving module 500 is configured to, when receiving a first service processing request sent by an operator through a first communication protocol, acquire configuration information corresponding to the operator through the interface processing system according to the configuration information, and convert the first communication protocol into a second communication protocol corresponding to the logistics service processing system according to the configuration information.
[0104] In one embodiment, the receiving module 500 is configured to receive an encrypted first service processing request sent by the operator through the first communication protocol; acquire a decryption algorithm corresponding to the first communication protocol; and perform decryption packet processing on the encrypted first service processing request according to the decryption algorithm to obtain the first service processing request.
[0105] In one embodiment, the pushing module 504 is configured to convert the service data into target service data satisfying a target data format, and determine a pushing period corresponding to the target service data according to the first service processing request; determine each current service data corresponding to the target service data according to each pushing time in the pushing period; and push each current service data to a target application corresponding to the application information through the target communication protocol at each pushing time.
[0106] In one embodiment, the apparatus further comprises a verification module configured to acquire preset verification information corresponding to the operator; verify the application information and the target communication protocol according to the preset verification information to obtain a verification result; and if the verification result is passed, determine a target communication protocol and a target data format according to the application information, and convert the service data into target service data satisfying the target data format.
[0107] In one embodiment, the verification module is configured to acquire application verification information, user permission verification information and interface permission verification information corresponding to the operator to obtain the preset verification information corresponding to the operator.
[0108] In an embodiment, the verification module is configured to perform a first verification on the application information according to the application verification information, to obtain a first verification result; perform a second verification on whether the operator is allowed to access the application corresponding to the application information according to the user permission verification information, to obtain a second verification result; and perform a third verification on whether the target communication protocol is allowed to use the communication interface of the application corresponding to the application information according to the interface permission verification information, to obtain a third verification result.
[0109] Each module in the service data processing apparatus can be implemented wholly or partially by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in the computer device in hardware form, or stored in a memory in the computer device in software form, so as to be invoked and executed by the processor to perform operations corresponding to each module.
[0110] In an exemplary embodiment, a computer device is provided, which can be an interface processing system. An internal structure diagram of the computer device can be as shown in FIG. 6. The computer device includes a processor, a memory, an input / output interface (I / O), and a communication interface. The processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for running the operating system and the computer program in the non-volatile storage medium. The database of the computer device is configured to store communication protocol data. The input / output interface of the computer device is configured to exchange information between the processor and external devices. The communication interface of the computer device is configured to communicate with an external logistics service processing system through a network connection. The computer program is executed by the processor to implement a service data processing method.
[0111] Those skilled in the art can understand that the structure shown in FIG. 6 is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. A specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0112] In an exemplary embodiment, a computer device is provided, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the service data processing method described above.
[0113] In one embodiment, a computer readable storage medium is provided, and the computer readable storage medium has stored thereon a computer program. The computer program is executed by a processor to implement the service data processing method described above.
[0114] In one embodiment, a computer program product is provided, and the computer program product includes a computer program. The computer program is executed by a processor to implement the service data processing method described above.
[0115] It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of the related data need to comply with relevant regulations.
[0116] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when executed, can include the processes of the above-mentioned embodiment methods. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. The non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. The volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration but not limitation, the RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., without being limited thereto.
[0117] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description simple, all possible combinations of the technical features in the above-mentioned embodiments are not described, however, as long as the combinations of the technical features do not exist contradictory, it should be considered as the scope of the present application.
[0118] The above embodiments only express several implementation ways of the present application, and the description is relatively specific and detailed, but it should not be understood as a limitation to the patent scope of the application. It should be pointed out that for ordinary skilled persons in the art, several modifications and improvements can be made without departing from the concept of the present application, which all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.
Claims
1. A service data processing method characterized by, The method comprises: When receiving a first service processing request sent by an operator through a first communication protocol, converting the first communication protocol into a second communication protocol corresponding to a logistics service processing system through an interface processing system, and converting the first service processing request into a second service processing request meeting a data format of the logistics service processing system; According to the second communication protocol, sending the second service processing request to the logistics service processing system; the logistics service processing system is configured to determine service data and application information corresponding to the operator according to the second service processing request, and send the service data and the application information to the interface processing system through the second communication protocol; According to the application information, determining a target communication protocol and a target data format, converting the service data into target service data meeting the target data format, and pushing the target service data to a target application corresponding to the application information through the target communication protocol.
2. The method of claim 1, wherein, The method further comprises: When receiving an access request sent by an operator to be accessed, obtaining a communication protocol and access application information corresponding to the operator according to the access request; According to the communication protocol, the second communication protocol and the access application information, generating configuration information corresponding to the operator to be accessed; When receiving a first service processing request sent by an operator through a first communication protocol, converting the first communication protocol into a second communication protocol corresponding to a logistics service processing system through an interface processing system, comprising: When receiving a first service processing request sent by an operator through a first communication protocol, obtaining configuration information corresponding to the operator through the interface processing system according to the configuration information, and converting the first communication protocol into a second communication protocol corresponding to a logistics service processing system.
3. The method of claim 1, wherein, The receiving of the first service processing request sent by the operator through the first communication protocol comprises: Receiving an encrypted first service processing request sent by the operator through the first communication protocol; Obtaining a decryption algorithm corresponding to the first communication protocol, and performing encrypted message processing on the encrypted first service processing request according to the decryption algorithm to obtain the first service processing request.
4. The method of claim 1, wherein, The conversion of the service data into target service data meeting the target data format, and the pushing of the target service data to a target application corresponding to the application information through the target communication protocol, comprises: Converting the service data into target service data meeting the target data format, and determining a pushing period corresponding to the target service data according to the first service processing request; According to each pushing time in the pushing period, determining corresponding current service data from the target service data; At each pushing time, pushing each current service data to a target application corresponding to the application information through the target communication protocol.
5. The method of claim 1, wherein, After the sending of the second service processing request to the logistics service processing system according to the target communication protocol, further comprising: Obtaining preset verification information corresponding to the operator; According to the preset verification information, the application information and the target communication protocol are verified, and a corresponding verification result is obtained; If the verification result is passed, the target communication protocol and the target data format are determined according to the application information, and the business data is converted into target business data satisfying the target data format.
6. The method of claim 5, wherein, The preset verification information corresponding to the operator is obtained, including: The application verification information, the user permission verification information and the interface permission verification information corresponding to the operator are obtained, and the preset verification information corresponding to the operator is obtained; According to the preset verification information, the application information and the target communication protocol are verified, and a corresponding verification result is obtained, including: According to the application verification information, the application information is first verified, and a first verification result is obtained; According to the user permission verification information, the second verification is performed on whether the operator is allowed to access the application corresponding to the application information, and a second verification result is obtained; According to the interface permission verification information, the third verification is performed on whether the target communication protocol is allowed to use the communication interface of the application corresponding to the application information, and a third verification result is obtained.
7. A service data processing apparatus characterized by comprising: The device includes: The receiving module is configured to, when receiving a first business processing request sent by an operator through a first communication protocol, convert the first communication protocol into a second communication protocol corresponding to a logistics business processing system through an interface processing system, and convert the first business processing request into a second business processing request satisfying a data format of the logistics business processing system; The processing module is configured to send the second business processing request to the logistics business processing system according to the second communication protocol; the logistics business processing system is configured to determine business data and application information corresponding to the operator according to the second business processing request, and send the business data and the application information to the interface processing system through the second communication protocol; The pushing module is configured to determine a target communication protocol and a target data format according to the application information, convert the business data into target business data satisfying the target data format, and push the target business data to a target application corresponding to the application information through the target communication protocol.
8. The apparatus of claim 7, wherein, The device further includes a configuration module configured to: When receiving an access request sent by an operator to be accessed, obtain the communication protocol and the access application information corresponding to the operator according to the access request; According to the communication protocol, the second communication protocol and the access application information, generate configuration information corresponding to the operator to be accessed; The receiving module is configured to: When receiving a first business processing request sent by an operator through a first communication protocol, obtain the configuration information corresponding to the operator through the interface processing system, and convert the first communication protocol into a second communication protocol corresponding to a logistics business processing system according to the configuration information.
9. The apparatus of claim 7, wherein, The receiving module is configured to: Receive an encrypted first business processing request sent by the operator through the first communication protocol; Obtain a decryption algorithm corresponding to the first communication protocol, and perform decryption packet processing on the encrypted first service processing request according to the decryption algorithm to obtain the first service processing request.
10. The apparatus of claim 7, wherein, The pushing module is configured to: convert the service data into target service data satisfying the target data format, and determine a pushing period corresponding to the target service data according to the first service processing request; determine each current service data corresponding to the target service data according to each pushing time in the pushing period; push each current service data to a target application corresponding to the application information through the target communication protocol at each pushing time.
11. The apparatus of claim 7, wherein, The device further includes a verification module configured to: obtain preset verification information corresponding to the operator; verify the application information and the target communication protocol according to the preset verification information to obtain a corresponding verification result; if the verification result is passed, determine a target communication protocol and a target data format according to the application information, and convert the service data into target service data satisfying the target data format.
12. The apparatus of claim 11, wherein, The verification module is configured to: obtain application verification information, user permission verification information and interface permission verification information corresponding to the operator to obtain preset verification information corresponding to the operator; The verification module is configured to: perform first verification on the application information according to the application verification information to obtain a first verification result; perform second verification on whether the operator is allowed to access an application corresponding to the application information according to the user permission verification information to obtain a second verification result; perform third verification on whether the target communication protocol is allowed to use a communication interface of the application corresponding to the application information according to the interface permission verification information to obtain a third verification result.
13. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that, The processor executes the computer program to implement the steps of the method in any one of claims 1 to 6.
14. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method in any one of claims 1 to 6.
15. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method in any one of claims 1 to 6.
Citation Information
Patent Citations
Cold-chain logistics tracing service method and system and storage medium
CN114819862A
Interface adaptation method and device, storage medium and program product
CN114915666A
Logistics application commissioning and testing method, device and equipment and readable storage medium
CN117909202A
Data subscription method and system based on lightweight directory access protocol messages
WO2012051869A1
Method and system for implementing service optimization
WO2016078072A1