CN111506846B - Web page generation method and device, electronic equipment and storage medium - Google Patents

Web page generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111506846B
CN111506846B CN201910091536.1A CN201910091536A CN111506846B CN 111506846 B CN111506846 B CN 111506846B CN 201910091536 A CN201910091536 A CN 201910091536A CN 111506846 B CN111506846 B CN 111506846B
Authority
CN
China
Prior art keywords
equipment
control package
web control
web
identification
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
CN201910091536.1A
Other languages
Chinese (zh)
Other versions
CN111506846A (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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201910091536.1A priority Critical patent/CN111506846B/en
Publication of CN111506846A publication Critical patent/CN111506846A/en
Application granted granted Critical
Publication of CN111506846B publication Critical patent/CN111506846B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application provides a Web page generation method, a Web page generation device, electronic equipment and a storage medium, wherein the method comprises the following steps: establishing communication connection with equipment to be configured; judging whether a Web control package is stored in the equipment to be configured; when the equipment to be configured does not store the Web control package, acquiring the identification of the equipment to be configured; according to the identification of the equipment to be configured and the corresponding relation between the prestored equipment identification and the Web control package, determining a target Web control package corresponding to the equipment to be configured in each Web control package of the management equipment; and generating a Web page of the equipment to be configured in a browser of the management equipment through the target Web control package. The Web page generation method realizes the online configuration of the embedded Web function of the terminal equipment, does not occupy the flash memory of the singlechip of the terminal equipment, and increases the probability of successful Web configuration of the terminal equipment.

Description

Web page generation method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for generating a Web page, an electronic device, and a storage medium.
Background
With the development of internet technology, application programs based on Web pages are gradually increased, and more terminal devices can realize functions of remote configuration, updating, control and the like of the terminal devices through the Web pages.
In the scheme of embedding Web pages in relevant CS (Client/Server) clients, web configuration pages are embedded in CS clients of the management device and the terminal device. The specific method of the terminal equipment side is that the terminal equipment carries out Web configuration of the terminal equipment through a Web control package in a single chip microcomputer flash memory of the terminal equipment, thereby realizing the embedded Web page of the CS client.
However, the inventor finds that in the practical application scene, the condition that the Web control package cannot be stored due to insufficient flash memory of the singlechip of the terminal equipment exists, so that the Web configuration of the terminal equipment fails.
Disclosure of Invention
The embodiment of the application aims to provide a Web page generation method, a Web page generation device, electronic equipment and a storage medium, so as to increase the probability of successful generation of a Web page of terminal equipment. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for generating a Web page, which is applied to a management device, where the management device includes a Web control package, and the method includes:
establishing communication connection with equipment to be configured;
judging whether the equipment to be configured stores a Web control package or not;
when the equipment to be configured does not store the Web control package, acquiring the identification of the equipment to be configured;
determining a target Web control package corresponding to the equipment to be configured in each Web control package of the management equipment according to the identification of the equipment to be configured and the corresponding relation between the prestored equipment identification and the Web control package;
and generating the Web page of the equipment to be configured in the browser of the management equipment through the target Web control package.
Optionally, the establishing a communication connection with the device to be configured includes:
sending login information to equipment to be configured;
after the login information is verified successfully by the equipment to be configured, single sign-on (SSO) communication between the management equipment and the equipment to be configured is established.
Optionally, the determining whether the device to be configured stores the Web control package includes:
sending a capability set acquisition instruction to the equipment to be configured;
receiving a capability set message returned by the equipment to be configured, wherein the capability set message characterizes whether a Web control packet is stored in the equipment to be configured;
and judging whether the Web control package is stored in the equipment to be configured according to the capability set message.
Optionally, the obtaining the identifier of the device to be configured includes:
and acquiring the identification of the equipment to be configured, which is attached to the uniform resource locator URL of the dispatch.asp file in the management equipment.
Optionally, the determining, according to the identifier of the device to be configured and the correspondence between the prestored device identifier and the Web control package, the target Web control package corresponding to the device to be configured in each Web control package of the management device includes:
searching a predetermined identification address mapping table according to the identification of the equipment to be configured, and determining a target storage path corresponding to the identification of the equipment to be configured, wherein the identification address mapping table stores the corresponding relation between the equipment identification and the storage path;
and acquiring a target Web control package corresponding to the equipment to be configured from the target storage path.
Optionally, after the determining whether the device to be configured stores the Web control package, the method further includes:
when the Web control package is stored in the equipment to be configured, sending a configuration page request message to the equipment to be configured so that the equipment to be configured generates page configuration information;
and acquiring the page configuration information, and loading the page configuration information in a browser of the management equipment to generate a Web page of the equipment to be configured.
In a second aspect, an embodiment of the present application provides a Web page generating apparatus, which is applied to a management device, where the management device includes a Web control package, and the apparatus includes:
the communication establishing module is used for establishing communication connection with equipment to be configured;
the capability set judging module is used for judging whether the equipment to be configured stores a Web control package or not;
the device identification acquisition module is used for acquiring the identification of the device to be configured when the device to be configured does not store the Web control package;
the control package determining module is used for determining a target Web control package corresponding to the equipment to be configured in each Web control package of the management equipment according to the identification of the equipment to be configured and the corresponding relation between the prestored equipment identification and the Web control package;
and the first page generation module is used for generating the Web page of the equipment to be configured in the browser of the management equipment through the target Web control package.
Optionally, the communication establishment module includes:
the login information sending submodule is used for sending login information to equipment to be configured;
and the SSO login sub-module is used for establishing single sign-on SSO communication between the management equipment and the equipment to be configured after the equipment to be configured verifies the login information successfully.
Optionally, the capability set judging module includes:
the instruction sending submodule is used for sending a capability set acquisition instruction to the equipment to be configured;
the message receiving sub-module is used for receiving a capability set message returned by the equipment to be configured, wherein the capability set message characterizes whether a Web control packet is stored in the equipment to be configured;
and the message analysis sub-module is used for judging whether the Web control package is stored in the equipment to be configured according to the capability set message.
Optionally, the device identifier obtaining module is specifically configured to:
and when the equipment to be configured does not store the Web control package, acquiring the identification of the equipment to be configured attached to the URL of the dispatch. Asp file in the management equipment.
Optionally, the control package determining module includes:
the path determination submodule is used for searching a predetermined identification address mapping table according to the identification of the equipment to be configured and determining a target storage path corresponding to the identification of the equipment to be configured, wherein the identification address mapping table stores the corresponding relation between the equipment identification and the storage path;
and the control package acquisition sub-module is used for acquiring a target Web control package corresponding to the equipment to be configured in the target storage path.
Optionally, the Web page generating apparatus according to the embodiment of the present application further includes:
the configuration page request module is used for sending a configuration page request message to the equipment to be configured when the Web control package is stored in the equipment to be configured, so that the equipment to be configured generates page configuration information;
and the second page generating module is used for acquiring the page configuration information and loading the page configuration information in the browser of the management equipment to generate the Web page of the equipment to be configured.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory;
the memory is used for storing a computer program;
the processor is configured to implement any one of the methods for generating a Web page described in the first aspect when executing the program stored in the memory.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having a computer program stored therein, the computer program implementing the Web page generation method according to any one of the first aspects when executed by a processor.
The method, the device, the electronic equipment and the storage medium for generating the Web page establish communication connection with equipment to be configured; judging whether a Web control package is stored in the equipment to be configured; when the equipment to be configured does not store the Web control package, acquiring the identification of the equipment to be configured; according to the identification of the equipment to be configured and the corresponding relation between the prestored equipment identification and the Web control package, determining a target Web control package corresponding to the equipment to be configured in each Web control package of the management equipment; and generating a Web page of the equipment to be configured in a browser of the management equipment through the target Web control package. The Web control package is stored in the management device, and the Web control package corresponding to the device to be configured is determined through the identifier of the device to be configured, so that the Web configuration is performed on line for the device to be configured, the on-line configuration of the embedded Web function of the terminal device is realized, the flash memory of the singlechip of the terminal device is not occupied, and the probability of successful Web configuration of the terminal device is increased. Of course, not all of the above-described advantages need be achieved simultaneously in practicing any one of the products or methods of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a first schematic diagram of a Web page generating method according to an embodiment of the present application;
FIG. 2 is a second schematic diagram of a Web page generation method according to an embodiment of the present application;
FIG. 3 is a third schematic diagram of a Web page generation method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a Web page generating apparatus according to an embodiment of the present application;
fig. 5 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
First, terms in the embodiments of the present application are explained.
And the singlechip is used for: an integrated circuit chip is a small and perfect microcomputer system formed by integrating functions of a Central Processing Unit (CPU), a Random Access Memory (RAM), a read-only memory (ROM), various Input/Output (I/O) ports, an interrupt system, a timer/counter and the like with a silicon chip by adopting a very large scale integrated circuit technology.
CS Client-Client/Server architecture, i.e., client/Server architecture. The system is a well-known software system architecture, and by reasonably distributing tasks to the Client side and the Server side, the communication overhead of the system is reduced, and the Client side needs to be installed for management operation.
In a related scheme based on the embedded Web page of the CS client, the terminal equipment stores the Web control package in the flash memory of the singlechip of the terminal equipment, and the Web configuration of the terminal equipment is carried out through the Web control package in the flash memory, so that the embedded Web page of the CS client is realized. However, in an actual scene, some terminal equipment single-chip microcomputer flash memory space is limited, a Web control package cannot be stored, and in the application and use process, when the data volume of a new version program is larger than that of an original version program along with updating of the program version, the condition that the Web control package cannot be stored due to insufficient flash memory of the terminal equipment single-chip microcomputer exists, so that Web configuration failure of the terminal equipment is caused.
In view of this, an embodiment of the present application provides a Web page generating method, referring to fig. 1, applied to a management device, where the management device includes a Web control package, and the method includes:
s101, establishing communication connection with the device to be configured.
The Web page generation method is applied to the management device, and therefore can be realized through the management device. The management device is used for managing at least one terminal device, and the management device can communicate with the terminal device.
Before the Web page is loaded by the management device browser, the management device needs to first establish communication with the device to be configured (terminal device). For example, the device to be configured verifies the identity of the management device, and after the identity verification of the management device is passed, the device to be configured allows the management device to log in, so as to establish a communication connection between the management device and the device to be configured. The management device may send login information to the device to be configured, so as to perform identity verification, and establish communication connection with the device to be configured when the login information obtained by the device to be configured meets a preset login rule. For example, the login information may include a brand and a model of the device, and when the brand and the model of the device to be configured are the brand and the model in the login information, a communication connection between the management device and the device to be configured is established. Or when the product serial number of the equipment included in the login information belongs to a preset product serial number, establishing communication connection between the management equipment and the equipment to be configured.
Optionally, the establishing a communication connection with the device to be configured includes:
s1011, sending login information to the device to be configured.
The management device obtains device information of the device to be configured, for example, one or more of address, name, product serial number, model number, software version number and the like of the device to be configured, and sends login information to the device to be configured, wherein the login information of the device to be configured comprises a user name and a password.
S1012, after the device to be configured verifies the login information successfully, SSO (Single Sign On) communication between the management device and the device to be configured is established.
After the user name and the password of the equipment to be configured pass verification, the equipment to be configured allows the management equipment to perform SSO login, and communication connection with the equipment to be configured is established. If the user name and the password of the equipment to be configured are not verified, the equipment to be configured returns error prompt information to the management equipment. In the embodiment of the application, after the user name and the password of the equipment to be configured are successfully verified, SSO communication between the management equipment and the equipment to be configured is established, so that the equipment to be configured can conveniently access each application which is mutually trusted.
S102, judging whether the Web control package is stored in the equipment to be configured.
The management device judges whether the Web control package is stored in the device to be configured, for example, the management device acquires a capability set of the device to be configured, and judges whether the device to be configured stores the Web control package according to the capability set of the device to be configured, wherein the capability set of the device to be configured characterizes whether the device to be configured stores the Web control package.
Optionally, the determining whether the device to be configured stores the Web control package includes:
s1021, sending a capability set acquisition instruction to the equipment to be configured.
The management device sends a capability set acquisition instruction to the configuration device, wherein the capability set acquisition instruction is used for inquiring whether the device to be configured stores a Web control packet. And the device to be configured sends the capability set message of the device to be configured to the management device after receiving the capability set acquisition instruction.
S1022, receiving a capability set message returned by the device to be configured, wherein the capability set message characterizes whether a Web control packet is stored in the device to be configured.
S1023, judging whether the Web control package is stored in the equipment to be configured according to the capability set message.
The management device analyzes the capability set information of the device to be configured and determines whether the device to be configured stores the Web control package.
And S103, when the equipment to be configured does not store the Web control package, acquiring the identification of the equipment to be configured.
The identification of the equipment to be configured can be a product serial number, a product singlechip model number or a number configured for the product in advance, and the like. For the terminal equipment released in the same section, different models exist, the Web control package corresponding to the equipment to be configured cannot be accurately matched through the main control version and the product model, and optionally, a Device ID can be configured for each singlechip. The terminal Device version iterates, and the Device ID will also follow the iteration.
The management device may send an identifier acquisition message to the device to be configured, so that the device to be configured returns the identifier of the device to be configured according to the identifier acquisition message. Or the identification of the device to be configured may also be added to the login information of the device to be configured.
Optionally, the obtaining the identifier of the device to be configured includes: and acquiring the identification of the equipment to be configured, which is attached to a URL (Uniform Resource Locator ) of the dispatch.asp file in the management equipment. The identification of the device to be configured, which is served in the URL, may be returned along with the capability set message, that is, when the Web control package is not stored in the device to be configured, the capability set message returned by the device to be configured and the identification of the device to be configured, where the identification of the device to be configured may be attached to the URL. In the embodiment of the application, the identification of the equipment to be configured attached to the URL is obtained simply and quickly.
S104, determining a target Web control package corresponding to the equipment to be configured in each Web control package of the management equipment according to the identification of the equipment to be configured and the corresponding relation between the prestored equipment identification and the Web control package.
Different packages of Web controls may be required for different models or versions of the software for the terminal device. The management device needs to determine a Web control package corresponding to the device to be configured according to the identification of the device to be configured.
Optionally, the determining, according to the identifier of the device to be configured and the correspondence between the prestored device identifier and the Web control package, the target Web control package corresponding to the device to be configured in each Web control package of the management device includes:
s1041, searching a predetermined identification address mapping table according to the identification of the equipment to be configured, and determining a target storage path corresponding to the identification of the equipment to be configured, wherein the identification address mapping table stores the corresponding relation between the equipment identification and the storage path.
S1042, obtaining a target Web control package corresponding to the equipment to be configured in the target storage path.
The corresponding relation between the equipment identification and the storage path of each terminal equipment is stored in the identification address mapping table, and for any terminal equipment, the Web control package corresponding to the terminal equipment is stored in the storage path corresponding to the equipment identification of the terminal equipment. And the management equipment searches an identification address mapping table according to the identification of the equipment to be configured, determines a target storage path corresponding to the identification of the equipment to be configured, and reads a target Web control package corresponding to the equipment to be configured from the target path.
S105, generating the Web page of the device to be configured in the browser of the management device through the target Web control package.
And the management device generates a Web page of the device to be configured in a browser of the management device by using the target Web control package. For example, the management device obtains a Web control call message of the device to be configured, where the Web control call message is used to call a specified Web control; the management device calls the corresponding Web control from the target Web control package according to the Web control call message, and loads the corresponding Web control in the browser of the management device, so that the Web page of the device to be configured is generated in the browser.
In the embodiment of the application, the Web control package is stored in the management device, and the Web control package corresponding to the device to be configured is determined through the identifier of the device to be configured, so that the Web configuration is performed on line for the device to be configured, the on-line configuration of the embedded Web function of the terminal device is realized, the flash memory of the singlechip of the terminal device is not occupied, and the probability of successful Web configuration of the terminal device is increased.
Optionally, referring to fig. 2, after determining, according to the capability set, whether the device to be configured stores a Web control package, the method further includes:
s201, when the Web control package is stored in the equipment to be configured, sending a configuration page request message to the equipment to be configured so as to enable the equipment to be configured to generate page configuration information.
And when the Web control package is stored in the equipment to be configured, the management equipment sends a configuration page request message to the equipment to be configured. And after receiving the page configuration request message, the device to be configured calls a Web control package in the flash memory of the device to be configured to generate page configuration information.
S202, acquiring the page configuration information, and loading the page configuration information in a browser of the management device to generate a Web page of the device to be configured.
The management device acquires the page configuration information, and loads the page configuration information in the browser to generate a Web page of the device to be configured.
In the embodiment of the application, when the Web control package is stored in the equipment to be configured, the Web configuration of the equipment to be configured is performed by utilizing the Web control package in the equipment to be configured, so that the situation that the equipment to be configured comprises the Web control package is compatible.
Specifically, the Web page generating method in the embodiment of the present application may be as shown in fig. 3. The management device is provided with a client (specifically, 4200 client), and the client of the management device stores a Web control package. The client starts a browser shell program, opens a scheduling configuration file (such as a dispatchConfig. Html file), starts an SSO interface, and sends login information to the terminal device, wherein the login information comprises a user name and a password of the terminal device. After the login information passes the verification, allowing the terminal equipment SSO to log in, acquiring the equipment information of the terminal equipment, and recording the information of the terminal equipment, for example, setting the user information in the session object userinfo, and setting the equipment information in the session object deviceinfo and the like.
In order to be compatible with the solution that the Web control package is stored in the terminal device, a new command needs to be added before the browser shell program requests to load the Web page: and acquiring a capability set from the terminal equipment to judge whether the terminal equipment does not support storing the Web control package (reversing the capability set, storing the Web package on behalf of the supporting equipment if the request returns an error, and locally requesting the Web file from the client if the equipment returns that the capability set is true).
Because the client can add and manage multiple pieces of terminal equipment, if the single-chip microcomputer equipment and the non-single-chip microcomputer equipment exist at the same time, in order to distinguish different Web control packages corresponding to the multiple pieces of equipment, a concept of a Web configuration package (WebCfgPackage) is provided in the embodiment of the application. The Web configuration package is to store the Web control packages corresponding to all the terminal devices under the corresponding paths according to the specific formats and different product line branches and versions, and judge the storage positions of the Web control packages corresponding to the terminal devices in the Web configuration package according to the device IDs returned by the devices. And obtaining the position of the Web control package corresponding to the current equipment in the Web configuration package, and jumping to the Web control package under the target path.
The embodiment of the application also provides a Web page generating device, referring to fig. 4, applied to a management device, where the management device includes a Web control package, and the device includes:
a communication establishing module 401, configured to establish a communication connection with a device to be configured;
a capability set judging module 402, configured to judge whether the device to be configured stores a Web control package;
the device identifier obtaining module 403 is configured to obtain an identifier of the device to be configured when the device to be configured does not store a Web control package;
the control package determining module 404 is configured to determine, according to the identifier of the device to be configured and the correspondence between the prestored device identifier and the Web control package, a target Web control package corresponding to the device to be configured in each Web control package of the management device;
and the first page generating module 405 is configured to generate, in the browser of the management device, a Web page of the device to be configured through the target Web control package.
Optionally, the communication establishing module 401 includes:
the login information sending submodule is used for sending login information to equipment to be configured;
and the SSO login sub-module is used for establishing single sign-on SSO communication between the management equipment and the equipment to be configured after the equipment to be configured verifies the login information successfully.
Optionally, the capability set determining module 402 includes:
the instruction sending submodule is used for sending a capability set acquisition instruction to the equipment to be configured;
the message receiving sub-module is used for receiving a capability set message returned by the equipment to be configured, wherein the capability set message characterizes whether a Web control packet is stored in the equipment to be configured;
and the message analysis sub-module is used for judging whether the Web control package is stored in the equipment to be configured according to the capability set message.
Optionally, the device identifier obtaining module 403 is specifically configured to:
and when the equipment to be configured does not store the Web control package, acquiring the identification of the equipment to be configured attached to the URL of the dispatch. Asp file in the management equipment.
Optionally, the control package determining module 404 includes:
the path determination submodule is used for searching a predetermined identification address mapping table according to the identification of the equipment to be configured and determining a target storage path corresponding to the identification of the equipment to be configured, wherein the identification address mapping table stores the corresponding relation between the equipment identification and the storage path;
and the control package acquisition sub-module is used for acquiring the target Web control package corresponding to the equipment to be configured in the target storage path.
Optionally, the Web page generating apparatus according to the embodiment of the present application further includes:
the configuration page request module is used for sending a configuration page request message to the equipment to be configured when the Web control package is stored in the equipment to be configured, so that the equipment to be configured generates page configuration information;
and the second page generating module is used for acquiring the page configuration information, and loading the page configuration information in the browser of the management device to generate the Web page of the device to be configured.
The embodiment of the application also provides electronic equipment, which comprises a processor and a memory;
the memory is used for storing a computer program;
the processor is configured to implement the following steps when executing the program stored in the memory:
establishing communication connection with equipment to be configured;
judging whether the equipment to be configured stores a Web control package or not;
when the equipment to be configured does not store the Web control package, acquiring the identification of the equipment to be configured;
determining a target Web control package corresponding to the equipment to be configured in each Web control package of the management equipment according to the identification of the equipment to be configured and the corresponding relation between the prestored equipment identification and the Web control package;
and generating the Web page of the equipment to be configured in the browser of the management equipment through the target Web control package.
Optionally, the processor is configured to execute the program stored in the memory, and further implement any one of the methods for generating a Web page.
Optionally, as shown in fig. 5, the electronic device in the embodiment of the present application further includes a communication interface 502 and a communication bus 504, where the processor 501, the communication interface 502, and the memory 503 complete communication with each other through the communication bus 504.
The communication bus mentioned above for the electronic devices may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
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 Processing, 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 embodiment of the application also provides a computer readable storage medium, wherein a computer program is stored in the computer readable storage medium, and when the computer program is executed by a processor, any one of the Web page generation methods is realized.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for embodiments of the apparatus, electronic device and storage medium, the description is relatively simple as it is substantially similar to the method embodiments, where relevant see the section description of the method embodiments.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application. Any modifications, equivalent substitutions, improvements, etc. that are within the spirit and principles of the present application are intended to be included within the scope of the present application.

Claims (10)

1. A method of generating a Web page for a Web application to a management device, the management device including a Web control package, the method comprising:
establishing communication connection with equipment to be configured;
judging whether the equipment to be configured stores a Web control package or not;
when the equipment to be configured does not store the Web control package, acquiring the identification of the equipment to be configured;
determining a target Web control package corresponding to the equipment to be configured in each Web control package of the management equipment according to the identification of the equipment to be configured and the corresponding relation between the prestored equipment identification and the Web control package;
generating a Web page of the equipment to be configured in a browser of the management equipment through the target Web control package;
when the Web control package is stored in the equipment to be configured, sending a configuration page request message to the equipment to be configured so that the equipment to be configured generates page configuration information; and acquiring the page configuration information, and loading the page configuration information in a browser of the management equipment to generate a Web page of the equipment to be configured.
2. The method of claim 1, wherein the establishing a communication connection with the device to be configured comprises:
sending login information to equipment to be configured;
after the login information is verified successfully by the equipment to be configured, single sign-on (SSO) communication between the management equipment and the equipment to be configured is established.
3. The method of claim 1, wherein the determining whether the device to be configured has a Web control package stored therein comprises:
sending a capability set acquisition instruction to the equipment to be configured;
receiving a capability set message returned by the equipment to be configured, wherein the capability set message characterizes whether a Web control packet is stored in the equipment to be configured;
and judging whether the Web control package is stored in the equipment to be configured according to the capability set message.
4. The method of claim 1, wherein the obtaining the identification of the device to be configured comprises:
and acquiring the identification of the equipment to be configured, which is attached to the uniform resource locator URL of the dispatch.asp file in the management equipment.
5. The method of claim 1, wherein determining, in each Web control package of the management device, a target Web control package corresponding to the device to be configured according to the identifier of the device to be configured and a correspondence between a prestored device identifier and a Web control package, includes:
searching a predetermined identification address mapping table according to the identification of the equipment to be configured, and determining a target storage path corresponding to the identification of the equipment to be configured, wherein the identification address mapping table stores the corresponding relation between the equipment identification and the storage path;
and acquiring a target Web control package corresponding to the equipment to be configured from the target storage path.
6. A Web page generation apparatus, characterized by being applied to a management device, the management device including a Web control package, the apparatus comprising:
the communication establishing module is used for establishing communication connection with equipment to be configured;
the capability set judging module is used for judging whether the equipment to be configured stores a Web control package or not;
the device identification acquisition module is used for acquiring the identification of the device to be configured when the device to be configured does not store the Web control package;
the control package determining module is used for determining a target Web control package corresponding to the equipment to be configured in each Web control package of the management equipment according to the identification of the equipment to be configured and the corresponding relation between the prestored equipment identification and the Web control package;
the first page generation module is used for generating the Web page of the equipment to be configured in the browser of the management equipment through the target Web control package;
the configuration page request module is used for sending a configuration page request message to the equipment to be configured when the Web control package is stored in the equipment to be configured, so that the equipment to be configured generates page configuration information;
and the second page generating module is used for acquiring the page configuration information and loading the page configuration information in the browser of the management equipment to generate the Web page of the equipment to be configured.
7. The apparatus of claim 6, wherein the communication establishment module comprises:
the login information sending submodule is used for sending login information to equipment to be configured;
and the SSO login sub-module is used for establishing single sign-on SSO communication between the management equipment and the equipment to be configured after the equipment to be configured verifies the login information successfully.
8. The apparatus of claim 6, wherein the capability set determination module comprises:
the instruction sending submodule is used for sending a capability set acquisition instruction to the equipment to be configured;
the message receiving sub-module is used for receiving a capability set message returned by the equipment to be configured, wherein the capability set message characterizes whether a Web control packet is stored in the equipment to be configured;
and the message analysis sub-module is used for judging whether the Web control package is stored in the equipment to be configured according to the capability set message.
9. The apparatus of claim 6, wherein the device identifier obtaining module is specifically configured to:
and when the equipment to be configured does not store the Web control package, acquiring the identification of the equipment to be configured attached to the URL of the dispatch. Asp file in the management equipment.
10. The apparatus of claim 6, wherein the control package determination module comprises:
the path determination submodule is used for searching a predetermined identification address mapping table according to the identification of the equipment to be configured and determining a target storage path corresponding to the identification of the equipment to be configured, wherein the identification address mapping table stores the corresponding relation between the equipment identification and the storage path;
and the control package acquisition sub-module is used for acquiring a target Web control package corresponding to the equipment to be configured in the target storage path.
CN201910091536.1A 2019-01-30 2019-01-30 Web page generation method and device, electronic equipment and storage medium Active CN111506846B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910091536.1A CN111506846B (en) 2019-01-30 2019-01-30 Web page generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910091536.1A CN111506846B (en) 2019-01-30 2019-01-30 Web page generation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111506846A CN111506846A (en) 2020-08-07
CN111506846B true CN111506846B (en) 2023-05-02

Family

ID=71864597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910091536.1A Active CN111506846B (en) 2019-01-30 2019-01-30 Web page generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111506846B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112532703B (en) * 2020-11-20 2022-05-27 杭州海康威视数字技术股份有限公司 Page configuration request method and device and electronic equipment

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011034511A (en) * 2009-08-05 2011-02-17 Nec Corp Message transmitting and receiving system, message transmitting and receiving method, message relay server, and message transmission and reception program
CN103024574A (en) * 2012-12-17 2013-04-03 青岛海信宽带多媒体技术有限公司 Digital television receiving terminal and method for interaction with user side
CN104378435A (en) * 2014-11-20 2015-02-25 北京安奇智联科技有限公司 Method for transmitting file between browser of computing device and mobile terminal
CN105553959A (en) * 2015-12-11 2016-05-04 Tcl集团股份有限公司 Remote control method and system capable of dynamically generating intelligent device operation interface
CN107870989A (en) * 2017-10-17 2018-04-03 平安科技(深圳)有限公司 webpage generating method and terminal device
CN108021583A (en) * 2016-10-28 2018-05-11 阿里巴巴集团控股有限公司 Page loading method, the processing method and client of page operation instruction
CN108228305A (en) * 2018-02-02 2018-06-29 广东欧珀移动通信有限公司 Display methods, device, storage medium and the electronic equipment of five application page
CN108334608A (en) * 2018-02-02 2018-07-27 广东欧珀移动通信有限公司 Link generation method, device, storage medium and the electronic equipment of five application page
CN108363792A (en) * 2018-02-13 2018-08-03 广东欧珀移动通信有限公司 Link generation method, device, storage medium and the electronic equipment of five application page
CN108391009A (en) * 2018-02-13 2018-08-10 广东欧珀移动通信有限公司 Display methods, device, storage medium and the electronic equipment of five application page
CN108647240A (en) * 2018-04-04 2018-10-12 沈文策 A kind of method, apparatus, electronic equipment and the storage medium of statistics visit capacity
CN108763525A (en) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 electronic device, terminal page loading method and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011034511A (en) * 2009-08-05 2011-02-17 Nec Corp Message transmitting and receiving system, message transmitting and receiving method, message relay server, and message transmission and reception program
CN103024574A (en) * 2012-12-17 2013-04-03 青岛海信宽带多媒体技术有限公司 Digital television receiving terminal and method for interaction with user side
CN104378435A (en) * 2014-11-20 2015-02-25 北京安奇智联科技有限公司 Method for transmitting file between browser of computing device and mobile terminal
CN105553959A (en) * 2015-12-11 2016-05-04 Tcl集团股份有限公司 Remote control method and system capable of dynamically generating intelligent device operation interface
CN108021583A (en) * 2016-10-28 2018-05-11 阿里巴巴集团控股有限公司 Page loading method, the processing method and client of page operation instruction
CN107870989A (en) * 2017-10-17 2018-04-03 平安科技(深圳)有限公司 webpage generating method and terminal device
CN108228305A (en) * 2018-02-02 2018-06-29 广东欧珀移动通信有限公司 Display methods, device, storage medium and the electronic equipment of five application page
CN108334608A (en) * 2018-02-02 2018-07-27 广东欧珀移动通信有限公司 Link generation method, device, storage medium and the electronic equipment of five application page
CN108363792A (en) * 2018-02-13 2018-08-03 广东欧珀移动通信有限公司 Link generation method, device, storage medium and the electronic equipment of five application page
CN108391009A (en) * 2018-02-13 2018-08-10 广东欧珀移动通信有限公司 Display methods, device, storage medium and the electronic equipment of five application page
CN108647240A (en) * 2018-04-04 2018-10-12 沈文策 A kind of method, apparatus, electronic equipment and the storage medium of statistics visit capacity
CN108763525A (en) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 electronic device, terminal page loading method and storage medium

Also Published As

Publication number Publication date
CN111506846A (en) 2020-08-07

Similar Documents

Publication Publication Date Title
CN110222533B (en) Distributed data security application method and system and electronic equipment
KR102166589B1 (en) Method and apparatus for realizing communication between web page and native application, and electronic device
US20120079114A1 (en) Prioritization of third party access to an online commerce site
JP2018536935A (en) Access request conversion method and apparatus
CN107786621B (en) User information management method, access processing method, device and system
US7130877B2 (en) Request processing switch
US10445158B2 (en) Computer readable storage media for dynamic service deployment and methods and systems for utilizing same
US20200150980A1 (en) Rendering content of service providers via web page having dynamically-loaded plugins
CN106686038A (en) Method and device for calling cloud desktop
CN108173839B (en) Authority management method and system
US20140019957A1 (en) Method, apparatus, and system for sharing software among terminals
CN114398176A (en) Service access method, device, electronic equipment and storage medium
CN112199656B (en) Access authority acquisition method of service platform and access control method of service platform
CN111818158A (en) Gateway control method, device, electronic equipment and storage medium
CN112818270A (en) Data cross-domain transfer method and device and computer equipment
CN111506846B (en) Web page generation method and device, electronic equipment and storage medium
CN115004666A (en) Registration method, device, equipment and storage medium of Internet of things equipment
CN113378095A (en) Dynamic loading method, device and equipment of signature algorithm and storage medium
CN109995863B (en) Dynamic resource downloading method and device, electronic equipment and storage medium
US20170195426A1 (en) Maintaining session across plural providing devices
CN107864038B (en) Certificate management method, device, equipment and computer readable storage medium
CN115412294A (en) Platform service-based access method and device, storage medium and electronic equipment
CN111064675B (en) Access flow control method, device, network equipment and storage medium
CN114912097A (en) Certificate verification method and device, electronic equipment and storage medium
CN107566211B (en) Method, device and system for accessing test equipment

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