CN110764895A - Application service dynamic switching method, system, equipment and storage medium - Google Patents
Application service dynamic switching method, system, equipment and storage medium Download PDFInfo
- Publication number
- CN110764895A CN110764895A CN201911041775.2A CN201911041775A CN110764895A CN 110764895 A CN110764895 A CN 110764895A CN 201911041775 A CN201911041775 A CN 201911041775A CN 110764895 A CN110764895 A CN 110764895A
- Authority
- CN
- China
- Prior art keywords
- switching
- page
- application
- configuration file
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides a method, a system, equipment and a storage medium for dynamically switching application services, wherein the method comprises the following steps: receiving and storing a switching configuration file, wherein the switching configuration file comprises switching information corresponding to the identifier of the original page to be replaced; when the jump operation of the application page is detected, the identification information of the original jump page is determined; judging whether the switching configuration file has switching information corresponding to the original jump page or not; and if so, jumping to the corresponding replacement page according to the switching information. By adopting the scheme of the invention, the realization form of the online service page can be dynamically switched without releasing the application version, and the conventional page opening mode is not required to be modified while the core online service dynamic switching function is realized, so that the code intrusiveness is low; furthermore, the method of the invention does not need to embed a switch in advance, ensures the universal type of the switching function and can comprehensively ensure the service switching capability of all unknown pages.
Description
Technical Field
The present invention relates to the field of big data processing technologies, and in particular, to a method, a system, a device, and a storage medium for dynamically switching application services.
Background
The release of the application version of the IOS mobile terminal needs to be subjected to evaluation and audit, and due to the problem of audit efficiency, the release of the application version is relatively delayed. In addition, since the iOS mobile terminal has no degradation scheme and has prohibited hot (patch) schemes such as jspatch, wax, etc., it is impossible to remedy the problem when finding a serious problem in the operation and service of the online APP (application), and there is a problem of a large delay even if revision is performed by releasing a new version.
Based on this, in the prior art, a mode of dynamically issuing a page url (uniform resource locator) by a background in cooperation with a routing module is provided to achieve the purpose of switching pages in an application, or a switch is pre-embedded to achieve APP service switching. However, both of these approaches have certain drawbacks.
Firstly, the method of dynamically issuing the page url by the background in cooperation with the routing module has high intrusiveness on the existing service, all page opening methods are required to adopt the routing module, only static page skipping can be realized, and skipping which needs to carry service parameters cannot be replaced by the url below the background. Secondly, unknown pages cannot be applied by adopting a pre-embedded switch mode, and if the pages A need to be switched and the switches are not pre-embedded yet, page switching cannot be realized.
Disclosure of Invention
The invention aims to provide a method, a system, equipment and a storage medium for dynamically switching application services, which do not need to modify the existing page opening mode, have low code intrusiveness and can be universally used for switching various pages.
The embodiment of the invention provides a dynamic switching method of application services, which comprises the following steps:
receiving and storing a switching configuration file, wherein the switching configuration file comprises switching information corresponding to an identifier of an original page to be replaced, and the switching information comprises an identifier of a replaced page;
when the jump operation of the application page is detected, the identification information of the original jump page is determined;
judging whether the switching configuration file has switching information corresponding to the original jump page or not;
and if so, jumping to the corresponding replacement page according to the switching information.
Optionally, after jumping to the corresponding replacement page according to the switching information, the method further includes extracting an attribute value of the original jumping page, and assigning the attribute value to the replacement page.
Optionally, the identifier is a class name of the corresponding page or a service provider customized identifier of the corresponding page.
Optionally, the detecting of the application page jump operation includes detecting a push operation or a present operation in an application in the iOS system.
Optionally, after determining whether the switching configuration file has the switching information corresponding to the original skip page, the method further includes the following steps:
and if not, jumping to the original jump page.
Optionally, the switching information further includes a switching target version;
after judging whether the switching configuration file has the switching information corresponding to the original jump page, the method also comprises the following steps:
if the current application version meets the switching target version in the switching information, judging whether the current application version meets the switching target version in the switching information, if so, skipping to the corresponding replacement page according to the switching information, and if not, skipping to the original skipping page.
Optionally, the handover information further includes handover target user information;
after judging whether the switching configuration file has the switching information corresponding to the original jump page, the method also comprises the following steps:
if the user information is the application page jump operation, the user information corresponding to the application page jump operation is obtained, whether the user information meets the switching target user information in the switching information or not is judged, if yes, the user jumps to the corresponding replacement page according to the switching information, and if not, the user jumps to the original jump page.
Optionally, the receiving of the switching configuration file includes receiving and storing the latest switching configuration file through the application background when entering the application foreground;
and when judging whether the switching information corresponding to the original jump page exists in the switching configuration file, judging whether the latest switching configuration file is received, if so, adopting the latest switching configuration file, and if not, adopting the stored switching configuration file.
The embodiment of the invention also provides a system for dynamically switching the application service, which is applied to the method for dynamically switching the application service, and the system comprises:
the switching configuration module is used for receiving and storing a switching configuration file, wherein the switching configuration file comprises switching information corresponding to the identifier of the original page to be replaced, and the switching information comprises the identifier of the replaced page;
the jump interception module is used for determining the identification information of a jump page when the jump operation of the application page is detected;
and the page skipping module is used for judging whether the switching configuration file has switching information corresponding to the original skipped page, and skipping to the corresponding replacement page according to the switching information if the switching configuration file has the switching information corresponding to the original skipped page.
Optionally, the application service dynamic switching system further includes:
and the data migration module is used for extracting the attribute value of the original jump page and assigning the attribute value to the replacement page after the page jump module jumps to the corresponding replacement page according to the switching information.
An embodiment of the present invention further provides an application service dynamic switching device, including:
a processor;
a memory in which there are executable instructions of the processor;
wherein the processor is configured to perform the steps of the method for dynamic switching of application services via execution of the executable instructions.
The embodiment of the invention also provides a computer-readable storage medium for storing a program, wherein the program realizes the steps of the dynamic switching method of the application service when being executed.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
The application service dynamic switching method, system, device and storage medium provided by the invention have the following advantages:
the invention solves the problems in the prior art, can dynamically switch the online service page realization form without releasing the application version, and does not need to modify the existing page opening mode while realizing the core online service dynamic switching function, and the code intrusiveness is low; furthermore, the method of the invention does not need to embed a switch in advance, ensures the universal type of the switching function and can comprehensively ensure the service switching capability of all unknown pages.
Drawings
Other features, objects and advantages of the present invention will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, with reference to the accompanying drawings.
FIG. 1 is a flowchart of a method for dynamically switching application services according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an embodiment of determining whether a page meets a requirement for switching information;
FIG. 3 is a flow diagram of an application service in accordance with an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a dynamic switching system for application services according to an embodiment of the present invention;
FIG. 5 is a diagram of an application service dynamic switching device according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
As shown in fig. 1, an embodiment of the present invention provides a method for dynamically switching application services, where the method includes the following steps:
s100: receiving and storing a switching configuration file, wherein the switching configuration file comprises switching information corresponding to an identifier of an original page to be replaced, and the switching information comprises an identifier of a replaced page;
s200: when the jump operation of the application page is detected, the identification information of the original jump page is determined;
s300: judging whether the switching configuration file has switching information corresponding to the original jump page or not;
s400: and if so, jumping to the corresponding replacement page according to the switching information.
Therefore, the invention receives the preset switching configuration file through the step S100, intercepts the page jump operation in the application through the steps S200-S400 according to the switching configuration file, and jumps to the corresponding replacement page instead of the original jump page if the original jump page needs to be replaced according to the switching configuration file.
Therefore, by replacing and switching the jump pages, the realization form of dynamically switching the online service pages without releasing the application version is realized, the conventional page opening mode is not required to be modified while the core online service dynamic switching function is realized, the code intrusiveness is low, and the service switching mode can be suitable for various jump pages and has good universality. When new page switching information needs to be added, only the switching configuration file needs to be updated.
For example, after a new version of page a is online, a server finds that the page a has some problems, and at this time, a switching configuration file can be updated to set a replacement page of the new version of page a as an old version of page B, so that the application executes a page jump operation in response to a click of a user, and when a page jump object is the new version of page a, the application does not jump to the new version of page a any more, but jumps to the old version of page B, thereby realizing dynamic degradation of services. For another example, after a page C is online, the server performs some small improvements on the page C, and at this time, the switching configuration file may be updated to set the replacement page of the page C as the improved page D, so that the application performs the page jump operation in response to the click of the user, and when the page jump object is the page C of the new version, the application does not jump to the page C, but jumps to the page D, thereby implementing the dynamic switching of the online service page without version issue.
As shown in fig. 1, in this embodiment, the step S400: after jumping to the corresponding replacement page according to the switching information, the method further includes step S500: and extracting the attribute value of the original jump page, and assigning the attribute value to the replacement page. This ensures that the replacement page can be presented normally and provides the user with the desired service. The extracted attribute corresponding to the attribute value of the original jump page may be that the service side sets in advance which attribute values of the attributes need to be extracted and assigned to the replacement page, or that the default attribute values of all non-system-level attributes are extracted and assigned to the replacement page.
As shown in fig. 1, in this embodiment, the step S300: after judging whether the switching configuration file has the switching information corresponding to the original jump page, the method also comprises the following steps:
s600: if the switching information corresponding to the original jump page does not exist in the switching configuration file, the original jump page is not required to be replaced, and only the normal jump to the original jump page is required, so that the display of the normal page cannot be influenced.
In this embodiment, the identifier is a class name of the corresponding page or a service-side custom identifier of the corresponding page. When the dynamic switching method of the application service is applied to the application of an iOS (iOS is a mobile operating system developed by apple Inc.) mobile terminal, the class name of each page is ensured to be unique due to the characteristic that the iOS has no name space. Therefore, the class name of the page can be directly used as the identifier of the page, for example, in the switching configuration file, the identifier of the original page to be replaced is the class name of the original page, the identifier of the replacement page is the class name of the replacement page, and the corresponding page can be uniquely located by the class name. In other embodiments, the identifier may also be a unique identifier of a page customized by the service provider, for example, a pagename (page name) is set, so long as one identifier is satisfied to uniquely locate one page, that is, the page and the identifier satisfy a one-to-one correspondence characteristic.
In this embodiment, when the method for dynamically switching application services is applied to an application of an iOS mobile terminal, the detecting of the application page jump operation includes detecting a push operation or a present operation in the application in the iOS system. Both push and present operations can push out new pages. The present operation corresponds to the dismiss operation, and the push and the pop correspond to each other. The present operation can only return step by step, and the push operation controls all views by a view stack, and can return to the previous stage, and also can return to a root page or other pages. The present operation is generally used for switching between different service pages, and the push operation is generally used for switching between different pages of the same service. Therefore, when the jump is intercepted in the dynamic switching method of the application service, the original operation of the application is directly detected and jumped, the existing page opening mode is not required to be changed, and the code intrusiveness is low.
As shown in fig. 2, a handover target version or handover target user information may also be included in the handover information. For example, it is specified that a corresponding page in a version of an application needs to be replaced, whereas for some other versions of the application, the original page does not need to be replaced. Therefore, the invention can realize different application service dynamic switching strategies set for different versions, and better adapt to the use requirements of different application versions of the user mobile terminal. As another example, it is specified that for some user groups, the corresponding page needs to be replaced, while for other users, the page does not need to be replaced. Therefore, the invention can also realize gray level test, advance test for off-line service, and the like.
Specifically, after determining whether the switching configuration file has the switching information corresponding to the original skip page, the method may further include the following steps:
if the current application version meets the switching target version in the switching information, judging whether the current application version meets the switching target version in the switching information, if so, skipping to the corresponding replacement page according to the switching information, and if not, skipping to the original skipping page.
Further, after the step of judging whether the switching configuration file has the switching information corresponding to the original jump page, the method may further include the following steps:
if the application page jump operation exists, user information corresponding to the application page jump operation is obtained, wherein the user information can comprise a user ID, a user IP, a user name, a user area and the like, and the user information corresponds to the user information using the application through a mobile terminal and can be obtained through channels such as previous user registration information and the like;
after the user information is acquired, whether the user information meets the switching target user information in the switching information is further judged, if yes, the corresponding replacement page is jumped to according to the switching information, and if not, the original jumped page is jumped to.
In this embodiment, the switching target version and the switching target user information may be set in the switching information at the same time, or the switching target version may be set separately, or the switching target user information may be set separately. And when the target version and the target user information are switched, the corresponding page replacement strategy is suitable for all application versions and all users.
FIG. 3 is a flow chart of an application service according to an embodiment of the present invention. In this embodiment, when entering the APP application, the switching configuration file is first updated, corresponding to step S100: and receiving the switching configuration file, wherein the latest switching configuration file is received through the application background and cached in the local mobile terminal when the switching configuration file enters the application foreground, and if the updating fails, the local switching configuration file cached before is used. In addition, the switching configuration file can be actively pushed to the APP by the application background.
After the application page is initialized, whether an application page jump operation is detected is determined, and if the application page jump operation is detected, whether the page to be jumped is the original jump page or the replacement page may be determined in the manner of step S300 as described above. In step S300, when determining whether the switching information corresponding to the original skip page exists in the switching configuration file, determining whether a latest switching configuration file is received, if so, using the latest switching configuration file, and if not, using the stored switching configuration file.
After determining the page to be skipped, the page to be skipped may be a native start page (native), an H5 start page or an RN start page, and different page skipping modes are selected according to different page types.
Therefore, the invention does not need to change the existing page opening mode, has low code intrusiveness, ensures the universality of the switching method and can be suitable for switching various different services.
As shown in fig. 4, an embodiment of the present invention further provides a system for dynamically switching application services, where the system is applied to the method for dynamically switching application services, and the system includes:
a switching configuration module M100, configured to receive and store a switching configuration file, where the switching configuration file includes switching information corresponding to an identifier of an original page to be replaced, and the switching information includes an identifier of a replacement page;
the jump interception module M200 is used for determining the identification information of a jump page when the jump operation of the application page is detected;
and the page skipping module M300 is used for judging whether the switching configuration file has switching information corresponding to the original skipped page, if so, skipping to the corresponding replacement page according to the switching information, and if not, skipping to the original skipped page.
Therefore, the present invention receives a preset switching configuration file through the switching configuration module M100, intercepts a page jump operation in an application through the jump interception module M200 according to the switching configuration file, determines whether a page to be jumped is an original jump page or a replacement page through the page jump module M300, and jumps to a corresponding replacement page instead of the original jump page if the original jump page needs to be replaced according to the switching configuration file.
As shown in fig. 4, in this embodiment, the application service dynamic switching system further includes a data migration module M400, configured to extract an attribute value of the original skipped page after the page hopping module hops to the corresponding replacement page according to the switching information, and assign the attribute value to the replacement page. This ensures that the replacement page can be presented normally and provides the user with the desired service. The extracted attribute corresponding to the attribute value of the original jump page may be that the service side sets in advance which attribute values of the attributes need to be extracted and assigned to the replacement page, or that the default attribute values of all non-system-level attributes are extracted and assigned to the replacement page.
In this embodiment, the switching configuration module M100 receives the switching configuration file, including receiving and storing the latest switching configuration file through the application background when entering the application foreground. When the page jump module M300 determines whether there is switching information corresponding to the originally jumped page in the switching configuration file, it determines whether the latest switching configuration file is received, if so, the page jump module M300 adopts the latest switching configuration file, and if not, the page jump module M300 adopts the stored switching configuration file
When the dynamic application service switching system is applied to an iOS mobile terminal, the jump interception module M200 detects an application page jump operation, including that the jump interception module M200 detects a push operation or a present operation in an application in the iOS system.
In this embodiment, the handover information may further include a handover target version and handover target user information. After the page jump module M300 determines whether the switching configuration file has the switching information corresponding to the original jump page, if so, the page jump module M300 may further determine whether the current application version satisfies the switching target version in the switching information, if so, jump to the corresponding replacement page according to the switching information, and if not, jump to the original jump page.
In addition, after the page jump module M300 determines whether the switching information corresponding to the original jump page exists in the switching configuration file, if the switching information exists, the page jump module M300 may further obtain user information corresponding to the application page jump operation, where the user information corresponds to user information of using the application through a mobile terminal and may be obtained through channels such as previous user registration information. After acquiring the user information, the page jump module M300 further determines whether the user information satisfies the switching target user information in the switching information, if so, jumps to the corresponding replacement page according to the switching information, and if not, jumps to the original jump page.
The embodiment of the invention also provides application service dynamic switching equipment, which comprises a processor; a memory in which there are executable instructions of the processor; wherein the processor is configured to perform the steps of the method for dynamic switching of application services via execution of the executable instructions.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" platform.
An electronic device 600 according to this embodiment of the invention is described below with reference to fig. 5. The electronic device 600 shown in fig. 5 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 5, the electronic device 600 is embodied in the form of a general purpose computing device. The combination of the electronic device 600 may include, but is not limited to: at least one processing unit 610, at least one memory unit 620, a bus 630 connecting different platform combinations (including memory unit 620 and processing unit 610), a display unit 640, etc.
Wherein the storage unit has program code, which can be executed by the processing unit 610, so that the processing unit 610 performs the steps according to various exemplary embodiments of the present invention described in the above-mentioned electronic prescription flow processing method section of the present specification. For example, the processing unit 610 may perform the steps as shown in fig. 1.
The storage unit 620 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)6201 and/or a cache memory unit 6202, and may further include a read-only memory unit (ROM) 6203.
The memory unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 600, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 600 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 650. Also, the electronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via the bus 630. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms, to name a few.
The embodiment of the invention also provides a computer-readable storage medium for storing a program, wherein the program realizes the steps of the dynamic switching method of the application service when being executed. In some possible embodiments, aspects of the present invention may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the present invention described in the above-mentioned electronic prescription flow processing method section of this specification, when the program product is run on the terminal device.
Referring to fig. 6, a program product 800 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In summary, compared with the prior art, the method, system, device and storage medium for dynamically switching application services provided by the present invention have the following advantages:
the invention solves the problems in the prior art, can dynamically switch the online service interface realization form without releasing the version, and does not need to modify the existing page opening mode while realizing the core online service dynamic switching function, and the code intrusiveness is low; furthermore, the method of the invention does not need to embed a switch in advance, ensures the universal type of the switching function and can comprehensively ensure the service switching capability of all unknown pages.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.
Claims (12)
1. A method for dynamically switching application services is characterized by comprising the following steps:
receiving and storing a switching configuration file, wherein the switching configuration file comprises switching information corresponding to an identifier of an original page to be replaced, and the switching information comprises an identifier of a replaced page;
when the jump operation of the application page is detected, the identification information of the original jump page is determined;
judging whether the switching configuration file has switching information corresponding to the original jump page or not;
and if so, jumping to the corresponding replacement page according to the switching information.
2. The method for dynamically switching application services according to claim 1, wherein after the jump to the corresponding replacement page according to the switching information, the method further comprises extracting an attribute value of the original jump page, and assigning the attribute value to the replacement page.
3. The method for dynamically switching application services according to claim 1, wherein the identifier is a class name of the corresponding page or a service provider-defined identifier of the corresponding page.
4. The method for dynamically switching application services according to claim 1, wherein the detecting of the application page jump operation includes detecting a push operation or a present operation in an application in the iOS system.
5. The method for dynamically switching application services according to claim 1, wherein after determining whether the switching configuration file has the switching information corresponding to the original jumping page, the method further comprises the following steps:
and if not, jumping to the original jump page.
6. The dynamic switching method of application services according to claim 1, wherein the switching information further comprises a switching target version;
after judging whether the switching configuration file has the switching information corresponding to the original jump page, the method also comprises the following steps:
if the current application version meets the switching target version in the switching information, judging whether the current application version meets the switching target version in the switching information, if so, skipping to the corresponding replacement page according to the switching information, and if not, skipping to the original skipping page.
7. The dynamic switching method of application services according to claim 1, wherein the switching information further comprises switching target user information;
after judging whether the switching configuration file has the switching information corresponding to the original jump page, the method also comprises the following steps:
if the user information is the application page jump operation, the user information corresponding to the application page jump operation is obtained, whether the user information meets the switching target user information in the switching information or not is judged, if yes, the user jumps to the corresponding replacement page according to the switching information, and if not, the user jumps to the original jump page.
8. The method for dynamically switching application services according to claim 1, wherein the receiving of the switching configuration file includes receiving and storing a latest switching configuration file through an application background when entering an application foreground;
and when judging whether the switching information corresponding to the original jump page exists in the switching configuration file, judging whether the latest switching configuration file is received, if so, adopting the latest switching configuration file, and if not, adopting the stored switching configuration file.
9. An application service dynamic switching system, applied to the application service dynamic switching method of any one of claims 1 to 8, the system comprising:
the switching configuration module is used for receiving and storing a switching configuration file, wherein the switching configuration file comprises switching information corresponding to the identifier of the original page to be replaced, and the switching information comprises the identifier of the replaced page;
the jump interception module is used for determining the identification information of a jump page when the jump operation of the application page is detected;
and the page skipping module is used for judging whether the switching configuration file has switching information corresponding to the original skipped page, and skipping to the corresponding replacement page according to the switching information if the switching configuration file has the switching information corresponding to the original skipped page.
10. The system for dynamic switching of application services of claim 9, further comprising:
and the data migration module is used for extracting the attribute value of the original jump page and assigning the attribute value to the replacement page after the page jump module jumps to the corresponding replacement page according to the switching information.
11. An application service dynamic switching device, comprising:
a processor;
a memory in which there are executable instructions of the processor;
wherein the processor is configured to perform the steps of the application service dynamic switching method of any one of claims 1 to 8 via execution of the executable instructions.
12. A computer readable storage medium storing a program, characterized in that the program is executed to implement the steps of the application service dynamic switching method of any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911041775.2A CN110764895A (en) | 2019-10-30 | 2019-10-30 | Application service dynamic switching method, system, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911041775.2A CN110764895A (en) | 2019-10-30 | 2019-10-30 | Application service dynamic switching method, system, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110764895A true CN110764895A (en) | 2020-02-07 |
Family
ID=69334775
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911041775.2A Pending CN110764895A (en) | 2019-10-30 | 2019-10-30 | Application service dynamic switching method, system, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110764895A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111552895A (en) * | 2020-04-14 | 2020-08-18 | 携程计算机技术(上海)有限公司 | Method, system, device and medium for analyzing page route in applet application |
CN112181415A (en) * | 2020-09-30 | 2021-01-05 | 上海连尚网络科技有限公司 | Page presenting method and device |
CN112433781A (en) * | 2020-11-23 | 2021-03-02 | 用友网络科技股份有限公司 | Mobile terminal extension loading method, electronic device and readable storage medium |
CN112965910A (en) * | 2021-03-19 | 2021-06-15 | 携程旅游信息技术(上海)有限公司 | Automatic regression testing method and device, electronic equipment and storage medium |
CN113535305A (en) * | 2021-07-20 | 2021-10-22 | 广州虎牙科技有限公司 | Interface jumping method and device of mobile terminal, mobile terminal and medium |
CN113626029A (en) * | 2020-05-09 | 2021-11-09 | 中国人寿财产保险股份有限公司 | Data processing method and system for dynamically generating page |
CN114090156A (en) * | 2021-11-17 | 2022-02-25 | 中国建设银行股份有限公司 | Page switching method and device, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106815374A (en) * | 2017-02-17 | 2017-06-09 | 郑州云海信息技术有限公司 | A kind of method for page jump and device |
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 |
CN107436873A (en) * | 2016-05-25 | 2017-12-05 | 北京奇虎科技有限公司 | A kind of network address jump method, device and transferring device |
CN107844324A (en) * | 2017-10-23 | 2018-03-27 | 北京京东尚科信息技术有限公司 | Customer terminal webpage redirects treating method and apparatus |
CN108595234A (en) * | 2018-03-13 | 2018-09-28 | 阿里巴巴集团控股有限公司 | Five application page switching method, device and equipment |
US20180314708A1 (en) * | 2015-12-28 | 2018-11-01 | Alibaba Group Holding Limited | Link request processing method and apparatus |
CN109657165A (en) * | 2018-12-28 | 2019-04-19 | 广州酷狗计算机科技有限公司 | Method for page jump and device |
-
2019
- 2019-10-30 CN CN201911041775.2A patent/CN110764895A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180314708A1 (en) * | 2015-12-28 | 2018-11-01 | Alibaba Group Holding Limited | Link request processing method and apparatus |
CN107436873A (en) * | 2016-05-25 | 2017-12-05 | 北京奇虎科技有限公司 | A kind of network address jump method, device and transferring device |
CN106815374A (en) * | 2017-02-17 | 2017-06-09 | 郑州云海信息技术有限公司 | A kind of method for page jump and device |
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 |
CN107844324A (en) * | 2017-10-23 | 2018-03-27 | 北京京东尚科信息技术有限公司 | Customer terminal webpage redirects treating method and apparatus |
CN108595234A (en) * | 2018-03-13 | 2018-09-28 | 阿里巴巴集团控股有限公司 | Five application page switching method, device and equipment |
CN109657165A (en) * | 2018-12-28 | 2019-04-19 | 广州酷狗计算机科技有限公司 | Method for page jump and device |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111552895A (en) * | 2020-04-14 | 2020-08-18 | 携程计算机技术(上海)有限公司 | Method, system, device and medium for analyzing page route in applet application |
CN111552895B (en) * | 2020-04-14 | 2023-10-31 | 携程计算机技术(上海)有限公司 | Page route analysis method, system, equipment and medium in applet application |
CN113626029A (en) * | 2020-05-09 | 2021-11-09 | 中国人寿财产保险股份有限公司 | Data processing method and system for dynamically generating page |
CN113626029B (en) * | 2020-05-09 | 2024-04-26 | 中国人寿财产保险股份有限公司 | Data processing method and system for dynamically generating page |
CN112181415A (en) * | 2020-09-30 | 2021-01-05 | 上海连尚网络科技有限公司 | Page presenting method and device |
CN112433781A (en) * | 2020-11-23 | 2021-03-02 | 用友网络科技股份有限公司 | Mobile terminal extension loading method, electronic device and readable storage medium |
CN112965910A (en) * | 2021-03-19 | 2021-06-15 | 携程旅游信息技术(上海)有限公司 | Automatic regression testing method and device, electronic equipment and storage medium |
CN113535305A (en) * | 2021-07-20 | 2021-10-22 | 广州虎牙科技有限公司 | Interface jumping method and device of mobile terminal, mobile terminal and medium |
CN114090156A (en) * | 2021-11-17 | 2022-02-25 | 中国建设银行股份有限公司 | Page switching method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110764895A (en) | Application service dynamic switching method, system, equipment and storage medium | |
CN110221872B (en) | Page jump method and device, electronic equipment and storage medium | |
US8935687B2 (en) | Incrementally updating a software appliance | |
EP3021218B1 (en) | Upgrade packet generation method, server, software upgrade method, and mobile terminal | |
JP4286798B2 (en) | Method for installing driver file on hard drive, computer and computer-readable storage medium | |
US20090222805A1 (en) | Methods and systems for dynamically building a software appliance | |
US20090210871A1 (en) | System and method for software application migration | |
KR20050009198A (en) | Automatic detection and patching of vulnerable files | |
CN110515647B (en) | Static resource management method, device, equipment and storage medium | |
CN110730090B (en) | Batch updating method, device, medium and electronic equipment for agent terminals in cloud environment | |
CN101297286A (en) | Automated device driver management | |
US8516472B2 (en) | Information processing apparatus for efficiently informing information associated with update details of software and control method thereof | |
CN109032617B (en) | Control method and control device for automatically deleting installation package | |
RU2348062C2 (en) | Method and device for dynamic connection/authorisation of pathnames | |
CN107729042A (en) | Mobile solution upgrade method and device, storage medium, electronic equipment | |
US8291406B2 (en) | Data imaging system and methods | |
CN110413292B (en) | Light application installation method of application program, mobile terminal and storage medium | |
CN101169796A (en) | Method for storing document name and judging file name overlength | |
CN110543323B (en) | Application program repairing method and device | |
CN108683586B (en) | Data processing method, device, medium and computing equipment in instant communication system | |
CN113050978A (en) | Application gray release control method, device and equipment and computer storage medium | |
CN105867922A (en) | Differential upgrade method and system | |
CN111475819B (en) | Method and device for identifying abnormal terminal equipment, storage medium and electronic equipment | |
US9207925B2 (en) | Platform specific payload management | |
CN113535270B (en) | Software starting method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200207 |
|
RJ01 | Rejection of invention patent application after publication |