Page processing method and device
By generating page groups and updating page addresses in the target stage, the maintenance complexity of network pages when adapting to different environments and the high cost of adaptive design is solved, and efficient page creation and jump linkage updates are achieved.
Patent Information
- Application Number
- CN202411875239.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-18
- Publication Date
- 2025-03-28
AI Technical Summary
When the prior art realizes the adaptation of network pages in different environments, maintaining jumps between multiple pages is cumbersome and prone to errors, and the adaptive web page design and development cost is high and it is difficult to achieve full-scene adaptation.
By generating page groups, multiple pages are created, each page corresponds to a different operating environment and page address, and obtain the latest address of each page in the target stage, and update it to other pages of the page group to realize linkage updates and batch creation between pages.
It realizes batch creation and mutual jump of pages in different environments, simplifies the maintenance of multiple versions of pages, and improves the development and processing efficiency of network pages.
Smart Images

Figure CN119719543A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular, to a page processing method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0002] Web pages, with good visual effects, interactivity and excellent cross-platform compatibility, are a common way to display online information. With the popularity of mobile Internet devices such as smartphones, smart watches, and car-mounted smart screens, the hardware environment that web pages need to adapt to is increasing. At the same time, scenarios such as half-screen live broadcast rooms, video player mounting, and mobile phone apps also require embedded web pages for content display, so web pages also need to adapt to more software operating environments.
[0003] In order to display the content of a web page in different environments, it is usually necessary to create multiple pages for the same display content, and the multiple pages need to be able to jump to each other to adapt to different environments. When a web page is displayed in different environments, the adaptation solution is mainly redirection or adaptive web design.
[0004] However, the redirection solution needs to maintain the jumps between multiple pages at the same time, and the pages usually have multiple versions such as draft version, preview version and official version. Currently, the implementation of these operations is cumbersome and complicated, prone to errors and inefficient. For the adaptive web design solution, it is not a jump in the strict sense, the development cost is high, and it is difficult to adapt to all scenarios.
[0005] It should be noted that the above content is not necessarily prior art, nor is it intended to limit the scope of patent protection of this application. Summary of the invention
[0006] Embodiments of the present application provide a page processing method, apparatus, computer device, computer-readable storage medium, and computer program product to solve or alleviate one or more of the technical problems raised above.
[0007] One aspect of an embodiment of the present application provides a page processing method, the method comprising: Generate a plurality of pages based on a page group, each of the pages corresponds to a different operating environment and a different page address, and the page addresses between each two of the pages are associated with each other for mutual jump; In the target stage, the latest address of each of the pages in the target stage is obtained, and the latest address is updated to other pages in the page group to obtain a first update result, and the target stage includes a preview release stage and a production release stage; The page of the target phase is published based on the result of the first update.
[0008] Optionally, publishing the page of the target stage based on the result of the first update includes: Obtaining component dependency information of a target page at the target stage, the target page being any page in the page group; Generate a publishing page address of the target page at the target stage based on the component dependency information; Generate a publishing page of the target page based on the result of the first update; The target page is published at the target stage based on the publishing page address and the publishing page.
[0009] Optionally, updating the latest address to other pages of the page group includes: Obtain the latest addresses of other pages corresponding to the target page in the page group; Updating the latest addresses of the other pages into the jump code of the target page; Correspondingly, generating a publishing page of the target page based on the result of the first update includes: Obtain the latest configuration of the target page; A publishing page of the target page is generated based on the latest configuration and the jump code package.
[0010] Optionally, the acquiring the latest addresses of other pages corresponding to the target page in the page group includes: Freeze the preview operation of other pages of the page group; When the freezing is successful, the latest addresses of the other pages of the page group are obtained.
[0011] Optionally, the method further comprises: When the page content of the target page does not change and the page address of the target page is changed, the changed page address is updated to the jump link of other pages in the page group to obtain a second update result, and the target page is any of the pages; The page of the target phase is republished based on the result of the second update.
[0012] Optionally, the method further comprises: Determine whether the target page has a corresponding target online address; In the case where the target online address exists, the target online address is taken offline, and the online address is republished based on the modified page address.
[0013] Optionally, the method further comprises: When the target page is offline, obtaining a target address corresponding to the target page, wherein the target page is any of the pages; The target page is taken offline, and the target address is deleted from the jump links of other pages in the page group.
[0014] Another aspect of an embodiment of the present application provides a page processing device, the device comprising: A generating module, used for generating a plurality of pages based on a page group, each of the pages corresponding to a different operating environment and a different page address, and the page addresses between each two of the pages are associated with each other for mutual jump; An update module is used to obtain the latest address of each of the pages in the target stage, update the latest address to other pages in the page group, and obtain a first update result, wherein the target stage includes a preview release stage and a production release stage; A publishing module is used to publish the page of the target stage based on the result of the first update.
[0015] Another aspect of an embodiment of the present application provides a computer device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein: the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method described above.
[0016] Another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method described above is implemented.
[0017] Another aspect of an embodiment of the present application provides a computer program product, including a computer program, which implements the method described above when executed by a processor.
[0018] The above technical solution adopted in the embodiment of the present application may have the following advantages: By generating several pages based on a page group, each page corresponds to a different operating environment and a different page address, and the page addresses between every two pages are related to each other for mutual jumping; in the target stage, the latest address of each page in the target stage is obtained, and the latest address is updated to other pages of the page group to obtain the result of the first update, and the pages of the target stage are published based on the result of the first update. The page group can be used to create batches of pages corresponding to different environments and to jump between pages of different environments; at the same time, the latest address of the page is updated to other pages of the page group, and the page is published according to the updated result. The page address of the same page group can be updated in a linked manner in the preview release stage and the production release stage, so as to facilitate the maintenance of pages in multiple environments and multiple versions of pages, and improve the development and processing efficiency of network pages. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.
[0020] Figure 1 The process of making a web page is schematically shown; Figure 2 The flowchart of the page processing method according to the first embodiment of the present application is schematically shown; Figure 3 The page creation interface diagram is schematically shown; Figure 4 Schematically shows Figure 2 Flow chart of sub-steps of step S104; Figure 5 Schematically shows Figure 2 Flow chart of sub-steps of step S102; Figure 6 Schematically shows Figure 4 Flow chart of sub-steps of step S204; Figure 7 The process of preview publishing of the page processing method according to the first embodiment of the present application is schematically shown; Figure 8 The process of producing and distributing the page processing method according to the first embodiment of the present application is schematically shown; Fig. 9 Schematically shows Figure 5 Flow chart of sub-steps of step S300; Fig.10 The newly added process of the page processing method according to the first embodiment of the present application is schematically shown; Fig.11 Another newly added process of the page processing method according to the first embodiment of the present application is schematically shown; Fig.12 The page address update process of the page processing method according to the first embodiment of the present application is schematically shown; Fig.13 Schematically illustrates another newly added process of the page processing method according to the first embodiment of the present application; Fig.14 A block diagram schematically shows a page processing device according to the second embodiment of the present application; and Fig.15 The hardware architecture diagram of the computer device according to the third embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0022] It should be noted that the descriptions involving "first", "second", etc. in the embodiments of the present application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0023] In the description of the present application, it should be understood that the numerical labels before the steps do not indicate the order in which the steps are executed, but are only used to facilitate the description of the present application and to distinguish each step, and therefore should not be understood as a limitation on the present application.
[0024] First, the following terms are explained: Web page: a common way to display Internet information, used to present content in a browser. It can contain multiple elements such as text, images, videos, audio, links, forms, etc., and has good visual effects and interactivity.
[0025] H5: It is an abbreviation that actually refers to HTML, CSS and JavaScript, and refers to a web application developed specifically for mobile terminals of different systems (such as smartphones and tablets). It is based on the traditional desktop Web and is formed through targeted optimization based on the limited resources of handheld mobile terminals.
[0026] Secondly, in order to facilitate those skilled in the art to understand the technical solutions provided in the embodiments of the present application, the relevant technologies are described below: With technological innovation and business iteration, the operating environments of web pages are increasing, mainly facing the following challenges: 1. In addition to adapting to the hardware environment of computers, web pages also need to adapt to hardware environments such as smart watches, car smart screens, and smart watches, and also need to adapt to a variety of software operating environments. In order to adapt to multi-channel distribution, multiple pages need to be created for one piece of content, and multiple pages need to support mutual jumps, otherwise there will be inaccessible problems during the sharing of web pages. For example, user A shares the mobile version of the web link to user B, and user B wants to open the shared web link on a computer. If it cannot jump automatically, user B will not be able to access the content shared by the web link.
[0027] 2. Currently, web page production is generally completed by business personnel who do not have technical development capabilities by dragging components on the page production platform. Due to business needs, other components may be added to the original page. These added network construction elements will cause the page link to change, and these changes need to be synchronized to the automatic jump address of other environments. For example, if a live broadcast player component is added to the page and it is required to play automatically when the page is opened, after the page is created and saved, the new URL address will have an additional "?auto_display=true" part to be compatible with the automatic play attribute.
[0028] 3. The specific content of the web page production may involve the selection of page content, element layout, interactive design, and may also include temporary replacement of some content (such as adding or removing advertisers). Therefore, the content production of web pages changes frequently. Figure 1 As shown, from the production to the final release of a web page, there are usually draft production versions, internal preview versions, external production versions, etc. These versions need to be updated to the corresponding jump links in other environments in a timely manner.
[0029] There are two main ways to redirect web pages: 1. Client redirection: The redirection code is embedded in the mobile web page. If the screen width of the current device is detected to exceed a certain threshold, the current device is determined to be a PC, and redirection is performed to redirect the mobile web page to the corresponding web page of the PC. However, the redirection solution requires maintaining the jumps between multiple pages for multiple environments and multiple versions at the same time. Currently, these maintenance operations are cumbersome and complex, prone to errors, and inefficient.
[0030] 2. Adaptive web design: Without redirecting the page address, create different layouts for different devices to ensure that the web page can be displayed correctly on different devices. However, the development cost of this method is very high, and it is difficult to adapt to all scenarios. For some old devices or some new business scenarios, compatibility display issues are prone to occur.
[0031] To this end, the embodiment of the present application provides a page processing technical solution. In this technical solution: by batch creating web pages of different environments through page groups, producing corresponding page jump address solutions, and realizing the jump address linkage of pages of different environments in the process of making, previewing and producing and publishing web pages, it is convenient to realize the maintenance of multiple environment pages and multiple versions of pages with high efficiency. See below for details.
[0032] The technical solutions of the present application are described below through multiple embodiments. It should be noted that these embodiments can be implemented in a variety of different forms and should not be construed as being limited to the embodiments described here.
[0033] Embodiment 1 Figure 2 The flowchart of the page processing method according to the first embodiment of the present application is schematically shown.
[0034] like Figure 2 As shown, the page processing method may include steps S100 to S104, wherein: Step S100 , generating a plurality of pages based on a page group, each of the pages corresponding to a different operating environment and a different page address, and the page addresses between each two pages are associated with each other for mutual jump.
[0035] Step S102, in the target stage, obtaining the latest address of each of the pages in the target stage, updating the latest address to the other pages in the page group, and obtaining a first update result. The target stage includes a preview release stage and a production release stage.
[0036] Step S104: publishing the page of the target stage based on the result of the first update.
[0037] The page processing method provided in the present embodiment generates a plurality of pages based on a page group, each page corresponds to a different operating environment and a different page address, and the page addresses between every two pages are related to each other for mutual jumping; in the target stage, the latest address of each page in the target stage is obtained, and the latest address is updated to other pages of the page group to obtain the result of the first update, and the page of the target stage is published based on the result of the first update, so that batch creation of pages corresponding to different environments can be realized through the page group, and mutual jumping between pages of different environments can be realized; at the same time, the latest address of the page is updated to other pages of the page group, and the page is published according to the update result, so that the page address of the same page group can be updated in the preview release stage and the production release stage, so as to conveniently realize the maintenance of pages of multiple environments and multiple versions of pages, and improve the development and processing efficiency of network pages.
[0038] The following combination Figure 2 , each step in steps S100~S104 and other optional steps are explained in detail.
[0039] Step S100 , a plurality of pages are generated based on a page group, each of the pages corresponds to a different operating environment and a different page address, and the page addresses between each two pages are associated with each other for mutual jumping.
[0040] The operating environment can include hardware environments such as computers, mobile phones, tablets, smart watches, and car-mounted smart screens, as well as software environments such as live broadcast room half-screen, video player mounting, and mobile phone APP.
[0041] Specifically, a user interface for batch creation of pages can be developed, so that users can use the user interface to create multiple pages corresponding to different environments based on a page group for the same page content, and can configure the relevant content of the created pages through the user interface. More specifically, the client can display the user interface upon receiving a user request, and generate several pages in a page group according to the user input to the user interface. Figure 3 As shown, an H5 page and a PC page can be created based on a page group at the same time, wherein the H5 page and the PC page are related to each other and can jump to each other. It should be understood that Figure 3 Taking the common H5 pages and PC pages as examples, it can also include pages of car smart screens, smart watches, etc. In addition, Figure 3 The environment shown is a general environment, and in fact, it can also be other customized environments, and each environment type can include different pages. For example, environment 1 includes three pages A, B, and C, and environment 2 includes two pages B and D. The specific configuration can be based on actual needs.
[0042] Pages in a page group can include some common configuration information, such as page name (title), sharing information, etc. The following is a specific example:
[0043] As shown in the table above, the page group can centrally manage the page name, sharing information, distribution channels, IDs of all pages, etc.; each page can independently manage the page address, page click analysis, page elements, etc.
[0044] Step S102 In the target stage, the latest address of each page in the target stage is obtained, and the latest address is updated to other pages in the page group to obtain the result of the first update. The target stage includes a preview release stage and a production release stage.
[0045] Specifically, in the preview release stage, the latest address of each page in the preview release stage can be updated to other pages in the page group; in the production release stage, the latest address of each page in the production release stage can be updated to other pages in the page group. When updating, the latest addresses of other pages of the current page of the page group can be updated to the page code of the current page, wherein the jump between pages is an invisible element of the page and does not affect the display effect of the page.
[0046] Step S104 , based on the result of the first update, the page of the target stage is published.
[0047] Based on the result of the first update, the page can be published in the target stage. Specifically, in the preview publishing stage, after the update is completed, the page in the page group can be published in the preview stage based on the result of the first update; in the production publishing stage, after the update is completed, the page in the page group can be published in the production publishing stage based on the result of the first update. The following provides some exemplary solutions for the publishing details of each page.
[0048] In an optional embodiment, if Figure 4 As shown, step S104 may include: Step S200, obtaining component dependency information of a target page in the target stage, wherein the target page is any page in the page group.
[0049] Step S202: generating a publishing page address of the target page at the target stage based on the component dependency information.
[0050] Step S204: generating a publishing page of the target page based on the result of the first update.
[0051] Step S206: publishing the target page in the target stage based on the publishing page address and the publishing page.
[0052] The component dependency information may refer to component dependency information related to the page address, such as the aforementioned automatic play attribute.
[0053] Specifically, the component dependency information of the target page at the target stage can be obtained, and then the page address of the target page can be updated according to the component dependency information to obtain the publishing page address of the target page at the target stage, wherein updating the page address of the target page according to the component dependency information can include updating the domain name and / or page parameters, etc. When generating the publishing page of the target page, the latest publishing page of the target page can be generated according to the latest content of the target page and the result of the first update; after obtaining the publishing page address and the latest publishing page of the target page, the target page can be published at the target stage according to the publishing page address and the publishing page of the target page.
[0054] In this embodiment, by obtaining component dependency information of the target page in the target stage, generating a publishing page address of the target page in the target stage based on the component dependency information, generating a publishing page of the target page based on the result of the first update, and publishing the target page in the target stage based on the publishing page address and the publishing page, the pages in the page group can be effectively published in the preview publishing stage or the production publishing stage, and at the same time, the published page can maintain jumps to the latest content of other pages and the latest page content of the current page.
[0055] In an optional embodiment, if Figure 5 As shown, step 102 may include: Step 300: Obtain the latest addresses of the other pages corresponding to the target page in the page group.
[0056] Step S302: updating the latest addresses of the other pages into the jump code of the target page.
[0057] Correspondingly, if Figure 6 As shown, step 204 may include: Step S304, obtaining the latest configuration of the target page.
[0058] Step S306: Generate a publishing page of the target page based on the latest configuration and the jump code package.
[0059] Specifically, for the target page, the latest addresses of other pages corresponding to the target page in the page group in the target stage can be obtained (which can be the latest addresses of other pages except the target page), and then the latest addresses of other pages obtained can be updated to the jump code of the target page. Among them, the jump code of the target page is an invisible element of the page and will not affect the display effect of the target page. Correspondingly, when generating the publishing page of the target page based on the result of the first update, the latest configuration of the target page can be obtained, which can include the latest configuration of the page structure and element information of the target page, and then the latest configuration of the target page obtained is packaged together with the updated jump code to generate the publishing page of the target page. In this way, the publishing page of the target page not only contains the latest configuration, but also contains the latest jump links with other pages, and can automatically realize the corresponding jump according to the different devices that open the publishing page address of the target page.
[0060] Please refer to Figure 7 , which is a sample diagram of the preview release process, which can roughly include the following processes: 1. Start making web pages; 2. Create a page group, which includes two pages: H5 page and PC page; 3. Make a draft of the H5 page (the draft of the PC page can be made at the same time). When the dependent components are updated and have an impact on the link address, update the link address of the draft version according to the dependent components of the H5 page; 4. After the draft is completed and the internal preview page of H5 is ready to be released, determine whether the preview address corresponding to the PC has been updated. If so, proceed to 5, otherwise proceed to 6; 5. Update the preview address after PC update to the jump code of H5 page; 6. Use the latest H5 address to publish the preview page of the H5 page; for the PC page, you can also obtain the PC page preview configuration, modify the jump link of the PC page configuration to the latest H5 preview link, and use the latest PC address to publish the preview page of the PC page; 7. End.
[0061] Please continue to refer to Figure 8 , which is an example diagram of the production release process, which can generally include the following processes: 1. Start production release; 2. Determine whether the official address of the PC page has been updated. If so, proceed to 3, otherwise proceed to 4; 3. Change the jump link configured in the H5 page to the official address of the PC page; 4. Use the latest address of H5 to publish the official external page of H5; for PC page, you can also obtain the official configuration of PC page, modify the jump link of PC page configuration to the latest official address of H5 page, and publish the latest official page of PC; 5. End.
[0062] In this embodiment, by obtaining the latest addresses of other pages corresponding to the target page in the page group, updating the latest addresses of other pages into the jump code of the target page, obtaining the latest configuration of the target page, and generating a publishing page for the target page based on the latest configuration and the jump code package, the jump links of each page in the page group can be linked and updated at each stage of the page.
[0063] Since there are multiple pages in a page group, multiple pages may be operated at the same time. In order to avoid data inconsistency or conflict, when operating a certain page, the operations on other pages can be frozen. The following are some exemplary solutions: In an optional embodiment, if Fig. 9 As shown, step S300 may include: Step S400: freezing the preview operation of the other pages of the page group.
[0064] Step S402: if the freezing is successful, obtaining the latest addresses of the other pages of the page group.
[0065] Specifically, before obtaining the latest addresses of other pages in the page group, the preview operations of other pages in the page group are frozen. For example, if the page group includes three pages, namely, the target page, page A and page B, the preview operations of page A and page B can be frozen before obtaining the latest addresses of page A and page B. If the freezing is unsuccessful, the preview operations of other pages can be waited for to be completed before re-freezing; if the freezing is successful, the latest addresses of other pages in the page group are obtained.
[0066] In this embodiment, by freezing the preview operation of other pages of the page group, when the freezing is successful, the latest addresses of other pages of the page group are obtained, which can avoid data conflicts in the process of obtaining addresses and ensure data consistency.
[0067] Due to business and other needs, pages are usually updated. Among them, page updates can include two types: one is to update the page content, but not directly modify the page link address; the other is to directly modify the page address without modifying the page content; for the first type, since the update of page content is generally confirmed through the processes of draft-preview-production release, its process is no different from the aforementioned solution. At the same time, through the confirmation of the effectiveness of the process, it can be determined that the jump addresses of related pages are updated to the latest links of each page. For the second type, the jumps of other pages in the page group can be updated to the modified page address. The following are some exemplary solutions for the second situation: In an optional embodiment, if Fig.10 As shown, the page processing method of the embodiment of the present application may also include: Step S500, when the page content of the target page does not change and the page address of the target page is changed, the changed page address is updated to the jump link of other pages in the page group to obtain a second update result, and the target page is any of the pages.
[0068] Step S502: republishing the page of the target stage based on the result of the second update.
[0069] Specifically, when the page content of the target page is unchanged and the page address of the target page is updated, the updated page address of the target page is updated to the jump link of other pages in the page to obtain the result of the second update. For the target page, the latest address of the target stage can be changed to the modified page address, and then the page is republished. For other pages of the page group, the page can be republished according to the updated jump link and the latest address and the latest configuration of the page.
[0070] In this embodiment, by updating the changed page address to the jump links of other pages in the page group when the page content of the target page remains unchanged and the page address of the target page is updated, the result of the second update is obtained, and the page of the target stage is republished based on the result of the second update. By modifying only the page address, the jump link update of the page in the page group and the republishing of related pages can be achieved.
[0071] In an optional embodiment, if Fig.11 As shown, the page processing method of the embodiment of the present application may also include: Step S600, determining whether the target page has a corresponding target online address.
[0072] Step S602: if the target online address exists, take the target online address offline, and republish the online address based on the modified page address.
[0073] Specifically, determine whether the target page for which only the page address is modified has a corresponding target online address; if not, then confirm the effectiveness of the modified page address according to the production release process; if the corresponding target online address exists, the target online address can be taken offline and the changed page address can be used as the new online address.
[0074] Please refer to Fig.12 , which is an example diagram of the process of updating the page address, which can generally include the following processes: 1. When only the page address is modified on the current page, the latest address of the draft configuration is updated to the modified page address; 2. Determine whether there is a preview address corresponding to the current page. If yes, go to 3; otherwise, go to 5. 3. Get the current page preview configuration (including preview configuration and latest address), and delete the original preview page and address; 4. Regenerate the latest preview address; for other pages in the page group, you can obtain the preview configuration of other pages, modify the inter-jump links configured on other pages to the latest preview link of the current page, and republish the preview pages of other pages; 5. Determine whether there is an online address corresponding to the current page. If yes, proceed to 6, otherwise proceed to 8; 6. Get the current page production configuration (which may include production configuration and the latest address), and take down the original production page and address; 7. Republish the latest production page address of the current page; for other pages in the page group, you can obtain the production configuration of other pages, modify the inter-jump links configured in other pages to the latest official links of the current page, and republish the production pages of other pages; 8. End.
[0075] In this embodiment, by determining whether the target page has a corresponding target online address, if the corresponding target online address exists, the target online address is taken offline, and the online address is republished based on the changed page address, the online address can be updated by only modifying the page address.
[0076] Due to business needs and other reasons, a page in a page group may be taken offline. When a page is taken offline, the jump link to the offline page in other pages is deleted at the same time. Some exemplary solutions are provided below.
[0077] In an optional embodiment, if Fig.13 As shown, the page processing method of the embodiment of the present application may also include: Step S700, when the target page is offline, obtaining the target address corresponding to the target page.
[0078] Step S702: taking the target page offline, and deleting the target address from the jump links of other pages in the page group.
[0079] Specifically, when the target page is offline, the target address corresponding to the target page is obtained, and then the target page is offline, and the jump link related to the target address is deleted in other pages of the page group, so that during the automatic jump process of the page, it will not jump to the target page that has been offline.
[0080] In this embodiment, when the target page is offline, the target address corresponding to the target page is obtained, the target page is offline, and the target address is deleted from the jump links of other pages in the page group. This can effectively achieve the offline of the target page and the linkage update of the jump links of other pages in the page group.
[0081] Embodiment 2 Fig.14 The block diagram of the page processing device according to the second embodiment of the present application is schematically shown. The device can be divided into one or more program modules, one or more program modules are stored in a storage medium, and are executed by one or more processors to complete the embodiment of the present application. The program module referred to in the embodiment of the present application refers to a series of computer program instruction segments that can complete specific functions. The following description will specifically introduce the functions of each program module in this embodiment. Fig.14 As shown, the apparatus 800 may include a generating module 810, an updating module 820 and a publishing module 830, wherein: A generating module 810, for generating a plurality of pages based on a page group, each of the pages corresponding to a different operating environment and a different page address, and the page addresses between each two of the pages are associated with each other for mutual jump; An updating module 820 is used to obtain the latest address of each of the pages in the target stage, update the latest address to other pages in the page group, and obtain a first update result in the target stage, wherein the target stage includes a preview release stage and a production release stage; The publishing module 830 is used to publish the page of the target stage based on the result of the first update.
[0082] In an optional embodiment, the publishing module 830 is further configured to: Obtaining component dependency information of a target page at the target stage, the target page being any page in the page group; Generate a publishing page address of the target page at the target stage based on the component dependency information; Generate a publishing page of the target page based on the result of the first update; The target page is published at the target stage based on the publishing page address and the publishing page.
[0083] In an optional embodiment, the updating module 820 is further configured to: Obtain the latest addresses of other pages corresponding to the target page in the page group; Updating the latest addresses of the other pages into the jump code of the target page; Correspondingly, the publishing module 830 is also used for: Obtain the latest configuration of the target page; A publishing page of the target page is generated based on the latest configuration and the jump code package.
[0084] In an optional embodiment, the updating module 820 is further configured to: Freeze the preview operation of other pages of the page group; When the freezing is successful, the latest addresses of the other pages of the page group are obtained.
[0085] In an optional embodiment, the device 800 is further used for: When the page content of the target page does not change and the page address of the target page is changed, the changed page address is updated to the jump link of other pages in the page group to obtain a second update result, and the target page is any of the pages; The page of the target phase is republished based on the result of the second update.
[0086] In an optional embodiment, the device 800 is further used for: Determine whether the target page has a corresponding target online address; In the case where the target online address exists, the target online address is taken offline, and the online address is republished based on the modified page address.
[0087] In an optional embodiment, the device 800 is further used for: When the target page is offline, obtaining a target address corresponding to the target page, wherein the target page is any of the pages; The target page is taken offline, and the target address is deleted from the jump links of other pages in the page group.
[0088] Embodiment 3 Fig.15 The schematic diagram of the hardware architecture of a computer device 10000 suitable for implementing the page processing method according to the third embodiment of the present application is shown. In some embodiments, the computer device 10000 may be a terminal device such as a smart phone, a wearable device, a tablet computer, a personal computer, a vehicle terminal, a game console, a virtual device, a workbench, a digital assistant, a set-top box, a robot, etc. In other embodiments, the computer device 10000 may be a rack server, a blade server, a tower server, or a cabinet server (including an independent server, or a server cluster composed of multiple servers), etc. Fig.15 As shown, the computer device 10000 includes but is not limited to: a memory 10010, a processor 10020, and a network interface 10030 that can communicate with each other through a system bus. Among them: The memory 10010 includes at least one type of computer-readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (such as SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 10010 can be an internal storage module of the computer device 10000, such as a hard disk or memory of the computer device 10000. In other embodiments, the memory 10010 can also be an external storage device of the computer device 10000, such as a plug-in hard disk equipped on the computer device 10000, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 10010 can also include both the internal storage module of the computer device 10000 and its external storage device. In this embodiment, the memory 10010 is generally used to store the operating system and various application software installed in the computer device 10000, such as program codes of the page processing method, etc. In addition, the memory 10010 can also be used to temporarily store various data that have been output or are to be output.
[0089] In some embodiments, the processor 10020 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other chips. The processor 10020 is generally used to control the overall operation of the computer device 10000, such as performing control and processing related to data interaction or communication with the computer device 10000. In this embodiment, the processor 10020 is used to run the program code stored in the memory 10010 or process data.
[0090] The network interface 10030 may include a wireless network interface or a wired network interface, and the network interface 10030 is generally used to establish a communication link between the computer device 10000 and other computer devices. For example, the network interface 10030 is used to connect the computer device 10000 to an external terminal through a network, and to establish a data transmission channel and a communication link between the computer device 10000 and the external terminal. The network may be a wireless or wired network such as an intranet, the Internet, the Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, etc.
[0091] It should be pointed out that Fig.15 Only a computer device having components 10010 - 10030 is shown, but it should be understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.
[0092] In this embodiment, the page processing method stored in the memory 10010 can also be divided into one or more program modules and executed by one or more processors (such as processor 10020) to complete the embodiment of the present application.
[0093] Embodiment 4 An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the page processing method in the embodiment are implemented.
[0094] In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the computer-readable storage medium can be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the computer-readable storage medium can also be an external storage device of a computer device, such as a plug-in hard disk equipped on the computer device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the computer-readable storage medium can also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the computer-readable storage medium is generally used to store an operating system and various application software installed on the computer device, such as the program code of the page processing method in the embodiment, etc. In addition, the computer-readable storage medium can also be used to temporarily store various types of data that have been output or are to be output.
[0095] Embodiment 5 An embodiment of the present application also provides a computer program product, including a computer program, which implements the method in the above embodiment when executed by a processor.
[0096] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present application can be implemented by general-purpose computer devices, they can be concentrated on a single computer device, or distributed on a network composed of multiple computer devices, optionally, they can be implemented by executable program codes of computer devices, so that they can be stored in a storage device and executed by the computer device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0097] It should be noted that the above are only preferred embodiments of the present application, and the patent protection scope of the present application is not limited thereto. Any equivalent structure or equivalent process transformation made using the contents of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A page processing method, characterized in that: The method comprises: Generate a plurality of pages based on a page group, each of the pages corresponds to a different operating environment and a different page address, and the page addresses between each two of the pages are associated with each other for mutual jump; In the target stage, the latest address of each of the pages in the target stage is obtained, and the latest address is updated to other pages in the page group to obtain a first update result, and the target stage includes a preview release stage and a production release stage; The page of the target phase is published based on the result of the first update.
2. The method according to claim 1, characterized in that The publishing of the page of the target stage based on the result of the first update includes: Obtaining component dependency information of a target page at the target stage, the target page being any page in the page group; Generate a publishing page address of the target page at the target stage based on the component dependency information; Generate a publishing page of the target page based on the result of the first update; The target page is published at the target stage based on the publishing page address and the publishing page.
3. The method according to claim 2, characterized in that The updating of the latest address to the other pages of the page group includes: Obtain the latest addresses of other pages corresponding to the target page in the page group; Updating the latest addresses of the other pages into the jump code of the target page; Correspondingly, generating a publishing page of the target page based on the result of the first update includes: Obtain the latest configuration of the target page; A publishing page of the target page is generated based on the latest configuration and the jump code package.
4. The method according to claim 3, characterized in that The acquiring the latest addresses of other pages corresponding to the target page in the page group includes: Freeze the preview operation of other pages of the page group; When the freezing is successful, the latest addresses of the other pages of the page group are obtained.
5. The method according to claim 1, characterized in that The method further comprises: When the page content of the target page does not change and the page address of the target page is changed, the changed page address is updated to the jump link of other pages in the page group to obtain a second update result, and the target page is any of the pages; The page of the target phase is republished based on the result of the second update.
6. The method according to claim 5, characterized in that The method further comprises: Determine whether the target page has a corresponding target online address; In the case where the target online address exists, the target online address is taken offline, and the online address is republished based on the modified page address.
7. The method according to claim 1, characterized in that The method further comprises: When the target page is offline, obtaining a target address corresponding to the target page, wherein the target page is any of the pages; The target page is taken offline, and the target address is deleted from the jump links of other pages in the page group.
8. A page processing device, characterized in that: The device comprises: A generating module, used for generating a plurality of pages based on a page group, each of the pages corresponding to a different operating environment and a different page address, and the page addresses between each two of the pages are associated with each other for mutual jump; An update module is used to obtain the latest address of each of the pages in the target stage, update the latest address to other pages in the page group, and obtain a first update result, wherein the target stage includes a preview release stage and a production release stage; A publishing module is used to publish the page of the target stage based on the result of the first update.
9. A computer device, characterized in that: include: at least one processor; and a memory communicatively coupled to the at least one processor; wherein: The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the 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 instructions, and when the computer instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.