Processing method and device and electronic equipment

By determining the platform and component identification in multi-platform user interface development, processing messages are obtained and processing them on the target platform, the complexity problems caused by the differences in business logic of different platforms are solved, and processing efficiency and code reuse rate are improved.

CN119065710APending Publication Date: 2024-12-03CHENGDU GUANGHEXINHAO TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310630892.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-30
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

In the development of multi-platform user interface, due to the differences in business logic between different platforms, the code of the UI interface is difficult to separate from the business logic of multiple platforms, resulting in the high complexity of changing the UI interface of the platform and the cost of code reuse is relatively high. high.

Method used

By determining the platform identity and component identity, obtain processing messages containing the platform identity and business logic, process messages in the target platform, and decouple components from the business logic of the platform except the target platform, reducing the change complexity and processing result size.

Benefits of technology

It realizes the decoupling of components and multi-end platform business logic, reduces the processing complexity and processing result size of single-ended platform, and improves processing efficiency and code reuse rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119065710A_ABST
    Figure CN119065710A_ABST
Patent Text Reader

Abstract

The invention provides a processing method and apparatus, and an electronic device. The method comprises the steps of determining an identifier of a first platform and an identifier of a to-be-processed first component; according to the identifier of the first platform and the identifier of the first component, obtaining a first processing logic message of the first component, the first processing logic message comprising the identifier of the first component, the identifier of the first platform, and a service logic of the first component related to the first platform; and processing the first processing logic message in the first platform to obtain a processing result of the first component in the first platform. The decoupling of the business logic of the component and the multi-terminal platform is realized, and the complexity of changing the business logic is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of computer technology, and more particularly to a processing method, device, and electronic device. Background Art

[0002] When developing a user interface (UI) in an application, the user interface can be compiled to run on multiple platforms (such as a PC platform, etc.).

[0003] Currently, due to the consistency of UI interfaces on multiple platforms, a set of codes can be used to develop the UI interface of an application, and the UI interface code can be coupled with the business logic of multiple platforms, which can improve the efficiency of UI page development. However, in some scenarios, there are large differences in the business logic between different platforms, and the UI interface code is difficult to separate from the business logic of multiple platforms, resulting in high complexity in changing the platform's UI interface. Summary of the invention

[0004] The present disclosure provides a processing method, an apparatus and an electronic device for solving one or more technical problems of the prior art.

[0005] In a first aspect, the present disclosure provides a processing method, the method comprising:

[0006] Determining an identifier of a first platform and an identifier of a first component to be processed;

[0007] Acquire, according to the identifier of the first platform and the identifier of the first component, a first processing logic message of the first component, where the first processing logic message includes the identifier of the first component, the identifier of the first platform, and business logic related to the first component and the first platform;

[0008] The first processing logic message is processed in the first platform to obtain a processing result of the first component in the first platform.

[0009] In a second aspect, the present disclosure provides a processing device, the processing device comprising a first determining module, an acquiring module and a processing module, wherein:

[0010] The first determination module is used to determine the identifier of the first platform and the identifier of the first component to be processed;

[0011] The acquisition module is used to acquire a first processing logic message of the first component according to the identifier of the first platform and the identifier of the first component, wherein the first processing logic message includes the identifier of the first component, the identifier of the first platform, and the business logic of the first component related to the first platform;

[0012] The processing module is used to process the first processing logic message in the first platform to obtain a processing result of the first component in the first platform.

[0013] In a third aspect, an embodiment of the present disclosure provides an electronic device including: a processor and a memory;

[0014] The memory stores computer-executable instructions;

[0015] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the above-mentioned first aspect and various processing methods that may be involved in the first aspect.

[0016] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the processing method as described in the first aspect and various possible aspects of the first aspect are implemented.

[0017] The present disclosure provides a processing method, an apparatus and an electronic device. The electronic device can determine the identifier of a first platform and the identifier of a first component to be processed, and obtain a first processing logic message of the first component according to the identifier of the first platform and the identifier of the first component, wherein the first processing logic message includes the identifier of the first component, the identifier of the first platform, and the business logic related to the first component and the first platform. The first processing logic message is processed in the first platform to obtain a processing result of the first component in the first platform. In the above method, since the first logic message in the message pool includes the business logic related to the first component and the first platform, and the first logic message does not contain the business logic related to the first component and other platforms, the terminal device can process the first logic message only based on the first platform to obtain the processing result related to the first platform, thereby realizing the decoupling of the business logic of the first component from other platforms except the first platform, thereby reducing the complexity of the electronic device changing the first component in the first platform, and since the first platform can only process the business logic of the first component and the first platform to obtain the processing result of the first component in the first platform, therefore, only the code related to the first platform exists in the processing result, thereby avoiding the appearance of code related to other platforms in the processing result, thereby reducing the size of the processing result and improving the processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0019] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present disclosure;

[0020] Figure 2 A flowchart of a processing method provided by an embodiment of the present disclosure;

[0021] Figure 3 A schematic diagram of determining a first platform and a first component provided in an embodiment of the present disclosure;

[0022] Figure 4 Another schematic diagram of determining a first platform and a first component provided in an embodiment of the present disclosure;

[0023] Figure 5 A schematic diagram of a message pool provided in an embodiment of the present disclosure;

[0024] Figure 6 A schematic diagram of obtaining a first processing logic message provided by an embodiment of the present disclosure;

[0025] Figure 7 A schematic diagram of a method for storing and processing logical messages provided by an embodiment of the present disclosure;

[0026] Figure 8 A schematic diagram of a process for determining a second processing logic message provided by an embodiment of the present disclosure;

[0027] Fig. 9 A process diagram of a processing method provided by an embodiment of the present disclosure;

[0028] Fig.10 A schematic diagram of the structure of a processing device provided in an embodiment of the present disclosure;

[0029] Fig.11 A schematic diagram of the structure of another processing device provided in an embodiment of the present disclosure;

[0030] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0031] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0032] To facilitate understanding, the concepts involved in the embodiments of the present disclosure are explained below.

[0033] Electronic device: a device with wireless transceiver function. Electronic devices can be deployed on land, including indoors or outdoors, handheld, wearable or vehicle-mounted; they can also be deployed on the water (such as ships, etc.). The electronic device can be a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) electronic device, an augmented reality (AR) electronic device, a wireless terminal in industrial control, a vehicle-mounted electronic device, a wireless terminal in self-driving, a wireless electronic device in remote medical, a wireless electronic device in smart grid, a wireless electronic device in transportation safety, a wireless electronic device in smart city, a wireless electronic device in smart home, a wearable electronic device, etc. The electronic device involved in the embodiments of the present disclosure can also be called a terminal, a user equipment (UE), an access electronic device, a vehicle-mounted terminal, an industrial control terminal, a UE unit, a UE station, a mobile station, a mobile station, a remote station, a remote electronic device, a mobile device, a UE electronic device, a wireless communication device, a UE agent or a UE device, etc. Electronic devices may also be fixed or mobile.

[0034] In the related art, when developing the UI interface in the application page, in order to be compatible with multiple platforms, a user interface that can run on multiple platforms can be compiled. At present, due to the consistency of the UI interface on multiple platforms, a set of codes can be used to develop the UI interface of the application, and the code of the UI interface can be coupled with the business logic of multiple platforms, thereby improving the efficiency of UI interface development. For example, for a click event of any component in the UI interface, the event can be coupled with the business logic of the PC platform and the business logic of other platforms. In this way, only one set of code is needed to be compatible with the PC platform and other platforms, thereby improving the efficiency of development. However, in some scenarios, there are large differences in the business logic between different platforms, and the code of the UI interface is difficult to separate from the business logic of multiple platforms. For example, when the electronic device changes the business logic of the component on the PC platform, because the component is coupled with the business logic of the PC platform and the business logic of other platforms, it is necessary to change the overall code, which leads to a high complexity of changing the components of the single-end platform, and the cost of code reuse is high.

[0035] In order to solve the technical problems in the related art, the embodiment of the present disclosure provides a processing method, in which the electronic device can determine the identification of the first platform and the identification of the first component to be processed, obtain multiple processing logic messages related to the first platform in the message pool according to the identification of the first platform, and determine the first processing logic message of the first component in the multiple processing logic messages related to the first platform according to the identification of the first component, process the first processing logic message in the first platform, and obtain the processing result of the first component in the first platform. In the above method, the message pool can pre-store the logic processing messages of multiple components in different platforms to achieve the decoupling of the business logic between the components in the UI interface and multiple platform ends. In this way, when the product of the component in the UI interface is processed based on the single-end platform, the electronic device can obtain the logic processing message including the business logic related to the component and the single-end platform in the message pool, thereby reducing the complexity of the single-end processing, and the processing result only has the code related to the platform, avoiding the code related to other platforms in the processing result, thereby reducing the size of the processing result and improving the processing efficiency.

[0036] Next, combine Figure 1 , the application scenarios of the embodiments of the present disclosure are described.

[0037] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present disclosure. Figure 1, including: user interface. The user interface may include component A and component B, and the electronic device may process the designed user interface. The electronic device may process the user interface based on platform 1 to obtain the processing result of the user interface on platform 1, and the electronic device may process the user interface based on platform 2 to obtain the processing result of the user interface on platform 2. In this way, the user interface code is decoupled from the business logic code of platform 1 and the business logic code of platform 2. Therefore, platform 1 may only modify the code of the user interface related to platform 1, reducing the complexity of single-end code modification, and the processing result generated by the platform is only related to the platform and has nothing to do with other platforms, thereby reducing the size of the processing result and improving the processing effect.

[0038] The technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.

[0039] Figure 2 A flowchart of a processing method provided by an embodiment of the present disclosure. Figure 2 , the method may include:

[0040] S201. Determine an identifier of a first platform and an identifier of a first component to be processed.

[0041] The execution subject of the embodiments of the present disclosure may be an electronic device, or a processing device disposed in the electronic device. The processing device may be implemented by software, or by a combination of software and hardware, which is not limited in the embodiments of the present disclosure. Optionally, the electronic device may be any device with end-to-end computing capabilities, which is not limited in the embodiments of the present disclosure.

[0042] Among them, the first platform can be a platform for processing the first component. For example, if the platform packages the relevant code of the first component and processes the packaged code to obtain a product, then the platform can be the first platform. For example, the first platform can be a PC platform, etc., which is not limited in the embodiments of the present disclosure. For example, if the electronic device processes the code related to the first component through platform 1, then platform 1 can be the first platform, and if the electronic device processes the code related to the first component through platform 2, then platform 2 can be the first platform.

[0043] Optionally, the identifier of the first platform may be the name of the first platform, or may be any unique identifier (eg, 0, 1, 2, etc.), which is not limited in the embodiments of the present disclosure.

[0044] The first component may be a component to be processed. For example, the first component may be a component in a user interface, and a component is an element constituting a user interface. For example, when an electronic device processes a user interface through a first platform, if the user interface includes 100 components, the 100 components may be the first component.

[0045] It should be noted that the processing in the embodiments of the present disclosure may specifically be a compile process, that is, compilation. For example, the first component may be a component to be compiled, and the first platform may be a platform that compiles the first component.

[0046] Optionally, the identifier of the first component may be the name of the first component, or may be any unique identifier (such as an identifier obtained by parsing the component name according to preset rules, etc.), which is not limited in the embodiments of the present disclosure.

[0047] Optionally, the electronic device may determine the identification of the first platform and the identification of the first component according to the following feasible implementation method: displaying a processing interface, the processing interface including controls and user interfaces of multiple platforms, the user interface including multiple components to be processed, determining the identification of the first platform in response to touch operations on the controls of the multiple platforms, and determining the identification of the first component in response to touch operations on the multiple components to be processed.

[0048] Optionally, the processing interface includes controls and user interfaces of multiple platforms, and the user interface includes multiple components to be processed. For example, the processing interface may be a compilation interface, and the compilation interface may include controls of platform 1 and controls of platform 2. The compilation interface may also include a user interface, and the user interface may include component A and component B. If a user clicks on the control of platform 1 and clicks on component A, the electronic device may determine that the first platform is platform 1 and the first component is component A. If a user clicks on the control of platform 2 and clicks on component B, the electronic device may determine that the first platform is platform 2 and the first component is component B.

[0049] Next, combine Figure 3 , the process of determining the first platform and the first component is explained.

[0050] Figure 3 A schematic diagram of determining a first platform and a first component provided in an embodiment of the present disclosure. Figure 3, including an electronic device. Among them, the compilation interface can be displayed on the screen of the electronic device, the editing interface can include platform 1 controls, platform 2 controls and a user interface, and the user interface can include component A and component B. If the user clicks on the platform 2 control and component B in the user interface, the electronic device can determine that the first platform is platform 2 and the first component is component B, that is, the electronic device can compile component B based on platform 2, obtain the compilation result of component B under platform 2, and then realize the process of compiling components on a single-end platform, reduce the complexity of compilation, and improve the efficiency of compilation.

[0051] Optionally, the electronic device may determine the identifier of the first platform and the identifier of the first component according to the following feasible implementation method: in response to a processing command input to the electronic device, determine the identifier of the first platform and the identifier of the first component according to the processing command request.

[0052] The processing command may include instructions indicating the first component and the first platform. For example, the processing command may be a compile command. If the user enters an instruction including the identifier of platform a and the identifier of component A in the command bar displayed by the electronic device, the electronic device may determine platform a as the first platform and component A as the first component, thereby obtaining the identifier of the first platform and the identifier of the first component; if the user enters an instruction including the identifier of platform b and the identifier of component B in the command bar displayed by the electronic device, the electronic device may determine platform b as the first platform and component B as the first component, thereby obtaining the identifier of the first platform and the identifier of the first component.

[0053] Next, combine Figure 4 , the process of determining the first platform and the first component is explained.

[0054] Figure 4 Another schematic diagram of determining the first platform and the first component provided by the embodiment of the present disclosure. Figure 4 , including an electronic device. The display page of the electronic device includes a compilation command bar. Input the command: / aaaa / bbbb into the compilation command bar. If aaaa is the identifier of platform A and cccc is the identifier of component 1, the electronic device can determine that the first platform is platform A and the first component is component 1 based on the input command, and then obtain the identifier of the first platform and the identifier of the first component.

[0055] In this way, the electronic device can implement the compilation of the user interface on a single-end platform, obtain the product of the user interface on the single-end platform, decouple the user interface code from the business logic of multiple terminals on the code side, reduce the complexity of the platform business logic corresponding to the modification component of the single-end platform, reduce the size of the processing results, and improve the processing effect.

[0056] S202. Obtain a first processing logic message of the first component according to the identifier of the first platform and the identifier of the first component.

[0057] The first processing logic message includes the identifier of the first component, the identifier of the first platform, and the business logic related to the first component and the first platform. Optionally, the business logic may include display logic and event logic related to the first component and the first platform.

[0058] The display logic may include the processing logic for displaying the component in the platform. For example, the display logic may include the size of the icon displayed by the component, the display logic may include the icon or special effect displayed by the component after clicking the component, and the display logic may also include the display special effect of the component when the component is slid.

[0059] Optionally, the display logic of the component on different platforms may be different. For example, the display logic of the component on platform 1 may include that the icon size of the component is 10 pixels * 10 pixels, and the display logic of the component on platform 2 may include that the icon size of the component is 20 pixels * 20 pixels. For example, the display logic of the component on platform 1 may include updating the icon of the component after the component is operated on a stand-alone machine, and the display logic of the component on platform 2 may include displaying a preset display effect after the component is operated on a stand-alone machine.

[0060] It should be noted that the display logic can be the processing logic for component display, wherein the processing logic for component display can be the logic for displaying the component on the platform, or it can be the logic for displaying the component on the platform after operating the component (such as single-clicking, double-clicking, etc.), and the present disclosed embodiment does not limit this.

[0061] The event logic may be the processing logic after the component is operated. For example, the event logic may be the processing logic after the component is clicked, the processing logic after the component is double-clicked, the processing logic after the component is slid, etc., which is not limited in the embodiments of the present disclosure.

[0062] Optionally, the event logic of the components on different platforms may be different. For example, the event logic of the audio component on platform 1 may include that after a single-click operation is performed on the audio component, the electronic device may play the audio, and the event logic of the audio component on platform 2 may include that after a single-click operation is performed on the audio component, the electronic device may increase the volume (this is only an exemplary illustration and not a limitation of the embodiments of the present disclosure).

[0063] It should be noted that the event logic may be the processing logic after an operation is performed on a component. In the same platform, after different operations are performed on a component, the processing logic of the component may be different, and the embodiments of the present disclosure do not limit this.

[0064] Optionally, the display logic and event logic corresponding to the component can be implemented by code. In the embodiment of the present disclosure, the display logic and event logic of the component on the single-end platform can be encapsulated in the processing logic message, so that the display logic and event logic of the component and the multi-end platform can be decoupled. For example, if the component includes display logic A and event logic 1 on platform a, and the component includes display logic B and event logic 2 on platform b, then the component can include 2 processing logic messages, one of which can include the display logic A and event logic 1 related to the component and platform a, and the other can include the display logic B and time logic 2 related to the component and platform b. In this way, the component is only related to the business logic of the single-end platform, which facilitates the modification of the event logic of the component in the single-end platform and reduces the complexity of the operation.

[0065] Optionally, the electronic device may obtain the first processing logic message of the first component in the message pool according to the following feasible implementation method: according to the identifier of the first platform, obtain multiple processing logic messages related to the first platform in the message pool; according to the identifier of the first component, determine the first processing logic message from the multiple processing logic messages related to the first platform.

[0066] The message pool may include multiple processing logic messages of multiple components, wherein the business logic of the same component in different platforms is different, and the message pool may store multiple processing logic messages corresponding to the component. For example, if the business logic of a component in platform 1 and platform 2 is different, the message pool may store two processing logic messages of the component, wherein one processing logic message includes the business logic of the component in platform 1, and the other processing logic message includes the business logic of the component in platform 2.

[0067] Next, combine Figure 5 , describe the message pool.

[0068] Figure 5 A schematic diagram of a message pool provided by an embodiment of the present disclosure. Figure 5, including: a message pool. Among them, the message pool may include messages related to platform A, messages related to platform B, and messages related to platform C. Among them, the messages related to platform A may include processing logic message 1 of component a, processing logic message 4 of component b, and processing logic message 7 of component c, the messages related to platform B may include processing logic message 2 of component a, processing logic message 5 of component b, and processing logic message 8 of component c, and the messages related to platform C may include processing logic message 3 of component a, processing logic message 6 of component b, and processing logic message 9 of component c. In this way, in the message pool, component a includes different processing logic messages in different platforms, and the component identifiers in the 3 processing logic messages of component a are the same, but the platform identifier and the business logic related to the component and the platform are different, thereby achieving the effect of decoupling the business logic of the component and the multi-terminal platform.

[0069] Among them, the identification of the platform of the multiple processing logic messages related to the first platform is the identification of the first platform. For example, the message pool includes processing logic message A, processing logic message B and processing logic message C. If the identification of the platform in processing logic message A and processing logic message B is the identification of the first platform, the electronic device can determine that the processing logic messages related to the first platform are processing logic message A and processing logic message B.

[0070] Among them, the electronic device can determine the first processing logic message corresponding to the first component in multiple processing logic messages related to the first platform according to the identifier of the first component. For example, the processing logic messages related to the first platform include processing logic message A, processing logic message B, and processing logic message C. If the component identifier in processing logic message A is the same as the identifier of the first component, the electronic device can determine that the first processing logic message is processing logic message A.

[0071] Next, combine Figure 6 , describes a process in which an electronic device obtains a first processing logic message of a first component in a message pool.

[0072] Figure 6 A schematic diagram of obtaining a first processing logic message provided by an embodiment of the present disclosure. Figure 6 , including: a message pool and an electronic device. The message pool includes messages related to platform A, messages related to platform B, and messages related to platform C. The messages related to platform A may include processing logic message 1 of component a, processing logic message 4 of component b, and processing logic message 7 of component c, the messages related to platform B may include processing logic message 2 of component a, processing logic message 5 of component b, and processing logic message 8 of component c, and the messages related to platform C may include processing logic message 3 of component a, processing logic message 6 of component b, and processing logic message 9 of component c.

[0073] See also Figure 6 , the display page of the electronic device is a compiled page, wherein the compiled page may include controls of platform A, controls of platform B, controls of platform C and a user interface, and the user interface includes components a, b and c. If the user clicks on the controls of platform C and component c, the electronic device may determine that the first processing logic message is a processing logic message of component c 9. Figure 6 In the illustrated embodiment, the user can change the processing logic message of any component of a single-end platform. For example, when the user clicks on the control and component a of platform A, the user can change the processing logic message of component a, and further modify the business logic of component a in platform A, thereby achieving component customization effects on different platform ends and reducing the complexity of changing component logic.

[0074] Optionally, the electronic device may store processing logic messages of different platforms at different addresses, so that the electronic device may determine the storage location of the processing logic message related to the first platform according to the identifier of the first platform, and then obtain the first processing logic message of the first component through the identifier of the first component. For example, the electronic device may store the processing logic message related to platform 1 at address A, and store the processing logic message related to platform 2 at address B. If the first platform is platform 1, the electronic device may obtain the processing logic message related to platform 1 based on address A. If the first platform is platform 2, the electronic device may obtain the processing logic message related to platform 2 based on address B.

[0075] It should be noted that the multiple processing logic messages stored in the message pool are messages after the components are decoupled from the multi-terminal platform. Therefore, the electronic device can obtain the first logic message in the message pool based on any feasible implementation method, and the embodiments of the present disclosure are not limited to this.

[0076] S203: Process the first processing logic message in the first platform to obtain a processing result of the first component in the first platform.

[0077] The processing result may be the product after the platform compiles the packaged component-related code. For example, multiple components of the user interface and the business logic corresponding to each component on the PC platform can be written through the code. In this way, after the PC platform packages and compiles the code, the product of the user interface on the PC platform can be obtained. After the PC side parses the product, the user interface can be displayed on the PC side. For example, if a preset special effect can be displayed after clicking on a component on the PC platform, then after the PC side parses the product of the component, if the user clicks on the component, the PC side can display the preset special effect.

[0078] It should be noted that the actual application scenario of the user interface is the use of the product. The above processing process is a compilation method used on the development side. The use of the processing results is similar to the prior art, and the embodiments of the present disclosure will not be repeated here.

[0079] Optionally, the electronic device may obtain the processing result of the first component in the first platform according to the following feasible implementation method: obtain the business logic related to the first component and the first platform in the first processing logic message, compile the business logic related to the first component and the first platform according to the first platform, and obtain the processing result of the first component in the first platform.

[0080] Among them, the first platform can include all the platform logic of the first platform. Therefore, after the electronic device obtains the business logic related to the first component and the first platform, the business logic can be compiled based on the first platform to obtain the processing result of the first component. Moreover, the processing result is only the processing result of the first component in the first platform, and does not include the processing results of the first component in other platforms, thereby reducing the size of the processing result and improving the processing efficiency.

[0081] It should be noted that in the prior art, since the first component is coupled with the business logic of platform 1 and the business logic of platform 2, after the processing result of the first component is generated, the processing result may include the processing result of platform 1 and the processing result of platform 2. In this way, more useless logic codes of the platform are introduced when processing the single-end platform, which will lead to low processing efficiency. In the disclosed embodiment, since the first component in the message pool is coupled with the business logic of platform 1, and the first component is coupled with the business logic of platform 2, when obtaining the product of platform 1, the electronic device can process the code that couples the business logic of the first component with the platform 1, and only obtains the processing result of the first component on platform 1. In this way, the processing efficiency can be improved, the reuse rate of the code can be improved, and the cost and complexity of code changes can be reduced.

[0082] The disclosed embodiment provides a processing method, in which an electronic device can determine the identifier of a first platform and the identifier of a first component to be processed, obtain multiple processing logic messages related to the first platform in a message pool according to the identifier of the first platform, determine a first processing logic message among multiple processing logic messages related to the first platform according to the identifier of the first component, process the first processing logic message in the first platform, and obtain the processing result of the first component in the first platform. In this way, when an electronic device processes the processing result of a component on a single-end platform, the electronic device can obtain a logical processing message including the business logic of the component related to the single-end platform in the message pool, thereby reducing the complexity of single-end processing, and the processed processing result only contains codes related to the platform, avoiding the presence of codes related to other platforms in the processing result, thereby reducing the size of the processing result and improving the processing efficiency.

[0083] exist Figure 2 Based on the embodiment shown in the figure, before obtaining the first processing logic message of the first component, the above processing method also includes a method for storing the processing logic message in the message pool. Figure 7 , a method for storing and processing logic messages in a message pool is described.

[0084] Figure 7 A schematic diagram of a method for storing and processing logical messages provided by an embodiment of the present disclosure. Figure 7 The method flow includes:

[0085] S701. Determine multiple second processing logic messages of multiple second components.

[0086] The second component is a component corresponding to different business logics on different platforms. For example, in actual application, a user interface may include multiple components, but most components are consistent across multiple platforms, and a few components have different processing logics on different platforms. Therefore, the few components may be the second component determined by the electronic device.

[0087] For example, in actual application, if the business logic of the component is the same on different platforms, there is no need to add the logic code for platform judgment in the code writing, and only one set of business logic code needs to be written. For example, if the business logic is to obtain the power of the electronic device, the business logic for obtaining the power of the electronic device is the same in platform 1 and platform 2.

[0088] For example, the user interface may include component A, component B, and component C. If the business logic of component A and component B on platform 1 and platform 2 are the same, and the business logic of component C on platform 1 is different from that on platform 2, the electronic device may determine that component C is the second component.

[0089] It should be noted that the electronic device can determine the second component according to any feasible implementation method (eg, based on user needs, etc.), and the embodiments of the present disclosure are not limited to this.

[0090] The electronic device may determine multiple second processing logic messages corresponding to multiple second components based on the following feasible implementation: for any second component, determine N business logics related to the second component and N platforms, obtain the identifier of the second component and the identifier of each platform, and determine the N second processing logic messages of the second component according to the identifier of the second component, the identifiers of the N platforms, and the business logic related to the second component and the N platforms. Where N is an integer greater than 1.

[0091] Since the second component is a component corresponding to different business logics for different platforms, the second component has at least two different business logics. For example, the second component has business logic A in platform 1, and the second component has business logic B in platform 2.

[0092] Optionally, the electronic device can determine the N business logics related to the second component and N platforms according to the following feasible implementation method: obtain the target display logic and target event logic of the second component on each platform, encapsulate the target display logic and target event logic of each platform, and obtain the N business logics related to the second component and the N platforms.

[0093] Among them, the target display logic can be the processing logic of the second component displayed on the platform, and the target event logic can be the processing logic of the platform after the second component is operated. Optionally, the target display logic and target event logic of the second component in different platforms can be pre-written logic codes. For example, the multiple target display logics and target event logics of the second component in multiple platforms can be logic codes written based on user needs, or can be logic codes obtained based on any feasible implementation method, which is not limited in the embodiments of the present disclosure.

[0094] For example, if the target display logic of the second component on platform a is display logic A, and the target event logic is event logic 1, and the target display logic of the second component on platform b is display logic B, and the target event logic is event logic 2, then the electronic device can encapsulate the display logic A and event logic 1 to obtain the business logic of the second component on platform a, and the electronic device can encapsulate the display logic B and event logic 2 to obtain the business logic of the second component on platform b.

[0095] Among them, the electronic device can determine the N second processing logic messages of the second component according to the identifier of the second component, the identifiers of the N platforms, and the business logic related to the second component and the N platforms. For example, if the business logic of the second component in platform 1 is business logic A, and the business logic of the second component in platform 2 is business logic B, the electronic device can encapsulate the identifier of the second component, the identifier of platform 1, and business logic A to obtain the second logic processing message related to the second component and platform 1, and the electronic device can encapsulate the identifier of the second component, the identifier of platform 2, and business logic B to obtain the second logic processing message related to the second component and platform 2.

[0096] Next, combine Figure 8 , the process of determining the second processing logic message is explained.

[0097] Figure 8 A schematic diagram of a process for determining a second processing logic message provided by an embodiment of the present disclosure. Figure 8 , including: a second component, a business logic a of the second component on platform A, and a business logic b of the second component on platform B. Electronic device ( Figure 8 (not shown) The second processing logic message 1 and the second processing logic message 2 can be encapsulated based on the second component, the business logic a of the second component on platform A and the business logic b of the second component on platform B, wherein the second processing logic message 1 includes the identifier of the second component, the identifier of platform A and the business logic a, and the second processing logic message 2 includes the identifier of the second component, the identifier of platform B and the business logic b.

[0098] S702: Store multiple second processing logic messages in a message pool.

[0099] Optionally, after the electronic device encapsulates and obtains the multiple second processing logic messages, the multiple second processing logic messages may be stored in a message pool.

[0100] The disclosed embodiment provides a method for storing and processing logic messages, for any second component, determining N business logics related to the second component and N platforms, obtaining the identifier of the second component and the identifier of each platform, and determining N second processing logic messages of the second component according to the identifier of the second component, the identifiers of the N platforms, and the business logic related to the second component and the N platforms, and storing multiple second processing logic messages in a message pool. In this way, the electronic device can decouple the business logic of the second component and the multi-terminal platform in the message pool, and the processing logic messages stored in the message pool are all processing logic messages related to a single platform, thereby reducing the complexity of changing the business logic.

[0101] Based on any of the above embodiments, Fig. 9, the process of the above processing method is explained.

[0102] Fig. 9 A process diagram of a processing method provided by an embodiment of the present disclosure. Fig. 9 , including: a second component, a business logic a of the second component on platform A, and a business logic b of the second component on platform B. The electronic device may encapsulate the identifier of the second component, the identifier of platform A, and the business logic a to obtain a second processing logic message 1, and the electronic device may encapsulate the identifier of the second component, the identifier of platform B, and the business logic b to obtain a second processing logic message 2.

[0103] See also Fig. 9 After the electronic device obtains the second processing logic message 1 and the second processing logic message 2, it can store the second processing logic message 1 and the second processing logic message 2 in the message pool. The second processing logic message 1 in the message pool is related to platform A, and the second processing logic message 2 in the message pool is related to platform B.

[0104] See also Fig. 9 , the electronic device can display a compilation interface, wherein the compilation interface includes controls of platform A, controls of platform B, and a user interface, and the user interface includes a second component. If the user clicks the controls of platform B and the second component, the electronic device can compile the business logic b in the second processing logic message 2 based on platform B, and then obtain the compilation result of the second component on platform B.

[0105] In this way, the electronic device can decouple the business logic of the second component and the multi-terminal platform based on the message pool. The processing logic messages stored in the message pool are all processing logic messages related to a single platform, which can reduce the complexity of changing the business logic and improve the code reuse rate. Moreover, the processing results obtained by the electronic device are only related to the compiled platform and have nothing to do with other platforms, thereby reducing the size of the processing results and improving processing efficiency.

[0106] Fig.10 This is a schematic diagram of the structure of a processing device provided in an embodiment of the present disclosure. Fig.10 The processing device 100 includes a first determining module 101, an acquiring module 102 and a processing module 103, wherein:

[0107] The first determination module 101 is used to determine the identifier of the first platform and the identifier of the first component to be processed;

[0108] The acquisition module 102 is used to acquire a first processing logic message of the first component according to the identifier of the first platform and the identifier of the first component, wherein the first processing logic message includes the identifier of the first component, the identifier of the first platform, and the business logic related to the first component and the first platform;

[0109] The processing module 103 is used to process the first processing logic message in the first platform to obtain a processing result of the first component in the first platform.

[0110] According to one or more embodiments of the present disclosure, the acquisition module 102 is specifically used for:

[0111] According to the identifier of the first platform, obtaining a plurality of processing logic messages related to the first platform from the message pool, wherein the message pool includes a plurality of processing logic messages of a plurality of components;

[0112] The first processing logic message is determined from a plurality of processing logic messages related to the first platform according to the identifier of the first component.

[0113] According to one or more embodiments of the present disclosure, the first determining module 101 is specifically configured to:

[0114] Displaying a processing interface, wherein the processing interface includes controls and user interfaces of multiple platforms, and the user interface includes multiple components to be processed;

[0115] In response to a touch operation on controls of the multiple platforms, determining an identifier of the first platform;

[0116] In response to a touch operation on the plurality of components to be processed, an identifier of the first component is determined.

[0117] According to one or more embodiments of the present disclosure, the processing module 103 is specifically used to:

[0118] Obtaining the business logic related to the first component and the first platform in the first processing logic message;

[0119] The business logic related to the first component and the first platform is compiled according to the first platform to obtain a processing result of the first component on the first platform.

[0120] The processing device provided in the embodiment of the present disclosure may be used to execute the technical solution of the above method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail in this embodiment.

[0121] Fig.11 A schematic diagram of the structure of another processing device provided in an embodiment of the present disclosure. Fig.10 Based on the examples shown, see Fig.11 The processing device 100 further includes a second determining module 104, wherein the second determining module 104 is configured to:

[0122] Determine a plurality of second processing logic messages of a plurality of second components, where the second components are components corresponding to different business logics on different platforms;

[0123] The plurality of second processing logic messages are stored in the message pool.

[0124] According to one or more embodiments of the present disclosure, the second determining module 104 is specifically configured to:

[0125] For any second component, determine N business logics related to the second component and N platforms, where N is an integer greater than 1;

[0126] Obtaining an identifier of the second component and an identifier of each platform;

[0127] According to the identifier of the second component, the identifiers of the N platforms, and the business logic related to the second component and the N platforms, N second processing logic messages of the second component are determined.

[0128] According to one or more embodiments of the present disclosure, the second determining module 104 is specifically configured to:

[0129] Obtain the target display logic and target event logic of the second component on each platform, wherein the target display logic is the processing logic of the second component displayed on the platform, and the target event logic is the processing logic of the platform after operating the second component;

[0130] The target display logic and target event logic of each platform are encapsulated to obtain N business logics related to the second component and the N platforms.

[0131] The processing device provided in the embodiment of the present disclosure may be used to execute the technical solution of the above method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail in this embodiment.

[0132] Fig.12 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Fig.12, which shows a schematic diagram of the structure of an electronic device 1200 suitable for implementing the embodiment of the present disclosure, and the electronic device 1200 may be an electronic device or a server. The electronic device may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.12 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0133] like Fig.12 As shown, the electronic device 1200 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1201, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1202 or a program loaded from a storage device 1208 to a random access memory (RAM) 1203. Various programs and data required for the operation of the electronic device 1200 are also stored in the RAM 1203. The processing device 1201, the ROM 1202, and the RAM 1203 are connected to each other via a bus 1204. An input / output (I / O) interface 1205 is also connected to the bus 1204.

[0134] Typically, the following devices may be connected to the I / O interface 1205: input devices 1206 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 1207 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1208 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1209. The communication device 1209 may allow the electronic device 1200 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.12 The electronic device 1200 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0135] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 1209, or installed from a storage device 1208, or installed from a ROM 1202. When the computer program is executed by the processing device 1201, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0136] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0137] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0138] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0139] An embodiment of the present disclosure provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the processing methods that may be involved in the above embodiments are implemented.

[0140] An embodiment of the present disclosure provides a computer program product, including a computer program, and when the computer program is executed by a processor, the processing methods that may be involved in the above embodiments are implemented.

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

[0142] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0143] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".

[0144] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0145] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0146] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0147] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0148] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0149] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message. As an optional but non-limiting implementation method, in response to receiving an active request from the user, the method of sending a prompt message to the user can be, for example, a pop-up window, in which the prompt message can be presented in text. In addition, the pop-up window can also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device. It can be understood that the above notification and the process of obtaining user authorization are only illustrative and do not constitute a limitation on the implementation method of the present disclosure. Other methods that meet relevant laws and regulations can also be applied to the implementation method of the present disclosure.

[0150] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of the relevant laws and regulations. The data may include information, parameters and messages, such as flow switching indication information.

[0151] In a first aspect, according to one or more embodiments of the present disclosure, a processing method is provided, the method comprising:

[0152] Determining an identifier of a first platform and an identifier of a first component to be processed;

[0153] Acquire, according to the identifier of the first platform and the identifier of the first component, a first processing logic message of the first component, where the first processing logic message includes the identifier of the first component, the identifier of the first platform, and business logic related to the first component and the first platform;

[0154] The first processing logic message is processed in the first platform to obtain a processing result of the first component in the first platform.

[0155] According to one or more embodiments of the present disclosure, acquiring a first processing logic message of the first component according to the identifier of the first platform and the identifier of the first component includes:

[0156] According to the identifier of the first platform, a plurality of processing logic messages related to the first platform are obtained from a message pool, wherein the message pool includes a plurality of processing logic messages of a plurality of components;

[0157] The first processing logic message is determined from a plurality of processing logic messages related to the first platform according to the identifier of the first component.

[0158] According to one or more embodiments of the present disclosure, determining the identifier of the first platform and the identifier of the first component to be processed includes:

[0159] Displaying a processing interface, wherein the processing interface includes controls and user interfaces of multiple platforms, and the user interface includes multiple components to be processed;

[0160] In response to a touch operation on controls of the multiple platforms, determining an identifier of the first platform;

[0161] In response to a touch operation on the plurality of components to be processed, an identifier of the first component is determined.

[0162] According to one or more embodiments of the present disclosure, the processing of the first processing logic message in the first platform to obtain a processing result of the first component in the first platform includes:

[0163] Obtaining the business logic related to the first component and the first platform in the first processing logic message;

[0164] The business logic related to the first component and the first platform is compiled according to the first platform to obtain a processing result of the first component on the first platform.

[0165] According to one or more embodiments of the present disclosure, before obtaining the first processing logic message of the first component in the message pool, the method further includes:

[0166] Determine a plurality of second processing logic messages of a plurality of second components, where the second components are components corresponding to different business logics on different platforms;

[0167] The plurality of second processing logic messages are stored in the message pool.

[0168] According to one or more embodiments of the present disclosure, determining a plurality of second processing logic messages corresponding to the plurality of second components includes:

[0169] For any second component, determine N business logics related to the second component and N platforms, where N is an integer greater than 1;

[0170] Obtaining an identifier of the second component and an identifier of each platform;

[0171] According to the identifier of the second component, the identifiers of the N platforms, and the business logic related to the second component and the N platforms, N second processing logic messages of the second component are determined.

[0172] According to one or more embodiments of the present disclosure, determining N business logics related to the second component and N platforms includes:

[0173] Obtain the target display logic and target event logic of the second component on each platform, wherein the target display logic is the processing logic of the second component displayed on the platform, and the target event logic is the processing logic of the platform after operating the second component;

[0174] The target display logic and target event logic of each platform are encapsulated to obtain N business logics related to the second component and the N platforms.

[0175] In a second aspect, an embodiment of the present disclosure provides a processing device, the processing device comprising a first determining module, an acquiring module and a processing module, wherein:

[0176] The first determination module is used to determine the identifier of the first platform and the identifier of the first component to be processed;

[0177] The acquisition module is used to acquire a first processing logic message of the first component according to the identifier of the first platform and the identifier of the first component, wherein the first processing logic message includes the identifier of the first component, the identifier of the first platform, and the business logic of the first component related to the first platform;

[0178] The processing module is used to process the first processing logic message in the first platform to obtain a processing result of the first component in the first platform.

[0179] According to one or more embodiments of the present disclosure, the acquisition module is specifically used to:

[0180] According to the identifier of the first platform, obtaining a plurality of processing logic messages related to the first platform from the message pool, wherein the message pool includes a plurality of processing logic messages of a plurality of components;

[0181] The first processing logic message is determined from a plurality of processing logic messages related to the first platform according to the identifier of the first component.

[0182] According to one or more embodiments of the present disclosure, the first determining module is specifically configured to:

[0183] Displaying a processing interface, wherein the processing interface includes controls and user interfaces of multiple platforms, and the user interface includes multiple components to be processed;

[0184] In response to a touch operation on controls of the multiple platforms, determining an identifier of the first platform;

[0185] In response to a touch operation on the plurality of components to be processed, an identifier of the first component is determined.

[0186] According to one or more embodiments of the present disclosure, the processing module is specifically used to:

[0187] Obtaining the business logic related to the first component and the first platform in the first processing logic message;

[0188] The business logic related to the first component and the first platform is compiled according to the first platform to obtain a processing result of the first component on the first platform.

[0189] According to one or more embodiments of the present disclosure, the processing device further includes a second determining module, wherein the second determining module is configured to:

[0190] Determine a plurality of second processing logic messages of a plurality of second components, where the second components are components corresponding to different business logics on different platforms;

[0191] The plurality of second processing logic messages are stored in the message pool.

[0192] According to one or more embodiments of the present disclosure, the second determining module is specifically configured to:

[0193] For any second component, determine N business logics related to the second component and N platforms, where N is an integer greater than 1;

[0194] Obtaining an identifier of the second component and an identifier of each platform;

[0195] According to the identifier of the second component, the identifiers of the N platforms, and the business logic related to the second component and the N platforms, N second processing logic messages of the second component are determined.

[0196] According to one or more embodiments of the present disclosure, the second determining module is specifically configured to:

[0197] Obtain the target display logic and target event logic of the second component on each platform, wherein the target display logic is the processing logic of the second component displayed on the platform, and the target event logic is the processing logic of the platform after operating the second component;

[0198] The target display logic and target event logic of each platform are encapsulated to obtain N business logics related to the second component and the N platforms.

[0199] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: a processor, and a memory and a transceiver communicatively connected to the processor;

[0200] The memory stores computer-executable instructions; the transceiver is used to send and receive data;

[0201] The processor executes the computer-executable instructions stored in the memory to implement the processing method described in the first aspect above.

[0202] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer execution instructions, and when the computer execution instructions are executed by a processor, they are used to implement the processing method described in the first aspect above.

[0203] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which implements the processing method described in the first aspect above when executed by a processor.

[0204] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0205] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0206] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A processing method, characterized in that: include: Determining an identifier of a first platform and an identifier of a first component to be processed; Acquire, according to the identifier of the first platform and the identifier of the first component, a first processing logic message of the first component, where the first processing logic message includes the identifier of the first component, the identifier of the first platform, and business logic related to the first component and the first platform; The first processing logic message is processed in the first platform to obtain a processing result of the first component in the first platform.

2. The method according to claim 1, characterized in that The acquiring, according to the identifier of the first platform and the identifier of the first component, a first processing logic message of the first component includes: According to the identifier of the first platform, a plurality of processing logic messages related to the first platform are obtained from a message pool, wherein the message pool includes a plurality of processing logic messages of a plurality of components; The first processing logic message is determined from a plurality of processing logic messages related to the first platform according to the identifier of the first component.

3. The method according to claim 1, characterized in that The determining the identifier of the first platform and the identifier of the first component to be processed includes: Displaying a processing interface, wherein the processing interface includes controls and user interfaces of multiple platforms, and the user interface includes multiple components to be processed; In response to a touch operation on controls of the multiple platforms, determining an identifier of the first platform; In response to a touch operation on the plurality of components to be processed, an identifier of the first component is determined.

4. The method according to any one of claims 1 to 3, characterized in that: The processing of the first processing logic message in the first platform to obtain a processing result of the first component in the first platform includes: Obtaining the business logic related to the first component and the first platform in the first processing logic message; The business logic related to the first component and the first platform is compiled according to the first platform to obtain a processing result of the first component on the first platform.

5. The method according to any one of claims 1 to 3, characterized in that: Before obtaining the first processing logic message of the first component, the method further includes: Determine a plurality of second processing logic messages of a plurality of second components, where the second components are components corresponding to different business logics on different platforms; The plurality of second processing logic messages are stored in the message pool.

6. The method according to claim 5, characterized in that The determining of a plurality of second processing logic messages of a plurality of second components comprises: For any second component, determine N business logics related to the second component and N platforms, where N is an integer greater than 1; Obtaining an identifier of the second component and an identifier of each platform; According to the identifier of the second component, the identifiers of the N platforms, and the business logic related to the second component and the N platforms, N second processing logic messages of the second component are determined.

7. The method according to claim 6, characterized in that The determining the N business logics related to the second component and the N platforms includes: Obtain the target display logic and target event logic of the second component on each platform, wherein the target display logic is the processing logic of the second component displayed on the platform, and the target event logic is the processing logic of the platform after operating the second component; The target display logic and target event logic of each platform are encapsulated to obtain N business logics related to the second component and the N platforms.

8. A processing device, characterized in that: It includes a first determining module, an acquiring module and a processing module, wherein: The first determination module is used to determine the identifier of the first platform and the identifier of the first component to be processed; The acquisition module is used to acquire a first processing logic message of the first component according to the identifier of the first platform and the identifier of the first component, wherein the first processing logic message includes the identifier of the first component, the identifier of the first platform, and the business logic of the first component related to the first platform; The processing module is used to process the first processing logic message in the first platform to obtain a processing result of the first component in the first platform.

9. An electronic device, characterized in that: include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the processing method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executable instructions, the processing method according to any one of claims 1 to 7 is implemented.