Data processing method and related equipment

By standardizing data during the access of e-commerce platforms, determining and using the corresponding printing component instances of e-commerce platforms, the problems of waste of resources and low efficiency in the existing technology are solved, and efficient access to e-commerce platforms and printing component sharing are achieved.

CN120469657APending Publication Date: 2025-08-12SHENZHEN QIANHAI BAIDI NETWORK CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510547030.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-28
Publication Date
2025-08-12

AI Technical Summary

Technical Problem

When accessing e-commerce platforms, developers on each business side require repeated development and testing of resources, resulting in waste of resources and inefficient access to new platforms.

Method used

The intermediate layer is introduced for data standardization processing, and the printing component instances corresponding to the e-commerce platform are determined through the standardized order data, and used as the target printing component instance to avoid repeated development and testing.

Benefits of technology

It has achieved the avoidance of repeated development and testing resources when accessing e-commerce platforms, improved the efficiency of connecting to new platforms, and enhanced the stability and scalability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120469657A_ABST
    Figure CN120469657A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a data processing method and related equipment, which are used for performing the data processing method under the condition of avoiding repeated development and waste of test resources. The method comprises the steps that a target printing request sent by a client side is acquired, the target printing request comprises target e-commerce platform order data of a target e-commerce independent software developer, and the target e-commerce platform order data of the target e-commerce independent software developer is subjected to standardization processing; based on the standardized order data of the target e-commerce platform, determining whether a printing component instance corresponding to the target e-commerce platform exists in a preset printing component instance set, the preset printing component instance set comprising pre-configured printing component instances corresponding to the e-commerce platform, if yes, the printing component instance corresponding to the target e-commerce platform serves as a target printing component instance corresponding to the target printing request, and the target printing component instance is used for printing order data of the target e-commerce platform.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of data processing, and more specifically, to a data processing method, a data processing apparatus, a data processing device, a computer-readable storage medium, and a computer program product containing instructions or a computer program. Background Art

[0002] With the growth of e-commerce business scale and technical complexity, each business side is facing more and more new e-commerce platform access and corresponding customized printing needs. Therefore, a data processing method is needed.

[0003] The existing data processing method is that for each business-side e-commerce ISV (independent software developer of e-commerce) server, when there is a demand for access to a new e-commerce platform, the developer of the business-side e-commerce ISV server needs to connect to the new platform's printing component based on the new e-commerce order data, and construct the printing data required by the component to complete printing. For example, user A1 on business side A and user B1 on business side B both need to use the printing component that is applicable to e-commerce platform 1. Developers on both business sides A and B are required to compare the data required by the printing component with the data on their respective business sides, smooth out the compatibility of the printing data, and may need to repeatedly connect to the component documents due to different development languages.

[0004] However, with existing data processing methods, each time a new e-commerce platform is added to the system, each business side needs to arrange developers to connect the printing components according to the platform printing component documentation. After the connection is completed, testing resources are also needed for debugging and acceptance. The access of each business side of the existing technology usually has platform overlap, which leads to a waste of development and testing resources. Summary of the Invention

[0005] The embodiments of the present application provide a data processing method, a data processing apparatus, a data processing device, a computer-readable storage medium, and a computer program product containing instructions or a computer program, which can perform data processing while avoiding repeated development and waste of testing resources.

[0006] In a first aspect, an embodiment of the present application provides a data processing method applied to a server of a software-as-a-service platform, wherein the software-as-a-service platform further includes at least one client, the method comprising:

[0007] Acquire a target print request sent by the client, wherein the target print request includes target e-commerce platform order data of a target e-commerce independent software developer;

[0008] Standardizing the target e-commerce platform order data of the target e-commerce independent software developer to obtain standardized target e-commerce platform order data;

[0009] Determining, based on the standardized target e-commerce platform order data, whether a printing component instance corresponding to the target e-commerce platform exists in a preset printing component instance set, wherein the preset printing component instance set includes a pre-configured printing component instance corresponding to the e-commerce platform;

[0010] If it exists, the printing component instance corresponding to the target e-commerce platform is used as the target printing component instance corresponding to the target printing request, and the target printing component instance is used to print the target e-commerce platform order data.

[0011] In a second aspect, an embodiment of the present application provides another data processing method, applied to at least one client of a software-as-a-service platform, wherein the software-as-a-service platform also includes a server, the method comprising:

[0012] sending a target print request to the server, the target print request including target e-commerce platform order data of a target e-commerce independent software developer, the server being configured to perform standardization processing on the target e-commerce platform order data of the target e-commerce independent software developer, and determining based on the standardized target e-commerce platform order data that a print component instance corresponding to the target e-commerce platform exists in a preset print component instance set, using the print component instance corresponding to the target e-commerce platform as the target print component instance corresponding to the target print request, and printing the target e-commerce platform order data through the target print component instance;

[0013] Get the print result returned by the server.

[0014] In a third aspect, an embodiment of the present application provides a data processing device, including:

[0015] An acquiring unit, configured to acquire a target print request sent by the client, wherein the target print request includes target e-commerce platform order data of a target e-commerce independent software developer;

[0016] A standardization processing unit, configured to perform standardization processing on the target e-commerce platform order data of the target e-commerce independent software developer to obtain standardized target e-commerce platform order data;

[0017] a determining unit, configured to determine, based on the standardized target e-commerce platform order data, whether a printing component instance corresponding to the target e-commerce platform exists in a preset printing component instance set, wherein the preset printing component instance set includes pre-configured printing component instances corresponding to the e-commerce platform;

[0018] The determining unit is further configured to, if it exists, use the printing component instance corresponding to the target e-commerce platform as the target printing component instance corresponding to the target printing request, and the target printing component instance is used to print the target e-commerce platform order data.

[0019] In a fourth aspect, an embodiment of the present application provides another data processing device, including:

[0020] a sending unit, configured to send a target print request to the server, the target print request including target e-commerce platform order data of a target e-commerce independent software developer, the server being configured to perform standardization processing on the target e-commerce platform order data of the target e-commerce independent software developer, and after determining based on the standardized target e-commerce platform order data that a print component instance corresponding to the target e-commerce platform exists in a preset print component instance set, use the print component instance corresponding to the target e-commerce platform as the target print component instance corresponding to the target print request, and print the target e-commerce platform order data through the target print component instance;

[0021] The acquiring unit is configured to acquire the printing result returned by the server.

[0022] In a fifth aspect, an embodiment of the present application provides a data processing device, including:

[0023] CPU, memory, input and output interfaces, wired or wireless network interfaces, and power supply;

[0024] The memory is a transient storage memory or a persistent storage memory;

[0025] The central processing unit is configured to communicate with the memory and execute instruction operations in the memory to perform the data processing method of the first aspect or the second aspect.

[0026] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, which includes instructions. When the instructions are executed on a computer, the computer executes the data processing method of the first aspect or the second aspect mentioned above.

[0027] In a seventh aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when the computer program product is run on a computer, enables the computer to execute the data processing method of the first aspect or the second aspect mentioned above.

[0028] It can be seen from the above technical solution that the embodiment of the present application has the following advantages: it can obtain the target print request sent by the client, standardize the target e-commerce platform order data of the target e-commerce independent software developer, and determine whether there is a print component instance corresponding to the target e-commerce platform in the preset print component instance set based on the standardized target e-commerce platform order data. If so, the print component instance corresponding to the target e-commerce platform is used as the target print component instance corresponding to the target print request. Once the print component of a certain e-commerce platform is successfully configured and tested and verified, this configured print component instance can be shared and used by multiple different e-commerce service providers (such as business side A and business side B), thereby avoiding the waste of repeated development and testing resources. Secondly, an intermediate layer is introduced for standardization processing, so that all order data can be converted into a universal standard format. When facing a new e-commerce platform, you only need to focus on how to convert the data of the platform into a standard format, and no longer need to connect to the specific needs of each platform one by one. Therefore, the efficiency of connecting to the new platform print component is higher. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 A schematic diagram of the architecture of a data processing system disclosed in an embodiment of the present application;

[0030] Figure 2 A flowchart of a data processing method disclosed in an embodiment of the present application;

[0031] Figure 2-1 A flowchart of another data processing method disclosed in an embodiment of the present application;

[0032] Figure 2-2 A flowchart of a data processing method disclosed in the prior art;

[0033] Figure 3 A flowchart of another data processing method disclosed in an embodiment of the present application;

[0034] Figure 4 A flowchart of another data processing method disclosed in an embodiment of the present application;

[0035] Figure 5 A schematic structural diagram of a data processing device disclosed in an embodiment of the present application;

[0036] Figure 6 A schematic structural diagram of another data processing device disclosed in an embodiment of the present application;

[0037] Figure 7 This is a structural diagram of a data processing device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0038] The embodiments of the present application provide a data processing method, a data processing apparatus, a data processing device, a computer-readable storage medium, and a computer program product containing instructions or a computer program, which can perform data processing while avoiding repeated development and waste of testing resources.

[0039] See also Figure 1 In the embodiment of the present application, the architecture of the data processing system 100 includes:

[0040] A server 101 of a software-as-a-service platform and a client 102 of the software-as-a-service platform. When performing data processing, the server 101 can connect to the client 102. The server 101 can obtain a target print request sent by the client 102, perform normalization on the target e-commerce platform order data of the target e-commerce independent software developer of the target print request, determine whether a print component instance corresponding to the target e-commerce platform exists in a preset print component instance set based on the normalized target e-commerce platform order data, and if so, use the print component instance corresponding to the target e-commerce platform as the target print component instance corresponding to the target print request, print the target e-commerce platform order data using the target print component instance, and return the print result to the client 102.

[0041] based on Figure 1 The data processing system shown is Figure 2 , Figure 2 This is a flow chart of a data processing method disclosed in an embodiment of the present application, which is applied to a server of a software-as-a-service platform, which also includes at least one client. The method includes:

[0042] 201. Obtain a target print request sent by a client, where the target print request includes target e-commerce platform order data of a target e-commerce independent software developer.

[0043] In this embodiment, when data processing is performed, a target print request sent by the client may be obtained, where the target print request includes target e-commerce platform order data of a target e-commerce independent software developer.

[0044] For details, please refer to Figure 2-1 , Figure 2-1 A flow chart of another data processing method disclosed in an embodiment of the present application, comprising Figure 2-1 It can be seen that the business-side e-commerce ISV is the target e-commerce independent software developer (such as an express company, etc.), and can obtain the target printing requests sent by the client A1 of the business-side e-commerce ISV A and the client B1 of the business-side e-commerce ISV B. These two target printing requests are used to represent the printing of e-commerce orders (printing face sheets) and e-commerce orders (printing delivery notes) through the e-commerce platform 1 printing component.

[0045] 202. Standardize the target e-commerce platform order data of the target e-commerce independent software developer to obtain standardized target e-commerce platform order data.

[0046] After obtaining the target print request sent by the client, the target e-commerce platform order data of the target e-commerce independent software developer may be standardized to obtain the standardized target e-commerce platform order data.

[0047] For details, please refer to Figure 2-1 ,Depend on Figure 2-1 It can be seen that the order data of the target printing requests sent by client A1 of the e-commerce ISV on the business side and client B1 of the e-commerce ISV on the business side can be standardized, and the standardized target e-commerce platform order data can be used as the printing data input parameter of the basic printing service.

[0048] It's worth mentioning that each e-commerce independent software developer may have different field naming rules (different field naming conventions), mandatory field requirements (for example, some require the recipient's phone number to be a mobile phone number, while others may accept landline or other contact information), etc. Standardization refers to converting data from different sources (e-commerce independent software developers) into a unified standard format so that this data can be effectively processed, analyzed, and applied in the same system environment, thereby improving the accuracy of data processing. Secondly, the order data of the target e-commerce platform of the target e-commerce independent software developer is first standardized. By introducing this unified basic printing service to match printing component instances, duplication of work can be reduced, work efficiency can be improved, and it helps maintain the stability and scalability of the system.

[0049] 203. Determine whether there is a printing component instance corresponding to the target e-commerce platform in the preset printing component instance set based on the standardized target e-commerce platform order data. The preset printing component instance set includes the printing component instance corresponding to the pre-configured e-commerce platform.

[0050] After obtaining the standardized target e-commerce platform order data, it is possible to determine whether there is a printing component instance corresponding to the target e-commerce platform in the preset printing component instance set based on the standardized target e-commerce platform order data. The preset printing component instance set includes the printing component instance corresponding to the pre-configured e-commerce platform.

[0051] It should be understood that different e-commerce platforms have different field naming rules, encoding and encryption mechanisms, and service interface differences. Therefore, different e-commerce platforms need to have their own corresponding printing component instances.

[0052] 204. If it exists, the printing component instance corresponding to the target e-commerce platform is used as the target printing component instance corresponding to the target printing request, and the target printing component instance is used to print the target e-commerce platform order data.

[0053] After determining whether there is a printing component instance corresponding to the target e-commerce platform in the preset printing component instance set based on the standardized target e-commerce platform order data, if it exists, the printing component instance corresponding to the target e-commerce platform will be used as the target printing component instance corresponding to the target printing request, and the target printing component instance is used to print the target e-commerce platform order data.

[0054] For details, please refer to Figure 2-1 ,Depend on Figure 2-1 It can be seen that the preset printing component instance set includes pre-configured e-commerce platform 1, e-commerce platform 2, e-commerce platform 3, e-commerce platform 4 and new e-commerce platform printing components. After the basic printing service obtains the printing data input parameters, it can determine the corresponding printing component instance (the printing component instance corresponding to e-commerce platform 1) based on the printing data input parameters.

[0055] It is worth mentioning that, in order to facilitate understanding of this application, the present application is compared with the prior art below:

[0056] (1) Regarding existing technical solutions:

[0057] See Figure 2-2 , Figure 2-2 A flow chart of a data processing method disclosed in the prior art is shown as follows: Figure 2-2 It can be seen that the data processing method of the existing technology is that for the business-side e-commerce ISV server, when there is a demand for access to a new e-commerce platform, developers are required to connect to the new platform's printing components based on the new e-commerce order data and construct the printing data required by the components to complete the printing. In other words, each business side needs to construct printing data based on its own printing order data to adapt to the new components. For example, user A1 on business side A and user B1 on business side B both have the need to use the printing component that e-commerce platform 1 should use. Developers on both business sides A and B are required to compare the data required by the printing component with the data differences on their respective business sides, and smooth out the printing data for compatibility. In addition, due to the possible differences in development languages, it is necessary to repeatedly connect to component documents. This method is inefficient and wastes development and testing resources.

[0058] Therefore, for the existing technical solutions, every time a new e-commerce platform is added to the access system, each business side needs to arrange developers to connect the printing components according to the platform printing component documentation. After the connection is completed, testing resources are needed for debugging and acceptance. The existing technical solutions usually have overlapping platforms when each business side is connected, resulting in a waste of development and testing resources.

[0059] (2) Regarding the technical solution of this application:

[0060] When the printing component of a new e-commerce platform needs to be integrated, the basic data developers only need to integrate it once for each additional platform. After completion, each business side does not need to worry about the data differences between the platforms or the printing component protocol of the newly added platform. The business side does not need to implement the new e-commerce platform's face order printing function independently. Each business side (e-commerce independent software developer) can use the new component to complete the printing function without any awareness. In other words, business sides A and B do not need to worry about the data required by the new printing component, and can use the basic printing service to implement the printing function.

[0061] In an embodiment of the present application, a target print request sent by a client can be obtained, and the target e-commerce platform order data of the target e-commerce independent software developer can be standardized. Based on the standardized target e-commerce platform order data, it is determined whether there is a print component instance corresponding to the target e-commerce platform in the preset print component instance set. If so, the print component instance corresponding to the target e-commerce platform is used as the target print component instance corresponding to the target print request. Once the print component of a certain e-commerce platform is successfully configured and tested and verified, this configured print component instance can be shared and used by multiple different e-commerce service providers (such as business side A and business side B), thereby avoiding the waste of repeated development and testing resources. Secondly, an intermediate layer is introduced for standardization processing, so that all order data can be converted into a universal standard format. When facing a new e-commerce platform, it is only necessary to focus on how to convert the data of the platform into a standard format, and there is no need to connect to the specific needs of each platform one by one. Therefore, the efficiency of connecting to the new platform print component is higher.

[0062] based on Figure 1 The data processing system shown is Figure 3 , Figure 3 This is a flow chart of another data processing method disclosed in an embodiment of the present application, which is applied to at least one client of a software-as-a-service platform, which also includes a server. The method includes:

[0063] 301. Send a target print request to the server, where the target print request includes the target e-commerce platform order data of the target e-commerce independent software developer. The server is configured to perform standardization on the target e-commerce platform order data of the target e-commerce independent software developer, and after determining that a print component instance corresponding to the target e-commerce platform exists in a preset print component instance set based on the standardized target e-commerce platform order data, use the print component instance corresponding to the target e-commerce platform as the target print component instance corresponding to the target print request, and print the target e-commerce platform order data through the target print component instance.

[0064] In this embodiment, when data processing is performed, a target printing request can be sent to the server. The target printing request includes the target e-commerce platform order data of the target e-commerce independent software developer. The server is used to standardize the target e-commerce platform order data of the target e-commerce independent software developer, and based on the standardized target e-commerce platform order data, determine that the preset printing component instance set contains the printing component instance corresponding to the target e-commerce platform. Then, the printing component instance corresponding to the target e-commerce platform is used as the target printing component instance corresponding to the target printing request, and print the target e-commerce platform order data through the target printing component instance.

[0065] Specifically, when the client of an e-commerce independent software developer needs to print data through the printing component of the target e-commerce platform, it can directly send a target printing request to the server. The target printing request includes the target e-commerce platform order data of the target e-commerce independent software developer. The server standardizes the target e-commerce platform order data of the target e-commerce independent software developer, and determines that the printing component instance corresponding to the target e-commerce platform exists in the preset printing component instance set based on the standardized target e-commerce platform order data. The printing component instance corresponding to the target e-commerce platform is used as the target printing component instance corresponding to the target printing request, and prints the target e-commerce platform order data through the target printing component instance.

[0066] It's important to understand that standardization involves converting data from different sources (e-commerce independent software developers) into a unified, standardized format. This allows for efficient processing, analysis, and application within the same system environment, thereby improving data processing accuracy. Secondly, standardizing the order data from the target e-commerce platform of the target e-commerce independent software developer is performed. By introducing this unified basic printing service to match printing component instances, duplication of effort can be reduced, efficiency can be improved, and system stability and scalability can be maintained.

[0067] 302. Get the print result returned by the server.

[0068] After sending a target print request to the server, you can get the print result returned by the server.

[0069] In an embodiment of the present application, a target print request can be sent to a server, and the server performs standardized processing on the target e-commerce platform order data of the target e-commerce independent software developer, and determines that the preset print component instance set contains the print component instance corresponding to the target e-commerce platform based on the standardized target e-commerce platform order data, and then uses the print component instance corresponding to the target e-commerce platform as the target print component instance corresponding to the target print request, and prints the target e-commerce platform order data through the target print component instance, so that the print result returned by the server can be obtained. Once the print component of a certain e-commerce platform is successfully configured and tested and verified, this configured print component instance can be shared and used by multiple different e-commerce service providers (such as business side A and business side B), thus avoiding the waste of repeated development and testing resources. Secondly, the server introduces an intermediate layer for standardized processing, so that all order data can be converted into a universal standard format. When facing a new e-commerce platform, it only needs to focus on how to convert the data of the platform into a standard format, and no longer needs to connect to the specific needs of each platform one by one. Therefore, the efficiency of connecting to the new platform print component is higher.

[0070] based on Figure 2 and Figure 3 For the example shown, see Figure 4 , Figure 4 This is a flow chart of another data processing method disclosed in an embodiment of the present application. The interacting entities are a server of a software-as-a-service platform and at least one client of the service platform. The method includes:

[0071] 401. The server obtains a target print request sent by the client, where the target print request includes target e-commerce platform order data of a target e-commerce independent software developer.

[0072] 402. The server performs standardization processing on the target e-commerce platform order data of the target e-commerce independent software developer to obtain the standardized target e-commerce platform order data.

[0073] 403. The server determines whether there is a printing component instance corresponding to the target e-commerce platform in the preset printing component instance set based on the standardized target e-commerce platform order data. The preset printing component instance set includes the printing component instance corresponding to the pre-configured e-commerce platform.

[0074] Steps 401 to 403 in this embodiment are similar to those in the previous embodiment. Figure 2 Steps 201 to 203 in the illustrated embodiment are similar and will not be described again here.

[0075] Among them, before determining whether there is a printing component instance corresponding to the target e-commerce platform in the preset printing component instance set based on the standardized target e-commerce platform order data, you can first obtain the printing component configuration information corresponding to the e-commerce platform, and then configure the printing component instance corresponding to the e-commerce platform based on the printing component configuration information corresponding to the e-commerce platform, and finally obtain the preset printing component instance set based on the printing component instance corresponding to the e-commerce platform.

[0076] Specifically, since each e-commerce platform has its own unique business rules and technical requirements, such as paper size selection and font style requirements, we can obtain their own unique printing component configuration information from each e-commerce platform, and then establish a printing component instance specifically for the characteristics of each e-commerce platform on the SaaS (Software as a Service) platform.

[0077] 404. If the server determines that the preset printing component instance set contains a printing component instance corresponding to the target e-commerce platform, the server uses the printing component instance corresponding to the target e-commerce platform as the target printing component instance corresponding to the target print request.

[0078] Step 404 in this embodiment is the same as the aforementioned Figure 2 Step 204 in the illustrated embodiment is similar and will not be described again here.

[0079] Specifically, the printing component instance corresponding to the required e-commerce platform can be determined based on the e-commerce platform field in the standardized target e-commerce platform order data. If the server determines that there is a printing component instance corresponding to the target e-commerce platform in the preset printing component instance set, the server will use the printing component instance corresponding to the target e-commerce platform as the target printing component instance corresponding to the target printing request.

[0080] 405. If the server determines that the printing component instance corresponding to the target e-commerce platform does not exist in the preset printing component instance set, the server configures the printing component instance corresponding to the target e-commerce platform based on the printing component configuration information corresponding to the target e-commerce platform, and uses the configured printing component instance corresponding to the target e-commerce platform as the target printing component instance corresponding to the target printing request.

[0081] After determining whether there is a printing component instance corresponding to the target e-commerce platform in the preset printing component instance set based on the standardized target e-commerce platform order data, if not, the printing component instance corresponding to the target e-commerce platform can be configured based on the printing component configuration information corresponding to the target e-commerce platform, and then the configured printing component instance corresponding to the target e-commerce platform is used as the target printing component instance corresponding to the target printing request.

[0082] Specifically, the printing component instance corresponding to the required e-commerce platform can be determined based on the e-commerce platform field in the standardized target e-commerce platform order data. If the server determines that the printing component instance corresponding to the target e-commerce platform does not exist in the preset printing component instance set, the server can configure the printing component instance corresponding to the target e-commerce platform based on the printing component configuration information corresponding to the target e-commerce platform, and then use the configured printing component instance corresponding to the target e-commerce platform as the target printing component instance corresponding to the target printing request.

[0083] It should be understood that the preset printing component instance set can be continuously expanded based on actual conditions, thereby increasing the flexibility of docking new printing components.

[0084] 406. The server prints the target e-commerce platform order data through the target printing component instance.

[0085] After determining the target printing component instance corresponding to the target printing request, the server can print the target e-commerce platform order data through the target printing component instance.

[0086] Step 406 in this embodiment is the same as the aforementioned Figure 2 Step 204 in the illustrated embodiment is similar and will not be described again here.

[0087] Among them, the method for printing the target e-commerce platform order data through the target printing component instance can be to initialize the target printing component instance, and if it is determined that the status of the target printing component instance is a successful startup status, then trigger the step of printing the target e-commerce platform order data through the target printing component instance.

[0088] Specifically, WebSocket technology can be used to create a continuous communication channel (dedicated channel), and through this channel, it can be confirmed whether the corresponding service program is in an available state. Only when the verification is correct will the actual printing task be executed and the final result will be fed back to the client.

[0089] It is worth mentioning that by adding a step to check the status of the printing components before actually printing, various errors caused by unpreparedness can be effectively avoided, such as problems caused by hardware failure or improper settings. This improves the service quality and user experience of the entire platform to a certain extent, and improves the reliability and stability of the system.

[0090] Among them, the method for printing the target e-commerce platform order data through the target printing component instance can be to first obtain a printer list and determine the identifier of the target printer in the printer list, and then determine the target printing template storage address of the target e-commerce platform through the target printing component instance, and then generate a target printing instruction based on the target printing template storage address, the identifier of the target printer and the target e-commerce platform order data, and finally send the target printing instruction to the printing end, and the printing end is used to obtain the target e-commerce platform printing template based on the target printing template storage address, generate the target printing data corresponding to the target e-commerce platform order data based on the target e-commerce platform printing template and the target e-commerce platform order data, and call the target printer to print the target printing data.

[0091] Specifically, the print template storage address (Uniform Resource Locator, URL) can be a download link, such as a Uniform Resource Locator, provided by the corresponding e-commerce platform. The target e-commerce platform's order data includes encrypted sensitive information, a reference to the file template's path (which tells the system which style to use for layout and rendering of the printed material), and a corresponding set of custom fields (which allows for additional information to be added for more flexible customization).

[0092] Among them, the method for obtaining a printer list and determining the identification of a target printer in the printer list can be to obtain a printer list through a target printing component instance or other printing component instance and determine the identification of the target printer in the printer list, where the other printing component instance is any printing component instance in a preset printing component instance set except the target printing component instance.

[0093] It is worth mentioning that if the target printing component instance cannot obtain the printer list, the printer list can be obtained through other qualified printing component instances, ensuring that important businesses are not affected, improving the quality and reliability of the overall solution, avoiding the interruption of the entire process due to problems with a single component, and greatly reducing the potential probability of service interruption.

[0094] Among them, the method of generating a target printing instruction based on the target printing template storage address, the target printer's identifier and the target e-commerce platform order data can be to encrypt the target printing template storage address, the target printer's identifier and the target e-commerce platform order data according to the encryption protocol corresponding to the target printing component instance to generate a target printing instruction.

[0095] It is worth mentioning that the WebSocket channel can be combined with encrypted data to improve the security of data transmission.

[0096] 407. The client obtains the print result returned by the server.

[0097] Step 407 in this embodiment is the same as the aforementioned Figure 3 Step 302 in the illustrated embodiment is similar and will not be described again here.

[0098] It is understandable that the printing component-related content of this application can also be packaged and deployed as a public project in a private domain environment for installation and use by various business terminals within the company, thereby improving reusability and version management.

[0099] In this embodiment, a target print request sent by a client can be obtained, and the target e-commerce platform order data of the target e-commerce independent software developer can be standardized. Based on the standardized target e-commerce platform order data, it is determined whether there is a print component instance corresponding to the target e-commerce platform in the preset print component instance set. If so, the print component instance corresponding to the target e-commerce platform is used as the target print component instance corresponding to the target print request. Once the print component of a certain e-commerce platform is successfully configured and tested and verified, this configured print component instance can be shared and used by multiple different e-commerce service providers (such as business side A and business side B), thus avoiding the waste of repeated development and testing resources. Secondly, an intermediate layer is introduced to perform standardization processing, so that all order data can be converted into a universal standard format. When facing a new e-commerce platform, it is only necessary to focus on how to convert the data of the platform into a standard format, and no longer needs to connect to the specific requirements of each platform one by one. Therefore, the efficiency of connecting to the new platform print component is higher. Then, by adding a step to check the status of the print component before actually printing, various error situations caused by not being ready can be effectively avoided, such as problems caused by hardware failure or improper settings, to a certain extent, improving the service quality and user experience of the entire platform, and improving the reliability and stability of the system. Furthermore, by adding a step to check the status of the printing components before actually printing, various errors caused by lack of readiness can be effectively avoided, such as problems caused by hardware failure or improper settings. This improves the service quality and user experience of the entire platform to a certain extent, and improves the reliability and stability of the system.

[0100] The data processing method in the embodiment of the present application is described above. The data processing device in the embodiment of the present application is described below. Figure 5 , an embodiment of the data processing device in the embodiment of the present application includes:

[0101] An acquiring unit, configured to acquire a target print request sent by the client, wherein the target print request includes target e-commerce platform order data of a target e-commerce independent software developer;

[0102] A standardization processing unit, configured to perform standardization processing on the target e-commerce platform order data of the target e-commerce independent software developer to obtain standardized target e-commerce platform order data;

[0103] a determining unit, configured to determine, based on the standardized target e-commerce platform order data, whether a printing component instance corresponding to the target e-commerce platform exists in a preset printing component instance set, wherein the preset printing component instance set includes pre-configured printing component instances corresponding to the e-commerce platform;

[0104] The determining unit is further configured to, if it exists, use the printing component instance corresponding to the target e-commerce platform as the target printing component instance corresponding to the target printing request, and the target printing component instance is used to print the target e-commerce platform order data.

[0105] The data processing device further includes: a configuration unit;

[0106] The acquisition unit is further configured to acquire the printing component configuration information corresponding to the e-commerce platform;

[0107] The configuration unit is configured to configure the printing component instance corresponding to the e-commerce platform based on the printing component configuration information corresponding to the e-commerce platform;

[0108] The acquisition unit is further configured to obtain the preset printing component instance set based on the printing component instance corresponding to the e-commerce platform.

[0109] The configuration unit is also used to configure the printing component instance corresponding to the target e-commerce platform based on the printing component configuration information corresponding to the target e-commerce platform if it does not exist, and use the configured printing component instance corresponding to the target e-commerce platform as the target printing component instance corresponding to the target printing request.

[0110] The data processing device further includes:

[0111] A printing unit is used to print the target e-commerce platform order data through the target printing component instance and return the printing result to the client.

[0112] The printing unit is specifically used to initialize the target printing component instance. If it is determined that the status of the target printing component instance is a successful startup state, the step of printing the target e-commerce platform order data through the target printing component instance is triggered.

[0113] The printing unit is specifically used to obtain a printer list, determine the identifier of the target printer in the printer list, determine the target printing template storage address of the target e-commerce platform through the target printing component instance, generate a target printing instruction based on the target printing template storage address, the identifier of the target printer and the target e-commerce platform order data, and send the target printing instruction to the printing end. The printing end is used to obtain the target e-commerce platform printing template based on the target printing template storage address, generate the target printing data corresponding to the target e-commerce platform order data based on the target e-commerce platform printing template and the target e-commerce platform order data, and call the target printer to print the target printing data.

[0114] The printing unit is specifically used to obtain the printer list through the target printing component instance or other printing component instances, and determine the identifier of the target printer in the printer list. The other printing component instance is any printing component instance in the preset printing component instance set except the target printing component instance.

[0115] The printing unit is specifically used to encrypt the target printing template storage address, the identifier of the target printer and the target e-commerce platform order data according to the encryption protocol corresponding to the target printing component instance to generate the target printing instruction.

[0116] In an embodiment of the present application, a target print request sent by a client can be obtained, and the target e-commerce platform order data of the target e-commerce independent software developer can be standardized. Based on the standardized target e-commerce platform order data, it is determined whether there is a print component instance corresponding to the target e-commerce platform in the preset print component instance set. If so, the print component instance corresponding to the target e-commerce platform is used as the target print component instance corresponding to the target print request. Once the print component of a certain e-commerce platform is successfully configured and tested and verified, this configured print component instance can be shared and used by multiple different e-commerce service providers (such as business side A and business side B), thereby avoiding the waste of repeated development and testing resources. Secondly, an intermediate layer is introduced for standardization processing, so that all order data can be converted into a universal standard format. When facing a new e-commerce platform, it is only necessary to focus on how to convert the data of the platform into a standard format, and there is no need to connect to the specific needs of each platform one by one. Therefore, the efficiency of connecting to the new platform print component is higher.

[0117] See also Figure 6 Another embodiment of the data processing device in the embodiment of the present application includes:

[0118] a sending unit, configured to send a target print request to the server, the target print request including target e-commerce platform order data of a target e-commerce independent software developer, the server being configured to perform standardization processing on the target e-commerce platform order data of the target e-commerce independent software developer, and after determining based on the standardized target e-commerce platform order data that a print component instance corresponding to the target e-commerce platform exists in a preset print component instance set, use the print component instance corresponding to the target e-commerce platform as the target print component instance corresponding to the target print request, and print the target e-commerce platform order data through the target print component instance;

[0119] The acquiring unit is configured to acquire the printing result returned by the server.

[0120] In an embodiment of the present application, a target print request can be sent to a server, and the server performs standardized processing on the target e-commerce platform order data of the target e-commerce independent software developer, and determines that the preset print component instance set contains the print component instance corresponding to the target e-commerce platform based on the standardized target e-commerce platform order data, and then uses the print component instance corresponding to the target e-commerce platform as the target print component instance corresponding to the target print request, and prints the target e-commerce platform order data through the target print component instance, so that the print result returned by the server can be obtained. Once the print component of a certain e-commerce platform is successfully configured and tested and verified, this configured print component instance can be shared and used by multiple different e-commerce service providers (such as business side A and business side B), thus avoiding the waste of repeated development and testing resources. Secondly, the server introduces an intermediate layer for standardized processing, so that all order data can be converted into a universal standard format. When facing a new e-commerce platform, it only needs to focus on how to convert the data of the platform into a standard format, and no longer needs to connect to the specific needs of each platform one by one. Therefore, the efficiency of connecting to the new platform print component is higher.

[0121] See below Figure 7 In an embodiment of the present application, an embodiment of the data processing device 700 includes:

[0122] CPU 701, memory 705, input / output interface 704, wired or wireless network interface 703 and power supply 702;

[0123] The memory 705 is a temporary storage memory or a permanent storage memory;

[0124] The CPU 701 is configured to communicate with the memory 705 and execute the instructions in the memory 705 to perform the aforementioned Figure 2 、 Figure 4 The method in the embodiment shown, or executing the aforementioned Figure 3The method in the embodiment shown.

[0125] The embodiment of the present application also provides a computer-readable storage medium, which includes instructions. When the instructions are executed on a computer, the computer executes the aforementioned Figure 2 、 Figure 4 The method in the embodiment shown, or executing the aforementioned Figure 3 The method in the embodiment shown.

[0126] The present application also provides a computer program product comprising instructions, which, when executed on a computer, causes the computer to execute the aforementioned Figure 2 、 Figure 4 The method in the embodiment shown, or executing the aforementioned Figure 3 The method in the embodiment shown.

[0127] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

[0128] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0129] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as 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 an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0130] 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.

[0131] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0132] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, server, or 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: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk, and other media that can store program code.

Claims

1. A data processing method, characterized in that: A method for a server applied to a software-as-a-service platform, wherein the software-as-a-service platform further includes at least one client, comprising: Acquire a target print request sent by the client, wherein the target print request includes target e-commerce platform order data of a target e-commerce independent software developer; Standardizing the target e-commerce platform order data of the target e-commerce independent software developer to obtain standardized target e-commerce platform order data; Determining, based on the standardized target e-commerce platform order data, whether a printing component instance corresponding to the target e-commerce platform exists in a preset printing component instance set, wherein the preset printing component instance set includes a pre-configured printing component instance corresponding to the e-commerce platform; If it exists, the printing component instance corresponding to the target e-commerce platform is used as the target printing component instance corresponding to the target printing request, and the target printing component instance is used to print the target e-commerce platform order data.

2. The method according to claim 1, characterized in that Before determining whether a printing component instance corresponding to the target e-commerce platform exists in a preset printing component instance set based on the standardized target e-commerce platform order data, the method further includes: Get the printing component configuration information corresponding to the e-commerce platform; Configure the printing component instance corresponding to the e-commerce platform based on the printing component configuration information corresponding to the e-commerce platform; The preset printing component instance set is obtained based on the printing component instance corresponding to the e-commerce platform.

3. The method according to claim 1, characterized in that After determining whether there is a printing component instance corresponding to the target e-commerce platform in the preset printing component instance set based on the standardized target e-commerce platform order data, the method further includes: If it does not exist, configuring the printing component instance corresponding to the target e-commerce platform based on the printing component configuration information corresponding to the target e-commerce platform; The configured printing component instance corresponding to the target e-commerce platform is used as the target printing component instance corresponding to the target printing request.

4. The method according to claim 1, wherein After the printing component instance corresponding to the target e-commerce platform is used as the target printing component instance corresponding to the target printing request in the printing component instance set, the method further includes: The target e-commerce platform order data is printed through the target printing component instance, and the printing result is returned to the client.

5. The method according to claim 4, characterized in that Printing the target e-commerce platform order data through the target printing component instance includes: Initializing the target printing component instance; If it is determined that the status of the target printing component instance is a startup success status, the step of printing the target e-commerce platform order data through the target printing component instance is triggered.

6. The method according to claim 4, characterized in that Printing the target e-commerce platform order data through the target printing component instance includes: Obtaining a printer list and determining an identifier of a target printer in the printer list; Determine the target printing template storage address of the target e-commerce platform through the target printing component instance; Generate a target printing instruction based on the target printing template storage address, the identifier of the target printer and the target e-commerce platform order data; The target printing instruction is sent to the printing end, and the printing end is used to obtain the target e-commerce platform printing template based on the target printing template storage address, generate the target printing data corresponding to the target e-commerce platform order data based on the target e-commerce platform printing template and the target e-commerce platform order data, and call the target printer to print the target printing data.

7. The method according to claim 6, characterized in that The obtaining of the printer list and determining the identifier of the target printer in the printer list includes: The printer list is obtained through the target printing component instance or other printing component instances, and the identifier of the target printer is determined in the printer list. The other printing component instance is any printing component instance in the preset printing component instance set except the target printing component instance.

8. The method according to claim 6, characterized in that The generating a target printing instruction based on the target printing template storage address, the identifier of the target printer, and the target e-commerce platform order data includes: According to the encryption protocol corresponding to the target printing component instance, the target printing template storage address, the identifier of the target printer and the target e-commerce platform order data are encrypted to generate the target printing instruction.

9. A data processing method, characterized in that: The method is applied to at least one client of a software-as-a-service platform, wherein the software-as-a-service platform further includes a server, and comprises: sending a target print request to the server, the target print request including target e-commerce platform order data of a target e-commerce independent software developer, the server being configured to perform standardization processing on the target e-commerce platform order data of the target e-commerce independent software developer, and determining based on the standardized target e-commerce platform order data that a print component instance corresponding to the target e-commerce platform exists in a preset print component instance set, using the print component instance corresponding to the target e-commerce platform as the target print component instance corresponding to the target print request, and printing the target e-commerce platform order data through the target print component instance; Get the print result returned by the server.

10. A data processing device, characterized in that: include: An acquiring unit, configured to acquire a target print request sent by the client, wherein the target print request includes target e-commerce platform order data of a target e-commerce independent software developer; A standardization processing unit, configured to perform standardization processing on the target e-commerce platform order data of the target e-commerce independent software developer to obtain standardized target e-commerce platform order data; a determining unit, configured to determine, based on the standardized target e-commerce platform order data, whether a printing component instance corresponding to the target e-commerce platform exists in a preset printing component instance set, wherein the preset printing component instance set includes pre-configured printing component instances corresponding to the e-commerce platform; The determining unit is further configured to, if it exists, use the printing component instance corresponding to the target e-commerce platform as the target printing component instance corresponding to the target printing request, and the target printing component instance is used to print the target e-commerce platform order data.

11. A data processing device, characterized in that: include: a sending unit, configured to send a target print request to the server, the target print request including target e-commerce platform order data of a target e-commerce independent software developer, the server being configured to perform standardization processing on the target e-commerce platform order data of the target e-commerce independent software developer, and after determining based on the standardized target e-commerce platform order data that a print component instance corresponding to the target e-commerce platform exists in a preset print component instance set, use the print component instance corresponding to the target e-commerce platform as the target print component instance corresponding to the target print request, and print the target e-commerce platform order data through the target print component instance; The acquiring unit is configured to acquire the printing result returned by the server.

12. A data processing device, characterized in that: include: central processing unit and memory; The memory is a transient storage memory or a persistent storage memory; The central processing unit is configured to communicate with the memory and execute instructions in the memory to perform the method according to any one of claims 1 to 8 or claim 9.

13. A computer-readable storage medium, characterized in that The computer-readable storage medium includes instructions, and when the instructions are executed on a computer, the computer is caused to perform the method according to any one of claims 1 to 8 or claim 9.

14. A computer program product comprising instructions or a computer program, characterized in that When the computer program product is run on a computer, the computer is caused to perform the method according to any one of claims 1 to 8 or claim 9.

Citation Information

Patent Citations

  • Bank accounting system assembly method and system supporting rapid business response

    CN108171597A

  • Express sheet printing method and system, electronic equipment and computer readable storage medium

    CN116382601A

  • Hybrid printing method and system, electronic equipment and storage medium

    CN116820365A

  • Remote aggregation printing method and system for multiple e-commerce platforms, medium and product

    CN118819432A

  • Order printing method and device

    CN119473186A