CN110737853A - method for synchronizing data of multi-platform display static pages and B2B system - Google Patents

method for synchronizing data of multi-platform display static pages and B2B system Download PDF

Info

Publication number
CN110737853A
CN110737853A CN201910840397.8A CN201910840397A CN110737853A CN 110737853 A CN110737853 A CN 110737853A CN 201910840397 A CN201910840397 A CN 201910840397A CN 110737853 A CN110737853 A CN 110737853A
Authority
CN
China
Prior art keywords
page
static
pages
sentences
official
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.)
Granted
Application number
CN201910840397.8A
Other languages
Chinese (zh)
Other versions
CN110737853B (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

Abstract

The invention discloses an multi-platform display static page data synchronization method and a B2B system.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 platform at a client, selects a page which is related to the 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 page and the page to be synchronized, can display the pages on different types of platforms, realizes the synchronization of static page data on the premise of ensuring the integrity of the webpage data according to the characteristics of the static pages, corrects the final data error or updates the problems of the static page confusion and data redundancy read from a server according to the asynchronous error data of the current static page, and is suitable for the B2B systems of various terminal platforms.

Description

method for synchronizing data of multi-platform display static pages and B2B system
Technical Field
The present disclosure relates to, but not limited to, the technical field of multi-network convergence, data synchronization, and communication, and in particular, to multi-platform static page display data synchronization methods and B2B systems.
Background
The user directly accesses the static page of the enterprise-level mall after logging in the official network 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 a PC computer edition official network, a mobile phone mobile official network, a WeChat public official network, an android enterprise official APP, an enterprise library B2B push , a WeChat official applet and a Baidu official applet.
The static page displayed by the seven-network platform refers to displaying the webpage content as a hypertext markup language file on various platforms, the file is stored in a server of a website and is directly displayed at the display ends of various platforms, however, when the static page cannot autonomously synchronize and update the page on various platforms of different types, but the data is re-read again each time to update the server static page of the website, when a plurality of similar static pages are edited, browsed or switched simultaneously, the updated data on each static page is often asynchronous with the data finally stored at the server end due to misoperation, or the data error occurs due to the fact that the called static pages are too close, CMS blockage is easily caused by triggering of the synchronized data to affect the abnormal display of other static pages, all the pages of the static website are directly read from the server, so that in the existing method, the synchronous update of the dynamic data cannot be realized, especially, under the current multi-platform display (namely, different terminal devices, operating systems and browsers) application pages are difficult to realize the synchronous update of the dynamic data, and the problem that the static page data is difficult to realize the synchronous update of the synchronous with the dynamic data is more difficult to realize the synchronous update of the static pages, namely, the static page synchronization of the static page is not found by the technical problem that the static page, the static page synchronization of the static page is not found in the problem that the static data is the problem that the static page is disordered data is not found by the technical problem that the static page synchronization of the static page is not needed data is solved according to be displayed by the current multiple platform display, the static.
Disclosure of Invention
In order to solve the above problems, the present disclosure provides methods for synchronizing data of multiple platforms displaying static pages and a technical solution of a B2B system, and according to a static page indicated by a static page access request and an opened static page in a browser, a page related to the th page in the opened static page in the browser is selected as a page to be synchronized, so as to complete data synchronization between the th page and the page to be synchronized, and the page to be synchronized can be displayed on different types of platforms.
To achieve the above object, according to the aspect of the present disclosure, there is provided multi-platform presentation static page data synchronization method, the method comprising the steps of:
a user directly accesses a static page of the 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 a PC computer edition official website, a mobile phone mobile official website, a WeChat public number official website, an android enterprise official APP, an enterprise library B2B push , a WeChat small program official website and a Baidu small program official website.
The PC version official website refers to an official website page logged in by a computer, the accessed website is started as www, and the current is mainly displayed in the main display size of resolution such as 1330 × 960, 1440 × 900, 1024 × 768, 1920 × 1080 and the like;
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 PUSH is used for logging in an official website page for an enterprise library platform, 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 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 shopping mall is a commercial website of a company, such as an e-commerce platform, a network push page of the company and the like;
the official website page is a static page, the official website is short for official website, refers to the website of a company, and the official website page is the 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 an th page, wherein the th page comprises static web pages required to be accessed by the user and/or all other static web pages currently associated with the static web pages;
preferably, the browser of the client receives a static page access request from a user, and the specific method for using the static page indicated by the static page access request as the th page includes that the user triggers the static page through the client, and the static page generation triggering conditions are condition 1 and condition 2:
the condition 1 is: the user manually clicks to generate a static page:
when a user enters a background of a seven-network platform and clicks a cache clearing button, the browser adjusts to a static page to generate a website and transmits relevant parameters for generating the static page, and then a page is obtained by a static page generating method and the generated static page content is displayed after the processing is finished;
the condition 2 is: when the relevant static page is requested:
the related static page is a static page which is appointed by a browser, when a user accesses an appointed static page url path, whether the accessed static file is successfully generated or not is judged, if the static file of the appointed url path does not exist, a static page generation method is called to obtain a th page, and the generated static page content after the processing is finished is displayed.
The static page generation method comprises the following steps:
s1: checking access validity and parameter format;
s2: checking whether the appointed user information exists or not, and continuing if the appointed user information exists;
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 th page from static pages opened in a browser as a page to be synchronized;
the page related to the th page is a page directly connected with the url path of the th page;
the th page sends a url request to a website server, the website server selects to read the information file of the th page according to the url request, and simultaneously reads the static html file of the th page into an internal 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 an th 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 a th object, thereby completing data synchronization of the th 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 as well as a static presentation page template corresponding to a brief description page corresponding to each of the cached webpages and complete teletext content for generating the brief description page.
, the method for selecting the page related to the 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 th page), namely removing all formatting information and HTML tags in the static pages to obtain text content, and dividing the text content into or a plurality of sentences according to the dividers by taking commas and semicolons as dividers;
s200, selecting th sentences of which the length of characters is greater than a length threshold value in all the sentences, wherein the length threshold value is 6 characters and can be manually adjusted;
s300, calculating MD5 values of sentences for all sentences according to MD5 message digest algorithm;
s400, dividing all the th 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; 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 for times by circularly shifting bytes of the MD5 value of the second sentence until the shift is finished by 16 bits, and obtaining 16 xM hash values in total because the MD5 value is 128 bits (16 bytes);
s700, comparing all the hash values of all the static pages and the th page, wherein if at least identical hash values exist between a static page and the th page, the static page is related to the th 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 multi-platform presentation static page data synchronization B2B system, wherein the B2B system comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, and the processor executes the computer program to run in the following units of the system:
a page access request unit, configured to receive a static page access request from a user by a browser of a client, and use a static page indicated by the static page access request as an th page, where the th 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 identifying the page to be synchronized comprises the following steps of:
s100, sequentially dividing the webpage documents in all static pages in the browser of the client into a set of sentences (including the th page), namely removing all formatting information and HTML tags in the static pages to obtain text content, and dividing the text content into or a plurality of sentences according to the dividers by taking commas and semicolons as dividers;
s200, selecting th sentences of which the length of characters is greater than a length threshold value in all the sentences, wherein the length threshold value is 6 characters and can be manually adjusted;
s300, calculating MD5 values of sentences for all sentences according to MD5 message digest algorithm;
s400, dividing all the th 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; 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 for times by circularly shifting bytes of the MD5 value of the second sentence until the shift is finished by 16 bits, and obtaining 16 xM hash values in total because the MD5 value is 128 bits (16 bytes);
s700, comparing all the hash values of all the static pages and the th page, wherein if at least identical hash values exist between a static page and the th page, the static page is related to the th page, and the static page is the page to be synchronized;
an information file request unit, configured to send a url request to a website server from the th page, where the website server selects to read the information file from the th page according to the url request, and reads the static html file from the th page into an internal 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 an th object, extracting codes of the script file from the information file of the page to be synchronized, binding the codes of the script file into the static html file of the page to be synchronized, and configuring the codes into a th object, so that the data synchronization of the th 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 method has the advantages that multi-platform display static page data synchronization methods and a B2B system are provided, according to the characteristics of static pages, on the premise that the integrity of webpage data is guaranteed, the synchronization of the static page data is achieved, the problem that the data in a webpage cache displayed by each static page is not is corrected, so that the data stored to a server end are different, the final data are wrong, or the problems of confusion and data redundancy of the static page read from the server are updated according to the asynchronous wrong data of the current static page are solved, and the method is suitable for various B2B systems of terminal platforms.
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 to be understood that the drawings in the following description are merely embodiments of the present disclosure and that other drawings may be derived therefrom by those skilled in the art without the benefit of the teachings herein, and in which:
FIG. 1 is a flow chart of a login method of seven-mesh platforms;
FIG. 2 is a flow chart illustrating a method for synchronizing data of multiple platform presentation static pages;
FIG. 3 is a block diagram of a multi-platform presentation static page data synchronization B2B system.
Detailed Description
The conception, specific structure and technical effects of the present disclosure will be clearly and completely described below in conjunction with the embodiments and the accompanying drawings to fully understand the objects, aspects and effects of the present disclosure. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
Fig. 1 is a flowchart illustrating a login method of seven-network platforms in fig. 1, fig. 2 is a flowchart illustrating a synchronization method of multi-platform presentation static page data, and the following describes the synchronization method of multi-platform presentation static page data according to an embodiment of the present disclosure with reference to fig. 1 and fig. 2.
The disclosure provides an method for synchronizing data of multiple platform display static pages, which specifically comprises the following steps:
a user directly accesses a static page of the 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 a PC computer edition official website, a mobile phone mobile official website, a WeChat public number official website, an android enterprise official APP, an enterprise library B2B push , a WeChat small program official website and a Baidu small program official website.
The PC version official website refers to an official website page logged in by a computer, the accessed website is started as www, and the current is mainly displayed in the main display size of resolution such as 1330 × 960, 1440 × 900, 1024 × 768, 1920 × 1080 and the like;
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 PUSH is used for logging in an official website page for an enterprise library platform, 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 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 shopping mall is a commercial website of a company, such as an e-commerce platform, a network push page of the company and the like;
the official website page is a static page, the official website is short for official website, refers to the website of a company, and the official website page is the 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 an th page, wherein the th page comprises static web pages required to be accessed by the user and/or all other static web pages currently associated with the static web pages;
selecting a page related to the th page from static pages opened in a browser as a page to be synchronized;
the th page sends a url request to a website server, the website server selects to read the information file of the th page according to the url request, and simultaneously reads the static html file of the th page into an internal 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 an th 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 a th object, thereby completing data synchronization of the th 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;
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 as well as a static presentation page template corresponding to a brief description page corresponding to each of the cached webpages and complete teletext content for generating the brief description page.
, the method for selecting the page related to the 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 th page), namely removing all formatting information and HTML tags in the static pages to obtain text content, and dividing the text content into or a plurality of sentences according to the dividers by taking commas and semicolons as dividers;
s200, selecting th sentences of which the length of characters is greater than a length threshold value in all the sentences, wherein the length threshold value is 6 characters and can be manually adjusted;
s300, calculating MD5 values of sentences for all sentences according to MD5 message digest algorithm;
s400, dividing all the th 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; 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 for times by circularly shifting bytes of the MD5 value of the second sentence until the shift is finished by 16 bits, and obtaining 16 xM hash values in total because the MD5 value is 128 bits (16 bytes);
s700, comparing all the hash values of all the static pages and the th page, wherein if at least identical hash values exist between a static page and the th page, the static page is related to the th page, and the static page is the page to be synchronized;
the multi-platform presentation static page data synchronization B2B systems provided by the embodiments of the present disclosure are, as shown in fig. 3, a multi-platform presentation static page data synchronization B2B system structure diagram of the present disclosure, and the multi-platform presentation static page data synchronization B2B systems of the embodiments include a processor, a memory, and a computer program stored in the memory and operable on the processor, where the processor implements the steps in the above-mentioned multi-platform presentation static page data synchronization B2B system embodiments when executing the computer program.
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 following system:
a page access request unit, configured to receive a static page access request from a user by a browser of a client, and use a static page indicated by the static page access request as an th page, where the th 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 identifying the page to be synchronized comprises the following steps of:
s100, sequentially dividing the webpage documents in all static pages in the browser of the client into a set of sentences (including the th page), namely removing all formatting information and HTML tags in the static pages to obtain text content, and dividing the text content into or a plurality of sentences according to the dividers by taking commas and semicolons as dividers;
s200, selecting th sentences of which the length of characters is greater than a length threshold value in all the sentences, wherein the length threshold value is 6 characters and can be manually adjusted;
s300, calculating MD5 values of sentences for all sentences according to MD5 message digest algorithm;
s400, dividing all the th 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; 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 for times by circularly shifting bytes of the MD5 value of the second sentence until the shift is finished by 16 bits, and obtaining 16 xM hash values in total because the MD5 value is 128 bits (16 bytes);
s700, comparing all the hash values of all the static pages and the th page, wherein if at least identical hash values exist between a static page and the th page, the static page is related to the th page, and the static page is the page to be synchronized;
an information file request unit, configured to send a url request to a website server from the th page, where the website server selects to read the information file from the th page according to the url request, and reads the static html file from the th page into an internal 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 an th object, extracting codes of the script file from the information file of the page to be synchronized, binding the codes of the script file into the static html file of the page to be synchronized, and configuring the codes into a th object to complete data synchronization of the th 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, analyzing the character string in the html format into an html page by the browser, and executing the code of the corresponding script file by the html page.
The multiple-platform presentation static page data synchronization B2B system may include, but is not limited to, a processor and a memory, it will be understood by those skilled in the art that the examples are merely examples of the multiple-platform presentation static page data synchronization B2B system, and do not constitute a limitation of the multiple-platform presentation static page data synchronization B2B system, and may include more or less components than a proportion, or may combine some components, or different components, for example, the multiple-platform presentation static page data synchronization B2B system may further include an input and output device, a network access device, a bus, and the like.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Array (FPGA) or other Programmable logic device, a discrete or transistor logic device, a discrete hardware component, 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 multi-platform presentation static page data synchronization B2B system operating system, and various interfaces and lines are used to connect various parts of the entire multi-platform presentation static page data synchronization B2B system operating system.
The memory may be used for storing the computer programs and/or modules, and the processor may implement 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 data stored in the memory, the memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, application programs (such as a sound playing function, an image playing function, and the like) required for at least functions, and the data storage area may store data (such as audio data, a phonebook, and the like) created according to the use of a mobile phone.
While the present disclosure has been described in considerable detail and with reference to certain illustrated embodiments thereof, it is not intended to be limited to any such details or embodiments or any particular embodiments, but it is to be understood that it is intended to cover the intended scope of the disclosure effectively by reference to the appended claims, which include the possibility of providing -sense to such claims in view of the prior art.

Claims (7)

1, A method for synchronizing data of multiple platform display static pages, comprising the following steps:
the user accesses the static page of the enterprise-level mall after logging in the official website of the enterprise-level mall through the seven-mesh platform at the client,
the seven-network platform comprises but is not limited to a PC computer official network, a mobile phone official network, a WeChat public official network, an android enterprise official APP, an enterprise library B2B push , a WeChat small program official network and a Baidu 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, 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 PUSH is used for logging in an official website page for an enterprise library platform, 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 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.
2, A method for synchronizing data of multiple platform display static pages, 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 an th page, wherein the th page comprises static web pages required to be accessed by the user and/or all other static web pages currently associated with the static web pages;
selecting a page related to the th page from static pages opened in a browser as a page to be synchronized;
the th page sends a url request to a website server, the website server selects to read the information file of the th page according to the url request, and simultaneously reads the static html file of the th page into an internal 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 an th 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 a th object, thereby completing data synchronization of the th page and the page to be synchronized.
3. The method for synchronizing data of multiple-platform presentation static pages according to claim 2, wherein the static pages comprise a list of cached netpages and a static presentation page template corresponding to a profile page corresponding to each cached netpage and complete teletext content for generating the profile page.
4. The method for synchronizing data of multi-platform presentation static pages according to claim 3, wherein the method for selecting the page related to the th 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, namely removing all formatting information and HTML labels in the static pages to obtain -th text content, and dividing the -th text content into or a plurality of sentences according to the dividers by taking commas and semicolons as dividers;
s200, selecting th sentences of which the length of characters is greater than a length threshold value in all the sentences;
s300, calculating MD5 values of sentences for all sentences according to MD5 message digest algorithm;
s400, dividing all the th 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, the default value M is 10, N is 5, P is 100, and P is larger than 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 for times by circularly shifting bytes of the MD5 value of the second sentence until 16 bits are shifted, and obtaining 16 multiplied by M hash values in total;
s700, comparing all the hash values of the static pages and the th page, wherein if at least identical hash values exist between the static pages and the th page, the static pages are the pages to be synchronized.
5. The method for synchronizing data of multi-platform presentation static pages, according to claim 3 or 4, wherein the website server returns html-formatted character strings to the browser and informs the browser to parse with html.
6. The method of claim 4, wherein the website server returns html-formatted strings after data synchronization to the browser, the browser parses the html-formatted strings into html pages, and executes corresponding script file codes from the html pages to generate complete graphics content of introduction pages and to display the static pages to the client.
7, A multi-platform presentation 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 and running in the units of the following system:
a page access request unit, configured to receive a static page access request from a user by a browser of a client, and use a static page indicated by the static page access request as an th page, where the th 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 identifying the page to be synchronized comprises the following steps of:
s100, sequentially dividing the webpage documents in all static pages in the browser of the client into a set of sentences, namely removing all formatting information and HTML labels in the static pages to obtain -th text content, and dividing the -th text content into or a plurality of sentences according to the dividers by taking commas and semicolons as dividers;
s200, selecting th sentences of which the length of characters is greater than a length threshold value in all the sentences;
s300, calculating MD5 values of sentences for all sentences according to MD5 message digest algorithm;
s400, dividing all the th 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;
s600, calculating and storing the 128-bit hash value of the second sentence for times by circularly shifting bytes of the MD5 value of the second sentence until 16 bits are shifted, and obtaining 16 multiplied by M hash values in total;
s700, comparing all the hash values of the static pages and the th page, wherein if at least identical hash values exist between the static pages and the th page, the static pages are the pages to be synchronized;
an information file request unit, configured to send a url request to a website server from the th page, where the website server selects to read the information file from the th page according to the url request, and reads the static html file from the th page into an internal 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 an th object, extracting codes of the script file from the information file of the page to be synchronized, binding the codes of the script file into the static html file of the page to be synchronized, and configuring the codes into a th object, so that the data synchronization of the th 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 true CN110737853A (en) 2020-01-31
CN110737853B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111431767A (en) * 2020-03-26 2020-07-17 深圳壹账通智能科技有限公司 Multi-browser resource synchronization method and device, computer equipment and storage medium
CN112905944A (en) * 2021-04-06 2021-06-04 成都新希望金融信息有限公司 Page online dynamic generation method and device, electronic equipment and readable storage medium
CN115033335A (en) * 2022-08-11 2022-09-09 青岛中正合力软件有限公司 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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111431767A (en) * 2020-03-26 2020-07-17 深圳壹账通智能科技有限公司 Multi-browser resource synchronization method and device, computer equipment and storage medium
CN112905944A (en) * 2021-04-06 2021-06-04 成都新希望金融信息有限公司 Page online dynamic generation method and device, electronic equipment and readable storage medium
CN115033335A (en) * 2022-08-11 2022-09-09 青岛中正合力软件有限公司 Display processing method applied to same screen of webpage
CN115033335B (en) * 2022-08-11 2023-01-10 青岛中正合力软件有限公司 Display processing method applied to same screen of webpage

Also Published As

Publication number Publication date
CN110737853B (en) 2023-04-18

Similar Documents

Publication Publication Date Title
US9529780B2 (en) Displaying content on a mobile device
US10108595B2 (en) Method and system for automated analysis and transformation of web pages
CN1799051B (en) Method for browsing contents using page storing file
CN104063460A (en) Method and device for loading webpage in browser
US20030023638A1 (en) Method and apparatus for processing content
US10015226B2 (en) Methods for making AJAX web applications bookmarkable and crawlable and devices thereof
EP1641211A2 (en) Web server and method for dynamic content.
US20170199850A1 (en) Method and system to decrease page load time by leveraging network latency
US20100180192A1 (en) Dynamically configuring a presentation layer associated with a webpage delivered to a client device
US8843360B1 (en) Client-side localization of network pages
CN110737853B (en) Multi-platform display static page data synchronization method and B2B system
CN103605688A (en) Intercept method and intercept device for homepage advertisements and browser
KR20070117703A (en) Method and system for transferring web browser data between web browsers
WO2000039666A1 (en) Converting content of markup data for wireless devices
US9984052B2 (en) Verifying content of resources in markup language documents
US20120072831A1 (en) Method for creating a multi-lingual web page
EP2399209A1 (en) Content access platform and methods and apparatus providing access to internet content for heterogeneous devices
CN103823841A (en) Method and device for increasing browsing speed for mobile terminal client
JP4405695B2 (en) Update information automatic display method, apparatus, medium, and program
US20060015578A1 (en) Retrieving dated content from a website
JP2002351781A (en) Content generating device using screen display page layout
KR101498920B1 (en) Web page pre-caching system and method for offline-executing
EP2144160A1 (en) Method and computer system for providing stateful favorites
CN107704476B (en) Method for accelerating display of Asian language family fonts on webpage, font server and browser end
KR20040082816A (en) Various language supporting method and system upon wireless network

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