CN110908702A - Version switching method, version switching device, computer equipment and storage medium - Google Patents

Version switching method, version switching device, computer equipment and storage medium Download PDF

Info

Publication number
CN110908702A
CN110908702A CN201910970066.6A CN201910970066A CN110908702A CN 110908702 A CN110908702 A CN 110908702A CN 201910970066 A CN201910970066 A CN 201910970066A CN 110908702 A CN110908702 A CN 110908702A
Authority
CN
China
Prior art keywords
version
configuration file
port
application program
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910970066.6A
Other languages
Chinese (zh)
Inventor
田祥博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN201910970066.6A priority Critical patent/CN110908702A/en
Publication of CN110908702A publication Critical patent/CN110908702A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The embodiment of the invention provides a version switching method, which comprises the steps of receiving a feedback instruction indicating that an application program of a first version runs abnormally; generating a first prompt message indicating that the first version of the application program runs abnormally according to the feedback instruction; receiving a first switching instruction generated by the mobile terminal according to the first prompt message, wherein the first switching instruction carries an identifier corresponding to the configuration file of the second version and the first type of port, and the application program of the first version is generated based on optimizing the application program of the second version; and identifying the first type of port according to the identifier carried by the first switching instruction, so as to call out the configuration file of the second version through the first type of port, and further enabling the mobile terminal to operate the application program of the second version according to the configuration file of the second version. The version switching device, the computer equipment and the computer storage medium are further provided, one-key switching can be achieved, fast rollback can be achieved, the influence on a user is reduced, and the processing process of the version problem is simplified.

Description

Version switching method, version switching device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a version switching method, a version switching apparatus, a computer device, and a computer-readable storage medium.
Background
With the rapid development of mobile terminals, mobile terminals have become an indispensable part of people's life and daily work. People can install various application software on the mobile terminal to expand the functions of the mobile terminal. However, the operating system and the application programs of the application software need to be updated and upgraded continuously to add new functions or repair existing problems.
At present, when application software is updated regularly, in order to ensure that the released new version of software can be accepted by a user, the released new version of software can be adjusted and modified in time according to feedback opinions of the user, and gray scale release is generally performed first. The gray scale distribution refers to a distribution mode capable of smoothly transiting between black and white. That is, the product is taken out to be used by a part of target people, and the deficiency of the product is modified through the use result and feedback of the target people, so that the function of the product is perfected, and the quality of the product is improved. The product can be contacted with the user as early as possible through gray release, and a foundation can be laid for later formal release of the product.
However, the gray release is only for a small part of target users, and does not cover all users, so that the test and verification results are not very reliable, and when a formal version is released at a later stage, once the formal version has a problem, the rollback of application software is required. When the rollback of the application software is performed, because there are many servers or systems associated with the application software, if the rollback is performed, the servers or systems associated with the application software all need to be rolled back, which results in a large rollback workload, low rollback efficiency, and is likely to affect the normal operation of the service.
Disclosure of Invention
In view of this, embodiments of the present invention provide a version switching method, a version switching apparatus, a computer device, and a computer readable storage medium, which can implement one-key switching, fast rollback, reduce the impact on the user, and simplify the processing procedure of the version problem.
In order to achieve the above object, an embodiment of the present invention provides a version switching method, including the following steps:
receiving a feedback instruction indicating that the first version of the application program runs abnormally;
generating a first prompt message indicating that the application program of the first version runs abnormally according to the feedback instruction;
receiving a first switching instruction generated by the mobile terminal according to the first prompt message, wherein the first switching instruction carries an identifier corresponding to the configuration file of the second version and the first type of port, and the application program of the first version is generated based on optimizing the application program of the second version; and
and identifying the first type of port according to the identifier carried by the first switching instruction, so as to call out the configuration file of the second version through the first type of port, and further enabling the mobile terminal to operate the application program of the second version according to the configuration file of the second version.
Further, after the step of identifying the first type of port according to the identifier carried by the first switching instruction to call out the configuration file of the second version through the first type of port, and further enabling the mobile terminal to run the application program of the second version according to the configuration information of the second version, the method further includes:
when detecting that the configuration file of the first version is successfully repaired, generating a second prompt message;
receiving a second switching instruction generated by the mobile terminal according to the second prompt message, wherein the second switching instruction carries an identifier corresponding to the configuration file of the first version and the second type port;
and identifying the second type of port according to the identifier carried by the second switching instruction, so as to call out the configuration file of the second version through the second type of port, and further enabling the mobile terminal to run the application program of the first version according to the configuration file of the second version.
Further, before the step of receiving a feedback instruction indicating that the first version of the application program is abnormally operated, the method further includes:
and sending a detection instruction so that the mobile terminal detects the running state of the application program of the first version and generates a feedback instruction.
Further, the step of identifying the first type of port according to the identifier carried by the first switching instruction, so as to call out the configuration file of the second version through the first type of port, and further enabling the mobile terminal to run the application program of the second version according to the configuration file of the second version includes:
receiving the first switching instruction;
and sending the first switching instruction to a processor, enabling the processor to identify the identifier in the first switching instruction, and forwarding the first switching instruction to the first type of port according to the identifier, so as to retrieve the configuration file of the second version through the first type of port, and further enabling the mobile terminal to operate the application program of the second version according to the configuration file of the second version.
Further, the method further comprises:
when the configuration file of the second version is updated, generating a third prompt message;
receiving a third switching instruction generated by the mobile terminal according to the third prompt message, wherein the third switching instruction carries an updated identifier corresponding to the configuration file of the second version and the first type of port; and
and identifying the first type of port according to the identifier carried by the third switching instruction, so as to call the updated configuration file of the second version through the first type of port, and further enable the mobile terminal to run the updated application program of the second version according to the updated configuration file of the second version. Further, before the step of receiving a third switching instruction generated by the mobile terminal according to the third prompt message, where the third switching instruction carries an updated identifier corresponding to the second version of the configuration file and the first type of port, the method includes:
when the configuration file of the second version is updated, modifying the corresponding relation between the updated configuration file of the second version and the first type of port to replace the corresponding relation between the configuration file of the second version and the first port.
Further, the method further comprises:
receiving a port switching instruction sent by a mobile terminal, wherein the port switching instruction carries a configuration file of a target version and an identifier corresponding to a target port;
and identifying the target port according to the identifier carried by the port switching instruction to call the configuration file of the target version, so that the mobile terminal operates the application program of the target version according to the configuration file of the target version.
In order to achieve the above object, an embodiment of the present invention further provides a version switching apparatus, including:
the first receiving module is used for receiving a feedback instruction indicating that the first version of the application program runs abnormally;
the generating module is used for generating a first prompt message indicating that the application program of the first version runs abnormally according to the feedback instruction;
a second receiving module, configured to receive a first switching instruction generated by a mobile terminal according to the first prompt message, where the first switching instruction carries an identifier corresponding to the second version of the configuration file and the first type of port, and the first version of the application program is generated based on optimizing the second version of the application program; and
and the identification module is used for identifying the first type of port according to the identifier carried by the first switching instruction so as to call the configuration file of the second version through the first type of port, and further enable the mobile terminal to operate the application program of the second version according to the configuration file of the second version.
To achieve the above object, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the version switching method as described above when executing the computer program.
To achieve the above object, an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, where the computer program is executable by at least one processor, so as to cause the at least one processor to execute the steps of the version switching method as described above.
According to the version switching method, the version switching device, the computer equipment and the computer readable storage medium provided by the embodiment of the invention, the server generates a first prompt message indicating that the operation of the application program of the first version is abnormal according to the received feedback instruction, the first prompt message is displayed on the mobile terminal to prompt the user that the operation of the application program of the first version is abnormal and indicate whether the user needs to select the operation of the application program of the second version, and when the user selects the operation of the application program of the second version, the mobile terminal generates a first switching instruction and sends the first switching instruction to the server. And the server selects a first type port corresponding to the application program of the second version according to the first switching instruction, calls the configuration file of the second version from the first type port and sends the configuration file to the mobile terminal. And the mobile terminal runs the second version of application program according to the received second version of configuration file. Therefore, the method can realize the version switching of the application program by one key only by one-time operation on the mobile terminal, realizes quick rollback, reduces the influence on the user and simplifies the processing process of the version problem.
Drawings
FIG. 1 is a flowchart illustrating a version switching method according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating a version switching method according to a second embodiment of the present invention;
FIG. 3 is a flowchart illustrating a version switching method according to a fourth embodiment of the present invention;
FIG. 4 is a flowchart illustrating a version switching method according to a fifth embodiment of the present invention;
FIG. 5 is a flowchart illustrating a version switching method according to a seventh embodiment of the present invention;
fig. 6 is a block diagram illustrating an eighth embodiment of a version switching apparatus according to the present invention.
Reference numerals
Version switching device 600
First receiving module 610
Generation module 620
Second receiving module 630
Identification module 640
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a first embodiment provides a flowchart of a version switching method. The execution subject in this embodiment is a server. It is to be understood that the flow chart in the embodiment of the method is not used for limiting the order of executing the steps. The method comprises the following specific steps:
step S110, receiving a feedback instruction indicating that the first version of the application program is abnormally operated.
Specifically, when the processor inside the mobile terminal detects that the first version of the application program is abnormal, such as null pointer reference abnormality and arithmetic operation abnormality, the mobile terminal generates a feedback instruction and sends the feedback instruction to the server.
The abnormal operation means that data information in the application program is wrong, so that the application program cannot normally operate and cannot provide corresponding services for users. For example, null pointer reference exceptions, type-enforced translation exceptions, pass-illegal parameter exceptions, arithmetic operation exceptions, deposit-and-claim type-incompatible object exceptions into an array, and the like.
The application program is a general term for a program selected by a user to be installed, and generally includes a process of a driver, a process of general software such as a viewer software, a decompression software, and the like. Briefly, an Application (APP) refers to a third party Application of a smartphone. The APP can be installed and downloaded through application stores, such as apple APP Store, Google Play Store of Google, and the like. Common APP can be QQ, WeChat, microblog, Paibao, Eschka, and the like.
In addition, with the increase of the user demand, each application program needs to be updated continuously, namely, a new version is released to replace an old version, and the current version updating step is to release the gray version first, verify and modify the gray version, and then release the new version on the basis of the gray version after the verification is passed. Specifically, one is to release a grayscale version; secondly, carrying out gray level test; thirdly, the gray scale is continuously increased from the initial 10 percent gray scale to the 20 percent gray scale and then to the 50 percent gray scale so as to continuously expand the users using gray scale versions; and fourthly, modifying the gray-scale version according to the feedback of the user so as to release the formal version. The first version is a formal version that replaces the grayscale version (the second version). However, when the grayscale version (the second version) is tested, the number of the involved users is relatively small, which causes some functions of the grayscale version to be inaccurately verified, so that after the formal version (the first version) is released, an exception occurs when the application program of the formal version (the first version) runs. The server needs to send a detection instruction to enable the mobile terminal to detect the running status of a certain version of the application program.
Step S120, according to the feedback instruction, generating a first prompt message indicating that the application program of the first version is abnormally operated. The first prompt message is generated by the server and sent to the mobile terminal to explain to the user of the mobile terminal when the application program is abnormally operated in order to explain to the user that the application program cannot normally operate. For convenience of description, the present invention is illustrated with a WeChat application as an example.
In an embodiment, after receiving a feedback instruction indicating that the WeChat application program runs abnormally, the server generates a first prompt message and sends the first prompt message to the mobile terminal. The mobile terminal receives the first prompt message and displays the first prompt message on a display screen of the mobile terminal, for example, a dialog box pops up on the mobile terminal of the user, the application program stops running, and the like, so as to explain the running exception of the application program of the first version to the user and guide the user to select other versions.
Step S130, receiving a first switching instruction generated by the mobile terminal according to the first prompt message, where the first switching instruction carries an identifier corresponding to the second version of the configuration file and the first type of port, and the first version of the application program is generated based on optimizing the second version of the application program.
Wherein, the second version refers to the last gray version in the gray testing stage before releasing the formal version. For example, the first released version is the formal version 5.7.0, the initial grayscale version is 5.5.0, and in the grayscale testing phase, the grayscale version 5.5.0 is updated to the grayscale version 5.6.0 according to the user's feedback, so the second version is the updated grayscale version 5.6.0. That is, the first version and the second version are both versions of the same application program at different stages, and the first version is improved and optimized on the basis of the second version.
The first type of port is arranged in the server, the configuration file of the second version is stored in the server, and the first type of port corresponds to the configuration file of the second version, so that the configuration file of the second version is transmitted through the first type of port, and the WeChat application program on the mobile terminal of the user runs in the second version.
The first switching instruction is generated by the user performing triggering operation on the mobile terminal according to the first prompt message. The trigger operation may be a click operation, a slide operation, or a press operation of the user, which is not limited in this embodiment. The first switching instruction is an identifier which carries a configuration file of a second version of the WeChat application program and corresponds to the first type of port, so that the first type of port can be identified from the server according to the identifier, and the configuration file of the second version can be called from the first type of port.
Specifically, according to the dialog box prompt message, the user knows that the operation of the WeChat application program is abnormal, and by clicking the option for recovering the second version in the dialog box, the mobile terminal generates a first switching instruction corresponding to the recovered second version. The first switching instruction carries an identifier corresponding to the configuration file of the second version and the first type of port, the first type of port is identified in the server through the identifier, and the configuration file of the second version can be called from the first type of port.
Step S140, identifying the first type port according to the identifier carried by the first switching instruction, so as to retrieve the configuration file of the second version through the first type port, thereby enabling the mobile terminal to run the application program of the second version according to the configuration file of the second version.
The configuration file of the second version is the application program of the second version written by the developer. The first port is used for transmitting the second version of the configuration file to the mobile terminal of the user, so that the application program runs in the second version of the configuration file. The configuration file of the first version and the configuration file of the second version may be stored in the same server, or in different servers, or in partially the same and partially different servers, which is not limited in this embodiment. The configuration file of the second version is data information for running the application program of the second version.
Specifically, according to the foregoing, the server identifies the first type of port according to the identifier carried in the first switching instruction, and then calls the configuration file of the second version from the first type of port and sends the configuration file to the mobile terminal. And the mobile terminal receives the configuration file of the second version and runs the application program of the second version by using the configuration file of the second version.
For example, the mobile terminal of the user receives the configuration file of the grayscale version 5.6.0 (second version) transmitted through the first type port, so as to replace the configuration file of the previous formal version 5.7.0 (first version), so that the WeChat application runs according to the configuration file of the grayscale version 5.6.0, and when the formal version (first version) has an error, the mobile terminal can be switched to the grayscale version (second version) by one key, so that the WeChat application continues to run normally.
In the version switching method provided by this embodiment, the server receives a feedback instruction that an application program of a first version runs abnormally, generates a first prompt message according to the feedback instruction, and sends the first prompt message to the mobile terminal, and the user selects a version switching option according to the first prompt message, so as to generate a first switching instruction, and identifies a first type of port corresponding to a second version in the server according to the first switching instruction, so as to call a configuration file of the second version in the first type of port, so that the application program runs in the configuration file of the second version. The version switching method can realize one-key switching, quickly return, reduce the influence on a user and simplify the processing process of the version problem.
Referring to fig. 2, a second embodiment also provides a flowchart of a version switching method. It is to be understood that the flow charts in the embodiments of the present method are not intended to limit the order in which the steps are performed. After step S140, the version switching method further includes:
step S210, when it is detected that the first version of the configuration file is successfully repaired, a second prompt message is generated.
The second prompt message is sent by the server to the mobile terminal of the user after the first version of the application program is successfully repaired by the developer, so as to explain to the user that the application program can be operated in the configuration file of the first version. For example, on the user's mobile terminal, a dialog box pops up, prompting "detect that the first version of the application was successfully repaired, can function properly", etc. In this embodiment, only the presentation manner of the second prompting message is specifically described, which is only used as a reference, and other presentation manners may also be used, and this embodiment is not limited.
Specifically, after the configuration file of the first version stored in the server is successfully repaired, the server sends a second prompt message to the mobile terminal. And the mobile terminal pops up a dialog box, namely a second prompt message, and displays that the first version of the WeChat application program is successfully repaired and can normally run, so that the user knows that the first version of the WeChat application program is successfully repaired and can normally run.
Step S220, receiving a second switching instruction generated by the mobile terminal according to the second prompt message, where the second switching instruction carries an identifier corresponding to the configuration file of the first version and the second type port.
Specifically, according to the above contents, the user performs the trigger operation on the mobile terminal according to the second prompt information. And according to the triggering operation, the mobile terminal generates a second switching instruction and sends the second switching instruction to the server. The trigger operation may be a click operation, a sliding operation, or a pressing operation of the user, which is not limited in this embodiment. The second type port is arranged in the server and corresponds to the configuration file of the first version, so that the configuration file of the first version is transmitted through the second type port, and the WeChat application program on the mobile terminal of the user runs on the first version. The second switching instruction is an identifier carrying the configuration file of the first version of the application program corresponding to the second type port, so that the configuration file of the first version is called from the second type port.
In an embodiment, the user selects the option of returning to the first version by clicking a dialog box (second prompt message) presented on the mobile terminal, so that a second switching instruction corresponding to the returned first version is generated in the mobile terminal and is sent to the server. The second switching instruction carries the configuration file of the first version and the identifier corresponding to the second type port, and the server identifies the second type port through the identifier and can call the configuration file of the first version from the second type port.
Step S230, identifying the second type port according to the identifier carried by the second switching instruction, so as to retrieve the configuration file of the second version through the second type port, thereby enabling the mobile terminal to run the application program of the first version according to the configuration file of the second version.
The configuration file of the first version is the application program of the first version written by the developer and is stored in the server. The second type of port is used for transmitting the configuration file of the first version to the mobile terminal of the user, so that the application program runs in the configuration file of the first version. The configuration file of the first version and the configuration file of the second version may be stored in the same server, or in different servers, or in partially the same and partially different servers, which is not limited in this embodiment.
Specifically, according to the foregoing, the server identifies the second type of port according to the identifier carried in the second switching instruction, and then calls the configuration file of the first version from the second type of port and sends the configuration file to the mobile terminal. I.e. the first version of the configuration file, is transmitted to the mobile terminal. And the mobile terminal receives the configuration file of the first version and runs the application program of the first version by using the configuration file of the first version.
For example, the mobile terminal of the user receives the configuration file of the formal version 5.7.0 (first version) transmitted through the port of the second type, thereby replacing the configuration file of the previous grayscale version 5.6.0 (second version), and thus enabling the WeChat application to run according to the configuration file of the formal version 5.7.0 (first version). Therefore, after the first version is successfully repaired, the user also switches the application program of the second version to the application program of the first version by one key, so that the method is quick and convenient, and reduces the operation of the user.
In the version switching method provided in this embodiment, after the application program of the first version is successfully repaired, the server generates a second prompt message, and the user selects the version switching option according to the second prompt message, so as to generate a second switching instruction. According to the second switching instruction, the server identifies a second type port corresponding to the first version, so that the configuration file of the first version is called from the second type port, and the application program is operated on the first version. The version switching method can not only realize one-key switching and fast rollback after one key returns to the second version when the first version has a problem, but also realize one-key switching after the first version is successfully repaired, thereby reducing the influence on a user and simplifying the processing process of the version problem.
It should be noted that fig. 2 is only an exemplary flowchart of the version switching method, and is not intended to limit the scope of the present invention, and all equivalent flow transformations based on fig. 2 are included in the scope of the present invention.
The third embodiment also provides a version switching method, that is, before step S110, the version switching method further includes: and sending a detection instruction so that the mobile terminal detects the running state of the application program of the first version and generates a feedback instruction.
Specifically, when receiving a detection instruction sent by the server, the mobile terminal detects whether the application program can normally run under the configuration file of the first version according to a preset monitoring thread, so as to obtain a running state of the application program running in the first version, and generate a feedback instruction, so as to report the running state of the application program of the first version to the server. The operating conditions include normal operation and abnormal operation. When the operation is normal, no other operation is executed. When the operation is abnormal, the processing is performed according to the first embodiment. In addition, when the mobile terminal receives the configuration file of the first version transmitted by the server through the second type port, whether the configuration file of the first version is wrong or not is judged, if the configuration file of the first version is correct, the configuration file of the first version is read, and if the configuration file of the first version is incorrect, the process is ended.
Referring to fig. 3, a fourth embodiment also provides a flowchart illustrating a version switching method. The step S140 includes:
step S310, receiving the first switching instruction. Specifically, the server receives a first switching instruction sent by the mobile terminal.
Step S320, sending the first switching instruction to a processor, so that the processor identifies the identifier in the first switching instruction, and forwards the first switching instruction to the first class of ports according to the identifier, so as to retrieve the configuration file corresponding to the second version in the first class of ports, and further, the mobile terminal runs the application program of the second version according to the configuration file of the second version.
Specifically, the server sends the received first switching instruction to a processor inside the server. The processor identifies the identifier carried by the first switching instruction, forwards the first switching instruction to the first type of port according to the identifier, and then calls the configuration file of the second version from the first type of port. And the mobile terminal receives the configuration file of the second version and runs the application program of the second version by using the configuration file of the second version.
Referring to fig. 4, a fifth embodiment also provides a flowchart illustrating a version switching method. It is to be understood that the flow charts in the embodiments of the present method are not intended to limit the order in which the steps are performed. The method further comprises the following steps:
step S410, when the configuration file of the second version is updated, a third prompt message is generated.
Wherein the second version of the configuration file is updated, i.e. the programmer has revised the second version of the configuration file, i.e. optimized and/or added some functionality to make it more convenient for the user to use. The third prompt message is generated by the server and sent to the mobile terminal to explain to the user of the mobile terminal when the second version of the application program is updated in order to explain to the user that the application program is updated.
In an embodiment, after the programmer loads the updated configuration file of the second version to the server, the server generates a third prompt message and sends the third prompt message to the mobile terminal. The mobile terminal receives the third prompt message and displays the third prompt message on its display screen, such as popping up a dialog box on the mobile terminal of the user, that the application of the second version is updated, etc., so as to explain to the user that the application of the second version is updated and instruct the user whether to run the updated second version.
Step S420, receiving a third switching instruction generated by the mobile terminal according to the third prompt message, where the third switching instruction carries an identifier corresponding to the updated configuration file of the second version and the first type of port.
Specifically, according to the dialog box prompt message, the user knows that the configuration file of the second version is updated, and by clicking an option for running the configuration file of the updated second version, the mobile terminal generates a third switching instruction corresponding to the updated second version. The third switching instruction carries an identifier corresponding to the updated configuration file of the second version and the first type of port, the first type of port is identified in the server through the identifier, and the updated configuration file of the second version can be called from the first type of port.
Step S430, identifying the first type port according to the identifier carried by the third switching instruction, so as to call out the updated configuration file of the second version through the first type port, thereby enabling the mobile terminal to run the updated application program of the second version according to the updated configuration file of the second version.
Specifically, according to the foregoing, the server identifies the first type of port according to the identifier carried in the third switching instruction, calls the updated second version of the configuration file from the first type of port, and sends the configuration file to the mobile terminal. And the mobile terminal receives the updated configuration file of the second version and runs the application program of the second version by using the updated configuration file of the second version.
The version switching method provided by the fifth embodiment may notify the user at the first time when the application program of the second version is updated, and the user may select by one key whether to run the updated application program of the second version.
The sixth embodiment also provides a flowchart of a version switching method. It is to be understood that the flow charts in the embodiments of the present method are not intended to limit the order in which the steps are performed. The version switching method further comprises the following steps:
when the configuration file of the second version is updated, modifying the corresponding relation between the updated configuration file of the second version and the first type of port to replace the corresponding relation between the configuration file of the second version and the first port.
In an actual scenario, when the version of the application program corresponding to the port changes, for example, is updated, the corresponding relationship between the port and the version of the application program also changes correspondingly. Then, the specific conditions of the versions corresponding to the ports in the application program need to be obtained first, and the change conditions of the versions are monitored in real time, so that the corresponding relationship is modified in time after the version of the application program changes. Specifically, it is detected that the wechat application running in the second version is updated or changed, for example, the second version is originally version 2.0, after the update, the second version is changed to version 3.0, and the original version 2.0 has a corresponding relationship with the first type interface, so that the processor can be connected with the corresponding first type port according to the identifier. After the version 2.0 is upgraded to the version 3.0, the version 3.0 has no corresponding relation with the first type interface. Therefore, when detecting that the version 2.0 of the application program is updated, the updated version 3.0 is obtained, and the processor modifies the corresponding relation of the original version 2.0 corresponding to the first type of port into the corresponding relation of the version 3.0 corresponding to the first type of port according to the obtained version 3.0, so as to replace the corresponding relation of the previous version 2.0 corresponding to the first type of port, thereby ensuring that the application program can be operated in the new version only by modifying the corresponding relation when the version is updated.
Referring to fig. 5, a seventh embodiment also provides a flowchart of a version switching method. It is to be understood that the flow charts in the embodiments of the present method are not intended to limit the order in which the steps are performed. The version switching method further comprises the following steps:
step S510, receiving a port switching instruction sent by the mobile terminal, where the port switching instruction carries an identifier corresponding to the target port and the application program of the target version.
Specifically, the port switching instruction comes from a trigger operation of a user. The trigger operation may be a click operation, a press operation, a slide operation, or the like. When a user selects to run a certain version of application program on the mobile terminal, namely, a port switching instruction is generated through the clicking operation of the user, and then the port switching instruction is sent to the server from the mobile terminal of the user. The port switching instruction carries the identification corresponding to the target port and the application program of the target version.
Step S520, identifying the target port according to the identifier carried by the port switching instruction, so as to retrieve the configuration file of the target version, and enabling the mobile terminal to operate the application program of the target version according to the configuration file of the target version.
And the processor in the server identifies the target port and connects the target port according to the identifier in the port switching instruction, so that the application program runs in the target version. The port switch instruction may contain a version identification. For example, if the port switching instruction includes an identifier of version 3.0, the processor connects the port corresponding to the version 3.0 as a target port according to the identifier and the corresponding relationship between the port and the version, so that the processor can call data information of a corresponding version from the port and transmit the data information to the mobile terminal of the user, so that the application program can run in the version. The port switch instruction may also contain a port identification. For example, 191.152.0.100: 21 and 191.152.0.102: and 21, the port switching instruction includes which port identifier, and the processor is connected with the corresponding port according to the identifier, so that the processor can call data information of a corresponding version from the port and transmit the data information to the mobile terminal of the user, so that the application program can run in the version.
Referring to fig. 6, an eighth embodiment provides a version switching device 600. The switching device 600 includes:
the first receiving module 610 receives a feedback instruction indicating that the first version of the application program runs abnormally.
Specifically, when the processor inside the mobile terminal detects that the first version of the application program is abnormal, such as null pointer reference abnormality and arithmetic operation abnormality, the mobile terminal generates a feedback instruction and sends the feedback instruction to the server.
The abnormal operation means that data information in the application program is wrong, so that the application program cannot normally operate and cannot provide corresponding services for users. For example, null pointer reference exceptions, type-enforced translation exceptions, pass-illegal parameter exceptions, arithmetic operation exceptions, deposit-and-claim type-incompatible object exceptions into an array, and the like.
The application program is a general term for a program selected by a user to be installed, and generally includes a process of a driver, a process of general software such as a viewer software, a decompression software, and the like. Briefly, an Application (APP) refers to a third party Application of a smartphone. The APP can be installed and downloaded through application stores, such as apple APP Store, Google Play Store of Google, and the like. Common APP can be QQ, WeChat, microblog, Paibao, Eschka, and the like.
In addition, with the increase of the user demand, each application program needs to be updated continuously, namely, a new version is released to replace an old version, and the current version updating step is to release the gray version firstly, verify and modify the gray version, and then release the new version on the basis of the gray version after the verification is passed. Specifically, one is to release a grayscale version; secondly, carrying out gray level test; thirdly, the gray scale is continuously increased from the initial 10 percent gray scale to the 20 percent gray scale and then to the 50 percent gray scale so as to continuously expand the users using gray scale versions; and fourthly, modifying the gray-scale version according to the feedback of the user so as to release the formal version. The first version is a formal version that replaces the grayscale version (the second version). However, when the grayscale version (the second version) is tested, the number of the involved users is relatively small, so that some function verification of the grayscale version (the second version) is inaccurate, and thus after the formal version (the first version) is released, an abnormality occurs in the running of the application program of the formal version (the first version). The abnormal operation means that data information in the application program has errors, so that the application program cannot normally operate and cannot provide corresponding services for users. For example, null pointer reference exceptions, type-enforced translation exceptions, pass-illegal parameter exceptions, arithmetic operation exceptions, deposit-and-claim type-incompatible object exceptions into an array, and the like. The server needs to send a detection instruction to enable the mobile terminal to detect the running status of a certain version of the application program.
The generating module 620 generates a first prompt message indicating that the application program of the first version runs abnormally according to the feedback instruction.
The first prompt message is generated by the server and sent to the mobile terminal in order to indicate to the user that the application program cannot normally operate when the application program operates abnormally. For convenience of description, the present invention is illustrated with a WeChat application as an example.
In an embodiment, after receiving a feedback instruction indicating that the WeChat application program runs abnormally, the server generates a first prompt message and sends the first prompt message to the mobile terminal. The mobile terminal receives the first prompt message and displays the first prompt message on a display screen of the mobile terminal, for example, a dialog box pops up on the mobile terminal of the user, the application program stops running, and the like, so as to explain the running exception of the application program of the first version to the user and guide the user to select other versions.
The second receiving module 630 receives a first switching instruction generated by the mobile terminal according to the first prompt message, where the first switching instruction carries an identifier corresponding to the configuration file of the second version and the first type of port, and the application program of the first version is generated based on optimizing the application program of the second version.
Wherein the second version is the last version in the gray scale test phase before releasing the formal version. For example, the first released version is the official version 5.7.0, the initial grayscale version is 5.5.0, and in the grayscale testing phase, the grayscale version 5.5.0 is updated to the version 5.6.0 according to the user's feedback, so the second version is the version 5.6.0. That is, the first version and the second version are both versions of the same application program at different stages, and the first version is improved and optimized on the basis of the second version.
The first type of port is arranged in the server, the configuration file of the second version is stored in the server, and the first type of port corresponds to the configuration file of the second version, so that the configuration file of the second version is transmitted through the first type of port, and the WeChat application program on the mobile terminal of the user runs in the second version.
The first switching instruction is generated by the user performing triggering operation on the mobile terminal according to the first prompt message. The trigger operation may be a click operation, a slide operation, or a press operation of the user, which is not limited in this embodiment. The first switching instruction is an identifier which carries a configuration file of a second version of the WeChat application program and corresponds to the first type of port, so that the first type of port can be identified from the server according to the identifier, and the configuration file of the second version can be called from the first type of port.
Specifically, according to the dialog box prompt message, the user knows that the operation of the WeChat application program is abnormal, and by clicking the option for recovering the second version in the dialog box, the mobile terminal generates a first switching instruction corresponding to the recovered second version. The first switching instruction carries an identifier corresponding to the configuration file of the second version and the first type of port, the first type of port is identified in the server through the identifier, and the configuration file of the second version can be called from the first type of port.
The identifying module 640 identifies the first type of port according to the identifier carried by the first switching instruction, so as to call the configuration file of the second version through the first type of port, and further enable the mobile terminal to run the application program of the second version according to the configuration file of the second version.
The configuration file of the second version is the application program of the second version written by the developer. The first type of port is used to transmit the second version of the configuration file to the user's mobile terminal, so that the application program runs in the second version of the configuration file. The configuration file of the first version and the configuration file of the second version may be stored in the same server, or in different servers, or in partially the same and partially different servers, which is not limited in this embodiment. The configuration file of the second version is data information for running the application program of the second version.
Specifically, according to the foregoing, the server identifies the first type of port according to the identifier carried in the first switching instruction, and then calls the configuration file of the second version from the first type of port and sends the configuration file to the mobile terminal. And the mobile terminal receives the configuration file of the second version and runs the application program of the second version by using the configuration file of the second version.
For example, the mobile terminal of the user receives the configuration file of the version 5.6.0 (second version) transmitted through the first port, so as to replace the configuration file of the previous formal version 5.7.0 (first version), so that the WeChat application runs according to the configuration file of the version 5.6.0, and when the formal version (first version) has an error, the mobile terminal can be switched to the grayscale version (second version) by one key, so that the application continues to run normally.
In the version switching apparatus 600 provided in this embodiment, the server receives a feedback instruction indicating that the application program of the first version is abnormally operated, generates a first prompt message according to the feedback instruction, and sends the first prompt message to the mobile terminal, the user selects a version switching option according to the first prompt message, so as to generate a first switching instruction, and according to the first switching instruction, identifies the first type of port corresponding to the second version in the server, so as to call the configuration file of the second version in the first type of port, so as to enable the application program to operate with the configuration file of the second version. The version switching device 600 can realize one-key switching, fast rollback, reduce the influence on users and simplify the processing process of version problems.
The embodiment of the invention also provides a hardware architecture of the computer equipment. In this embodiment, the computer device is a device capable of automatically performing numerical calculation and/or information processing according to a command set or stored in advance. As shown, the computer device includes, but is not limited to, at least a memory, a processor, a network interface, and a version switching apparatus 600 communicatively connected to each other via a system bus. Wherein:
in this embodiment, the memory includes at least one type of computer-readable storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the memory may be an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. In other embodiments, the memory may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the computer device. Of course, the memory may also include both internal and external storage devices for the computer device. In this embodiment, the memory is generally used for storing an operating system installed in the computer device and various types of application software, such as program codes of application programs. In addition, the memory may also be used to temporarily store various types of data that have been output or are to be output.
The processor may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor is typically used to control the overall operation of the computer device. In this embodiment, the processor is configured to run a program code stored in the memory or process data to implement the version switching method according to the embodiment.
The network interface may include a wireless network interface or a wired network interface, which is typically used to establish a communication connection between the computer device and other electronic devices. For example, the network interface is used to connect the computer device to an external terminal through a network, establish a data transmission channel and a communication connection between the computer device and the external terminal, and the like. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth (Bluetooth), Wi-Fi, and the like.
It should be noted that the above only shows a computer device having components, but it should be understood that not all of the shown components are required to be implemented, and more or less components may be implemented instead.
In this embodiment, the version switching apparatus 600 stored in the memory can be further divided into one or more program modules, and the one or more program modules are stored in the memory and executed by one or more processors (in this embodiment, processors), so as to complete the version switching method of the present invention.
The present embodiment also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application mall, etc., on which a computer program is stored, which when executed by a processor implements corresponding functions. The computer readable storage medium of this embodiment is used for storing the version switching apparatus 600, and when being executed by a processor, the version switching method of the present invention is implemented.
According to the version switching method, the version switching device 600, the computer device and the computer readable storage medium provided by the embodiment of the invention, when the application program of the first version runs abnormally, a first prompt message indicating the abnormality is sent; and receiving a first switching instruction generated by the mobile terminal according to the first prompt message, identifying a first type port according to the identifier in the first switching instruction, calling out a configuration file of a second version through the first type port, and finally running an application program of the second version according to the configuration file. The version switching method can realize one-key switching, quickly return, reduce the influence on a user and simplify the processing process of the version problem.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A version switching method is characterized by comprising the following steps:
receiving a feedback instruction indicating that the first version of the application program runs abnormally;
generating a first prompt message indicating that the application program of the first version runs abnormally according to the feedback instruction;
receiving a first switching instruction generated by the mobile terminal according to the first prompt message, wherein the first switching instruction carries an identifier corresponding to a configuration file of a second version and a first type port, and the application program of the first version is generated based on optimizing the application program of the second version; and
and identifying the first type of port according to the identifier carried by the first switching instruction, so as to call out the configuration file of the second version through the first type of port, and further enabling the mobile terminal to operate the application program of the second version according to the configuration file of the second version.
2. The version switching method according to claim 1, wherein after the step of identifying the first type of port according to the identifier carried by the first switching instruction to call out the configuration file of the second version through the first type of port, and further enabling the mobile terminal to run the application of the second version according to the configuration information of the second version, the method further comprises:
when detecting that the configuration file of the first version is successfully repaired, generating a second prompt message;
receiving a second switching instruction generated by the mobile terminal according to the second prompt message, wherein the second switching instruction carries an identifier corresponding to the configuration file of the first version and the second type port; and
and identifying the second type of port according to the identifier carried by the second switching instruction, so as to call out the configuration file of the first version through the second type of port, and further enable the mobile terminal to operate the application program of the first version according to the configuration file of the first version.
3. The version switching method according to claim 1, wherein before the step of receiving the feedback instruction indicating that the application of the first version is abnormally operated, the method further comprises:
and sending a detection instruction to enable the mobile terminal to detect the running state of the application program of the first version and generate the feedback instruction.
4. The version switching method according to claim 1, wherein the step of identifying the first type of port according to the identifier carried by the first switching instruction, so as to retrieve the configuration file of the second version through the first type of port, and further enable the mobile terminal to run the application program of the second version according to the configuration file of the second version comprises:
receiving the first switching instruction; and
and sending the first switching instruction to a processor, enabling the processor to identify the identifier in the first switching instruction, and forwarding the first switching instruction to the first type of port according to the identifier, so as to retrieve the configuration file of the second version through the first type of port, and further enabling the mobile terminal to operate the application program of the second version according to the configuration file of the second version.
5. The version switching method of claim 1, wherein the method further comprises:
when the configuration file of the second version is updated, generating a third prompt message;
receiving a third switching instruction generated by the mobile terminal according to the third prompt message, wherein the third switching instruction carries an updated identifier corresponding to the configuration file of the second version and the first type of port; and
and identifying the first type of port according to the identifier carried by the third switching instruction, so as to call the updated configuration file of the second version through the first type of port, and further enable the mobile terminal to run the updated application program of the second version according to the updated configuration file of the second version.
6. The version switching method according to claim 5, wherein before the step of receiving a third switching instruction generated by the mobile terminal according to the third prompt message, where the third switching instruction carries an updated identifier corresponding to the second version of the configuration file and the first type of port, the method includes:
when the configuration file of the second version is updated, modifying the corresponding relation between the updated configuration file of the second version and the first type of port to replace the corresponding relation between the configuration file of the second version and the first port.
7. The version switching method of claim 1, wherein the method further comprises:
receiving a port switching instruction sent by a mobile terminal, wherein the port switching instruction carries an identifier corresponding to a target port and an application program of a target version;
and identifying the target port according to the identifier carried by the port switching instruction so as to call out the configuration file of the target version, so that the mobile terminal operates the application program of the target version according to the configuration file of the target version.
8. A version switching apparatus, characterized in that the version switching apparatus comprises:
the first receiving module is used for receiving a feedback instruction indicating that the first version of the application program runs abnormally;
the generating module is used for generating a first prompt message indicating that the application program of the first version runs abnormally according to the feedback instruction;
a second receiving module, configured to receive a first switching instruction generated by a mobile terminal according to the first prompt message, where the first switching instruction carries an identifier corresponding to the second version of the configuration file and the first type of port, and the first version of the application program is generated based on optimizing the second version of the application program; and
and the identification module is used for identifying the first type of port according to the identifier carried by the first switching instruction so as to call the configuration file of the second version through the first type of port, and further enable the mobile terminal to operate the application program of the second version according to the configuration file of the second version.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the version switching method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which is executable by at least one processor to cause the at least one processor to perform the steps of the version switching method according to any one of claims 1 to 7.
CN201910970066.6A 2019-10-12 2019-10-12 Version switching method, version switching device, computer equipment and storage medium Pending CN110908702A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910970066.6A CN110908702A (en) 2019-10-12 2019-10-12 Version switching method, version switching device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910970066.6A CN110908702A (en) 2019-10-12 2019-10-12 Version switching method, version switching device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110908702A true CN110908702A (en) 2020-03-24

Family

ID=69815240

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910970066.6A Pending CN110908702A (en) 2019-10-12 2019-10-12 Version switching method, version switching device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110908702A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111736872A (en) * 2020-06-22 2020-10-02 平安健康保险股份有限公司 Gray scale release upgrading method and device, computer system and readable storage medium
CN112433749A (en) * 2020-11-24 2021-03-02 中国建设银行股份有限公司 Application gray level publishing method and device, server and client
CN113360213A (en) * 2021-06-30 2021-09-07 中国农业银行股份有限公司 Application program version switching method, device, equipment and system
WO2021179633A1 (en) * 2020-09-23 2021-09-16 平安科技(深圳)有限公司 Product grayscale releasing method, apparatus and device, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140068588A1 (en) * 2012-09-06 2014-03-06 Box, Inc. Force upgrade of a mobile application via a server side configuration file
WO2015101235A1 (en) * 2014-01-02 2015-07-09 Tencent Technology (Shenzhen) Company Limited Method, device and system for updating software configuration parameters
CN106933593A (en) * 2017-03-17 2017-07-07 上海与德科技有限公司 A kind of system switching method and device based on mobile terminal
US20190312746A1 (en) * 2018-04-09 2019-10-10 Ayla Networks, Inc. Device control application with changeable workflow

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140068588A1 (en) * 2012-09-06 2014-03-06 Box, Inc. Force upgrade of a mobile application via a server side configuration file
WO2015101235A1 (en) * 2014-01-02 2015-07-09 Tencent Technology (Shenzhen) Company Limited Method, device and system for updating software configuration parameters
CN106933593A (en) * 2017-03-17 2017-07-07 上海与德科技有限公司 A kind of system switching method and device based on mobile terminal
US20190312746A1 (en) * 2018-04-09 2019-10-10 Ayla Networks, Inc. Device control application with changeable workflow

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111736872A (en) * 2020-06-22 2020-10-02 平安健康保险股份有限公司 Gray scale release upgrading method and device, computer system and readable storage medium
CN111736872B (en) * 2020-06-22 2023-07-14 平安健康保险股份有限公司 Gray scale release upgrading method, device, computer system and readable storage medium
WO2021179633A1 (en) * 2020-09-23 2021-09-16 平安科技(深圳)有限公司 Product grayscale releasing method, apparatus and device, and storage medium
CN112433749A (en) * 2020-11-24 2021-03-02 中国建设银行股份有限公司 Application gray level publishing method and device, server and client
CN113360213A (en) * 2021-06-30 2021-09-07 中国农业银行股份有限公司 Application program version switching method, device, equipment and system

Similar Documents

Publication Publication Date Title
CN110908702A (en) Version switching method, version switching device, computer equipment and storage medium
CN108196878B (en) Method and device for generating application program installation package, electronic equipment and storage medium
CN108400978B (en) Vulnerability detection method and device, computer equipment and storage medium
CN110032505B (en) Software quality determination apparatus and method, and non-transitory computer readable medium
CN112395202B (en) Interface automation test method and device, computer equipment and storage medium
CN111475401A (en) Test method and related equipment
US20100312541A1 (en) Program test device and program
CN108132832B (en) Application program starting method and device
CN112100078A (en) Method, device and equipment for generating interface test case
CN111309602A (en) Software testing method, device and system
CN111698558A (en) Television software upgrading method, television terminal and computer readable storage medium
CN105045671A (en) Method and device for upgrading systems of intelligent terminals
CN111722857A (en) Updating method and device of software development kit, electronic equipment and storage medium
US10628283B2 (en) Deployment tool that corrects deployment errors
CN111159048A (en) Application program testing method and device and computer readable storage medium
CN106528248B (en) Downloading method and system of mobile terminal based on software integrity
JP2021152939A (en) Portable terminal, control method, and program
CN113568834A (en) SDK code compatibility detection method, device, computer equipment and medium
CN112181802A (en) Test method and device
US11175912B2 (en) Version management system, version management method and non-transitory computer-readable medium
CN116610557B (en) Action binding information debugging method and device, storage medium and electronic equipment
CN112783522B (en) File loading method, file loading device and electronic equipment
CN109240906B (en) Database configuration information adaptation method and device, computer equipment and storage medium
US11356239B2 (en) Information processing apparatus, network system, and medium
CN114301969B (en) Message pushing method, device, electronic equipment and computer readable storage medium

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