CN111949342A - Page generation method and device - Google Patents

Page generation method and device Download PDF

Info

Publication number
CN111949342A
CN111949342A CN201910404926.XA CN201910404926A CN111949342A CN 111949342 A CN111949342 A CN 111949342A CN 201910404926 A CN201910404926 A CN 201910404926A CN 111949342 A CN111949342 A CN 111949342A
Authority
CN
China
Prior art keywords
page
routing path
determining
path
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910404926.XA
Other languages
Chinese (zh)
Other versions
CN111949342B (en
Inventor
张宏逸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xinao Shuneng Technology Co Ltd
Original Assignee
Xinao Shuneng Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xinao Shuneng Technology Co Ltd filed Critical Xinao Shuneng Technology Co Ltd
Priority to CN201910404926.XA priority Critical patent/CN111949342B/en
Publication of CN111949342A publication Critical patent/CN111949342A/en
Application granted granted Critical
Publication of CN111949342B publication Critical patent/CN111949342B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a page generation method, a page generation device, a computer readable storage medium and electronic equipment, wherein the method comprises the following steps: receiving an access request of a user, and determining a service type according to the access request; determining a routing path of a page to be accessed according to the service type; acquiring an interpreter according to the technology stack type carried by the routing path; and acquiring information of the page to be accessed corresponding to the routing path, and rendering the information of the page to be accessed by using the acquired interpreter to generate a page. By the technical scheme of the invention, the waste of server resources can be reduced.

Description

Page generation method and device
Technical Field
The invention relates to the technical field of energy, in particular to a page generation method and device.
Background
With the development of website integration, the smart energy service integration becomes a development trend.
At present, an iframe tag is written in a body tag mainly by creating a hypertext markup Language (HTML) file, and then when a user needs to access other pages, request information of the user is acquired to determine src assignment, and finally a corresponding page is generated.
However, in the above method, each time a page is generated, a Document Object Model (DOM) needs to be called from a different server, and forced refreshing may be required when a route is loaded.
Disclosure of Invention
The invention provides a page generation method, a page generation device, a computer readable storage medium and electronic equipment, which can reduce the waste of server resources.
In a first aspect, the present invention provides a page generating method, including:
receiving an access request of a user, and determining a service type according to the access request;
determining a routing path of a page to be accessed according to the service type;
acquiring an interpreter according to the technology stack type carried by the routing path;
and acquiring information of the page to be accessed corresponding to the routing path, and rendering the information of the page to be accessed by using the acquired interpreter to generate a page.
Preferably, the first and second electrodes are formed of a metal,
the determining the service type according to the access request comprises:
and analyzing the access request to extract the service path name carried by the access request, and determining the service path name as the service type.
Preferably, the first and second electrodes are formed of a metal,
the determining the routing path of the page to be accessed according to the service type comprises the following steps:
determining a configuration mapping relation of a resource packet address corresponding to the service type, and determining a resource packet corresponding to the service type according to the configuration mapping relation of the resource packet address;
loading the resource packet according to a preset packet management tool to determine at least one candidate routing path;
and for each candidate routing path, detecting whether the candidate routing path is the same as the authority routing path in the access request, and if so, determining the candidate routing path as the routing path of the page to be accessed.
Preferably, the first and second electrodes are formed of a metal,
the obtaining the interpreter according to the technology stack type carried by the routing path includes:
determining a technology stack corresponding to a technology stack type carried by the routing path, wherein the technology stack comprises a frame source code base for structuring a management page, a progressive frame source code base for constructing a user interface and/or a frame source code base for constructing a user interface;
and acquiring an interpreter corresponding to the technology stack.
In a second aspect, the present invention provides a page generating apparatus, including:
the type determining module is used for receiving an access request of a user and determining a service type according to the access request;
the path determining module is used for determining a routing path of the page to be accessed according to the service type;
the interpreter determining module is used for acquiring an interpreter according to the technology stack type carried by the routing path;
and the page generating module is used for acquiring the information of the page to be accessed corresponding to the routing path and rendering the information of the page to be accessed by utilizing the acquired interpreter so as to generate a page.
Preferably, the first and second electrodes are formed of a metal,
the type determining module is used for analyzing the access request to extract the service path name carried by the access request and determining the service path name as the service type.
Preferably, the first and second electrodes are formed of a metal,
the path determination module includes: a resource packet determining unit, a first path determining unit and a second path determining unit; wherein the content of the first and second substances,
the resource packet determining unit is configured to determine a configuration mapping relationship of a resource packet address corresponding to the service type, and determine a resource packet corresponding to the service type according to the configuration mapping relationship of the resource packet address;
the first path determining unit is used for loading the resource packet according to a preset packet management tool to determine at least one candidate routing path;
the second path determining unit is configured to detect, for each candidate routing path, whether the candidate routing path is the same as the permission routing path in the access request, and if so, determine the candidate routing path as the routing path of the page to be accessed.
Preferably, the first and second electrodes are formed of a metal,
the interpreter determination module includes: a technology stack determining unit and an interpreter determining unit; wherein the content of the first and second substances,
the technical stack determining unit is configured to determine a technical stack corresponding to a technical stack type carried by the routing path, where the technical stack includes a frame source code base used for structuring a management page, a progressive frame source code base used for building a user interface, and/or a frame source code base used for building a user interface;
and the interpreter determining unit is used for acquiring the interpreter corresponding to the technology stack.
In a third aspect, the invention provides a computer-readable storage medium comprising executable instructions which, when executed by a processor of an electronic device, cause the processor to perform the method according to any one of the first aspect.
In a fourth aspect, the present invention provides an electronic device, comprising a processor and a memory storing execution instructions, wherein when the processor executes the execution instructions stored in the memory, the processor performs the method according to any one of the first aspect.
The invention provides a page generation method, a page generation device, a computer readable storage medium and electronic equipment, wherein the method comprises the steps of receiving an access request of a user, determining a service module according to the access request, then determining a routing path of a page to be accessed according to the service module, then obtaining an interpreter according to a technical stack type carried by the routing path, then obtaining information of the page to be accessed corresponding to the routing path, and rendering the information of the page to be accessed by using the obtained interpreter to generate the page.
Further effects of the above-mentioned unconventional preferred modes will be described below in conjunction with specific embodiments.
Drawings
In order to more clearly illustrate the embodiments or the prior art solutions of the present invention, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments described in the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a schematic flowchart of a page generation method according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a process of determining a routing path of a page to be accessed in a page generation method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a service module script loading process in a page generation method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a dynamic routing process in a page generation method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a page generating apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another page generating apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another page generating apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail and completely with reference to the following embodiments and accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a page generation method, including the following steps:
step 101, receiving an access request of a user, and determining a service type according to the access request;
step 102, determining a routing path of a page to be accessed according to the service type;
103, acquiring an interpreter according to the technology stack type carried by the routing path;
and 104, acquiring information of the page to be accessed corresponding to the routing path, and rendering the information of the page to be accessed by using the acquired interpreter to generate a page.
As shown in fig. 1, in the embodiment, the method receives an access request of a user, determines a service module according to the access request, determines a routing path of a page to be accessed according to the service module, acquires an interpreter according to a technology stack type carried by the routing path, and then acquires information of the page to be accessed corresponding to the routing path, and renders the information of the page to be accessed by using the acquired interpreter to generate the page, without calling a document object model from a different server, without loading unnecessary page information, and further without forcibly refreshing the route, so that consumption of server resources can be reduced.
Specifically, a service type and a technology stack type corresponding to the service type are preset, where the service type includes but is not limited to any one of photovoltaic, integrated energy supply and boiler heat supply, the technology stack includes but is not limited to a plurality of programming languages, a plurality of frames and a plurality of tools when a developer interacts with a service module corresponding to the service type, the technology stack type is generally a plurality of programming language types, a plurality of frame types and/or a plurality of tool types corresponding to the technology stack, for example, if the technology stack includes a frame source code library for a structured management page, the technology stack type is reach, and if the technology stack includes a frame source code library for a structured management page and a frame source code library for constructing a user interface, the technology stack type is reach/backup.
It should be noted that the information of the page to be accessed specifically refers to a page file to be accessed, that is, a code library obtained by placing the page to be accessed into a technology stack corresponding to the corresponding technology stack type.
In an embodiment of the present invention, the determining the service type according to the access request includes:
and analyzing the access request to extract the service path name carried by the access request, and determining the service path name as the service type.
In the embodiment, the access request is analyzed to extract the service path name carried by the access request, and the service path name is determined as the service type, so as to distinguish different services.
It should be noted that the service path name specifically refers to an identifier corresponding to the service module, that is, an identifier corresponding to the service module in the service type, for example, an identifier that the service module is a photovoltaic is pvs, an identifier that the service module supplies power for synthesis is compengysup, and an identifier that the service module supplies heat to the boiler is steamSup.
Specifically, in a possible implementation manner, by pre-configuring service types corresponding to user names of different users, the access request is analyzed to extract the user name carried by the access request, and the service type is determined according to the user name.
In an embodiment of the present invention, the determining a routing path of a page to be accessed according to the service type includes:
determining a configuration mapping relation of a resource packet address corresponding to the service type, and determining a resource packet corresponding to the service type according to the configuration mapping relation of the resource packet address;
loading the resource packet according to a preset packet management tool to determine at least one candidate routing path;
and for each candidate routing path, detecting whether the candidate routing path is the same as the authority routing path in the access request, and if so, determining the candidate routing path as the routing path of the page to be accessed.
Specifically, a configuration mapping relationship of a resource packet address corresponding to the service type is determined, a resource packet corresponding to the service type is determined according to the configuration mapping relationship of the resource packet address, and the resource packet is loaded according to a preset packet management tool (for example, npm packet management tool) to determine a plurality of candidate routing paths, where the candidate routing paths carry technology stack types, the service types, and page information paths.
Specifically, a candidate routing path is taken as an example for explanation, whether a technology stack type, a service type and a page information path carried in the candidate path are consistent with a technology stack type, a service type and a page information path carried in an authority routing path in the request access is detected, and if so, the candidate routing path is determined as a routing path of a page to be accessed, so that the access to a specific page corresponding to a specific service type is realized.
For example, referring to fig. 2, for convenience of description, apps mentioned in the present invention all represent service modules corresponding to service types, routers 1, routers 2, and routers 3 all represent candidate routing paths, routers represent routing layers for uniformly managing routing paths, permissions represent Permission layers, a service module (App) corresponding to a service type is determined, a resource packet corresponding to the service module (App) is loaded, then routers 1, routers 2, and routers 3 are determined, routers 1, routers 2, and routers 3 are collected into routers for uniform management, and a routing path of a page to be accessed is determined in a Permission layer according to the similar process.
Specifically, the permission routing path indicates a technology stack type, a service type, and a page information path corresponding to the accessible page.
It should be noted that the resource package includes a plurality of page information corresponding to the service type and a third-party plug-in, where the third-party plug-in is used for loading or starting an interpreter to implement rendering of the page information.
It should be noted that, a resource package and a resource package address of a plurality of pieces of page information corresponding to a service type are printed out in advance based on a module packager (e.g., webpack), and a configuration mapping relationship of the resource package address corresponding to the service type is injected into a service platform, and it should be understood by those skilled in the art that the resource package of the service type has a packaging manner in various forms, such as AMD, Commonjs, UMD, and the like.
It should be further noted that there may be a precedence order in the resource package loading dependency, and in a general case, based on the fact that a module packer (e.g., webpack) may process the loading dependency by itself when packing, if there is a dependency requirement on the precedence execution order of a third-party plug-in of a resource package, such as a jQuery plug-in dependency, a special serial process may be performed when loading the resource package, that is, storing the third-party plug-in into the resource package, loading the third-party plug-in the resource package by using a preset package management tool, please refer to fig. 3,/path-of-App/path-of-page represents a routing path of a page to be accessed, analyzing the routing path to determine a service module (App), and then loading the resource package (service module script) corresponding to the service module (App) by using the package management tool, injecting an operation behavior of the resource package (service module script) loading the service module (App) into the service platform, namely, the route is injected, meanwhile, a package management tool loads a third-party plug-in a resource package (service module script) corresponding to the service module (App), and the third-party plug-in is utilized to Render page information in the resource package (service module script) corresponding to the service module (App) on a Render layer.
In a possible implementation manner, the configuration mapping relationship of the resource packet addresses corresponding to different service types is injected into the service platform, for each resource packet determined according to the configuration mapping relationship of the resource packet addresses, a preset packet management tool is used for loading the resource packet to obtain a plurality of routing paths, and the plurality of routing paths are injected into the service platform; correspondingly, after the service type is determined, a plurality of routing paths corresponding to the service type can be determined, and the routing path which is the same as the authority routing path in the access request is determined as the routing path of the page to be accessed.
In an embodiment of the present invention, the obtaining an interpreter according to a technology stack type carried by the routing path includes:
determining a technology stack corresponding to a technology stack type carried by the routing path, wherein the technology stack comprises a frame source code base for structuring a management page, a progressive frame source code base for constructing a user interface and/or a frame source code base for constructing a user interface;
and acquiring an interpreter corresponding to the technology stack.
In this embodiment, a technology stack corresponding to a technology stack type carried by a routing path is determined, an interpreter corresponding to the technology stack is determined, and then, a page is generated by rendering information of a page to be accessed by using the interpreter, where the information of the page to be accessed is a code library obtained by placing a code of the page to be accessed into the corresponding technology stack, and there is no need for a service platform to uniformly render the page information, that is, there is no need for the service platform to provide a uniform rendering interface, programming languages corresponding to the technology stacks may be different, and by obtaining the corresponding interpreter, the service platform can process multiple programming languages, where a framework source code library (e.g., a backhaul framework source code library) for structurally managing the page, a progressive framework source code library (e.g., Vue framework source code library) for constructing a user interface, and/or a framework source code library (e.g., the fact frame source code library) are JavaScript (interpreted scripting language).
It should be noted that, different frames correspond to different implementation schemes, for example, an implementation scheme of a progressive frame source code (e.g., Vue frame source code library) for constructing a user interface is a Vue-router routing component, and an implementation scheme of a frame source code library (e.g., a read frame source code library) for constructing a user interface is a read-router routing component, and considering that different service types are usually developed by using different technology systems (technology stacks), it is necessary to perform canonical and unified management on configuration of routing paths to implement rendering of different technology stacks while dynamically injecting routing paths, where a more flexible univeral-router (native routing) is used to cooperate with a history library to dynamically inject routing paths into a service platform and define processing logic of routing paths by itself, for example, after determining a service type, a plurality of routing paths corresponding to the service types in the history library are injected into the service platform, and after the routing path of the page to be accessed is determined, a technology stack corresponding to the processing logic of the routing path can be determined, for example, a frame source code library (e.g., a backhaul frame source code library) for structured management of the page, a progressive frame source code library (e.g., an Vue frame source code library) for building the user interface, and/or a frame source code library (e.g., a reach frame source code library) for building the user interface.
For example, referring to fig. 4, the History can monitor changes of service modules (apps) and store a plurality of routing paths corresponding to different service modules (apps), where/path/path-of-App represents a request path in request information, Universal-Router represents a dynamic placement route, backhaul App represents a service module (App) placed in a frame source code library (e.g., backhaul frame source code library) for a structured management page, Vue App represents a service module (App) placed in a progressive frame source code (e.g., Vue frame source code library) for constructing a user interface, read App represents a service module (App) placed in a frame source code library (e.g., read frame source code library) for constructing a user interface, and when a corresponding service module (App) is determined by a request parsing path/path-of-App, utilizing a Dynamic object Router frame source code library to dynamically Inject a service module (App) into a plurality of routing paths corresponding to the His (Home) in a Permission layer, determining the routing paths of the page to be accessed according to the similar process, then respectively placing the service module (App) into a frame source code library (such as a Back bone frame source code library) for structurally managing the page, progressive frame source codes (such as Vue frame source code library) for constructing a user interface and a frame source code library (such as a React frame source code library) for constructing the user interface to be packaged so as to determine the information of the page to be accessed, and analyzing and rendering the information of the page to be accessed in a Render layer.
Referring to fig. 5, based on the same concept as the method embodiment of the present invention, an embodiment of the present invention further provides a page generating apparatus, including:
a type determining module 201, configured to receive an access request of a user, and determine a service type according to the access request;
a path determining module 202, configured to determine a routing path of the page to be accessed according to the service type;
the interpreter determining module 203 is configured to obtain an interpreter according to the technology stack type carried by the routing path;
the page generating module 204 is configured to obtain information of a page to be accessed corresponding to the routing path, and render the information of the page to be accessed by using the obtained interpreter to generate a page.
In an embodiment of the present invention, the type determining module 201 is configured to parse the access request to extract a service path name carried in the access request, and determine the service path name as a service type.
Referring to fig. 6, in an embodiment of the present invention, the path determining module 202 includes: a resource packet determining unit 2021, a first path determining unit 2022, and a second path determining unit 2023; wherein the content of the first and second substances,
the resource packet determining unit 2021 is configured to determine a configuration mapping relationship of a resource packet address corresponding to the service type, and determine a resource packet corresponding to the service type according to the configuration mapping relationship of the resource packet address;
the first path determining unit 2022 is configured to load the resource packet according to a preset packet management tool to determine at least one candidate routing path;
the second path determining unit 2023 is configured to detect, for each candidate routing path, whether the candidate routing path is the same as the permission routing path in the access request, and if so, determine the candidate routing path as the routing path of the page to be accessed.
Referring to fig. 7, in an embodiment of the present invention, the interpreter determining module 203 includes: a technology stack determining unit 2031 and an interpreter determining unit 2032; wherein the content of the first and second substances,
the technology stack determining unit 2031 is configured to determine a technology stack corresponding to a technology stack type carried by the routing path, where the technology stack includes a frame source code library used for structuring a management page, a progressive frame source code library used for building a user interface, and/or a frame source code library used for building a user interface;
the interpreter determining unit 2032 is configured to obtain an interpreter corresponding to the technology stack.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. On the hardware level, the electronic device includes a processor 801 and a memory 802 storing execution instructions, and optionally further includes an internal bus 803 and a network interface 804. The Memory 802 may include a Memory 8021, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory 8022 (e.g., at least 1 disk Memory); the processor 801, the network interface 804, and the memory 802 may be connected to each other by an internal bus 803, and the internal bus 803 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like; the internal bus 803 may be divided into an address bus, a data bus, a control bus, etc., which are indicated by only one double-headed arrow in fig. 8 for convenience of illustration, but do not indicate only one bus or one type of bus. Of course, the electronic device may also include hardware required for other services. When the processor 801 executes execution instructions stored by the memory 802, the processor 801 performs the method of any of the embodiments of the present invention and at least is used to perform the method as shown in fig. 1.
In a possible implementation manner, the processor reads the corresponding execution instruction from the nonvolatile memory to the memory and then runs the execution instruction, and may also obtain the corresponding execution instruction from other devices to form a page generation apparatus on a logic level. The processor executes the execution instruction stored in the memory, so that the page generation method provided by any embodiment of the invention is realized through the executed execution instruction.
The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Embodiments of the present invention further provide a computer-readable storage medium, which includes an execution instruction, and when a processor of an electronic device executes the execution instruction, the processor executes a method provided in any one of the embodiments of the present invention. The electronic device may specifically be the electronic device shown in fig. 8; the execution instruction is a computer program corresponding to the page generation device.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects.
The embodiments of the present invention are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or boiler that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or boiler. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or boiler that comprises the element.
The above description is only an example of the present invention, and is not intended to limit the present invention. Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (10)

1. A page generation method is characterized by comprising the following steps:
receiving an access request of a user, and determining a service type according to the access request;
determining a routing path of a page to be accessed according to the service type;
acquiring an interpreter according to the technology stack type carried by the routing path;
and acquiring information of the page to be accessed corresponding to the routing path, and rendering the information of the page to be accessed by using the acquired interpreter to generate a page.
2. The method of claim 1,
the determining the service type according to the access request comprises:
and analyzing the access request to extract the service path name carried by the access request, and determining the service path name as the service type.
3. The method of claim 1,
the determining the routing path of the page to be accessed according to the service type comprises the following steps:
determining a configuration mapping relation of a resource packet address corresponding to the service type, and determining a resource packet corresponding to the service type according to the configuration mapping relation of the resource packet address;
loading the resource packet according to a preset packet management tool to determine at least one candidate routing path;
and for each candidate routing path, detecting whether the candidate routing path is the same as the authority routing path in the access request, and if so, determining the candidate routing path as the routing path of the page to be accessed.
4. The method according to any one of claims 1 to 3,
the obtaining the interpreter according to the technology stack type carried by the routing path includes:
determining a technology stack corresponding to a technology stack type carried by the routing path, wherein the technology stack comprises a frame source code base for structuring a management page, a progressive frame source code base for constructing a user interface and/or a frame source code base for constructing a user interface;
and acquiring an interpreter corresponding to the technology stack.
5. A page generation device applied to a service platform is characterized by comprising:
the type determining module is used for receiving an access request of a user and determining a service type according to the access request;
the path determining module is used for determining a routing path of the page to be accessed according to the service type;
the interpreter determining module is used for acquiring an interpreter according to the technology stack type carried by the routing path;
and the page generating module is used for acquiring the information of the page to be accessed corresponding to the routing path and rendering the information of the page to be accessed by utilizing the acquired interpreter so as to generate a page.
6. The apparatus of claim 5,
the type determining module is used for analyzing the access request to extract the service path name carried by the access request and determining the service path name as the service type.
7. The apparatus of claim 5,
the path determination module includes: a resource packet determining unit, a first path determining unit and a second path determining unit; wherein the content of the first and second substances,
the resource packet determining unit is configured to determine a configuration mapping relationship of a resource packet address corresponding to the service type, and determine a resource packet corresponding to the service type according to the configuration mapping relationship of the resource packet address;
the first path determining unit is used for loading the resource packet according to a preset packet management tool to determine at least one candidate routing path;
the second path determining unit is configured to detect, for each candidate routing path, whether the candidate routing path is the same as the permission routing path in the access request, and if so, determine the candidate routing path as the routing path of the page to be accessed.
8. The apparatus according to any one of claims 5 to 7,
the interpreter determination module includes: a technology stack determining unit and an interpreter determining unit; wherein the content of the first and second substances,
the technical stack determining unit is configured to determine a technical stack corresponding to a technical stack type carried by the routing path, where the technical stack includes a frame source code base used for structuring a management page, a progressive frame source code base used for building a user interface, and/or a frame source code base used for building a user interface;
and the interpreter determining unit is used for acquiring the interpreter corresponding to the technology stack.
9. A computer-readable storage medium comprising executable instructions that, when executed by a processor of an electronic device, cause the processor to perform the method of any of claims 1-4.
10. An electronic device comprising a processor and a memory storing execution instructions, the processor performing the method of any of claims 1-4 when the processor executes the execution instructions stored by the memory.
CN201910404926.XA 2019-05-16 2019-05-16 Page generation method and device Active CN111949342B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910404926.XA CN111949342B (en) 2019-05-16 2019-05-16 Page generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910404926.XA CN111949342B (en) 2019-05-16 2019-05-16 Page generation method and device

Publications (2)

Publication Number Publication Date
CN111949342A true CN111949342A (en) 2020-11-17
CN111949342B CN111949342B (en) 2024-03-05

Family

ID=73335476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910404926.XA Active CN111949342B (en) 2019-05-16 2019-05-16 Page generation method and device

Country Status (1)

Country Link
CN (1) CN111949342B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209925A (en) * 2015-04-29 2016-12-07 阿里巴巴集团控股有限公司 Page loading method, client and system
CN107203555A (en) * 2016-03-17 2017-09-26 阿里巴巴集团控股有限公司 Page loading processing method and device
CN107885540A (en) * 2016-09-28 2018-04-06 腾讯科技(深圳)有限公司 A kind of method, apparatus and terminal of loading application programs static resource
CN108287839A (en) * 2017-01-09 2018-07-17 阿里巴巴集团控股有限公司 A kind of page loading method and equipment
CN109542427A (en) * 2018-11-30 2019-03-29 深圳市元征科技股份有限公司 A kind of system customization method, apparatus and electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209925A (en) * 2015-04-29 2016-12-07 阿里巴巴集团控股有限公司 Page loading method, client and system
CN107203555A (en) * 2016-03-17 2017-09-26 阿里巴巴集团控股有限公司 Page loading processing method and device
CN107885540A (en) * 2016-09-28 2018-04-06 腾讯科技(深圳)有限公司 A kind of method, apparatus and terminal of loading application programs static resource
CN108287839A (en) * 2017-01-09 2018-07-17 阿里巴巴集团控股有限公司 A kind of page loading method and equipment
CN109542427A (en) * 2018-11-30 2019-03-29 深圳市元征科技股份有限公司 A kind of system customization method, apparatus and electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111949342B (en) 2024-03-05

Similar Documents

Publication Publication Date Title
CN108156022B (en) Service calling method and device and electronic equipment
WO2016177341A1 (en) Interface calling method and device, and terminal
CN109614158B (en) Plug-in calling method, system, storage medium and processor
CN107016282B (en) information processing method and device
CN109933350B (en) Method and device for embedding codes in application and electronic equipment
CN106294113B (en) creation method and device based on programmable test service
CN107391182B (en) Generation method, device, server and storage medium of theme installation package
CN111381825A (en) Method and device for generating small program
WO2020000747A1 (en) Anti-crawler method and terminal and computer readable storage medium
CN111124544A (en) Interface display method and device, electronic equipment and storage medium
CN112016283A (en) Form generation method and device
CN111694613A (en) Decoupling method between application program modules, electronic device and storage medium
CN104899203B (en) Webpage generation method and device and terminal equipment
CN111522583A (en) Method and device for generating configuration file, computer equipment and storage medium
CN114268538A (en) Configuration method and device of front-end route
CN111679828B (en) Data processing method and device, electronic equipment and storage medium
CN112416612B (en) Service calling method and device, computer equipment and readable storage medium
CN111949342B (en) Page generation method and device
CN107092601B (en) Resource file construction method, resource file application method and device
CN107818073B (en) Method and system for automatically converting dynamic form page into HTML5 page
CN114611045A (en) Method and device for processing front-end interface request, computer equipment and storage medium
CN113076084A (en) Resource file processing method, device, equipment and storage medium
CN112114794A (en) Automatic generation method and device of website application program and computer storage medium
CN114629807A (en) Work order processing method, device and equipment
CN113722639B (en) Website access verification method, device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant