CN111949342B - Page generation method and device - Google Patents

Page generation method and device Download PDF

Info

Publication number
CN111949342B
CN111949342B CN201910404926.XA CN201910404926A CN111949342B CN 111949342 B CN111949342 B CN 111949342B CN 201910404926 A CN201910404926 A CN 201910404926A CN 111949342 B CN111949342 B CN 111949342B
Authority
CN
China
Prior art keywords
path
determining
page
service
type
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.)
Active
Application number
CN201910404926.XA
Other languages
Chinese (zh)
Other versions
CN111949342A (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

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 type of the technical stack carried by the routing path; and acquiring page information to be accessed corresponding to the routing path, and rendering the page information to be accessed by using the acquired interpreter to generate a page. By the technical scheme, 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, intelligent energy business integration becomes a development trend.
Currently, an iframe tag is written in a body tag mainly through newly 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, each time a page is generated, the document object model (Document Object Model, DOM for short) needs to be called from a different server, and forced refreshing may be required when a route is loaded, so that more server resources may be consumed when a page is generated in the above manner.
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 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 type of the technical stack carried by the routing path;
and acquiring page information to be accessed corresponding to the routing path, and rendering the page information to be accessed by using the acquired interpreter to generate a page.
Preferably, the method comprises the steps of,
the determining the service type according to the access request comprises the following steps:
analyzing the access request to extract a service path name carried by the access request, and determining the service path name as a service type.
Preferably, the method comprises the steps of,
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 package according to a preset package management tool to determine at least one candidate route path;
and detecting whether the candidate routing paths are the same as the authority routing paths in the access request or not according to each candidate routing path, and if so, determining the candidate routing paths as the routing paths of the pages to be accessed.
Preferably, the method comprises the steps of,
the obtaining the interpreter according to the technology stack type carried by the routing path comprises the following steps:
determining a technical stack corresponding to the technical stack type carried by the routing path, wherein the technical stack comprises a frame source code library for structuring a management page, a progressive frame source code library for constructing a user interface and/or a frame source code library for constructing the user interface;
and acquiring an interpreter corresponding to the technical 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 type of the technical stack carried by the routing path;
the page generation module is used for acquiring page information to be accessed corresponding to the routing path and rendering the page information to be accessed by using the acquired interpreter to generate a page.
Preferably, the method comprises the steps of,
the type determining module is configured to parse the access request to extract a service pathname carried by the access request, and determine the service pathname as a service type.
Preferably, the method comprises the steps of,
the path determination module includes: a resource packet determining unit, a first path determining unit and a second path determining unit; wherein,
the resource packet determining unit is used for determining the configuration mapping relation of the resource packet address corresponding to the service type and determining the resource packet corresponding to the service type according to the configuration mapping relation of the resource packet address;
the first path determining unit is used for loading the resource package according to a preset package management tool to determine at least one candidate route path;
the second path determining unit is configured to detect, for each of the candidate routing paths, whether the candidate routing path is the same as the authority 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 method comprises the steps of,
the interpreter determination module comprises: a technology stack determination unit and an interpreter determination unit; wherein,
the technical stack determining unit is used for determining a technical stack corresponding to the technical stack type carried by the routing path, and the technical stack comprises a frame source code library for structuring a management page, a progressive frame source code library for constructing a user interface and/or a frame source code library for constructing the user interface;
the interpreter determining unit is used for acquiring the interpreter corresponding to the technical stack.
In a third aspect, the present invention provides a computer readable storage medium comprising execution instructions which, when executed by a processor of an electronic device, perform the method of any of the first aspects.
In a fourth aspect, the present invention provides an electronic device comprising a processor and a memory storing execution instructions, the processor performing the method according to any one of the first aspects when executing the execution instructions stored in the memory.
The invention provides a page generation method, a 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, determining a route path of a page to be accessed according to the service module, acquiring an interpreter according to a technical stack type carried by the route path, acquiring page information to be accessed corresponding to the route path, and rendering the page information to be accessed by utilizing the acquired interpreter to generate a page, wherein a document object model is not required to be called from a different server, unnecessary page information is not required to be loaded, and further forced refreshing of the route is not required, so that the consumption of server resources can be reduced.
Further effects of the above-described non-conventional preferred embodiments will be described below in connection with the detailed description.
Drawings
In order to more clearly illustrate the embodiments of the invention or the prior art solutions, the drawings which are used in the description of the embodiments or the prior art will be briefly described below, it being obvious that the drawings in the description below are only some of the embodiments described in the present invention, and that other drawings can be obtained according to these drawings without inventive faculty for a person skilled in the art.
FIG. 1 is a schematic flow chart of a page generating method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of 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 illustrating a process of loading a service module script in a page generating method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating 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 diagram of another page generating apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a page generating apparatus according to another 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 clearly and completely described below with reference to specific embodiments and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
As shown in fig. 1, an embodiment of the present invention provides a page generating method, which includes 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;
step 103, according to the technology stack type carried by the routing path, acquiring an interpreter;
step 104, obtaining the page information to be accessed corresponding to the routing path, and rendering the page information to be accessed by using the obtained interpreter to generate a page.
In the embodiment shown in fig. 1, the method includes the steps of receiving an access request of a user, determining a service module according to the access request, determining a routing path of a page to be accessed according to the service module, acquiring an interpreter according to a technical stack type carried by the routing path, acquiring page information to be accessed corresponding to the routing path, rendering the page information to be accessed by using the acquired interpreter to generate a page, and reducing consumption of server resources without calling a document object model from a different server, loading unnecessary page information and forced refreshing the route.
Specifically, a service type and a technology stack type corresponding to the service type are preset, wherein the service type comprises, but is not limited to, any one of photovoltaic, comprehensive energy supply and boiler heat supply, the technology stack comprises, 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 usually 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 comprises a frame source code library for structuring a management page, the technology stack type is React, and if the technology stack comprises a frame source code library for structuring the management page and a frame source code library for constructing a user interface, the technology stack type is React/backhaul.
It should be noted that the page information to be accessed specifically refers to a page file to be accessed, that is, a code library obtained by placing a page to be accessed in a technical stack corresponding to a corresponding technical stack type.
In one embodiment of the present invention, the determining the service type according to the access request includes:
analyzing the access request to extract a service path name carried by the access request, and determining the service path name as a service type.
In this embodiment, the access request is parsed 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 a service module, that is, an identifier corresponding to a service type to a service module, for example, a identifier of a service module for photovoltaic is pvs, a identifier of a service module for comprehensive energy supply is compegysup, and a identifier of a service module for boiler heat supply is steamsupp.
Specifically, in one possible implementation manner, by pre-configuring service types corresponding to the user names of different users, the access request is parsed to extract the user name carried by the access request, and the service type is determined according to the user name.
In one embodiment of the present invention, the determining the routing path of the 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 package according to a preset package management tool to determine at least one candidate route path;
and detecting whether the candidate routing paths are the same as the authority routing paths in the access request or not according to each candidate routing path, and if so, determining the candidate routing paths as the routing paths of the pages to be accessed.
Specifically, a configuration mapping relation of a resource packet address corresponding to a service type is determined, a resource packet corresponding to the service type is determined according to the configuration mapping relation of the resource packet address, and a 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, wherein the candidate routing paths carry a technology stack type, a service type and a page information path.
Specifically, taking a candidate route path as an example to illustrate, detecting whether a technical stack type, a service type and a page information path carried in the candidate route path are consistent with a technical stack type, a service type and a page information path carried in an authority route path in request access, if so, determining the candidate route path as a route path of a page to be accessed, thereby realizing access to a specific page corresponding to the specific service type.
For example, please refer to fig. 2, for convenience of description, app mentioned in the present invention all represent service modules corresponding to service types, router1, router2 and Router3 all represent candidate routing paths, router represents a routing layer for uniformly managing routing paths, permission represents a Permission layer, service modules (App) corresponding to service types are determined, resource packages corresponding to the service modules (App) are loaded, router1, router2 and Router3 are determined, router1, router2 and Router3 are summarized into Router for uniform management, and routing paths of pages to be accessed are determined in the Permission layer according to the similar flow.
Specifically, the authority 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 to load or start the 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 page information corresponding to a service type are beaten out in advance based on a module packer (for example, weback), and a configuration mapping relation of the resource package address corresponding to the service type is injected into a service platform, and those skilled in the art should understand that the resource package of the service type has various packing modes, such as AMD, commonjs, UMD, etc., the invention adopts a mode of beaten out a UMD package of the page information based on the module packer (for example, weback), and dynamically inserts UMD package addresses under a head tag and a body tag by using a preset package management tool respectively, and immediately executes a script after loading the UMD package, without relying on a JavaScript (transliteration script language) module to load a frame source code library, such as requirer.
It should be further noted that, in general, the resource package loading dependency may have a sequence, based on that the module packager (for example, weback) may process the loading dependency automatically when packaging, if there is a dependency requirement for the sequence of the third party plug-in of the resource package, for example, jQuery plug-in dependency, special serial processing may be performed when loading the resource package, that is, the third party plug-in is stored in the resource package, the third party plug-in the resource package is loaded by using the preset package management tool, please refer to fig. 3,/path-of-App/path-of-page to indicate a route path of a page to be accessed, the route path is parsed to determine a service module (App), then, the package management tool may be used to load the resource package (service module script) corresponding to the service module (App), and the operation behavior of the resource package (service module script) loading the service module (App) is injected into the service platform, that is injected, while the package management tool loads the third party plug-in the resource package (service module script) corresponding to the service module App, and the service module script corresponding to the service module package is rendered by using the service module script in the third party package layer.
In one possible implementation manner, the configuration mapping relation of the resource packet addresses corresponding to different service types is injected into the service platform, and for each resource packet determined according to the configuration mapping relation of the resource packet addresses, a preset packet management tool is utilized to load the resource packet so as 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 paths which are the same as the authority routing paths in the access request are determined as the routing paths of the page to be accessed.
In one embodiment of the present invention, the obtaining an interpreter according to the technology stack type carried by the routing path includes:
determining a technical stack corresponding to the technical stack type carried by the routing path, wherein the technical stack comprises a frame source code library for structuring a management page, a progressive frame source code library for constructing a user interface and/or a frame source code library for constructing the user interface;
and acquiring an interpreter corresponding to the technical stack.
In this embodiment, determining a technology stack corresponding to a technology stack type carried by a routing path, determining an interpreter corresponding to the technology stack, and then rendering page information to be accessed by using the interpreter to generate a page, where the page information to be accessed is a code library obtained by placing the page code to be accessed into the corresponding technology stack, and the service platform is not required to uniformly render the page information, that is, the service platform is not required to provide a uniform rendering interface, programming languages corresponding to the technology stack may be different, and the service platform is enabled to process multiple programming languages by acquiring the corresponding interpreter, where a frame source code library (e.g., a backhaul frame source code library) for structuring a management page, a progressive frame source code library (e.g., a Vue frame source code library) for constructing a user interface, and/or a frame source code library (e.g., a real frame source code library) for constructing a user interface are JavaScript (transliteration script language).
It should be noted that different frameworks correspond to different implementation schemes, for example, an implementation scheme of a progressive framework source code (for example, a Vue framework source code library) for constructing a user interface is a Vue-router routing component, for example, an implementation scheme of a framework source code library (for example, a real framework source code library) for constructing a user interface is a real-router routing component, and considering that different service types usually adopt different technical systems (technical stacks) for development, the configuration of a routing path needs to be subjected to standard unified management, so as to realize the dynamic injection of the routing path and support the rendering of different technical stacks, here, an universal-router (native route) with higher flexibility is adopted to cooperate with a history library, so as to dynamically inject the routing path into a service platform and define processing logic of the routing path by itself, for example, after determining the service type, a plurality of routing paths corresponding to the service types in the history library are injected into the service platform, after determining the routing path of a page to be accessed, the processing logic of the routing path can be determined, and the processing logic of the routing path corresponds to the framework source code (for example, the framework source code library) and the frame source code (for constructing the frame source code library) of the user interface, the frame source code library (for example, the frame source code library) with higher flexibility is used for constructing the frame source code library).
For example, please refer to fig. 4, history can monitor the change of service module (App), store multiple route paths corresponding to different service modules (App), respectively,/path-of-App represents the request path in the request information, universal-Router represents the dynamic placement route, backup App represents the service module (App) placed in the frame source code library (e.g. backup frame source code library) for structuring the management page, vue App represents the service module (App) placed in the progressive frame source code (e.g. Vue frame source code library) for constructing the user interface, return App represents the service module (App) placed in the frame source code library (e.g. return frame source code library) for constructing the user interface, after the corresponding service module (App) is determined, dynamically inject the service module (App) into the frame source code library (e.g. backup frame source code library) corresponding to the frame source code library), determine the frame source code (e.g. by using Dynamic Inject Router frame source code library, access the frame source code library (e.g. for establishing the user interface), and access the user interface (e.g. by using the frame source code library) to access the user interface, respectively, the method comprises the steps of determining the frame source code library (App) for establishing the frame source code (e.g. by using the user interface) and the user interface (e.g. by using the user interface), and analyzing and rendering the page information to be accessed in the Render layer.
Based on the same concept as the method embodiment of the present invention, please refer to fig. 5, an embodiment of the present invention further provides a page generating apparatus, which includes:
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 a page to be accessed according to the service type;
an interpreter determining module 203, configured to obtain an interpreter according to a technology stack type carried by the routing path;
the page generation module 204 is configured to obtain page information to be accessed corresponding to the routing path, and render the page information to be accessed by using the obtained interpreter to generate a page.
In one embodiment of the present invention, the type determining module 201 is configured to parse the access request to extract a service pathname carried by the access request, and determine the service pathname as a service type.
Referring to fig. 6, in one embodiment of the present invention, the path determining module 202 includes: a resource packet determination unit 2021, a first path determination unit 2022, and a second path determination unit 2023; wherein,
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 of the candidate routing paths, whether the candidate routing path is the same as the authority 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 one embodiment of the present invention, the interpreter determining module 203 includes: a technology stack determination unit 2031 and an interpreter determination unit 2032; wherein,
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 for structuring a management page, a progressive frame source code library for constructing a user interface, and/or a frame source code library for constructing 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. At the hardware level, the electronic device comprises a processor 801 and a memory 802 storing executable instructions, optionally together with 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 (non-volatile Memory), such as at least 1 disk Memory, etc.; the processor 801, the network interface 804, and the memory 802 may be connected to each other through an internal bus 803, and the internal bus 803 may be an ISA (Industry Standard Architecture ) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus, or an EISA (Extended Industry Standard Architecture ) bus, etc.; the internal bus 803 may be divided into an address bus, a data bus, a control bus, etc., and is represented by only one double-headed arrow in fig. 8 for convenience of representation, but does not represent 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 the execution instructions stored in the memory 802, the processor 801 performs the method of any one of the embodiments of the present invention and is at least used to perform the method as shown in fig. 1.
In one possible implementation, the processor reads the corresponding execution instruction from the nonvolatile memory into the memory and then executes the corresponding execution instruction, and may also obtain the corresponding execution instruction from other devices, so as to form a page generating apparatus on a logic level. The processor executes the execution instructions stored in the memory to implement a page generation method provided in any embodiment of the present invention by executing the execution instructions.
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 by instructions in the form of software. The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps, and logic blocks 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.
The embodiment of the invention also provides a computer readable storage medium, which comprises execution instructions, when the processor of the electronic device executes the execution instructions, the processor executes the method provided in any embodiment of the invention. The electronic device may specifically be an electronic device as shown in fig. 8; the execution instruction is a computer program corresponding to the page generating device.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method or a computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware aspects.
The embodiments of the present invention are described in a progressive manner, and the same and similar parts of the embodiments are all referred to each other, and each embodiment is mainly described in the differences from the other embodiments. In particular, for the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments in part.
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 one … …" does not exclude the presence of additional identical elements in a process, method, article or boiler comprising the element.
The foregoing is merely exemplary of the present invention and is not intended to limit the present invention. Various modifications and variations of the present invention will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the invention are to be included in the scope of the claims of the present invention.

Claims (6)

1. A page generation method, comprising:
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 type of the technical stack carried by the routing path;
acquiring page information to be accessed corresponding to the routing path, and rendering the page information to be accessed by using the acquired interpreter to generate a page;
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 package according to a preset package management tool to determine at least one candidate route path;
for each candidate route path, detecting whether the technical stack type, the service type and the page information path carried in the candidate route path are the same as the technical stack type, the service type and the page information path carried in the authority route path in the access request, if so, determining the candidate route path as the route path of the page to be accessed;
the obtaining the interpreter according to the technology stack type carried by the routing path comprises the following steps:
determining a technical stack corresponding to the technical stack type carried by the routing path, wherein the technical stack comprises a frame source code library for structuring a management page, a progressive frame source code library for constructing a user interface and/or a frame source code library for constructing the user interface;
and acquiring an interpreter corresponding to the technical stack.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the determining the service type according to the access request comprises the following steps:
analyzing the access request to extract a service path name carried by the access request, and determining the service path name as a service type.
3. A page generation device applied to a service platform, 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 type of the technical stack carried by the routing path;
the page generation module is used for acquiring page information to be accessed corresponding to the routing path and rendering the page information to be accessed by using the acquired interpreter to generate a page;
the path determination module includes: a resource packet determining unit, a first path determining unit and a second path determining unit; wherein,
the resource packet determining unit is used for determining the configuration mapping relation of the resource packet address corresponding to the service type and determining the resource packet corresponding to the service type according to the configuration mapping relation of the resource packet address;
the first path determining unit is used for loading the resource package according to a preset package management tool to determine at least one candidate route path;
the second path determining unit is configured to detect, for each candidate routing path, whether a technology stack type, a service type, and a page information path carried in the candidate routing path are the same as a technology stack type, a service type, and a page information path carried in a right routing path in the access request, and if so, determine the candidate routing path as a routing path of a page to be accessed;
the interpreter determination module comprises: a technology stack determination unit and an interpreter determination unit; wherein,
the technical stack determining unit is used for determining a technical stack corresponding to the technical stack type carried by the routing path, and the technical stack comprises a frame source code library for structuring a management page, a progressive frame source code library for constructing a user interface and/or a frame source code library for constructing the user interface;
the interpreter determining unit is used for acquiring the interpreter corresponding to the technical stack.
4. The apparatus of claim 3, wherein the device comprises a plurality of sensors,
the type determining module is configured to parse the access request to extract a service pathname carried by the access request, and determine the service pathname as a service type.
5. A computer readable storage medium comprising execution instructions which, when executed by a processor of an electronic device, perform the method of claim 1 or 2.
6. An electronic device comprising a processor and a memory storing execution instructions that, when executed by the processor, perform the method of claim 1 or 2.
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 CN111949342A (en) 2020-11-17
CN111949342B true 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
CN111949342A (en) 2020-11-17

Similar Documents

Publication Publication Date Title
CN108156022B (en) Service calling method and device and electronic equipment
CN108446116B (en) Application program page generation method and device, computer equipment and storage medium
US7992127B2 (en) Method and system of encapsulating web site transactions for computer-aided generation of web services
WO2017124952A1 (en) Webpage script loading method and device
US20150378864A1 (en) Systems and methods for instrumenting applications for performance monitoring
WO2016177341A1 (en) Interface calling method and device, and terminal
CN109933350B (en) Method and device for embedding codes in application and electronic equipment
CN111813385B (en) Page plug-in method, device and equipment based on Web application
CN107391182B (en) Generation method, device, server and storage medium of theme installation package
CN111949899A (en) Service integration method and service platform
CN111651169B (en) Block chain intelligent contract operation method and system based on web container
CN113703862A (en) Configuration-based interface calling method, device, equipment and storage medium
CN111124544A (en) Interface display method and device, electronic equipment and storage medium
CN114816404A (en) Method and device for dynamically rendering view page, computer equipment and storage medium
CN107133036B (en) Module management method and device
CN110457013B (en) Program component configuration device and method
CN108595656B (en) Data processing method and system
CN111679828B (en) Data processing method and device, electronic equipment and storage medium
CN111752820A (en) Pressure testing method of gPC interface, computer equipment and storage medium
CN112416612B (en) Service calling method and device, computer equipment and readable storage medium
CN111597020B (en) Application programming interface API debugging method and debugging terminal
CN111949342B (en) Page generation method and device
CN113900633A (en) Low-code development method and device for scene of Internet of things, storage medium and development platform
CN107818073B (en) Method and system for automatically converting dynamic form page into HTML5 page
CN107092601B (en) Resource file construction method, resource file application method and device

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