CN110737853B - Multi-platform display static page data synchronization method and B2B system - Google Patents

Multi-platform display static page data synchronization method and B2B system Download PDF

Info

Publication number
CN110737853B
CN110737853B CN201910840397.8A CN201910840397A CN110737853B CN 110737853 B CN110737853 B CN 110737853B CN 201910840397 A CN201910840397 A CN 201910840397A CN 110737853 B CN110737853 B CN 110737853B
Authority
CN
China
Prior art keywords
page
static
browser
sentences
synchronized
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910840397.8A
Other languages
Chinese (zh)
Other versions
CN110737853A (en
Inventor
张芳军
李锐锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhongshan Baxi Computer Network Co ltd
Original Assignee
Zhongshan Baxi Computer Network 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 Zhongshan Baxi Computer Network Co ltd filed Critical Zhongshan Baxi Computer Network Co ltd
Priority to CN201910840397.8A priority Critical patent/CN110737853B/en
Publication of CN110737853A publication Critical patent/CN110737853A/en
Application granted granted Critical
Publication of CN110737853B publication Critical patent/CN110737853B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation
    • 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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a multi-platform displayed static page data synchronization method and a B2B system, wherein a user directly accesses a static page of an enterprise-level mall after logging in an official network of the enterprise-level mall through a seven-in-one platform at a client, selects a page which is related to a first page from the opened static pages in the browser as a page to be synchronized according to the static page indicated by a static page access request and the opened static pages in the browser, completes data synchronization of the first page and the page to be synchronized, can display the page on different types of platforms, realizes synchronization of static page data on the premise of ensuring integrity of the page data according to the characteristics of the static pages, corrects final data errors or updates the problems of static page chaos and data redundancy read from a server according to asynchronous error data of the current static page, and is suitable for B2B systems of various types of terminal platforms.

Description

Multi-platform display static page data synchronization method and B2B system
Technical Field
The disclosure relates to, but not limited to, the technical field of multi-network fusion, data synchronization and communication, and in particular relates to a multi-platform static page display data synchronization method and a B2B system.
Background
The method comprises the following steps that a user directly accesses a static page of an enterprise-level mall after logging in an official website of the enterprise-level mall through a seven-network-in-one platform, wherein the seven-network-in-one platform comprises but is not limited to the following steps: PC computer edition official network, mobile phone mobile official network, weChat public number official network, android enterprise official APP, enterprise B2B popularization, weChat official applet, baidu official applet.
The static page displayed by the seven-in-one platform means that the webpage content is displayed as a hypertext markup language file on various platforms, and the file is stored in a server of a website and is directly displayed at the display ends of the various platforms. Because the static pages cannot independently and synchronously update the pages on different types of platforms, but the server static pages of the website need to be updated by restabilizing the data every time when the data is re-read, when a plurality of similar static pages are edited, browsed or switched simultaneously, the data finally stored to the server end is often not synchronized due to misoperation when the data updated on each static page is updated, or the data is wrong due to too close called static pages, the CMS is easily blocked due to the triggering of the synchronized data, and the abnormal display of other static pages is influenced. All pages of the static website are directly read from the server, so that in the existing method, synchronous updating of dynamic data cannot be realized, and especially under the application scene of the existing multi-platform display (namely different terminal equipment, operating systems and browsers), synchronous updating of static page data is more difficult to realize (namely, data in webpage caches displayed by each static page are inconsistent, so that data stored to the server end are different, and final data errors are caused, or the problems of static page confusion and data redundancy read from the server are updated according to asynchronous error data of the current static page); therefore, how to implement the synchronization of data in a static online webpage in real time according to the operation of a user by using the page content of the static online webpage becomes a technical problem to be solved urgently by the technical personnel in the field.
Disclosure of Invention
In order to solve the above problems, the present disclosure provides a data synchronization method for a multi-platform display static page and a technical scheme of a B2B system, where according to a static page indicated by a static page access request and an opened static page in a browser, a page related to a first page in the opened static page in the browser is selected as a page to be synchronized, and data synchronization between the first page and the page to be synchronized is completed, and the page to be synchronized can be displayed on different types of platforms.
In order to achieve the above object, according to an aspect of the present disclosure, there is provided a method for synchronizing data of a multi-platform presentation static page, the method including the steps of:
the method comprises the following steps that a user directly accesses a static page of an enterprise-level mall after logging in an official website of the enterprise-level mall at a client through a seven-network-in-one platform, wherein the seven-network-in-one platform comprises but is not limited to the following steps: the system comprises a PC computer edition official network, a mobile phone official network, a WeChat public number official network, an android official APP, an enterprise library B2B popularization, a WeChat small program official network and a hundred-degree small program official network.
The PC version official website refers to an official website page logged in by a computer, the visited website generally starts at www, and the resolution of the visited website is generally 1330 × 960, 1440 × 900, 1024 × 768, 1920 × 1080 and the like as the mainstream display size at present;
the mobile official network of the mobile phone is an official network page of a mobile phone format which is logged in through a mobile terminal;
the WeChat public number official website is characterized in that a login official website page is opened in a WeChat browser, contents of enterprise or personal information, services, activities and the like are expressed in a WeChat webpage mode, and the website WeChat public number is mainly used for pushing information;
the android enterprise official APP is used for logging in through an APP program supported by an android system and displaying an official website page;
the enterprise library B2B is popularized to an enterprise library platform for logging in an official website page, and the enterprise library comprises but is not limited to http:// www.qiyeku.com;
the WeChat small program official network is XCX for short, is an application which can be used without downloading and installing in WeChat, and a user can open the WeChat small program through a two-dimensional code scanning function or a searching function of the WeChat so as to log in an official small program page;
the hundred-degree small program official network is an official small program page which is authenticated and logged in through the hundred-degree small program;
the enterprise-level mall is a commercial website of the company, such as an e-commerce platform, a network promotion page of the company and the like;
the official website page is a static page, the official website is short for official website, generally refers to a website of a company, and the official website page is a page of the official website.
The client comprises but is not limited to a notebook, a desktop, a mobile terminal and a tablet computer;
a browser of a client receives a static page access request from a user, and takes a static page indicated by the static page access request as a first page, wherein the first page comprises a static webpage page which the user needs to access and/or all other static webpage pages which are currently associated with the static webpage page;
preferably, the specific method for receiving the static page access request from the user by the browser of the client and using the static page indicated by the static page access request as the first page is as follows: a user triggers a static page through a client, and the static page generation triggering conditions are a condition 1 and a condition 2:
the condition 1 is: the user manually clicks to generate a static page:
when a user enters a background of the seven-network-in-one platform and clicks a cache clearing button, the browser adjusts to a static page to generate a website and transmits related parameters for generating the static page; then, a first page is obtained by a static page generation method, and the content of the generated static page after the processing is finished is displayed;
the condition 2 is: when the relevant static page is requested:
the related static page is a static page which is specified by a browser; when a user accesses a specified url path of a static page, judging whether an accessed static file is successfully generated, if the static file of the specified url path does not exist, calling a static page generation method to obtain a first page; and displaying the static page content generated after the processing is completed.
The static page generation method comprises the following steps:
s1: checking access validity and parameter format;
s2: checking whether the designated user information exists or not, and if so, continuing;
s3: calling user information to generate a static file storage path;
s4: detecting whether the static file exists, if so, reading the content of the static file and returning the content to the memory;
s5: acquiring the content required by generating the static file and generating the static file according to the required content;
s6: and saving the static file and returning the content of the static file.
Selecting a page related to the first page from opened static pages in the browser as a page to be synchronized;
the page related to the first page is a page directly connected with the url path of the first page;
the first page sends a url request to a website server, the website server selects and reads the information file of the first page according to the url request, and simultaneously reads the static html file of the first page into a memory and generates a document object;
and directly inserting the static html file of the page to be synchronized into the document object to obtain a first object, extracting codes of the script file from the information file of the page to be synchronized, binding the codes of the script file in the static html file of the page to be synchronized, and configuring the codes into the first object, thereby completing the data synchronization of the first page and the page to be synchronized.
The website server returns the character string in the html format to the browser and informs the browser to analyze in the html format;
the website server returns the html-format character string after data synchronization to the browser, the browser parses the html-format character string into an html page, the html page executes a code of a corresponding script file, a complete image-text content of the introduction page is generated, and the static page is displayed to the client, so that the static page can be adaptively displayed on different platforms (for example, a browser of a mobile device platform, a browser of a personal computer platform, and a browser of a tablet computer platform).
Further, the static page includes a list of cached webpages, a static presentation page template corresponding to a brief description page corresponding to each cached webpage, and complete image-text content for generating the brief description page.
Further, the method for selecting the page related to the first page from the opened static pages in the browser as the page to be synchronized comprises the following steps:
s100: sequentially dividing the webpage documents in all static pages in the browser of the client into a set of sentences (including the first page): removing all formatting information and HTML tags in the static page to obtain first text content; taking commas and semicolons as separators, and dividing the first text content into one or more sentences according to the separators;
s200: selecting a first sentence with the character length larger than a length threshold value in all sentences, wherein the length threshold value is 6 characters, and the length threshold value can be manually adjusted;
s300: calculating the MD5 value of the sentence for all the first sentences according to the MD5 message digest algorithm;
s400: dividing all the first sentences into M groups;
s500: taking N different second sentences with the minimum MD5 value in each group, wherein the character length of the second sentences is greater than P; default values M =10, n =5, p =100, p >100; m, N, P are all parameters that can be adjusted manually.
S600: calculating and storing the 128-bit hash value of the second sentence once every time the MD5 value of the second sentence is circularly shifted by one byte until the shift is finished by 16 bits, and obtaining 16 multiplied by M hash values in total because the MD5 value is 128 bits (16 bytes);
s700: comparing all the hash values of all the static pages with all the hash values of the first page, wherein if at least one identical hash value exists between a static page and the first page, the static page is related to the first page, and the static page is the page to be synchronized;
in the present disclosure, reference is made to step numbers for reference only and not as a limitation to the order between steps.
The invention also provides a multi-platform display static page data synchronization B2B system, wherein the B2B system comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing the computer program to run in the units of the system:
a page access request unit, configured to receive a static page access request from a user by a browser at a client, and use a static page indicated by the static page access request as a first page, where the first page includes a static web page that the user needs to access and/or all other static web pages currently associated with the static web page;
the method for selecting the page which is related to the first page from the opened static pages in the browser as the page to be synchronized and selecting the page which is related to the first page from the opened static pages in the browser as the page to be synchronized comprises the following steps:
s100: sequentially dividing the webpage documents in all static pages in the browser of the client into a set of sentences (including the first page): removing all formatting information and HTML tags in the static page to obtain first text content; taking commas and semicolons as separators, and dividing the first text content into one or more sentences according to the separators;
s200: selecting a first sentence of which the length of characters is greater than a length threshold value in all sentences, wherein the length threshold value is 6 characters, and the length threshold value can be manually adjusted;
s300: calculating the MD5 value of the sentence for all the first sentences according to an MD5 message digest algorithm;
s400: dividing all the first sentences into M groups;
s500: taking N different second sentences with the minimum MD5 value in each group, wherein the character length of the second sentences is greater than P; default values M =10, n =5, p =100, p > -100; m, N, P are all parameters that can be adjusted manually.
S600: calculating and storing the 128-bit hash value of the second sentence once every time the MD5 value of the second sentence is circularly shifted by one byte until the shift is finished by 16 bits, and obtaining 16 multiplied by M hash values in total because the MD5 value is 128 bits (16 bytes);
s700: comparing all the hash values of all the static pages with all the hash values of the first page, wherein if at least one identical hash value exists between a static page and the first page, the static page is related to the first page, and the static page is the page to be synchronized;
the information file request unit is used for sending a url request to the first page to the website server, and the website server selects to read the information file of the first page according to the url request, reads the static html file of the first page into the memory and generates a document object;
the data synchronization unit is used for directly inserting the static html file of the page to be synchronized into the document object to obtain a first object, extracting the code of the script file from the information file of the page to be synchronized, binding the code of the script file in the static html file of the page to be synchronized and configuring the code into the first object, so that the data synchronization of the first page and the page to be synchronized is completed;
and the page analysis unit is used for returning the html-format character string after data synchronization to the browser by the website server, analyzing the html-format character string into an html page by the browser, executing a code of a corresponding script file by the html page, generating complete image-text content of the brief introduction page and displaying the static page to the client.
The beneficial effect of this disclosure does: the invention provides a multi-platform display static page data synchronization method and a B2B system, which realize the synchronization of static page data on the premise of ensuring the integrity of the page data according to the characteristics of static pages, correct the inconsistency of the data in a page cache displayed by each static page, and cause the difference of the data stored to a server end, thereby causing final data errors or the problems of disordered static pages and data redundancy read from the server according to the asynchronous error data of the current static page.
Drawings
The foregoing and other features of the present disclosure will become more apparent from the detailed description of the embodiments shown in conjunction with the drawings in which like reference characters designate the same or similar elements throughout the several views, and it is apparent that the drawings in the following description are merely some examples of the present disclosure and that other drawings may be derived therefrom by those skilled in the art without the benefit of any inventive faculty, and in which:
FIG. 1 is a flow chart of a seven-in-one platform login method;
FIG. 2 is a flow chart of a method for multi-platform presentation of static page data synchronization;
FIG. 3 is a block diagram of a multi-platform display static page data synchronization B2B system.
Detailed Description
The conception, the specific structure and the technical effects produced by the present disclosure will be clearly and completely described in conjunction with the embodiments and the attached drawings, so that the purposes, the schemes and the effects of the present disclosure can be fully understood. It should be noted that, in the present application, the embodiments and features of the embodiments may be combined with each other without conflict.
Fig. 1 is a flowchart of a login method of a seven-in-one networking platform shown in fig. 1, fig. 2 is a flowchart of a synchronization method of multi-platform display static page data, and a synchronization method of multi-platform display static page data according to an embodiment of the present disclosure is described below with reference to fig. 1 and fig. 2.
The utility model provides a multi-platform static page data display synchronization method, which comprises the following steps:
the method includes the steps that a user directly accesses a static page of an enterprise-level mall after logging in an official website of the enterprise-level mall through a seven-network-in-one platform at a client, wherein the seven-network-in-one platform comprises but is not limited to: PC computer version official network, cell-phone mobile official network, little letter public number official network, android enterprise official APP, enterprise library B2B promote, little letter applet official network, hundredth applet official network.
The PC version official website refers to an official website page logged in by a computer, the visited website generally starts at www, and the resolution of the visited website is generally 1330 × 960, 1440 × 900, 1024 × 768, 1920 × 1080 and the like as the mainstream display size at present;
the mobile official network of the mobile phone is an official network page of a mobile phone format which is logged in through a mobile terminal;
the WeChat public number official website is characterized in that a login official website page is opened in a WeChat browser, contents of enterprise or personal information, services, activities and the like are expressed in a WeChat webpage mode, and the website WeChat public number is mainly used for pushing information;
the android enterprise official APP is used for logging in through an APP program supported by an android system and displaying an official website page;
the enterprise library B2B is popularized to an enterprise library platform for logging in an official website page, and the enterprise library comprises but is not limited to http:// www.qiyeku.com;
the WeChat small program official network is XCX for short, is an application which can be used without downloading and installing in WeChat, and a user can open the WeChat small program through a two-dimensional code scanning function or a searching function of the WeChat so as to log in an official network page;
the hundred-degree small program official network is an official network page which is authenticated and logged in through the hundred-degree small program;
the enterprise-level mall is a commercial website of the company, such as an e-commerce platform, a network promotion page of the company and the like;
the official website page is a static page, the official website is short for official website and generally refers to a website of a company, and the official website page is a page of the official website.
The client includes but is not limited to a notebook, a desktop, a mobile terminal, and a tablet computer.
A browser of a client receives a static page access request from a user, and takes a static page indicated by the static page access request as a first page, wherein the first page comprises a static webpage page which the user needs to access and/or all other static webpage pages which are currently associated with the static webpage page;
selecting a page related to the first page from opened static pages in the browser as a page to be synchronized;
the first page sends a url request to a website server, the website server selects to read the information file of the first page according to the url request, and reads the static html file of the first page into a memory to generate a document object;
and directly inserting the static html file of the page to be synchronized into the document object to obtain a first object, extracting codes of the script file from the information file of the page to be synchronized, binding the codes of the script file in the static html file of the page to be synchronized, and configuring the codes into the first object, thereby completing the data synchronization of the first page and the page to be synchronized.
The website server returns the character string in the html format to the browser and informs the browser to analyze the character string in the html format;
and the website server returns the character string in the html format after data synchronization to the browser, the browser analyzes the character string in the html format into an html page, the html page executes the code of the corresponding script file, the complete image-text content of the brief introduction page is generated, and the static page is displayed to the client.
Further, the static page includes a list of cached webpages, a static presentation page template corresponding to a brief introduction page corresponding to each cached webpage, and complete image-text content for generating the brief introduction page.
Further, the method for selecting the page related to the first page from the static pages opened in the browser as the page to be synchronized comprises the following steps:
s100: sequentially dividing the webpage documents in all static pages in the browser of the client into a set of sentences (including the first page): removing all formatting information and HTML tags in the static page to obtain first text content; taking commas and semicolons as separators, and dividing the first text content into one or more sentences according to the separators;
s200: selecting a first sentence of which the length of characters is greater than a length threshold value in all sentences, wherein the length threshold value is 6 characters, and the length threshold value can be manually adjusted;
s300: calculating the MD5 value of the sentence for all the first sentences according to the MD5 message digest algorithm;
s400: dividing all the first sentences into M groups;
s500: taking N different second sentences with the minimum MD5 value in each group, wherein the character length of the second sentences is greater than P; default values M =10, n =5, p =100, p >100; m, N, P are all parameters that can be adjusted manually.
S600: calculating and storing the 128-bit hash value of the second sentence once every time the MD5 value of the second sentence is circularly shifted by one byte until the shift is finished by 16 bits, and obtaining 16 multiplied by M hash values in total because the MD5 value is 128 bits (16 bytes);
s700: comparing all the hash values of all the static pages with all the hash values of the first page, wherein if at least one identical hash value exists between a static page and the first page, the static page is related to the first page, and the static page is the page to be synchronized;
a multi-platform display static page data synchronization B2B system provided in an embodiment of the present disclosure is, as shown in fig. 3, a multi-platform display static page data synchronization B2B system structure diagram of the present disclosure, where a multi-platform display static page data synchronization B2B system of the embodiment includes: the system comprises a processor, a memory and a computer program which is stored in the memory and can run on the processor, wherein the processor executes the computer program to realize the steps in the embodiment of the multi-platform display static page data synchronization B2B system.
The system comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing the computer program to run in the units of the system:
a page access request unit, configured to receive a static page access request from a user by a browser at a client, and use a static page indicated by the static page access request as a first page, where the first page includes a static web page that the user needs to access and/or all other static web pages currently associated with the static web page;
the method for selecting the page which is related to the first page from the opened static pages in the browser as the page to be synchronized comprises the following steps:
s100: sequentially dividing the webpage documents in all static pages in the browser of the client into a set of sentences (including the first page): removing all formatting information and HTML tags in the static page to obtain first text content; taking commas and semicolons as separators, and dividing the first text content into one or more sentences according to the separators;
s200: selecting a first sentence with the character length larger than a length threshold value in all sentences, wherein the length threshold value is 6 characters, and the length threshold value can be manually adjusted;
s300: calculating the MD5 value of the sentence for all the first sentences according to the MD5 message digest algorithm;
s400: dividing all the first sentences into M groups;
s500: taking N different second sentences with the minimum MD5 value in each group, wherein the character length of the second sentences is greater than P; default values M =10, n =5, p =100, p >100; m, N, P are all parameters that can be adjusted manually.
S600: calculating and storing the 128-bit hash value of the second sentence once every time the MD5 value of the second sentence is circularly shifted by one byte until the shift is finished by 16 bits, and obtaining 16 multiplied by M hash values in total because the MD5 value is 128 bits (16 bytes);
s700: comparing all the hash values of all the static pages with all the hash values of the first page, wherein if at least one identical hash value exists between a static page and the first page, the static page is associated with the first page, and the static page is the page to be synchronized;
the information file request unit is used for sending a url request to the website server for the first page, and the website server selects and reads the information file of the first page according to the url request, reads the static html file of the first page into a memory and generates a document object;
the data synchronization unit is used for directly inserting the static html file of the page to be synchronized into the document object to obtain a first object, extracting the code of the script file from the information file of the page to be synchronized, binding the code of the script file in the static html file of the page to be synchronized, and configuring the code into the first object to complete data synchronization of the first page and the page to be synchronized;
and the page analysis unit is used for returning the character string in the html format after the data synchronization to the browser by the website server, and the browser analyzes the character string in the html format into an html page and executes the code of the corresponding script file by the html page.
The multi-platform static page data display synchronous B2B system can be operated in computing equipment such as desktop computers, notebooks, palm computers and cloud servers. The multi-platform display static page data synchronization B2B system can be operated by a system comprising a processor and a memory. Those skilled in the art will appreciate that the example is merely an example of a multi-platform presentation static page data synchronization B2B system and does not constitute a limitation of a multi-platform presentation static page data synchronization B2B system, and may include more or less than a proportional number of components, or some components in combination, or different components, for example, the multi-platform presentation static page data synchronization B2B system may further include input and output devices, network access devices, buses, etc.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc., the processor is a control center of the operating system of the multi-platform presentation static page data synchronization B2B system, and various interfaces and lines are used to connect various parts of the entire operating system of the multi-platform presentation static page data synchronization B2B system.
The memory can be used for storing the computer programs and/or modules, and the processor can realize various functions of the multi-platform presentation static page data synchronization B2B system by running or executing the computer programs and/or modules stored in the memory and calling the data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
While the present disclosure has been described in considerable detail and with particular reference to a few illustrative embodiments thereof, it is not intended to be limited to any such details or embodiments or any particular embodiments, but it is to be construed as effectively covering the intended scope of the disclosure by providing a broad, potential interpretation of such claims in view of the prior art with reference to the appended claims. Furthermore, the foregoing description of the present disclosure has been presented in terms of embodiments foreseen by the inventors for purposes of providing a useful description, and enabling one of ordinary skill in the art to devise equivalent variations of the present disclosure that are not presently foreseen.

Claims (5)

1. A multi-platform display static page data synchronization method is characterized by comprising the following steps:
the user accesses the static page of the enterprise-level mall after logging in the official network of the enterprise-level mall through the seven-network-in-one platform at the client,
the seven-in-one platform includes but is not limited to: the system comprises a PC computer version official network, a mobile phone mobile official network, a WeChat public number official network, an android official APP, an enterprise library B2B popularization, a WeChat small program official network and a hundred-degree small program official network;
the PC computer official website refers to an official website page logged in by a computer end;
the mobile official network of the mobile phone is an official network page of a mobile phone format which is logged in through a mobile terminal;
the WeChat public number official website is characterized in that a login official website page is opened in a WeChat browser, and the contents of enterprise or personal information, service and activity are expressed in a WeChat webpage mode, and the WeChat public number of a website is mainly used for pushing information;
the android enterprise official APP is used for logging in through an APP program supported by an android system and displaying an official website page;
the enterprise library B2B is popularized to an enterprise library platform for logging in an official website page, and the enterprise library comprises but is not limited to http:// www.qiyeku.com;
the WeChat small program official network is XCX for short, is an application which can be used without downloading and installing in WeChat, and a user can open the WeChat small program through a two-dimensional code scanning function or a searching function of the WeChat so as to log in an official network page;
the hundred-degree small program official network is an official network page which is authenticated and logged in through the hundred-degree small program;
the official website page is a static page, and the enterprise-level mall is a commercial website of a company;
a user sends a static page access request, and a static page indicated by the static page access request is used as a first page, wherein the first page comprises a static webpage to be accessed by the user and/or all other static webpages related to the static webpage currently;
selecting a page related to the first page from static pages opened in a browser of a client as a page to be synchronized;
the method for selecting the page related to the first page from the opened static pages in the browser of the client as the page to be synchronized comprises the following steps:
s100: sequentially dividing the webpage documents in all static pages in a browser of a client into a set of sentences: removing all formatting information and HTML tags in the static page to obtain first text content; taking commas and semicolons as separators, and dividing the first text content into one or more sentences according to the separators;
s200: selecting a first sentence of which the character length is greater than a length threshold in all sentences;
s300: calculating the MD5 value of the sentence for all the first sentences according to an MD5 message digest algorithm;
s400: dividing all the first sentences into M groups;
s500: taking N different second sentences with the minimum MD5 value in each group, wherein the character length of the second sentences is greater than P, and the default values are M =10, N =5, P =100 and P >100; m, N, P are all parameters that can be adjusted manually;
s600: calculating and storing the 128-bit hash value of the second sentence once every time the MD5 value of the second sentence is circularly shifted by one byte until the shift is finished by 16 bits, and obtaining 16 multiplied by M hash values in total;
s700: and comparing all the hash values of all the static pages with all the hash values of the first page, wherein if at least one identical hash value exists between a static page and the first page, the static page is the page to be synchronized.
2. A multi-platform display static page data synchronization method is characterized by comprising the following steps:
a browser of a client receives a static page access request from a user, and takes a static page indicated by the static page access request as a first page, wherein the first page comprises a static webpage page which the user needs to access and/or all other static webpage pages which are currently associated with the static webpage page;
selecting a page related to the first page from opened static pages in the browser as a page to be synchronized;
the first page sends a url request to a website server, the website server selects and reads the information file of the first page according to the url request, and simultaneously reads the static html file of the first page into a memory and generates a document object;
directly inserting a static html file of a page to be synchronized into the document object to obtain a first object, extracting codes of a script file from an information file of the page to be synchronized, binding the codes of the script file in the static html file of the page to be synchronized, and configuring the codes into the first object, so that data synchronization of the first page and the page to be synchronized is completed;
the static page comprises a list of cached webpage pages, a static display page template corresponding to a brief introduction page corresponding to each cached webpage page and complete image-text content for generating the brief introduction page;
the method for selecting the page related to the first page from the opened static pages in the browser as the page to be synchronized comprises the following steps:
s100: sequentially dividing the webpage documents in all static pages in the browser of the client into a set of sentences: removing all formatting information and HTML tags in the static page to obtain first text content; taking commas and semicolons as separators, and dividing the first text content into one or more sentences according to the separators;
s200: selecting a first sentence with the character length larger than a length threshold value in all sentences;
s300: calculating the MD5 value of the sentence for all the first sentences according to the MD5 message digest algorithm;
s400: dividing all the first sentences into M groups;
s500: taking N different second sentences with the minimum MD5 value in each group, wherein the character length of the second sentences is larger than P, and the default values M =10, N =5, P =100 and P >100; m, N, P are all parameters that can be adjusted manually;
s600: calculating and storing the 128-bit hash value of the second sentence once every time the MD5 value of the second sentence is circularly shifted by one byte until the shift is finished by 16 bits, and obtaining 16 multiplied by M hash values in total;
s700: and comparing all the hash values of all the static pages with all the hash values of the first page, wherein if at least one identical hash value exists between a static page and the first page, the static page is the page to be synchronized.
3. The method of claim 2, wherein the web server returns the html-formatted character string to the browser and informs the browser to parse the character string in html.
4. The method for synchronizing data of a multi-platform presentation static page according to claim 2, wherein the website server returns the html-formatted character string after data synchronization to the browser, the browser parses the html-formatted character string into the html page, and executes a code of a corresponding script file from the html page to generate complete graphic content of the introduction page and present the static page to the client.
5. A multi-platform presentation static page data synchronization B2B system, the B2B system comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing the computer program to run in the units of the following system:
the page access request unit is used for receiving a static page access request from a user by a browser of a client, and taking a static page indicated by the static page access request as a first page, wherein the first page comprises a static webpage to be accessed by the user and/or all other static webpages related to the static webpage currently;
the method for selecting the page which is related to the first page from the opened static pages in the browser as the page to be synchronized and selecting the page which is related to the first page from the opened static pages in the browser as the page to be synchronized comprises the following steps:
s100: sequentially dividing the webpage documents in all static pages in the browser of the client into a set of sentences: removing all formatting information and HTML tags in the static page to obtain first text content; taking commas and semicolons as separators, and dividing the first text content into one or more sentences according to the separators;
s200: selecting a first sentence with the character length larger than a length threshold value in all sentences;
s300: calculating the MD5 value of the sentence for all the first sentences according to the MD5 message digest algorithm;
s400: dividing all the first sentences into M groups;
s500: taking N different second sentences with the minimum MD5 value in each group, wherein the character length of the second sentences is greater than P;
s600: calculating and storing the 128-bit hash value of the second sentence once when the MD5 value of the second sentence is circularly shifted by one byte until 16 bits are shifted, and obtaining 16 multiplied by M hash values in total;
s700: comparing all the hash values of all the static pages with all the hash values of the first page, wherein if at least one same hash value exists between a static page and the first page, the static page is the page to be synchronized;
the information file request unit is used for sending a url request to the website server for the first page, and the website server selects and reads the information file of the first page according to the url request, reads the static html file of the first page into a memory and generates a document object;
the data synchronization unit is used for directly inserting the static html file of the page to be synchronized into the document object to obtain a first object, extracting the code of the script file from the information file of the page to be synchronized, binding the code of the script file in the static html file of the page to be synchronized and configuring the code into the first object, so that the data synchronization of the first page and the page to be synchronized is completed;
and the page analysis unit is used for returning the html-format character string after data synchronization to the browser by the website server, analyzing the html-format character string into an html page by the browser, executing a code of a corresponding script file by the html page, generating complete image-text content of the brief introduction page and displaying the static page to the client.
CN201910840397.8A 2019-09-06 2019-09-06 Multi-platform display static page data synchronization method and B2B system Active CN110737853B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910840397.8A CN110737853B (en) 2019-09-06 2019-09-06 Multi-platform display static page data synchronization method and B2B system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910840397.8A CN110737853B (en) 2019-09-06 2019-09-06 Multi-platform display static page data synchronization method and B2B system

Publications (2)

Publication Number Publication Date
CN110737853A CN110737853A (en) 2020-01-31
CN110737853B true CN110737853B (en) 2023-04-18

Family

ID=69267803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910840397.8A Active CN110737853B (en) 2019-09-06 2019-09-06 Multi-platform display static page data synchronization method and B2B system

Country Status (1)

Country Link
CN (1) CN110737853B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111431767B (en) * 2020-03-26 2023-03-07 深圳壹账通智能科技有限公司 Multi-browser resource synchronization method and device, computer equipment and storage medium
CN112905944B (en) * 2021-04-06 2023-06-20 成都新希望金融信息有限公司 Page online dynamic generation method and device, electronic equipment and readable storage medium
CN114637944A (en) * 2022-02-23 2022-06-17 南方电网数字电网研究院有限公司 Synchronous updating method for network safety browsing data based on big data application
CN115033335B (en) * 2022-08-11 2023-01-10 青岛中正合力软件有限公司 Display processing method applied to same screen of webpage

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102938776A (en) * 2012-09-28 2013-02-20 方正国际软件有限公司 Dynamic page processing system based on Asynchronous JavaScript and XML (ajax) technique
CN104239577A (en) * 2014-10-09 2014-12-24 北京奇虎科技有限公司 Method and device for detecting authenticity of webpage data
CN107229633A (en) * 2016-03-24 2017-10-03 北京神州泰岳软件股份有限公司 Static page generation method, Web access method and device
CN107508892A (en) * 2017-08-29 2017-12-22 努比亚技术有限公司 A kind of page access method, server and computer-readable recording medium
CN109359446A (en) * 2018-09-27 2019-02-19 天涯社区网络科技股份有限公司 A kind of cross-domain login validation method in internet

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102938776A (en) * 2012-09-28 2013-02-20 方正国际软件有限公司 Dynamic page processing system based on Asynchronous JavaScript and XML (ajax) technique
CN104239577A (en) * 2014-10-09 2014-12-24 北京奇虎科技有限公司 Method and device for detecting authenticity of webpage data
CN107229633A (en) * 2016-03-24 2017-10-03 北京神州泰岳软件股份有限公司 Static page generation method, Web access method and device
CN107508892A (en) * 2017-08-29 2017-12-22 努比亚技术有限公司 A kind of page access method, server and computer-readable recording medium
CN109359446A (en) * 2018-09-27 2019-02-19 天涯社区网络科技股份有限公司 A kind of cross-domain login validation method in internet

Also Published As

Publication number Publication date
CN110737853A (en) 2020-01-31

Similar Documents

Publication Publication Date Title
CN110737853B (en) Multi-platform display static page data synchronization method and B2B system
US8762556B2 (en) Displaying content on a mobile device
US8868637B2 (en) Page rendering for dynamic web pages
US7739658B2 (en) Web server for remote user devices service and web page generation
US8645453B2 (en) Method and system of processing cookies across domains
CN1799051B (en) Method for browsing contents using page storing file
US8843360B1 (en) Client-side localization of network pages
US20030023638A1 (en) Method and apparatus for processing content
CN104063460A (en) Method and device for loading webpage in browser
US8682964B1 (en) Progressively loading network content
US9275018B2 (en) Techniques for analyzing web pages to determine font subsets
US9984052B2 (en) Verifying content of resources in markup language documents
WO2007070404A2 (en) Customized container document modules using preferences
CN106897336A (en) Web page files sending method, webpage rendering intent and device, webpage rendering system
CN113382083B (en) Webpage screenshot method and device
US8839126B1 (en) Secure HTML components for building client-side user interface
US20120030562A1 (en) Device and method for generating customized webpages
CN103823841A (en) Method and device for increasing browsing speed for mobile terminal client
CN106202368B (en) Preloading method and device
US20020026529A1 (en) Automatic display method and apparatus for update information, and medium storing program for the method
JP4405695B2 (en) Update information automatic display method, apparatus, medium, and program
CN116304458B (en) Method, device, equipment and medium for web page real-time notification update
CN111368231B (en) Method and device for testing heterogeneous redundancy architecture website
KR20020027176A (en) Customized intelligence information providing system and method thereof, and A saving device readable by computer
CN110147478B (en) Webpage subject term obtaining method and system, server and user terminal

Legal Events

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