Method and device for application downgrade, electronic device, and medium

By introducing first- and second-level downgrade configurations into applications, flexibly downgrading applications and business interfaces are solved, and the downgrade method in the existing technology is not flexible enough, improving the user experience and application stability.

CN113778743BActive Publication Date: 2025-04-15BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010976820.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-16
Publication Date
2025-04-15
Estimated Expiration
2040-09-16

AI Technical Summary

Technical Problem

In the prior art, the disaster recovery and downgrading methods of applications are not flexible enough, and are uniformly downgraded to an HTML5 web page, resulting in users being unable to continue to handle ongoing business in the web page, causing inconvenience to users.

Method used

Degrade the application to a specified version by starting the application based on user actions and, if required, downgrade the application based on a first-level downgrade configuration. Then, based on the service selected by the user, determine whether there is a secondary downgrade configuration, and if so, jump to the first web page running the service.

Benefits of technology

This enables flexible downgrading of applications when exceptions occur. Users can continue to use applications and further downgrading to web pages when business interface failures continue to run, improving user experience and application stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113778743B_ABST
    Figure CN113778743B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method for application downgrade. The method includes: based on user operation, starting the application; when the application needs to be forcibly downgraded, downgrading the application to a specified version based on a first-level downgrade configuration of the application; starting the application of the specified version; after the application of the specified version is started, starting the first service in the application based on a user's selection operation; when the first service needs to be downgraded, determining whether there is a second-level downgrade configuration for the first service; and if there is a second-level downgrade configuration for the first service, jumping to a first webpage running the first service based on the second-level downgrade configuration for the first service. The present disclosure also provides a device for application downgrade, an electronic device, and a medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of Internet technology, and more specifically, to a method and device, an electronic device, and a medium for downgrading an application. Background Art

[0002] When an online business APP encounters an abnormality, the application needs to be downgraded for disaster recovery. In the prior art, only one downgrade HTML5 webpage address can be configured for disaster recovery downgrade of the application. When downgrade is required, no matter which interface or business of the application the fault occurs in, it is uniformly downgraded to one HTML5 webpage. In this way, on the one hand, the disaster recovery downgrade method is not flexible enough, and on the other hand, users often cannot continue the business they are processing in the HTML5 webpage, which brings a lot of inconvenience to users. Summary of the invention

[0003] In view of this, the embodiments of the present disclosure provide a method, apparatus, electronic device, and medium for downgrading an application program, which can be downgraded to a specified version during disaster recovery downgrade.

[0004] One aspect of an embodiment of the present disclosure provides a method for downgrading an application. The method includes: starting the application based on a user operation; when the application needs to be forcibly downgraded, downgrading the application to a specified version based on a first-level downgrade configuration of the application; starting the application of the specified version; after the application of the specified version is started, starting the first service in the application based on a user's selection operation of the first service; when the first service needs to be downgraded, determining whether there is a second-level downgrade configuration for the first service; and if there is the second-level downgrade configuration for the first service, jumping to a first webpage running the first service based on the second-level downgrade configuration for the first service.

[0005] According to an embodiment of the present disclosure, downgrading the application to a specified version based on a first-level downgrade configuration of the application includes: in response to the startup of the application, obtaining information of the first-level downgrade configuration; downloading the installation file of the specified version according to the specified version configured in the first-level downgrade configuration; and installing the specified version of the application using the installation file of the specified version.

[0006] According to an embodiment of the present disclosure, the application is a program developed based on javascript, and the jumping to the first web page running the first business based on the secondary downgrade configuration for the first business includes: determining whether the current route needs to be downgraded; if so, redirecting the current route to a web view container, and loading the first web page in the web view container; or if otherwise, obtaining a route jump event of the first business, and loading the first web page based on the route jump event.

[0007] According to an embodiment of the present disclosure, the method further includes, in response to the startup of the application, obtaining information of a secondary degradation configuration for at least one service in the application. Then, the determining whether there is a secondary degradation configuration for the first service includes: determining whether the at least one service includes the first service, and if so, the secondary degradation configuration for the first service exists.

[0008] According to an embodiment of the present disclosure, jumping to the first web page running the first service based on the secondary degradation configuration for the first service includes converting a first parameter sequence used for the operation of the first service into a second parameter sequence according to a predetermined rule, wherein the length of the first parameter sequence is greater than that of the second parameter sequence; and transparently transmitting the second parameter sequence to the first web page.

[0009] According to an embodiment of the present disclosure, transparently transmitting the second parameter sequence to the first webpage includes encrypting the second parameter sequence to obtain a third parameter sequence, and transparently transmitting the third parameter sequence to the first webpage.

[0010] According to an embodiment of the present disclosure, jumping to the first web page running the first service based on the secondary downgrade configuration for the first service also includes: decrypting the third parameter sequence to obtain the second parameter sequence during initialization of the first service in the first web page; and reverse converting the second parameter sequence according to the predetermined rule to obtain the first parameter sequence.

[0011] In another aspect of the embodiments of the present disclosure, a device for downgrading an application is also provided. The device includes a first startup module, a first downgrading module, a second startup module, and a second downgrading module. The first startup module is used to start the application based on a user operation. The first downgrading module is used to downgrade the application to a specified version based on a first-level downgrade configuration of the application when the application needs to be forcibly downgraded, and start the application of the specified version. The second startup module is used to start the first service in the application based on a user's selection operation of the first service after the application of the specified version is started. The second downgrading module is used to determine whether there is a second-level downgrade configuration for the first service when the first service needs to be downgraded; and if the second-level downgrade configuration for the first service exists, jump to the first web page running the first service based on the second-level downgrade configuration for the first service.

[0012] According to an embodiment of the present disclosure, the device further includes a long-short link conversion module. The long-short link conversion module is used to convert a first parameter sequence used in the operation of the first service into a second parameter sequence according to a predetermined rule, wherein the length of the first parameter sequence is greater than the second parameter sequence. The second degradation module is also used to transparently transmit the second parameter sequence to the first webpage.

[0013] According to an embodiment of the present disclosure, the device further comprises an encryption and decryption module. The encryption and decryption module is used to encrypt the second parameter sequence to obtain a third parameter sequence. The second downgrade module is also used to transparently transmit the third parameter sequence to the first webpage.

[0014] Another aspect of the present disclosure provides an electronic device. The electronic device includes one or more memories and one or more processors. The memories store computer executable instructions. The processor executes the instructions to implement the above method.

[0015] Another aspect of an embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the method described above when executed.

[0016] Another aspect of an embodiment of the present disclosure provides a computer program, wherein the computer program includes computer executable instructions, and the instructions are used to implement the method described above when executed.

[0017] One or more of the above embodiments have the following advantages or beneficial effects: In this way, when an application is abnormal or fails during the cold start of the application, the entire application can be downgraded to a specified version, so that the user can continue to use the application, and when a failure occurs when the user opens the application and selects a certain business interface, it can be further downgraded to the web page corresponding to the business to continue running, so that multiple downgrades can ensure the smoothness of user use as much as possible when an application is abnormal. On the one hand, the user's demand for using the application is solved in a short time, and on the other hand, time can be reserved for the application developers and maintenance personnel to repair the abnormalities or failures that occur. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0019] Figure 1 The application scenario of the method and device for application downgrade according to the embodiment of the present disclosure is schematically shown;

[0020] Figure 2 A flowchart of a method for downgrading an application according to an embodiment of the present disclosure is schematically shown;

[0021] Figure 3 A flowchart of a method for downgrading an application according to another embodiment of the present disclosure is schematically shown;

[0022] Figure 4 A flowchart schematically shows parameter transparent transmission during application downgrade according to an embodiment of the present disclosure;

[0023] Figure 5 A flowchart of an application example for application downgrade according to an embodiment of the present disclosure is schematically shown;

[0024] Figure 6 A block diagram schematically shows an apparatus for application downgrade according to an embodiment of the present disclosure; and

[0025] Figure 7 A block diagram of an electronic device suitable for implementing application program downgrade according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0026] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0027] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0028] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0029] In the case of using expressions such as "at least one of A, B, and C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). In the case of using expressions such as "at least one of A, B, or C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0030] The embodiment of the present disclosure provides a method and device, electronic device, and medium for application downgrade. The method includes: based on user operation, starting the application, when the application needs to be forcibly downgraded, downgrading the application to a specified version based on the first-level downgrade configuration of the application; starting the application of the specified version; after the application of the specified version is started, starting the first service based on the user's selection operation of the first service in the application; when the first service needs to be downgraded, determining whether there is a second-level downgrade configuration for the first service; and if there is a second-level downgrade configuration for the first service, jumping to the first webpage running the first service based on the second-level downgrade configuration for the first service. In this way, when an exception or failure occurs in the application during the cold start of the application, the application can be downgraded to the specified version as a whole, so that the user can continue to use the application. And when a failure occurs when the user opens the application and selects a certain service interface, it can be further downgraded to the webpage corresponding to the service to continue running, so that through multiple downgrades, the smoothness and stability of user use can be guaranteed as much as possible when the application is abnormal. On the one hand, it solves the user's demand for using the application in a short period of time, and on the other hand, it allows time for the application's developers and maintainers to fix any anomalies or failures that may occur.

[0031] Figure 1 The application scenario 100 of the method and apparatus for application downgrade according to an embodiment of the present disclosure is schematically shown. It should be noted that: Figure 1 What is shown is merely an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.

[0032] like Figure 1 As shown, the application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is a medium for providing a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0033] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).

[0034] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0035] Server 105 can be a server that provides various services, and provides background server support data for various communication client applications installed on terminal devices 101, 102, and 103, such as configuring downgrade information of various communication client applications. For example, it stores installation files of various versions of various communication client applications, and when a user initiates an installation request using terminal devices 101, 102, and 103, the corresponding installation files are provided to terminal devices 101, 102, and 103 for installation.

[0036] It should be noted that the method for application downgrade provided in the embodiment of the present disclosure can generally be executed by the terminal devices 101, 102, 103. Accordingly, the apparatus for application downgrade provided in the embodiment of the present disclosure can generally be set in the terminal devices 101, 102, 103.

[0037] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0038] Figure 2 The flowchart of the method for downgrading an application according to an embodiment of the present disclosure is schematically shown.

[0039] like Figure 2 As shown, according to an embodiment of the present disclosure, the method for application downgrading may include operations S210 to S220.

[0040] First, in operation S210, based on a user operation, the application is started. The application may be, for example, an application developed based on a React Native (hereinafter referred to as RN) framework, or may be, for example, an application not based on a React Native framework.

[0041] Then in operation S220, when the application needs to be forcibly downgraded, the application is downgraded to a specified version based on the first-level downgrade configuration of the application, and the specified version of the application is started.

[0042] For example, when a user clicks the icon of an application to cold-start the application, the application fails and cannot enter the homepage, etc., and the application needs to be forcibly downgraded. According to an embodiment of the present disclosure, the entire application can be downgraded to a specified version.

[0043] According to an embodiment of the present disclosure, before operation S220, the information of the first-level downgrade configuration may be obtained in response to the startup of the application. The information of the first-level downgrade configuration may be stored in the server 105, where the link information of the specified version may be configured.

[0044] According to an embodiment of the present disclosure, operation S220 may specifically include downloading the installation file of the specified version according to the specified version configured in the first-level downgrade configuration, and installing the application of the specified version using the installation file of the specified version.

[0045] In this way, when an application is abnormal or fails during the cold start process, the entire application can be downgraded to a specified version so that users can continue to use the application. On the one hand, the user's need to use the application is met in a short period of time, and on the other hand, time is left for the application development and maintenance personnel to repair the abnormalities or failures that occur.

[0046] Figure 3 A flowchart of a method for downgrading an application according to another embodiment of the present disclosure is schematically shown.

[0047] like Figure 3 As shown, according to an embodiment of the present disclosure, the method for application downgrading may further include operations S330, S340, and operation S50A or operation S350B in addition to operations S210 to S220.

[0048] First, in operation S210 , based on a user operation, the application is started.

[0049] Then in operation S220, when the application needs to be forcibly downgraded, the application is downgraded to a specified version based on the first-level downgrade configuration of the application, and the specified version of the application is started.

[0050] Next, in operation S330, after the application of the specified version is started, based on a user's selection operation on a first service in the application, the first service is started.

[0051] Then in operation S340, when the first service needs to be downgraded, it is determined whether there is a secondary downgrade configuration for the first service.

[0052] According to an embodiment of the present disclosure, in response to the startup of the application, information of the secondary degradation configuration for at least one service in the application can be obtained. Thus, in operation S340, it can be determined whether there is a secondary degradation configuration for the first service by determining whether the at least one service includes the first service. If the at least one service includes the first service, it is determined that there is the secondary degradation configuration for the first service.

[0053] According to an embodiment of the present disclosure, the information of the secondary downgrade configuration for each service may include service information corresponding to the secondary downgrade configuration, link information downgraded to the first webpage corresponding to the service, and the like.

[0054] Next, in operation S350A, if there is a secondary degradation configuration for the first service, jumping to the first webpage running the first service is performed based on the secondary degradation configuration for the first service.

[0055] Specifically, for example, it may be first determined whether the current route needs to be downgraded. If so, the current route is redirected to a web page view container, and the first web page is loaded in the web page view container. If not, a route jump event of the first service is obtained, and the first web page is loaded based on the route jump event.

[0056] An application may include multiple services. A service may be, for example, an independently executed task in an application. For example, an e-commerce app may include an online shopping service, a recharge and payment service, and a coupon service. Or a service may be an interface in an application, such as the home page, the recharge page, the payment page, and the like. The first service may be any service or any interface in the application.

[0057] According to the embodiments of the present disclosure, a corresponding secondary degradation configuration can be set for any service in the application. Therefore, when the service fails or is abnormal, the secondary degradation configuration can be used to jump to the web page corresponding to the service, so that the service can continue to be executed in the web page. In this way, the interruption of the service function and the failure to meet the needs of users can be avoided.

[0058] Or in operation S350B, if there is no secondary downgrade configuration for the first service, jump to the second webpage set for the application for backup. The second webpage for backup can be a backup webpage uniformly configured for the application, used to inform the user that the current program has a fault.

[0059] According to the embodiments of the present disclosure, when a user operates a service in an application and a failure occurs, if the service has a secondary downgrade configuration, the service can also be downgraded to the first webpage corresponding to the service, so that the service continues to run. This solves the problem in the prior art that only one unified HTML5 address can be configured for an application, so that when a failure occurs in the application as a whole or in a service, the application can be downgraded through the corresponding downgrade configuration, greatly improving the user experience.

[0060] Figure 4 The flowchart of parameter transparent transmission in operation S350A during application downgrade according to an embodiment of the present disclosure is schematically shown.

[0061] like Figure 4 As shown, in operation S350A, when jumping to the first webpage, the parameter sequence used in the operation of the first service also needs to be transparently transmitted to the first webpage. According to an embodiment of the present disclosure, the process of transparently transmitting the parameter sequence may include operations S401 to S405.

[0062] In operation S401, a first parameter sequence used in the operation of the first service is converted into a second parameter sequence according to a predetermined rule, wherein the length of the first parameter sequence is greater than the second parameter sequence. Thus, when the second parameter sequence is transparently transmitted to the first webpage, the data length in the parameter transparent transmission process can be reduced, thereby avoiding the link length limitation problem.

[0063] For example, when a user starts a coupon redemption service from an e-commerce app, the coupon redemption service fails and needs to be downgraded. At this time, while jumping to the web version interface of the coupon redemption service, the user's account information in the e-commerce app can be transparently transmitted to the web page.

[0064] If there are many parameters to be transparently transmitted, such as the user's account name, mobile phone number, points and other information, there will be too many parameters, the parameter sequence will be too long, and data transmission may be limited. According to an embodiment of the present disclosure, the parameter sequence to be transparently transmitted can be converted, for example, each part of the first parameter sequence is converted according to a certain predetermined rule (for example, a coding rule), and a second parameter sequence with a shorter data length is obtained for transmission, thereby avoiding the problem of transparent transmission parameter length limitation.

[0065] Further, in operation S402, the second parameter sequence is encrypted to obtain a third parameter sequence.

[0066] Then, in operation S403, the third parameter sequence is transparently transmitted to the first webpage. By encrypting the parameters during the parameter transparent transmission process, security issues in the parameter transparent transmission process are avoided.

[0067] In operation S404, during the process of initializing the first service in the first webpage, the third parameter sequence is decrypted to obtain the second parameter sequence.

[0068] In operation S405, the second parameter sequence is reversely converted into the first parameter sequence according to the predetermined rule. After that, the user can continue to operate the first service in the first webpage, avoiding re-entering various parameters in the first webpage, thereby achieving seamless connection of services during downgrade jump.

[0069] Figure 5 The flowchart of an application example for application downgrade according to an embodiment of the present disclosure is schematically shown.

[0070] like Figure 5 As shown, the process of the application example may include three parts: A, B, and C. Part A illustrates the process on the server side, Part B mainly illustrates the overall degradation process when a failure occurs during the cold start of the application App, and Part C mainly illustrates the degradation process when the first service is started.

[0071] In part A, the JavaScript installation files of various historical versions of the application are stored on the cloud service, and the links of the installation files of each version plus the business name, business version number, etc. can also be configured on the cloud service.

[0072] The first-level downgrade configuration and second-level downgrade configuration information of the application can be configured on the VMS system (Virtual Memory System) according to the business name, downgrade version, HTML5 addresses of the first and second level downgrades, and downgrade routes, and stored on the server so that the corresponding downgrade information can be obtained when the App is started and the business is loaded.

[0073] In part B, when the App is cold-started, the App requests the first and second level downgrade configuration information from the server. If there is an update to the first and second level downgrade configuration information, the local downgrade configuration information pool is updated. While updating the local downgrade configuration information pool, it is determined whether there is a forced downgrade to a specified version. If so, the installation file of the specified version is downloaded. If a failure or abnormality occurs during the cold start of the App and a forced downgrade is required, the App is downgraded to the specified version according to the first level downgrade configuration. If not, the App is started normally.

[0074] In part C, the first service is started based on user operations. At startup, check whether there is a javascript file for the first service locally. If there is a javascript file for the first service, directly load the local javascript file for the first service to run the first service. If not, determine whether downgrade information is configured for the first service (i.e., secondary downgrade configuration information for the first service). If not, go directly to the unified no service fallback page (i.e., the second web page). If there is a secondary downgrade configuration, load the downgrade configuration.

[0075] Specifically, if there is a downgrade configuration for the first service, the downgrade configuration is loaded through different channels according to the development platform of the App. Specifically, if it is an RN platform, determine whether the current route needs to be downgraded: if so, directly redirect the web view container webview to load the downgraded first web page; if not, hook the route jump method, when the jump interface route address and the configured route key are the same, directly load the downgraded first web page, and then cancel the jump event. If it is an HTML5 platform, directly redirect the downgrade to the address of the first web page.

[0076] In addition, this application example also illustrates the processing of transparent transmission parameters during the degradation process.

[0077] First of all, regardless of whether there is a downgrade configuration, as long as it is called through the business entrance or externally, the parameters that need to be downgraded will be encrypted; at the same time, the configuration information on whether the long link needs to be converted to a short link will be transparently transmitted to the downgraded HTML5 web page. By default, no conversion is required, and then the loading business is started.

[0078] Then, regardless of loading a local javascript file or downgrading to an HTML5 page, when the service is initialized, the parameters transmitted are decrypted, and at the same time, information about whether there is secondary downgrade configuration information and whether long-short link conversion is required is obtained. The converted short link parameters are restored to long link parameters.

[0079] Figure 6 A block diagram of an apparatus 600 for application downgrading according to an embodiment of the present disclosure is schematically shown.

[0080] like Figure 6 As shown, according to an embodiment of the present disclosure, the device 600 may include a first startup module 610 and a first degradation module 620. According to other embodiments of the present disclosure, the device 600 may further include a second startup module 630, a second degradation module 640, a long-short link conversion module 650, and / or an encryption and decryption module 660. The device 600 may be used to implement reference Figure 2 to Figure 5 The method described.

[0081] The first starting module 610 is used to start the application based on user operation.

[0082] The first downgrade module 620 is used for downgrading the application to a specified version based on the first-level downgrade configuration of the application when the application needs to be forcibly downgraded, and starting the specified version of the application.

[0083] The second starting module 630 is used to start the first service in the application program based on a user's selection operation on the first service after the application program of the specified version is started.

[0084] The second downgrade module 640 is used to determine whether there is a secondary downgrade configuration for the first business when the first business needs to be downgraded; if there is a secondary downgrade configuration for the first business, jump to the first web page running the first business based on the secondary downgrade configuration for the first business; or, if there is no secondary downgrade configuration for the first business, jump to the second web page set for the application as a backup.

[0085] The long-short link conversion module 650 is used to convert the first parameter sequence used in the operation of the first service into a second parameter sequence according to a predetermined rule, wherein the length of the first parameter sequence is greater than the second parameter sequence. The second degradation module 640 is also used to transparently transmit the second parameter sequence to the first webpage.

[0086] The encryption and decryption module 660 is used to encrypt the second parameter sequence to obtain a third parameter sequence. The second downgrade module 640 is also used to transparently transmit the third parameter sequence to the first webpage.

[0087] According to an embodiment of the present disclosure, the encryption and decryption module 660 is further used to decrypt the third parameter sequence to obtain the second parameter sequence during the process of initializing the first service on the first webpage. The long-short link conversion module 650 is further used to reversely convert the second parameter sequence to obtain the first parameter sequence according to the predetermined rule during the process of initializing the first service on the first webpage.

[0088] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.

[0089] For example, any of the first startup module 610, the first degradation module 620, the second startup module 630, the second degradation module 640, the long-short chain conversion module 650, and the encryption and decryption module 660 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first startup module 610, the first degradation module 620, the second startup module 630, the second degradation module 640, the long-short chain conversion module 650, and the encryption and decryption module 660 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or by any one of the three implementation methods of software, hardware and firmware or by a suitable combination of any of them. Alternatively, at least one of the first startup module 610, the first downgrade module 620, the second startup module 630, the second downgrade module 640, the long-short chain conversion module 650, and the encryption and decryption module 660 can be at least partially implemented as a computer program module, which can perform corresponding functions when the computer program module is executed.

[0090] Figure 7 A block diagram of an electronic device 700 suitable for implementing application program downgrade according to an embodiment of the present disclosure is schematically shown. Figure 7The electronic device 700 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0091] like Figure 7 As shown, the electronic device 700 according to an embodiment of the present disclosure includes a processor 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 to a random access memory (RAM) 703. The processor 701 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 701 may also include an onboard memory for caching purposes. The processor 701 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0092] In RAM 703, various programs and data required for the operation of electronic device 700 are stored. Processor 701, ROM 702 and RAM 703 are connected to each other via bus 704. Processor 701 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 702 and / or RAM 703. It should be noted that the program can also be stored in one or more memories other than ROM 702 and RAM 703. Processor 701 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0093] According to an embodiment of the present disclosure, the electronic device 700 may further include an input / output (I / O) interface 705, which is also connected to the bus 704. The electronic device 700 may further include one or more of the following components connected to the I / O interface 705: an input portion 706 including a keyboard, a mouse, etc.; an output portion 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 708 including a hard disk, etc.; and a communication portion 709 including a network interface card such as a LAN card, a modem, etc. The communication portion 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage portion 708 as needed.

[0094] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the processor 701, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.

[0095] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0096] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 702 and / or RAM 703 described above and / or one or more memories other than ROM 702 and RAM 703.

[0097] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0098] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0099] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A method for downgrading an application, comprising: Based on the user operation, starting the application; When the application needs to be forcibly downgraded, downgrading the application to a specified version based on the first-level downgrade configuration of the application; Launching the specified version of the application; After the application program of the specified version is started, based on a user's selection operation of a first service in the application program, starting the first service; When the first service needs to be downgraded, determining whether there is a secondary downgrade configuration for the first service; as well as If the secondary degradation configuration for the first service exists, jumping to the first webpage running the first service based on the secondary degradation configuration for the first service; The jumping to the first webpage running the first service based on the secondary degradation configuration for the first service includes: In a case where the development platform of the application is the RN platform, determining whether the current route needs to be downgraded; If yes, redirecting the current route to a web page view container, and loading the first web page in the web page view container; If not, based on the hook routing jump method, when the routing address of the jump interface is the same as the configured routing key, the first web page is directly loaded and downgraded, and the jump event is canceled; In the case that the development platform of the application is the HTML5 platform, the application is directly redirected and downgraded to the address of the first web page.

2. The method according to claim 1, wherein: The step of downgrading the application to a specified version based on the first-level downgrade configuration of the application comprises: In response to starting the application, obtaining information of the first-level downgrade configuration; According to the specified version configured in the first-level downgrade configuration, download the installation file of the specified version; and The application of the specified version is installed using the installation file of the specified version.

3. The method according to claim 1, wherein: The application is a program developed based on javascript.

4. The method according to claim 1, further comprising: In response to starting the application, obtaining information of a secondary degradation configuration for at least one service in the application; Then, the determining whether there is a secondary degradation configuration for the first service includes: It is determined whether the at least one service includes the first service, and if so, the secondary degradation configuration exists for the first service.

5. The method according to claim 1, wherein: The jumping to the first webpage running the first service based on the secondary degradation configuration for the first service includes converting a first parameter sequence used in the operation of the first service into a second parameter sequence according to a predetermined rule, wherein the length of the first parameter sequence is greater than that of the second parameter sequence; and The second parameter sequence is transparently transmitted to the first webpage.

6. The method according to claim 5, wherein: The transparently transmitting the second parameter sequence to the first webpage includes: Encrypting the second parameter sequence to obtain a third parameter sequence; and The third parameter sequence is transparently transmitted to the first webpage.

7. The method according to claim 6, wherein: The step of jumping to the first webpage running the first service based on the secondary degradation configuration for the first service further includes: During the process of initializing the first service on the first webpage, decrypting the third parameter sequence to obtain the second parameter sequence; and The second parameter sequence is inversely converted according to the predetermined rule to obtain the first parameter sequence.

8. A device for downgrading an application, comprising: A first starting module, used to start the application based on user operation; A first downgrade module is used to downgrade the application to a specified version based on the first-level downgrade configuration of the application when the application needs to be forcibly downgraded, and start the application of the specified version; A second starting module, configured to start the first service in the application program based on a user's selection operation of the first service in the application program after the application program of the specified version is started; A second downgrading module, configured to determine whether there is a secondary downgrading configuration for the first service when the first service needs to be downgraded; If the secondary degradation configuration for the first service exists, jumping to the first webpage running the first service based on the secondary degradation configuration for the first service; The jumping to the first webpage running the first service based on the secondary degradation configuration for the first service includes: In a case where the development platform of the application is the RN platform, determining whether the current route needs to be downgraded; If yes, redirecting the current route to a web page view container, and loading the first web page in the web page view container; If not, based on the hook routing jump method, when the routing address of the jump interface is the same as the configured routing key, the first web page is directly loaded and downgraded, and the jump event is canceled; In the case that the development platform of the application is the HTML5 platform, the application is directly redirected and downgraded to the address of the first web page.

9. An electronic device, comprising: one or more memories having computer-executable instructions stored thereon; One or more processors, wherein the processors execute the instructions to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method for displaying page on client and client

    CN107085580A

  • Method and device or handling application program abnormality, terminal, and storage medium

    CN109324918A

  • Encryption sensitive parameter processing method and device, computer equipment and storage medium

    CN110008727A