CN110413312B - Method, device and equipment for managing application program and storage medium - Google Patents

Method, device and equipment for managing application program and storage medium Download PDF

Info

Publication number
CN110413312B
CN110413312B CN201910636913.5A CN201910636913A CN110413312B CN 110413312 B CN110413312 B CN 110413312B CN 201910636913 A CN201910636913 A CN 201910636913A CN 110413312 B CN110413312 B CN 110413312B
Authority
CN
China
Prior art keywords
version
version information
application
target
current
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.)
Active
Application number
CN201910636913.5A
Other languages
Chinese (zh)
Other versions
CN110413312A (en
Inventor
刘慧�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING PASSION TECHNOLOGY Co.,Ltd.
Beijing three fast online Technology Co., Ltd.
Original Assignee
Beijing Sankuai Online Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201910636913.5A priority Critical patent/CN110413312B/en
Publication of CN110413312A publication Critical patent/CN110413312A/en
Application granted granted Critical
Publication of CN110413312B publication Critical patent/CN110413312B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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 application provides a method, a device, equipment and a storage medium for managing application programs, wherein the method comprises the following steps: determining current application version information of the application program on the at least one second terminal device; determining target application version information corresponding to the current equipment version information of the first terminal equipment according to a version linkage rule; and determining a version adjustment scheme of the application program according to the comparison result of the current application version information and the target application version information so that the second terminal can adjust the version of the application program. The method and the device can realize the compatibility between the version of the first terminal device and the version of the application program of the second terminal device by adjusting the version of the application program, can save a large amount of manpower and time, can avoid the problems of error and error leakage caused by verifying and processing the compatibility in a manual mode, and improve the accuracy of the compatibility detection.

Description

Method, device and equipment for managing application program and storage medium
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a method, an apparatus, a device, and a storage medium for managing an application.
Background
With the development of internet technology, the application of terminal devices in various fields is more and more popular, and the version of the terminal device is continuously upgraded.
When releasing a new version of a terminal device (e.g. a point of sale POS terminal device, etc.), it is often necessary to ensure compatibility between the new version of the terminal device and the respective versions of the applications APP with Daily Activities (DAU) within the system.
In the prior art, the compatibility problem between the new version of the terminal device and the versions of the APPs in the system is usually verified and processed in a manual mode, and due to the fact that verification and processing are very complicated and need to be followed by special staff, a large amount of manpower and time are consumed, and errors and mistakes are easily made in the mode of verifying and processing the compatibility in the manual mode.
Disclosure of Invention
In view of the above, the present application provides a method, an apparatus, a device and a storage medium for managing an application, which can solve the problems in the prior art solutions.
Specifically, the method is realized through the following technical scheme:
according to a first aspect of the present application, a method for managing an application is provided, which is applied to a first terminal device, the first terminal device being in communication connection with at least one second terminal device installed with the application, the method including:
determining current application version information of the application program on the at least one second terminal device;
determining target application version information corresponding to the current equipment version information of the first terminal equipment according to a version linkage rule, wherein the version linkage rule comprises a compatibility rule between the equipment version information of the first terminal equipment and the application version information of an application program on the second terminal equipment;
and determining a version adjustment scheme of the application program according to the comparison result of the current application version information and the target application version information so that the second terminal can adjust the version of the application program.
In an embodiment, the determining, according to the version linkage rule, the target application version information corresponding to the current device version information of the first terminal device includes:
determining target version information associated with the current equipment version information of the first terminal equipment from the version linkage rule;
and determining the application version information corresponding to the target version information as the target application version information corresponding to the current equipment version information of the first terminal equipment.
In one embodiment, the method further comprises obtaining the version linkage rule in advance according to the following steps:
sending a version detection request to a cloud server, wherein the detection request comprises version information of current configuration information of terminal equipment;
acquiring target configuration information based on a comparison result of the cloud server on the version information of the current configuration information and the version information of the configuration information stored in the cloud server;
determining the version linkage rule based on the target configuration information.
In an embodiment, the determining a version adjustment scheme of the application program according to the comparison result between the current application version information and the target application version information includes:
and determining that the version of the application program needs to be upgraded in response to the current application version information being lower than the target application version information.
In an embodiment, the determining a version adjustment scheme of the application program according to the comparison result between the current application version information and the target application version information includes:
in response to that the current application version information is higher than the target application version information, determining target device version information corresponding to the current application version information;
comparing the current equipment version information with the target equipment version information;
and determining that the version of the application program needs to be degraded in response to the current device version information being lower than the target device version information.
In one embodiment, the method further comprises:
and responding to the version information of the application program which is determined to need to be adjusted, and sending a prompt message to the application program, wherein the prompt message is used for prompting the adjustment of the version of the application program.
According to a second aspect of the present application, an apparatus for managing an application is provided, which is applied to a first terminal device, where the first terminal device is communicatively connected to at least one second terminal device installed with the application, and includes:
a current application version determining module, configured to determine current application version information of the application program on the at least one second terminal device;
a target application version determining module, configured to determine target application version information corresponding to current device version information of the first terminal device according to a version linkage rule, where the version linkage rule includes a compatibility rule between the device version information of the first terminal device and application version information of an application program on the second terminal device;
and the version adjustment scheme determining module is used for determining the version adjustment scheme of the application program according to the comparison result of the current application version information and the target application version information, so that the second terminal can adjust the version of the application program.
In one embodiment, the target application version determination module includes:
the target version information determining unit is used for determining target version information related to the current equipment version information of the first terminal equipment from the version linkage rule;
and the target application version determining unit is used for determining the application version information corresponding to the target version information as the target application version information corresponding to the current equipment version information of the first terminal equipment.
In one embodiment, the apparatus further comprises a linkage rule determination module;
the linkage rule determination module includes:
the system comprises a detection request sending unit, a cloud server and a server, wherein the detection request sending unit is used for sending a version detection request to the cloud server, and the detection request comprises version information of current configuration information of terminal equipment;
a configuration information obtaining unit, configured to obtain target configuration information based on a comparison result of the version information of the current configuration information and the version information of the configuration information stored in the cloud server by the cloud server;
and the linkage rule determining unit is used for determining the version linkage rule based on the target configuration information.
In one embodiment, the version adjustment scheme determining module includes:
and the version upgrading processing unit is used for responding to the situation that the current application version information is lower than the target application version information, and determining that the version of the application program needs to be upgraded.
In one embodiment, the version adjustment scheme determination module comprises a version downgrading processing unit;
the version degradation processing unit is configured to:
in response to that the current application version information is higher than the target application version information, determining target device version information corresponding to the current application version information;
comparing the current equipment version information with the target equipment version information;
and determining that the version of the application program needs to be degraded in response to the current device version information being lower than the target device version information.
In one embodiment, the method further comprises:
and the prompt message sending module is used for responding to the version information of the application program which is determined to need to be adjusted and sending a prompt message to the application program, wherein the prompt message is used for prompting the adjustment of the version of the application program.
According to a third aspect of the present application, there is provided an apparatus for managing an application, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements any of the above methods for managing an application when executing the program.
According to a fourth aspect of the present application, a computer-readable storage medium is proposed, the storage medium storing a computer program for executing any of the methods of managing an application described above.
According to the technical scheme, the application can automatically detect the compatibility of the version of the application program of the first terminal device and the version of the application program of the second terminal device based on the comparison result of the current application version information of the second terminal device and the target application version information of the first terminal device by determining the current application version information of the application program on the at least one second terminal device, determining the target application version information corresponding to the current device version information of the first terminal device according to the version linkage rule, and further determining the version adjustment scheme of the application program according to the comparison result of the current application version information of the first terminal device and the target application version information of the target application version information so that the second terminal device can adjust the version of the application program, the method comprises the following steps of realizing compatibility between the version of a first terminal device and the version of an application program of a second terminal device by adjusting the version of the application program; because the compatibility detection of the terminal and the application is not required to be carried out by full-time personnel, a large amount of labor and time can be saved, the problems of errors and mistakes caused by verification and compatibility processing in a manual mode can be avoided, and the accuracy of the compatibility detection is improved.
Drawings
FIG. 1 is a flow chart illustrating a method of managing an application in accordance with an exemplary embodiment of the present application;
fig. 2 is a flowchart illustrating how to determine target application version information corresponding to current device version information of a first terminal device according to an exemplary embodiment of the present application;
FIG. 3 is a flowchart illustrating how version linkage rules are obtained according to an exemplary embodiment of the present application;
FIG. 4 is a flow chart illustrating a method of managing an application in accordance with yet another exemplary embodiment of the present application;
FIG. 5 is a flow chart illustrating a method of managing an application in accordance with another exemplary embodiment of the present application;
FIG. 6 is a block diagram illustrating an apparatus for managing applications in accordance with an exemplary embodiment of the present application;
FIG. 7 is a block diagram illustrating an apparatus for managing applications in accordance with yet another exemplary embodiment of the present application;
fig. 8 is a block diagram illustrating an apparatus for managing an application according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
FIG. 1 is a flow chart illustrating a method of managing an application in accordance with an exemplary embodiment of the present application; the embodiment can be used for a first terminal device (for example, a smart phone, a tablet computer, a desktop computer, a cash register terminal device, a notebook computer and the like) which is in communication connection with at least one second terminal device installed with an application program. As shown in fig. 1, the method comprises steps S101-S103:
in step S101, current application version information of the application on the at least one second terminal device is determined.
In an embodiment, when an application on the second terminal device needs to establish a connection with the first terminal device, a connection request may be sent to the first terminal device through the second terminal device, where the connection request may include information of a current application version of the application, for example, a current version number of the application. Further, the first terminal device may determine current application version information of the application program on the second terminal device based on the received connection request.
In an embodiment, the first terminal device may be a master POS terminal in a POS system including one master POS (Point of Sales) terminal and a plurality of slave POS terminals. On this basis, the application program may be a Daily Active User (DAU) APP in the current system, such as any one of a POS terminal, a waiter APP for ordering customers, a printing APP for printing tickets and kitchen lists, and other reserved APPs that may participate in the current system in the future and extend the entire system, which is not limited in this embodiment.
In step S102, target application version information corresponding to the current device version information of the first terminal device is determined according to a version linkage rule.
Wherein the version linkage rule includes a compatibility rule between the device version information of the first terminal device and the application version information of the application program on the second terminal device
In an embodiment, the first terminal device may determine a target application version corresponding to its current device version information according to a version linkage rule.
In an embodiment, the manner of obtaining the linkage rule may refer to the embodiment described in fig. 3 below, and will not be described in detail here.
In an embodiment, the current device version information of the first terminal device includes a version number of the first terminal device, and the like; the target application version may include the lowest version information of the application program (e.g., the lowest version number of the application program) compatible with the version information of the first terminal device, and the like, which is not limited in this embodiment.
In an embodiment, the first terminal device may determine, according to preset target configuration information, target application version information corresponding to current device version information of the first terminal device, where the target configuration information describes a correspondence between version information of the terminal device and the target application version information.
In an embodiment, the manner of determining the target application version information corresponding to the current device version information of the first terminal device may also be referred to the following embodiment shown in fig. 2, which is not described in detail herein.
In step S103, a version adjustment scheme of the application program is determined according to a comparison result between the current application version information and the target application version information, so that the second terminal can adjust the version of the application program.
In an embodiment, after the comparison result between the current application version information and the target application version information is obtained, the version adjustment scheme of the application program corresponding to the comparison result may be obtained based on a preset correspondence between multiple comparison results and the version adjustment scheme of the application program, so that the second terminal may adjust the version of the application program based on the version adjustment scheme.
In an embodiment, the version adjustment scheme may include performing upgrade processing, downgrade processing, no processing, and the like on the version of the application program, which is not limited in this embodiment.
In an embodiment, the manner of determining the version adjustment scheme of the application program according to the comparison result between the current application version information and the target application version information may also be referred to the following embodiment shown in fig. 4, which is not described in detail herein.
As can be seen from the above description, in this embodiment, by determining the current application version information of the application program on the at least one second terminal device, determining the target application version information corresponding to the current device version information of the first terminal device according to the version linkage rule, and further determining the version adjustment scheme of the application program according to the comparison result between the current application version information and the target application version information, so that the second terminal can adjust the version of the application program, it is possible to automatically detect the compatibility between the version of the first terminal device and the version of the application program of the second terminal device based on the comparison result between the current application version information of the second terminal device and the target application version information of the first terminal device, and further when it is detected that the version of the application program of the first terminal device is not compatible with the version of the application program of the second terminal device, the method comprises the following steps of realizing compatibility between the version of a first terminal device and the version of an application program of a second terminal device by adjusting the version of the application program; because the compatibility detection of the terminal and the application is not required to be carried out by full-time personnel, a large amount of labor and time can be saved, the problems of errors and mistakes caused by verification and compatibility processing in a manual mode can be avoided, and the accuracy of the compatibility detection is improved.
Fig. 2 is a flowchart illustrating how to determine target application version information corresponding to current device version information of a first terminal device according to an exemplary embodiment of the present application. On the basis of the foregoing embodiments, this embodiment takes as an example how to determine the target application version information corresponding to the current device version information of the first terminal device. As shown in fig. 2, the determining of the target application version information corresponding to the current device version information of the terminal device in step S102 may include the following steps S201 to S202:
in step S201, target version information associated with the current device version information of the first terminal device is determined from the version linkage rule.
In an embodiment, after determining the current application version information of the application program on the at least one second terminal device, the target version information associated with the current device version information of the first terminal device may be determined from the version linkage rule.
In an embodiment, the target version information associated with the current device version information of the first terminal device may be the version information closest to the current device version information, for example, may be the version number closest to the current version number of the first terminal device.
As described above, the version linkage rule includes a compatibility rule between the device version information of the first terminal device and the application version information of the application program on the second terminal device. For example, the version linkage rule corresponding to the version information of the first terminal device may be as shown in the following table one:
watch 1
Figure BDA0002130626170000091
As shown in table one, each row of data in the table may be a version linkage rule, and when it is determined that the current device version number of the first terminal device is "2060001", a target version number associated with "2060001", for example, the device version number "2060000" closest to "2060001", may be found from table one.
It should be noted that setting the target version information associated with the current device version information of the first terminal device to be the version information closest to the current device version information is only an example, and in practical application, a developer may select another way to determine the target version information associated with the current device version information of the first terminal device according to business needs, which is not limited in this embodiment.
In step S202, the application version information corresponding to the target version information is determined as the target application version information corresponding to the current device version information of the first terminal device.
In an embodiment, after determining the target version information associated with the current device version information of the first terminal device from the version linkage rule, the application version information corresponding to the target version information may be determined as the target application version information corresponding to the current device version information of the first terminal device.
Still taking the embodiment shown in table one above as an example, after determining that the target version number associated with the current device version number "2060001" of the terminal device is the device version number "2060000", the application version information corresponding to the device version number "2060000" may be determined as the target application version information corresponding to the current device version information of the first terminal device, that is, it is determined that the target application version information corresponding to the current device version number "2060001" of the first terminal device is: application version number "1050300 (corresponding to APP 1)", application version number "2050101 (corresponding to APP 2)".
As can be seen from the above description, in this embodiment, by determining the target version information associated with the current device version information of the first terminal device from the version linkage rule, and determining the application version information corresponding to the target version information as the target application version information corresponding to the current device version information of the first terminal device, it is possible to accurately determine the target application version information corresponding to the current device version information of the first terminal device, and further provide a basis for subsequently determining the version adjustment scheme of the application program according to the comparison result between the current application version information and the target application version information, so that it is possible to automatically detect the compatibility between the terminal device and the application program, save a lot of labor and time, and improve the accuracy of compatibility detection.
FIG. 3 is a flowchart illustrating how version linkage rules are obtained according to an exemplary embodiment of the present application; the present embodiment is exemplified by how to obtain the version linkage rule on the basis of the above embodiments. As shown in fig. 3, the method for managing an application program of the present embodiment may further include obtaining the version linkage rule in advance according to the following steps S301 to S303:
in step S301, a version detection request is sent to the cloud server.
The detection request may include version information of current configuration information of the first terminal device.
In an embodiment, in order to detect whether the Version of the configuration information locally stored by the first terminal device is the latest Version, the first terminal device may send a Version detection request to the cloud server, where the Version detection request may include Version information of the current configuration information of the first terminal device, such as Version 2, and a representation manner of the Version information is not limited in this embodiment.
In an embodiment, the first terminal device may send the version detection request to the cloud server when starting, that is, when receiving an instruction for starting the first terminal device; or, the first terminal device may further send the version detection request to the cloud server based on a preset time or a preset period, which is not limited in this embodiment.
In step S302, target configuration information is obtained based on a comparison result between the version information of the current configuration information and the version information of the configuration information stored in the cloud server by the cloud server.
In an embodiment, the target configuration information may include a version linkage rule corresponding to the version information of the first terminal device, for example, a linkage rule of version information of each APP of the first terminal device (i.e., a compatibility rule of the version information of the APP and the version information of the first terminal device).
It should be noted that, since there are new compatibility problems or new versions in practical applications, the rules in the configuration information need to be maintained (added or modified) continuously; further, in order to facilitate identification and maintenance of the versions of the configuration files, the versions of the configuration files may be distinguished by the version numbers of the configuration files (i.e., files for recording configuration information). For example, when configuration information maintenance is performed each time, 1 may be added to the version number of the corresponding configuration file, and whether the local configuration file is the latest configuration file may be identified only by the version number of the configuration file.
In an embodiment, after the first terminal device sends the version detection request to the cloud server, the cloud server may compare the version information of the current configuration information of the first terminal device with the version information of the configuration information locally stored in the cloud server:
if the comparison result is consistent, the current configuration information of the first terminal equipment can be determined as target configuration information; on the contrary, if the comparison result is inconsistent, the configuration information locally stored in the cloud server may be determined as the target configuration information, and the target configuration information is sent to the first terminal device.
It should be noted that, in addition to obtaining the target configuration information based on the comparison result between the version information of the current configuration information and the version information of the configuration information stored in the cloud server by the cloud server, a developer may also select another method in the prior art to obtain the target configuration information according to actual business needs, for example, the target configuration information may be obtained based on the comparison result between the version information of the current configuration information and the version information of the configuration information stored in the cloud server by the first terminal device, and the obtained target configuration information is also applicable to subsequent steps, which is not limited in this embodiment.
In step S303, the version linkage rule is determined based on the target configuration information.
In an embodiment, after target configuration information is obtained based on a comparison result of the cloud server between the version information of the current configuration information and the version information of the configuration information stored in the cloud server, the version linkage rule may be determined based on the target configuration information.
In an embodiment, the first terminal device may store the obtained target configuration information locally, and further may obtain the previously stored target configuration information locally when needed; or the first terminal device may directly obtain the target configuration information from the cloud server when necessary. Furthermore, the first terminal device may extract the version linkage rule from the target configuration information.
As can be seen from the above description, the present embodiment obtains the target configuration information by sending a version check request to the cloud server, and based on the comparison result between the version information of the current configuration information and the version information of the configuration information stored in the cloud server by the cloud server, can realize the rapid and accurate acquisition of the target configuration information, ensure that the acquired target configuration information is the configuration information of the latest version, and then the version linkage rule can be determined based on the target configuration information, so that the subsequent determination of the target application version information corresponding to the current equipment version information of the first terminal equipment based on the version linkage rule can be realized, and laying a foundation for determining the version adjustment scheme of the application program according to the comparison result of the current application version information and the target application version information.
FIG. 4 is a flow chart illustrating a method of managing an application in accordance with yet another exemplary embodiment of the present application; this embodiment may be used for a first terminal device (e.g., a smartphone, a tablet, a desktop computer, a cashier terminal device, a notebook, etc.). As shown in fig. 4, the method includes steps S401-S408:
in step S401, current application version information of the application on the at least one second terminal device is determined.
In step S402, target application version information corresponding to the current device version information of the first terminal device is determined according to a version linkage rule.
The version linkage rule comprises a compatibility rule between the equipment version information of the first terminal equipment and the application version information of the application program on the second terminal equipment.
For the explanation and description of the above steps S401 to S402, reference may be made to the above embodiments, which are not described herein again.
In step S403, it is determined whether the current application version information is lower than the target application version information: if yes, go to step S404; if not, go to step S405;
in step S404, it is determined that the upgrade process needs to be performed on the version of the application program.
In step S405, target device version information corresponding to the current application version information is determined.
In step S406, whether the current device version information is lower than the target device version information: if yes, go to step S407; if not, go to step S408;
in step S407, it is determined that the downgrading process needs to be performed on the version of the application program.
In step S408, it is determined that the demotion process for the version of the application is not required.
In an embodiment, if the current application version information is lower than the target application version information, it is determined that the version of the application program needs to be upgraded. It should be noted that, the manner of performing the upgrade processing on the version of the application program may refer to a processing scheme in the prior art, for example, the version information of the application program may be upgraded to the version information suggested in the configuration information, which is not limited in this embodiment. For example, the first terminal device may return an upgrade instruction and a version number that needs to be upgraded to the APP of the second terminal device, and after receiving the upgrade instruction and the version number, the APP may download itself.
In another embodiment, if the current application version information is higher than or equal to the target application version information, the target device version information corresponding to the current application version information may be further determined, that is, the target device version information corresponding to the current application version information of the application program (for example, the lowest device version compatible with APP, etc.) is determined based on the APP dimension.
Further, if the current device version information is lower than the target device version information, it may be determined that the version of the application program is too high, and thus it is determined that the version of the application program needs to be downgraded. It should be noted that, as for a manner of performing degradation processing on the version of the application program, reference may be made to a processing scheme in the prior art, for example, version information of the application program may be degraded to version information suggested in the configuration information, which is not limited in this embodiment.
In another embodiment, if the current device version information is higher than or equal to the target device version information, it may be determined that the current device version information of the first terminal device is compatible with the current program version information of the application program, and thus, the version of the application program does not need to be downgraded.
It can be understood that, since the first terminal device generally needs to be in communication connection with a plurality of second terminal devices, in order to avoid frequent changes of the version information of the first terminal device, the process of adjusting the version information of the application program in the above embodiment is centered on the first terminal device, that is, when it is detected that the current device version information of the first terminal device is incompatible with the current program version information of the application program, the purpose of compatibility is achieved by adjusting the version information of the application program.
As can be seen from the above description, in this embodiment, when the current application version information is lower than the target application version information, it is determined that the version of the application program needs to be upgraded, and when the current application version information is higher than or equal to the target application version information, it is determined that the target device version information corresponding to the current application version information is determined, and it is determined whether the current device version information is lower than the target device version information, and then, when the current device version information is lower than the target device version information, it is determined that the version of the application program needs to be downgraded, so that it is possible to automatically detect the compatibility between the version information of the first terminal device and the version information of the application program on the second terminal device based on the comparison result between the current application version information and the target application version information, and further implement the compatibility between the version information of the first terminal device and the version information of the application program on the second terminal device by adjusting the version information of the application program The compatibility can save a large amount of manpower and time, can avoid the problems of errors and errors leakage caused by adopting a manual mode to verify and process the compatibility, and improves the accuracy of the compatibility detection.
FIG. 5 is a flow chart illustrating a method of managing an application in accordance with another exemplary embodiment of the present application; the embodiment can be used for a first terminal device (for example, a smart phone, a tablet computer, a desktop computer, a cash register terminal device, a notebook computer and the like) which is in communication connection with at least one second terminal device installed with an application program. As shown in fig. 5, the method includes steps S501-S504:
in step S501, current application version information of the application on the at least one second terminal device is determined.
In step S502, target application version information corresponding to the current device version information of the first terminal device is determined according to a version linkage rule.
The version linkage rule comprises a compatibility rule between the equipment version information of the first terminal equipment and the application version information of the application program on the second terminal equipment;
in step S503, according to a comparison result between the current application version information and the target application version information, a version adjustment scheme of the application program is determined, so that the second terminal can adjust the version of the application program.
For the explanation and explanation of the steps S501 to S503, reference may be made to the above embodiments, which are not described herein again.
In step S504, in response to determining that the version information of the application program needs to be adjusted, a prompt message is sent to the application program, where the prompt message is used to prompt the application program to adjust the version of the application program.
In an embodiment, when it is determined that the version of the application program needs to be adjusted, a prompt message for prompting the application program to adjust the version of the application program may be further sent to the application program.
It should be noted that the content and the form of the above-mentioned prompt message may be set by a developer according to actual business needs, which is not limited in this embodiment.
As can be seen from the above description, in this embodiment, a prompt message is sent to the application program in response to determining that the version information of the application program needs to be adjusted, where the prompt message is used to prompt the adjustment of the version of the application program, so that the adjustment of the version of the application program can be timely prompted, and the compatibility between the version of the first terminal device and the version of the application program of the second device can be ensured.
FIG. 6 is a block diagram illustrating an apparatus for managing applications in accordance with an exemplary embodiment of the present application; the device is applied to first terminal equipment which is in communication connection with at least one second terminal equipment provided with an application program. As shown in fig. 6, the apparatus includes: a current application version determination module 110, a target application version determination module 120, and a version adjustment scheme determination module 130, wherein:
a current application version determining module 110, configured to determine current application version information of the application program on the at least one second terminal device;
a target application version determining module 120, configured to determine target application version information corresponding to the current device version information of the first terminal device according to a version linkage rule, where the version linkage rule includes a compatibility rule between the device version information of the first terminal device and the application version information of the application program on the second terminal device;
a version adjustment scheme determining module 130, configured to determine a version adjustment scheme of the application program according to a comparison result between the current application version information and the target application version information, so that the second terminal adjusts the version of the application program.
As can be seen from the above description, in this embodiment, by determining the current application version information of the application program on the at least one second terminal device, determining the target application version information corresponding to the current device version information of the first terminal device according to the version linkage rule, and further determining the version adjustment scheme of the application program according to the comparison result between the current application version information and the target application version information, so that the second terminal can adjust the version of the application program, it is possible to automatically detect the compatibility between the version of the first terminal device and the version of the application program of the second terminal device based on the comparison result between the current application version information of the second terminal device and the target application version information of the first terminal device, and further when it is detected that the version of the application program of the first terminal device is not compatible with the version of the application program of the second terminal device, the method comprises the following steps of realizing compatibility between the version of a first terminal device and the version of an application program of a second terminal device by adjusting the version of the application program; because the compatibility detection of the terminal and the application is not required to be carried out by full-time personnel, a large amount of labor and time can be saved, the problems of errors and mistakes caused by verification and compatibility processing in a manual mode can be avoided, and the accuracy of the compatibility detection is improved.
Fig. 7 is a block diagram of an apparatus for managing an application according to another exemplary embodiment of the present application, where the apparatus is applied to a first terminal device, and the first terminal device is in communication connection with at least one second terminal device installed with an application, where a current application version determining module 210, a target application version determining module 220, and a version adjustment scheme determining module 230 are the same as the current application version determining module 110, the target application version determining module 120, and the version adjustment scheme determining module 130 in the foregoing embodiment shown in fig. 6, and are not described herein again.
As shown in fig. 7, the target application version determination module 220 includes:
a target version information determining unit 221, configured to determine, from the version linkage rule, target version information associated with current device version information of the first terminal device;
a target application version determining unit 222, configured to determine the application version information corresponding to the target version information as the target application version information corresponding to the current device version information of the first terminal device.
In one embodiment, the apparatus further comprises a linkage rule determining module 240;
the linkage rule determination module 240 may include:
a detection request sending unit 241, configured to send a version detection request to a cloud server, where the detection request includes version information of current configuration information of a terminal device;
a configuration information obtaining unit 242, configured to obtain target configuration information based on a comparison result of the cloud server between the version information of the current configuration information and the version information of the configuration information stored in the cloud server;
an association rule determining unit 243, configured to determine the version association rule based on the target configuration information.
In an embodiment, the version adjustment scheme determining module 230 may include:
a version upgrade processing unit 231, configured to determine that upgrade processing needs to be performed on the version of the application program in response to that the current application version information is lower than the target application version information.
In an embodiment, the version adjustment scheme determining module 230 may further include a version downgrading processing unit 232;
the version demotion processing unit 232 may be configured to:
in response to that the current application version information is higher than the target application version information, determining target device version information corresponding to the current application version information;
comparing the current equipment version information with the target equipment version information;
and determining that the version of the application program needs to be degraded in response to the current device version information being lower than the target device version information.
In an embodiment, the apparatus may further include:
a prompt message sending module 250, configured to send a prompt message to the application program in response to determining that the version information of the application program needs to be adjusted, where the prompt message is used to prompt to adjust the version of the application program.
It should be noted that, all the above-mentioned optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described in detail herein.
The embodiment of the device for managing the application program can be applied to the network equipment. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. Taking a software implementation as an example, as a logical device, the device is formed by reading, by a processor of a device in which the device is located, corresponding computer program instructions in a non-volatile memory into a memory for running, where the computer program is used to execute the method for managing an application program provided in the embodiment shown in fig. 1 to 5. From a hardware level, as shown in fig. 8, which is a hardware structure diagram of the device for managing application programs according to the present invention, besides the processor, the network interface, the memory and the nonvolatile memory shown in fig. 8, the device may also include other hardware, such as a forwarding chip responsible for processing packets, and the like; the device may also be a distributed device in terms of hardware structure, and may include multiple interface cards to facilitate expansion of message processing at the hardware level. On the other hand, the present application also provides a computer-readable storage medium, which stores a computer program for executing the method for managing an application program provided by the embodiment shown in fig. 1 to 5.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (12)

1. A method for managing an application, applied to a first terminal device, the first terminal device being in communication connection with at least one second terminal device installed with the application, the first terminal including a point-of-sale (POS), the second terminal including a POS, the first terminal and the second terminal belonging to the same POS system, the method comprising:
determining current application version information of the application program on the at least one second terminal device;
determining target application version information corresponding to the current equipment version information of the first terminal equipment according to a version linkage rule, wherein the version linkage rule comprises a compatibility rule between the equipment version information of the first terminal equipment and the application version information of an application program on the second terminal equipment;
determining a version adjustment scheme of the application program according to a comparison result of the current application version information and the target application version information so that the second terminal can adjust the version of the application program, wherein in response to that the current application version information is higher than the target application version information, target device version information corresponding to the current application version information is determined; comparing the current equipment version information with the target equipment version information; and determining that the version of the application program needs to be degraded in response to the current device version information being lower than the target device version information.
2. The method of claim 1, wherein the determining target application version information corresponding to the current device version information of the first terminal device according to the version linkage rule comprises:
determining target version information associated with the current equipment version information of the first terminal equipment from the version linkage rule;
and determining the application version information corresponding to the target version information as the target application version information corresponding to the current equipment version information of the first terminal equipment.
3. The method according to claim 1, further comprising obtaining the version linkage rule in advance according to the following steps:
sending a version detection request to a cloud server, wherein the detection request comprises version information of current configuration information of terminal equipment;
acquiring target configuration information based on a comparison result of the cloud server on the version information of the current configuration information and the version information of the configuration information stored in the cloud server;
determining the version linkage rule based on the target configuration information.
4. The method of claim 1, wherein determining a version adjustment scheme for the application program according to the comparison of the current application version information and the target application version information comprises:
and determining that the version of the application program needs to be upgraded in response to the current application version information being lower than the target application version information.
5. The method of any of claims 1-4, further comprising:
and responding to the version information of the application program which is determined to need to be adjusted, and sending a prompt message to the application program, wherein the prompt message is used for prompting the adjustment of the version of the application program.
6. An apparatus for managing an application, applied to a first terminal device, the first terminal device being in communication connection with at least one second terminal device installed with the application, the first terminal including a point of sale (POS), the second terminal including a POS, the first terminal and the second terminal belonging to a same POS system, comprising:
a current application version determining module, configured to determine current application version information of the application program on the at least one second terminal device;
a target application version determining module, configured to determine target application version information corresponding to current device version information of the first terminal device according to a version linkage rule, where the version linkage rule includes a compatibility rule between the device version information of the first terminal device and application version information of an application program on the second terminal device;
a version adjustment scheme determining module, configured to determine, according to a comparison result between the current application version information and the target application version information, a version adjustment scheme of the application program, so that the second terminal adjusts the version of the application program, where the version adjustment scheme determining module determines, by using a version degradation processing unit included in the version adjustment scheme, target device version information corresponding to the current application version information in response to that the current application version information is higher than the target application version information; comparing the current equipment version information with the target equipment version information; and determining that the version of the application program needs to be degraded in response to the current device version information being lower than the target device version information.
7. The apparatus of claim 6, wherein the target application version determination module comprises:
the target version information determining unit is used for determining target version information related to the current equipment version information of the first terminal equipment from the version linkage rule;
and the target application version determining unit is used for determining the application version information corresponding to the target version information as the target application version information corresponding to the current equipment version information of the first terminal equipment.
8. The apparatus of claim 6, further comprising a linkage rule determination module;
the linkage rule determination module includes:
the system comprises a detection request sending unit, a cloud server and a server, wherein the detection request sending unit is used for sending a version detection request to the cloud server, and the detection request comprises version information of current configuration information of terminal equipment;
a configuration information obtaining unit, configured to obtain target configuration information based on a comparison result of the version information of the current configuration information and the version information of the configuration information stored in the cloud server by the cloud server;
and the linkage rule determining unit is used for determining the version linkage rule based on the target configuration information.
9. The apparatus of claim 6, the version adjustment scheme determination module, comprising:
and the version upgrading processing unit is used for responding to the situation that the current application version information is lower than the target application version information, and determining that the version of the application program needs to be upgraded.
10. The apparatus of any of claims 6-9, further comprising:
and the prompt message sending module is used for responding to the version information of the application program which is determined to need to be adjusted and sending a prompt message to the application program, wherein the prompt message is used for prompting the adjustment of the version of the application program.
11. An apparatus for managing applications, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for managing applications as claimed in any of claims 1-5 when executing the program.
12. A computer-readable storage medium, characterized in that the storage medium stores a computer program for executing the method of managing an application according to any one of the preceding claims 1 to 5.
CN201910636913.5A 2019-07-15 2019-07-15 Method, device and equipment for managing application program and storage medium Active CN110413312B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910636913.5A CN110413312B (en) 2019-07-15 2019-07-15 Method, device and equipment for managing application program and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910636913.5A CN110413312B (en) 2019-07-15 2019-07-15 Method, device and equipment for managing application program and storage medium

Publications (2)

Publication Number Publication Date
CN110413312A CN110413312A (en) 2019-11-05
CN110413312B true CN110413312B (en) 2021-09-24

Family

ID=68361432

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910636913.5A Active CN110413312B (en) 2019-07-15 2019-07-15 Method, device and equipment for managing application program and storage medium

Country Status (1)

Country Link
CN (1) CN110413312B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111414188A (en) * 2020-02-25 2020-07-14 北京小米移动软件有限公司 Application version matching method, application version matching device and storage medium
CN114390485A (en) * 2020-10-21 2022-04-22 华为技术有限公司 Data transmission method and electronic equipment
CN112732296B (en) * 2020-12-31 2023-10-24 青岛海尔科技有限公司 Software version updating method and device, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102841843A (en) * 2012-07-12 2012-12-26 中兴通讯股份有限公司 Method and device for judging compatibility
CN103092702A (en) * 2011-11-01 2013-05-08 宏碁股份有限公司 Data synchronization method and data synchronization system applying same
US20150347498A1 (en) * 2012-09-28 2015-12-03 Oracle International Corporation Transparently upgrading derived database objects

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092702A (en) * 2011-11-01 2013-05-08 宏碁股份有限公司 Data synchronization method and data synchronization system applying same
CN102841843A (en) * 2012-07-12 2012-12-26 中兴通讯股份有限公司 Method and device for judging compatibility
US20150347498A1 (en) * 2012-09-28 2015-12-03 Oracle International Corporation Transparently upgrading derived database objects

Also Published As

Publication number Publication date
CN110413312A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
CN110413312B (en) Method, device and equipment for managing application program and storage medium
US10417657B2 (en) Point management apparatus, system, and method
CN1584822B (en) Method for updating computer fixing ware program
US20130073427A1 (en) Store information presentation system and server device
EP2798605B1 (en) Method, device, and system for generating and analyzing digital readable media consumption data
US20170316159A1 (en) System And Method For Updating Customer Data
CN108681504A (en) Automated testing method, test server and computer readable storage medium
US20160170734A1 (en) Revision Safe Upgrade in a Hybrid Cloud Landscape
WO2019140829A1 (en) Electronic device, method for releasing application update version, and storage medium
CN102999349A (en) Software upgrading method
CN109146444B (en) Virtual account creating method and device and account information updating method and device
KR20170139107A (en) SERVICE PROCESSING METHOD, SERVICE PROCESSING DEVICE, AND STORAGE MEDIUM
CN117194306A (en) Equipment information display method and system
CN110389777A (en) A kind of edition upgrading verification method, system and the relevant apparatus of BIOS node
EP4044092A1 (en) Online shopping support device, and method for operating online shopping support device
CN108549722A (en) Multi-platform data publication method, system and medium
CN111797149B (en) Data acquisition method, device, equipment and computer readable storage medium
CN107070742B (en) Service server health state checking method and system
JP2015125512A (en) Management system, management method by management system, management device, control method for management device, and program
CN114186570A (en) Operation and maintenance method and device for integrated card reader equipment, computer equipment and storage medium
WO2020215542A1 (en) Information notification method and device, computer apparatus, and storage medium
CN107885839B (en) Method and device for reading information in Word file
US20150278921A1 (en) Method, apparatus, and medium
CN107094297B (en) Equipment identification method and device
CN106815001B (en) Method and device for detecting configuration file information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220310

Address after: 1202-29, 12th floor, No. 27, Zhongguancun Street, Haidian District, Beijing 100081

Patentee after: BEIJING PASSION TECHNOLOGY Co.,Ltd.

Patentee after: Beijing three fast online Technology Co., Ltd.

Address before: 100080 2106-030, 9 North Fourth Ring Road, Haidian District, Beijing.

Patentee before: BEIJING SANKUAI ONLINE TECHNOLOGY Co.,Ltd.