Service template deployment method and device of terminal, medium and program product
By using one-click local deployment and page resource parsing and rendering, the problem of low page positioning efficiency in existing IPTV service templates is solved, enabling efficient troubleshooting and location of anomalies and improving the efficiency of IPTV service template deployment.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2026-03-10
AI Technical Summary
Existing technologies are inefficient in locating abnormal issues in IPTV service template pages, especially in complex processes where it is difficult to locate them quickly and verify page problems intuitively, resulting in long processing times and difficult analysis.
By retrieving page resources from the template server, generating an entry page, and specifying the resource access interface and template page display method, the browser kernel automatically replaces the Internet protocol address, enabling one-click local deployment. The page resources are then parsed and rendered according to the template page display method, intuitively displaying any abnormal issues.
It improves the efficiency of troubleshooting and locating template page anomalies, enabling quick and intuitive identification and repair of page problems, and reducing the time spent on manual operations.
Smart Images

Figure CN121644872A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of service template deployment, and in particular to a service template deployment method and device for a terminal, a medium and a program product. BACKGROUND
[0002] With the increase in the number of terminal users, Internet Protocol Television (IPTV) services are increasingly diverse. Different markets, different operators and different versions will result in different templates, which in turn leads to a large number of template problems.
[0003] In related technologies, methods for locating template page problems generally include a reading log direct exclusion method and a tunnel access patch locating method. The reading log direct exclusion method involves reading the captured page log and network packet, checking whether the template flow and the calling interface are abnormal, and is fast and simple. However, when facing complex flow problems, it takes a long time to locate the problem. The tunnel access patch locating method involves accessing the live network through a set-top box, and then following up the flow by patching suspicious points in the page. This method is direct and clear, but has many defects. For example, it relies too much on the environment. When the network fluctuates greatly, there is a Multiple Access Channel (MAC) conflict or the front tunnel is offline, the template may be stuck or even unable to access, which blocks the problem and makes it difficult to analyze. Both of the above methods involve reading the code to troubleshoot, which takes a long time and cannot verify whether the template page has a problem. SUMMARY
[0004] The embodiments of the present application provide a service template deployment method and device for a terminal, a computer readable storage medium and a computer program product. The method directly displays problems in the template page in the form of page display, and has high efficiency in troubleshooting and locating abnormal problems in the template page.
[0005] In a first aspect, the embodiments of the present application provide a service template deployment method for a terminal, and the method includes the following steps. obtaining a page resource from a template server; sending the page resource to a local server for local deployment and generating an entry page, the entry page being used to indicate a resource access interface and a template page display mode; requesting the entry page from the local server; determining the resource access interface and the template page display mode according to the obtained entry page; The page resources are accessed from the local server through the resource access interface, and the page resources are parsed and rendered into a template page for display according to the template page display method.
[0006] Secondly, embodiments of this application provide an electronic device, including: One or more processors; A memory having stored one or more programs that, when executed by one or more processors, cause the one or more processors to implement the service template deployment method for the terminal as described in the first aspect.
[0007] Thirdly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the service template deployment method for a terminal as described in the first aspect.
[0008] Fourthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the service template deployment method for a terminal as described in the first aspect.
[0009] In this embodiment, page resources are first obtained from the template server, then sent to the local server for local deployment and an entry page is generated. The entry page indicates the resource access interface and the template page display method. By requesting the entry page from the local server and calling the resource access interface on the entry page, the browser kernel automatically replaces the Internet protocol addresses for requesting files, live streaming, and video-on-demand in subsequent processes with the addresses of the local server, achieving one-click local deployment. The page resources are parsed and rendered according to the template page display method, allowing for a direct visualization of template page issues and high efficiency in troubleshooting and locating template page anomalies. Attached Figure Description
[0010] The accompanying drawings are used to provide a further understanding of the technical solutions of this application and constitute a part of the specification. They are used together with the embodiments of this application to explain the technical solutions of this application and do not constitute a limitation on the technical solutions of this application.
[0011] Figure 1 A flowchart illustrating a terminal service template deployment method provided in an embodiment of this application; Figure 2 for Figure 1 A detailed flowchart of step S500 is shown below; Figure 3 for Figure 1 A detailed flowchart of step S200 is shown below; Figure 4 forFigure 3 A detailed flowchart of step S230 is shown below; Figure 5 for Figure 1 A detailed flowchart of another embodiment of step S200; Figure 6 for Figure 1 A detailed flowchart of another embodiment of step S500; Figure 7 for Figure 1 A detailed flowchart of another embodiment of step S500; Figure 8 This is an interactive schematic diagram of the terminal service template deployment method in the embodiments of this application; Figure 9 This is a system block diagram of the browser in the embodiments of this application; Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0012] To enable those skilled in the art to better understand the technical solutions of this application, the technical solutions provided in this application will be described in detail below with reference to the accompanying drawings.
[0013] Exemplary embodiments will be described more fully below with reference to the accompanying drawings; however, the described exemplary embodiments may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this application will be thorough and complete, and will enable those skilled in the art to fully understand the scope of this application.
[0014] As used herein, the term “and / or” includes any and all combinations of one or more related enumerated entries.
[0015] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the application. As used herein, the singular forms “a” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that when the terms “comprising” and / or “made of” are used in this specification, the presence of a feature, integral, step, operation, element, and / or component is specified, but the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof is not excluded.
[0016] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0017] Unless otherwise specified, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in common dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this application, and will not be interpreted as having an idealized or overly formal meaning, unless expressly so defined in the embodiments of this application.
[0018] To facilitate a better understanding of the solutions in the embodiments of this application, the relevant technologies will be introduced first below.
[0019] The Internet Protocol Television (IPTV) service template is an Internet Group Management Protocol (IGMP) template. In IPTV services, the IGMP protocol is used to manage multicast group members, ensuring that only users subscribed to specific channels receive the corresponding video streams. Using the IGMP template optimizes network resource usage, reduces unnecessary bandwidth consumption, and improves video transmission efficiency. Furthermore, the IGMP template covers multiple aspects of the IPTV service process, including obtaining the network set-top box address, electronic program menu server authentication, and processing of users playing live or on-demand programs. The implementation of these processes relies on the correct configuration and application of the IGMP protocol to ensure that users can successfully receive and watch IPTV services.
[0020] In related technologies, methods for locating template page issues generally include the direct elimination method based on log reading and the tunnel access patching method. The direct elimination method involves reading captured page logs and network packets to check for anomalies in the template process and API calls. This method is fast and simple, but it is time-consuming and may even fail to locate the problem when dealing with complex processes. The tunnel access patching method involves connecting the set-top box to the live network, then patching suspicious points on the page and following up on the process to ultimately locate the problem. This method is direct and clear, but it also has many drawbacks, such as being overly dependent on the environment. When there are large network fluctuations, Multiple Access Channel (MAC) conflicts, or the upstream tunnel is offline, it can cause template access to stall or even fail, leading to problem blockage and inability to analyze. Furthermore, both of these methods rely on reading code for troubleshooting, which is time-consuming and cannot verify whether the template page itself is faulty.
[0021] Based on this, this application proposes a method, device, medium, and program product for deploying service templates on a terminal. First, page resources are obtained from a template server. Then, the page resources are sent to a local server for local deployment and an entry page is generated. The entry page indicates the resource access interface and the template page display method. By requesting the entry page from the local server and calling the resource access interface on the entry page, the browser kernel automatically replaces the Internet protocol addresses for requesting files, live streaming, and video-on-demand in subsequent processes with the addresses of the local server, achieving one-click local deployment. The page resources are parsed and rendered according to the template page display method, allowing for a direct visualization of problems with the template page and high efficiency in troubleshooting and locating template page anomalies.
[0022] The terminal service template deployment method provided in this application is applied to a browser. In some embodiments of this application, the browser can be a set-top box browser, and it can also be applied to smart TVs and smartphones with Android systems. It is not excluded that it can be applied to all other smart terminals that support or are compatible with Android systems (such as tablet devices, Huawei HarmonyOS, etc.).
[0023] The terminal service template deployment method in this application embodiment also involves a template server and a local server. The template server is used to provide page resources, and the local server is used to receive page resources sent by the browser to perform local deployment and generate an entry page.
[0024] Please refer to Figure 1 This is a schematic flowchart illustrating a method for deploying a service template on a terminal according to an embodiment of this application. The executing entity of this method can be a browser. Figure 1 As shown, the terminal service template deployment method provided in this application embodiment includes, but is not limited to, steps S100 to S500: Step S100: Obtain page resources from the template server; Step S200: Send the page resources to the local server for local deployment and generate an entry page. The entry page is used to indicate the resource access interface and the template page display method. Step S300: Request the entry page from the local server; Step S400: Determine the resource access interface and template page display method based on the entry page obtained from the request; Step S500: Call page resources from the local server through the resource access interface, parse the page resources according to the template page display method, and render the template page for display.
[0025] In steps S100 to S500 of this embodiment, page resources are first obtained from the template server, and then the page resources are sent to the local server for local deployment and an entry page is generated. The entry page is used to indicate the resource access interface and the template page display method. By requesting the entry page from the local server and calling the resource access interface on the entry page, the browser kernel will automatically replace the Internet protocol address for requesting files, live streaming, and video-on-demand in the subsequent process with the address of the local server, realizing one-click local deployment. The page resources are parsed and the template page is rendered and displayed according to the template page display method, which can intuitively show the problems of the template page and is highly efficient in troubleshooting and locating template page anomalies.
[0026] It is understandable that different local servers may require different business templates, which is equivalent to different template page display methods. Each local server can be compatible with different business templates by setting its own entry page.
[0027] In this embodiment, the resource access interface includes a request file address and a live streaming or video-on-demand address. By calling the resource access interface on the entry page, the browser kernel will enable kernel address replacement. When requesting a file, the browser will automatically match the "http: / / " string in the request IP and replace it with the page packet address passed in by the resource access interface. Simultaneously, when a live streaming or video-on-demand interface is detected, the browser will automatically replace the local live streaming or video-on-demand playback address passed in by the resource access interface with the playback address, achieving one-click local deployment and simulating the process of a set-top box accessing a template. The file path address on the local server differs from the address of the page resource requested on the template server. Therefore, local deployment requires changing the path address of the page resource (i.e., the request file) on the local server. Manually changing the path address requested in each page is time-consuming. Calling the resource access interface allows for one-click address conversion, resulting in high efficiency.
[0028] In some embodiments, page resources include multiple resource files located at different paths. A directory file corresponding to each resource file's path needs to be generated, and each resource file is stored in its corresponding directory file. This allows the browser to easily retrieve resource files from the local server. By having the browser capture each successfully downloaded resource file, store it in the same directory according to its path, and package it, the page code can be easily read, facilitating the troubleshooting and location of anomalies.
[0029] Based on the template page display method and page resources, the target template information can be determined. The target template information is equivalent to page code. After rendering the first template page, any abnormalities in the first template page, such as incorrect formatting, can be identified through the display effect. Compared to traditional methods of directly checking and locating anomalies in the page code, this embodiment first intuitively determines the type of anomaly from the display effect of the first template page, and then makes targeted modifications to the page code. This method is more efficient in anomaly checking and locating, eliminating the need to check the entire set of page code one by one.
[0030] It should be noted that the template page can also be manually extracted in the embodiments of this application, which should not be regarded as a limitation of this application.
[0031] Please refer to Figure 2 , Figure 2 for Figure 1 A detailed flowchart of step S500 is shown. In some embodiments, page resources are called from the local server through a resource access interface, including but not limited to steps S510 to S520: Step S510: If it is determined that the resource access interface is called by the local server, turn on the kernel address replacement switch to replace the page resource call path address with the address in the local server. Step S520: Retrieve page resources from the local server based on the address in the local server.
[0032] In some embodiments of this application, the resource access interface includes a request file address and a live streaming address or video-on-demand address. By calling the resource access interface on the entry page, the browser kernel will enable kernel address replacement. When requesting a file, the browser will automatically match the "http: / / " string in the request IP and replace it with the page packet address passed in by the resource access interface. Simultaneously, when a live streaming or video-on-demand interface is detected, the browser will automatically replace the local live streaming or video-on-demand playback address passed in by the resource access interface with the playback address, achieving one-click local deployment and simulating the process of a set-top box accessing a template. The file path address on the local server differs from the address of the page resource requested on the template server. Therefore, local deployment requires changing the path address of the page resource (i.e., the request file) on the local server. Manually changing the path address requested in each page is time-consuming. Calling the resource access interface allows for one-click address conversion, resulting in high efficiency.
[0033] It should be noted that the embodiments of this application can also create file directories independently and manually change the requested path address in each page, which should not be regarded as a limitation of this application.
[0034] Please refer to Figure 3 ,for Figure 1A detailed flowchart of step S200 is shown. In some embodiments, the page resources include multiple resource files. The page resources are sent to the local server for local deployment, specifically including but not limited to steps S210 to S240: Step S210: Determine the path address of each resource file; Step S220: Generate directory files corresponding to the paths of each resource file; Step S230: Save each resource file in its corresponding directory. Step S240: Package all directory files to obtain local resource files, and send them to the local server for local deployment.
[0035] In one embodiment of this application, different resource files are located in different paths, requiring the creation of file directories so that the browser can easily obtain resource files from the local server. By having the browser capture each successfully downloaded resource file and save it to the same directory according to the path, and then package it, the page code can be easily read, facilitating the investigation and location of anomalies in the page code.
[0036] It should be noted that the local resource files obtained by packaging all directory files can be in compressed file format (i.e., ZIP format) or other file formats, and this should not be regarded as a limitation on this application.
[0037] Please refer to Figure 4 ,for Figure 3 A detailed flowchart of step S230 is provided. In some embodiments, step S230 includes, but is not limited to, steps S231 to S234: Step S211: Identify the encoding format of each resource file; Step S212: Generate corresponding encoding identification information according to the encoding format of each resource file; Step S213: Insert the corresponding encoding identifier information into each resource file to obtain the corresponding encoding identifier file; Step S214: Save each encoding identifier file in the corresponding directory.
[0038] In some embodiments of this application, the encoding formats of the various resource files returned by the template server may differ. During local deployment, this may prevent the browser from properly retrieving resource files from the local server, potentially resulting in garbled Chinese characters and poor display quality. By inserting corresponding encoding identifier information into each resource file, the browser can perceive the encoding format of the resource file when requesting it from the local server during local deployment, thereby avoiding garbled Chinese characters.
[0039] In one embodiment, the browser inserts a byte stream of "EF BB BF" at the beginning of a resource file. When deployed locally, the browser can detect that the resource file is encoded in UTF-8 when requesting the resource file from the local server.
[0040] It should be noted that specific encoding formats are not limited or explained here.
[0041] Please refer to Figure 5 ,for Figure 1 A detailed flowchart of another embodiment of step S200 is shown below. In some embodiments, the page resources are sent to a local server for local deployment, and steps S250 to S280 are also included, but are not limited to: Step S250: Obtain redirection information; Step S260: If the redirection information indicates that the page resource has been redirected, obtain the redirection address information after the page resource has been redirected; Step S270: Replace the address of the page resource with the redirect address information to obtain the redirect resource; Step S280: Send the redirected resources to the local server for local deployment.
[0042] In some embodiments of this application, temporary redirects may occur during local deployment, causing the local deployment process to be interrupted. Upon detecting a temporary redirect, the browser saves the page that was redirected, i.e., the redirected resource. This redirected resource is then sent to the local server for local deployment. Subsequently, when the browser accesses page resources, it will directly redirect to the redirected resource, enabling the local deployment to redirect automatically and ensuring the page redirection process proceeds normally.
[0043] Please refer to Figure 6 ,for Figure 1 A detailed flowchart of another embodiment of step S500 is shown. In one embodiment of this application, the page resources are parsed and the template page is rendered and displayed according to the template page display method, including but not limited to steps S530 to S550: Step S530: Determine the target template information based on the template page display method and page resources; Step S540: Based on the target template information, parse and render the first template page to display the abnormal issues of the first template page; Step S550: Locate the abnormal location in the target template information based on the abnormal problem.
[0044] It is understandable that the target template information is equivalent to page code. After rendering the first template page, any abnormalities in the first template page, such as incorrect formatting, can be identified through the display effect. Compared to the traditional method of directly checking and locating anomalies in the page code, this embodiment first intuitively determines the type of anomaly from the display effect of the first template page, and then makes targeted modifications to the page code. This method is more efficient in anomaly checking and locating, as it eliminates the need to check the entire set of page code one by one.
[0045] Please refer to Figure 7 ,for Figure 1 A detailed flowchart of another embodiment of step S500 is shown below. In some embodiments, after locating the abnormal position in the target template information based on the abnormal problem, steps S560 to S570 are included, but are not limited to: Step S560: Modify the abnormal positions in the target template information to obtain the modified template information; Step S570: Based on the modified template information, parse and render the second template page to display the second template page after eliminating the anomalies.
[0046] In one embodiment of this application, the page code can be easily read through the target template information. After discovering the abnormal position in the target template information, the page code can be directly modified. Based on the modified template information, the second template page is parsed and rendered. The effect after the code modification can be seen intuitively, which improves the efficiency of troubleshooting abnormal problems of the template page.
[0047] Reference Figure 8 , Figure 8 This is an interactive schematic diagram of the terminal service template deployment method in the embodiments of this application. The following describes the terminal service template deployment method in the embodiments of this application using a specific example.
[0048] Enable the relevant configuration switches in the browser and start capturing page log packets; When testers reproduced the abnormal issue, the browser sent a request to the template server to request page resources. The template server returns the relevant page resources; The browser stops capturing packets and disables relevant configuration switches; The browser generates directory files corresponding to the paths of each resource file in the requested page resources, saves each resource file in the corresponding directory file, packages all directory files to obtain local resource files, and sends them to the local server for local deployment. Set up a server; Deploy the captured page log packets (i.e., page resources) on the local server. Generate the entry page and add the "ztebw.setenv() interface" (i.e., the field of the resource access interface) at the beginning of the entry page. Testers manipulate the browser to request the entry page; The local server returns the entry page and calls the resource access interface; Once the browser detects that the resource access interface has been called, it will automatically replace the request address when requesting page resources in the subsequent process, including file, live broadcast, and video-on-demand addresses. The local server returns page resources; The page resources are parsed and rendered into a template page based on the template page display method.
[0049] This embodiment first obtains page resources from a template server, then sends the page resources to a local server for local deployment and generates an entry page. The entry page indicates the resource access interface and the template page display method. By requesting the entry page from the local server and calling the resource access interface on the entry page, the browser kernel automatically replaces the Internet protocol addresses for requesting files, live streaming, and video-on-demand in subsequent processes with the addresses of the local server, achieving one-click local deployment. The page resources are parsed and rendered according to the template page display method, allowing for a direct visualization of template page issues and highly efficient troubleshooting and locating template page anomalies.
[0050] Reference Figure 9 Based on the functions corresponding to the above-mentioned terminal business template deployment method, the browser can be divided into a page resource acquisition module 910, a local deployment module 920, an entry page request module 930, an entry page response module 940, and a template page rendering module 950.
[0051] Page resource acquisition module 910 is used to acquire page resources from the template server; The local deployment module 920 is used to send page resources to the local server for local deployment and generate an entry page. The entry page is used to indicate the resource access interface and the template page display method. Entry page request module 930 is used to request the entry page from the local server; The entry page response module 940 is used to determine the resource access interface and template page display method based on the entry page obtained from the request. The template page rendering module 950 is used to call page resources from the local server through the resource access interface, and parse the page resources according to the template page display method to render the template page for display.
[0052] This embodiment first obtains page resources from a template server, then sends the page resources to a local server for local deployment and generates an entry page. The entry page indicates the resource access interface and the template page display method. By requesting the entry page from the local server and calling the resource access interface on the entry page, the browser kernel automatically replaces the Internet protocol addresses for requesting files, live streaming, and video-on-demand in subsequent processes with the addresses of the local server, achieving one-click local deployment. The page resources are parsed and rendered according to the template page display method, allowing for a direct visualization of template page issues and highly efficient troubleshooting and locating template page anomalies.
[0053] This application also provides an electronic device, such as... Figure 10 As shown, the electronic device 1000 includes: One or more processors 1010; The memory 1020 stores one or more programs. When one or more programs are executed by one or more processors 1010, the one or more processors 1010 implement the service template deployment method of the terminal provided in any embodiment of this application.
[0054] The memory 1020, as a non-transitory network system, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, the memory 1020 may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 1020 may optionally include remotely located memories 1020 relative to the processor 1010, which can be connected to the processor 1010 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0055] The memory 1020 can be implemented as a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1020 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.
[0056] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application.
[0057] In some embodiments, the electronic device further includes: Input / output interfaces are used to implement information input and output; The communication interface is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.). The bus transmits information between various components of the device (such as processor 1010, memory 1020, input / output interface and communication interface); The processor 1010, memory 1020, input / output interface, and communication interface can communicate with each other within the device via a bus.
[0058] One embodiment of this application also provides a computer-readable storage medium storing computer-executable instructions for executing a service template deployment method for a terminal provided in any embodiment of this application.
[0059] An embodiment of this application also provides a computer program product, including a computer program or computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer program or computer instructions from the computer-readable storage medium and executes the computer program or computer instructions, causing the computer device to execute a service template deployment method for a terminal provided in any embodiment of this application.
[0060] The system architecture and application scenarios described in this application are intended to more clearly illustrate the technical solutions of this application and do not constitute a limitation on the technical solutions provided in this application. Those skilled in the art will understand that as system architectures evolve and new application scenarios emerge, the technical solutions provided in this application are also applicable to similar technical problems.
[0061] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0062] It will be understood by those skilled in the art that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0063] The above description, with reference to the accompanying drawings, illustrates some embodiments of this application, but does not limit the scope of the invention. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and spirit of this invention should be considered within the scope of this application.
Claims
1. A service template deployment method of a terminal, the method comprising: obtaining a page resource from a template server; sending the page resource to a local server for local deployment and generating an entry page, the entry page being used to indicate a resource access interface and a template page display mode; requesting the entry page from the local server; determining the resource access interface and the template page display mode according to the entry page obtained by the requesting; calling the page resource from the local server through the resource access interface, and parsing and rendering the page resource according to the template page display mode to display a template page.
2. The method of claim 1, wherein, The calling the page resource from the local server through the resource access interface comprises: in a case where it is determined that the resource access interface is called by the local server, turning on a kernel address replacement switch to replace a calling path address of the page resource with an address in the local server; calling the page resource from the local server based on the address in the local server.
3. The method of claim 1, wherein, The page resource comprises a plurality of resource files, and the sending the page resource to the local server for local deployment comprises: determining a path address of each of the resource files; generating a directory file of a corresponding path according to the path address of each of the resource files; saving each of the resource files under the corresponding directory file; packing all the directory files to obtain a local resource file, and sending the local resource file to the local server for local deployment.
4. The method of claim 3, wherein, The saving each of the resource files under the corresponding directory file comprises: identifying an encoding format of each of the resource files; generating corresponding encoding identification information according to the encoding format of each of the resource files; inserting the corresponding encoding identification information into each of the resource files to obtain a corresponding encoding identification file; saving each of the encoding identification files under the corresponding directory file.
5. The method of claim 1, wherein, The sending the page resource to the local server for local deployment comprises: obtaining redirection information; in a case where the redirection information indicates that the page resource has been redirected, obtaining redirection address information after the redirection of the page resource; replacing an address of the page resource with the redirection address information to obtain a redirected resource; sending the redirected resource to the local server for local deployment.
6. The method of claim 1, wherein, The parsing and rendering the page resource according to the template page display mode to display a template page comprises: determining target template information according to the template page display mode and the page resource; parsing and rendering a first template page based on the target template information to display an abnormal problem of the first template page; locating an abnormal position in the target template information according to the abnormal problem.
7. The method of claim 6, wherein, After the locating the abnormal position in the target template information according to the abnormal problem, the method further comprises: modifying the abnormal position in the target template information to obtain modified template information; parsing and rendering a second template page based on the modified template information to display the second template page after the abnormality is excluded. 8.An electronic device, comprising: one or more processors; memory storing one or more programs, which when executed by the one or more processors, cause the one or more processors to implement a service template deployment method of a terminal as claimed in any of claims 1-7. 9.A computer-readable storage medium storing a computer program, which when executed by a processor, implements a service template deployment method of a terminal as claimed in any of claims 1-7. 10.A computer program product comprising a computer program, which when executed by a processor, implements a service template deployment method of a terminal as claimed in any of claims 1-7.