CN111767500A - Data storage sharing method and device, computer equipment and storage medium - Google Patents

Data storage sharing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111767500A
CN111767500A CN202010583589.8A CN202010583589A CN111767500A CN 111767500 A CN111767500 A CN 111767500A CN 202010583589 A CN202010583589 A CN 202010583589A CN 111767500 A CN111767500 A CN 111767500A
Authority
CN
China
Prior art keywords
website
form data
data storage
data
request
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
CN202010583589.8A
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 Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202010583589.8A priority Critical patent/CN111767500A/en
Publication of CN111767500A publication Critical patent/CN111767500A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the technical field of data processing, and provides a data storage sharing method, a data storage sharing device, computer equipment and a storage medium, wherein the data storage sharing method comprises the following steps: acquiring form data input in a page of a first website under a first domain name; when monitoring that the state of a first website changes, sending a form data storage request to a server interface, wherein the form data storage request carries form data; storing the form data in a database through the server interface; when detecting that a second website under a second domain name receives an access request, calling a local storage interface to request the server interface to acquire target form data corresponding to the access request and stored in the database; and loading the target form data into the page of the second website. The invention can realize that the data of the websites under different domain names share one set of local storage. The invention also relates to the technical field of block chains, and the form data can be stored in the block chains.

Description

Data storage sharing method and device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of data processing, in particular to a data storage sharing method and device, computer equipment and a storage medium.
Background
The local storage of the existing browser adopts a homologous strategy, namely, websites with different domain names correspond to different local storage data, so that the websites with different domain names cannot share one set of local data, and certain obstruction is caused to some special service requirements. Such as: the same set of form submission exists in both the website A and the website B, a user inputs some form data in the website A but does not submit the form data, and at this time, the user closes the website A or switches tab pages to the website B, and the user still needs to refill the form data again.
Therefore, it is necessary to provide a local storage sharing method under different domain names.
Disclosure of Invention
In view of the above, there is a need to provide a data storage sharing method, apparatus, computer device and storage medium, which can implement sharing a set of local storage for data of websites with different domain names, not only save storage space, but also reduce repeated operations of users, and improve user experience.
A first aspect of the present invention provides a data storage sharing method, where the data storage sharing method includes:
acquiring form data input in a page of a first website under a first domain name;
when the state of the first website is monitored to be changed, a form data storage request is sent to a server interface, wherein the form data storage request carries the form data;
storing the form data in a database through the server interface;
when detecting that a second website under a second domain name receives an access request, calling a local storage interface to request the server interface to acquire target form data corresponding to the access request and stored in the database;
and loading the target form data into the page of the second website.
According to an alternative embodiment of the present invention, the loading the target form data into the page of the second website includes:
reading a first form item in the target form data;
acquiring a second form item in the page of the second website;
matching the second form item with the first form item;
taking the first form field corresponding to the first form item successfully matched with the second form item as a second form field;
entering the second form field into the second form entry.
According to an optional embodiment of the present invention, the data storage sharing method further comprises:
acquiring a first image of a user accessing the first website;
acquiring a second image of a user accessing the second website;
constructing an image pair from the first image and the second image;
inputting the image pair to a pre-trained face discrimination model for similarity calculation;
judging whether the similarity is greater than a preset similarity threshold value or not;
when the similarity is larger than or equal to the similarity threshold, determining that the user accessing the first website and the user accessing the second website are the same user, and allowing the local storage interface to be called to request the server interface for acquiring form data;
and when the similarity is smaller than the similarity threshold value, determining that the user accessing the first website is not the same user as the user accessing the second website, and forbidding to call the local storage interface to request the server interface to acquire form data.
According to an optional embodiment of the present invention, when it is determined that the user accessing the first website and the user accessing the second website are not the same user, the data storage sharing method further includes:
sending the second image to a user who visits the first website;
when a first instruction of a user accessing the first website is received, the local storage interface is allowed to be called to request the server interface to acquire form data;
and when a second instruction of the user accessing the first website is received, forbidding to call the local storage interface to request the server interface to acquire form data.
According to an optional embodiment of the present invention, the acquiring form data input in a page of a first website under a first domain name includes:
positioning an input box in the first website;
and acquiring form data input in the input box through the input box focus event.
According to an optional embodiment of the present invention, the data storage sharing method further comprises:
binding the page of the first website and a first event;
monitoring the state value of the first event in real time;
and when the state value of the first event is a first value, determining that the state of the first website is changed.
According to an optional embodiment of the present invention, the data storage sharing method further comprises:
binding the page of the first website with a second event;
monitoring the state value of the second event in real time;
and when the state value of the second event is a second value, determining that the state of the first website is changed.
A second aspect of the present invention provides a data storage sharing apparatus, the apparatus comprising:
the acquisition module is used for acquiring form data input in a page of a first website under a first domain name;
the monitoring module is used for sending a form data storage request to a server interface when monitoring that the state of the first website changes, wherein the form data storage request carries the form data;
the storage module is used for storing the form data in a database through the server-side interface;
the calling module is used for calling a local storage interface to request the server-side interface to acquire target form data corresponding to an access request stored in the database when detecting that the second website under the second domain name receives the access request;
and the loading module is used for loading the target form data into the page of the second website.
A third aspect of the invention provides a computer apparatus comprising a processor for implementing the data store sharing method when executing a computer program stored in a memory.
A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the data storage sharing method.
In summary, according to the data storage sharing method, the data storage sharing device, the computer device and the storage medium of the present invention, the form data in the first website is loaded into the page of the second website, so that the local storage under different domain names is shared. For a user, when logging in websites under different domain names, form data does not need to be input one by one, and only the form data needs to be input in the website under one of the domain names, so that the form data of the websites under other domain names can be quickly imported by the method. In addition, the form data is stored through the server-side interface instead of the form data of the website under each domain name, so that the storage amount of the form data can be saved, and the occupation of the storage space and system resources of the server side or the local client side can be reduced.
Drawings
Fig. 1 is a flowchart of a data storage sharing method according to an embodiment of the present invention.
Fig. 2 is a structural diagram of a data storage sharing device according to a second embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a computer device according to a third embodiment of the present invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a detailed description of the present invention will be given below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and features of the embodiments may be combined with each other without conflict.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Fig. 1 is a flowchart of a data storage sharing method according to an embodiment of the present invention. The data storage sharing method is applied to computer equipment and specifically comprises the following steps, and the sequence of the steps in the flowchart can be changed and some steps can be omitted according to different requirements.
And S11, acquiring form data input in the page of the first website under the first domain name.
When a user inputs form data in a page of a first website, the computer equipment stores the input form data in a local storage corresponding to the first website in real time.
In an optional embodiment, the obtaining form data input in a page of a first website under a first domain name includes:
positioning an input box in the first website;
and acquiring form data input in the input box through the input box focus event.
An input box is displayed in a page of the website A, a user can input form data in the input box, and the form data is acquired and stored in real time through a focus event of the input box by the computer equipment.
And S12, when it is monitored that the state of the first website changes, sending a form data storage request to a server interface, wherein the form data storage request carries the form data.
The computer equipment sends the form data storage request to the server-side interface as long as monitoring that the state of the first website changes, so that the server-side interface stores the form data carried in the form data storage request in a database of the server side after receiving the form data storage request. The form data store request may be a GET request.
In an optional embodiment, the method further comprises:
binding the page of the first website and a first event;
monitoring the state value of the first event in real time;
and when the state value of the first event is a first value, determining that the state of the first website is changed.
In this alternative embodiment, the first event may be a visiblilitychange event, and the first value may be hidden.
When the first event state value is a first value, it indicates that a switching operation is received on the current page of the first website, and the current page is switched to another sub-page.
In an optional embodiment, the method further comprises:
binding the page of the first website with a second event;
monitoring the state value of the second event in real time;
and when the state value of the second event is a second value, determining that the state of the first website is changed.
In this alternative embodiment, the second event may be an onload event, and the second value may be false.
When the state value of the second event is a second value, it indicates that a closing operation is received on the page of the first website, and at this time, it may be determined that the page of the first website changes, so that a form data storage request carrying the form data is sent to the server interface, so that the server interface stores the form data, and subsequent use is facilitated.
S13, storing the form data in a database through the server interface.
A database is preset in the computer device, and a plurality of form data are recorded in the database, wherein the form data comprise: form entries and form fields.
And S14, when detecting that the second website under the second domain name receives the access request, calling a local storage interface to request the server interface to acquire the target form data corresponding to the access request and stored in the database.
When the computer equipment detects that the user accesses the second website, the local storage interface is called to send a REQUEST to the server interface so as to REQUEST to acquire the target form data corresponding to the access REQUEST.
S15, loading the target form data into the page of the second website.
For example, assume that a user first visits website a and enters form data in a page of website a, which is stored by a computer device. When a user accesses the website B, if the user needs to fill related or similar forms in the page of the website B, the computer equipment can acquire the form data filled in the page of the website A and directly load the acquired form data into the page of the website B, so that repeated form data filled in the website B by the user is reduced, and the response efficiency of the page of the website B is improved.
Likewise, the computer device stores the form data entered in the page of website B locally, and then loads these same form data directly in website a. In this way, the locally stored data of a plurality of pages can be bound, so that the data can be shared and applied among the websites.
In an optional embodiment, the loading the target form data into the page of the second website includes:
reading a first form item in the target form data;
acquiring a second form item in the page of the second website;
matching the second form item with the first form item;
taking the first form field corresponding to the first form item successfully matched with the second form item as a second form field;
entering the second form field into the second form entry.
In this alternative embodiment, the user may match the data filled in the first website a when the second website B fills in the related or similar form, thereby reducing the user's need to fill in duplicate form data.
In this embodiment, the form data in the first website is loaded into the page of the second website, so that local storage sharing under different domain names is realized. For a user, when logging in websites under different domain names, form data does not need to be input one by one, and only the form data needs to be input in the website under one of the domain names, so that the form data of the websites under other domain names can be quickly imported by the method. In addition, the form data is stored through the server-side interface instead of the form data of the website under each domain name, so that the storage amount of the form data can be saved, and the occupation of the storage space and system resources of the server side or the local client side can be reduced.
In an optional embodiment, the method further comprises:
acquiring a first image of a user accessing the first website;
acquiring a second image of a user accessing the second website;
constructing an image pair from the first image and the second image;
inputting the image pair to a pre-trained face discrimination model for similarity calculation;
judging whether the similarity is greater than a preset similarity threshold value or not;
when the similarity is larger than or equal to the similarity threshold, determining that the user accessing the first website and the user accessing the second website are the same user, and allowing the local storage interface to be called to request the server interface for acquiring form data;
and when the similarity is smaller than the similarity threshold value, determining that the user accessing the first website is not the same user as the user accessing the second website, and forbidding to call the local storage interface to request the server interface to acquire form data.
In the optional embodiment, the first website corresponds to a first domain name (e.g., hundredths), the second website corresponds to a second domain name (e.g., google), and when the user accessing the first website and the second website is the same user, the local storage interface is allowed to be called to request the server interface to acquire form data, so that the websites with different domain names share the same local storage, data of the user is prevented from being leaked to other users, and data security of the user is ensured.
In an alternative embodiment, the training process of the face discrimination model may include:
acquiring a plurality of images of a plurality of users;
constructing a first image pair according to two images of the same user;
constructing a second image pair according to the two images of different users;
taking the plurality of first image pairs and the plurality of second image pairs as sample data;
and iteratively training a face discrimination model based on the sample data and the convolutional neural network.
The specific process of iteratively training the face discrimination model based on the sample data and the convolutional neural network is the prior art, and the invention is not elaborated in detail. The trained human face discrimination model can distinguish whether the two images are of the same person, when the two images are of the same person, the similarity output by the discrimination model is high (the similarity is greater than or equal to a preset threshold), and when the two images are not of the same person, the similarity output by the discrimination model is low (the similarity is less than the preset threshold).
In other embodiments, it may be determined whether the two are the same person only by whether the phone number entered by the user accessing the first website and the phone number entered by the user accessing the second website are the same.
In an optional embodiment, when it is determined that the user accessing the first website is not the same user as the user accessing the second website, the method further comprises:
sending the second image to a user who visits the first website;
when a first instruction of a user accessing the first website is received, the local storage interface is allowed to be called to request the server interface to acquire form data;
and when a second instruction of the user accessing the first website is received, forbidding to call the local storage interface to request the server interface to acquire form data.
In this alternative embodiment, the first instruction may be an authorization instruction, and the second instruction may be a prohibition instruction, and by authorization of the user accessing the first website to the user accessing the second website, the user accessing the second website may directly use the form data of the user accessing the first website, thereby implementing resource sharing between different websites by different users.
In this embodiment, the method may also be applied to another scenario, for example, when the user accesses the website a, there is a pop-up box in the website a to inquire whether the user needs to purchase the insurance, when the user inputs a certain operation in the pop-up box, for example, selects the option box of "no", the operation of the user is recorded in the database of the server, when the user accesses the website B again, if there is a same pop-up box in the website B in a normal case, the pop-up box will not pop-up again, so that repeated selection operation of the user can be avoided.
It is emphasized that to further ensure the privacy and security of the form data entered by the user, the form data may also be stored in nodes of a blockchain.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Fig. 2 is a structural diagram of a data storage sharing device according to a second embodiment of the present invention.
In some embodiments, the data storage sharing device 20 may include a plurality of functional modules made up of computer program segments. The computer programs of the various program segments in the data storage sharing apparatus 20 may be stored in a memory of a computer device and executed by at least one processor to perform the functions of data storage sharing (described in detail in fig. 1).
In this embodiment, the data storage sharing device 20 may be divided into a plurality of functional modules according to the functions performed by the data storage sharing device. The functional module may include: the device comprises an acquisition module 201, a monitoring module 202, a setting module 203, a judgment module 204, a storage module 205, a calling module 206, a loading module 207, a collection module 208, a calculation module 209 and a sending module 210. The module referred to herein is a series of computer program segments capable of being executed by at least one processor and capable of performing a fixed function and is stored in memory. In the present embodiment, the functions of the modules will be described in detail in the following embodiments.
The obtaining module 201 is configured to obtain form data input in a page of a first website under a first domain name.
When a user inputs form data in a page of a first website, the computer equipment stores the input form data in a local storage corresponding to the first website in real time.
In an optional embodiment, the obtaining module 201 obtains form data input in a page of a first website under a first domain name, including:
positioning an input box in the first website;
and acquiring form data input in the input box through the input box focus event.
An input box is displayed in a page of the website A, a user can input form data in the input box, and the form data is acquired and stored in real time through a focus event of the input box by the computer equipment.
The monitoring module 202 is configured to send a form data storage request to a server interface when it is monitored that the state of the first website changes, where the form data storage request carries the form data.
The computer equipment sends the form data storage request to the server-side interface as long as monitoring that the state of the first website changes, so that the server-side interface stores the form data carried in the form data storage request in a database of the server side after receiving the form data storage request. The form data store request may be a GET request.
The setting module 203 is configured to bind the page of the first website and the first event.
The setting module 203 is further configured to bind the page of the first website and the second event.
The monitoring module 202 is further configured to monitor a state value of the first event in real time; the determining module 204 is configured to determine that the state of the first website changes when the state value of the first event is a first value.
The first event may be a visiblilitychange event and the first value may be hidden. When the state value of the first event is a first value, it indicates that a switching operation is received on the current page of the first website, and the current page is switched to another sub-page, and at this time, it can be determined that the page of the first website changes, so that a form data storage request carrying the form data is sent to the server interface, so that the server interface stores the form data, and subsequent use is facilitated.
The monitoring module 202 is further configured to monitor a state value of the second event in real time; the determining module 204 is further configured to determine that the state of the first website changes when the state value of the second event is a second value.
The second event may be an onload event, and the second value may be false. When the state value of the second event is a second value, it indicates that a closing operation is received on the page of the first website, and at this time, it may be determined that the page of the first website changes, so that a form data storage request carrying the form data is sent to the server interface, so that the server interface stores the form data, and subsequent use is facilitated.
The storage module 205 is configured to store the form data in a database through the server interface.
A database is preset in the computer device, and a plurality of form data are recorded in the database, wherein the form data comprise: form entries and form fields.
The invoking module 206 is configured to, when it is detected that the second website under the second domain name receives the access request, invoke a local storage interface to request the server interface to acquire the target form data stored in the database and corresponding to the access request.
When the computer equipment detects that the user accesses the second website, the local storage interface is called to send a REQUEST to the server interface so as to REQUEST to acquire the target form data corresponding to the access REQUEST.
The loading module 207 is configured to load the target form data into a page of the second website.
For example, assume that a user first visits website a and enters form data in a page of website a, which is stored by a computer device. When a user accesses the website B, if the user needs to fill related or similar forms in the page of the website B, the computer equipment can acquire the form data filled in the page of the website A and directly load the acquired form data into the page of the website B, so that repeated form data filled in the website B by the user is reduced, and the response efficiency of the page of the website B is improved.
Likewise, the computer device stores the form data entered in the page of website B locally, and then loads these same form data directly in website a. In this way, the locally stored data of a plurality of pages can be bound, so that the data can be shared and applied among the websites.
In an optional embodiment, the loading module 207 loading the target form data into the page of the second website includes:
reading a first form item in the target form data;
acquiring a second form item in the page of the second website;
matching the second form item with the first form item;
taking the first form field corresponding to the first form item successfully matched with the second form item as a second form field;
entering the second form field into the second form entry.
In this alternative embodiment, the user may match the data filled in the first website a when the second website B fills in the related or similar form, thereby reducing the user's need to fill in duplicate form data.
In this embodiment, the form data in the first website is loaded into the page of the second website, so that local storage sharing under different domain names is realized. For a user, when logging in websites under different domain names, form data does not need to be input one by one, and only the form data needs to be input in the website under one of the domain names, so that the form data of the websites under other domain names can be quickly imported by the method. In addition, the form data is stored through the server-side interface instead of the form data of the website under each domain name, so that the storage amount of the form data can be saved, and the occupation of the storage space and system resources of the server side or the local client side can be reduced.
The acquisition module 208 is configured to acquire a first image of a user accessing the first website and acquire a second image of a user accessing the second website.
The calculating module 209 is configured to construct an image pair according to the first image and the second image, and input the image pair into a pre-trained face discrimination model for similarity calculation.
The determining module 204 is further configured to determine whether the similarity is greater than a preset similarity threshold; when the similarity is larger than or equal to the similarity threshold, determining that the user accessing the first website and the user accessing the second website are the same user, and allowing the local storage interface to be called to request the server interface for acquiring form data; and when the similarity is smaller than the similarity threshold value, determining that the user accessing the first website is not the same user as the user accessing the second website, and forbidding to call the local storage interface to request the server interface to acquire form data.
In the optional embodiment, the first website corresponds to a first domain name (e.g., hundredths), the second website corresponds to a second domain name (e.g., google), and when the user accessing the first website and the second website is the same user, the local storage interface is allowed to be called to request the server interface to acquire form data, so that the websites with different domain names share the same local storage, data of the user is prevented from being leaked to other users, and data security of the user is ensured.
In an alternative embodiment, the training process of the face discrimination model may include:
acquiring a plurality of images of a plurality of users;
constructing a first image pair according to two images of the same user;
constructing a second image pair according to the two images of different users;
taking the plurality of first image pairs and the plurality of second image pairs as sample data;
and iteratively training a face discrimination model based on the sample data and the convolutional neural network.
The specific process of iteratively training the face discrimination model based on the sample data and the convolutional neural network is the prior art, and the invention is not elaborated in detail. The trained human face discrimination model can distinguish whether the two images are of the same person, when the two images are of the same person, the similarity output by the discrimination model is high (the similarity is greater than or equal to a preset threshold), and when the two images are not of the same person, the similarity output by the discrimination model is low (the similarity is less than the preset threshold).
In other embodiments, it may be determined whether the two are the same person only by whether the phone number entered by the user accessing the first website and the phone number entered by the user accessing the second website are the same.
The sending module 210 is configured to send the second image to the user accessing the first website when it is determined that the user accessing the first website and the user accessing the second website are not the same user.
The invoking module 206 is further configured to allow, when receiving a first instruction of a user accessing the first website, invoking the local storage interface to request the server interface to acquire form data.
The invoking module 206 is further configured to prohibit invoking the local storage interface to request the server interface for obtaining the form data when receiving a second instruction of the user accessing the first website.
In this alternative embodiment, the first instruction may be an authorization instruction, and the second instruction may be a prohibition instruction, and by authorization of the user accessing the first website to the user accessing the second website, the user accessing the second website may directly use the form data of the user accessing the first website, thereby implementing resource sharing between different websites by different users.
In this embodiment, the method may also be applied to another scenario, for example, when the user accesses the website a, there is a pop-up box in the website a to inquire whether the user needs to purchase the insurance, when the user inputs a certain operation in the pop-up box, for example, selects the option box of "no", the operation of the user is recorded in the database of the server, when the user accesses the website B again, if there is a same pop-up box in the website B in a normal case, the pop-up box will not pop-up again, so that repeated selection operation of the user can be avoided.
It is emphasized that to further ensure the privacy and security of the form data entered by the user, the form data may also be stored in nodes of a blockchain.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Fig. 3 is a schematic structural diagram of a computer device according to a third embodiment of the present invention. In the preferred embodiment of the present invention, the computer device 3 includes a memory 31, at least one processor 32, at least one communication bus 33, and a transceiver 34.
It will be appreciated by those skilled in the art that the configuration of the computer device shown in fig. 3 does not constitute a limitation of the embodiments of the present invention, and may be a bus-type configuration or a star-type configuration, and that the computer device 3 may include more or less hardware or software than those shown, or a different arrangement of components.
In some embodiments, the computer device 3 is a computer device capable of automatically performing numerical calculation and/or information processing according to instructions set or stored in advance, and the hardware thereof includes but is not limited to a microprocessor, an application specific integrated circuit, a programmable gate array, a digital processor, an embedded device, and the like. The computer device 3 may also include a client device, which includes, but is not limited to, any electronic product capable of interacting with a client through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device, for example, a personal computer, a tablet computer, a smart phone, a digital camera, etc.
It should be noted that the computer device 3 is only an example, and other electronic products that are currently available or may come into existence in the future, such as electronic products that can be adapted to the present invention, should also be included in the scope of the present invention, and are included herein by reference.
In some embodiments, a computer program is stored in the memory 31, and the at least one processor 32 may call the computer program stored in the memory 31 to perform the related functions. For example, the respective modules described in the above embodiments are computer programs stored in the memory 31 and executed by the at least one processor 32, thereby implementing the functions of the respective modules. The Memory 31 includes a Read-Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an electronically Erasable rewritable Read-Only Memory (Electrically-Erasable Programmable Read-Only Memory (EEPROM)), an optical Read-Only Memory (CD-ROM) or other optical disk Memory, a magnetic disk Memory, a tape Memory, or any other medium readable by a computer capable of carrying or storing data.
In some embodiments, the at least one processor 32 is a Control Unit (Control Unit) of the computer device 3, connects various components of the entire computer device 3 by using various interfaces and lines, and executes various functions and processes data of the computer device 3 by running or executing programs or modules stored in the memory 31 and calling data stored in the memory 31. For example, the at least one processor 32, when executing the computer program stored in the memory, implements all or a portion of the steps of the method described in embodiments of the invention. The at least one processor 32 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips.
In some embodiments, the at least one communication bus 33 is arranged to enable connection communication between the memory 31 and the at least one processor 32 or the like.
Although not shown, the computer device 3 may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 32 through a power management device, so as to implement functions of managing charging, discharging, and power consumption through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The computer device 3 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
The integrated unit implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a computer device, or a network device) or a processor (processor) to execute parts of the methods according to the embodiments of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or that the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A data storage sharing method is characterized by comprising the following steps:
acquiring form data input in a page of a first website under a first domain name;
when the state of the first website is monitored to be changed, a form data storage request is sent to a server interface, wherein the form data storage request carries the form data;
storing the form data in a database through the server interface;
when detecting that a second website under a second domain name receives an access request, calling a local storage interface to request the server interface to acquire target form data corresponding to the access request and stored in the database;
and loading the target form data into the page of the second website.
2. The data storage sharing method of claim 1, wherein the loading the target form data into the page of the second website comprises:
reading a first form item in the target form data;
acquiring a second form item in the page of the second website;
matching the second form item with the first form item;
taking the first form field corresponding to the first form item successfully matched with the second form item as a second form field;
entering the second form field into the second form entry.
3. The data storage sharing method of claim 1, wherein the data storage sharing method further comprises:
acquiring a first image of a user accessing the first website;
acquiring a second image of a user accessing the second website;
constructing an image pair from the first image and the second image;
inputting the image pair to a pre-trained face discrimination model for similarity calculation;
judging whether the similarity is greater than a preset similarity threshold value or not;
when the similarity is larger than or equal to the similarity threshold, determining that the user accessing the first website and the user accessing the second website are the same user, and allowing the local storage interface to be called to request the server interface for acquiring form data;
and when the similarity is smaller than the similarity threshold value, determining that the user accessing the first website is not the same user as the user accessing the second website, and forbidding to call the local storage interface to request the server interface to acquire form data.
4. The data storage sharing method of claim 3, wherein upon determining that the user accessing the first website is not the same user as the user accessing the second website, the data storage sharing method further comprises:
sending the second image to a user who visits the first website;
when a first instruction of a user accessing the first website is received, the local storage interface is allowed to be called to request the server interface to acquire form data;
and when a second instruction of the user accessing the first website is received, forbidding to call the local storage interface to request the server interface to acquire form data.
5. The data storage sharing method of claim 1, wherein the obtaining form data entered in a page of the first website under the first domain name comprises:
positioning an input box in the first website;
and acquiring form data input in the input box through the input box focus event.
6. The data storage sharing method of claim 1, wherein the data storage sharing method further comprises:
binding the page of the first website and a first event;
monitoring the state value of the first event in real time;
and when the state value of the first event is a first value, determining that the state of the first website is changed.
7. The data storage sharing method of claim 1, wherein the data storage sharing method further comprises:
binding the page of the first website with a second event;
monitoring the state value of the second event in real time;
and when the state value of the second event is a second value, determining that the state of the first website is changed.
8. A data storage sharing apparatus, the apparatus comprising:
the acquisition module is used for acquiring form data input in a page of a first website under a first domain name;
the monitoring module is used for sending a form data storage request to a server interface when monitoring that the state of the first website changes, wherein the form data storage request carries the form data;
the storage module is used for storing the form data in a database through the server-side interface;
the calling module is used for calling a local storage interface to request the server-side interface to acquire target form data corresponding to an access request stored in the database when detecting that the second website under the second domain name receives the access request;
and the loading module is used for loading the target form data into the page of the second website.
9. A computer device comprising a processor for implementing a data storage sharing method as claimed in any one of claims 1 to 7 when executing a computer program stored in a memory.
10. A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements a data storage sharing method according to any one of claims 1 to 7.
CN202010583589.8A 2020-06-23 2020-06-23 Data storage sharing method and device, computer equipment and storage medium Pending CN111767500A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010583589.8A CN111767500A (en) 2020-06-23 2020-06-23 Data storage sharing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010583589.8A CN111767500A (en) 2020-06-23 2020-06-23 Data storage sharing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111767500A true CN111767500A (en) 2020-10-13

Family

ID=72722830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010583589.8A Pending CN111767500A (en) 2020-06-23 2020-06-23 Data storage sharing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111767500A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113360809A (en) * 2021-06-30 2021-09-07 平安普惠企业管理有限公司 Page data updating method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301379A (en) * 2014-08-28 2015-01-21 北京奇虎科技有限公司 Web page cross-domain communication method and device
CN108108458A (en) * 2017-12-28 2018-06-01 广州南方人才资讯科技有限公司 The method and device of resources of human talents data is shared based on domain name
CN109302493A (en) * 2018-11-15 2019-02-01 北京金山云网络技术有限公司 A kind of user information sharing method, device, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301379A (en) * 2014-08-28 2015-01-21 北京奇虎科技有限公司 Web page cross-domain communication method and device
CN108108458A (en) * 2017-12-28 2018-06-01 广州南方人才资讯科技有限公司 The method and device of resources of human talents data is shared based on domain name
CN109302493A (en) * 2018-11-15 2019-02-01 北京金山云网络技术有限公司 A kind of user information sharing method, device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
穹迹: "localStorage跨域存储,实战篇", pages 1 - 12, Retrieved from the Internet <URL:https://juejin.cn/post/6844904112165748743> *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113360809A (en) * 2021-06-30 2021-09-07 平安普惠企业管理有限公司 Page data updating method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US8838738B2 (en) System and method for processing medical information through medical terminal
CN105283852A (en) Obfuscating trace data
CN111654453B (en) Form data offline caching method and device, terminal and storage medium
CN113704665B (en) Dynamic service release method and device, electronic equipment and storage medium
CN112862546B (en) User loss prediction method and device, computer equipment and storage medium
CN110162407A (en) A kind of method for managing resource and device
CN111949708A (en) Multi-task prediction method, device, equipment and medium based on time sequence feature extraction
CN111986794A (en) Anti-counterfeiting registration method and device based on face recognition, computer equipment and medium
CN111798302A (en) Quota updating method and device based on micro service, electronic equipment and storage medium
CN112948723A (en) Interface calling method and device and related equipment
CN107798405B (en) Medical service reservation method, medical service reservation device, storage medium and computer equipment
CN114996675A (en) Data query method and device, computer equipment and storage medium
CN111767500A (en) Data storage sharing method and device, computer equipment and storage medium
CN111814181B (en) System authority authorization method and device, electronic equipment and storage medium
CN112598135A (en) Model training processing method and device, computer equipment and medium
CN112948275A (en) Test data generation method, device, equipment and storage medium
CN109711193B (en) Storage space sharing method and device
CN114331446B (en) Method, device, equipment and medium for realizing out-of-chain service of block chain
CN111756760A (en) User abnormal behavior detection method based on integrated classifier and related equipment
CN114666408B (en) Market condition factor data transparent transmission method, device, equipment and medium based on Internet
CN108112268A (en) Management and the relevant load balancer of automatic expanded set
CN113488128A (en) Block chain-based electronic medical record retrieval method and device and related equipment
US20190089688A1 (en) Twin factor authentication for controller
CN112055010B (en) Two-dimensional code picture intercepting method and device, electronic equipment and storage medium
CN113094597A (en) Thousand-person and thousand-face portal processing method and device based on machine learning and related equipment

Legal Events

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