CN104731801B - A kind of method for realizing page adaptation, platform and system - Google Patents
A kind of method for realizing page adaptation, platform and system Download PDFInfo
- Publication number
- CN104731801B CN104731801B CN201310710737.8A CN201310710737A CN104731801B CN 104731801 B CN104731801 B CN 104731801B CN 201310710737 A CN201310710737 A CN 201310710737A CN 104731801 B CN104731801 B CN 104731801B
- Authority
- CN
- China
- Prior art keywords
- page
- service platform
- adaptation
- mobile terminal
- adaptation service
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000006978 adaptation Effects 0.000 title claims abstract description 147
- 238000000034 method Methods 0.000 title claims abstract description 25
- 238000012795 verification Methods 0.000 claims abstract description 62
- 238000010586 diagram Methods 0.000 description 8
- 238000012423 maintenance Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Landscapes
- Telephonic Communication Services (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明公开了一种实现页面适配的方法,网站服务器接收到移动终端浏览器发送的页面访问请求消息时,根据页面访问请求消息中携带的用户代理UA标识从适配服务平台获取适配的页面版式;网站服务器向移动终端返回所述适配的页面版式时,在所述适配的页面版式上添加能自动向适配服务平台发出校验请求的校验信息;适配服务平台根据是否收到校验请求来判断移动终端浏览器是否能够支持所推送的适配的页面版式,并根据判断结果调整相应UA标识对应的各页面版式的权重。本发明还同时公开了一种实现页面适配的平台及系统。采用本发明的技术方案,能针对不同移动终端浏览器自动推送适合该移动终端浏览器展示的页面版式,使适配更灵活、更准确。
The invention discloses a method for realizing page adaptation. When a website server receives a page access request message sent by a mobile terminal browser, it obtains an adapted page from an adaptation service platform according to a user agent UA identifier carried in the page access request message. Page layout; when the website server returns the adapted page layout to the mobile terminal, add verification information that can automatically send a verification request to the adaptation service platform on the adapted page layout; Receive the verification request to determine whether the mobile terminal browser can support the pushed adapted page layout, and adjust the weight of each page layout corresponding to the corresponding UA identifier according to the judgment result. The invention also discloses a platform and a system for realizing page adaptation at the same time. By adopting the technical solution of the present invention, it is possible to automatically push page layouts suitable for different mobile terminal browsers to be displayed by the mobile terminal browsers, so that the adaptation is more flexible and accurate.
Description
技术领域technical field
本发明涉及通信及适配技术,尤其涉及一种实现浏览器页面适配的方法、平台及系统。The invention relates to communication and adaptation technology, in particular to a method, platform and system for realizing browser page adaptation.
背景技术Background technique
随着移动网络和互联网的融合,更随着移动终端越来越智能化,用户能够通过移动终端访问更多的互联网资源,尤其是海量的页面更成为迫切的需求。With the integration of mobile networks and the Internet, and as mobile terminals become more and more intelligent, users can access more Internet resources through mobile terminals, especially massive pages, which have become an urgent need.
目前,面向移动终端浏览器访问的网站服务器一般需要根据浏览器的支持能力为移动终端浏览器推送不同的页面版式,如无线标记语言(WML,Wireless Markup Language)版、超文本标记语言(HTML,Hypertext Markup Language)版、触摸(Touch)版等。通常,网站服务器根据移动终端发送的超文本传输协议(HTTP,Hyper Text Transport Protocol)请求中用户代理(UA,User Agent)等信息进行关键词匹配,判断该浏览器适合哪种页面版式,并推送与其适配的页面版式。但是,这种方法需要事先搭建关键词信息库,并需要工作人员持续维护才能保证判断的准确性。At present, web servers for mobile terminal browsers generally need to push different page formats for mobile terminal browsers according to the browser's support capabilities, such as Wireless Markup Language (WML, Wireless Markup Language) version, Hypertext Markup Language (HTML, Hypertext Markup Language) version, touch (Touch) version, etc. Usually, the website server performs keyword matching based on information such as the user agent (UA, User Agent) in the hypertext transfer protocol (HTTP, Hyper Text Transport Protocol) request sent by the mobile terminal, determines which page layout is suitable for the browser, and pushes The appropriate page layout. However, this method needs to build a keyword information database in advance, and requires continuous maintenance by the staff to ensure the accuracy of the judgment.
发明内容Contents of the invention
有鉴于此,本发明实施例的主要目的在于提供一种实现浏览器页面适配的方法、平台及系统,能针对不同移动终端浏览器自动推送适合该移动终端浏览器展示的页面版式。In view of this, the main purpose of the embodiments of the present invention is to provide a method, platform and system for implementing browser page adaptation, which can automatically push page layouts suitable for different mobile terminal browsers to be displayed by the mobile terminal browser.
为达到上述目的,本发明实施例的技术方案是这样实现的:In order to achieve the above object, the technical solution of the embodiment of the present invention is achieved in this way:
本发明实施例提供了一种实现页面适配的方法适配服务平台中预先配置有各UA标识以及与所述各UA标识对应的页面版式的权重;所述方法还包括:The embodiment of the present invention provides a method for realizing page adaptation. The adaptation service platform is pre-configured with each UA identification and the weight of the page layout corresponding to each UA identification; the method also includes:
网站服务器接收到移动终端浏览器发送的页面访问请求消息时,根据所述页面访问请求消息中携带的UA标识从所述适配服务平台获取适配的页面版式;When the website server receives the page access request message sent by the mobile terminal browser, it obtains the adapted page format from the adaptation service platform according to the UA identifier carried in the page access request message;
所述网站服务器向移动终端返回与所述适配的页面版式对应的页面时,在所述页面中添加校验信息;When the web server returns a page corresponding to the adapted page layout to the mobile terminal, adding verification information to the page;
其中,所述校验信息为在移动终端成功展示所述页面时,能自动向所述适配服务平台发出校验请求的校验信息。Wherein, the verification information is verification information that can automatically send a verification request to the adaptation service platform when the mobile terminal successfully displays the page.
优选地,所述方法还包括:Preferably, the method also includes:
所述适配服务平台根据是否收到校验请求来判断移动终端浏览器是否支持所述适配服务平台所推送的适配的页面版式,并根据判断结果调整相应UA标识对应的各页面版式的权重。The adaptation service platform judges whether the mobile terminal browser supports the adapted page format pushed by the adaptation service platform according to whether the verification request is received, and adjusts the format of each page format corresponding to the corresponding UA identifier according to the judgment result. Weights.
优选地,所述适配服务平台中预先配置各UA标识以及与所述各UA标识对应的页面版式的权重时,默认各权重均相同。Preferably, when the weights of each UA ID and the page layout corresponding to each UA ID are pre-configured in the adaptation service platform, all weights are the same by default.
优选地,根据所述页面访问请求消息中携带的UA标识从所述适配服务平台获取适配的页面版式,包括:Preferably, the adapted page format is acquired from the adaptation service platform according to the UA identifier carried in the page access request message, including:
网站服务器根据所述页面访问请求消息中携带的UA标识向所述适配服务平台发送适配请求;The website server sends an adaptation request to the adaptation service platform according to the UA identifier carried in the page access request message;
所述适配服务平台接收到所述网站服务器发送的适配请求时,根据存储的与该UA标识对应的各页面版式的权重,向所述网站服务器返回适配的页面版式。When the adaptation service platform receives the adaptation request sent by the website server, it returns the adapted page layout to the website server according to the stored weight of each page layout corresponding to the UA identifier.
优选地,所述根据与该UA标识对应的各页面版式的权重,向所述网站服务器返回适配的页面版式,包括:Preferably, according to the weight of each page layout corresponding to the UA identifier, returning an adapted page layout to the website server includes:
当与该UA标识对应的各页面版式的权重均相同时,所述适配服务平台随机向所述网站服务器推送适配的页面版式;When the weights of each page layout corresponding to the UA identifier are the same, the adaptation service platform randomly pushes the adapted page layout to the website server;
当与该UA标识对应的各页面版式的权重不相同时,所述适配服务平台向所述网站服务器推送权重最高的适配的页面版式。When the weights of the page layouts corresponding to the UA identifier are different, the adaptation service platform pushes the adapted page layout with the highest weight to the website server.
优选地,所述根据判断结果调整相应UA标识对应的各页面版式的权重,包括:Preferably, said adjusting the weight of each page layout corresponding to the corresponding UA logo according to the judgment result includes:
当判定移动终端浏览器支持所述适配服务平台所推送的适配的页面版式时,增加所述移动终端浏览器发送的页面访问请求消息中携带的UA标识所对应的该页面版式的权重。When it is determined that the mobile terminal browser supports the adapted page layout pushed by the adaptation service platform, increase the weight of the page layout corresponding to the UA identifier carried in the page access request message sent by the mobile terminal browser.
本发明实施例还提供了一种实现页面适配的网站服务器,所述网站服务器包括接收模块、发送模块和添加模块;其中,The embodiment of the present invention also provides a web server for realizing page adaptation, the web server includes a receiving module, a sending module and an adding module; wherein,
所述接收模块,用于接收移动终端浏览器发送的页面访问请求消息;接收适配服务平台返回的适配的页面版式;The receiving module is used to receive the page access request message sent by the mobile terminal browser; receive the adapted page format returned by the adaptation service platform;
所述发送模块,用于根据所述页面访问请求消息中携带的UA标识向所述适配服务平台发送适配请求;向移动终端返回与所述适配的页面版式对应的页面;The sending module is configured to send an adaptation request to the adaptation service platform according to the UA identifier carried in the page access request message; return a page corresponding to the adapted page format to the mobile terminal;
所述添加模块,用于在所述发送模块向移动终端返回的页面中添加校验信息;其中,所述校验信息为在移动终端成功展示所述页面时,能自动向所述适配服务平台发出校验请求的校验信息。The adding module is used to add verification information to the page returned by the sending module to the mobile terminal; wherein, the verification information is automatically sent to the adaptation service when the mobile terminal successfully displays the page The verification information of the verification request issued by the platform.
本发明实施例还提供了一种实现页面适配的适配服务平台,所述适配服务平台包括收发模块、判断模块、调整模块和存储模块;其中,The embodiment of the present invention also provides an adaptation service platform for realizing page adaptation, the adaptation service platform includes a transceiver module, a judgment module, an adjustment module and a storage module; wherein,
所述收发模块,用于接收网站服务器发送的适配请求;根据所述存储模块存储的与所述UA对应的各页面版式的权重,向网站服务器返回适配的页面版式;The transceiver module is configured to receive an adaptation request sent by a website server; and return an adapted page layout to the website server according to the weight of each page layout corresponding to the UA stored in the storage module;
所述判断模块,用于根据是否收到校验请求来判断该移动终端浏览器是否支持所推送的适配的页面版式;The judging module is used to judge whether the mobile terminal browser supports the pushed adapted page format according to whether the verification request is received;
所述调整模块,用于根据所述判断模块的判断结果调整相应UA标识对应的各页面版式的权重;The adjustment module is configured to adjust the weight of each page layout corresponding to the corresponding UA logo according to the judgment result of the judgment module;
所述存储模块,用于预先配置有各UA标识以及与所述各UA标识对应的页面版式的权重。The storage module is configured to be pre-configured with UA identifiers and page layout weights corresponding to the UA identifiers.
优选地,所述存储模块,还用于:Preferably, the storage module is also used for:
预先配置各UA标识以及与所述各UA标识对应的页面版式的权重时,默认各权重均相同。When the weights of each UA ID and the page layout corresponding to each UA ID are configured in advance, all weights are the same by default.
优选地,所述调整模块,还用于当判定移动终端浏览器支持所述适配服务平台所推送的适配的页面版式时,增加所述移动终端浏览器发送的页面访问请求消息中携带的UA标识所对应的该页面版式的权重。Preferably, the adjustment module is further configured to increase the page format carried in the page access request message sent by the mobile terminal browser when it is determined that the mobile terminal browser supports the adapted page format pushed by the adaptation service platform. The weight of the page layout corresponding to the UA identifier.
本发明实施例还提供了一种实现页面适配的系统,所述系统包括移动终端、网站服务器和适配服务平台;其中,The embodiment of the present invention also provides a system for realizing page adaptation, the system includes a mobile terminal, a website server and an adaptation service platform; wherein,
所述移动终端,用于向所述网站服务器发送所述移动终端的浏览器页面访问请求消息;还用于在所述移动终端成功展示所述网站服务器返回的适配的页面版式时,自动向所述适配服务平台发送校验请求;其中,所述网站服务器返回的适配的页面版式中添加有能自动向所述适配服务平台发出校验请求的校验信息;The mobile terminal is configured to send the browser page access request message of the mobile terminal to the website server; it is also used to automatically send the mobile terminal the page format returned by the website server when the mobile terminal successfully displays the adapted page layout. The adaptation service platform sends a verification request; wherein, the adapted page format returned by the website server is added with verification information that can automatically send a verification request to the adaptation service platform;
所述网站服务器为上文所述的网站服务器;The web server is the web server mentioned above;
所述适配服务平台为上文所述的适配服务平台。The adaptation service platform is the adaptation service platform mentioned above.
本发明实施例所提供的实现浏览器页面适配的方法、平台及系统,网站服务器接收到移动终端浏览器发送的页面访问请求消息时,根据页面访问请求消息中携带的UA标识从适配服务平台获取适配的页面版式;网站服务器向移动终端返回所述适配的页面版式时,在所述适配的页面版式上添加能自动向适配服务平台发出校验请求的校验信息;适配服务平台根据是否收到校验请求来判断移动终端浏览器是否能够支持所推送的适配的页面版式,并根据判断结果调整相应UA标识对应的各页面版式的权重;如此,能实现针对不同移动终端浏览器自动推送适合该终端浏览器展示的页面版式。In the method, platform, and system for implementing browser page adaptation provided by the embodiments of the present invention, when the website server receives the page access request message sent by the mobile terminal browser, it starts from the adaptation service according to the UA identifier carried in the page access request message. The platform obtains the adapted page format; when the website server returns the adapted page format to the mobile terminal, it adds verification information that can automatically send a verification request to the adaptation service platform on the adapted page format; The configuration service platform judges whether the mobile terminal browser can support the pushed adapted page layout according to whether the verification request is received, and adjusts the weight of each page layout corresponding to the corresponding UA logo according to the judgment result; The mobile terminal browser automatically pushes the page layout suitable for display by the terminal browser.
另外,采用本发明实施例所提供的技术方案,不仅弥补了现有方法需要人员持续维护的弊端,降低了资源消耗;也弥补了现有方法无法实时完善适配准确性的缺点,使适配更灵活、更准确。In addition, the adoption of the technical solutions provided by the embodiments of the present invention not only makes up for the disadvantages of the existing methods that require continuous maintenance by personnel and reduces resource consumption; it also makes up for the shortcomings of the existing methods that cannot improve the accuracy of adaptation in real time, making the adaptation More flexible and more accurate.
附图说明Description of drawings
图1为本发明实施例实现页面适配的方法流程示意图;FIG. 1 is a schematic flowchart of a method for implementing page adaptation according to an embodiment of the present invention;
图2为本发明实施例实现页面适配的网站服务器的组成结构示意图;FIG. 2 is a schematic diagram of the composition and structure of a web server implementing page adaptation in an embodiment of the present invention;
图3为本发明实施例实现页面适配的适配服务平台的组成结构示意图;FIG. 3 is a schematic diagram of the composition and structure of an adaptation service platform for realizing page adaptation according to an embodiment of the present invention;
图4为本发明实施例实现页面适配的系统的组成结构示意图;FIG. 4 is a schematic structural diagram of a system for realizing page adaptation according to an embodiment of the present invention;
图5为本发明实施例移动终端浏览器智能适配的具体流程示意图。FIG. 5 is a schematic diagram of a specific flow of intelligent adaptation of a mobile terminal browser according to an embodiment of the present invention.
具体实施方式detailed description
下面结合附图及具体实施例对本发明作进一步详细的说明。The present invention will be described in further detail below in conjunction with the accompanying drawings and specific embodiments.
图1为本发明实施例实现页面适配的方法流程示意图,如图1所示,所述方法主要包括:Fig. 1 is a schematic flowchart of a method for implementing page adaptation according to an embodiment of the present invention. As shown in Fig. 1, the method mainly includes:
步骤101:适配服务平台中预先配置有各UA标识以及与所述各UA标识对应的页面版式的权重;Step 101: The adaptation service platform is pre-configured with each UA ID and the weight of the page layout corresponding to each UA ID;
优选地,所述适配服务平台中预先配置各UA标识以及与所述各UA标识对应的页面版式的权重时,默认各权重均相同。Preferably, when the weights of each UA ID and the page layout corresponding to each UA ID are pre-configured in the adaptation service platform, all weights are the same by default.
步骤102:网站服务器接收到移动终端浏览器发送的页面访问请求消息时,根据所述页面访问请求消息中携带的UA标识从所述适配服务平台获取适配的页面版式;Step 102: When the website server receives the page access request message sent by the mobile terminal browser, it obtains the adapted page format from the adaptation service platform according to the UA identifier carried in the page access request message;
具体地,根据所述页面访问请求消息中携带的UA标识从所述适配服务平台获取适配的页面版式,包括:Specifically, obtaining the adapted page layout from the adaptation service platform according to the UA identifier carried in the page access request message includes:
网站服务器根据所述页面访问请求消息中携带的UA标识向所述适配服务平台发送适配请求;The website server sends an adaptation request to the adaptation service platform according to the UA identifier carried in the page access request message;
所述适配服务平台接收到所述网站服务器发送的适配请求时,根据存储的与该UA标识对应的各页面版式的权重,向所述网站服务器返回适配的页面版式。When the adaptation service platform receives the adaptation request sent by the website server, it returns the adapted page layout to the website server according to the stored weight of each page layout corresponding to the UA identifier.
具体地,所述根据与该UA标识对应的各页面版式的权重,向所述网站服务器返回适配的页面版式,包括:Specifically, according to the weight of each page layout corresponding to the UA identifier, returning the adapted page layout to the website server includes:
当与该UA标识对应的各页面版式的权重均相同时,所述适配服务平台随机向所述网站服务器推送适配的页面版式;When the weights of each page layout corresponding to the UA identifier are the same, the adaptation service platform randomly pushes the adapted page layout to the website server;
当与该UA标识对应的各页面版式的权重不相同时,所述适配服务平台向所述网站服务器推送权重最高的适配的页面版式。When the weights of the page layouts corresponding to the UA identifier are different, the adaptation service platform pushes the adapted page layout with the highest weight to the website server.
步骤103:所述网站服务器向移动终端返回与所述适配的页面版式对应的页面时,在所述页面中添加校验信息。Step 103: When the website server returns a page corresponding to the adapted page layout to the mobile terminal, add verification information to the page.
优选地,所述校验信息为在移动终端成功展示所述页面时,能自动向所述适配服务平台发出校验请求的校验信息。Preferably, the verification information is verification information that can automatically send a verification request to the adaptation service platform when the mobile terminal successfully displays the page.
比如,所述校验信息可以为一张动态链接的图片或一脚本。For example, the verification information may be a dynamically linked picture or a script.
这里,若在所述页面上放置一张动态链接的图片,若移动终端能成功展示所述页面,所述页面会自动求该图片,所述适配服务平台会接收成功展示的页面发过来的校验请求。Here, if a picture with a dynamic link is placed on the page, if the mobile terminal can successfully display the page, the page will automatically ask for the picture, and the adaptation service platform will receive the message sent by the successfully displayed page. Verify request.
优选地,所述方法进一步包括:Preferably, the method further comprises:
所述适配服务平台根据是否收到校验请求来判断移动终端浏览器是否支持所述适配服务平台所推送的适配的页面版式,并根据判断结果调整相应UA标识对应的各页面版式的权重。The adaptation service platform judges whether the mobile terminal browser supports the adapted page format pushed by the adaptation service platform according to whether the verification request is received, and adjusts the format of each page format corresponding to the corresponding UA identifier according to the judgment result. Weights.
具体地,所述根据判断结果调整相应UA标识对应的各页面版式的权重,包括:Specifically, the adjusting the weight of each page format corresponding to the corresponding UA logo according to the judgment result includes:
当判定移动终端浏览器支持所述适配服务平台所推送的适配的页面版式时,增加所述移动终端浏览器发送的页面访问请求消息中携带的UA标识所对应的该页面版式的权重。When it is determined that the mobile terminal browser supports the adapted page layout pushed by the adaptation service platform, increase the weight of the page layout corresponding to the UA identifier carried in the page access request message sent by the mobile terminal browser.
图2为本发明实施例实现页面适配的网站服务器的组成结构示意图,如图2所示,所述网站服务器包括接收模块21、发送模块22和添加模块23;其中,FIG. 2 is a schematic diagram of the composition and structure of a web server implementing page adaptation in an embodiment of the present invention. As shown in FIG. 2 , the web server includes a receiving module 21, a sending module 22, and an adding module 23; wherein,
所述接收模块21,用于接收移动终端浏览器发送的页面访问请求消息;接收适配服务平台返回的适配的页面版式;The receiving module 21 is configured to receive a page access request message sent by a mobile terminal browser; receive an adapted page format returned by the adaptation service platform;
所述发送模块22,用于根据所述页面访问请求消息中携带的UA标识向所述适配服务平台发送适配请求;向移动终端返回与所述适配的页面版式对应的页面;The sending module 22 is configured to send an adaptation request to the adaptation service platform according to the UA identifier carried in the page access request message; return a page corresponding to the adapted page format to the mobile terminal;
所述添加模块23,用于在所述发送模块22向移动终端返回的页面中添加校验信息;The adding module 23 is configured to add verification information in the page returned by the sending module 22 to the mobile terminal;
其中,所述校验信息为在移动终端成功展示所述页面时,能自动向所述适配服务平台发出校验请求的校验信息。Wherein, the verification information is verification information that can automatically send a verification request to the adaptation service platform when the mobile terminal successfully displays the page.
这里,所述校验信息可以为动态图片或脚本。Here, the verification information may be a dynamic picture or a script.
当所述网站服务器收到移动终端浏览器发送的页面访问请求时,根据页面访问请求中携带的UA标识等以及适配服务平台预先配置的权重向移动终端返回一种页面版式的页面,并在页面中加入校验信息,从而使移动终端浏览器成功展示该页面时,将会自动向适配服务平台发出校验请求。When the website server receives the page access request sent by the mobile terminal browser, it returns a page of a page format to the mobile terminal according to the UA identifier carried in the page access request, etc., and the weight preconfigured by the adaptation service platform. The verification information is added to the page, so that when the mobile terminal browser successfully displays the page, it will automatically send a verification request to the adaptation service platform.
实际应用中,上述添加模块23可由所述网站服务器中的中央处理器(CPU,CentralProcessing Unit)、微处理器(MPU,Micro Processor Unit)、数字信号处理器(DSP,Digital Signal Processor)或现场可编程门阵列(FPGA,Field Programmable GateArray)实现;In actual application, the above-mentioned adding module 23 may be provided by a central processing unit (CPU, Central Processing Unit), a microprocessor (MPU, Micro Processor Unit), a digital signal processor (DSP, Digital Signal Processor) in the website server, or an on-site Programmable gate array (FPGA, Field Programmable GateArray) implementation;
所述接收模块21可由接收机实现;所述发送模块22可由发射机实现。The receiving module 21 can be realized by a receiver; the sending module 22 can be realized by a transmitter.
图3为本发明实施例实现页面适配的适配服务平台的组成结构示意图,如图3所示,所述适配服务平台包括收发模块31、判断模块32、调整模块33和存储模块34;其中,FIG. 3 is a schematic diagram of the composition and structure of an adaptation service platform for page adaptation in an embodiment of the present invention. As shown in FIG. 3 , the adaptation service platform includes a transceiver module 31, a judgment module 32, an adjustment module 33, and a storage module 34; in,
所述收发模块31,用于接收网站服务器发送的适配请求;根据所述存储模块34存储的与所述UA对应的各页面版式的权重,向网站服务器返回适配的页面版式;The transceiving module 31 is configured to receive an adaptation request sent by a website server; and return an adapted page layout to the website server according to the weight of each page layout corresponding to the UA stored in the storage module 34;
所述判断模块32,用于根据是否收到校验请求来判断该移动终端浏览器是否支持所推送的适配的页面版式;The judging module 32 is used to judge whether the mobile terminal browser supports the pushed adapted page format according to whether a verification request is received;
所述调整模块33,用于根据所述判断模块32的判断结果调整相应UA标识对应的各页面版式的权重;The adjustment module 33 is configured to adjust the weight of each page format corresponding to the corresponding UA logo according to the judgment result of the judgment module 32;
所述存储模块34,用于预先配置有各UA标识以及与所述各UA标识对应的页面版式的权重。The storage module 34 is configured to pre-configure each UA ID and the weight of the page layout corresponding to each UA ID.
优选地,所述存储模块34,还用于:Preferably, the storage module 34 is also used for:
在预先配置各UA标识以及与所述各UA标识对应的页面版式的权重时,默认各权重均相同。When pre-configuring the weights of each UA ID and the page layout corresponding to each UA ID, all weights are the same by default.
优选地,所述调整模块33,还用于:Preferably, the adjustment module 33 is also used for:
当判定移动终端浏览器支持所述适配服务平台所推送的适配的页面版式时,增加所述移动终端浏览器发送的页面访问请求消息中携带的UA标识所对应的该页面版式的权重。When it is determined that the mobile terminal browser supports the adapted page layout pushed by the adaptation service platform, increase the weight of the page layout corresponding to the UA identifier carried in the page access request message sent by the mobile terminal browser.
所述适配服务平台保存有与各UA标识对应的页面版式的权重,最初默认各权重均相同;当接收到网站服务器发送的适配请求时,根据UA标识和其对应的各页面版式的权重,向网站服务器返回适配结果;同时,适配服务平台能接收到适配成功的移动终端发送的校验请求,所述适配服务平台根据是否收到校验请求来判断移动终端浏览器是否支持所述适配服务平台所推送的适配的页面版式,并根据判断结果调整相应UA标识对应的各页面版式的权重,从而所述适配服务平台能够实现页面版式推送的自我完善。具体地,所述适配服务平台接收到校验请求时,判定移动终端浏览器支持所述适配服务平台所推送的适配的页面版式,增加相应UA标识对应的该页面版式的权重;所述适配服务平台未接收到校验请求时,判定移动终端浏览器不支持所述适配服务平台所推送的适配的页面版式。The adaptation service platform stores the weights of the page layouts corresponding to each UA ID, and initially defaults to the same weights; , return the adaptation result to the website server; at the same time, the adaptation service platform can receive the verification request sent by the successfully adapted mobile terminal, and the adaptation service platform can judge whether the mobile terminal browser is Support the adapted page layout pushed by the adaptation service platform, and adjust the weight of each page layout corresponding to the corresponding UA identifier according to the judgment result, so that the adaptation service platform can realize the self-improvement of page layout push. Specifically, when the adaptation service platform receives the verification request, it determines that the mobile terminal browser supports the adapted page layout pushed by the adaptation service platform, and increases the weight of the page layout corresponding to the corresponding UA identifier; When the adaptation service platform does not receive the verification request, it is determined that the browser of the mobile terminal does not support the adapted page format pushed by the adaptation service platform.
实际应用中,上述判断模块32、调整模块33可由所述适配服务平台所属终端中的CPU、MPU、DSP或FPGA实现;In practical application, the above-mentioned judging module 32 and adjusting module 33 can be realized by CPU, MPU, DSP or FPGA in the terminal to which the adaptation service platform belongs;
所述收发模块31可由发射机和接收机实现;The transceiver module 31 can be realized by a transmitter and a receiver;
所述存储模块34可由所述适配服务平台所属终端中的存储介质实现,比如:各种类型的存储器。The storage module 34 may be implemented by a storage medium in a terminal to which the adaptation service platform belongs, such as various types of memory.
在上文所述网站服务器、适配服务平台的基础上,本发明还提出了实现页面适配的系统。On the basis of the website server and the adaptation service platform described above, the present invention also proposes a system for realizing page adaptation.
图4为本发明实施例实现页面适配的系统的组成结构示意图,如图4所示,所述系统包括移动终端41、网站服务器42和适配服务平台43;其中,FIG. 4 is a schematic diagram of the composition and structure of a system for implementing page adaptation according to an embodiment of the present invention. As shown in FIG. 4 , the system includes a mobile terminal 41, a website server 42, and an adaptation service platform 43; wherein,
所述移动终端41,用于向所述网站服务器42发送所述移动终端的浏览器页面访问请求消息;还用于在所述移动终端成功展示所述网站服务器42返回的适配的页面版式时,自动向所述适配服务平台43发送校验请求;其中,所述网站服务器42返回的适配的页面版式中添加有能自动向所述适配服务平台43发出校验请求的校验信息;The mobile terminal 41 is configured to send the browser page access request message of the mobile terminal to the website server 42; it is also used to successfully display the adapted page format returned by the website server 42 when the mobile terminal , automatically send a verification request to the adaptation service platform 43; wherein, the adapted page format returned by the website server 42 is added with verification information that can automatically send a verification request to the adaptation service platform 43 ;
所述网站服务器42,用于接收到移动终端41浏览器发送的页面访问请求消息时,根据所述页面访问请求消息中携带的UA标识从所述适配服务平台43获取适配的页面版式;向移动终端41返回与所述适配的页面版式对应的页面时,在所述页面中添加校验信息。The website server 42 is configured to obtain an adapted page layout from the adaptation service platform 43 according to the UA identifier carried in the page access request message when receiving the page access request message sent by the browser of the mobile terminal 41; When the page corresponding to the adapted page layout is returned to the mobile terminal 41, verification information is added to the page.
所述适配服务平台43,用于根据是否收到校验请求来判断移动终端浏览器是否支持所述适配服务平台所推送的适配的页面版式,并根据判断结果调整相应UA标识对应的各页面版式的权重。The adaptation service platform 43 is used to judge whether the browser of the mobile terminal supports the adapted page format pushed by the adaptation service platform according to whether a verification request is received, and to adjust the corresponding UA logo corresponding to the result of the judgment. The weight of each page layout.
这里,所述网站服务器42的具体的组成结构如图2所示。Here, the specific composition and structure of the website server 42 is shown in FIG. 2 .
这里,所述适配服务平台43的具体的组成结构如图3所示。Here, the specific composition structure of the adaptation service platform 43 is shown in FIG. 3 .
所述实现页面适配的系统能实现针对不同移动终端浏览器自动推送适合该终端浏览器展示的页面版式,对于预存的移动终端的能力信息不需要人工维护,由为移动终端浏览器;实现了自动收集并判断移动终端能够支持的标记语言编写的页面,对移动通信终端参数的管理实现智能化、自动化,无需人工干预;弥补了现有方法无法实时完善适配准确性的缺点,使页面适配更灵活、更准确。The system for realizing page adaptation can automatically push the page format suitable for the display of the terminal browser for different mobile terminal browsers, and does not need manual maintenance for the pre-stored mobile terminal capability information, because it is the mobile terminal browser; Automatically collect and judge the pages written in the markup language that the mobile terminal can support, realize intelligent and automatic management of the parameters of the mobile communication terminal, without manual intervention; make up for the shortcomings of the existing methods that cannot improve the accuracy of adaptation in real time, and make the page adaptable The matching is more flexible and accurate.
图5为本发明实施例移动终端浏览器智能适配的具体流程示意图,如图5所示,该流程包括以下步骤:FIG. 5 is a schematic diagram of a specific flow of intelligent adaptation of a mobile terminal browser according to an embodiment of the present invention. As shown in FIG. 5, the flow includes the following steps:
步骤501:移动终端向网站服务器发送页面访问请求;Step 501: the mobile terminal sends a page access request to the website server;
也就是说,移动终端的用户请求访问移动互联网网站页面。That is to say, the user of the mobile terminal requests to visit the page of the mobile Internet website.
步骤502:网站服务器接收到所述页面访问请求时,根据所述页面访问请求中携带的UA标识,向适配服务平台发送适配请求;Step 502: When the website server receives the page access request, it sends an adaptation request to the adaptation service platform according to the UA identifier carried in the page access request;
这里,所述页面访问请求可以为HTTP请求。Here, the page access request may be an HTTP request.
步骤503:适配服务平台根据存储的所述UA标识对应的各页面版式的权重向所述网站服务器推送适配的页面版式;Step 503: The adaptation service platform pushes the adapted page layout to the website server according to the stored weight of each page layout corresponding to the UA identifier;
具体地,当与该UA标识对应的各页面版式的权重均相同时,所述适配服务平台随机向所述网站服务器推送适配的页面版式;Specifically, when the weights of the page layouts corresponding to the UA identifier are the same, the adaptation service platform randomly pushes the adapted page layout to the website server;
当与该UA标识对应的各页面版式的权重不相同时,所述适配服务平台向所述网站服务器推送权重最高的适配的页面版式。When the weights of the page layouts corresponding to the UA identifier are different, the adaptation service platform pushes the adapted page layout with the highest weight to the website server.
也就是说,权重高的页面版式有更多的推送机会。In other words, page layouts with high weight have more chances to be pushed.
步骤504:网站服务器接收到适配服务平台返回的适配的页面版式时,向移动终端返回与所述适配的页面版式对应的页面,并在所述页面中添加校验信息;Step 504: When the website server receives the adapted page format returned by the adaptation service platform, return the page corresponding to the adapted page format to the mobile terminal, and add verification information to the page;
这里,所述校验信息为在移动终端成功展示所述页面时,能自动向所述适配服务平台发出校验请求的校验信息。Here, the verification information is verification information that can automatically send a verification request to the adaptation service platform when the mobile terminal successfully displays the page.
步骤505:对于能成功展示页面信息的移动终端,触发所述页面中的校验信息,自动向所述适配服务平台发出校验请求;Step 505: For a mobile terminal that can successfully display page information, trigger the verification information in the page, and automatically send a verification request to the adaptation service platform;
步骤506:所述适配服务平台接收到校验请求时,增加所述移动终端发送的页面访问请求消息中携带的UA标识所对应的该页面版式的权重。Step 506: When the adaptation service platform receives the verification request, it increases the weight of the page format corresponding to the UA identifier carried in the page access request message sent by the mobile terminal.
这里,所述适配服务平台根据是否收到校验请求来判断移动终端浏览器是否支持所述适配服务平台所推送的适配的页面版式,并根据判断结果调整相应UA标识对应的各页面版式的权重。Here, the adaptation service platform judges whether the browser of the mobile terminal supports the adapted page layout pushed by the adaptation service platform according to whether the verification request is received, and adjusts each page corresponding to the corresponding UA identifier according to the judgment result Typographic weight.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention.
Claims (11)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310710737.8A CN104731801B (en) | 2013-12-20 | 2013-12-20 | A kind of method for realizing page adaptation, platform and system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310710737.8A CN104731801B (en) | 2013-12-20 | 2013-12-20 | A kind of method for realizing page adaptation, platform and system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104731801A CN104731801A (en) | 2015-06-24 |
| CN104731801B true CN104731801B (en) | 2018-01-30 |
Family
ID=53455699
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310710737.8A Active CN104731801B (en) | 2013-12-20 | 2013-12-20 | A kind of method for realizing page adaptation, platform and system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104731801B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105867890A (en) * | 2015-09-11 | 2016-08-17 | 乐视致新电子科技(天津)有限公司 | Page display method and device |
| CN111885006B (en) * | 2020-06-29 | 2022-07-26 | 上海巧房信息科技有限公司 | Page access and authorized access method and device |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6300947B1 (en) * | 1998-07-06 | 2001-10-09 | International Business Machines Corporation | Display screen and window size related web page adaptation system |
| CN1816081A (en) * | 2005-02-02 | 2006-08-09 | 中国移动通信集团公司 | Method and system for adapting page of mobile telecommunication terminal |
| CN101311922A (en) * | 2007-05-25 | 2008-11-26 | 百度在线网络技术(北京)有限公司 | Advertisement formwork style matching method and system |
| CN101526952A (en) * | 2009-01-19 | 2009-09-09 | 北京跳网无限科技发展有限公司 | UA adaptation technology for identifying attribute of mobile phone terminal |
| CN102271159A (en) * | 2011-07-28 | 2011-12-07 | 百度在线网络技术(北京)有限公司 | Method and device for obtaining page data as well as external website plug-in unit |
-
2013
- 2013-12-20 CN CN201310710737.8A patent/CN104731801B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6300947B1 (en) * | 1998-07-06 | 2001-10-09 | International Business Machines Corporation | Display screen and window size related web page adaptation system |
| CN1816081A (en) * | 2005-02-02 | 2006-08-09 | 中国移动通信集团公司 | Method and system for adapting page of mobile telecommunication terminal |
| CN101311922A (en) * | 2007-05-25 | 2008-11-26 | 百度在线网络技术(北京)有限公司 | Advertisement formwork style matching method and system |
| CN101526952A (en) * | 2009-01-19 | 2009-09-09 | 北京跳网无限科技发展有限公司 | UA adaptation technology for identifying attribute of mobile phone terminal |
| CN102271159A (en) * | 2011-07-28 | 2011-12-07 | 百度在线网络技术(北京)有限公司 | Method and device for obtaining page data as well as external website plug-in unit |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104731801A (en) | 2015-06-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103493468B (en) | Information transmission system | |
| US20140047322A1 (en) | Method and system for browsing things of internet of things on ip using web platform | |
| KR101638315B1 (en) | System and method for providing advertisement based on web using wifi network | |
| RU2016133298A (en) | GATEWAY ABSTRACTION | |
| US9866356B2 (en) | Data distribution method and device | |
| CN101814088A (en) | Mobile internet application method and system for realization based on framework | |
| US10404774B2 (en) | Mobile device and method for controlling transmission to web server in mobile device | |
| CN105657000A (en) | Message transmission method and device | |
| US20160028837A1 (en) | Enabling Mobile Applications to Acquire a MAC Address for Obtaining Location Information | |
| CN107135672A (en) | Application installation package acquisition methods, information broadcast method, mobile device and base station | |
| US20140068066A1 (en) | Method and System for Reporting Location Information of Mobile Terminal | |
| CN102790675B (en) | Authentication method of network connection, network device and network authentication system thereof | |
| CN104731801B (en) | A kind of method for realizing page adaptation, platform and system | |
| CN107087013A (en) | Mobile base station CDN system and its method of servicing | |
| CN104202233B (en) | A kind of information interacting method, terminal, server and system | |
| CN103001967A (en) | Origin Server and Service Push Method | |
| WO2017020597A1 (en) | Resource cache method and apparatus | |
| US20170075880A1 (en) | Translation for web services | |
| KR101018817B1 (en) | Client terminal for displaying web page, web page display method of client terminal through wired / wireless network | |
| JP2015204090A (en) | Method, apparatus, and program for establishing secure link between server and terminal using telephone number | |
| CN102664959A (en) | Mobile platform wireless middleware | |
| CN102930013B (en) | Website type identification method and relevant device | |
| CN103023910B (en) | Data transmission method between mobile device and computing device | |
| CN102595346A (en) | Flight multiple-client message notification system and method thereof | |
| CN103927221B (en) | Sensing data acquisition methods and electronic equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |