CN107844324A - Customer terminal webpage redirects treating method and apparatus - Google Patents

Customer terminal webpage redirects treating method and apparatus Download PDF

Info

Publication number
CN107844324A
CN107844324A CN201710992068.6A CN201710992068A CN107844324A CN 107844324 A CN107844324 A CN 107844324A CN 201710992068 A CN201710992068 A CN 201710992068A CN 107844324 A CN107844324 A CN 107844324A
Authority
CN
China
Prior art keywords
link
page
primary
redirect
jump
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
CN201710992068.6A
Other languages
Chinese (zh)
Other versions
CN107844324B (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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710992068.6A priority Critical patent/CN107844324B/en
Publication of CN107844324A publication Critical patent/CN107844324A/en
Application granted granted Critical
Publication of CN107844324B publication Critical patent/CN107844324B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/986Document structures and storage, e.g. HTML extensions

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a kind of customer terminal webpage to redirect treating method and apparatus, is related to field of computer technology.Wherein, this method includes:When the link on the page is clicked, the link is intercepted;The link is compared with the primary filtering rule that redirects;If the link with it is described it is primary redirect filter rule match, by it is primary redirect mode and jump to link the corresponding primary page with described;Otherwise, redirect mode by link and jump to and link corresponding Webpage with described.By above method, can make the page for being capable of primaryization in client try one's best primaryization, improve Consumer's Experience, while the page configuration workload of operation personnel can be reduced, reduce the probability of page configuration error.

Description

Customer terminal webpage redirects treating method and apparatus
Technical field
The present invention relates to field of computer technology, more particularly to a kind of customer terminal webpage to redirect treating method and apparatus.
Background technology
The page in client is generally divided into two kinds:One kind is Html (HTML) page, and one kind is primary The page.In the client, due to the primary page compared to the Html pages have faster response speed and preferably compatibility, because This wishes the page " primaryization as far as possible of energy primaryization " in client, to improve Consumer's Experience.But because user's movement is set Client release in standby is various, and simple all primaryization have edition compatibility sex chromosome mosaicism.
In the prior art, in order that the page primaryization of primaryization " can " in client, is usually taken following as far as possible Method:The page for needing to do platform differentiation, operation personnel is in female page configuration page jump mode of the page, often Need the Mobile solution client configuration for our company it is a set of it is primary redirect, configure a set of Html chains for other platform environments Connect.And distinguished for both needing to do platform, need to do the page of version differentiation, operation personnel need for different platforms, Different versions configures corresponding page jump mode.
In process of the present invention is realized, inventor has found that at least there are the following problems in the prior art:
Firstth, for the different page jump mode of different platform environment configurations, operation personnel can undoubtedly be greatly increased Workload.
Secondth, as the increase of client release, the workload for dividing version to configure of operation personnel are increasing.Also, Due to be difficult artificially judge current page can primaryization minimum version, it is likely that there is the situation of page configuration mistake.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of customer terminal webpage and redirects treating method and apparatus, can make client Be capable of in end primaryization the page try one's best primaryization, improve Consumer's Experience, while the page configuration work of operation personnel can be reduced Measure, reduce the probability of page configuration error.
To achieve the above object, one side according to embodiments of the present invention, there is provided a kind of customer terminal webpage redirects place Reason method.
The customer terminal webpage of the embodiment of the present invention, which redirects processing method, to be included:When the link on the page is clicked, intercept The link;The link is compared with the primary filtering rule that redirects;If the link primary redirects filtering with described Rule match, by it is primary redirect mode and jump to link the corresponding primary page with described;Otherwise, mode is redirected by link Jump to and link corresponding Webpage with described.
Alternatively, methods described also includes:It is described link with it is primary redirect filter rule match in the case of, obtain institute State the domain name field in link;Also, in the case where domain name field belongs to first set, execution passes through the primary side of redirecting Formula jumps to the step of primary page corresponding to the link;Wherein, the first set includes:Client release need not be distinguished The page domain name field.
Alternatively, methods described also includes:It is described link with it is primary redirect filter rule match in the case of, obtain institute State the domain name field in link;Also, in the case where domain name field belongs to second set, send acquisition page jump and refer to The request shown, and receive the page jump instruction of return;The page according to corresponding to page jump instruction jumps to the link Face;Wherein, the second set includes:Need the domain name field of the page of differentiation client release.
Alternatively, include according to corresponding to page jump instruction jumps to the link the step of page:Described Page jump be designated as it is primary redirect instruction in the case of, by it is primary redirect mode jump to it is described link it is corresponding primary The page;It is designated as in the case that link redirects instruction, redirecting mode by link and jumping to and the chain in the page jump Connect corresponding Webpage.
Alternatively, methods described also includes:In the case where domain name field belongs to second set, the link is obtained In page jump identification field;Also, in the case where the page jump identification field is sky, perform and send the acquisition page The step of redirecting the request of instruction.
Alternatively, methods described also includes:If the page jump identification field is not sky, jumped according to the page Turn identification field and carry out page jump, without performing the step of sending the request for obtaining page jump instruction;Wherein, the page Identification field is redirected including at least one of following:It is primary redirect identification field, link redirect identification field.
Alternatively, methods described also includes:In the case where domain name field belongs to second set, pass through Webview Load Webpage corresponding to the link;Also, it is designated as the primary feelings for redirecting instruction in the page jump for receiving return Under condition, the loading of the Webpage is terminated.
Alternatively, methods described also includes:The primary situation for redirecting instruction is designated as in the page jump for receiving return Under, the successful loading for inquiring about the Webview records;It is described successfully loading be recorded as sky in the case of, described in removal Webview;Otherwise, the Webview is not removed.
Alternatively, methods described also includes:Load Webpage corresponding to the link by Webview the step of it Before, send and link the request pre-processed to described, and the pretreated link of return is received, with according to the pretreatment Load linked Webpage afterwards.
Alternatively, methods described also includes:After the step of receiving pretreated link, judge to receive the page The time of instruction is redirected with receiving whether the difference of the pretreated time linked is less than predetermined threshold value;If the difference Value is less than predetermined threshold value, then the page according to corresponding to page jump instruction jumps to the link;Otherwise, basis is not performed The step of page jump instruction jumps to the page corresponding to the link, and be to continue with according to the pretreated link Load the Webpage.
Alternatively, the primary form for redirecting filtering rule and using regular expression.
Alternatively, methods described also includes:Send and obtain the primary request for redirecting filtering rule;Receive the primary jump returned Turn filtering rule, and the primary filtering rule that redirects is preserved.
To achieve the above object, another aspect according to embodiments of the present invention, there is provided a kind of customer terminal webpage redirects place Manage device.
The customer terminal webpage of the embodiment of the present invention, which redirects processing unit, to be included:Blocking module, for the link on the page When being clicked, the link is intercepted;Comparing module, for the link to be compared with the primary filtering rule that redirects;Redirect Module, for it is described link with it is described it is primary redirect filter rule match in the case of, jumped to by the primary mode that redirects The corresponding primary page is linked with described;For it is described link with it is described it is primary redirect filtering rule it is unmatched in the case of, Redirect mode by link and jump to and link corresponding Webpage with described.
Alternatively, the comparing module, it is additionally operable in the link and the primary situation for redirecting filter rule match Under, obtain the domain name field in the link;The jump module, it is additionally operable to the feelings for belonging to first set in domain name field Under condition, by it is primary redirect mode and jump to link the corresponding primary page with described;Wherein, the first set includes:Nothing The domain name field of the page of client release need to be distinguished.
Alternatively, the comparing module, it is additionally operable in the link and the primary situation for redirecting filter rule match Under, obtain the domain name field in the link;Described device also includes:First request module, in domain name field category In the case of second set, the request for obtaining page jump instruction is sent, and receives the page jump instruction of return;The jump Revolving die block, it is additionally operable to the page according to corresponding to page jump instruction jumps to the link;Wherein, the second set bag Include:Need the domain name field of the page of differentiation client release.
To achieve the above object, a kind of another aspect according to embodiments of the present invention, there is provided server.
The server of the embodiment of the present invention includes:Rule issues module, for receiving the client of the embodiment of the present invention After holding the primary request for redirecting filtering rule of acquisition that page jump processing unit is sent, the primary filtering rule that redirects is sent To described device;Redirect instruction and issue module, for receiving the request for obtaining page jump instruction of described device transmission Afterwards, the instruction of corresponding page jump is sent to described device.
To achieve the above object, a kind of another aspect according to embodiments of the present invention, there is provided terminal device.
The terminal device of the embodiment of the present invention, including:One or more processors;And storage device, for storing one Individual or multiple programs;When one or more of programs are by one or more of computing devices so that one or more Individual processor realizes that the customer terminal webpage of the embodiment of the present invention redirects processing method.
To achieve the above object, a kind of another aspect according to embodiments of the present invention, there is provided computer-readable medium.
The computer-readable medium of the embodiment of the present invention, is stored thereon with computer program, and described program is held by processor Realize that the customer terminal webpage of the embodiment of the present invention redirects processing method during row.
One embodiment in foregoing invention has the following advantages that or beneficial effect:In client's end page of the embodiment of the present invention Face is redirected in processing method, when link is clicked, by intercepting link, being compared link with the primary filtering rule that redirects To, according to comparison result selection carry out it is primary redirect or link the step such as redirect, the page for being capable of primaryization in client can be made Face is tried one's best primaryization, improves Consumer's Experience.Further, since the method using the embodiment of the present invention so that operation personnel need to only match somebody with somebody Link is put to redirect, without not only configure it is primary redirect but also configure link redirect, considerably reduce the page configuration work of operation personnel Measure, reduce the probability of page configuration error.
Further effect adds hereinafter in conjunction with embodiment possessed by above-mentioned non-usual optional mode With explanation.
Brief description of the drawings
Accompanying drawing is used to more fully understand the present invention, does not form inappropriate limitation of the present invention.Wherein:
Fig. 1 is the schematic diagram for the key step that customer terminal webpage according to an embodiment of the invention redirects processing method;
Fig. 2 is the schematic diagram for the key step that customer terminal webpage according to another embodiment of the present invention redirects processing method;
Fig. 3 is the schematic diagram for the key step that customer terminal webpage according to yet another embodiment of the invention redirects processing method;
Fig. 4 is the schematic diagram for the key step that processing method is redirected according to the customer terminal webpage of further embodiment of this invention;
Fig. 5 is the schematic diagram for the main modular that customer terminal webpage according to an embodiment of the invention redirects processing unit;
Fig. 6 is the schematic diagram for the main modular that customer terminal webpage according to another embodiment of the present invention redirects processing unit;
Fig. 7 is the schematic diagram for the main modular that customer terminal webpage according to yet another embodiment of the invention redirects processing unit;
Fig. 8 is the schematic diagram for the main modular that processing unit is redirected according to the customer terminal webpage of further embodiment of this invention;
Fig. 9 is the schematic diagram of the main modular of server according to an embodiment of the invention;
Figure 10 is that the embodiment of the present invention can apply to exemplary system architecture figure therein;
Figure 11 is adapted for the structural representation of the computer system of the terminal device for realizing the embodiment of the present invention.
Embodiment
The one exemplary embodiment of the present invention is explained below in conjunction with accompanying drawing, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize Arrive, various changes and modifications can be made to the embodiments described herein, without departing from scope and spirit of the present invention.Together Sample, for clarity and conciseness, the description to known function and structure is eliminated in following description.
It is pointed out that in the case where not conflicting, the feature in embodiment and embodiment in the present invention can be with It is mutually combined.
Fig. 1 is the schematic diagram for the main flow that customer terminal webpage according to an embodiment of the invention redirects processing method. Mainly include as shown in figure 1, the customer terminal webpage of the embodiment of the present invention redirects processing method:
Step S101, when the link on the page is clicked, the link is intercepted.
Step S102, the link is compared with the primary filtering rule that redirects.
Wherein, the primary form for redirecting filtering rule and regular expression can be selected.Regular expression can be regarded as using The combination of some good character strings of predefined and these character strings, form one " regular character string ", this " regular character String " can be used to express a kind of filter logic to character string.In the specific implementation, the primary canonical table for redirecting filtering rule is represented Can be one or more up to formula.For example, a certain represent that the primary regular expression for redirecting filtering rule is
^http(:s):\\/\\/(:wqitem\\.jd\\.com|wqs\\.jd\\.com|wq\\.jd\\.com| wqitem\\.jd\\.hk)\\/item\\/view\\(:.+&) * sku=(d+).
In addition, in the specific implementation, the primary filtering rule that redirects can also use the form of non-regular expression.Than Such as, the primary filtering rule that redirects can be the domain name field pre-set, if intercept link in domain name field with Any domain name field for pre-setting is identical, then it is assumed that the link and primary filter rule match.Exemplarily, it is assumed that Primary filtering rule is:Www.baidu.com, the A of interception are linked as https://www.baidu.com, A are linked and primary jump Turn filter rule match, the B of interception is linked as https://www.sina.com, B link does not redirect filtering rule not with primary Match somebody with somebody.
If step S103, it is described link with it is described it is primary redirect filter rule match, redirected by the primary mode that redirects Extremely the corresponding primary page is linked with described.
Exemplary, when the link and the primary filter rule match of any regular expression form, can also lead to Cross the regular expression and obtain part field contents in link, primary redirected for follow-up.For example, it is assumed that certain intercepted One link https://item.m.jd.comWareid=12458 and matching regular expressions, it can also pass through the regular expressions Formula obtains the domain name field " item.m.jd.com " in link, and commodity sign field " 12458 ", then according to acquisition Domain name field and commodity sign field call it is primary redirect mode, link the corresponding primary page with described to jump to.
If step S104, described link do not meet it is described it is primary redirect filtering rule, redirect mode by link and redirect Extremely corresponding Webpage is linked with described.
Method according to embodiments of the present invention, when link is clicked, by intercepting link, redirecting link with primary Filter rule is compared, according to comparison result selection carry out it is primary redirect or link the step such as redirect, can uniformly match somebody with somebody in the page In the case of putting link, the page for being capable of primaryization in client is tried one's best primaryization, improve Consumer's Experience.Further, since fortune Battalion personnel need to only configure link, without according to platform environment is different, client release difference had not only configured and primary redirected mode but also match somebody with somebody Put link and redirect mode, considerably reduce the page configuration workload of operation personnel, reduce the probability of page configuration error.
Fig. 2 is the schematic diagram for the main flow that customer terminal webpage according to another embodiment of the present invention redirects processing method. Mainly include as shown in Fig. 2 the customer terminal webpage of the embodiment of the present invention redirects processing method:
Step S201, when the link on the page is clicked, the link is intercepted.
Further, before step S201, the customer terminal webpage of the embodiment of the present invention, which redirects processing method, also to be included:To clothes Business end, which is sent, obtains the primary request for redirecting filtering rule;Receive the primary of service end transmission and redirect filtering rule, and by described in The primary filtering rule that redirects is preserved.
Exemplary, after each client terminal start-up, you can redirect filtering rule to service end request is primary.If this time It is successfully received the primary of service end transmission and redirects filtering rule, then the primary filtering rule that redirects of this reception can be stored in It is local, and with this preservation it is primary redirect filtering rule covering it is last preserve primary redirect filtering rule;If this time Receive the primary filtering rule that redirects to fail, then last the primary of preservation can be used to redirect filtering rule.By dynamically asking, Receive it is primary redirect filtering rule, be easy to client upgrade in time it is local it is primary redirect filtering rule, improve client's end page Face redirects the flexibility of processing method;By the way that the primary filtering rule that redirects being properly received is stored in into local, it is easy at certain When receiving rule failure using be previously saved it is primary redirect filtering rule, improve customer terminal webpage and redirect the strong of processing method Strong property.
Step S202, the link is compared with the primary filtering rule that redirects.If the link redirects with primary Filter rule match, into step S203;If the link redirects filtering rule mismatch with primary, into step S204.
Exemplary, the primary filtering rule that redirects can use the form of regular expression.
Step S203, the domain name field in the link is obtained.If domain name field belongs to first set, into step Rapid S205;If domain name field belongs to second set, into step S206.
Wherein, first set includes:The domain name field of the page of client release need not be distinguished.For example, in a certain shopping In class client, commodity details page, shop page are the page that need not distinguish client release, then, point to commodity details page, shop The domain name field spread in the link of page belongs to first set.Second set includes:Need the domain of the page of differentiation client release File-name field.For example, in a certain shopping class client, Holiday Sale loose-leaf is the page for needing to distinguish client release, So, the domain name field pointed in the link of Holiday Sale loose-leaf belongs to second set.
For example, it is assumed that one is linked as https://item.m.jd.comWareid=12458, the link redirect with primary Filter rule match, and the domain name field " item.m.jd.com " in the link belongs to first set, then into step S205. For example, it is assumed that one is linked as https://pro.m.jd.com/active/fahdflahfa/index.html, the link and original Life redirects filter rule match, and the domain name field " pro.m.jd.com " in the link belongs to second set, then into step S206。
Step S204, redirect mode by link and jump to and link corresponding Webpage with described.
Step S205, by it is primary redirect mode and jump to link the corresponding primary page with described.
Step S206, the request for obtaining page jump instruction is sent to service end.After step S206, into step S207。
Exemplary, the request for obtaining page jump instruction includes:The page in client release number and link Parameter information.
For example, it is assumed that one is linked as https with primary filter rule match://pro.m.jd.com/active/ Fahdflahfa/index.html, and the domain name field " pro.m.jd.com " in the link belongs to second set, can be from this Page parameter information, specially collapsible form identification field " fahdflahfa ", and obtain the version of client are taken out in link Number, request that service end is sent to generation, being indicated for obtaining page jump.Upon receipt of the request, service end can Corresponding page jump instruction is made according to client release number and page parameter information, and page jump instruction is sent extremely Client.
Step S207, the page jump instruction that service end is sent is received.Wherein, the page jump is designated as primary redirect Instruction or link redirect instruction.
Step S208, the page according to corresponding to page jump instruction jumps to the link.
Specifically, step S208 includes:The page jump be designated as it is primary redirect instruction in the case of, by primary The mode of redirecting jumps to links the corresponding primary page with described;It is designated as linking the situation for redirecting instruction in the page jump Under, redirect mode by link and jump to and link corresponding Webpage with described.
In embodiments of the present invention, by link with primary filter rule match after, according to the domain name in the link The difference of field uses different page jump processing steps, improves page jump processing method being applicable under different scenes Property.In addition, by step S206, S207, S208, corresponding page jump side can be used according to the difference of client release Formula.So, the page for being capable of primaryization in client is tried one's best primaryization, improve Consumer's Experience, and can keep away Exempt from " not showing in client of the module of the primary displaying of ability in lowest version in the client of highest version, cause the page to lack Lose " the problem of.Further, since operation personnel need to only configure link for all versions redirects mode, without for different clients Hold version to configure different page jump modes, considerably reduce the page configuration workload of operation personnel, reduce the page Configure the probability of error.
Fig. 3 is the schematic diagram for the main flow that customer terminal webpage according to yet another embodiment of the invention redirects processing method. Embodiment illustrated in fig. 3 is the further improvement to embodiment illustrated in fig. 2.Described further improve is mainly reflected in:Judging to block The link cut redirects filter rule match and the step of domain name field in linking belongs to after second set with primary.Therefore, Illustrated below mainly for these steps.
Mainly include as shown in figure 3, the customer terminal webpage of the embodiment of the present invention redirects processing method:
Step S301, domain name field, the page jump identification field in link are obtained.Belong to second set in domain name field In the case of, judge whether the page jump identification field in link is empty.In the case where page jump identification field is sky, Into step S302;In the case where page jump identification field is not for sky, into step S303.
In the specific implementation, operation personnel can set page jump identification field in some links according to demand.For example, For the redirected link under the abnormal conditions such as page reorientation, page jump identification field can be set in link.Wherein, institute Page jump identification field is stated including at least one of following:It is primary redirect identification field, link redirect identification field.It is exemplary , the primary identification field that redirects is " has_native=1 ", and it is " has_native=0 " that link, which redirects identifier word,.An assuming that chain It is connected in https://pro.m.jd.com/active/fahdflahfa/index.htmlHas_native=0, in the link Domain name field belong to second set, and the link includes page jump identification field " has_native=0 ", therefore enters step S303.Again such as, it is assumed that one is linked as https://pro.m.jd.com/active/fahdflahfa/index.html, should Domain name field in link belongs to second set, and the page jump identification field in the link is sky, therefore enters step S302.
Step S302, by described in Webview (a kind of control for loading webpage a, browser can be regarded as) loading Webpage corresponding to link.Afterwards, into step S304.
Step S303, page jump is carried out according to the page jump identification field.
Specifically, step S303 includes:When the page jump identification field for it is primary redirect identification field when, pass through original It is raw redirect mode and jump to link the corresponding primary page with described;When the page jump identification field is that link redirects mark During field, redirect mode by link and jump to and link corresponding Webpage with described.
Step S304, the request for obtaining page jump instruction is sent to service end, receives the page jump that service end is sent Instruction.
Wherein, the page jump instruction includes:It is primary redirect instruction, link redirect instruction.Jumped in the page received Turn be designated as it is primary redirect instruction in the case of, into step S305.Link, which is designated as, in the page jump received redirects finger In the case of showing, continue to load Webpage corresponding to the link.
Step S305, by it is primary redirect mode and jump to link the corresponding primary page with described, terminate the webpage The loading of the page.Afterwards, into step S306.
Step S306, Webview successful loading record is inquired about.It is described successfully loading be recorded as sky in the case of, enter Enter step S307;In the case where the successfully loading record is not for sky, the Webview is not removed.
Step S307, the Webview is removed.
In embodiments of the present invention, the successful loading by inquiring about Webview records, and can substantially judge that this time link redirects Front and rear page situation:When the successfully loading is recorded as space-time, it is believed that be former to another by a primary page jump The raw page;When the successfully loading record is not space-time, it is believed that be to jump to a primary page by a Webpage.Enter And the successful loading by inquiring about Webview records, and it is recorded as space-time in the successfully loading and removes the Webview, energy Enough avoid the situation of middle transition page occur when returning to a primary page by the primary page after redirecting so that user couple In page jump processing procedure unaware, the seamless switching of the page is realized, improves Consumer's Experience.
Fig. 4 is the schematic diagram for the main flow that processing method is redirected according to the customer terminal webpage of further embodiment of this invention. Embodiment illustrated in fig. 4 is the further improvement to embodiment illustrated in fig. 2.Described further improve is mainly reflected in:Judging to block The link cut redirects filter rule match and the step of domain name field in linking belongs to after second set with primary.Therefore, Illustrated below mainly for these steps.
Mainly include as shown in figure 4, the customer terminal webpage of the embodiment of the present invention redirects processing method:
Step S401, in the case where domain name field belongs to second set, sent to service end and obtain page jump instruction Request.
Step S402, sent to service end and link the request pre-processed to described.
When it is implemented, service end after pretreatment request is received, pre-processes to the link, including:Addition Active user's logging status and the geographical location information residing for user.Afterwards, service end by pretreated chain receive and send to Client.
Step S403, the pretreated link that service end is sent is received, and according to the pretreated load linked Webpage.
Step S404, judge the time for receiving page jump instruction is with the difference for receiving the pretreated time linked It is no to be less than default threshold value.If the difference is less than threshold value, into step S405;Otherwise, into step S407.
Exemplary, the default threshold value can be set to 200ms.Connect if the time for receiving page jump instruction is later than The time 200ms or more than 200ms of pretreated link is received, then continues to load the Webpage.So, can keep away Exempt from the problem of user waits the overlong time that the page loads occur, so as to improve Consumer's Experience.
Step S405, the page jump for judging to receive indicates whether to redirect instruction to be primary.Instruction is redirected if primary, Into step S406;Instruction is redirected if link, into step S407.
Step S406, by it is primary redirect mode and jump to link the corresponding primary page with described, and terminate the net The loading of the page page.
Step S407, continue to load the Webpage.
Method according to embodiments of the present invention, the page for being capable of primaryization in client can be made to try one's best primaryization, improved Consumer's Experience.Further, since the method using the embodiment of the present invention so that operation personnel need to only configure link and redirect, without both Configure it is primary redirect and configure link redirect, considerably reduce the page configuration workload of operation personnel, reduce the page and match somebody with somebody Put the probability of error.Further, by step S404 to step S407, the time that user waits the page to load can be avoided the occurrence of The problem of long, preferably improve Consumer's Experience.
Fig. 5 is the schematic diagram for the main modular that customer terminal webpage according to an embodiment of the invention redirects processing unit. Include as shown in figure 5, the customer terminal webpage of the embodiment of the present invention redirects processing unit 500:Blocking module 501, comparing module 502nd, jump module 503.
Blocking module 501, for when the link on the page is clicked, intercepting the link.
Comparing module 502, for the link to be compared with the primary filtering rule that redirects.
Wherein, the primary form for redirecting filtering rule and regular expression can be selected.Regular expression can be regarded as using The combination of some good specific character strings of predefined and these specific character strings, form one " regular character string ", this " regular character string " can be used to express a kind of filter logic to character string.In the specific implementation, represent primary and redirect filtering rule Regular expression then can be one or more.
Jump module 503, for it is described link with it is described it is primary redirect filter rule match in the case of, by primary The mode of redirecting jumps to links the corresponding primary page with described;For primary redirecting filtering rule not with described in the link In the case of matching, redirect mode by link and jump to and link corresponding Webpage with described.
Exemplary, when the link and the primary filter rule match of any regular expression form, can also lead to Cross the regular expression and obtain part field contents in link, primary redirected for follow-up.For example, it is assumed that blocking module The 501 a certain link https intercepted://item.m.jd.comWareid=12458 and matching regular expressions, then it can also lead to The domain name field " item.m.jd.com " crossed in regular expression acquisition link, and commodity sign field " 12458 ", so Afterwards jump module 503 according to the domain name field and commodity sign field of acquisition call it is primary redirect mode, to jump to and institute State the primary page corresponding to link.
In the device of the embodiment of the present invention, by blocking module intercept link, by comparing module will link with it is primary Filtering rule is redirected to be compared, and by jump module according to comparison result carry out it is primary redirect or link redirect, Neng Gou In the case of the unified configuration link of the page, the page for being capable of primaryization in client is tried one's best primaryization, improve Consumer's Experience.Separately Outside, because operation personnel need to only configure link, without both having configured primary redirect according to platform environment difference, client release difference Mode configures link and redirects mode again, considerably reduces the page configuration workload of operation personnel, reduces page configuration and go out Wrong probability.
Fig. 6 is the schematic diagram for the main modular that customer terminal webpage according to another embodiment of the present invention redirects processing unit. Include as shown in fig. 6, the customer terminal webpage of the embodiment of the present invention redirects processing unit 600:Rule acquisition module 601, intercept mould Block 602, comparing module 603, the first request module 604, jump module 605.
Rule acquisition module 601, the primary request for redirecting filtering rule is obtained for being sent to service end, is additionally operable to receive The primary of service end transmission redirects filtering rule, and the primary filtering rule that redirects is preserved.
Exemplary, rule acquisition module 601 can redirect filtering after each client terminal start-up to service end request is primary Rule.If rule acquisition module 601 is this time successfully received the primary of service end transmission and redirects filtering rule, can be by this The primary filtering rule that redirects received is stored in local, and redirects the last preservation of filtering rule covering with the primary of this preservation Primary redirect filtering rule;Fail if rule acquisition module 601 this time receives the primary filtering rule that redirects, can be used What is once preserved primary redirects filtering rule.
In embodiments of the present invention, dynamically asked by rule acquisition module 601, receive it is primary redirect filtering rule, Be easy to client upgrade in time it is local it is primary redirect filtering rule, improve customer terminal webpage and redirect the flexible of processing unit Property;By the way that the primary filtering rule that redirects being properly received is stored in into local, it is easy in certain reception rule failure using first The primary of preceding preservation redirects filtering rule, improves the robustness that customer terminal webpage redirects processing unit.
Blocking module 602, for when the link on the page is clicked, intercepting the link.
Comparing module 603, for the link to be compared with the primary filtering rule that redirects.It is described link with it is primary Redirect filtering rule it is unmatched in the case of, by jump module 605 by link redirect mode jump to it is described link it is corresponding Webpage.It is described link with it is primary redirect filter rule match in the case of, the link is obtained by comparing module 603 In domain name field.
Jump module 605, is additionally operable in the case where domain name field belongs to first set, and mode is redirected by primary Jump to and link the corresponding primary page with described.Wherein, the first set includes:The page of client release need not be distinguished Domain name field.For example, in a certain shopping class client, commodity details page, shop page are that need not distinguish client release The page, then, the domain name field pointed in the link of commodity details page, shop page belongs to first set.
First request module 604, in the case of belonging to second set in domain name field, send and obtain to service end The request for taking page jump to indicate, and receive the page jump instruction of service end transmission.Wherein, the second set includes:Need Distinguish the domain name field of the page of client release.For example, in a certain shopping class client, Holiday Sale loose-leaf is Need the page of differentiation client release, then, the domain name field pointed in the link of Holiday Sale loose-leaf belongs to second Set.
For example, it is assumed that one is linked as https://item.m.jd.comWareid=12458, the link redirect with primary Filter rule match, and the domain name field " item.m.jd.com " in the link belongs to first set, then by jump module 605 Redirected by the primary mode that redirects.For example, it is assumed that one is linked as https://pro.m.jd.com/active/ Fahdflahfa/index.html, the link redirect filter rule match, and the domain name field in the link with primary " pro.m.jd.com " belongs to second set, then is sent from the first request module 604 to service end and obtain page jump instruction Request.
Jump module 605, it is additionally operable to the page according to corresponding to page jump instruction jumps to the link, specific bag Include:The page jump be designated as it is primary redirect instruction in the case of, the jump module is redirected by the primary mode that redirects Extremely the corresponding primary page is linked with described;It is designated as in page jump in the case that link redirects instruction, the jump module Redirect mode by link and jump to and link corresponding Webpage with described.
In embodiments of the present invention, by setting comparing module, jump module, the first request module, can link with After primary filter rule match, the difference of the domain name field in the link performs different page jump processing operations, And then improve applicability of the page jump processing unit in different scenes.In addition, please to service end by the first request module Ask and obtain page jump instruction, the page for being capable of primaryization in client is tried one's best primaryization, improve Consumer's Experience, and It can avoid " can not showing, causing in client of the module of the primary displaying of ability in lowest version in the client of highest version The problem of page miss ".Further, since operation personnel need to only configure link for all versions redirects mode, without for not Different page jump modes is configured with client release, considerably reduces the page configuration workload of operation personnel, is reduced The probability of page configuration error.
Fig. 7 is the schematic diagram for the main modular that customer terminal webpage according to yet another embodiment of the invention redirects processing unit. Include as shown in fig. 7, the customer terminal webpage of the embodiment of the present invention redirects processing unit 700:Rule acquisition module 701, intercept mould Block 702, comparing module 703, the first request module 704, jump module 705, inquiry and remove module 706.
Rule acquisition module 701, the primary request for redirecting filtering rule is obtained for being sent to service end, is additionally operable to receive The primary of service end transmission redirects filtering rule, and the primary filtering rule that redirects is preserved.
Blocking module 702, for when the link on the page is clicked, intercepting the link.
Comparing module 703, for the link to be compared with the primary filtering rule that redirects.It is described link with it is primary Redirect filtering rule it is unmatched in the case of, by jump module 705 by link redirect mode jump to it is described link it is corresponding Webpage.It is described link with it is primary redirect filter rule match in the case of, the link is obtained by comparing module 703 In domain name field.
Jump module 705, is additionally operable in the case where domain name field belongs to first set, and mode is redirected by primary Jump to and link the corresponding primary page with described.Wherein, the first set includes:The page of client release need not be distinguished Domain name field.For example, in a certain shopping class client, commodity details page, shop page are that need not distinguish client release The page, then, the domain name field pointed in the link of commodity details page, shop page belongs to first set.
Comparing module 703, it is additionally operable in the case where domain name field belongs to second set, obtains the page in the link Redirect identification field.
In the specific implementation, operation personnel can set page jump identification field in some links according to demand.For example, The redirected link of page reorientation situation for some be present, page jump identification field can be set in link.Wherein, institute Page jump identification field is stated including at least one of following:It is primary redirect identification field, link redirect identification field.It is exemplary , the primary identification field that redirects is " has_native=1 ", and it is " has_native=0 " that link, which redirects identifier word,.
In the case where page jump identification field is not for sky, by jump module 705 according to the page jump identifier word Duan Jinhang page jumps.
Exemplary, jump module 705 carries out page jump according to the page jump identification field to be included:When the page Face redirect identification field for it is primary redirect identification field when, by it is primary redirect mode jump to it is described link it is corresponding primary The page;When the page jump identification field be link redirect identification field when, by link redirect mode jump to it is described Webpage corresponding to link.
In the case where page jump identification field is sky, Webview (one kind loading webpages are passed through by jump module 705 Control, a browser can be regarded as) loading with described links corresponding Webpage.Also, identified in page jump In the case that field is sky, the request for obtaining page jump instruction is sent from the first request module 704 to service end, and receive clothes The page jump instruction that business end is sent.Wherein, the page jump instruction includes:It is primary redirect instruction, link redirect instruction.
It is designated as in the page jump that the first request module 704 receives in the case that link redirects instruction, jump module Continue loading and link corresponding Webpage with described.
The page jump that the first request module 704 receives be designated as it is primary redirect instruction in the case of, by redirecting mould Block 705 by it is primary redirect mode and jump to link the corresponding primary page with described, and terminate the loading of the Webpage. Also, the page jump that the first request module 704 receives be designated as it is primary redirect instruction in the case of, by inquiry and remove Module 706 inquires about the successful loading record of the Webview.Also, it is described successfully loading be recorded as sky in the case of, by looking into Ask and remove the Webview with remove module 706;In the case where the successfully loading record is not for sky, do not remove described Webview。
In embodiments of the present invention, when the successfully loading is recorded as space-time, it is believed that this time link redirects the effect of processing Fruit is:Redirected by being linked between a primary page and another primary page.When the successfully loading records not For space-time, it is believed that this time link, which redirects the effect of processing, is:By be linked at a Webpage and primary page it Between redirected.Therefore, in embodiments of the present invention, sky is recorded as in the successfully loading with remove module 706 by inquiry When remove the Webview, can avoid by after redirecting the primary page return on a primary page when occur among mistake Cross the situation of page so that the process unaware that user is handled for page jump, realize the seamless switching of the page, improve use Experience at family.
Device according to embodiments of the present invention, the page for being capable of primaryization in client can be made to try one's best primaryization, improved Consumer's Experience.Further, since the method using the embodiment of the present invention so that operation personnel need to only configure link and redirect, without both Configure it is primary redirect and configure link redirect, considerably reduce the page configuration workload of operation personnel, reduce the page and match somebody with somebody Put the probability of error.Further, by setting inquiry and remove module 706, can avoid returning by the primary page after redirecting There is the situation of middle transition page when returning a upper primary page so that the process unaware that user is handled for page jump, Realize the seamless switching of the page.
Fig. 8 is the schematic diagram for the main modular that processing unit is redirected according to the customer terminal webpage of further embodiment of this invention. Include as shown in figure 8, the customer terminal webpage of the embodiment of the present invention redirects processing unit 800:Rule acquisition module 801, intercept mould Block 802, comparing module 803, the first request module 804, the second request module 805, judge module 806, jump module 807.
Rule acquisition module 801, the primary request for redirecting filtering rule is obtained for being sent to service end, is additionally operable to receive The primary of service end transmission redirects filtering rule, and the primary filtering rule that redirects is preserved.
Blocking module 802, for when the link on the page is clicked, intercepting the link.
Comparing module 803, for the link to be compared with the primary filtering rule that redirects.It is described link with it is primary Redirect filtering rule it is unmatched in the case of, by jump module 807 by link redirect mode jump to it is described link it is corresponding Webpage.It is described link with it is primary redirect filter rule match in the case of, the link is obtained by comparing module 803 In domain name field.
Jump module 807, is additionally operable in the case where domain name field belongs to first set, and mode is redirected by primary Jump to and link the corresponding primary page with described.Wherein, the first set includes:The page of client release need not be distinguished Domain name field.For example, in a certain shopping class client, commodity details page, shop page are that need not distinguish client release The page, then, the domain name field pointed in the link of commodity details page, shop page belongs to first set.
First request module 804, in the case of belonging to second set in domain name field, send and obtain to service end The request for taking page jump to indicate, and receive the page jump instruction of service end transmission.Wherein, the second set includes:Need Distinguish the domain name field of the page of client release.For example, in a certain shopping class client, Holiday Sale loose-leaf is Need the page of differentiation client release, then, the domain name field pointed in the link of Holiday Sale loose-leaf belongs to second Set.
Second request module 805, in the case of belonging to second set in domain name field, sent to service end to described The request pre-processed is linked, and receives the pretreated link of service end transmission.When it is implemented, service end is receiving After being asked to pretreatment, the link is pre-processed, including:Add residing for active user's logging status and user Geographical location information.Afterwards, service end receives and sends pretreated chain to client.
Judge module 806, for judging that the first request module receives time and the second request of the page jump instruction Whether the difference that module receives the time of the pretreated link is less than predetermined threshold value.Exemplary, the default threshold Value can be set to 200ms.
Jump module 807, after receiving pretreated link in the second request module 805, pass through Webview Load Webpage corresponding to the pretreated link.Jump module 807 is additionally operable to, and is judged in judge module 806 described When difference is more than or equal to predetermined threshold value, continues through Webview and load Webpage corresponding to the pretreated link.
Jump module 807 is additionally operable to, and judges that the difference is less than predetermined threshold value and the page received in judge module 806 Face redirect be designated as it is primary when redirecting instruction, by it is primary redirect mode and jump to link the corresponding primary page with described, and Terminate loadings of the Webview to Webpage.Jump module 807 is additionally operable to, and judges that the difference is small in judge module 806 When predetermined threshold value and the page jump that receives are designated as link and redirect instruction, continue through Webview and load the pre- place Webpage corresponding to link after reason.
Device according to embodiments of the present invention, the page for being capable of primaryization in client can be made to try one's best primaryization, improved Consumer's Experience.Further, since the method using the embodiment of the present invention so that operation personnel need to only configure link and redirect, without both Configure it is primary redirect and configure link redirect, considerably reduce the page configuration workload of operation personnel, reduce the page and match somebody with somebody Put the probability of error.Further, by setting judge module, the overlong time that user waits the page to load can be avoided the occurrence of Problem, preferably improve Consumer's Experience.
Fig. 9 is the schematic diagram of the main modular of server according to an embodiment of the invention.It is as shown in figure 9, of the invention The server 900 of embodiment includes:Rule, which issues module 901, redirects instruction issues module 902.
Rule issues module 901, for primary being redirected in the acquisition for receiving customer terminal webpage and redirecting processing unit transmission After the request of filtering rule, the primary filtering rule that redirects is sent to described device.
Redirect instruction and issue module 902, for referring in the acquisition page jump for receiving the transmission of page jump processing unit After the request shown, the instruction of corresponding page jump is sent to described device.
When it is implemented, redirecting instruction issues module 902 after the request for obtaining page jump instruction is received, can root Made according to the client release number carried in request and the page parameter information extracted from link and redirect instruction accordingly, and The instruction of corresponding page jump is sent to described device.
Server according to embodiments of the present invention, customer terminal webpage can be aided in redirect processing unit and realized to page jump Processing.And then the page for being capable of primaryization in client can be made to try one's best primaryization, improve Consumer's Experience.
Figure 10 shows that the customer terminal webpage that can apply the embodiment of the present invention redirects processing method or customer terminal webpage jump Turn the exemplary system architecture 1000 of processing unit.
As shown in Figure 10, system architecture 1000 can include terminal device 1001,1002,1003, network 1004 and service Device 1005.Network 1004 between terminal device 1001,1002,1003 and server 1005 provide communication link Jie Matter.Network 1004 can include various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be interacted with using terminal equipment 1001,1002,1003 by network 1004 with server 1005, to receive Or send message etc..Various telecommunication customer end applications, such as class of doing shopping can be installed on terminal device 1001,1002,1003 Using, web browser applications, searching class application, JICQ, mailbox client, social platform software etc..
Terminal device 1001,1002,1003 can have a display screen and a various electronic equipments that supported web page browses, Including but not limited to smart mobile phone, tablet personal computer, pocket computer on knee and desktop computer etc..
Server 1005 can be to provide the server of various services, for example, to user using terminal device 1001,1002, The 1003 shopping class websites browsed provide the back-stage management server supported.Back-stage management server can obtain to what is received Take the data such as the primary request for redirecting filtering rule to carry out the processing such as analyzing, and result is fed back into terminal device.
It should be noted that the customer terminal webpage that the embodiment of the present invention is provided redirects processing method typically by terminal device Perform, correspondingly, customer terminal webpage redirects processing unit and is generally positioned in terminal device.
It should be understood that the number of the terminal device, network and server in Figure 10 is only schematical.According to realizing need Will, can have any number of terminal device, network and server.
Figure 11 shows that the structure of the computer system 1100 suitable for being used for the terminal device for realizing the embodiment of the present invention is shown It is intended to.Computer system shown in Figure 11 is only an example, should not be to the function and use range band of the embodiment of the present invention Carry out any restrictions.
As shown in figure 11, computer system 1100 includes CPU (CPU) 1101, its can according to be stored in only Read the program in memory (ROM) 1102 or be loaded into from storage part 1108 in random access storage device (RAM) 1103 Program and perform various appropriate actions and processing.In RAM 1103, also it is stored with system 1100 and operates required various journeys Sequence and data.CPU 1101, ROM 1102 and RAM 1103 are connected with each other by bus 1104.Input/output (I/O) interface 1105 are also connected to bus 1104.
I/O interfaces 1105 are connected to lower component:Importation 1106 including keyboard, mouse etc.;Including such as negative electrode The output par, c 1107 of ray tube (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage part including hard disk etc. 1108;And the communications portion 1109 of the NIC including LAN card, modem etc..Communications portion 1109 passes through Communication process is performed by the network of such as internet.Driver 1110 is also according to needing to be connected to I/O interfaces 1105.It is detachable to be situated between Matter 1111, such as disk, CD, magneto-optic disk, semiconductor memory etc., it is arranged on as needed on driver 1110, so as to Storage part 1108 is mounted into as needed in the computer program read from it.
Especially, according to embodiment disclosed by the invention, may be implemented as counting above with reference to the process of flow chart description Calculation machine software program.For example, embodiment disclosed by the invention includes a kind of computer program product, it includes being carried on computer Computer program on computer-readable recording medium, the computer program include the program code for being used for the method shown in execution flow chart. In such embodiment, the computer program can be downloaded and installed by communications portion 1109 from network, and/or from can Medium 1111 is dismantled to be mounted.When the computer program is performed by CPU (CPU) 1101, perform the present invention is The above-mentioned function of being limited in system.
It should be noted that the computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer-readable recording medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, system, device or the device of infrared ray or semiconductor, or it is any more than combination.Meter The more specifically example of calculation machine readable storage medium storing program for executing can include but is not limited to:Electrical connection with one or more wires, just Take formula computer disk, hard disk, random access storage device (RAM), read-only storage (ROM), erasable type and may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only storage (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the present invention, computer-readable recording medium can any include or store journey The tangible medium of sequence, the program can be commanded the either device use or in connection of execution system, device.And at this In invention, computer-readable signal media can include in a base band or as carrier wave a part propagation data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium beyond storage medium is read, the computer-readable medium, which can send, propagates or transmit, to be used for By instruction execution system, device either device use or program in connection.Included on computer-readable medium Program code can be transmitted with any appropriate medium, be included but is not limited to:Wirelessly, electric wire, optical cable, RF etc., or it is above-mentioned Any appropriate combination.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of various embodiments of the invention, method and computer journey Architectural framework in the cards, function and the operation of sequence product.At this point, each square frame in flow chart or block diagram can generation The part of one module of table, program segment or code, a part for above-mentioned module, program segment or code include one or more For realizing the executable instruction of defined logic function.It should also be noted that some as replace realization in, institute in square frame The function of mark can also be with different from the order marked in accompanying drawing generation.For example, two square frames succeedingly represented are actual On can perform substantially in parallel, they can also be performed in the opposite order sometimes, and this is depending on involved function.Also It is noted that the combination of each square frame and block diagram in block diagram or flow chart or the square frame in flow chart, can use and perform rule Fixed function or the special hardware based system of operation are realized, or can use the group of specialized hardware and computer instruction Close to realize.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part is realized.Described module can also be set within a processor, for example, can be described as:A kind of processor bag Include blocking module, comparing module, jump module.Wherein, the title of these modules is not formed to the module under certain conditions The restriction of itself, for example, comparing module is also described as " by link and the primary mould for redirecting filtering rule and being compared Block ".
As on the other hand, present invention also offers a kind of computer-readable medium, the computer-readable medium can be Included in equipment described in above-described embodiment;Can also be individualism, and without be incorporated the equipment in.Above-mentioned calculating Machine computer-readable recording medium carries one or more program, when said one or multiple programs are performed by the equipment, makes Obtain the equipment and perform below scheme:When the link on the page is clicked, the link is intercepted;The link is redirected with primary Filtering rule is compared;If it is described link with it is described it is primary redirect filter rule match, redirected by the primary mode that redirects Extremely the corresponding primary page is linked with described;Otherwise, redirect mode by link and jump to and link corresponding webpage page with described Face.
Above-mentioned embodiment, does not form limiting the scope of the invention.Those skilled in the art should be bright It is white, depending on design requirement and other factors, various modifications, combination, sub-portfolio and replacement can occur.It is any Modifications, equivalent substitutions and improvements made within the spirit and principles in the present invention etc., should be included in the scope of the present invention Within.

Claims (18)

1. a kind of customer terminal webpage redirects processing method, it is characterised in that methods described includes:
When the link on the page is clicked, the link is intercepted;
The link is compared with the primary filtering rule that redirects;
If the link with it is described it is primary redirect filter rule match, by it is primary redirect mode and jump to linked pair with described The primary page answered;Otherwise, redirect mode by link and jump to and link corresponding Webpage with described.
2. according to the method for claim 1, it is characterised in that methods described also includes:
It is described link with it is primary redirect filter rule match in the case of, obtain the domain name field in the link;Also, In the case that domain name field belongs to first set, perform by it is primary redirect mode jump to it is primary corresponding to the link The step of page;
Wherein, the first set includes:The domain name field of the page of client release need not be distinguished.
3. according to the method for claim 1, it is characterised in that methods described also includes:
It is described link with it is primary redirect filter rule match in the case of, obtain the domain name field in the link;Also, In the case that domain name field belongs to second set, the request for obtaining page jump instruction is sent, and receive the page of return Redirect instruction;The page according to corresponding to page jump instruction jumps to the link;
Wherein, the second set includes:Need the domain name field of the page of differentiation client release.
4. according to the method for claim 3, it is characterised in that the link pair is jumped to according to page jump instruction The step of page answered, includes:
The page jump be designated as it is primary redirect instruction in the case of, by it is primary redirect mode and jump to linked with described The corresponding primary page;It is designated as in the case that link redirects instruction, redirecting mode by link and redirecting in the page jump Extremely corresponding Webpage is linked with described.
5. according to the method for claim 3, it is characterised in that methods described also includes:
In the case where domain name field belongs to second set, the page jump identification field in the link is obtained;Also, In the case where the page jump identification field is sky, the step of sending the request for obtaining page jump instruction is performed.
6. according to the method for claim 5, it is characterised in that methods described also includes:
If the page jump identification field is not sky, page jump is carried out according to the page jump identification field, and Do not perform the step of sending the request for obtaining page jump instruction;
Wherein, the page jump identification field includes at least one of following:It is primary redirect identification field, link redirect identifier word Section.
7. according to any described method of claim 3 to 6, it is characterised in that methods described also includes:
In the case where domain name field belongs to second set, Webpage corresponding to the link is loaded by Webview; Also, the page jump for receiving return be designated as it is primary redirect instruction in the case of, terminate the loading of the Webpage.
8. according to the method for claim 7, it is characterised in that methods described also includes:
The page jump for receiving return be designated as it is primary redirect instruction in the case of, the success for inquiring about the Webview adds Record record;It is described successfully loading be recorded as sky in the case of, remove the Webview;Otherwise, the Webview is not removed.
9. according to the method for claim 7, it is characterised in that methods described also includes:
Before the step of Webpage corresponding to the link is loaded by Webview, send and the link is located in advance The request of reason, and the pretreated link of return is received, with according to the pretreated load linked Webpage.
10. according to the method for claim 9, it is characterised in that methods described also includes:
After the step of receiving the pretreated link returned, judge to receive time and the reception of the page jump instruction Whether the difference of the time of the pretreated link is less than predetermined threshold value;
If the difference is less than predetermined threshold value, the page according to corresponding to page jump instruction jumps to the link; Otherwise, not the step of not performing the page according to corresponding to page jump instruction jumps to the link, and be to continue with according to institute State Webpage described in pretreated load linked.
11. according to the method for claim 1, it is characterised in that the primary filtering rule that redirects uses regular expression Form.
12. according to the method for claim 1, it is characterised in that methods described also includes:
Send and obtain the primary request for redirecting filtering rule;Receive return primary and redirect filtering rule, and by the primary jump Turn filtering rule to be preserved.
13. a kind of customer terminal webpage redirects processing unit, it is characterised in that described device includes:
Blocking module, for when the link on the page is clicked, intercepting the link;
Comparing module, for the link to be compared with the primary filtering rule that redirects;
Jump module, for it is described link with it is described it is primary redirect filter rule match in the case of, pass through the primary side of redirecting Formula jumps to links the corresponding primary page with described;For the link with described primary to redirect filtering rule unmatched In the case of, redirect mode by link and jump to and link corresponding Webpage with described.
14. device according to claim 13, it is characterised in that
The comparing module, be additionally operable to it is described link with it is described it is primary redirect filter rule match in the case of, described in acquisition Domain name field in link;
The jump module, it is additionally operable in the case where domain name field belongs to first set, is jumped by the primary mode that redirects Go to and link the corresponding primary page with described;
Wherein, the first set includes:The domain name field of the page of client release need not be distinguished.
15. device according to claim 13, it is characterised in that
The comparing module, be additionally operable to it is described link with it is described it is primary redirect filter rule match in the case of, described in acquisition Domain name field in link;
Described device also includes:First request module, in the case of belonging to second set in domain name field, transmission obtains The request for taking page jump to indicate, and receive the page jump instruction of return;
The jump module, it is additionally operable to the page according to corresponding to page jump instruction jumps to the link;
Wherein, the second set includes:Need the domain name field of the page of differentiation client release.
16. a kind of server, it is characterised in that the server includes:
Rule issues module, in the primary filtering rule that redirects of acquisition for receiving the transmission of device described in claim 15 After request, the primary filtering rule that redirects is sent to described device;
Redirect instruction and issue module, for after the request for obtaining page jump instruction of described device transmission is received, inciting somebody to action Corresponding page jump instruction is sent to described device.
A kind of 17. terminal device, it is characterised in that including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are by one or more of computing devices so that one or more of processors are real The now method as described in any in claim 1 to 12.
18. a kind of computer-readable medium, is stored thereon with computer program, it is characterised in that described program is held by processor The method as described in any in claim 1 to 12 is realized during row.
CN201710992068.6A 2017-10-23 2017-10-23 Client page jump processing method and device Active CN107844324B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710992068.6A CN107844324B (en) 2017-10-23 2017-10-23 Client page jump processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710992068.6A CN107844324B (en) 2017-10-23 2017-10-23 Client page jump processing method and device

Publications (2)

Publication Number Publication Date
CN107844324A true CN107844324A (en) 2018-03-27
CN107844324B CN107844324B (en) 2021-11-02

Family

ID=61661603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710992068.6A Active CN107844324B (en) 2017-10-23 2017-10-23 Client page jump processing method and device

Country Status (1)

Country Link
CN (1) CN107844324B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108648363A (en) * 2018-05-10 2018-10-12 深圳市丰巢科技有限公司 A kind of method and express delivery cabinet of express delivery cabinet conversion of page
CN109033302A (en) * 2018-07-16 2018-12-18 深圳鼎盛电脑科技有限公司 A kind of method for page jump, device, terminal and storage medium
CN109840418A (en) * 2019-02-19 2019-06-04 Oppo广东移动通信有限公司 Jump control method, device, storage medium and the terminal of application program
CN109918153A (en) * 2019-03-18 2019-06-21 霍芳 Page open method and apparatus, page content retrieval method and device
CN110688592A (en) * 2018-07-06 2020-01-14 武汉斗鱼网络科技有限公司 External link skipping method, storage medium, electronic device and system
CN110764895A (en) * 2019-10-30 2020-02-07 江苏满运软件科技有限公司 Application service dynamic switching method, system, equipment and storage medium
CN111625736A (en) * 2020-05-25 2020-09-04 厦门美图之家科技有限公司 Link skip control method and related device
CN111786938A (en) * 2020-03-06 2020-10-16 北京沃东天骏信息技术有限公司 Method, system and electronic equipment for preventing malicious resource acquisition
CN111783018A (en) * 2020-07-28 2020-10-16 支付宝(杭州)信息技术有限公司 Page processing method, device and equipment
CN113641940A (en) * 2021-10-13 2021-11-12 北京新氧科技有限公司 Page jump method, device, system, equipment and storage medium
WO2022188713A1 (en) * 2021-03-12 2022-09-15 华为技术有限公司 Page feature storage method, page jump method, and apparatuses

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080005125A1 (en) * 2006-07-03 2008-01-03 Dewey Gaedeke System for displaying user generated content in a web browser
US7921353B1 (en) * 2007-04-09 2011-04-05 Oracle America, Inc. Method and system for providing client-server injection framework using asynchronous JavaScript and XML
CN103678536A (en) * 2013-12-02 2014-03-26 乐视网信息技术(北京)股份有限公司 Method and device for implementing page returning
CN104111944A (en) * 2013-04-19 2014-10-22 阿里巴巴集团控股有限公司 Page processing method and device and page generating method and device
CN105138340A (en) * 2015-09-15 2015-12-09 北京齐尔布莱特科技有限公司 Interaction method and system for Native and Web pages
CN106815276A (en) * 2015-11-27 2017-06-09 阿里巴巴集团控股有限公司 Method for page jump and device
CN107025221A (en) * 2016-01-29 2017-08-08 五八同城信息技术有限公司 Two-dimensional code scanning redirects processing method and processing device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080005125A1 (en) * 2006-07-03 2008-01-03 Dewey Gaedeke System for displaying user generated content in a web browser
US7921353B1 (en) * 2007-04-09 2011-04-05 Oracle America, Inc. Method and system for providing client-server injection framework using asynchronous JavaScript and XML
CN104111944A (en) * 2013-04-19 2014-10-22 阿里巴巴集团控股有限公司 Page processing method and device and page generating method and device
CN103678536A (en) * 2013-12-02 2014-03-26 乐视网信息技术(北京)股份有限公司 Method and device for implementing page returning
CN105138340A (en) * 2015-09-15 2015-12-09 北京齐尔布莱特科技有限公司 Interaction method and system for Native and Web pages
CN106815276A (en) * 2015-11-27 2017-06-09 阿里巴巴集团控股有限公司 Method for page jump and device
CN107025221A (en) * 2016-01-29 2017-08-08 五八同城信息技术有限公司 Two-dimensional code scanning redirects processing method and processing device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
SUILING: "【iOS开发】URL拦截转换成本地路由模块URLRewrite", 《HTTP://WWW.COCOACHINA.COM/ARTICLES/20161》 *
弗洛伊德解不了的梦: "iOS webView中JavaScript打开原生ViewController(截取版)", 《HTTPS://BLOG.CSDN.NET/SUIZHENXINFEI/ARTICLE/DETAILS/51154431》 *
酒尽雪满天: "Android 中最简单的实现 HTML(H5)调用native原生页面的方法", 《HTTPS://BLOG.CSDN.NET/WEI1583812/ARTICLE/DETAILS/53522043》 *

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108648363B (en) * 2018-05-10 2019-07-30 深圳市丰巢科技有限公司 A kind of method and express delivery cabinet of express delivery cabinet conversion of page
CN108648363A (en) * 2018-05-10 2018-10-12 深圳市丰巢科技有限公司 A kind of method and express delivery cabinet of express delivery cabinet conversion of page
CN110688592A (en) * 2018-07-06 2020-01-14 武汉斗鱼网络科技有限公司 External link skipping method, storage medium, electronic device and system
CN110688592B (en) * 2018-07-06 2022-06-21 武汉斗鱼网络科技有限公司 External link skipping method, storage medium, electronic device and system
CN109033302A (en) * 2018-07-16 2018-12-18 深圳鼎盛电脑科技有限公司 A kind of method for page jump, device, terminal and storage medium
CN109840418B (en) * 2019-02-19 2021-01-01 Oppo广东移动通信有限公司 Jump control method and device for application program, storage medium and terminal
CN109840418A (en) * 2019-02-19 2019-06-04 Oppo广东移动通信有限公司 Jump control method, device, storage medium and the terminal of application program
CN109918153A (en) * 2019-03-18 2019-06-21 霍芳 Page open method and apparatus, page content retrieval method and device
CN109918153B (en) * 2019-03-18 2022-05-27 北京信息科技大学 Page opening method and device and page content retrieval method and device
CN110764895A (en) * 2019-10-30 2020-02-07 江苏满运软件科技有限公司 Application service dynamic switching method, system, equipment and storage medium
CN111786938A (en) * 2020-03-06 2020-10-16 北京沃东天骏信息技术有限公司 Method, system and electronic equipment for preventing malicious resource acquisition
CN111786938B (en) * 2020-03-06 2021-10-15 北京沃东天骏信息技术有限公司 Method, system and electronic equipment for preventing malicious resource acquisition
CN111625736A (en) * 2020-05-25 2020-09-04 厦门美图之家科技有限公司 Link skip control method and related device
CN111625736B (en) * 2020-05-25 2023-04-07 厦门美图之家科技有限公司 Link skip control method and related device
CN111783018A (en) * 2020-07-28 2020-10-16 支付宝(杭州)信息技术有限公司 Page processing method, device and equipment
WO2022188713A1 (en) * 2021-03-12 2022-09-15 华为技术有限公司 Page feature storage method, page jump method, and apparatuses
CN113641940A (en) * 2021-10-13 2021-11-12 北京新氧科技有限公司 Page jump method, device, system, equipment and storage medium
CN113641940B (en) * 2021-10-13 2022-01-25 北京新氧科技有限公司 Page jump method, device, system, equipment and storage medium

Also Published As

Publication number Publication date
CN107844324B (en) 2021-11-02

Similar Documents

Publication Publication Date Title
CN107844324A (en) Customer terminal webpage redirects treating method and apparatus
CN107357914B (en) Information processing method and device
CN110245011A (en) A kind of method for scheduling task and device
CN109766082A (en) The method and apparatus that the application program page jumps
CN107329978A (en) The method for routing and device of multi-platform fusion
CN105554085B (en) A kind of dynamic timeout treatment method and apparatus based on server connection
CN109981719A (en) Information processing method and its system, computer system and computer readable medium
CN107908662A (en) The implementation method and realization device of search system
CN110427304A (en) O&M method, apparatus, electronic equipment and medium for banking system
CN109241033A (en) The method and apparatus for creating real-time data warehouse
CN110473036A (en) A kind of method and apparatus generating order number
CN110471848A (en) A kind of method and apparatus of dynamic returned packet
CN110019539A (en) A kind of method and apparatus that the data of data warehouse are synchronous
CN111881392A (en) Page display method and device
CN108804295A (en) log information recording method and device
CN110321252A (en) A kind of method and apparatus of craft services scheduling of resource
CN109840116A (en) A kind of method and apparatus loading resource file
CN108984197A (en) A kind of code update method and device
CN110505074A (en) A kind of application module integrated approach and device
CN110083457A (en) A kind of data capture method, device and data analysing method, device
CN109960212A (en) Task sending method and device
CN112817562A (en) Service processing method and device
CN108845864A (en) A kind of JVM rubbish recovering method and device based on spring frame
CN108959294A (en) A kind of method and apparatus accessing search engine
CN110389976A (en) A kind of dispatching method and device of multi-interface data

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