Multi-terminal code compiling method and device, equipment, storage medium and program product
By reverse-compiling HTML5 code into proprietary code in the background and using the code feature database to achieve native language conversion, the problems of separation and inconsistent interfaces between IPTV and other clients are solved, development costs are reduced, and user experience and work efficiency are improved.
Patent Information
- Application Number
- CN202510712911.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-30
- Publication Date
- 2025-09-16
AI Technical Summary
In the existing technology, IPTV is separated from other clients, the interface and content are not unified, the client is easily bloated, the development cost is high, the labor cost is high, and human errors are prone to occur. In particular, in the componentized mode, it is impossible to achieve strong unification of the interface and content of each client.
After editing the page in the background, the HTML5 code is reverse compiled into private code, and the native code features are matched through the code feature database to achieve native language code conversion for different clients, support live signal conversion in IPTV multicast and unicast modes, reduce development and operation and maintenance costs, and improve the uniformity of interface and content.
It achieves strong unification of the client interface and content, reduces development and operation and maintenance costs, improves user experience, reduces human errors, and improves work efficiency and user convenience.
Smart Images

Figure CN120653252A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of multimedia data processing, and in particular relates to a multi-terminal code compiling method, device, equipment, storage medium and program product. Background Art
[0002] In the context of media convergence, the information dissemination channels of radio and television stations are no longer limited to traditional television and radio, and the technical requirements are no longer limited to the security of transmission and broadcasting. At the same time, they need to operate IPTV, websites, apps, and H5. Therefore, they need to pay more and more attention to the visual experience of user terminals, which requires a high degree of uniformity of pages and content on various clients. Figure 1 The current common practice in the industry is to use a method of pre-packaged components built into the client, combine the components in the background, and save the component combination relationship and the corresponding content relationship of each component in the database. The client obtains the information about the corresponding relationship between the components and the corresponding content relationship. Based on the corresponding relationship between the components and the corresponding content relationship, the client combines and reproduces the page effect. This traditional approach has the following problems:
[0003] 1. IPTV is separated from other clients: Due to the particularity of IPTV, especially when conducting live broadcasts, IPTV live broadcasts are in multicast mode, while other clients are in unicast mode. This leads to the need for IPTV and other clients to configure the interface and live broadcast signals separately. The general practice is that IPTV and other clients have their own operation backgrounds, requiring multiple logins and unable to operate in a unified manner, which ultimately leads to more separation, such as separation of points, users, and activities.
[0004] 2. Inconsistent interface and content: In addition to the fragmentation of IPTV, other clients can manage the interface and content on the same backend. However, due to the client characteristics, component-based configuration between PC and App often cannot achieve unified interface and content. The common practice is still to configure the PC interface and content separately for the PC, and configure the App interface and content separately for the App, which cannot achieve strong uniformity of interface and content.
[0005] 3. Client bloat: With the continuous development of the business, users' horizons are getting higher and higher, and their aesthetic requirements for product interfaces are getting higher and higher, with more and more special effects. In the componentized scenario, it is necessary to continuously add various distinctive style components, and the front-end also needs to pre-set corresponding style components in a one-to-one correspondence. This causes the client to become larger and larger, and the operation consumes more and more memory, which ultimately manifests as a slow and stuck client.
[0006] 4. High development costs: Each client uses a different native development language. For example, IPTV typically uses HTML4 for front-end development, while websites and H5 pages use HTML5. Apps are further divided into iOS and Android versions. The native language for iOS is usually Objective-C or Swift, while the native language for Android is usually Java or Kotlin. This results in a componentized model where each new component requires the development of a corresponding front-end component for each client, which greatly increases software development costs.
[0007] 5. High labor costs: In the componentized model, each time a new component is launched, manual functional verification of each client is required in a grayscale environment. A second verification is required after the launch. Moreover, because the interface and content cannot be strongly unified, after configuring a new special column, editors are required to conduct targeted reviews of the interface and content of each client, which increases personnel investment.
[0008] 6. Prone to human errors: Since the componentized model cannot achieve strong uniformity of the client interface and content, separate configurations are required for IPTV, App, and website. This has a high probability of omissions of sections or content due to editorial negligence, resulting in inconsistent content seen by different client users, which may lead to security playback accidents. Summary of the Invention
[0009] The main purpose of the present invention is to provide a multi-terminal native code compilation method, apparatus, device, storage medium, and program product for broadcast and television information dissemination, in order to solve or partially solve the problems identified in the background art. To this end, the present invention provides the following technical solutions:
[0010] In a first aspect, the present invention provides a multi-terminal code compilation method for broadcasting and television information dissemination, comprising:
[0011] Reverse compile the HTML5 code generated after editing the page in the background into private code and store it in the private code database;
[0012] For native apps on mobile terminals, an active delivery method is used. This active delivery method includes:
[0013] Calling the native code features of the corresponding mobile system from the code feature database, matching the private code with the native code features, and then forward compiling it into native language code that can be recognized by the corresponding mobile system, and actively sending it to the terminal App to refresh the page and data;
[0014] For IPTV clients and Web clients, the client request method is used. The client request method includes:
[0015] Receive the page ID and client type identifier requested by the client;
[0016] Calling the private code of the corresponding page from the private code library according to the page ID identifier;
[0017] Calling the native code features of the code feature database according to the client type identifier, matching the private code with the native code features, and then forward compiling the private code into native language code recognizable by the corresponding client;
[0018] Different live broadcast modes are used for different clients. If an IPTV client is identified, the live broadcast code and live broadcast signal in the private code are compiled into a multicast signal and native code. Otherwise, it is compiled into a unicast signal and native code. Finally, the compiled code is combined into the final native code and returned to the client, which parses it into a visual interface and content.
[0019] The code feature database stores native code features of native languages identifiable by different clients, and the corresponding relationship between the native code of the native language and the private code.
[0020] In at least one embodiment, the background editing page includes a new page and a modification page.
[0021] The process of adding a new page and compiling private code includes: when the editor adds a new page in the background editing interface, the background generates the corresponding HTML5 code, reverse compiles it into private code, and stores the private code in the private code database;
[0022] The process of modifying pages and compiling private codes includes: when an editor needs to modify a page, first obtaining the private code of the corresponding page from the private code database, then calling the native code features of the HTML5 code from the code feature database, forward compiling the private code and the native code features of the HTML5 code into HTML5 code, and then parsing it into a visual interface. The editor makes adjustments to the interface and content to obtain the modified HTML5 code, reverse compiles it into private code, and finally stores the private code in the private code database.
[0023] In at least one embodiment, when a user initiates an access request to a certain page through the native App, if there is no corresponding page in the App, a passive request method is triggered. The passive request method includes: after receiving the page ID identifier and client type identifier requested by the client, reminding the user that the corresponding page does not exist and prompting to try again later. When the App is idle, the updated content is sent to the App for refresh based on the page ID identifier and client type identifier.
[0024] In at least one embodiment, the mobile system terminal includes an Android terminal and an IOS terminal.
[0025] In at least one embodiment, the method of compiling includes traversal and replacement.
[0026] In at least one embodiment, the recognizable native language corresponding to the Web client is HTML5.
[0027] In a second aspect, the present invention provides a multi-terminal code compiling device adapted to the above method, comprising:
[0028] Backstage editing module, used to generate HTML5 code after editing the page in the background;
[0029] Private code database, used to store private code;
[0030] A code feature database, used to store the native language code features that can be recognized by different clients, and the corresponding relationship between the native code and private code of the recognizable language;
[0031] The code compilation module is used to reverse-compile HTML5 code into proprietary code, or to forward-compile proprietary code into native language code that can be recognized by different clients after matching the proprietary code with code features.
[0032] A client determination module is used to identify the type of the client according to the received client type identifier;
[0033] The code compilation request module is used to obtain the private code of the corresponding page from the private code library according to the page ID;
[0034] The live broadcast mode conversion module is used to compile the live broadcast code and live broadcast signal in the private code into multicast mode or unicast mode signals and native code according to the identified client type, and then combine them into the final code and return it to the client.
[0035] In a third aspect, the present invention provides a computer device comprising a memory and a processor, wherein the memory stores computer program instructions, and the computer program instructions are read by the processor and execute the above method when executed.
[0036] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program executes the above method when executed by a computer.
[0037] In a fifth aspect, the present invention provides a computer program product, which executes the above method when run by a computer.
[0038] Compared with the prior art, the present invention can achieve the following beneficial effects:
[0039] 1. Improve efficiency: The present invention does not require editors to configure the interface and content separately for different clients. Only one editor is required to perform a configuration once in the background, and the interface and content can be automatically adapted to IPTV, websites, apps and H5. Compared with the traditional component model, it greatly improves work efficiency.
[0040] 2. Reduce costs: The front-end does not need to perform component development for the client every time. It only needs to develop the overall framework of each client. Developers do not need to submit new versions every time, and there is no need to invest development funds for subsequent newly added interfaces and content. From the perspective of labor costs, due to the strong unity of the interface and content, once an employee verifies any client and passes it, all other clients will also pass it, which greatly reduces development and operation and maintenance costs.
[0041] 3. Improve user experience: The advantage of the present invention is that the front-end does not require built-in components, which can reduce the size of the front-end installation package. Because it reduces the bloat of the product, saves client running memory, and reduces the possibility of slowness and jamming, users feel smoother when using the product. When new interfaces and content are added, users do not need to manually upgrade the client, so that users are unaware of it, which improves user convenience and enhances the user experience when using the product.
[0042] 4. Reduce error rate: Benefiting from the strong uniformity of interface and content, there will be no differences in sections or content among all clients. Editors only need to focus on the effects of one client, and can discover errors more quickly and correct them in time, thereby reducing the error rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] One or more embodiments of the present invention will now be described, by way of example only, with reference to the accompanying drawings, in which:
[0044] Figure 1 A flowchart of a conventional method using built-in components in the prior art;
[0045] Figure 2 A flowchart of a multi-terminal code compilation method provided by an embodiment of the present invention;
[0046] Figure 3 A structural block diagram of a multi-terminal code compiling device provided by an embodiment of the present invention;
[0047] Figures 4 to 8 The private code snippets provided by the embodiment of the present invention and the compiled native code snippets of different clients;
[0048] Figures 9-13 These are preview effects of different clients using the embodiments of the present invention. DETAILED DESCRIPTION
[0049] The present invention will be described in detail below with reference to the exemplary embodiments shown in the accompanying drawings. However, it should be understood that the present invention can be implemented in a variety of different forms and should not be construed as being limited to the embodiments set forth herein. These embodiments are provided herein to make the disclosure of the present invention more complete and to fully convey the concepts of the present invention to those skilled in the art.
[0050] With reference to the deficiencies of the prior art in the background technology, those skilled in the art are in urgent need of solving the following technical problems:
[0051] 1. Ensure strong uniformity of the client interface and content: Strong uniformity of the client interface and content is a basic requirement for media units. In particular, IPTV live broadcast and other client live broadcasts have differences in transmission, reception, and processing of live broadcast signals. It is necessary to ensure strong uniformity of the live broadcast signal (the screen seen by the user), the content seen by the user, and the interface seen by the user on each client.
[0052] 2. Mutual conversion of live broadcast modes: Under the requirement of strong unification of interface and content, unification of live broadcast signals is one of the requirements. When conducting live broadcasts, IPTV live broadcasts belong to multicast mode, while other clients belong to unicast mode. This leads to the need for IPTV and other clients to configure the interface and live broadcast signals separately, so it is necessary to convert the unicast and multicast modes of the same live broadcast source.
[0053] 3. Component-free user client: Reduces the size of the front-end installation package, reduces product bloat, saves client running memory, reduces the possibility of slowness and jamming, and makes users feel smoother when using the product. When adding new interfaces and content, users do not need to manually upgrade the client, so that users are unaware of it, which improves user convenience and enhances the user experience when using the product.
[0054] 4. Compile private code and client native code into each other: Different clients have different development languages. For example, when calling the player, the code that can be recognized by H5 and computer browsers only needs <video>Tags, IPTV clients need to call the built-in player of the set-top box through JS scripts, IOS needs to call the native player of the Apple system through Objective-C or Swift, Android needs to call the native player of the Android system through Java or Kotlin, and other text types, image types, etc. are also different; under the requirement of non-componentized user clients, it is necessary to compile private code and client native code with each other, and send the compiled code to the user client so that the user can see the interface and content effects.
[0055] Based on the above ideas and technical requirements, embodiments of the present invention provide the following multi-terminal code compilation method, apparatus, device, storage medium, and program product.
[0056] First, refer to Figure 2 The present invention provides a multi-terminal native code compilation method for broadcasting and television information dissemination, comprising:
[0057] Reverse compile the HTML5 code generated after editing the page in the background into private code and store it in the private code database;
[0058] For native apps on mobile terminals, an active delivery method is used. This active delivery method includes:
[0059] Calling the native code features of the corresponding mobile system from the code feature database, matching the private code with the native code features, and then forward compiling it into native language code that can be recognized by the corresponding mobile system, and actively sending it to the terminal App to refresh the page and data;
[0060] For IPTV clients and Web clients, the client request method is used. The client request method includes:
[0061] Receive the page ID and client type identifier requested by the client;
[0062] Calling the private code of the corresponding page from the private code library according to the page ID identifier;
[0063] Calling the native code features of the code feature database according to the client type identifier, matching the private code with the native code features, and then forward compiling the private code into native language code recognizable by the corresponding client;
[0064] Different live broadcast modes are used for different clients. If an IPTV client is identified, the live broadcast code and live broadcast signal in the private code are compiled into a multicast mode signal and native code. Otherwise, they are compiled into a unicast mode signal and native code. Finally, the compiled code is combined into the final native code and returned to the client, which parses it into a visual interface and content.
[0065] In order to enable a clearer and more complete understanding of the technical solution of the present invention, the terms involved are now explained.
[0066] Terminal: refers to a physical device (such as a mobile phone or computer) or the basic interactive interface of an operating system (such as a command line terminal). In the present invention, terminals include IPTV living room TVs, PCs (computers), mobile system terminals (Android phones, Apple phones), etc.
[0067] Client: A software program installed on a terminal that accesses a specific service. The client works with the server to implement functions (such as data requests and file transfers) through network protocols. In this context, clients include native apps (installed on Android or Apple terminals and developed using the native development languages of Android or iOS), IPTV clients (client software installed on IPTV terminal devices such as set-top boxes and IPTV living room televisions), and web clients (including browsers installed on computers, mobile terminals, and built-in browsers embedded in certain software).
[0068] Compilation: The translation of a program or code written in one programming language into an equivalent program or code in another language. In this context, this specifically refers to the mutual compilation of proprietary code with client code, including forward compilation and reverse compilation. Forward compilation involves converting proprietary code into native client-compatible code through methods like traversal and replacement. Reverse compilation involves compiling client-side native code into proprietary code through methods like traversal and replacement.
[0069] The code feature database stores native code features of native languages recognizable by different clients, as well as the correspondence between native code in those native languages and private code. During compilation, the code feature database can only be used to complete the compilation process by replacing the code features, etc., after the correspondence between the client's code features recognizable by the native language and the private code is known.
[0070] The mobile system terminal includes an Android terminal and an iOS terminal. The method for compiling the private code with the native code features includes traversal and replacement. The native language that can be recognized by the web browser is HTML5, and the native language that can be recognized by the IPTV client is HTML4.
[0071] Secondly, reference Figure 3 The present invention provides a multi-terminal native code compilation device adapted to the above method, which includes:
[0072] Backstage editing module, used to generate HTML5 code after editing the page in the backstage;
[0073] Private code database, used to store private code;
[0074] A code feature database, used to store the native language code features that can be recognized by different clients, and the corresponding relationship between the native code and private code of the recognizable language;
[0075] A code compilation module, used to reverse-compile HTML5 code into proprietary code, or to forward-compile proprietary code and code features into native language code that is recognizable by different clients;
[0076] A client determination module is used to identify the type of the client according to the received client type identifier;
[0077] The code compilation request module is used to obtain the private code of the corresponding page from the private code library according to the page ID;
[0078] The live broadcast mode conversion module is used to compile the live broadcast code and live broadcast signal in the private code into multicast mode or unicast mode signals and native code according to the identified client type, and then combine them into the final code and return it to the client.
[0079] Among them, the client judgment module, code compilation request module and live broadcast mode conversion module constitute the client adaptation middle platform, which is a bridge between the private code database, code compilation module, code feature database and terminal, and integrates various interactive transfer functions required by the terminal.
[0080] In order to enable a clearer and more detailed understanding of the technical solution of the present invention, the following provides a specific embodiment of the multi-terminal native code compilation device running the multi-terminal code compilation method. This embodiment mainly includes the following two processes:
[0081] (1) Backstage publishing process
[0082] Through the background editing module and manuscript library, after the editor adds a new page in the background editing interface, the HTML5 code generated by the background will be sent to the code compilation module, which will be reverse compiled into private code, and the compiled private code will be stored in the private code database. When the editor needs to modify a page, the system first obtains the private code of the corresponding page from the private code database and sends it to the code compilation module. The code compilation module initiates a native code feature call request of HTML5 to the code feature database, and compiles the private code and HTML5 code features into HTML5 code through traversal, replacement and other methods, and returns it to the browser for parsing. The browser parses it into a visual interface for the editor to view the interface and content effects in real time. The editor can make adjustments to the interface and content. After the adjustment is completed, the modified HTML5 code will be sent to the code compilation module, which will be reverse compiled into private code, and the compiled private code will be stored in the private code database. The compiled private code snippet is as follows: Figure 4 As shown, since the private code is mainly compiled by reverse engineering the HTML5 code, its overall structure is similar to the simplified HTML5 code.
[0083] It should be noted that due to the limitations of the App's software mechanism, it is impossible to parse the App's native code in real time when the user requests it. Therefore, after the editor completes the layout of the interface and content, the private code will be sent to the code compilation module. The code compilation module will initiate an Android and IOS native code feature call request to the code feature database, and compile the private code and Android and IOS native code features into corresponding Android and IOS native codes through traversal, replacement, etc., and actively send them to Android and IOS terminals to implement function refresh. The compiled Android code snippets and IOS code snippets are as follows: Figure 5 and Figure 6 shown.
[0084] (2) Client acquisition process
[0085] When a front-end user initiates a request for a page, the following processes are executed in sequence:
[0086] 1. The client sends the page ID identifier and client type identifier parameters requested by the user to the client adaptation center. The client judgment module in the client adaptation center notifies the code compilation request module to convert a certain client code based on the client type identifier and page ID identifier.
[0087] 2. The code compilation request module first obtains the private code of the corresponding page from the private code library through the page ID identifier, and transmits it to the code compilation module for compilation.
[0088] 3. The code compilation module initiates a native code feature call request to the code feature database based on the client type identifier, compiles the private code and the native code features of the corresponding client into the native code of the corresponding client through traversal, replacement and other methods, and returns it to the client adaptation middle platform.
[0089] 4. The client adaptation center passes the client type identifier and client code parameters to the live broadcast mode conversion module to convert the live broadcast mode.
[0090] 5. If the live mode conversion module identifies the client as an IPTV client, it compiles the live broadcast code and signal into a multicast signal and native code. Otherwise, it compiles it into a unicast signal and native code. Finally, the code is combined into the final code and returned to the client.
[0091] 6. After obtaining the final code, the client parses it into a visual interface and content for the user to view.
[0092] It should be noted that due to the limitations of the APP's software mechanism, the APP will complete the update of the interface and content during the release process. In principle, the APP user does not need to initiate a request to the client adaptation center. To prevent the phenomenon of no corresponding interface and content in the APP due to special reasons, when a user initiates an access request for a certain page, if there is no corresponding page in the APP, a passive page request process will be triggered. The overall process is basically the same as the above process, but the corresponding interface and content will not be updated to the user in real time. The user will be reminded that "the page does not exist, please try again later". The updated content will be sent to the user's APP for update when the APP is idle.
[0093] The compiled code snippet of the Web client (computer, H5) is as follows Figure 7 The compiled IPTV client code snippet is as follows. Figure 8 As shown. The preview of the display effect of various clients is as follows Figure 9-13 shown.
[0094] Finally, the present invention also provides a computer device, a computer-readable storage medium, and a computer program product.
[0095] The computer device includes a memory and a processor. The memory stores a computer program. The computer program is read by the processor and executes the above method when it is run.
[0096] The computer-readable storage medium stores a computer program, which executes the above method when the computer program is run.
[0097] The computer program product executes the above method when it is run by a computer.
[0098] The computer device described in the embodiment of the present invention is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, servers, mainframe computers and other suitable computers. The computer device can also represent various forms of mobile devices, such as personal digital processing devices, smart phones, wearable devices and other similar computing devices. However, based on the need to be able to stably and securely process large-scale data, the computer device should be suitable for the form of desktop computers, workstations, servers, mainframe computers, etc. Further, the components shown herein, their connections and relationships, and their functions are only examples and are not intended to limit the implementation of the present invention described and / or required herein. In addition to including a memory and a processor, the computer device can also include a display, etc. These elements are all common components or devices in the art, and the types and models included are all conventional selections, and the present invention will not go into details here.
[0099] The computer-readable medium described in the embodiments of the present invention may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. The computer-readable storage medium may be, for example, (but not limited to) an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection having 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 thereof. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present invention, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, or any suitable combination thereof.
[0100] The computer program product described in the embodiments of the present invention is stored in a specific readable storage medium and can be executed by a computer device. The computer program product should not be limited to running on a certain operating system. These operating systems include: Unix-like systems (such as Linux), Microsoft Windows systems, Apple macOS, Chrome OS, Android, etc. In addition, the programming language used by the computer program product should not be limited to a specific programming language. These programming languages include: C language, C++, Java, Python, JavaScript, Go language, etc.
[0101] It should be understood that all the above embodiments are illustrative rather than restrictive, and various modifications or variations made by those skilled in the art to the specific embodiments described above under the concept of the present invention should be within the scope of protection of the present invention.< / video>
Claims
1. A multi-terminal code compilation method for broadcasting and television information dissemination, characterized in that: include: Reverse compile the HTML5 code generated after editing the page in the background into private code and store it in the private code database; For native apps on mobile system terminals, an active delivery method is adopted. This active delivery method includes: calling the native code features of the corresponding mobile system from the code feature database, matching the private code with the native code features, and then forward compiling it into native language code that can be recognized by the corresponding mobile system. The code is then actively delivered to the terminal app to refresh the page and data. For IPTV clients and Web clients, a client request method is adopted, which includes: receiving a page ID identifier and a client type identifier requested by the client; calling the private code of the corresponding page from a private code library according to the page ID identifier; calling the native code features of the code feature database according to the client type identifier, matching the private code with the native code features, and then forward compiling it into native language code that can be recognized by the corresponding client; adopting different live broadcast modes for different clients, if an IPTV client is recognized, compiling the live broadcast code and live broadcast signal in the private code into a multicast mode signal and native code, otherwise compiling it into a unicast mode signal and native code, and finally combining the compiled code into the final native code and returning it to the client, which is parsed by the client into a visual interface and content; The code feature database stores native code features of native languages identifiable by different clients, and the corresponding relationship between the native code of the native language and the private code.
2. The multi-terminal code compiling method according to claim 1, wherein: The background editing page includes a new page and a modification page; The process of adding a new page and compiling private code includes: when the editor adds a new page in the background editing interface, the background generates the corresponding HTML5 code, reverse compiles it into private code, and stores the private code in the private code database; The process of modifying pages and compiling private codes includes: when an editor needs to modify a page, first obtaining the private code of the corresponding page from the private code database, then calling the native code features of the HTML5 code from the code feature database, forward compiling the private code and the native code features of the HTML5 code into HTML5 code, and then parsing it into a visual interface. The editor makes adjustments to the interface and content to obtain the modified HTML5 code, reverse compiles it into private code, and finally stores the private code in the private code database.
3. The multi-terminal code compiling method according to claim 1, wherein: When a user initiates an access request to a certain page through the native App, if there is no corresponding page in the App, a passive request method is triggered. The passive request method includes: after receiving the page ID identifier and client type identifier requested by the client, reminding the user that the corresponding page does not exist and prompting to try again later. When the App is idle, the updated content is sent to the App for refresh based on the page ID identifier and client type identifier.
4. The multi-terminal code compiling method according to claim 1, wherein: The mobile system terminals include Android terminals and IOS terminals.
5. The multi-terminal code compiling method according to claim 1, wherein: The compiling method includes traversal and replacement.
6. The multi-terminal code compiling method according to claim 1, wherein: The native language that can be recognized by the Web client is HTML5.
7. A multi-terminal code compiling device, adapted for the method according to any one of claims 1 to 6, characterized in that: include: Backstage editing module, used to generate HTML5 code after editing the page in the background; Private code database, used to store private code; A code feature database, used to store native code features of native languages identifiable by different clients, as well as the correspondence between the native code of the native language and private code; A code compilation module, used to reverse-compile HTML5 code into proprietary code, or to forward-compile proprietary code into recognizable native language code adapted to different clients after matching the features of native code. A client determination module is used to identify the type of the client according to the received client type identifier; The code compilation request module is used to obtain the private code of the corresponding page from the private code library according to the page ID; The live broadcast mode conversion module is used to compile the live broadcast code and live broadcast signal in the private code into multicast mode or unicast mode signals and native code according to the identified client type, and then combine them into the final code and return it to the client.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the computer program is read and executed by the processor, the method according to any one of claims 1 to 6 is executed.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed on a computer, the method according to any one of claims 1 to 6 is executed.
10. A computer program product, characterized in that: When the computer program product is executed by a computer, the method according to any one of claims 1 to 6 is executed.