Web page production processing method, device, equipment and storage medium
Through the dynamic splicing method of pre-configuring templates, modules and components, the problem of high time cost of web page production in the existing technology is solved, and efficient dynamic generation and rapid response of web pages are achieved.
Patent Information
- Application Number
- CN202111605352.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-24
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-12-24
AI Technical Summary
In the existing technology, the time cost of making web pages is relatively high, and a large amount of manual coding is required to meet the web page needs of different users.
By pre-configuring templates, modules and components, web pages are dynamically spliced together, and only the combination of templates, modules and components needs to be changed, reducing web page production time.
It realizes the dynamic generation of web pages, reduces the time cost of web page production, and improves efficiency.
Smart Images

Figure CN114327441B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a web page production and processing method, device, equipment and storage medium. Background Art
[0002] With the continuous development of network applications, various web pages and websites are widely used in the fields of commodity sales, education and teaching, and information introduction. Different web pages need to be produced for different contents so that users can obtain different information when viewing the web pages.
[0003] Currently, in order to return different web page contents in response to web page acquisition requests sent by users, a large number of web pages need to be produced.
[0004] However, creating a large number of web pages has the problem of high time cost. Summary of the invention
[0005] The present application provides a web page production processing method, device, equipment and storage medium, which are used to solve the problem of high time cost in producing a large number of web pages.
[0006] In a first aspect, the present application provides a webpage production processing method, comprising:
[0007] A page acquisition request sent by a first client is received, and a page flow identifier and a service identifier corresponding to the page acquisition request are obtained in a preset configuration file according to the page acquisition request. According to the page flow identifier and the service identifier, a template identifier, a plurality of module identifiers, and a plurality of component identifiers corresponding to the page acquisition request are queried in a preset comparison table. Templates, a plurality of modules, and a plurality of components corresponding to the template identifier, the plurality of module identifiers, and the plurality of component identifiers are respectively extracted. The template, the plurality of modules, and the plurality of components are converted into a web page corresponding to the page acquisition request, and the web page is sent to the first client.
[0008] In a possible implementation, based on the page flow identifier and the service identifier, a preset comparison table is queried to obtain a template identifier, multiple module identifiers, and multiple component identifiers corresponding to the page acquisition request, including: querying the first preset comparison table to determine the template identifier corresponding to the page flow identifier and the service identifier, wherein the first preset comparison table stores the correspondence between each page flow identifier and the service identifier and the template identifier; querying the second preset comparison table to determine the multiple module identifiers corresponding to the template identifier, wherein the second preset comparison table stores the correspondence between each template identifier and the module identifier; querying the third preset comparison table to determine the multiple component identifiers corresponding to the multiple module identifiers, wherein the third preset comparison table stores the correspondence between each module identifier and the component identifier.
[0009] In one possible implementation, converting a template, multiple modules, and multiple components into a web page includes: using a preconfigured first conversion program to convert the template, multiple modules, and multiple components into a message format template, module, and component; using a preconfigured second conversion program to convert the message format template, module, and component into a web page.
[0010] In a possible implementation, after sending the web page to the first client, it also includes: storing the template, module and component in the message format corresponding to the page acquisition request into a cache; if a page acquisition request identical to the page acquisition request is received from a second client, reading the template, module and component in the message format corresponding to the page acquisition request from the cache; using a pre-configured second conversion program to convert the template, module and component in the message format into a web page in the cache, and sending the web page in the cache to the second client.
[0011] In a possible implementation, before receiving the page acquisition request sent by the first client, it also includes: storing the web page configuration file in a distributed relational database, wherein the web page configuration file includes a preset configuration file, a preset comparison table, all templates, all modules and all components; backing up the web page configuration file stored in the distributed relational database in the Elastic Search ES database; accordingly, respectively extracting the templates, multiple modules and multiple components corresponding to the template identifier, multiple module identifiers and multiple component identifiers, including: respectively extracting the templates, multiple modules and multiple components corresponding to the template identifier, multiple module identifiers and multiple component identifiers from the ES database.
[0012] In a possible implementation, after backing up the web page configuration file stored in the distributed relational database in the Elastic Search ES database, it also includes: receiving modification information for some files in the web page configuration file in the distributed relational database; modifying some files according to the modification information to obtain modified some files; backing up the modified some files in the ES database, and deleting some files in the corresponding unmodified web page configuration file in the ES database.
[0013] In a possible implementation, after sending the webpage to the first client, the method further includes: recording a log of the page acquisition request processing process.
[0014] In a second aspect, the present application provides a webpage creation and processing device, comprising:
[0015] The first acquisition module is used to receive the page flow sent by the first client, and obtain the page flow identifier and service identifier corresponding to the page flow in the preset configuration file according to the page flow; the second acquisition module is used to query the template identifier, multiple module identifiers and multiple component identifiers corresponding to the page acquisition request in the preset comparison table according to the page flow identifier and service identifier; the extraction module is used to extract the templates, multiple modules and multiple components corresponding to the template identifier, multiple module identifiers and multiple component identifiers respectively; the sending module is used to convert the template, multiple modules and multiple components into a web page corresponding to the page flow, and send the web page to the first client.
[0016] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory to implement the web page production and processing method as described in the first aspect above.
[0017] In a fourth aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the web page production and processing method as described in the first aspect above.
[0018] The web page production processing method, device, equipment and storage medium provided in the present application convert pre-configured templates, modules and components into web pages by receiving web page acquisition requests sent by clients, thereby realizing dynamic generation of web pages. Since templates, modules and components can be reused, when a large number of web pages need to be produced, only the combination of templates, modules and components needs to be changed, thereby reducing the time for web page production. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0020] Figure 1 A schematic diagram of an application scenario of the web page production processing method provided in an embodiment of the present application;
[0021] Figure 2 A flowchart of a web page creation method provided in an embodiment of the present application;
[0022] Figure 3 A schematic diagram of a web page creation and processing device provided in an embodiment of the present application Figure 1 ;
[0023] Figure 4 A schematic diagram of a web page creation and processing device provided in an embodiment of the present application Figure 2 ;
[0024] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0025] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0026] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0027] First, the terms involved in this application are explained:
[0028] Page flow: refers to the flow of pages, the relationship between the inflow and outflow of pages.
[0029] Message: refers to the data unit exchanged and transmitted in the network, that is, the data block to be sent by the station at one time. The message contains the complete data information to be sent, and its length is very inconsistent, unlimited and variable.
[0030] Unid (uni-design, user network side interface design): refers to the global wide area network development component, which is a React (global wide area network development framework) UI (User Interface Design, interface design) component library based on the government and enterprise middle platform design system of China Unicom Software Research Institute, and supports the UI component library developed by various middle platform design systems.
[0031] As the degree of social informatization increases, people get information from the Internet more and more frequently. In addition to obtaining the required information from videos, audios or files, web pages are also one of the main ways to obtain information. Different from video and audio, web pages have greater advantages in the dissemination of information, especially text information. Currently, web pages are widely used in product sales, corporate publicity, education and teaching, and problem discussion.
[0032] As the demand for web pages increases, the number of web pages produced also increases. The current method of producing web pages mainly involves manually writing codes to write the entire web page, which has the problem of high time cost.
[0033] In response to the above problems, this application provides the following technical concept: by pre-making templates, modules and components, and forming web pages through dynamic splicing, when making web pages, you only need to change the splicing method of templates, modules and components, eliminating the process of encoding the entire web page and reducing time costs.
[0034] Figure 1 Schematic diagram of the application scenario of the web page production processing method provided in the embodiment of the present application. Figure 1 , this scenario includes: a client 101, a server 102 and a database 103.
[0035] The client 101 may include a computer, a server, a tablet, a mobile phone, a PDA (Personal Digital Assistant), a notebook, etc.
[0036] The server 102 is implemented by using a server or a cluster of multiple servers with more powerful processing capabilities and higher security. If possible, it can also be replaced by a computer or laptop with stronger computing power.
[0037] The database 103 may include a single database or a combination of multiple databases, such as Oracle database, MySQL (relational database management system), DRDS (Distribute Relational Database Service) database, ES (Elasticsearch) database, etc., and this application does not impose any special restrictions on this.
[0038] The connection between the client 101, the server 102 and the database 103 can be through a wired connection or a wireless network connection, wherein the network used for the wireless network connection can include various types of wired and wireless networks, such as but not limited to: the Internet, local area network, Wireless Fidelity (Wireless Fidelity, WIFI), Wireless Local Area Networks (Wireless Local Area Networks, WLAN), cellular communication networks (General Packet Radio Service technology (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), 2G / 3G / 4G / 5G cellular networks), satellite communication networks, etc.
[0039] It is understandable that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the webpage production processing method. In other feasible implementations of the present application, the above architecture may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently, which can be determined according to the actual application scenario and is not limited here. Figure 1 The components shown may be implemented in hardware, software, or a combination of software and hardware.
[0040] In the specific implementation process, the client 101 is used to send and receive page streams.
[0041] The server 102 is used to receive the page flow sent by the client, and search and extract the corresponding templates, modules and components according to the page flow, and convert the obtained templates, modules and components into web pages, and finally send the web pages to the client.
[0042] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0043] Figure 2 A flowchart of a web page creation method provided in an embodiment of the present application. The execution subject of the embodiment of the present application may be Figure 1 The server 102 in some cases may also be a computer and / or a mobile phone, etc., which is not particularly limited in this embodiment. Figure 2 As shown, the method includes:
[0044] S201: receiving a page acquisition request sent by a first client, and acquiring a page flow identifier and a service identifier corresponding to the page acquisition request in a preset configuration file according to the page acquisition request.
[0045] In this step, the page acquisition request can be a page flow, a request for changing a page flow, or a request for acquiring a specific page flow. The preset configuration file contains the corresponding relationship between the page acquisition request, the page flow identifier, and the service identifier.
[0046] Specifically, the page flow is, for example, selecting a customer - entering an order - previewing an order, or selecting a product - selecting a quantity - selecting an address, etc. Service identifiers are, for example, order identifiers, change identifiers, etc.
[0047] S202: According to the page flow identifier and the service identifier, a preset comparison table is searched to obtain a template identifier, a plurality of module identifiers, and a plurality of component identifiers corresponding to the page acquisition request.
[0048] In this step, one template identifier corresponds to multiple module identifiers, and one module identifier corresponds to multiple component identifiers. As long as one template identifier is found, the corresponding multiple module identifiers and multiple component identifiers can be found.
[0049] S203: extracting the template, the multiple modules and the multiple components corresponding to the template identifier, the multiple module identifiers and the multiple component identifiers respectively.
[0050] In this step, templates, modules and components can be pre-configured. The template can set the size and layout of the entire web page. The module is responsible for completing the main functions of each part of the web page, and the component implements the detailed functions of the web page in the module.
[0051] Components include file upload boxes, radio drop-down boxes, date and time controls, password input, integer input, multi-line text input boxes, and text input.
[0052] S204: Convert the template, the multiple modules, and the multiple components into a web page corresponding to the page acquisition request, and send the web page to the first client.
[0053] In this step, converting the template, the plurality of modules, and the plurality of components into pages may be accomplished using a pre-configured script or program.
[0054] The converted web page may be in the form of a DOM (Document Object Model) tree.
[0055] From the description of the above embodiments, it can be seen that the embodiments of the present application convert pre-configured templates, modules and components into web pages by receiving web page acquisition requests sent by the client, thereby realizing dynamic generation of web pages. Since templates, modules and components can be reused, when a large number of web pages need to be produced, only the combination of templates, modules and components needs to be changed, thereby reducing the time for web page production.
[0056] In a possible implementation, in the above step S202, according to the page flow identifier and the service identifier, a template identifier, multiple module identifiers and multiple component identifiers corresponding to the page acquisition request are queried in a preset comparison table, including:
[0057] S2021: Query a first preset comparison table to determine the template identifier corresponding to the page flow identifier and the service identifier, wherein the first preset comparison table stores the correspondence between each page flow identifier, service identifier and template identifier.
[0058] In this step, the page flow identifier and the service identifier correspond to a unique template identifier. The page flow identifier, the service identifier and the template identifier can be preset, and this application does not impose any special restrictions on this.
[0059] S2022: Query a second preset comparison table to determine a plurality of module identifiers corresponding to the template identifier, wherein the second preset comparison table stores a correspondence between each template identifier and a module identifier.
[0060] In this step, the template identifier of each template and the module identifier of each module may be preset.
[0061] S2023: querying a third preset comparison table to determine a plurality of component identifiers corresponding to a plurality of module identifiers, wherein the third preset comparison table stores a correspondence between each module identifier and a component identifier.
[0062] In this step, the component identification may also be preset.
[0063] The first preset comparison table, the second preset comparison table and the third preset comparison table may be stored in the ES database or the DRDS database.
[0064] It can be seen from the description of the above embodiments that the embodiments of the present application provide a method for obtaining a template identifier, a module identifier, and a component identifier.
[0065] In a possible implementation, in the above step S204, converting the template, the multiple modules and the multiple components into a web page includes:
[0066] S2041: Using a pre-configured first conversion program, the template, multiple modules and multiple components are converted into templates, modules and components in message format.
[0067] In this step, if the server 102 is divided into a front-end server and a back-end server, this step can be performed by the back-end server. The front-end server calling the file or program in the back-end server can be implemented through SLB (Server Load Balancer). The first conversion program can be written in Java (computer programming language) under the Spring Boot framework. The template, module and component of the message format can be a whole message.
[0068] S2042: Use a pre-configured second conversion program to convert the template, module and component in the message format into a web page.
[0069] In this step, if the server 102 is divided into a front-end server and a back-end server, this step can be performed by the front-end server. The second conversion program can be written based on React (global wide area network development framework) and Unid (uni-design, user network side interface design).
[0070] From the description of the above embodiments, it can be seen that the embodiments of the present application realize the splicing of templates, modules and components by converting templates, modules and components into templates, modules and components in message format, and then converting the templates, modules and components in message format into web pages, so that the client can recognize them after sending them to the client.
[0071] In a possible implementation, after the above step S204 sends the webpage to the first client, the following further steps are included:
[0072] S205: storing the template, module and component in the message format corresponding to the page acquisition request into the cache.
[0073] This step can be performed after receiving multiple identical page acquisition requests within a preset time period, or after receiving only one page acquisition request, and the template, module and component of the message format corresponding to the page acquisition request are recorded and stored in the cache.
[0074] Specifically, the cache may be stored using kvstore (Aliyun Key-Value Store) as a cache mechanism.
[0075] S206: If a page acquisition request identical to the above page acquisition request is received from the second client, a template, module and component in a message format corresponding to the page acquisition request are read from the cache.
[0076] In this step, the second client may be another client or the first client, and this application does not impose any limitation on this.
[0077] For example, the current server receives a page acquisition request 1 sent by the second client, and then obtains template 1, module 1, module 2, component 1, component 2, component 3 and component 4 in the message format corresponding to the page acquisition request 1.
[0078] S207: Using a pre-configured second conversion program to convert the template, module and component in the message format into a web page in the cache, and sending the web page in the cache to the second client.
[0079] In this step, the web page in the cache has the same template, module and component composition as the web page in step S204, so the web page in the cache converted in this step is the same as the web page obtained in step S204.
[0080] From the description of the above embodiments, it can be seen that the embodiments of the present application achieve the effect of sending the corresponding web page to the client more quickly after receiving the same page acquisition request by storing the templates, modules and components of the message format corresponding to the page acquisition request sent by the client into the cache.
[0081] In a possible implementation, before the step S201 receives the page acquisition request sent by the first client, the following steps are specifically included:
[0082] S301: storing a web page configuration file in a distributed relational database, wherein the web page configuration file includes a preset configuration file, a preset comparison table, all templates, all modules and all components.
[0083] In this step, the distributed relational database is the above-mentioned DRDS database, and the preset comparison table includes the above-mentioned first preset comparison table, the second preset comparison table and the third preset comparison table.
[0084] In a possible implementation, the web page configuration file may also include all page flows and all possible page acquisition requests.
[0085] S302: Back up the web page configuration file stored in the distributed relational database in the Elastic Search ES database.
[0086] In this step, the backup process can be to copy the web page configuration file in the DRDS database into the ES database and index the web page configuration file, or to mirror the web page configuration file in the DRDS database in the ES database and index the web page configuration file.
[0087] The index may be a combination of one or more of numbers, letters, and symbols, and may also be the same as or related to the page acquisition request.
[0088] Accordingly, the above step S203, respectively extracting the template, the multiple modules and the multiple components corresponding to the template identifier, the multiple module identifiers and the multiple component identifiers, specifically includes:
[0089] The templates, the multiple modules and the multiple components corresponding to the template identifier, the multiple module identifiers and the multiple component identifiers are respectively extracted from the ES database.
[0090] This step extracts the template, multiple modules and multiple components corresponding to the template identifier, multiple module identifiers and multiple component identifiers from the ES database. The template, multiple modules and multiple components can be extracted according to the index corresponding to the web page configuration file.
[0091] It can be seen from the description of the above embodiment that the embodiment of the present application can achieve faster data extraction by backing up the web page configuration file in the ES database.
[0092] In a possible implementation, after the above step S302 backs up the webpage configuration file stored in the distributed relational database in the ElasticSearch ES database, it also includes:
[0093] S303: Receive modification information for some files in the web page configuration file in the distributed relational database.
[0094] In the step, the modification information may be sent by the client, the partial file may be any file in the above web page configuration file, may be one file or multiple files, and the modification may be a modification operation such as editing, copying, creating and deleting.
[0095] If the modification is a creation, deletion or copy operation, the modification can be considered as a modification of a partial file composed of several files.
[0096] S304: Modify the partial file according to the modification information to obtain the modified partial file.
[0097] In this step, if the modification is to create, the modified part of the files includes the newly created files, and if the modification is to delete, the modified part of the files does not include the deleted files.
[0098] S305: Back up the modified part of the files in the ES database, and delete the corresponding part of the files in the unmodified web page configuration file in the ES database.
[0099] In this step, the backup method is as described in the above step S302.
[0100] Delete some files in the corresponding unmodified web page configuration file in the ES database. For example, the modification is to file 1, and the content of file 1 is added. The modified file is file 2. Then, after backing up file 2 in the ES database, delete file 1 in the ES database.
[0101] From the description of the above embodiments, it can be seen that the embodiments of the present application, after editing the files in the distributed relational database, also back up the edited files to the ES database, so that the files in the ES database are kept in the latest state and data can be quickly read, written and loaded.
[0102] In a possible implementation, in the above step S204, after sending the webpage to the first client, the following further steps are included:
[0103] S208: Recording a log of the page acquisition request processing process.
[0104] In this step, the page acquisition request processing process may include the above-mentioned steps S201 to S204, and may also include steps S205 to S207.
[0105] The content of the log records mainly includes the situations of various service calls in the above steps.
[0106] From the description of the above embodiment, it can be seen that the embodiment of the present application records the log of the page acquisition request processing process, so that when an error occurs in the web page production process, the error can be traced, which is convenient for fault repair.
[0107] In a possible implementation, the above step S204 further includes a process of receiving files and storing the files in an operation support system (OSS).
[0108] Specifically, some components of a web page have a function of uploading files, and the client can upload files by clicking on such components or dragging files to such components.
[0109] In a possible implementation, the above step S204 also includes a process of periodically executing a preset program.
[0110] The pre-set programs include one or more of a data clearing program, a service execution program, and a script execution program.
[0111] For example, the data clearing program can clear the data of a preset time, such as the access data three days ago or the access data one month ago. The service execution program can be to execute a data transmission service, such as to transmit access data to a specific client. The script execution program can be to execute a preset script.
[0112] Figure 3 A schematic diagram of a web page creation and processing device provided in an embodiment of the present application Figure 1 .like Figure 3 As shown, the webpage making and processing device 300 includes a first acquisition module 301 , a second acquisition module 302 , an extraction module 303 and a sending module 304 .
[0113] The first acquisition module 301 is used to receive a page flow sent by a first client, and acquire a page flow identifier and a service identifier corresponding to the page flow in a preset configuration file according to the page flow.
[0114] The second acquisition module 302 is used to query a preset comparison table to obtain a template identifier, multiple module identifiers and multiple component identifiers corresponding to the page acquisition request according to the page flow identifier and the service identifier.
[0115] The extraction module 303 is used to extract the template, multiple modules and multiple components corresponding to the template identifier, multiple module identifiers and multiple component identifiers respectively.
[0116] The first sending module 304 is used to convert the template, multiple modules and multiple components into a web page corresponding to the page flow, and send the web page to the first client.
[0117] In a possible implementation, the second acquisition module 302 is specifically used to: query the first preset comparison table to determine the template identifier corresponding to the page flow identifier and the service identifier, wherein the first preset comparison table stores the correspondence between each page flow identifier and the service identifier and the template identifier. Query the second preset comparison table to determine multiple module identifiers corresponding to the template identifier, wherein the second preset comparison table stores the correspondence between each template identifier and the module identifier. Query the third preset comparison table to determine multiple component identifiers corresponding to multiple module identifiers, wherein the third preset comparison table stores the correspondence between each module identifier and the component identifier.
[0118] In a possible implementation, the first sending module 304 is specifically configured to: use a pre-configured first conversion program to convert the template, multiple modules and multiple components into a message format template, module and component, and use a pre-configured second conversion program to convert the message format template, module and component into a web page.
[0119] Figure 4 A schematic diagram of a web page creation and processing device provided in an embodiment of the present application Figure 2 .like Figure 4 As shown, the webpage making and processing device 300 further includes: a storage module 305 , a reading module 306 and a second sending module 307 .
[0120] The first storage module 305 is used to store the templates, modules and components in the message format corresponding to the page acquisition request into the cache.
[0121] The reading module 306 is used to read the template, module and component in the message format corresponding to the page acquisition request from the cache if a page acquisition request identical to the page acquisition request is received from the second client.
[0122] The second sending module 307 is used to convert the template, module and component in the message format into a web page in the cache by using a pre-configured second conversion program, and send the web page in the cache to the second client.
[0123] Continue to refer Figure 4 .like Figure 4 As shown, the webpage making and processing device 300 further includes: a storage module 308 and a backup module 309 .
[0124] The second storage module 308 is used to store the web page configuration file into the distributed relational database, wherein the web page configuration file includes a preset configuration file, a preset comparison table, all templates, all modules and all components.
[0125] The backup module 309 is used to back up the web page configuration files stored in the distributed relational database in the ElasticSearch ES database.
[0126] The second acquisition module 302 is specifically used to extract the template, multiple modules and multiple components corresponding to the template identifier, multiple module identifiers and multiple component identifiers from the ES database.
[0127] Continue to refer Figure 4 .like Figure 4 As shown, the webpage making and processing device 300 further includes: a receiving module 310 , a modifying module 311 and a deleting module 312 .
[0128] The receiving module 310 is used to receive modification information of some files in the web page configuration file in the distributed relational database.
[0129] The modification module 311 is used to modify the partial file according to the modification information to obtain the modified partial file.
[0130] The deletion module 312 is used to back up the modified part of the files in the ES database and delete the corresponding part of the files in the unmodified web page configuration file in the ES database.
[0131] Continue to refer Figure 4 .like Figure 4 As shown, the webpage making and processing device 300 further includes: a recording module 313 .
[0132] The recording module 313 is used to record the log of the page acquisition request processing process.
[0133] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. For example, see Figure 5 As shown, the electronic device 500 may include a processor 501 and a memory 502 communicatively connected to the processor 501 .
[0134] Memory 502 stores computer-executable instructions.
[0135] The processor 501 executes the computer-executable instructions stored in the memory 502 to implement the webpage creation processing method provided in any of the above embodiments.
[0136] Optionally, the memory 502 may be independent or integrated with the processor 501. When the memory 502 is a device independent of the processor 501, the electronic device 500 may further include a bus for connecting the memory 502 and the processor 501.
[0137] The present application also provides a computer-readable storage medium, which stores computer executable instructions. When a processor executes the computer executable instructions, the technical solution of the web page production and processing method in any of the above embodiments is implemented. Its implementation principle and beneficial effects are similar to the implementation principle and beneficial effects of the web page production and processing method. Please refer to the implementation principle and beneficial effects of the web page production and processing method, and no further details will be given here.
[0138] The present application also provides a computer program product, including a computer program. When the computer program is executed by a processor, the computer program implements the technical solution of the web page production processing method in any of the above embodiments. The implementation principle and beneficial effects of the computer program are similar to those of the web page production processing method. Please refer to the implementation principle and beneficial effects of the web page production processing method, which will not be repeated here.
[0139] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0140] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to implement the solution of this embodiment.
[0141] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The above-mentioned module-composed unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
[0142] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the methods of various embodiments of the present application.
[0143] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
[0144] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.
[0145] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0146] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.
[0147] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic device or a main control device.
[0148] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0149] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0150] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A web page production method, characterized in that: include: Receive a page acquisition request sent by a first client, and acquire a page flow identifier and a service identifier corresponding to the page acquisition request in a preset configuration file according to the page acquisition request; wherein the page acquisition request is an acquisition request for a specific page flow; According to the page flow identifier and the service identifier, query in a preset comparison table to obtain a template identifier, multiple module identifiers, and multiple component identifiers corresponding to the page acquisition request; Respectively extracting the template, the multiple modules and the multiple components corresponding to the template identifier, the multiple module identifiers and the multiple component identifiers; Converting the template, the multiple modules, and the multiple components into a web page corresponding to the page acquisition request, and sending the web page to the first client; Before receiving the page acquisition request sent by the first client, the method further includes: Storing a web page configuration file in a distributed relational database, wherein the web page configuration file includes the preset configuration file, the preset comparison table, all templates, all modules and all components; Backing up the webpage configuration file stored in the distributed relational database in the ElasticSearch ES database; Accordingly, respectively extracting the template, the multiple modules and the multiple components corresponding to the template identifier, the multiple module identifiers and the multiple component identifiers includes: Extracting the template, the multiple modules and the multiple components corresponding to the template identifier, the multiple module identifiers and the multiple component identifiers from the ES database respectively; After backing up the webpage configuration file stored in the distributed relational database in the elastic search ES database, the method further includes: Receiving modification information for some files in the webpage configuration file in the distributed relational database; modifying the some files according to the modification information to obtain modified some files; Backing up the modified part of the files in the ES database, and deleting the corresponding part of the files in the unmodified web page configuration file in the ES database; After sending the webpage to the first client, the method further includes: A log recording the process of obtaining the request for the page.
2. The method according to claim 1, characterized in that The step of querying a preset comparison table according to the page flow identifier and the service identifier to obtain a template identifier, a plurality of module identifiers, and a plurality of component identifiers corresponding to the page acquisition request includes: Querying a first preset comparison table to determine the template identifier corresponding to the page flow identifier and the service identifier, wherein the first preset comparison table stores the correspondence between each page flow identifier, service identifier, and template identifier; Querying a second preset comparison table to determine a plurality of module identifiers corresponding to the template identifier, wherein the second preset comparison table stores a correspondence between each template identifier and a module identifier; A third preset comparison table is queried to determine a plurality of component identifiers corresponding to the plurality of module identifiers, wherein the third preset comparison table stores a correspondence between each module identifier and a component identifier.
3. The method according to claim 1, characterized in that The converting the template, the plurality of modules and the plurality of components into a web page comprises: Using a pre-configured first conversion program, converting the template, the plurality of modules and the plurality of components into templates, modules and components in message format; The template, module and component in the message format are converted into the web page using a pre-configured second conversion program.
4. The method according to claim 3, characterized in that After sending the webpage to the first client, the method further includes: Storing templates, modules and components in the message format corresponding to the page acquisition request into a cache; If a page acquisition request identical to the page acquisition request is received from a second client, the template, module and component in the message format corresponding to the page acquisition request are read from the cache; The pre-configured second conversion program is used to convert the template, module and component in the message format into a web page in the cache, and the web page in the cache is sent to the second client.
5. A web page creation and processing device, characterized in that: include: A first acquisition module, configured to receive a page acquisition request sent by a first client, and acquire a page flow identifier and a service identifier corresponding to the page acquisition request in a preset configuration file according to the page acquisition request; wherein the page acquisition request is an acquisition request for a specific page flow; A second acquisition module is used to query a preset comparison table to obtain a template identifier, multiple module identifiers and multiple component identifiers corresponding to the page acquisition request according to the page flow identifier and the service identifier; An extraction module, used to extract the template, the multiple modules and the multiple components corresponding to the template identifier, the multiple module identifiers and the multiple component identifiers respectively; A sending module, used for converting the template, the multiple modules and the multiple components into a web page corresponding to the page flow, and sending the web page to the first client; A second storage module is used to store the web page configuration file in a distributed relational database, wherein the web page configuration file includes the preset configuration file, the preset comparison table, all templates, all modules and all components; A backup module, used to back up the webpage configuration file stored in the distributed relational database in an ElasticSearch ES database; A second acquisition module is specifically used to extract the template, the multiple modules and the multiple components corresponding to the template identifier, the multiple module identifiers and the multiple component identifiers from the ES database respectively; A receiving module, used for receiving modification information of some files in the web page configuration file in the distributed relational database; A modification module, used for modifying the partial file according to the modification information to obtain a modified partial file; A deletion module, used to back up the modified part of the files in the ES database, and delete the corresponding part of the files in the unmodified web page configuration file in the ES database; The recording module is used to record the log of the page acquisition request processing process.
6. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the webpage creation and processing method according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the webpage production and processing method according to any one of claims 1 to 4.
