CN113204344B - Information acquisition method and device for front-end development - Google Patents
Information acquisition method and device for front-end development Download PDFInfo
- Publication number
- CN113204344B CN113204344B CN202110591496.4A CN202110591496A CN113204344B CN 113204344 B CN113204344 B CN 113204344B CN 202110591496 A CN202110591496 A CN 202110591496A CN 113204344 B CN113204344 B CN 113204344B
- Authority
- CN
- China
- Prior art keywords
- information
- authentication
- authentication information
- unit
- end development
- 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
Links
- 238000011161 development Methods 0.000 title claims abstract description 110
- 238000000034 method Methods 0.000 title claims abstract description 64
- 230000008569 process Effects 0.000 claims abstract description 24
- 238000004590 computer program Methods 0.000 claims description 15
- 238000005516 engineering process Methods 0.000 claims description 13
- 238000003860 storage Methods 0.000 claims description 13
- 230000003993 interaction Effects 0.000 claims description 12
- 230000002452 interceptive effect Effects 0.000 claims description 12
- 230000004044 response Effects 0.000 claims description 6
- 230000003068 static effect Effects 0.000 claims description 6
- 238000004519 manufacturing process Methods 0.000 abstract description 13
- 238000004891 communication Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 7
- 239000000872 buffer Substances 0.000 description 4
- 230000007246 mechanism Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000005315 distribution function Methods 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a method and a device for acquiring information of front-end development, which can be used in the technical field of data security, and the method comprises the following steps: determining an authentication mode among data outside the project; and then authenticating according to the authentication mode, if the authentication is passed, performing one-time permanent permission on front-end development, and permitting all access requests of the front-end development terminal in the process of performing front-end development on the whole front-end development terminal. The invention permits all access requests of the front-end development terminal in the process of front-end development by carrying out one-time permanent permission on the front-end development, thereby overcoming the serious problem of page blackout in the production environment and greatly reducing the efficiency of joint debugging and positioning problems of front-end developers.
Description
Technical Field
The invention relates to the field of data processing, in particular to the technical field of authentication, and particularly relates to an information acquisition method and device for front-end development.
Background
The front-end technology adopts the front-end technology and the back-end technology, the front-end needs to construct a page and data processing, the service only needs to provide a basic data interface, the front-end center of gravity only needs to consider UI debugging and logic debugging from the original, synchronous production environment consistency is required for joint debugging in the later period of development, the mechanism for acquiring authentication information is currently inconsistent on line and off line, the mechanism for acquiring the authentication information through a login interface is adopted on line, the off-line debugging link is that fixed authentication information is manually acquired for service developers, the front-end developers bind the information to an access interface, the authentication information in the process is single-batch, the operation is required to be carried out again after logging in each time, if one front-end developer needs to debug for tens of times, the service developer needs to manually reset the information, the front-end developer needs to release the code related to be annotated, the code of the annotation is required to be released when the front-end developer is packaged, but the developer often forgets to release the code which is not required to release the code related to be annotated, thus serious production environment problem is caused, and the problem of positioning the front-end of the page is greatly reduced, and the problem of positioning of the front-end developer is solved.
Disclosure of Invention
Aiming at the problems that in the prior art, after logging in again, the operation needs to be carried out, if a front-end developer needs to debug for dozens of times, service developers need to manually reset the information, the front-end developer needs to unbind authentication information for dozens of times, and the front-end developer needs to annotate related codes when the front-end developer is in online running, and the annotated codes need to be released when the front-end developer is packaged, but the problem that the developer forgets to release the codes which should not be annotated often occurs, the invention provides the information acquisition method and the device for front-end development, and the authentication mode among data outside projects is determined; and then authenticating according to the authentication mode, if the authentication is passed, performing one-time permanent permission on front-end development, and permitting all access requests of the front-end development terminal in the process of front-end development of the whole front-end development terminal, thereby overcoming the serious problem of page blackout in the production environment and greatly reducing the efficiency of joint debugging and positioning problems of front-end developers.
In order to solve the technical problems, the invention provides the following technical scheme:
In a first aspect, the present invention provides an information acquisition method for front-end development, the information acquisition method including:
determining an authentication mode among data outside the project;
authenticating according to the authentication mode, and generating license information if the authentication passes;
And in the process of front-end development by the front-end development terminal, using the permission information to permit all access requests of the front-end development terminal.
In a preferred embodiment, the authenticating according to the authentication mode, if the authentication passes, generating license information includes:
based on cross-platform development of a front-end nw.js technology, invoking authentication information from a domWebWorker layer;
a contract is achieved with the server according to the authentication information in a keep-live mode in a development environment;
license information is generated in response to the contract.
In a preferred embodiment, the authenticating according to the authentication mode, if the authentication passes, generating license information includes:
Developing a static interaction page;
Calling authentication information through an ajax data interaction mode and a timer keep-alive calling interface;
and generating the permission information according to the authentication information.
In a preferred embodiment, the cross-platform development based on the front-end nw. Js technology calls authentication information from domWebWorker layers, including:
downloading the SDK edition tool from npm images;
Editing a source file to generate a package. Json file and an index. Html file;
compiling the package. Json and index. Html file into nwjs-SDK file;
And selecting nwjs-builder-phonenix tool to package the nwjs-SDK file and generating the authentication information.
In a preferred embodiment, the calling the authentication information through the ajax data interaction mode and the timer keep-alive calling interface includes:
Obtaining an html file comprising button elements and a return display frame element;
Determining an authentication information interface according to the html file;
Opening an interactive page and clicking button elements to form an access for acquiring authentication information;
and invoking authentication information from the authentication information entry.
In a second aspect, the present invention provides an information acquisition apparatus for front-end development, the information acquisition apparatus comprising:
the determining module is used for determining an authentication mode among the data outside the project;
the license information generation module is used for carrying out authentication according to the authentication mode, and generating license information if the authentication passes;
and the permission access module is used for permitting all access requests of the front-end development terminal by utilizing the permission information in the process of front-end development by the front-end development terminal.
In a preferred embodiment, the license information generation module includes:
An authentication information calling unit which calls authentication information from domWebWorker layers based on cross-platform development of a front-end nw.js technology;
The agreement unit is used for agreeing with the server side in a manner of performing keep-live in a development environment according to the authentication information;
and a license information generation unit that generates license information in response to the contract.
In a preferred embodiment, the license information generation module includes:
The interactive page development unit develops a static interactive page;
the authentication information calling unit calls authentication information through an ajax data interaction mode and a timer keep-alive calling interface;
and a license information generating unit for generating the license information according to the authentication information.
In a preferred embodiment, the authentication information calling unit includes:
A download unit for downloading the SDK version tool from npm images;
The editing unit is used for editing the source file and generating a package. Json file and an index. Html file;
The compiling unit compiles the package, json and index, html files into nwjs-SDK files;
And the authentication information generation unit selects nwjs-builder-phonenix tools to package the nwjs-SDK file and generates the authentication information.
In a preferred embodiment, the authentication information calling unit includes:
An acquisition unit that acquires an html file including a button element and a return display frame element;
An interface determining unit for determining an authentication information interface according to the html file;
an authentication information entry forming unit for opening the interactive page and clicking the button element to form an authentication information entry;
and the authentication information calling unit. And invoking authentication information from the authentication information entry.
In a third aspect, the present invention provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the information acquisition method when executing the program.
In a fourth aspect, the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the information acquisition method.
As can be seen from the above technical solution, the method and apparatus for acquiring information for front-end development provided by the present invention include: determining an authentication mode among data outside the project; and then authenticating according to the authentication mode, if the authentication is passed, performing one-time permanent permission on front-end development, and permitting all access requests of the front-end development terminal in the process of performing front-end development on the whole front-end development terminal. The invention permits all access requests of the front-end development terminal in the process of front-end development by carrying out one-time permanent permission on the front-end development, thereby overcoming the serious problem of page blackout in the production environment and greatly reducing the efficiency of joint debugging and positioning problems of front-end developers.
Drawings
In order to more clearly illustrate the embodiments of the present invention 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, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an information acquisition method in an embodiment of the present invention.
Fig. 2 is a schematic flow chart of step S101 in the information acquisition method according to the embodiment of the present invention.
Fig. 3 is a second flowchart of step S101 in the information acquisition method according to the embodiment of the present invention.
Fig. 4 is a schematic structural diagram of an information acquisition apparatus in an embodiment of the present invention.
Fig. 5 is a schematic structural diagram of an electronic device in an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present 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.
It should be noted that, the method and the device for acquiring information developed by the front end disclosed by the invention can be used in the technical field of data security, and can also be used in any field except the technical field of data security, and the application field of the method and the device for acquiring information developed by the front end disclosed by the invention is not limited.
Considering that the operation needs to be carried out after logging in each time in the prior art, if a front-end developer needs to debug for tens of times, the service developer needs to manually reset the information, the front-end developer needs to unbind authentication information for tens of times, the front-end developer needs to annotate related codes when the front-end developer is in online descending, and the annotated codes need to be released when the front-end developer is packaged, but the problem that the developer forgets to release the codes which should not be annotated often occurs; and then authenticating according to the authentication mode, if the authentication is passed, performing one-time permanent permission on front-end development, and permitting all access requests of the front-end development terminal in the process of front-end development of the whole front-end development terminal, thereby overcoming the serious problem of page blackout in the production environment and greatly reducing the efficiency of joint debugging and positioning problems of front-end developers.
Based on the foregoing, the present invention further provides an apparatus for implementing the information acquisition method provided in one or more embodiments of the present invention, where the apparatus may be communicatively connected to a front-end development terminal, where the front-end development terminal may be provided with a plurality of front-end development terminals, and the apparatus may specifically be connected to a wireless or wired network, for example, wifi, 4G, 5G networks
It is understood that the front-end development terminal may include a smart phone, a tablet electronic device, a network set-top box, a portable computer, a desktop computer, a Personal Digital Assistant (PDA), an in-vehicle device, a smart wearable device, etc. Wherein, intelligent wearing equipment can include intelligent glasses, intelligent wrist-watch, intelligent bracelet etc..
The terminal may have a communication module (i.e. a communication unit) for enabling data transmission with the device. For example, the communication unit may send the authentication manner between the off-project data to the device, so that the device determines the authentication manner between the off-project data; authenticating according to the authentication mode, and generating license information if the authentication passes; and in the process of front-end development by the front-end development terminal, using the permission information to permit all access requests of the front-end development terminal.
The communication between the above-described devices and the terminal may be performed using any suitable network protocol, including one that has not been developed at the filing date of the present invention. The network protocols may include, for example, TCP/IP protocol, UDP/IP protocol, HTTP protocol, HTTPS protocol, etc. Of course, the network protocol may also include, for example, RPC protocol (Remote Procedure Call Protocol ), REST protocol (representational STATE TRANSFER) or the like used above the above-described protocol.
The information acquisition method, the information acquisition device, the electronic equipment and the computer readable storage medium provided by the invention are characterized in that the authentication mode among data outside projects is determined; and then authenticating according to the authentication mode, if the authentication is passed, performing one-time permanent permission on front-end development, and permitting all access requests of the front-end development terminal in the process of front-end development of the whole front-end development terminal, thereby overcoming the serious problem of page blackout in the production environment and greatly reducing the efficiency of joint debugging and positioning problems of front-end developers.
The following embodiments and application examples are described in detail.
In order to solve the problem that in the prior art, after logging in again, the operation needs to be performed, if a front-end developer needs to debug for tens of times, the service developer needs to manually reset the information, the front-end developer needs to unbind authentication information for tens of times, and the front-end developer needs to annotate related codes when the front-end developer is on line, and the annotated codes need to be released when the front-end developer is packaged, but a scheme that the developer forgets to release the codes which should not be annotated often occurs, the invention provides an embodiment of an information acquisition method, referring to fig. 1, wherein the information acquisition method is specifically executed by a device and specifically comprises the following steps:
S101: and determining an authentication mode among the data outside the project.
S102: and authenticating according to the authentication mode, and generating license information if the authentication passes.
S103: and in the process of front-end development by the front-end development terminal, using the permission information to permit all access requests of the front-end development terminal.
As can be seen from the above description, in the information acquisition method provided by the embodiment of the present invention, by permanently permitting front-end development at one time, in the process of front-end development of the whole front-end development terminal, all access requests of the front-end development terminal are permitted, so that the serious problem of black screen of a page in a production environment is overcome, and the efficiency of joint debugging and positioning problems of front-end developers is greatly reduced.
To further illustrate the specific step S101 of the present invention, in one embodiment of the information acquisition method provided by the present invention, a preferred manner of determining an authentication manner between data outside the project is provided, and referring to fig. 2, S101 specifically includes the following:
s111: based on cross-platform development of the front-end nw.js technology, authentication information is called from domWebWorker layers.
S112: and according to the authentication information, a manner of performing keep-live in a development environment is agreed with a server side.
S113: license information is generated in response to the contract.
In this embodiment, specifically, the cross-platform development based on the front end nw.js technology calls authentication information from domWebWorker layers, including:
downloading the SDK edition tool from npm images;
Editing a source file to generate a package. Json file and an index. Html file;
compiling the package. Json and index. Html file into nwjs-SDK file;
And selecting nwjs-builder-phonenix tool to package the nwjs-SDK file and generating the authentication information.
To further illustrate the specific step S101 of the present invention, in one embodiment of the information acquisition method provided by the present invention, a preferred manner of determining an authentication manner between data outside the project is provided, and referring to fig. 3, S101 specifically includes the following:
s121: a static interaction page is developed.
S122: and calling authentication information through an ajax data interaction mode and a timer keep-alive calling interface.
S123: and generating the permission information according to the authentication information.
In this embodiment, specifically, the invoking the authentication information through the ajax data interaction mode and the timer keep-alive invoking interface includes:
Obtaining an html file comprising button elements and a return display frame element;
Determining an authentication information interface according to the html file;
Opening an interactive page and clicking button elements to form an access for acquiring authentication information;
and invoking authentication information from the authentication information entry.
As can be seen from the above technical solution, the method for obtaining information for front-end development provided by the present invention includes: determining an authentication mode among data outside the project; and then authenticating according to the authentication mode, if the authentication is passed, performing one-time permanent permission on front-end development, and permitting all access requests of the front-end development terminal in the process of performing front-end development on the whole front-end development terminal. The invention permits all access requests of the front-end development terminal in the process of front-end development by carrying out one-time permanent permission on the front-end development, thereby overcoming the serious problem of page blackout in the production environment and greatly reducing the efficiency of joint debugging and positioning problems of front-end developers.
In order to solve the problem that in the prior art, after logging in again, the operation needs to be performed, if a front-end developer needs to debug for tens of times, the service developer needs to manually reset the information, the front-end developer needs to unbind the authentication information for tens of times, and when the front-end developer needs to annotate the related code and package the code, the problem that the developer forgets to release the code which should not be annotated often occurs in the packaging, the invention provides an embodiment of an apparatus and an apparatus for executing all or part of the content in the information acquisition method, referring to fig. 4, the apparatus includes:
the determining module 10 determines an authentication mode among the data outside the project;
the license information generation module 20 performs authentication according to the authentication mode, and generates license information if the authentication passes;
The license access module 30 uses the license information to license all access requests of the front-end development terminal in the front-end development process of the front-end development terminal.
As can be seen from the above technical solution, the method and apparatus for acquiring information for front-end development provided by the present invention include: determining an authentication mode among data outside the project; and then authenticating according to the authentication mode, if the authentication is passed, performing one-time permanent permission on front-end development, and permitting all access requests of the front-end development terminal in the process of performing front-end development on the whole front-end development terminal. The invention permits all access requests of the front-end development terminal in the process of front-end development by carrying out one-time permanent permission on the front-end development, thereby overcoming the serious problem of page blackout in the production environment and greatly reducing the efficiency of joint debugging and positioning problems of front-end developers.
In a preferred embodiment, the license information generation module includes:
An authentication information calling unit which calls authentication information from domWebWorker layers based on cross-platform development of a front-end nw.js technology;
The agreement unit is used for agreeing with the server side in a manner of performing keep-live in a development environment according to the authentication information;
and a license information generation unit that generates license information in response to the contract.
In a preferred embodiment, the license information generation module includes:
The interactive page development unit develops a static interactive page;
the authentication information calling unit calls authentication information through an ajax data interaction mode and a timer keep-alive calling interface;
and a license information generating unit for generating the license information according to the authentication information.
In a preferred embodiment, the authentication information calling unit includes:
A download unit for downloading the SDK version tool from npm images;
The editing unit is used for editing the source file and generating a package. Json file and an index. Html file;
The compiling unit compiles the package, json and index, html files into nwjs-SDK files;
And the authentication information generation unit selects nwjs-builder-phonenix tools to package the nwjs-SDK file and generates the authentication information.
In a preferred embodiment, the authentication information calling unit includes:
An acquisition unit that acquires an html file including a button element and a return display frame element;
An interface determining unit for determining an authentication information interface according to the html file;
an authentication information entry forming unit for opening the interactive page and clicking the button element to form an authentication information entry;
and the authentication information calling unit. And invoking authentication information from the authentication information entry.
Furthermore, the invention also provides an electronic device, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the information acquisition method when executing the program.
As can be seen from the above description, in the electronic device provided by the embodiment of the present invention, by permanently permitting front-end development at one time, in the process of front-end development of the whole front-end development terminal, all access requests of the front-end development terminal are permitted, so that the problem of serious page blackout in the production environment is overcome, and the efficiency of joint debugging and positioning of front-end developers is greatly reduced.
In another embodiment, the device may be configured separately from the central processor 9100, for example, the device may be configured as a chip connected to the central processor 9100, and the red packet distribution function is implemented under the control of the central processor.
As shown in fig. 5, the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is noted that the electronic device 9600 need not include all of the components shown in fig. 5; in addition, the electronic device 9600 may further include components not shown in fig. 5, and reference may be made to the related art.
As shown in fig. 5, the central processor 9100, sometimes referred to as a controller or operational control, may include a microprocessor or other processor device and/or logic device, which central processor 9100 receives inputs and controls the operation of the various components of the electronic device 9600.
The memory 9140 may be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information about failure may be stored, and a program for executing the information may be stored. And the central processor 9100 can execute the program stored in the memory 9140 to realize information storage or processing, and the like.
The input unit 9120 provides input to the central processor 9100. The input unit 9120 is, for example, a key or a touch input device. The power supply 9170 is used to provide power to the electronic device 9600. The display 9160 is used for displaying display objects such as images and characters. The display may be, for example, but not limited to, an LCD display.
The memory 9140 may be a solid state memory such as Read Only Memory (ROM), random Access Memory (RAM), SIM card, etc. But also a memory which holds information even when powered down, can be selectively erased and provided with further data, an example of which is sometimes referred to as EPROM or the like. The memory 9140 may also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application/function storage portion 9142, the application/function storage portion 9142 storing application programs and function programs or a flow for executing operations of the electronic device 9600 by the central processor 9100.
The memory 9140 may also include a data store 9143, the data store 9143 for storing data, such as contacts, digital data, pictures, sounds, and/or any other data used by an electronic device. The driver storage portion 9144 of the memory 9140 may include various drivers of the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, address book applications, etc.).
The communication module 9110 is a transmitter/receiver 9110 that transmits and receives signals via an antenna 9111. A communication module (transmitter/receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, as in the case of conventional mobile communication terminals.
Based on different communication technologies, a plurality of communication modules 9110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, etc., may be provided in the same electronic device. The communication module (transmitter/receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and to receive audio input from the microphone 9132 to implement usual telecommunications functions. The audio processor 9130 can include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor 9130 is also coupled to the central processor 9100 so that sound can be recorded locally through the microphone 9132 and sound stored locally can be played through the speaker 9131.
An embodiment of the present invention also provides a computer-readable storage medium capable of implementing all steps in the information acquisition method in the above embodiment, the computer-readable storage medium storing thereon a computer program that, when executed by a processor, implements all steps in the information acquisition method in which an execution subject in the above embodiment is a device or a client, for example, the processor implements the following steps when executing the computer program:
S101: and determining an authentication mode among the data outside the project.
S102: and authenticating according to the authentication mode, and generating license information if the authentication passes.
S103: and in the process of front-end development by the front-end development terminal, using the permission information to permit all access requests of the front-end development terminal.
As can be seen from the foregoing description, the computer readable storage medium provided by the embodiments of the present invention allows all access requests of the front-end development terminal during the whole front-end development process by permanently allowing the front-end development at one time, so as to overcome the serious problem of black screen of the page in the production environment, and greatly reduce the efficiency of joint debugging and positioning of front-end developers.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principles and embodiments of the present invention have been described in detail with reference to specific examples, which are provided to facilitate understanding of the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.
Claims (8)
1. An information acquisition method for front-end development, the information acquisition method comprising:
determining an authentication mode among data outside the project;
authenticating according to the authentication mode, and generating license information if the authentication passes;
In the front-end development process of the front-end development terminal, using the permission information to permit all access requests of the front-end development terminal;
and authenticating according to the authentication mode, and generating license information if the authentication is passed, wherein the method comprises the following steps:
based on cross-platform development of a front-end nw.js technology, invoking authentication information from a domWebWorker layer;
a contract is achieved with the server according to the authentication information in a keep-live mode in a development environment;
generating license information in response to the contract;
Or, the authentication is performed according to the authentication mode, if the authentication passes, license information is generated, including:
Developing a static interaction page;
Calling authentication information through an ajax data interaction mode and a timer keep-alive calling interface;
and generating the permission information according to the authentication information.
2. The method of claim 1, wherein the cross-platform development based on the front-end nw.js technology invokes authentication information from domWebWorker layers, comprising:
downloading the SDK edition tool from npm images;
Editing a source file to generate a package. Json file and an index. Html file;
compiling the package. Json and index. Html file into nwjs-SDK file;
And selecting nwjs-builder-phonenix tool to package the nwjs-SDK file and generating the authentication information.
3. The method for obtaining information according to claim 1, wherein the calling authentication information through the ajax data interaction mode and the timer keep-alive calling interface includes:
Obtaining an html file comprising button elements and a return display frame element;
Determining an authentication information interface according to the html file;
Opening an interactive page and clicking button elements to form an access for acquiring authentication information;
and invoking authentication information from the authentication information entry.
4. An information acquisition device for front-end development, the information acquisition device comprising:
the determining module is used for determining an authentication mode among the data outside the project;
the license information generation module is used for carrying out authentication according to the authentication mode, and generating license information if the authentication passes;
The permission access module is used for permitting all access requests of the front-end development terminal by utilizing the permission information in the process of front-end development of the front-end development terminal;
the license information generation module includes:
An authentication information calling unit which calls authentication information from domWebWorker layers based on cross-platform development of a front-end nw.js technology;
The agreement unit is used for agreeing with the server side in a manner of performing keep-live in a development environment according to the authentication information;
A license information generation unit that generates license information in response to the contract;
Or, the license information generation module includes:
The interactive page development unit develops a static interactive page;
the authentication information calling unit calls authentication information through an ajax data interaction mode and a timer keep-alive calling interface;
and a license information generating unit for generating the license information according to the authentication information.
5. The information acquisition apparatus according to claim 4, wherein the authentication information calling unit includes:
A download unit for downloading the SDK version tool from npm images;
The editing unit is used for editing the source file and generating a package. Json file and an index. Html file;
The compiling unit compiles the package, json and index, html files into nwjs-SDK files;
And the authentication information generation unit selects nwjs-builder-phonenix tools to package the nwjs-SDK file and generates the authentication information.
6. The information acquisition apparatus according to claim 4, wherein the authentication information calling unit includes:
An acquisition unit that acquires an html file including a button element and a return display frame element;
An interface determining unit for determining an authentication information interface according to the html file;
an authentication information entry forming unit for opening the interactive page and clicking the button element to form an authentication information entry;
And the authentication information calling unit calls the authentication information from the authentication information inlet.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the information acquisition method of any one of claims 1 to 3 when executing the program.
8. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the information acquisition method of any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110591496.4A CN113204344B (en) | 2021-05-28 | 2021-05-28 | Information acquisition method and device for front-end development |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110591496.4A CN113204344B (en) | 2021-05-28 | 2021-05-28 | Information acquisition method and device for front-end development |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113204344A CN113204344A (en) | 2021-08-03 |
CN113204344B true CN113204344B (en) | 2024-04-19 |
Family
ID=77023494
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110591496.4A Active CN113204344B (en) | 2021-05-28 | 2021-05-28 | Information acquisition method and device for front-end development |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113204344B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113901143B (en) * | 2021-10-13 | 2022-06-28 | 北京德塔精要信息技术有限公司 | Front-end cross-frame communication method and front-end frame structure |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110750747A (en) * | 2019-10-22 | 2020-02-04 | 杭州安恒信息技术股份有限公司 | Page jump method, device, equipment and readable storage medium |
CN112328985A (en) * | 2020-11-25 | 2021-02-05 | 北京百度网讯科技有限公司 | Authority management method, device, equipment and storage medium |
CN112818371A (en) * | 2021-02-23 | 2021-05-18 | 建信金融科技有限责任公司 | Resource access control method, system, device, equipment and medium |
-
2021
- 2021-05-28 CN CN202110591496.4A patent/CN113204344B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110750747A (en) * | 2019-10-22 | 2020-02-04 | 杭州安恒信息技术股份有限公司 | Page jump method, device, equipment and readable storage medium |
CN112328985A (en) * | 2020-11-25 | 2021-02-05 | 北京百度网讯科技有限公司 | Authority management method, device, equipment and storage medium |
CN112818371A (en) * | 2021-02-23 | 2021-05-18 | 建信金融科技有限责任公司 | Resource access control method, system, device, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN113204344A (en) | 2021-08-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3533177B1 (en) | Multi-blockchain network data processing method, apparatus, and server | |
CN111031058A (en) | Websocket-based distributed server cluster interaction method and device | |
CN103873692B (en) | Method, device and system for resource sharing | |
WO2020238277A1 (en) | Access method based on h5 access mode, access assembly thereof and mobile terminal | |
CN109032606A (en) | The process of compilation method, apparatus and terminal of native applications program | |
US20190012138A1 (en) | Method and apparatus for providing speech service | |
CN104503780A (en) | Method and device for providing application channel packet | |
WO2019184658A1 (en) | Profile switching method and apparatus, and mobile terminal | |
CN110990228A (en) | Data interface monitoring method and device | |
CN107133064A (en) | The hot update method of the page and device of native applications | |
WO2019029451A1 (en) | Method for publishing mobile applications and electronic apparatus | |
CN109358833B (en) | Audio playing method and system, computing device and storage medium | |
CN113204344B (en) | Information acquisition method and device for front-end development | |
CN110427260B (en) | Host job scheduling method, device and system | |
CN109840109B (en) | Method and apparatus for generating software development toolkit | |
CN111367561B (en) | Remote development method and device for software program | |
CN113485952A (en) | Data batch transmission method and device | |
CN113050985A (en) | Front-end engineering dependence automatic registration method and device | |
CN112559158A (en) | Micro-service timing task scheduling method and device | |
CN113254014A (en) | Sketch plug-in-based interface development method, device and system | |
CN115834649A (en) | Remote procedure calling method, device and system | |
CN114637531A (en) | Method and device for dynamically generating application program interface | |
CN110968383B (en) | Message frame display method and device, terminal and storage medium | |
CN108038668B (en) | Method and equipment for cooperative office, terminal and readable storage medium | |
CN111953847A (en) | Client message risk reminding method, device and system |
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 |