CN105512190A - Interface jumping method and device - Google Patents

Interface jumping method and device Download PDF

Info

Publication number
CN105512190A
CN105512190A CN201510835885.1A CN201510835885A CN105512190A CN 105512190 A CN105512190 A CN 105512190A CN 201510835885 A CN201510835885 A CN 201510835885A CN 105512190 A CN105512190 A CN 105512190A
Authority
CN
China
Prior art keywords
redirect
client
interface
configuration
service end
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
CN201510835885.1A
Other languages
Chinese (zh)
Other versions
CN105512190B (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201510835885.1A priority Critical patent/CN105512190B/en
Publication of CN105512190A publication Critical patent/CN105512190A/en
Application granted granted Critical
Publication of CN105512190B publication Critical patent/CN105512190B/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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Abstract

The invention provides an interface jumping method and device. The method comprises following steps of a server: determining jumping configuration for execution of interface jumping operation on a client side, wherein jumping configuration comprises a jumping direction from pre-set first interface jump to second interface jump of the client side; and releasing determined jumping configuration to the client end in order to be used for execute interface jumping of the client side according to jumping configuration. The interface jumping method and device have following beneficial effects: the existing problem of inflexible configuration during interface jumping is solved; and the effect of flexibly configuring the interface jumping of the client side of the server is achieved.

Description

Interface jump method and device
Technical field
The present invention relates to the communications field, in particular to a kind of interface jump method and device.
Background technology
At present, mobile client and service end mutual time, normal use following logic: when (1) client-side program brings into operation, according to the configuration preset, to service end request msg; (2), after service end receives request, corresponding data is returned according to client requirements; (3) after client receives the data that service end returns, according to the logical analysis data preset, interface is made corresponding display, user can start to operate simultaneously; (4) client makes corresponding operating (such as, interface redirect) according to user operation, whole flow process repetitive cycling again.
In the related, the logic of interface redirect is hard-coded in release product, and realize variation by upgrading version, the scheme of general interface redirect is: the sensing of client hard coded interface redirect and the parameter of needs.Fig. 1 is the logical diagram realizing interface jump method in correlation technique, the supplemental characteristic that client that as shown in Figure 1, the method comprises the steps: (1) needs to service end request; (2) the logic realization interface redirect of the client parameter of giving according to service end and hard coded, if parameter and logic inconsistent, then point out user or closing function.
In the method for above-mentioned interface redirect, there is following problem: redirect logical code in interface may repeatedly repeat, and can only carry out according to fixing logic, can not revise, therefore, in the related, when carrying out interface redirect, there is the inflexible problem of configuration.
Summary of the invention
The invention provides a kind of interface jump method and device, at least to solve in correlation technique when carrying out interface redirect, there is the inflexible problem of configuration.
According to an aspect of the present invention, provide a kind of interface jump method, comprise: service end determines configuring in the redirect of client executing interface redirect, wherein, described redirect configures to comprise and is used to indicate described client jumps to predetermined second contact surface redirect sensing from predetermined first interface; The described redirect configure publication determined is given described client by described service end, is used to indicate described client and performs interface redirect according to described redirect configuration.
Preferably, described service end determines comprising in the described redirect configuration of described client executing interface redirect: described service end determines the extraneous term that described redirect configures: uniform resource position mark URL, wherein, described URL is used to indicate described client when described client cannot perform interface redirect according to described redirect configuration, adopts webpage corresponding to described URL to perform interface redirect.
Preferably, the form of described URL is HTML (Hypertext Markup Language) html format.
Preferably, the described redirect configure publication determined comprises to described client by described service end: judge described redirect configuration relative to the one or more front version redirect configuration generated before described redirect configuration and whether there is renewal; When judged result is for being, generate for characterize described redirect configuration configure with described one or more front version redirect between the described one or more front version redirect of difference configure and distinguish corresponding one or more difference bags; Version redirect before corresponding with described client is configured corresponding difference bag and is distributed to described client.
Preferably, the described redirect configure publication determined comprises to described client by described service end: the described redirect configuration determined encapsulates by described service end, obtains encapsulating compressed package; The described encapsulation compressed package obtained is distributed to this client.
According to a further aspect in the invention, provide a kind of interface jump method, comprise: client receives the redirect configuration being used to indicate described client executing interface redirect that service end is distributed to described client, wherein, described redirect configures to comprise and is used to indicate described client jumps to predetermined second contact surface redirect sensing from predetermined first interface; Described client performs interface redirect according to described redirect configuration.
Preferably, described client receives the described redirect configuration being used to indicate described client executing interface redirect that described service end is distributed to described client and comprises: described client detect the local redirect stored be configured to not upgrade relative to described redirect configuration before version redirect configuration; Described client sends the update request for asking to upgrade described front version redirect configuration to described service end, wherein, carries the version number of the version of described front version redirect configuration in described update request; Described client from described service end download that described service end issues for characterize described redirect configuration and described front version redirect configure between the difference bag of difference; Described client, according to described front version redirect configuration and described difference bag, generates described redirect configuration.
Preferably, described client comprises according to described redirect configuration execution interface redirect: described client judges whether to support to adopt described redirect configuration to perform interface redirect; When judged result is for being, described client performs interface redirect according to described redirect configuration; And/or, when judged result is no, the extraneous term that described client configures according to described redirect: webpage corresponding to uniform resource position mark URL is to perform interface redirect.
Preferably, the form of described URL is HTML (Hypertext Markup Language) html format.
According to also one side of the present invention, provide a kind of interface redirect device, be applied to service end to comprise: determination module, configure in the redirect of client executing interface redirect for determining, wherein, described redirect configures to comprise and is used to indicate described client jumps to predetermined second contact surface redirect sensing from predetermined first interface; Release module, gives described client for the described redirect configure publication that will determine, is used to indicate described client and performs interface redirect according to described redirect configuration.
In accordance with a further aspect of the present invention, provide a kind of interface redirect device, be applied to client to comprise: receiver module, the redirect configuration being used to indicate described client executing interface redirect of described client is distributed to for receiving service end, wherein, described redirect configures to comprise and is used to indicate described client jumps to predetermined second contact surface redirect sensing from predetermined first interface; Redirect module, for performing interface redirect according to described redirect configuration.
By the present invention, adopt service end to determine configuring in the redirect of client executing interface redirect, wherein, described redirect configures to comprise and is used to indicate described client jumps to predetermined second contact surface redirect sensing from predetermined first interface; The described redirect configure publication determined is given described client by described service end, be used to indicate described client and perform interface redirect according to described redirect configuration, to solve in correlation technique when carrying out interface redirect, there is the inflexible problem of configuration, and then reach the effect in the redirect of service end flexible configuration client end interface.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the logical diagram realizing interface jump method in correlation technique;
Fig. 2 is the process flow diagram of the interface jump method according to the embodiment of the present invention;
Fig. 3 is the schematic diagram generating one or more front version redirect configuration difference bag according to the service end of the embodiment of the present invention;
Fig. 4 is the process flow diagram of the interface jump method according to the embodiment of the present invention;
Fig. 5 configures according to the client of the embodiment of the present invention schematic diagram performing interface redirect according to redirect;
Fig. 6 is the schematic diagram carrying out web displaying according to the terminal in the embodiment of the present invention according to static Web page and dynamic data;
Fig. 7 is the schematic diagram upgrading redirect configuration according to the client of the embodiment of the present invention;
Fig. 8 is the structured flowchart of a kind of interface redirect device one according to the embodiment of the present invention;
Fig. 9 is the preferred structure block diagram one of determination module 82 in the interface redirect device one according to the embodiment of the present invention;
Figure 10 is the preferred structure block diagram two of release module 84 in the interface redirect device one according to the embodiment of the present invention;
Figure 11 is the structured flowchart of the interface redirect device two according to the embodiment of the present invention;
Figure 12 is the preferred structure block diagram of receiver module 112 in the interface redirect device two according to the embodiment of the present invention;
Figure 13 is the preferred structure block diagram of redirect module 114 in the interface redirect device two according to the embodiment of the present invention.
Embodiment
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
It should be noted that, term " first ", " second " etc. in instructions of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.
Embodiment of the method
Provide a kind of interface jump method in the present embodiment, Fig. 2 is the process flow diagram of the interface jump method according to the embodiment of the present invention, and as shown in Figure 2, this flow process comprises the steps:
Step S202, service end determines configuring in the redirect of client executing interface redirect, and wherein, redirect configures to comprise and is used to indicate client jumps to predetermined second contact surface redirect sensing from predetermined first interface;
Step S204, the redirect configure publication determined to client, is used to indicate client and performs interface redirect according to redirect configuration by service end.
Pass through above-mentioned steps, in the interface redirect of service end configuration client, comprise configure generic redirect parameter and be used to indicate client jumps to another predetermined interface redirect sensing from predetermined interface, relative in correlation technique, interface redirect code hard coded in the client, underaction, cannot realize in service end self-defined, can realize the flexible configuration of client end interface redirect in service end.
Relative in correlation technique because redirect logical code is hard-coded in the problems that client brings, such as, in the related, if when interface entrance has multiple, redirect logical code can repeatedly repeat in the client; In the correlation, when upgrading version, if parameter there occurs change, in order to the normal operation of legacy version client on line, service end needs the interface simultaneously safeguarding multiple version; In the related, (the such as application crashes when announced redirect code generation problem, function is abnormal), usually can only realize repairing in the mode upgrading client, in addition, function difference between different editions also can only make up by upgrading client, and these operations all exist certain repeatability, operate also more miscellaneous.In the present embodiment, adopt in the flexible configuration of service end to the interface redirect of client, only need to issue corresponding new content in service end, just can there is corresponding change in the redirect behavior of client, interface redirect can not only be effectively avoided to there is duplicated code, effectively avoid service end to safeguard the interface code of multi version, and when client part function goes wrong on line, effectively can also provide a disposal route covering or close.
In the present embodiment, by the redirect of interface redirect being pointed to, redirect parameter configuration etc. is packaged into text data structure, and provided by server, client provides the support to this data layout, obtains data and realize redirect from service end.Illustrate below.
When above-mentioned service end determines the redirect configuration in the redirect of client executing interface, this service end can determine the extraneous term that redirect configures: uniform resource position mark URL, wherein, this URL is used to indicate client when client cannot perform interface redirect according to redirect configuration, adopts webpage corresponding to URL to perform interface redirect.It should be noted that, client cannot perform the reason of interface redirect according to redirect configuration may be more, such as, may be not the supporting of data structure, also may be that client code is made mistakes, or other reasons.That is, as long as client cannot, according to the redirect parameter configured in redirect configuration to complete interface redirect, so just adopt webpage corresponding to this URL to complete interface redirect.
Such as, definition interfaces redirect generally needs following element: the sensing (which interface jumping to which interface from) of redirect; The parameter (type, number) be opened required for interface; General configuration item; In the present embodiment, additionally provide following extraneous term: the HTML degeneration version (realize the function the same or close with the primary version of client, can be sky) at the interface that is opened.It should be noted that, the form of this URL can be multiple format, and preferably, this form can be HTML (Hypertext Markup Language) html format.By above data with common data interchange format encapsulation (such as, json, xml etc., wherein, json/xml: common data interchange format, is usually used in the exchanges data of service end and client), be below a example encapsulated with json form:
Wherein title, show_title, bg_color field is common configuration item, the parameter of param field for being opened required for interface, and type field determines the sensing of redirect, and fallback_url field is the url of degeneration version.
In the client, this data structure is provided support, needing the support of flexible configuration to click on the UI element of redirect, all applying this data structure, providing this data structure by service end.So just can configure in service end the redirect behavior determined in client neatly, realize being redirected, close, the functions such as exchange.
When the redirect configuration of service end flexible configuration client, flexible configuration can be embodied by various aspects, such as, can be configured according under the actual scene of client, such as, real-time scene according to client determines that this redirect configures: the system time of foundation client (such as, year, month, day, week, moment) different, this first predetermined first interface redirect of cause is different predetermined second contact surface, or, according to the different content that above-mentioned predetermined first interface shown by client shows (such as, what above-mentioned predetermined first interface showed is only text, on above-mentioned predetermined first interface, display is only picture, above-mentioned predetermined first interface display comprise text and picture), this predetermined first interface redirect of cause is different predetermined second contact surface.
Namely in the above-described embodiments, when after version updating, if parameter there occurs change, a URL (URL(uniform resource locator) can be provided in above-mentioned data structure, a general reference network address), there is provided and upgrade rear functionally similar webpage version, lowest version client utilizes this webpage to carry out practical function, and service end directly can cancel the support to early version parameter.
When announced client code generation problem causes application crashes or function is abnormal, by the mode using webpage to carry out practical function, existing primary realization can be covered, avoids frequent updating client release.
Preferably, for needing the part seldom change of displaying in application or changing less interface material, the part of static state can be packaged in the client of issue.The webpage material of static state mentioned here includes but not limited to HTML (HTML (Hypertext Markup Language), the essence of webpage), the css computerese of the file pattern such as HTML or XML (be used for show), js (a kind of preservation form of formula script of literal translating), picture, the files such as sound.When client needs displayed web page time, directly read from this locality, in conjunction with the dynamic part obtained from service end.Accelerate webpage and be loaded into speed, reduce traffic consumes.With difference bag, content update upgrading is realized to this webpage bag.
Such as, corresponding to above-mentioned service end by the redirect configure publication determined to client, the mode of following bsdiff/bspatch can be adopted realize (the realization of increasing income of a generation/synthesis difference bag, utilize this scheme, difference bag can be generated between two similar files, ancient deed and difference bag can synthesize new file, are generally used in update module): first judge redirect configuration relative to the one or more front version redirect configuration generated before redirect configuration and whether there is renewal; When judged result is for being, generate for characterize redirect configuration configure with one or more front version redirect between the one or more front version redirect of difference configure one or more difference bags corresponding respectively, Fig. 3 is the schematic diagram configuring difference bag according to the one or more front version redirect of service end generation of the embodiment of the present invention; Difference bag corresponding to version redirect configuration before corresponding with client is distributed to client.
When interface entrance has multiple, in order to save exploitation amount, the redirect determined configuration can first encapsulate to client by service end by the redirect configure publication determined, obtains encapsulating compressed package; Afterwards, the encapsulation compressed package obtained is distributed to this client.
In embodiments of the present invention, additionally provide a kind of interface jump method, Fig. 4 is the process flow diagram of the interface jump method according to the embodiment of the present invention, and as shown in Figure 4, this flow process comprises the steps:
Step S402, client receives the redirect configuration being used to indicate the redirect of client executing interface that service end is distributed to client, and wherein, redirect configures to comprise and is used to indicate client jumps to predetermined second contact surface redirect sensing from predetermined first interface;
Step S404, client performs interface redirect according to redirect configuration.
Pass through above-mentioned steps, the interface redirect of service end configuration is received in client, comprise configure generic redirect parameter and be used to indicate client jumps to another predetermined interface redirect sensing from predetermined interface, relative in correlation technique, interface redirect code hard coded in the client, underaction, cannot realize in service end self-defined, can realize the flexible configuration of client end interface redirect in service end.
When client performs interface redirect according to redirect configuration, the redirect configuration determined according to service end is different performs different process, comprise: Fig. 5 configures according to the client of the embodiment of the present invention schematic diagram performing interface redirect according to redirect, as shown in Figure 5, client judges whether to support to adopt described redirect configuration to perform interface redirect; When judged result is for being, client performs interface redirect according to this redirect configuration; And/or, when judged result is no, the extraneous term that client configures according to this redirect: webpage corresponding to uniform resource position mark URL is to perform interface redirect.Preferably, the form of this URL can be HTML (Hypertext Markup Language) html format.By aforesaid operations, make lowest version client that html can be utilized not upgrade and realize highest version client part function.It should be noted that, lowest version client realizes highest version client functionality and dynamic load or heat also can be used to upgrade functional realiey, the DexClassLoader/PathClassLoader technology in such as Android platform, Lua script renewal etc.
In the related, web page contents is kept at far-end, by network loaded and displayed during use: the web page code write is deployed in service end; The address that client returns according to service end is by accessing and showing this webpage.In order to accelerate webpage be loaded into speed with reduce traffic consumes, client receive service end be distributed to client be used to indicate the redirect of client executing interface redirect configuration time, can adopt the mode of difference bag to realize redirect configuration issue.
Such as, client detects that the local redirect stored is configured to relative to version redirect configuration before redirect configuration not renewal; Client sends the update request for version redirect configuration before asking to upgrade to service end, wherein, carries the version number of version of front version redirect configuration in update request; Client from service end download service end issue for characterize redirect configuration and front version redirect configure between the difference bag of difference; Client, according to front version redirect configuration and difference bag, generates redirect configuration.
Such as, in web page code, a lot of element is all static existence, and in different editions, there is not change or change less, such as, html file, css file, js file, picture resource etc., these files are packaged into the compressed package of zip (a kind of common file packing compress technique) form, integratedly issue together in the client.For the webpage having local resource integrated, the URL that service end returns can with a kind of different schema, such as, and following form: html: //example.com/path.The schema of this form is different from common http or https.When client opens the URL of this form, corresponding html file can be searched in webpage compressed package, utilize the html file of this this locality to show content, accelerate loading speed, reduce traffic consumes.
Fig. 6 is the schematic diagram carrying out web displaying according to the terminal in the embodiment of the present invention according to static Web page and dynamic data, as shown in Figure 6, to dynamic part in webpage, can utilize that the ajax technology of js is asynchronous to be obtained from server.The data of Dynamic Acquisition, in conjunction with local static Web page, realize the online function reading web displaying originally.
When content changes and will be published in client in each webpage compressed package, one can be generated and increase progressively and unique version number, with webpage compressed package one_to_one corresponding.New webpage compressed package is bundled in the redaction client that will issue, and is distributed on service end line.For new client of installing, built-in webpage compressed package content has been up-to-date version, does not need to upgrade; And for the client of legacy version on line, can by with the server version number mode contrasted, upgrade local version.Such redaction and legacy version can use up-to-date webpage function simultaneously.
Fig. 7 is the schematic diagram upgrading redirect configuration according to the client of the embodiment of the present invention, as shown in Figure 7, comprise following process: when webpage compressed package version updating being detected, legacy version client submits local webpage compressed package version number to service end, service end generates the difference bag between latest edition and each legacy version webpage compressed package with bsdiff or other difference Core Generators when issuing redaction webpage compressed package, and return corresponding difference bag according to the version number that client is submitted to, after the complete difference bag of client downloads, utilize bspatch or other difference merging instrument and local legacy version to merge and generate redaction webpage compressed package, the traffic consumes of renewal compressed package is minimized.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that can add required general hardware platform by software according to the method for above-described embodiment and realize, hardware can certainly be passed through, but in a lot of situation, the former is better embodiment.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computing machine, service end, or the network equipment etc.) perform the method for each embodiment of the present invention.
Additionally provide a kind of interface redirect device in the present embodiment, this device is used for realizing above-described embodiment and preferred implementation, has carried out repeating no more of explanation.As used below, term " module " can realize the software of predetermined function and/or the combination of hardware.Although the device described by following examples preferably realizes with software, hardware, or the realization of the combination of software and hardware also may and conceived.
Fig. 8 is the structured flowchart of a kind of interface redirect device one according to the embodiment of the present invention, and as shown in Figure 8, this application of installation comprises in service end: determination module 82 and release module 84, be described this device below.
Determination module 82, configures in the redirect of client executing interface redirect for determining, and wherein, redirect configures to comprise and is used to indicate client jumps to predetermined second contact surface redirect sensing from predetermined first interface; Release module 84, is connected to above-mentioned determination module 82, for the redirect configure publication that will determine to client, is used to indicate client and performs interface redirect according to redirect configuration.
Preferably, this determination module 82, also for determining the redirect configuration comprising uniform resource position mark URL, wherein, URL is used to indicate client when client does not support the conventional data redirect structure of general redirect parameter configuration included in redirect configuration, adopts the webpage that URL is corresponding to come to configure according to redirect to perform interface redirect.
Preferably, the form of this URL can be HTML (Hypertext Markup Language) html format.
Fig. 9 is the preferred structure block diagram one of determination module 82 in the interface redirect device one according to the embodiment of the present invention, as shown in Figure 9, this release module 84 comprises: judging unit 92, generation unit 94 and the first release unit 96, be described this release module 84 below.
Judging unit 92, for judging whether redirect configuration exists renewal relative to the one or more front version redirect configuration before generation redirect configuration; Generation unit 94, be connected to above-mentioned judging unit 92, for when the judged result of judging unit 92 is for being, generate for characterize redirect configuration configure with one or more front version redirect between the one or more front version redirect of difference configure and distinguish corresponding one or more difference bags; First release unit 96, is connected to above-mentioned generation unit 94, for difference bag corresponding to version redirect configuration before corresponding with client is distributed to client.
Figure 10 is the preferred structure block diagram two of release module 84 in the interface redirect device one according to the embodiment of the present invention, and as shown in Figure 10, this release module 84 comprises encapsulation unit 102 and the second release unit 104, is described below to this release module 84.
Encapsulation unit 102, for the redirect determined configuration being encapsulated, obtains encapsulating compressed package; Second release unit 104, for being distributed to this client by the encapsulation obtained compressed package.
Figure 11 is the structured flowchart of the interface redirect device two according to the embodiment of the present invention, and as shown in figure 11, this application of installation, in client, comprises receiver module 112 and redirect module 114, is described below to this device.
Receiver module 112, is distributed to the redirect configuration being used to indicate the redirect of client executing interface of client for receiving service end, wherein, redirect configures to comprise and is used to indicate client jumps to predetermined second contact surface redirect sensing from predetermined first interface; Redirect module 114, is connected to above-mentioned receiver module 112, for performing interface redirect according to redirect configuration.
Figure 12 is the preferred structure block diagram of receiver module 112 in the interface redirect device two according to the embodiment of the present invention, as shown in figure 12, this receiver module 112 comprises: detecting unit 122, transmitting element 124 and download unit 126 and generation unit 128, is described below to this receiver module 112.
Detecting unit 122, for detecting that the local redirect stored is configured to relative to version redirect configuration before redirect configuration not renewal; Transmitting element 124, is connected to above-mentioned detecting unit 122, for sending the update request for version redirect configuration before asking to upgrade to service end, wherein, carries the version number of version of front version redirect configuration in update request; Download unit 126, is connected to above-mentioned transmitting element 124, for issue from service end download service end for characterize redirect configuration and front version redirect configure between the difference bag of difference; Generation unit 128, is connected to above-mentioned download unit 126, for according to front version redirect configuration and difference bag, generates redirect configuration.
Figure 13 is the preferred structure block diagram of redirect module 114 in the interface redirect device two according to the embodiment of the present invention, as shown in figure 13, this redirect module 114 comprises: judging unit 132, first jump-transfer unit 134 and/or the second jump-transfer unit 136, be described this redirect module 114 below.
Judging unit 132, for judging whether the conventional data redirect structure supporting general redirect parameter configuration included in redirect configuration; First jump-transfer unit 134, for when the judged result of this judging unit 132 is for being, performs interface redirect according to general redirect parameter configuration included in redirect configuration; And/or, second jump-transfer unit 136, for being no in the judged result of this judging unit 132, and when redirect configuration comprises uniform resource position mark URL, come to perform interface redirect according to redirect configuration according to the webpage that URL included in redirect configuration is corresponding.
Preferably, the form of this URL also can be HTML (Hypertext Markup Language) html format.
It should be noted that, above-mentioned modules can be realized by software or hardware, for the latter, can realize in the following manner, but be not limited thereto: above-mentioned module is all arranged in same processor; Or above-mentioned module lays respectively in multiple processor.
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can be set to store the program code for performing following steps:
S1, service end determines configuring in the redirect of client executing interface redirect, and wherein, redirect configures to comprise and is used to indicate client jumps to predetermined second contact surface redirect sensing from predetermined first interface;
S2, the redirect configure publication determined to client, is used to indicate client and performs interface redirect according to redirect configuration by service end.
Alternatively, storage medium is also set to store the program code for performing following steps:
S1, service end determines comprising in the redirect configuration of client executing interface redirect: service end determines to comprise the redirect configuration of uniform resource position mark URL, wherein, URL is used to indicate client when client does not support the conventional data redirect structure of general redirect parameter configuration included in redirect configuration, adopts the webpage that URL is corresponding to come to configure according to redirect to perform interface redirect.
Alternatively, storage medium is also set to store the program code for performing following steps:
The form of S1, URL is HTML (Hypertext Markup Language) html format.
Alternatively, storage medium is also set to store the program code for performing following steps:
S1, the redirect configure publication determined comprises to client by service end: judge redirect configuration relative to the one or more front version redirect configuration generated before redirect configuration and whether there is renewal; When judged result is for being, generate for characterize redirect configuration configure with one or more front version redirect between the one or more front version redirect of difference configure and distinguish corresponding one or more difference bags; Difference bag corresponding to version redirect configuration before corresponding with client is distributed to client.
Alternatively, storage medium is also set to store the program code for performing following steps:
S1, the redirect configure publication determined comprises to client by service end: the redirect determined configuration encapsulates by service end, obtains encapsulating compressed package; The encapsulation compressed package obtained is distributed to this client.
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can be set to store the program code for performing following steps:
S1, client receives the redirect configuration being used to indicate the redirect of client executing interface that service end is distributed to client, and wherein, redirect configures to comprise and is used to indicate client jumps to predetermined second contact surface redirect sensing from predetermined first interface;
S2, client performs interface redirect according to redirect configuration.
Alternatively, storage medium is also set to store the program code for performing following steps:
S1, client detects that the local redirect stored is configured to relative to version redirect configuration before redirect configuration not renewal;
S2, client sends the update request for version redirect configuration before asking to upgrade to service end, wherein, carries the version number of version of front version redirect configuration in update request;
S3, client from service end download service end issue for characterize redirect configuration and front version redirect configure between the difference bag of difference;
S4, client, according to front version redirect configuration and difference bag, generates redirect configuration.
Alternatively, storage medium is also set to store the program code for performing following steps:
S1, client judges whether the conventional data redirect structure supporting general redirect parameter configuration included in redirect configuration;
S2, when judged result is for being, client performs interface redirect according to general redirect parameter configuration included in redirect configuration; And/or, be no in judged result, and when redirect configuration comprises uniform resource position mark URL, client is come to perform interface redirect according to redirect configuration according to the webpage that URL included in redirect configuration is corresponding.
Alternatively, storage medium is also set to store the program code for performing following steps:
The form of S1, URL is HTML (Hypertext Markup Language) html format.
Alternatively, in the present embodiment, above-mentioned storage medium can include but not limited to: USB flash disk, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), portable hard drive, magnetic disc or CD etc. various can be program code stored medium.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium: service end determines configuring in the redirect of client executing interface redirect, wherein, redirect configures to comprise and is used to indicate client jumps to predetermined second contact surface redirect sensing from predetermined first interface; The redirect configure publication determined to client, is used to indicate client and performs interface redirect according to redirect configuration by service end.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium: service end determines comprising in the redirect configuration of client executing interface redirect: service end determines to comprise the redirect configuration of uniform resource position mark URL, wherein, URL is used to indicate client when client does not support the conventional data redirect structure of general redirect parameter configuration included in redirect configuration, adopts the webpage that URL is corresponding to come to configure according to redirect to perform interface redirect.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium: the form of URL is HTML (Hypertext Markup Language) html format.
Alternatively, storage medium is also set to store the program code for performing following steps: the redirect configure publication determined comprises to client by service end: judge redirect configuration relative to the one or more front version redirect configuration generated before redirect configuration and whether there is renewal; When judged result is for being, generate for characterize redirect configuration configure with one or more front version redirect between the one or more front version redirect of difference configure and distinguish corresponding one or more difference bags; Difference bag corresponding to version redirect configuration before corresponding with client is distributed to client.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium: the redirect configure publication determined comprises to client by service end: the redirect determined configuration encapsulates by service end, obtains encapsulating compressed package; The encapsulation compressed package obtained is distributed to this client.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium: client receives the redirect configuration being used to indicate the redirect of client executing interface that service end is distributed to client, wherein, redirect configures to comprise and is used to indicate client jumps to predetermined second contact surface redirect sensing from predetermined first interface; Client performs interface redirect according to redirect configuration.
Alternatively, in the present embodiment, processor is according to the program code execution stored in storage medium: client detects that the local redirect stored is configured to relative to version redirect configuration before redirect configuration not renewal; Client sends the update request for version redirect configuration before asking to upgrade to service end, wherein, carries the version number of version of front version redirect configuration in update request; Client from service end download service end issue for characterize redirect configuration and front version redirect configure between the difference bag of difference; Client, according to front version redirect configuration and difference bag, generates redirect configuration.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium: client judges whether the conventional data redirect structure supporting general redirect parameter configuration included in redirect configuration; When judged result is for being, client performs interface redirect according to general redirect parameter configuration included in redirect configuration; And/or, be no in judged result, and when redirect configuration comprises uniform resource position mark URL, client is come to perform interface redirect according to redirect configuration according to the webpage that URL included in redirect configuration is corresponding.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium: the form of URL is HTML (Hypertext Markup Language) html format.
Alternatively, the concrete example in the present embodiment can with reference to the example described in above-described embodiment and Alternate embodiments, and the present embodiment does not repeat them here.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, and in some cases, step shown or described by can performing with the order be different from herein, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (11)

1. an interface jump method, is characterized in that, comprising:
Service end determines configuring in the redirect of client executing interface redirect, and wherein, described redirect configures to comprise and is used to indicate described client jumps to predetermined second contact surface redirect sensing from predetermined first interface;
The described redirect configure publication determined is given described client by described service end, is used to indicate described client and performs interface redirect according to described redirect configuration.
2. method according to claim 1, is characterized in that, described service end determines comprising in the described redirect configuration of described client executing interface redirect:
Described service end determines the extraneous term that described redirect configures: uniform resource position mark URL, wherein, described URL is used to indicate described client when described client cannot perform interface redirect according to described redirect configuration, adopts webpage corresponding to described URL to perform interface redirect.
3. method according to claim 2, is characterized in that, the form of described URL is HTML (Hypertext Markup Language) html format.
4. method according to claim 1, is characterized in that, the described redirect configure publication determined comprises to described client by described service end:
Judge whether described redirect configuration exists renewal relative to the one or more front version redirect configuration before generation described redirect configuration;
When judged result is for being, generate for characterize described redirect configuration configure with described one or more front version redirect between the described one or more front version redirect of difference configure and distinguish corresponding one or more difference bags;
Version redirect before corresponding with described client is configured corresponding difference bag and is distributed to described client.
5. method according to any one of claim 1 to 4, is characterized in that, the described redirect configure publication determined comprises to described client by described service end:
The described redirect configuration determined encapsulates by described service end, obtains encapsulating compressed package;
The described encapsulation compressed package obtained is distributed to this client.
6. an interface jump method, is characterized in that, comprising:
Client receives the redirect configuration being used to indicate described client executing interface redirect that service end is distributed to described client, wherein, described redirect configures to comprise and is used to indicate described client jumps to predetermined second contact surface redirect sensing from predetermined first interface;
Described client performs interface redirect according to described redirect configuration.
7. method according to claim 6, is characterized in that, described client receives the described redirect configuration being used to indicate described client executing interface redirect that described service end is distributed to described client and comprises:
Described client detects that the local redirect stored is configured to relative to version redirect configuration before described redirect configuration not renewal;
Described client sends the update request for asking to upgrade described front version redirect configuration to described service end, wherein, carries the version number of the version of described front version redirect configuration in described update request;
Described client from described service end download that described service end issues for characterize described redirect configuration and described front version redirect configure between the difference bag of difference;
Described client, according to described front version redirect configuration and described difference bag, generates described redirect configuration.
8. the method according to claim 6 or 7, is characterized in that, described client performs interface redirect according to described redirect configuration and comprises:
Described client judges whether to support to adopt described redirect configuration to perform interface redirect;
When judged result is for being, described client performs interface redirect according to described redirect configuration; And/or, when judged result is no, the extraneous term that described client configures according to described redirect: webpage corresponding to uniform resource position mark URL is to perform interface redirect.
9. method according to claim 8, is characterized in that, the form of described URL is HTML (Hypertext Markup Language) html format.
10. an interface redirect device, is characterized in that, is applied to service end and comprises:
Determination module, configures in the redirect of client executing interface redirect for determining, and wherein, described redirect configures to comprise and is used to indicate described client jumps to predetermined second contact surface redirect sensing from predetermined first interface;
Release module, gives described client for the described redirect configure publication that will determine, is used to indicate described client and performs interface redirect according to described redirect configuration.
11. 1 kinds of interface redirect devices, is characterized in that, be applied to client and comprise:
Receiver module, the redirect configuration being used to indicate described client executing interface redirect of described client is distributed to for receiving service end, wherein, described redirect configures to comprise and is used to indicate described client jumps to predetermined second contact surface redirect sensing from predetermined first interface;
Redirect module, for performing interface redirect according to described redirect configuration.
CN201510835885.1A 2015-11-26 2015-11-26 Interface jump method and device Active CN105512190B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510835885.1A CN105512190B (en) 2015-11-26 2015-11-26 Interface jump method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510835885.1A CN105512190B (en) 2015-11-26 2015-11-26 Interface jump method and device

Publications (2)

Publication Number Publication Date
CN105512190A true CN105512190A (en) 2016-04-20
CN105512190B CN105512190B (en) 2019-03-29

Family

ID=55720172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510835885.1A Active CN105512190B (en) 2015-11-26 2015-11-26 Interface jump method and device

Country Status (1)

Country Link
CN (1) CN105512190B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095549A (en) * 2016-06-07 2016-11-09 中国建设银行股份有限公司 The jump method of a kind of Mobile solution App and redirect device
CN106161656A (en) * 2016-08-31 2016-11-23 虎扑(上海)文化传播股份有限公司 The method and device that a kind of interface redirects
CN106202531A (en) * 2016-07-22 2016-12-07 浪潮(北京)电子信息产业有限公司 The method and device that a kind of Flex and Html data interact
CN106326396A (en) * 2016-08-19 2017-01-11 武汉斗鱼网络科技有限公司 Method and system for realizing page hopping by means of customized URL (Uniform Resource Locator) in mobile client
CN106453491A (en) * 2016-08-31 2017-02-22 成都广电视讯文化传播有限公司 Automatic judgment jump method for contents and functions of mobile phone client
CN106598673A (en) * 2016-12-16 2017-04-26 武汉斗鱼网络科技有限公司 Application program upgrading method and system
CN107133053A (en) * 2017-06-05 2017-09-05 上海鋆创信息技术有限公司 Method for page jump and device, the storage medium and terminal of a kind of application program
CN107729014A (en) * 2017-09-06 2018-02-23 北京五八到家信息技术有限公司 A kind of method for page jump and structure based on Android
CN108063804A (en) * 2017-12-04 2018-05-22 北京小米移动软件有限公司 Communication means and device
CN109426535A (en) * 2017-08-24 2019-03-05 武汉斗鱼网络科技有限公司 A kind of method jumping to page designated position, storage medium, equipment and system
CN110221872A (en) * 2019-04-22 2019-09-10 五八有限公司 Method for page jump, device, electronic equipment and storage medium
CN111143723A (en) * 2019-12-26 2020-05-12 五八同城信息技术有限公司 Page jump method and device, electronic equipment and storage medium
CN111309416A (en) * 2020-01-19 2020-06-19 北京字节跳动网络技术有限公司 Information display method, device and equipment of application interface and readable medium
CN112069429A (en) * 2020-09-15 2020-12-11 北京值得买科技股份有限公司 Method for controlling jump in app based on link
CN112632420A (en) * 2020-12-24 2021-04-09 青岛海尔科技有限公司 Interface skipping method and device, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789469A (en) * 2011-05-20 2012-11-21 腾讯科技(深圳)有限公司 Page updating method and system
US20140173469A1 (en) * 2012-12-17 2014-06-19 Hon Hai Precision Industry Co., Ltd. Web page control system and method
CN104125258A (en) * 2013-04-28 2014-10-29 腾讯科技(深圳)有限公司 Page Jump method, terminal, server and system
CN104618412A (en) * 2013-11-05 2015-05-13 杭州海康威视数字技术股份有限公司 Page skipping method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789469A (en) * 2011-05-20 2012-11-21 腾讯科技(深圳)有限公司 Page updating method and system
US20140173469A1 (en) * 2012-12-17 2014-06-19 Hon Hai Precision Industry Co., Ltd. Web page control system and method
CN104125258A (en) * 2013-04-28 2014-10-29 腾讯科技(深圳)有限公司 Page Jump method, terminal, server and system
CN104618412A (en) * 2013-11-05 2015-05-13 杭州海康威视数字技术股份有限公司 Page skipping method and device

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095549A (en) * 2016-06-07 2016-11-09 中国建设银行股份有限公司 The jump method of a kind of Mobile solution App and redirect device
CN106202531A (en) * 2016-07-22 2016-12-07 浪潮(北京)电子信息产业有限公司 The method and device that a kind of Flex and Html data interact
CN106326396A (en) * 2016-08-19 2017-01-11 武汉斗鱼网络科技有限公司 Method and system for realizing page hopping by means of customized URL (Uniform Resource Locator) in mobile client
CN106326396B (en) * 2016-08-19 2019-08-23 武汉斗鱼网络科技有限公司 The method and system of page jump are realized in mobile client using customized URL
CN106161656A (en) * 2016-08-31 2016-11-23 虎扑(上海)文化传播股份有限公司 The method and device that a kind of interface redirects
CN106453491A (en) * 2016-08-31 2017-02-22 成都广电视讯文化传播有限公司 Automatic judgment jump method for contents and functions of mobile phone client
CN106598673B (en) * 2016-12-16 2021-01-01 武汉斗鱼网络科技有限公司 Application program upgrading method and system
CN106598673A (en) * 2016-12-16 2017-04-26 武汉斗鱼网络科技有限公司 Application program upgrading method and system
CN107133053A (en) * 2017-06-05 2017-09-05 上海鋆创信息技术有限公司 Method for page jump and device, the storage medium and terminal of a kind of application program
CN109426535A (en) * 2017-08-24 2019-03-05 武汉斗鱼网络科技有限公司 A kind of method jumping to page designated position, storage medium, equipment and system
CN109426535B (en) * 2017-08-24 2021-11-09 武汉斗鱼网络科技有限公司 Method, storage medium, equipment and system for jumping to specified position of page
CN107729014A (en) * 2017-09-06 2018-02-23 北京五八到家信息技术有限公司 A kind of method for page jump and structure based on Android
CN108063804A (en) * 2017-12-04 2018-05-22 北京小米移动软件有限公司 Communication means and device
CN108063804B (en) * 2017-12-04 2021-03-09 北京小米移动软件有限公司 Communication method and device
CN110221872A (en) * 2019-04-22 2019-09-10 五八有限公司 Method for page jump, device, electronic equipment and storage medium
CN111143723A (en) * 2019-12-26 2020-05-12 五八同城信息技术有限公司 Page jump method and device, electronic equipment and storage medium
CN111309416A (en) * 2020-01-19 2020-06-19 北京字节跳动网络技术有限公司 Information display method, device and equipment of application interface and readable medium
CN112069429A (en) * 2020-09-15 2020-12-11 北京值得买科技股份有限公司 Method for controlling jump in app based on link
CN112632420A (en) * 2020-12-24 2021-04-09 青岛海尔科技有限公司 Interface skipping method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN105512190B (en) 2019-03-29

Similar Documents

Publication Publication Date Title
CN105512190A (en) Interface jumping method and device
CN111104635B (en) Method and device for generating form webpage
US20120159310A1 (en) Method for converting mobile web application into native application and apparatus using the same
US20060236302A1 (en) System and method for unified visualization of two-tiered applications
US11553035B2 (en) Cross-platform module for loading across a plurality of device types
CN103577227B (en) Method for loading plug-ins, browser and server
US20130152066A1 (en) Development and hosting for platform independent applications
CN105607895A (en) Operation method and device of application program on the basis of application program programming interface
CN108932194A (en) Automated testing method, device, system, medium and electronic equipment
CN104111944A (en) Page processing method and device and page generating method and device
CN104360937A (en) Intelligent parameter checking device
CN107766050A (en) The dispositions method and device of a kind of heterogeneous applications
CN103177115B (en) A kind of method and apparatus extracting Webpage link
CN103049320A (en) Method and device for starting external application program in browser
CN106997298A (en) A kind of application resource acquisition methods and device
CN108470004A (en) Test script generation method, test method, device, equipment and storage medium
CN105243407A (en) Method and device for reading and writing smart card
CN109871202A (en) A kind of mobile terminal apply mixed developing method and frame
CN106126197A (en) Make the method and device of the mobile terminal application page and PC end application page synchronization
CN105808587A (en) Method and system for embedding information into webpage and gateway device
CN109684571A (en) A kind of collecting method and device, storage medium
US10089283B2 (en) Mobile enablement of webpages
CN110213105A (en) It is a kind of cross-platform micro- using creation method
CN107193565B (en) Method for developing native APP (application) across mobile terminals
CN106649299A (en) Method and device for lazy loading of webpage block

Legal Events

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