CN103226492A - Method and device for adapting to mobile terminal - Google Patents

Method and device for adapting to mobile terminal Download PDF

Info

Publication number
CN103226492A
CN103226492A CN2013101657393A CN201310165739A CN103226492A CN 103226492 A CN103226492 A CN 103226492A CN 2013101657393 A CN2013101657393 A CN 2013101657393A CN 201310165739 A CN201310165739 A CN 201310165739A CN 103226492 A CN103226492 A CN 103226492A
Authority
CN
China
Prior art keywords
information
mobile terminal
content
unit type
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2013101657393A
Other languages
Chinese (zh)
Inventor
王康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guizhou white cloud Technology Co., Ltd.
Original Assignee
BEIJING CHANGXUNTONG NETWORK TECHNOLOGY 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 BEIJING CHANGXUNTONG NETWORK TECHNOLOGY Co Ltd filed Critical BEIJING CHANGXUNTONG NETWORK TECHNOLOGY Co Ltd
Priority to CN2013101657393A priority Critical patent/CN103226492A/en
Publication of CN103226492A publication Critical patent/CN103226492A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method and a device for adapting to a mobile terminal. The method comprises the steps as follows: 1, when receiving a guided user visit, obtaining mobile terminal information of a user; 2, generating effective optimization content based on the mobile terminal information; and 3, sending the effective optimization content to the user. According to the method, a website can be optimized according to the mobile terminal information by obtaining the mobile terminal information, so that the website can provide the user with not only website content of mobile internet version but also the website content of the mobile internet version most suitable for mobile equipment of the user according to different mobile equipment of the user.

Description

A kind of method and apparatus of self-adaptation portable terminal
Technical field
The present invention relates to the website optimisation technique, relate in particular to a kind of method and apparatus of self-adaptation portable terminal.
Background technology
At present, along with the develop rapidly of wireless access wide band technology and portable terminal technology, the urgent hope of people can both be obtained information and service whenever and wherever possible and even in moving process easily from the internet, and mobile Internet arises at the historic moment and fast development.But the equipment that the user of mobile Internet adopts not is to be PC equipment, so website at mobile Internet terminal is also all developed and provided in the website of each type now except the website that offers the PC device access, specially.For a lot of websites, all need special cost several ten thousand to hundreds of thousands even up to a million, develop a website again, and, safeguard the program and the content of the website of mobile Internet specially also at follow-up continuous input manpower at mobile Internet terminal.In addition, most of website has been developed the website at mobile Internet, also just at certain portable terminal, is difficult to accomplish to be adapted to different mobile terminal.
The present invention can address the above problem, and makes most of web site operator not need exploitation, not need to safeguard, just can have the most professional website at various mobile Internet terminals.The present invention possesses very strong convenience.Web site operator can be used at any time, also can stop using at any time, and, can also customize the template of the mobile Internet website of oneself.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of method and apparatus of self-adaptation portable terminal, by obtaining information of mobile terminal, thereby can be according to information of mobile terminal, the website is optimized, make the website that the web site contents of mobile Internet version not only can be provided to the user, and the different mobile terminal that can have according to the user, the web site contents of the mobile Internet version of optimum its mobile device provided to it.
First aspect provides a kind of method of self-adaptation portable terminal, comprising:
Step 1: when receiving the user capture that is directed, obtain user's information of mobile terminal;
Step 2:, generate the effective optimization content based on information of mobile terminal;
Step 3: the effective optimization content is sent to the user.
In first kind of possible implementation, described step 1 comprises:
Step 1.1: the HTTP head that whether has customization when judging user capture; If have, obtain user's information of mobile terminal according to the HTTP head of described customization, change step 2 then over to; If no, change step 1.2 over to;
Step 1.2: judge according to the client-side information UA in user's request header whether subscriber equipment is portable terminal, if the information of mobile terminal based on UA obtains the user changes step 2 then over to; If not, method ends.
In conjunction with first kind of first aspect possible implementation, in second kind of first aspect possible implementation, the described information of mobile terminal that obtains the user based on UA comprises:
Whether step 1.2.1: judging has the browser kernel information among the UA, if having, obtains described browser kernel information, changes step 1.2.2 then over to; If no, adopt the browser kernel information of acquiescence, change step 1.2.2 then over to;
Step 1.2.2: whether in UA have unit type, if having, obtain described unit type if judging, change step 1.2.3 then over to; If no, adopt the unit type of acquiescence, change step 1.2.3 then over to;
Step 1.2.3: whether in UA have screen size, if having, obtain described screen size if judging, change step 1.2.4 over to; If no, change step 1.2.5 over to;
Step 1.2.4: according to described browser kernel information and described unit type, search corresponding mobile terminal characteristic and whether be touch-screen in first memory; In first memory, do not have corresponding browser kernel information and unit type, adopt the portable terminal characteristic of acquiescence, and directly judge whether to be touch-screen according to unit type;
Step 1.2.5: according to described browser kernel information and described unit type, search corresponding mobile terminal characteristic, screen size and whether be touch-screen in first memory; In first memory, do not have corresponding browser kernel information and unit type, adopt the portable terminal characteristic and the screen size of acquiescence, and directly judge whether to be touch-screen according to unit type;
Described first memory stores the information of mobile terminal corresponding to unit type, browser kernel information; Whether described information of mobile terminal is by portable terminal characteristic, screen size and be that touch-screen is formed.
In conjunction with second kind of first aspect possible implementation, in the third possible implementation of first aspect, described portable terminal characteristic comprises whether supporting flash, whether supports javascript, whether supports htlm5 for to showing website and the correlation properties of using the website to exert an influence.
In conjunction with second kind of possible implementation of first kind of first aspect, first aspect possible implementation, first mode, the third possible implementation of first aspect, in the 4th kind of possible implementation of first aspect, described step 2 comprises:
Step 2.1, judge the optimization content that whether has in the second memory at described information of mobile terminal,,, generate and store the effective optimization content then according to the customized information database if do not have; If have, judge then whether described optimization content at user terminal information surpasses life cycle, if surpass life cycle, then with described optimization content at user terminal information as the effective optimization content; If surpassed life cycle, then change step 2.2 over to;
Step 2.2, judge whether the source station content is upgraded, if do not upgrade, then the life span with the optimization content in the second memory resets to 0, and as the effective optimization content; If upgrade,, generate and store the effective optimization content then according to the customized information database.
In conjunction with the 4th kind of possible implementation of first aspect, described according to the customized information database in the 5th kind of possible implementation of first aspect, generate and store the effective optimization content, comprising:
Obtain the source station content;
Whether in customized information database have customized information, if customized information is arranged, then based on customized information and information of mobile terminal, the source station content of obtaining is optimized if judging, generate the effective optimization content; If there is not customized information, then, the source station content of obtaining is optimized based on the customized information and the information of mobile terminal of acquiescence, generate the effective optimization content;
Static content in the described effective optimization content is stored in second memory.
Second aspect provides a kind of device of self-adaptation portable terminal, comprises acquisition module, optimal module and sending module, wherein,
Described acquisition module is used for obtaining user's information of mobile terminal when receiving the user capture that is directed;
Described optimal module is used for based on information of mobile terminal, generates the effective optimization content;
Described sending module is used for the effective optimization content is sent to the user.
In first kind of second aspect possible implementation, described acquisition module comprises that first obtains submodule and second and obtain submodule, wherein,
Described first obtains submodule, whether has the HTTP head of customization when being used to judge user capture; If have, obtain user's information of mobile terminal according to the HTTP head of described customization, then described information of mobile terminal is sent to described optimal module; Obtain submodule if no, trigger described second;
Described second obtains submodule, is used for judging according to the client-side information UA of user's request header whether subscriber equipment is portable terminal, if the information of mobile terminal based on UA obtains the user sends to described optimal module with described information of mobile terminal then; If not, finish operation.
In conjunction with first kind of second aspect possible implementation, in second kind of second aspect possible implementation, described second obtains submodule comprises judge module, kernel information acquisition module, unit type acquisition module, screen size acquisition module, first search module, second search module, information of mobile terminal sending module and first memory, wherein
Described judge module is used for judging according to the client-side information UA of user's request header whether subscriber equipment is portable terminal;
Described kernel information acquisition module is used for judging whether UA has the browser kernel information, if having, obtains described browser kernel information; If no, adopt the browser kernel information of acquiescence;
Described unit type acquisition module is used for judging whether UA has unit type, if having, obtains described unit type; If no, adopt the unit type of acquiescence;
Described screen size acquisition module is used for judging whether UA has screen size, if having, obtains described screen size, triggers described first search module; If no, trigger described second search module;
Described first search module is used for the unit type that the browser kernel information that obtains according to described kernel information acquisition module and described unit type acquisition module obtain, search corresponding mobile terminal characteristic and whether be touch-screen in first memory; In first memory, do not have corresponding browser kernel information and unit type, adopt the portable terminal characteristic of acquiescence, and directly judge whether to be touch-screen according to unit type;
Described second search module, be used for the unit type that the browser kernel information that obtains according to described kernel information acquisition module and described unit type acquisition module obtain, search corresponding mobile terminal characteristic, screen size and whether be touch-screen in first memory; In first memory, do not have corresponding browser kernel information and unit type, adopt the portable terminal characteristic and the screen size of acquiescence, and directly judge whether to be touch-screen according to unit type;
Described information of mobile terminal sending module is used for described information of mobile terminal is sent to described optimal module;
Described first memory is used to store the information of mobile terminal corresponding to unit type, browser kernel information;
Wherein, whether described information of mobile terminal is by portable terminal characteristic, screen size and be that touch-screen is formed.
In conjunction with second kind of second aspect possible implementation, in the third possible implementation of second aspect, described portable terminal characteristic comprises whether supporting flash, whether supports javascript, whether supports htlm5 for to showing website and the correlation properties of using the website to exert an influence.
Second kind of possible implementation in conjunction with first kind of second aspect, second aspect possible implementation, second aspect, the implementation that the third of second aspect is possible, in the 4th kind of possible implementation of second aspect, described optimal module comprises that first optimizes submodule, second optimization submodule, second memory and the customized information database, wherein
Described first optimizes submodule, is used for judging whether second memory has the optimization content at described information of mobile terminal, if do not have, then according to the customized information database, generates and stores the effective optimization content; If have, judge then whether described optimization content at user terminal information surpasses life cycle, if surpass life cycle, then with described optimization content at user terminal information as the effective optimization content; If surpassed life cycle, then trigger described second and optimize submodule;
Described second optimizes submodule, is used to judge whether the source station content is upgraded, if do not upgrade, then the life span with the optimization content in the second memory resets to 0, and as the effective optimization content; If upgrade,, generate and store the effective optimization content then according to the customized information database.
In conjunction with the 4th kind of possible implementation of second aspect, described according to the customized information database in the 5th kind of possible implementation of second aspect, generate and store the effective optimization content, comprise;
Obtain the source station content;
Whether in customized information database have customized information, if customized information is arranged, then based on customized information and information of mobile terminal, the source station content of obtaining is optimized if judging, generate the effective optimization content; If there is not customized information, then, the source station content of obtaining is optimized based on the customized information and the information of mobile terminal of acquiescence, generate the effective optimization content;
Static content in the described effective optimization content is stored in second memory.
As shown from the above technical solution, the present invention is by obtaining information of mobile terminal, thereby can be according to information of mobile terminal, the website is optimized, make the website that the web site contents of mobile Internet version not only can be provided to the user, and the different mobile devices that can have according to the user, provide the web site contents of the mobile Internet version of optimum its mobile device to it.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or scheme of the prior art, to do one to the accompanying drawing of required use among the embodiment below introduces simply, apparently, accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
The schematic flow sheet of the method for the self-adaptation portable terminal that Fig. 1 provides for one embodiment of the invention;
The structural representation of the device of the self-adaptation portable terminal that Fig. 2 provides for one embodiment of the invention.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is carried out clear, complete description, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, the every other embodiment that those of ordinary skills are obtained under the prerequisite of not making creative work belongs to the scope of protection of the invention.
The schematic flow sheet of the method for the self-adaptation portable terminal that Fig. 1 provides for one embodiment of the invention, as shown in Figure 1, the method for the self-adaptation portable terminal of present embodiment can comprise:
Step 1: when receiving the user capture that is directed, obtain user's information of mobile terminal;
Further, described step 1 comprises:
Step 1.1: the HTTP head that whether has customization when judging user capture; If have, obtain user's information of mobile terminal according to the HTTP head of described customization, change step 2 then over to; If no, change step 1.2 over to;
Step 1.2: judge according to the client-side information UA in user's request header whether subscriber equipment is portable terminal, if the information of mobile terminal based on UA obtains the user changes step 2 then over to; If not, method ends.
Particularly, the described information of mobile terminal that obtains the user based on UA in the step 1.2 comprises:
Whether step 1.2.1: judging has the browser kernel information among the UA, if having, obtains described browser kernel information, changes step 1.2.2 then over to; If no, adopt the browser kernel information of acquiescence, change step 1.2.2 then over to;
Step 1.2.2: whether in UA have unit type, if having, obtain described unit type if judging, change step 1.2.3 then over to; If no, adopt the unit type of acquiescence, change step 1.2.3 then over to;
Step 1.2.3: whether in UA have screen size, if having, obtain described screen size if judging, change step 1.2.4 over to; If no, change step 1.2.5 over to;
Step 1.2.4: according to described browser kernel information and described unit type, search corresponding mobile terminal characteristic and whether be touch-screen in first memory; In first memory, do not have corresponding browser kernel information and unit type, adopt the portable terminal characteristic of acquiescence, and directly judge whether to be touch-screen according to unit type;
Step 1.2.5: according to described browser kernel information and described unit type, search corresponding mobile terminal characteristic, screen size and whether be touch-screen in first memory; In first memory, do not have corresponding browser kernel information and unit type, adopt the portable terminal characteristic and the screen size of acquiescence, and directly judge whether to be touch-screen according to unit type;
Wherein, described first memory stores the information of mobile terminal corresponding to unit type, browser kernel information; Whether described information of mobile terminal is by portable terminal characteristic, screen size and be that touch-screen is formed.Described portable terminal characteristic comprises whether supporting flash, whether supports javascript, whether supports htlm5 for to showing website and the correlation properties of using the website to exert an influence.
Step 2:, generate the effective optimization content based on information of mobile terminal;
Further, described step 2 comprises:
Step 2.1, judge the optimization content that whether has in the second memory at described information of mobile terminal,,, generate and store the effective optimization content then according to the customized information database if do not have; If have, judge then whether described optimization content at user terminal information surpasses life cycle, if surpass life cycle, then with described optimization content at user terminal information as the effective optimization content; If surpassed life cycle, then change step 2.2 over to;
Step 2.2, judge whether the source station content is upgraded, if do not upgrade, then the life span with the optimization content in the second memory resets to 0, and as the effective optimization content; If upgrade,, generate and store the effective optimization content then according to the customized information database.
Further, described according to the customized information database, generate and store the effective optimization content, comprising:
Obtain the source station content;
Whether in customized information database have customized information, if customized information is arranged, then based on customized information and information of mobile terminal, the source station content of obtaining is optimized if judging, generate the effective optimization content; If there is not customized information, then, the source station content of obtaining is optimized based on the customized information and the information of mobile terminal of acquiescence, generate the effective optimization content;
Static content in the described effective optimization content is stored in second memory.
Step 3: the effective optimization content is sent to the user.
The method of present embodiment is by obtaining information of mobile terminal, thereby can be according to information of mobile terminal, the website is optimized, make the website that the web site contents of mobile Internet version not only can be provided to the user, and the different mobile devices that can have according to the user, provide the web site contents of the mobile Internet version of optimum its mobile device to it.
The structural representation of the device of the self-adaptation portable terminal that Fig. 2 provides for another embodiment of the present invention, as shown in Figure 2, the device 20 of present embodiment comprises acquisition module 21, optimal module 22 and sending module 23, wherein,
Described acquisition module 21 is used for obtaining user's information of mobile terminal when receiving the user capture that is directed;
Further, described acquisition module 21 comprises that first obtains submodule 211 and second and obtain submodule 212, wherein,
Described first obtains submodule 211, whether has the HTTP head of customization when being used to judge user capture; If have, obtain user's information of mobile terminal according to the HTTP head of described customization, then described information of mobile terminal is sent to described optimal module; Obtain submodule 212 if no, trigger described second;
Described second obtains submodule 212, be used for judging according to the client-side information UA of user's request header whether subscriber equipment is portable terminal, if the information of mobile terminal based on UA obtains the user sends to described information of mobile terminal described optimal module 22 then; If not, finish operation.
Further, described second obtains submodule 212 comprises judge module 2121, kernel information acquisition module 2122, unit type acquisition module 2123, screen size acquisition module 2124, first search module 2125, second search module 2126, information of mobile terminal sending module 2127 and first memory 2128, wherein
Described judge module 2121 is used for judging according to the client-side information UA of user's request header whether subscriber equipment is portable terminal;
Described kernel information acquisition module 2122 is used for judging whether UA has the browser kernel information, if having, obtains described browser kernel information; If no, adopt the browser kernel information of acquiescence;
Described unit type acquisition module 2123 is used for judging whether UA has unit type, if having, obtains described unit type; If no, adopt the unit type of acquiescence;
Described screen size acquisition module 2124 is used for judging whether UA has screen size, if having, obtains described screen size, triggers described first search module 2125; If no, trigger described second search module 2126;
Described first search module 2125, be used for the unit type that the browser kernel information that obtains according to described kernel information acquisition module 2122 and described unit type acquisition module 2123 obtain, search corresponding mobile terminal characteristic and whether be touch-screen in first memory 2128; In first memory 2128, do not have corresponding browser kernel information and unit type, adopt the portable terminal characteristic of acquiescence, and directly judge whether to be touch-screen according to unit type;
Described second search module 2126, be used for the unit type that the browser kernel information that obtains according to described kernel information acquisition module 2122 and described unit type acquisition module 2123 obtain, 2128 search corresponding mobile terminal characteristics, screen size and whether be touch-screen in first memory; In first memory 2128, do not have corresponding browser kernel information and unit type, adopt the portable terminal characteristic and the screen size of acquiescence, and directly judge whether to be touch-screen according to unit type;
Described information of mobile terminal sending module 2127 is used for described information of mobile terminal is sent to described optimal module 22;
Described first memory 2128 is used to store the information of mobile terminal corresponding to unit type, browser kernel information;
Wherein, whether described information of mobile terminal is by portable terminal characteristic, screen size and be that touch-screen is formed.Described portable terminal characteristic comprises whether supporting flash, whether supports javascript, whether supports htlm5 for to showing website and the correlation properties of using the website to exert an influence.
Described optimal module 22 is used for based on information of mobile terminal, generates the effective optimization content;
Further, described optimal module 22 comprises that first optimizes submodule 221, second optimization submodule 222, second memory 223 and the customized information database 224, wherein,
Described first optimizes submodule 221, is used for judging whether second memory 223 has the optimization content at described information of mobile terminal, if do not have, then according to customized information database 224, generates and stores the effective optimization content; If have, judge then whether described optimization content at user terminal information surpasses life cycle, if surpass life cycle, then with described optimization content at user terminal information as the effective optimization content; If surpassed life cycle, then trigger described second and optimize submodule 222;
Described second optimizes submodule 222, is used to judge whether the source station content is upgraded, if do not upgrade, then the life span with the optimization content in the second memory 223 resets to 0, and as the effective optimization content; If upgrade,, generate and store the effective optimization content then according to customized information database 224.
Described second memory 223 is used to store the web site contents that is optimized at different mobile terminal.
Described customized information database 224 is used for the template of mobile Internet website version of this website of store website network operator customization.
Further, described first optimizes the submodule 221 and second operation of optimizing in the submodule 222: according to customized information database 224, generate and store the effective optimization content, may further comprise the steps:
Obtain the source station content;
Whether in customized information database 224 have customized information, if customized information is arranged, then based on customized information and information of mobile terminal, the source station content of obtaining is optimized if judging, generate the effective optimization content; If there is not customized information, then, the source station content of obtaining is optimized based on the customized information and the information of mobile terminal of acquiescence, generate the effective optimization content;
Static content in the described effective optimization content is stored in second memory 223.
Described sending module is used for the effective optimization content is sent to the user.
The device 20 of present embodiment is by obtaining information of mobile terminal, thereby can be according to information of mobile terminal, the website is optimized, make the website that the web site contents of mobile Internet version not only can be provided to the user, and the different mobile devices that can have according to the user, provide the web site contents of the mobile Internet version of optimum its mobile device to it.
The those skilled in the art can be well understood to, and is the convenience described and succinct, and the concrete course of work of the device of foregoing description and module can not repeat them here with reference to the corresponding process among the preceding method embodiment.
In several embodiment provided by the present invention, should be understood that disclosed method and apparatus can be realized by other mode.For example, device embodiment described above only is schematic, for example, shown in the division of module, only be that a kind of logic function is divided, during actual the realization, other dividing mode can be arranged, for example each functional module can be integrated in the processing module, also can be that the independent physics of each module exists, and also can two or more modules be integrated in the module.Above-mentioned integrated module both can adopt the form of hardware to realize, the form that also can adopt hardware to add software function module realizes, or some features can ignore, or did not carry out.
In addition, one of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, can instruct related hardware to finish by computer program, described program can be stored in the computer-readable recording medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be disk, CD, read-only storage memory body (Read-Only Memory; Be called for short: ROM) or at random store memory body (Random Access Memory; Be called for short: RAM) etc.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, perhaps part technical characterictic wherein is equal to replacement, and these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. the method for a self-adaptation portable terminal is characterized in that, said method comprising the steps of:
Step 1: when receiving the user capture that is directed, obtain user's information of mobile terminal;
Step 2:, generate the effective optimization content based on information of mobile terminal;
Step 3: the effective optimization content is sent to the user.
2. the method for self-adaptation portable terminal according to claim 1 is characterized in that, described step 1 comprises:
Step 1.1: the HTTP head that whether has customization when judging user capture; If have, obtain user's information of mobile terminal according to the HTTP head of described customization, change step 2 then over to; If no, change step 1.2 over to;
Step 1.2: judge according to the client-side information UA in user's request header whether subscriber equipment is portable terminal, if the information of mobile terminal based on UA obtains the user changes step 2 then over to; If not, method ends.
3. the method for self-adaptation portable terminal according to claim 2 is characterized in that, the described information of mobile terminal that obtains the user based on UA comprises:
Whether step 1.2.1: judging has the browser kernel information among the UA, if having, obtains described browser kernel information, changes step 1.2.2 then over to; If no, adopt the browser kernel information of acquiescence, change step 1.2.2 then over to;
Step 1.2.2: whether in UA have unit type, if having, obtain described unit type if judging, change step 1.2.3 then over to; If no, adopt the unit type of acquiescence, change step 1.2.3 then over to;
Step 1.2.3: whether in UA have screen size, if having, obtain described screen size if judging, change step 1.2.4 over to; If no, change step 1.2.5 over to;
Step 1.2.4: according to described browser kernel information and described unit type, search corresponding mobile terminal characteristic and whether be touch-screen in first memory; In first memory, do not have corresponding browser kernel information and unit type, adopt the portable terminal characteristic of acquiescence, and directly judge whether to be touch-screen according to unit type;
Step 1.2.5: according to described browser kernel information and described unit type, search corresponding mobile terminal characteristic, screen size and whether be touch-screen in first memory; In first memory, do not have corresponding browser kernel information and unit type, adopt the portable terminal characteristic and the screen size of acquiescence, and directly judge whether to be touch-screen according to unit type;
Described first memory stores the information of mobile terminal corresponding to unit type, browser kernel information; Whether described information of mobile terminal is by portable terminal characteristic, screen size and be that touch-screen is formed;
Described portable terminal characteristic comprises whether supporting flash, whether supports javascript, whether supports htlm5 for to showing website and the correlation properties of using the website to exert an influence.
4. according to the method for the described self-adaptation portable terminal of one of claim 1-3, it is characterized in that described step 2 comprises:
Step 2.1, judge the optimization content that whether has in the second memory at described information of mobile terminal,,, generate and store the effective optimization content then according to the customized information database if do not have; If have, judge then whether described optimization content at user terminal information surpasses life cycle, if surpass life cycle, then with described optimization content at user terminal information as the effective optimization content; If surpassed life cycle, then change step 2.2 over to;
Step 2.2, judge whether the source station content is upgraded, if do not upgrade, then the life span with the optimization content in the second memory resets to 0, and as the effective optimization content; If upgrade,, generate and store the effective optimization content then according to the customized information database;
Described second memory stores the web site contents that is optimized at different mobile terminal.
5. the method for self-adaptation portable terminal according to claim 4 is characterized in that, and is described according to the customized information database, generates and stores the effective optimization content, comprising:
Obtain the source station content;
Whether in customized information database have customized information, if customized information is arranged, then based on customized information and information of mobile terminal, the source station content of obtaining is optimized if judging, generate the effective optimization content; If there is not customized information, then, the source station content of obtaining is optimized based on the customized information and the information of mobile terminal of acquiescence, generate the effective optimization content;
Static content in the described effective optimization content is stored in second memory.
6. the device of a self-adaptation portable terminal is characterized in that, described device comprises acquisition module, optimal module and sending module, wherein,
Described acquisition module is used for obtaining user's information of mobile terminal when receiving the user capture that is directed;
Described optimal module is used for based on information of mobile terminal, generates the effective optimization content;
Described sending module is used for the effective optimization content is sent to the user.
7. the device of self-adaptation portable terminal according to claim 6 is characterized in that, described acquisition module comprises that first obtains submodule and second and obtain submodule, wherein,
Described first obtains submodule, whether has the HTTP head of customization when being used to judge user capture; If have, obtain user's information of mobile terminal according to the HTTP head of described customization, then described information of mobile terminal is sent to described optimal module; Obtain submodule if no, trigger described second;
Described second obtains submodule, is used for judging according to the client-side information UA of user's request header whether subscriber equipment is portable terminal, if the information of mobile terminal based on UA obtains the user sends to described optimal module with described information of mobile terminal then; If not, finish operation.
8. the device of self-adaptation portable terminal according to claim 7, it is characterized in that, described second obtains submodule comprises judge module, kernel information acquisition module, unit type acquisition module, screen size acquisition module, first search module, second search module, information of mobile terminal sending module and first memory, wherein
Described judge module is used for judging according to the client-side information UA of user's request header whether subscriber equipment is portable terminal;
Described kernel information acquisition module is used for judging whether UA has the browser kernel information, if having, obtains described browser kernel information; If no, adopt the browser kernel information of acquiescence;
Described unit type acquisition module is used for judging whether UA has unit type, if having, obtains described unit type; If no, adopt the unit type of acquiescence;
Described screen size acquisition module is used for judging whether UA has screen size, if having, obtains described screen size, triggers described first search module; If no, trigger described second search module;
Described first search module is used for the unit type that the browser kernel information that obtains according to described kernel information acquisition module and described unit type acquisition module obtain, search corresponding mobile terminal characteristic and whether be touch-screen in first memory; In first memory, do not have corresponding browser kernel information and unit type, adopt the portable terminal characteristic of acquiescence, and directly judge whether to be touch-screen according to unit type;
Described second search module, be used for the unit type that the browser kernel information that obtains according to described kernel information acquisition module and described unit type acquisition module obtain, search corresponding mobile terminal characteristic, screen size and whether be touch-screen in first memory; In first memory, do not have corresponding browser kernel information and unit type, adopt the portable terminal characteristic and the screen size of acquiescence, and directly judge whether to be touch-screen according to unit type;
Described information of mobile terminal sending module is used for described information of mobile terminal is sent to described optimal module;
Described first memory is used to store the information of mobile terminal corresponding to unit type, browser kernel information;
Wherein, whether described information of mobile terminal is by portable terminal characteristic, screen size and be that touch-screen is formed;
Described portable terminal characteristic comprises whether supporting flash, whether supports javascript, whether supports htlm5 for to showing website and the correlation properties of using the website to exert an influence.
9. according to the device of the described self-adaptation portable terminal of one of claim 6-8, it is characterized in that described optimal module comprises that first optimizes submodule, second optimization submodule, second memory and the customized information database, wherein,
Described first optimizes submodule, is used for judging whether second memory has the optimization content at described information of mobile terminal, if do not have, then according to the customized information database, generates and stores the effective optimization content; If have, judge then whether described optimization content at user terminal information surpasses life cycle, if surpass life cycle, then with described optimization content at user terminal information as the effective optimization content; If surpassed life cycle, then trigger described second and optimize submodule;
Described second optimizes submodule, is used to judge whether the source station content is upgraded, if do not upgrade, then the life span with the optimization content in the second memory resets to 0, and as the effective optimization content; If upgrade,, generate and store the effective optimization content then according to the customized information database;
Described second memory stores the web site contents that is optimized at different mobile terminal.
10. the device of self-adaptation portable terminal according to claim 9 is characterized in that, and is described according to the customized information database, generates and stores the effective optimization content, comprising:
Obtain the source station content;
Whether in customized information database have customized information, if customized information is arranged, then based on customized information and information of mobile terminal, the source station content of obtaining is optimized if judging, generate the effective optimization content; If there is not customized information, then, the source station content of obtaining is optimized based on the customized information and the information of mobile terminal of acquiescence, generate the effective optimization content;
Static content in the described effective optimization content is stored in second memory.
CN2013101657393A 2013-05-08 2013-05-08 Method and device for adapting to mobile terminal Pending CN103226492A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013101657393A CN103226492A (en) 2013-05-08 2013-05-08 Method and device for adapting to mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013101657393A CN103226492A (en) 2013-05-08 2013-05-08 Method and device for adapting to mobile terminal

Publications (1)

Publication Number Publication Date
CN103226492A true CN103226492A (en) 2013-07-31

Family

ID=48836954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013101657393A Pending CN103226492A (en) 2013-05-08 2013-05-08 Method and device for adapting to mobile terminal

Country Status (1)

Country Link
CN (1) CN103226492A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020112033A1 (en) * 2000-08-09 2002-08-15 Doemling Marcus F. Content enhancement system and method
CN101526952A (en) * 2009-01-19 2009-09-09 北京跳网无限科技发展有限公司 UA adaptation technology for identifying attribute of mobile phone terminal
CN101625700A (en) * 2009-08-12 2010-01-13 中兴通讯股份有限公司 Method and device for optimizing display network page on terminal
CN101778168A (en) * 2010-02-05 2010-07-14 中国电信股份有限公司 Method and system for optimization display of wed pages on browser of mobile terminal
CN102202100A (en) * 2007-10-24 2011-09-28 优视科技有限公司 Method for processing network data by micro browser, micro browser and server thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020112033A1 (en) * 2000-08-09 2002-08-15 Doemling Marcus F. Content enhancement system and method
CN102202100A (en) * 2007-10-24 2011-09-28 优视科技有限公司 Method for processing network data by micro browser, micro browser and server thereof
CN101526952A (en) * 2009-01-19 2009-09-09 北京跳网无限科技发展有限公司 UA adaptation technology for identifying attribute of mobile phone terminal
CN101625700A (en) * 2009-08-12 2010-01-13 中兴通讯股份有限公司 Method and device for optimizing display network page on terminal
CN101778168A (en) * 2010-02-05 2010-07-14 中国电信股份有限公司 Method and system for optimization display of wed pages on browser of mobile terminal

Similar Documents

Publication Publication Date Title
CN102567516B (en) Script loading method and device
CN104572843B (en) The loading method and device of a kind of page
CN103744985A (en) Webpage adaption method and webpage adaption system
CN103955495A (en) Downloading method and device for page sub-resource
CN101571876B (en) Script program operation logic expansion method, server and client
CN104360937A (en) Intelligent parameter checking device
CN109799985B (en) Front-end code generation method and device, storage medium and electronic equipment
CN104050212A (en) Method and system for mobilizing a web application to take advantage of a native device capability
CN108304329B (en) Test case design method and device, terminal and readable storage medium
CN102655519A (en) Method and device for processing web page information
CN101957756A (en) System and method for rapidly generating intelligent mobile terminal program
CN102831104A (en) Method, device and terminal for adjusting terminal word
CN104869135B (en) The method and terminal of data interaction
CN103177096A (en) Page element positioning method based on text attribute and page element positioning device based on text attribute
CN110287444B (en) Website detection method and device and storage medium
CN111552463A (en) Page jump method and device, computer equipment and storage medium
CN104049998B (en) The processing method of upgrade package, device and equipment in a kind of android system
CN112308590A (en) Parameter processing method and device, computing equipment and storage medium
CN103138871B (en) The server data processing system of application program and method in mobile communcations system
CN104267921A (en) Page display control method and server
CN105404672A (en) Webpage data storage and operation system and method
CN104572753A (en) Bookmark storage method and bookmark storage device
CN103226492A (en) Method and device for adapting to mobile terminal
CN102469109B (en) Display method of browser homepage in mobile terminal and apparatus thereof
CN104008148A (en) Method and device for publishing webpage file

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20160509

Address after: 100015, Beijing, Jiuxianqiao, North Road, No. 10, electronic city, IT Industrial Park, building 201, block E, 5 floor, Chaoyang District

Applicant after: Guizhou white cloud Technology Co., Ltd.

Address before: 100081 Beijing City, Haidian District, No. 2 B a floor room 11

Applicant before: Beijing Changxuntong Network Technology Co., Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130731