CN111538482A - Webpage making method and device, computer equipment and storage medium - Google Patents

Webpage making method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111538482A
CN111538482A CN202010192484.XA CN202010192484A CN111538482A CN 111538482 A CN111538482 A CN 111538482A CN 202010192484 A CN202010192484 A CN 202010192484A CN 111538482 A CN111538482 A CN 111538482A
Authority
CN
China
Prior art keywords
webpage
address
vector
user
data
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.)
Pending
Application number
CN202010192484.XA
Other languages
Chinese (zh)
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.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China 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 Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN202010192484.XA priority Critical patent/CN111538482A/en
Publication of CN111538482A publication Critical patent/CN111538482A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a webpage making method, a webpage making device, computer equipment and a storage medium, wherein the method comprises the following steps: acquiring a webpage application, wherein a JS file is preset in the webpage application, and a plurality of execution codes for capturing different data are preset in the JS file; acquiring a method address input by a user, and calling a specified execution code corresponding to the method address in a method library; and packaging the specified execution code in a webpage, and uploading the webpage to a display page at the front end, wherein the webpage positioned on the display page is used for being downloaded and forwarded by a user. The JS file is preset in the webpage application, and a third party only needs to call the designated execution code of the JS file when making a webpage needed by the third party, so that the making efficiency of the webpage capable of capturing the designated information of a user is greatly improved, and the condition that the source code of the webpage is damaged when injecting a new code into the source code of the webpage is avoided.

Description

Webpage making method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of web page production, and in particular, to a web page production method, apparatus, computer device, and storage medium.
Background
With the integration development of informatization and industrialization, information technology permeates into each link of industrial chains such as enterprises, and data generated by industrial application is explosively increased. The behavior habits and the preferences of the users are mined and analyzed from the back of numerous and complicated data, products and services which are more in line with the tastes of the users are found out, and the products and the services are pertinently adjusted and optimized according to the requirements of the users, namely the value of the big data. Today, the amount of relevant data produced by businesses is growing at a rate of 40% to 60% per year. How to effectively solve the whole link chain of data acquisition and data analysis becomes the primary problem of each enterprise.
In the prior art, a plurality of modes for collecting user information are provided, for example, a common mode for collecting user information by using an electronic greeting card is adopted, but developers need to collect interface information after taking a third electronic greeting card and perform secondary arrangement development, new codes are injected, and the like, so that the early-stage production efficiency is low, and the risk of damaging source codes of the electronic greeting card exists when the codes are injected.
Disclosure of Invention
The application mainly aims to provide a webpage making method, a webpage making device, computer equipment and a storage medium, and aims to solve the technical problem that in the prior art, secondary development is carried out by collecting interface information by inputting manpower again when third-party webpage data are used for collecting.
In order to achieve the above object, the present application provides a method for making a web page, including:
acquiring a webpage application, wherein a JS file is preset in the webpage application, and the JS file is a method library and is preset with a plurality of execution codes for capturing different data;
acquiring a method address input by a user, and calling a specified execution code corresponding to the method address in the method library;
and packaging the specified execution code in the webpage, and uploading the webpage to a display page at the front end, wherein the webpage on the display page is used for being downloaded and forwarded by a user.
Further, the step of acquiring a method address input by a user and calling a specified execution code corresponding to the method address in the method library includes:
acquiring a first face image of the user and a first IP address of a terminal for making the webpage;
searching a second IP address which is the same as the first IP address in a preset IP address library;
if the second IP address is not found, prohibiting the user from continuing to make the webpage;
if the second IP address is found, searching a second face image matched with the first face image in a face database associated with the second IP address;
if the second facial image is not found, prohibiting the user from continuing to make the webpage;
if the second face image is found, displaying a description corresponding to each execution code in the JS file, wherein each description is provided with a corresponding button;
when the user clicks a button corresponding to a required description, the method address corresponding to the required description is obtained;
and calling a specified execution code corresponding to the method address in the method library.
Further, after the step of encapsulating the specified execution code in the web page and uploading the web page to a front-end display page, the method includes:
after the webpage is shared, acquiring feedback information of the opened webpage, wherein the feedback information carries identification information of an application program for opening the webpage;
determining to open a first application program of the webpage according to the feedback information;
establishing a network channel with the first application program;
and acquiring appointed information acquired by appointed execution codes carried in the webpage by using the network channel, and storing the appointed information into a preset database.
Further, after the step of acquiring, by using the network channel, the specific information acquired by the specific execution code carried in the web page, the method includes:
receiving a command of a third party for downloading data from the database;
judging whether the third party has the authority of downloading the data;
if yes, acquiring download data corresponding to the command;
desensitizing the downloaded data to obtain downloadable data;
and sending the downloadable data to the third party.
Further, the step of desensitizing the downloaded data to obtain downloadable data includes:
vectorizing the downloaded data to obtain a first vector data set;
searching digital vectors corresponding to 0 to 9 in the first image vector data set;
acquiring digital vector combinations which are formed by combining continuous digital vectors in the first vector data set and have the number of the digital vectors being a preset value, wherein each digital vector combination is marked as a second vector data set;
replacing the digital vector in each second vector data set by using a preset desensitization vector to obtain a desensitization vector data set;
replacing each of the second vector datasets in the first vector dataset with the desensitization vector dataset to obtain a third vector dataset;
and performing forward quantization on the third data vector set to obtain the desensitized downloadable data.
The present application further provides a web page making apparatus, including:
the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a webpage application, a JS file is preset in the webpage application, the JS file is a method library, and a plurality of execution codes for capturing different data are preset;
the second acquisition unit is used for acquiring a method address input by a user and calling a specified execution code corresponding to the method address in the method library;
and the packaging and uploading unit is used for packaging the specified execution code in the webpage and uploading the webpage to a display page at the front end, wherein the webpage on the display page is used for being downloaded and forwarded by a user.
Further, the second obtaining unit includes:
the acquisition module is used for acquiring a first face image of the user and a first IP address of a terminal for making the webpage;
the first searching module is used for searching a second IP address which is the same as the first IP address in a preset IP address library;
the first forbidding module is used for forbidding the user to continue making the webpage if the second IP address is not found;
the second searching module is used for searching a second face image matched with the first face image in a face database associated with the second IP address if the second IP address is searched;
a second prohibiting module, configured to prohibit the user from continuing to make the web page if the second facial image is not found;
the display module is used for displaying the description corresponding to each execution code in the JS file if the second face image is found, and each description is provided with a corresponding button;
the receiving module is used for obtaining the method address corresponding to the needed description when the user clicks the button corresponding to the needed description;
and the calling module is used for calling the specified execution code corresponding to the method address in the method library.
Further, the web page creation apparatus further includes:
the third obtaining unit is configured to obtain feedback information after the webpage is opened after the webpage is shared, where the feedback information carries identification information of an application program that opens the webpage;
the determining unit is used for determining to open a first application program of the webpage according to the feedback information;
the establishing unit is used for establishing a network channel with the first application program;
and the acquisition and storage unit acquires the specified information acquired by the specified execution code carried in the webpage by using the network channel and stores the specified information into a preset database.
The present application further provides a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of any of the above methods when executing the computer program.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of any of the above.
According to the webpage making method and device, the computer equipment and the storage medium, the JS file is preset in the webpage application, a third party only needs to call the designated execution code of the JS file when making a webpage needed by the third party, interface information does not need to be collected again, secondary development is carried out to inject new codes into the webpage and the like, the making efficiency of the webpage capable of capturing the designated information of a user is greatly improved, and meanwhile the situation that the source codes of the webpage are damaged when the new codes are injected into the source codes of the webpage is avoided.
Drawings
FIG. 1 is a schematic flow chart illustrating a method for creating a web page according to an embodiment of the present invention;
FIG. 2 is a block diagram illustrating a structure of a web page creation apparatus according to an embodiment of the present invention;
fig. 3 is a block diagram schematically illustrating a structure of a computer apparatus according to an embodiment of the present invention.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1, an embodiment of the present application provides a method for making a web page, including:
s1, acquiring a webpage application, wherein a JS file is preset in the webpage application, and the JS file is a method library and is preset with a plurality of execution codes for capturing different data;
s2, acquiring a method address input by a user, and calling a specified execution code corresponding to the method address in the method library;
s3, packaging the specified execution code in the webpage, and uploading the webpage to a display page at the front end, wherein the webpage on the display page is used for being downloaded and forwarded by a user.
As shown in the step S1, the main body for making the web page is the background of the server, the web page application is an application program for making the web page, for example, a greeting card template is provided, a user can add information such as characters, pictures, two-dimensional codes and the like to the greeting card template, and the web page can be a web page shared by a social application such as an electronic greeting card. The webpage application of the application is provided with the JS file, the JS file is a method library, namely, various execution codes used for capturing different data are stored, different designated codes can capture different data, for example, the execution codes comprise execution codes used for capturing a nickname of a user, execution codes used for capturing friend information of the user and the like, and each execution code has a connection address of the execution code in the JS file.
As described in the above step S2, the method address refers to an address where the specified execution code associated with the method address can be found in the method library. The user refers to a third party worker who uses the web application. In one embodiment, the web application is an application program provided by a party with server use right, and any third party using the web application can use the application program, but the party with server use right needs to privately provide a use description of the web application, wherein the use description comprises addresses of execution codes in the method library, functions of the execution codes and the like. The third party can obtain the corresponding appointed execution code only by inputting the address of the appointed execution code required by the third party, and a user does not need to write the code, so that the efficiency of the third party for making the webpage is improved. In other embodiments, the user of the third party may manually enter the method address provided in the instructions for the application providing the web page privately by the party having the server usage rights.
As described in step S3, the designated execution codes are packaged into a web page and then uploaded to a front-end display page. The display page of the front end is a front end page associated with the server, specifically, the front end display page is an application interface of some APP (the background server of the APP can make a webpage, etc.), and any person downloads and installs the APP and can see the webpage displayed by the front end page in the APP. After the webpage is displayed on the display page of the front end, the user can forward the webpage, for example, the webpage is forwarded to a social platform such as a WeChat platform and a microblog platform. In a specific embodiment, a user clicks a button of a webpage sharing on a front-end display page, a corresponding sharable platform and the like are displayed, then the shared platform is selected for sharing, when the shared webpage is opened, the specified execution code is operated on a terminal for opening the webpage, and then information corresponding to the specified execution code on the terminal is acquired. In this embodiment, wxrecord.js (JS file) is introduced into the html header of the above-mentioned web page, and the wxrecord.js is a key for implementing automatic collection of click data of a web page user, so when the web page is clicked, the wxrecord.js is preferentially loaded, and then other parts of the web page are loaded.
In the application, a party with the right of use of the server can provide a written webpage application, a plurality of pre-written execution codes for capturing different data are packaged in the webpage application, and a third party can directly call the required execution codes according to the requirements when making the webpage without writing the execution codes by himself, so that the waste of manpower and material resources of the third party is greatly reduced, and the injection damage to the source codes of the webpage is avoided.
In an embodiment, the step S2 of obtaining the method address input by the user and calling the specified execution code corresponding to the method address in the method library includes:
s21, acquiring a first face image of the user and a first IP address of a terminal for making the webpage;
s22, searching a second IP address which is the same as the first IP address in a preset IP address library;
if the second IP address is not found, prohibiting the user from continuing to make the webpage;
s23, if the second IP address is found, searching a second face image matched with the first face image in a face database associated with the second IP address;
s24, if the second face image is not found, prohibiting the user from continuing to make the webpage;
s25, if the second face image is found, showing a description corresponding to each execution code in the JS file, wherein each description is provided with a corresponding button;
s26, receiving a button corresponding to a needed explanation clicked by a user to obtain the method address corresponding to the needed explanation;
and S27, calling the specified execution code corresponding to the method address in the method library.
In this embodiment, the user is a user of a third party having a right to make a web page. The method has the advantages that the webpage has the function of acquiring some information of a person clicking the webpage, so that a third party can make the webpage only after qualification verification to improve the safe use of the webpage. After the IP address of the appointed terminal provided by the third party and the face image of the appointed user are obtained, the IP address of the appointed terminal is stored in a total IP address base (a plurality of third parties generally exist, and all the IP addresses provided by the plurality of third parties are stored in the same IP address base), the number of face databases is multiple, each third party is provided with one corresponding face database, and the plurality of IP addresses of the third parties are all related to the face database. When the method address input by the user is acquired, searching a second IP address in an IP address library, if the second IP address is not searched, indicating that the current terminal does not have the authority of making the webpage, and prohibiting the user from making the webpage continuously; if the current terminal has the authority of making the webpage, the current user is judged to have the authority of making the webpage, at the moment, the second face image only needs to be matched in the face database corresponding to the second IP address, the face image provided by other third parties does not need to be matched, the matching efficiency is greatly improved, if the matching is successful, the current user has the authority of making the webpage, otherwise, the user is forbidden to continue making the webpage. When it is finally determined that the current user can continue to make the webpage, the descriptions of the JS files are displayed, each description forms an option, the user can obtain the corresponding method address by directly clicking the button corresponding to the required description, the method address is not required to be manually input after the user views the description, and the working efficiency of the user is improved.
In an embodiment, after the step S3 of packaging the specified execution code in the web page and uploading the web page to a front-end display page, the method includes:
s4, after the webpage is shared, obtaining feedback information after the webpage is opened, wherein the feedback information carries identification information of an application program for opening the webpage;
s5, determining to open the first application program of the webpage according to the feedback information;
s6, establishing a network channel with the first application program;
s7, acquiring the appointed information acquired by the appointed execution code carried in the webpage by using the network channel, and storing the appointed information into a preset database.
In this embodiment, different social application programs are different from the network channel of the server, and if normal data transmission is required, different interfaces need to be called for connection, for example, the network channel of the server and the wechat platform and the network channel of the microblog platform are different, so that the first application program needs to be determined first, and then the data captured by using the webpage can be obtained. The process of establishing the network channel with the first application program may be determining an account of the first application program through the feedback information, and then establishing the network channel with the first application program through the account. In one embodiment, when the webpage is shared, account information for sharing the webpage may be acquired, and the account information is packaged on the webpage. The account information is account information of a social application program sharing the webpage, the account information is packaged on the webpage, and forwarding amount and data collection amount generated corresponding to the account can be counted after the webpage is forwarded by the account. Specifically, a certain salesman of a third party forwards a specified webpage by using an account of the third party, when the webpage is forwarded by other people, the times of forwarding the webpage sent by the salesman and the like can be counted in a data feedback account information carrying mode, and the third party can evaluate the service level, the service efficiency and the like of the salesman according to the times.
In an embodiment, after the step S7 of acquiring, by using the network channel, the specifying information that specifies the execution code carried in the web page to be acquired, the method includes:
s8, receiving a command of downloading data from a third party to the database;
s9, judging whether the third party has the authority of downloading the data;
s10, if yes, acquiring the download data corresponding to the command;
s11, desensitizing the downloaded data to obtain downloadable data;
and S12, sending the downloadable data to the third party.
In this embodiment, in order to improve network security, and to prevent lawful use of the web page in the present application from illegal activities due to lawless persons obtaining the information of the user by the method, when the third party downloads data from the data, authority authentication is required, and the authentication method may be performed by means of the IP address and the face image as described above. If the verification is passed, for further network security, desensitization processing is carried out on the downloaded data, in the case of WeChat, only information such as a nickname and a use place of a WeChat account is allowed to be downloaded, and desensitization processing is carried out on the related telephone number, red packet information, identification number and the like. The specific desensitization method may be any one of the prior art as long as a predetermined desensitization effect is achieved.
In an embodiment, the step S11 of desensitizing the downloaded data to obtain downloadable data includes:
s111, vectorizing the downloaded data to obtain a first vector data set;
s112, searching digital vectors corresponding to the numbers 0 to 9 in the first image vector data set;
s113, acquiring digital vector combinations which are formed by combining continuous digital vectors in the first vector data set and have preset number of the digital vectors, wherein each digital vector combination is marked as a second vector data set;
s114, replacing the digital vector in each second vector data set by a preset desensitization vector to obtain a desensitization vector data set;
s115, replacing each second vector data set in the first vector data set with the desensitization vector data set to obtain a third vector data set;
s116, the third data vector set is subjected to directional quantization to obtain desensitized downloadable data.
In this embodiment, a vector dictionary is preset, and the vectorization of the downloaded data is completed by using the vector dictionary; since the digital vectors corresponding to 0 to 9 are fixed, the digital vectors corresponding to 0 to 9 in the first vector data set can be quickly read, the position of each digital vector is generally marked, and when the number of the digital vectors continuously appears to be a preset value, the digital vectors are readMarking to obtain a plurality of second vector data sets, then carrying out replacement processing on digital vectors in the second vector data sets by using preset desensitization vectors and the like to obtain desensitization vector data sets, then replacing the desensitization vector data sets with the second vector data sets in the first vector data sets to obtain third vector data sets, and finally converting the third vector data sets into downloadable data by using the vector dictionary. Specifically, the first vector data set is { A }1、A2、A3、A4......AnN is a positive integer if A in the first vector data set1、A2、A3、A4......A11Are all digital vectors, and 11 equals the default value, then { A }1、A2、A3、A4......A11The vector is taken as a digital vector combination, and is copied and recorded as a second vector data set; then desensitizing all the digital vectors in the second vector data set, for example, using letter vectors, star vectors and the like to replace each digital vector in the second vector data set to obtain a desensitized vector data set consisting of desensitized vectors, finally, replacing the desensitized vector data set with the corresponding second vector data set in the first vector data set to obtain a third vector data set containing desensitized vectors, and finally, reversely identifying the third vector data set through the vector dictionary, namely converting the vectors into readable data to obtain the downloadable data after desensitization. In this embodiment, the preset values are digits of a mobile phone number and digits of a landline phone number. If the number of digits of the mobile phone number is 11 digits, the preset value is 11, and the like, the preset values can be two, one is the number of digits of the mobile phone number, and the other is the number of digits of the fixed telephone number. In the embodiment, after the downloaded data is vectorized, the speed and the accuracy for searching the digital vector can be improved, and then the data needing desensitization can be quickly searched, so that the desensitization of the downloaded data can be efficiently and accurately completed. The process of the forward quantization is the inverse process of the vectorization and is not described in detail. In this embodiment, the step of vectorizing the downloaded data to obtain the first vector data set is generally performed in real time, that is, by using the networkThe page is collected to obtain one piece of data, the data is vectorized immediately, although the calculation process and the calculation amount of vectorization are not changed, massive data does not need to be vectorized in a set when the data is downloaded, and the calculation resources of the server are greatly occupied in the time period to influence the calculation of other services and the like.
According to the webpage making method, the JS file is preset in the webpage application, a third party only needs to call the designated execution code of the JS file when making a webpage needed by the third party, interface information does not need to be collected again, secondary development is conducted to inject new codes into the webpage, and the like, so that the making efficiency of the webpage capable of capturing the designated information of a user is greatly improved, and meanwhile the situation that the source codes of the webpage are damaged when the new codes are injected into the source codes of the webpage is avoided.
Referring to fig. 2, the present application also provides a web page creation apparatus, including:
the first acquisition unit 10 is used for acquiring a webpage application, wherein a JS file is preset in the webpage application, the JS file is a method library, and a plurality of execution codes for capturing different data are preset in the JS file;
a second obtaining unit 20, configured to obtain a method address input by a user, and invoke a specified execution code corresponding to the method address in the method library;
and the package uploading unit 30 is configured to package the specified execution code in the web page, and upload the web page to a front-end display page, where the web page on the display page is used for being downloaded and forwarded by a user.
In an embodiment, the second obtaining unit 20 includes:
the acquisition module is used for acquiring a first face image of the user and a first IP address of a terminal for making the webpage;
the first searching module is used for searching a second IP address which is the same as the first IP address in a preset IP address library;
the first forbidding module is used for forbidding the user to continue making the webpage if the second IP address is not found;
the second searching module is used for searching a second face image matched with the first face image in a face database associated with the second IP address if the second IP address is searched;
a second prohibiting module, configured to prohibit the user from continuing to make the web page if the second facial image is not found;
the display module is used for displaying the description corresponding to each execution code in the JS file if the second face image is found, and each description is provided with a corresponding button;
the receiving module is used for obtaining the method address corresponding to the needed description when the user clicks the button corresponding to the needed description;
and the calling module is used for calling the specified execution code corresponding to the method address in the method library.
In one embodiment, the web page creation apparatus further includes:
the third obtaining unit is configured to obtain feedback information after the webpage is opened after the webpage is shared, where the feedback information carries identification information of an application program that opens the webpage;
the determining unit is used for determining to open a first application program of the webpage according to the feedback information;
the establishing unit is used for establishing a network channel with the first application program;
and the acquisition and storage unit acquires the specified information acquired by the specified execution code carried in the webpage by using the network channel and stores the specified information into a preset database.
In one embodiment, the web page creation apparatus further includes:
the receiving unit is used for receiving a command of downloading data from a third party to the database;
the judging unit is used for judging whether the third party has the authority of downloading the data;
the data downloading acquiring unit is used for acquiring downloading data corresponding to the command if the third party is judged to have the permission of downloading the data;
a desensitization unit, configured to desensitize the downloaded data to obtain downloadable data;
and the sending unit is used for sending the downloadable data to the third party.
In one embodiment, the desensitizing unit includes:
the vectorization module is used for vectorizing the downloaded data to obtain a first vector data set;
a vector searching module, configured to search for digital vectors corresponding to 0 to 9 in the first image vector data set;
the digital vector acquisition module is used for acquiring digital vector combinations which are formed by combining continuous digital vectors in the first vector data set and have preset digital vector quantity, and each digital vector combination is marked as a second vector data set;
a first replacement module, configured to replace the digital vector in each second vector data set with a preset desensitization vector, so as to obtain a desensitization vector data set;
a second replacement module, configured to replace each of the second vector data sets in the first vector data set with the desensitization vector data set to obtain a third vector data set;
and the forward quantization module is used for forward quantizing the third data vector set to obtain the desensitized downloadable data.
Referring to fig. 3, an embodiment of the present application further provides a computer device, and an internal structure of the computer device may be as shown in fig. 3. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as various programs. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a web page production method.
The processor executes the webpage making method, and the method comprises the following steps: acquiring a webpage application, wherein a JS file is preset in the webpage application, and the JS file is a method library and is preset with a plurality of execution codes for capturing different data; acquiring a method address input by a user, and calling a specified execution code corresponding to the method address in the method library; and packaging the specified execution code in the webpage, and uploading the webpage to a display page at the front end, wherein the webpage on the display page is used for being downloaded and forwarded by a user.
In one embodiment, the step of acquiring a method address input by a user and calling a specified execution code corresponding to the method address in the method library includes: acquiring a first face image of the user and a first IP address of a terminal for making the webpage; searching a second IP address which is the same as the first IP address in a preset IP address library; if the second IP address is not found, prohibiting the user from continuing to make the webpage; if the second IP address is found, searching a second face image matched with the first face image in a face database associated with the second IP address; if the second facial image is not found, prohibiting the user from continuing to make the webpage; if the second face image is found, displaying a description corresponding to each execution code in the JS file, wherein each description is provided with a corresponding button; when the user clicks a button corresponding to a required description, the method address corresponding to the required description is obtained; and calling a specified execution code corresponding to the method address in the method library.
In one embodiment, after the step of encapsulating the specified execution code in the web page and uploading the web page to a front-end display page, the method includes: after the webpage is shared, acquiring feedback information of the opened webpage, wherein the feedback information carries identification information of an application program for opening the webpage; determining to open a first application program of the webpage according to the feedback information; establishing a network channel with the first application program; and acquiring appointed information acquired by appointed execution codes carried in the webpage by using the network channel, and storing the appointed information into a preset database.
In an embodiment, after the step of acquiring, by using the network channel, the specific information acquired by the specific execution code carried in the web page, the method includes: receiving a command of a third party for downloading data from the database; judging whether the third party has the authority of downloading the data; if yes, acquiring download data corresponding to the command; desensitizing the downloaded data to obtain downloadable data; and sending the downloadable data to the third party.
In one embodiment, the step of desensitizing the download data to obtain downloadable data includes: vectorizing the downloaded data to obtain a first vector data set; searching digital vectors corresponding to 0 to 9 in the first image vector data set; acquiring digital vector combinations which are formed by combining continuous digital vectors in the first vector data set and have the number of the digital vectors being a preset value, wherein each digital vector combination is marked as a second vector data set; replacing the digital vector in each second vector data set by using a preset desensitization vector to obtain a desensitization vector data set; replacing each of the second vector datasets in the first vector dataset with the desensitization vector dataset to obtain a third vector dataset; and performing forward quantization on the third data vector set to obtain the desensitized downloadable data.
Those skilled in the art will appreciate that the architecture shown in fig. 3 is only a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects may be applied.
According to the computer equipment, the JS file is preset in the webpage application, a third party only needs to call the designated execution code of the JS file when making a webpage needed by the third party, interface information does not need to be collected again, secondary development is conducted to inject new codes into the webpage, and the like, so that the making efficiency of the webpage capable of capturing the designated information of a user is greatly improved, and meanwhile, the situation that the source codes of the webpage are damaged when the new codes are injected into the source codes of the webpage is avoided.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements a method for making a web page, including: acquiring a webpage application, wherein a JS file is preset in the webpage application, and the JS file is a method library and is preset with a plurality of execution codes for capturing different data; acquiring a method address input by a user, and calling a specified execution code corresponding to the method address in the method library; and packaging the specified execution code in the webpage, and uploading the webpage to a display page at the front end, wherein the webpage on the display page is used for being downloaded and forwarded by a user.
In one embodiment, the step of acquiring a method address input by a user and calling a specified execution code corresponding to the method address in the method library includes: acquiring a first face image of the user and a first IP address of a terminal for making the webpage; searching a second IP address which is the same as the first IP address in a preset IP address library; if the second IP address is not found, prohibiting the user from continuing to make the webpage; if the second IP address is found, searching a second face image matched with the first face image in a face database associated with the second IP address; if the second facial image is not found, prohibiting the user from continuing to make the webpage; if the second face image is found, displaying a description corresponding to each execution code in the JS file, wherein each description is provided with a corresponding button; when the user clicks a button corresponding to a required description, the method address corresponding to the required description is obtained; and calling a specified execution code corresponding to the method address in the method library.
In one embodiment, after the step of encapsulating the specified execution code in the web page and uploading the web page to a front-end display page, the method includes: after the webpage is shared, acquiring feedback information of the opened webpage, wherein the feedback information carries identification information of an application program for opening the webpage; determining to open a first application program of the webpage according to the feedback information; establishing a network channel with the first application program; and acquiring appointed information acquired by appointed execution codes carried in the webpage by using the network channel, and storing the appointed information into a preset database.
In an embodiment, after the step of acquiring, by using the network channel, the specific information acquired by the specific execution code carried in the web page, the method includes: receiving a command of a third party for downloading data from the database; judging whether the third party has the authority of downloading the data; if yes, acquiring download data corresponding to the command; desensitizing the downloaded data to obtain downloadable data; and sending the downloadable data to the third party.
In one embodiment, the step of desensitizing the download data to obtain downloadable data includes: vectorizing the downloaded data to obtain a first vector data set; searching digital vectors corresponding to 0 to 9 in the first image vector data set; acquiring digital vector combinations which are formed by combining continuous digital vectors in the first vector data set and have the number of the digital vectors being a preset value, wherein each digital vector combination is marked as a second vector data set; replacing the digital vector in each second vector data set by using a preset desensitization vector to obtain a desensitization vector data set; replacing each of the second vector datasets in the first vector dataset with the desensitization vector dataset to obtain a third vector dataset; and performing forward quantization on the third data vector set to obtain the desensitized downloadable data.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A method for making a web page, comprising:
acquiring a webpage application, wherein a JS file is preset in the webpage application, and the JS file is a method library and is preset with a plurality of execution codes for capturing different data;
acquiring a method address input by a user, and calling a specified execution code corresponding to the method address in the method library;
and packaging the specified execution code in the webpage, and uploading the webpage to a display page at the front end, wherein the webpage on the display page is used for being downloaded and forwarded by a user.
2. The method for making a web page according to claim 1, wherein the step of obtaining the method address input by the user and calling the specified execution code corresponding to the method address in the method library comprises:
acquiring a first face image of the user and a first IP address of a terminal for making the webpage;
searching a second IP address which is the same as the first IP address in a preset IP address library;
if the second IP address is not found, prohibiting the user from continuing to make the webpage;
if the second IP address is found, searching a second face image matched with the first face image in a face database associated with the second IP address;
if the second facial image is not found, prohibiting the user from continuing to make the webpage;
if the second face image is found, displaying a description corresponding to each execution code in the JS file, wherein each description is provided with a corresponding button;
when the user clicks a button corresponding to a required description, the method address corresponding to the required description is obtained;
and calling a specified execution code corresponding to the method address in the method library.
3. The method for making a web page according to claim 1, wherein the step of encapsulating the specified execution code in the web page and uploading the web page to a front-end display page is followed by:
after the webpage is shared, acquiring feedback information of the opened webpage, wherein the feedback information carries identification information of an application program for opening the webpage;
determining to open a first application program of the webpage according to the feedback information;
establishing a network channel with the first application program;
and acquiring appointed information acquired by appointed execution codes carried in the webpage by using the network channel, and storing the appointed information into a preset database.
4. The method for making a web page according to claim 3, wherein the step of obtaining the specified information obtained by the specified execution code carried in the web page by using the network channel comprises:
receiving a command of a third party for downloading data from the database;
judging whether the third party has the authority of downloading the data;
if yes, acquiring download data corresponding to the command;
desensitizing the downloaded data to obtain downloadable data;
and sending the downloadable data to the third party.
5. The method for making a web page according to claim 4, wherein said step of desensitizing said downloaded data to obtain downloadable data comprises:
vectorizing the downloaded data to obtain a first vector data set;
searching digital vectors corresponding to the numbers 0 to 9 in the first image vector data set;
acquiring digital vector combinations which are formed by combining continuous digital vectors in the first vector data set and have the number of the digital vectors being a preset value, wherein each digital vector combination is marked as a second vector data set;
replacing the digital vector in each second vector data set by using a preset desensitization vector to obtain a desensitization vector data set;
replacing each of the second vector datasets in the first vector dataset with the desensitization vector dataset to obtain a third vector dataset;
and performing forward quantization on the third data vector set to obtain the desensitized downloadable data.
6. A web page creation apparatus, comprising:
the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a webpage application, a JS file is preset in the webpage application, the JS file is a method library, and a plurality of execution codes for capturing different data are preset;
the second acquisition unit is used for acquiring a method address input by a user and calling a specified execution code corresponding to the method address in the method library;
and the packaging and uploading unit is used for packaging the specified execution code in the webpage and uploading the webpage to a display page at the front end, wherein the webpage on the display page is used for being downloaded and forwarded by a user.
7. The web page creation apparatus according to claim 6, wherein the second acquisition unit includes:
the acquisition module is used for acquiring a first face image of the user and a first IP address of a terminal for making the webpage;
the first searching module is used for searching a second IP address which is the same as the first IP address in a preset IP address library;
the first forbidding module is used for forbidding the user to continue making the webpage if the second IP address is not found;
the second searching module is used for searching a second face image matched with the first face image in a face database associated with the second IP address if the second IP address is searched;
a second prohibiting module, configured to prohibit the user from continuing to make the web page if the second facial image is not found;
the display module is used for displaying the description corresponding to each execution code in the JS file if the second face image is found, and each description is provided with a corresponding button;
the receiving module is used for obtaining the method address corresponding to the required description when a user clicks a button corresponding to the required description;
and the calling module is used for calling the specified execution code corresponding to the method address in the method library.
8. The apparatus for making a web page according to claim 6, further comprising:
the third obtaining unit is configured to obtain feedback information after the webpage is opened after the webpage is shared, where the feedback information carries identification information of an application program that opens the webpage;
the determining unit is used for determining to open a first application program of the webpage according to the feedback information;
the establishing unit is used for establishing a network channel with the first application program;
and the acquisition and storage unit acquires the specified information acquired by the specified execution code carried in the webpage by using the network channel and stores the specified information into a preset database.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN202010192484.XA 2020-03-18 2020-03-18 Webpage making method and device, computer equipment and storage medium Pending CN111538482A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010192484.XA CN111538482A (en) 2020-03-18 2020-03-18 Webpage making method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010192484.XA CN111538482A (en) 2020-03-18 2020-03-18 Webpage making method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111538482A true CN111538482A (en) 2020-08-14

Family

ID=71973026

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010192484.XA Pending CN111538482A (en) 2020-03-18 2020-03-18 Webpage making method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111538482A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106651416A (en) * 2015-10-30 2017-05-10 北京国双科技有限公司 Analyzing method and analyzing device of application popularization information
CN108415705A (en) * 2018-03-13 2018-08-17 腾讯科技(深圳)有限公司 Webpage generating method, device, storage medium and equipment
CN109857766A (en) * 2018-12-22 2019-06-07 深圳市珍爱捷云信息技术有限公司 User information verification method, device, computer equipment and computer storage medium
CN110071932A (en) * 2019-04-29 2019-07-30 云深互联(北京)科技有限公司 A kind of security access system and method
CN110457635A (en) * 2019-08-15 2019-11-15 北京中网易企秀科技有限公司 A kind of webpage generating method and system
CN110489698A (en) * 2019-08-16 2019-11-22 南京云帐房网络科技有限公司 A kind of system and method for automation collection web data
CN110780960A (en) * 2019-09-29 2020-02-11 中至数据集团股份有限公司 Webpage making method and system, readable storage medium and server

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106651416A (en) * 2015-10-30 2017-05-10 北京国双科技有限公司 Analyzing method and analyzing device of application popularization information
CN108415705A (en) * 2018-03-13 2018-08-17 腾讯科技(深圳)有限公司 Webpage generating method, device, storage medium and equipment
CN109857766A (en) * 2018-12-22 2019-06-07 深圳市珍爱捷云信息技术有限公司 User information verification method, device, computer equipment and computer storage medium
CN110071932A (en) * 2019-04-29 2019-07-30 云深互联(北京)科技有限公司 A kind of security access system and method
CN110457635A (en) * 2019-08-15 2019-11-15 北京中网易企秀科技有限公司 A kind of webpage generating method and system
CN110489698A (en) * 2019-08-16 2019-11-22 南京云帐房网络科技有限公司 A kind of system and method for automation collection web data
CN110780960A (en) * 2019-09-29 2020-02-11 中至数据集团股份有限公司 Webpage making method and system, readable storage medium and server

Similar Documents

Publication Publication Date Title
CN109344642B (en) Interface rule checking method, device, computer equipment and storage medium
CN109614816B (en) Data desensitizing method, device and storage medium
CN110365670B (en) Blacklist sharing method and device, computer equipment and storage medium
KR101373986B1 (en) Method and apparatus to vet an executable program using a model
CN112800290B (en) Tracing data acquisition method, device and equipment
CN105068921B (en) Android based on App comparative analyses applies the evaluation method of shop confidence level
US20230106584A1 (en) Securing User-Entered Text In-Transit
CN110336786B (en) Message sending method, device, computer equipment and storage medium
Tajuddin et al. Forensic investigation and analysis on digital evidence discovery through physical acquisition on smartphone
CN108446571A (en) A kind of big data desensitization method
Yuliani et al. Forensic analysis whatsapp mobile application on android-based smartphones using national institute of standard and technology (nist) framework
Alhassan et al. Comparative evaluation of mobile forensic tools
CN111538482A (en) Webpage making method and device, computer equipment and storage medium
CN108710798A (en) Collusion detection method between a kind of Android third-party library
CN117252429A (en) Risk user identification method and device, storage medium and electronic equipment
US20230023798A1 (en) Digital forensics tool and method
Aggarwal et al. A targeted data extraction system for mobile devices
GB2546567A (en) Method of associating a person with a digital object
CN116340989A (en) Data desensitization method and device, electronic equipment and storage medium
CN109660676B (en) Abnormal object identification method, device and equipment
CN113609147A (en) Data sharing method and device and electronic equipment
CN113722225A (en) Page testing method and device, computer equipment and storage medium
CN113435950A (en) Bill processing method and device
CN116450745B (en) Multi-device-based note file operation method, system and readable storage medium
Sulisdyantoro et al. Identification of Whatsapp Digital Evidence on Android Smartphones using The Android Backup APK (Application Package Kit) Downgrade Method

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