CN115529343A - Software upgrading method, device, equipment and storage medium - Google Patents

Software upgrading method, device, equipment and storage medium Download PDF

Info

Publication number
CN115529343A
CN115529343A CN202211334601.7A CN202211334601A CN115529343A CN 115529343 A CN115529343 A CN 115529343A CN 202211334601 A CN202211334601 A CN 202211334601A CN 115529343 A CN115529343 A CN 115529343A
Authority
CN
China
Prior art keywords
address
software
version number
segmented
upgrading
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
CN202211334601.7A
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.)
17win Network Technology Co ltd
Original Assignee
17win Network 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 17win Network Technology Co ltd filed Critical 17win Network Technology Co ltd
Priority to CN202211334601.7A priority Critical patent/CN115529343A/en
Publication of CN115529343A publication Critical patent/CN115529343A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a software upgrading method, a device, equipment and a storage medium, which relate to the technical field of computers and comprise the following steps: when current software is started, an IP address corresponding to a target domain name is obtained by analyzing an IP address record arranged in a DNS (domain name server); segmenting the IP address to obtain a segmented IP address, and determining the latest version number of the current software based on the segmented IP address; acquiring the current version number of the software through a target API (application program interface); comparing the latest version number with the current version number to obtain a corresponding comparison result; and determining whether the current software needs to be upgraded or not based on the comparison result, and upgrading the software based on the latest version number. The latest version number can be obtained by analyzing the IP address record arranged in the DNS server, and then the version is judged, so that the dependence on obtaining the latest version information through an API (application program interface) is avoided, and the problem of being shielded by a firewall is avoided.

Description

Software upgrading method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for software upgrading.
Background
At present, in the lifecycle of a piece of software or an App (Application Program), version updating is often required, generally, when the software or the App is started, an Application Program Interface (API) Interface connected to a network acquires the latest software or App information, compares the latest software or App information with a local version, and if the latest version returned by the API Interface is higher than the local version, updates the software or the App, but this way generally requires a service end to cooperate with the API Interface provided by the service end for returning the latest version information of the software or the App, and when the software or the App has a new version, the API Interface needs to be modified to return corresponding software information, and the API Interface needs to be accessed through the network, so that there is a possibility that the API Interface is easily shielded by various firewalls, especially firewalls inside enterprises.
Disclosure of Invention
In view of this, an object of the present invention is to provide a method, an apparatus, a device and a storage medium for upgrading software, which can avoid the problem of being shielded by a firewall by relying on obtaining the latest version information through an API interface. The specific scheme is as follows:
in a first aspect, the present application discloses a software upgrading method, including:
when the current software is started, the IP address corresponding to the target domain name is obtained by analyzing the IP address record arranged in the DNS;
segmenting the IP address to obtain a segmented IP address, and determining the latest version number of the current software based on the segmented IP address;
acquiring the current version number of the software through a target API (application program interface);
comparing the latest version number with the current version number to obtain a corresponding comparison result;
and determining whether the software needs to be upgraded currently based on the comparison result, and upgrading the software based on the latest version number.
Optionally, the segmenting the IP address to obtain a segmented IP address includes:
carrying out segmentation processing on the IP address to obtain a segmented IP address comprising a first segment of IP address, a second segment of IP address, a third segment of IP address and a fourth segment of IP address;
correspondingly, the determining the latest version number of the current software based on the segmented IP address includes:
and generating the latest version number of the current software based on the third section of IP address and the fourth section of IP address in the segmented address.
Optionally, after the segmenting the IP address to obtain the segmented IP address, the method further includes:
determining whether the current software is a forced upgrading type or not based on a target bit of a target segmented IP address in the segmented IP addresses;
if the target bit of the target segmented IP address indicates that the current software is in a forced upgrading type, triggering a system to automatically execute corresponding upgrading operation;
and if the target bit of the target segmented IP address indicates that the software is in a non-mandatory upgrading type, returning prompt information whether to carry out version upgrading to the client.
Optionally, the determining, based on a target bit of a target segment IP address in the segmented IP address, whether the current software is of a forced upgrade type includes:
and determining whether the software is a forced upgrade type at present based on the first bit of the first section of IP address in the segmented IP address.
Optionally, after the segmenting the IP address to obtain the segmented IP address, the method further includes:
and calculating the number of days of the current software release day based on the segmented IP address.
Optionally, the calculating the number of days of release day of the current software based on the segmented IP address includes:
determining the length of the first segment of the segmented IP address;
determining a calculation rule for the number of days of release day based on the length of the first segment of the IP address;
and under the calculation rule, calculating the number of days of the current software release day based on the first section of IP address and the second section of IP address.
Optionally, the upgrading the software based on the latest version number includes:
splicing a download address corresponding to the latest version number according to the latest version number;
downloading a target installation package corresponding to the latest version number based on the downloading address;
and upgrading the current software by using the target installation package.
In a second aspect, the present application discloses a software upgrading apparatus, comprising:
the IP address acquisition module is used for acquiring an IP address corresponding to the target domain name by analyzing an IP address record arranged in the DNS server when the current software is started;
the IP address segmentation module is used for carrying out segmentation processing on the IP address to obtain a segmented IP address;
a latest version number determination module for determining the latest version number of the current software based on the segmented IP address;
the current version number determining module is used for acquiring the current version number of the software through a target API (application program interface);
the version number comparison module is used for comparing the latest version number with the current version number to obtain a corresponding comparison result;
and the upgrading module is used for determining whether the current software needs to be upgraded or not based on the comparison result and upgrading the software based on the latest version number.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the software upgrading method disclosed in the foregoing.
In a fourth aspect, the present application discloses a computer readable storage medium for storing a computer program; wherein the computer program realizes the steps of the software upgrading method disclosed in the foregoing when being executed by a processor.
Therefore, the present application provides a software upgrading method, including: when the current software is started, the IP address corresponding to the target domain name is obtained by analyzing the IP address record arranged in the DNS; segmenting the IP address to obtain a segmented IP address, and determining the latest version number of the current software based on the segmented IP address; acquiring the current version number of the software through a target API (application program interface); comparing the latest version number with the current version number to obtain a corresponding comparison result; and determining whether the software needs to be upgraded currently based on the comparison result, and upgrading the software based on the latest version number. Therefore, the IP address corresponding to the target domain name is obtained by analyzing the IP address record arranged in the DNS server, then the latest version number of the current software can be determined based on the IP address, and then the latest version number is compared with the current version number to determine whether version upgrading is needed, namely, the latest version number can be obtained by analyzing the IP address record arranged in the DNS server, and then the version is judged, so that the dependence on obtaining the latest version information through an API (application program interface) interface is avoided, and the problem of being shielded by a firewall is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a software upgrade method disclosed herein;
FIG. 2 is a schematic illustration of an IP address segmentation disclosed herein;
FIG. 3 is a schematic diagram of a software upgrading apparatus according to the present disclosure;
fig. 4 is a block diagram of an electronic device disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
Currently, in the lifecycle of a piece of software or App, version updating is often required, generally when the software or App is started, an API interface connected to a network acquires the latest software or App information, compares the latest software or App information with a local version, and if the latest version returned by the interface is higher than the local version, updates the software or App, but this approach generally requires service end cooperation, and a corresponding API interface is provided by the service end for returning the latest version information of the software or App. Therefore, the software upgrading scheme is provided, dependence on obtaining the latest version information through the API can be avoided, and the problem of being shielded by a firewall is avoided.
The embodiment of the invention discloses a software upgrading method, which is shown in figure 1 and comprises the following steps:
step S11: when the current software is started, the IP address corresponding to the target domain name is obtained by analyzing the IP address record arranged in the DNS server.
In this embodiment, when the current software is started, the IP address corresponding to the target domain name is obtained by analyzing the IP address record set in the DNS server. Com, it is understood that the target domain name is not particularly required, and any domain name may be used, e.g., abc. And through a DNS resolution service provider, an IP address record is added in DNS (Domain Name System) Domain Name resolution, for example, the second-level Domain Name ver.abc.com is pointed to an IPv4 address, for example, the IPv4 address may be 2.13.104.100, so that when software or APP has a new version, developers need only modify the IPv 4.
It should be noted that the IP address record set in the DNS server represents information such as the version of software or APP, and therefore, it is not necessary to additionally set a website providing server interface (i.e., API interface), and it is only necessary to determine the latest version number based on the IP address corresponding to the target domain name obtained by analyzing the IP address record, thereby performing functions such as determining the version. For example, the version of the software or App is represented by an a (Address) record of the DNS server, where the a (Address) record is an IP Address record used to specify the host name or the domain name, that is, the a record is the IP Address record corresponding to the host name or the domain name, and then the software or App can obtain the IP Address corresponding to the host name or the domain name by analyzing the a record set in the DNS server. Moreover, different programming languages correspond to different manners of acquiring an IP address according to a domain name, for example, taking Android (Java) as an example, when current software or APP is started, an IP address corresponding to a target domain name in a record is acquired by analyzing a, and the IP address corresponding to the domain name can be acquired through the following codes:
InetAddress byName=InetAddress.getByName("ver.abc.com");
String ipString=byName.getHostAddress();
in this embodiment, the IP string that may be obtained is "2.13.104.100", that is, the IP address corresponding to the obtaining target domain name ver.abc.com is 2.13.104.100.
Step S12: and segmenting the IP address to obtain a segmented IP address, and determining the latest version number of the current software based on the segmented IP address.
In this embodiment, after an IP address corresponding to a target domain name is obtained, the IP address is segmented to obtain a segmented IP address, where each subsection of the segmented IP address may be used for different purposes, and then a latest version number of the current software is determined based on the segmented IP address, and specifically, the IP address is segmented to obtain a segmented IP address including a first segment of IP address, a second segment of IP address, a third segment of IP address, and a fourth segment of IP address; and generating the latest version number of the current software based on the third section of IP address and the fourth section of IP address in the segmented address. For example, as shown in fig. 2, the obtained IP address may be divided into four segments, each segment is divided by a point (·), each segment may be 0 to 255, the third segment and the fourth segment are combined to form the latest version number, and the corresponding calculation formula is: the third segment value × 256+ the fourth segment value, for example, when the IP address is 12 × 12.34, the latest version number is 3106, that is, 12 × 256+34.
In this embodiment, after the IP address is segmented to obtain the segmented IP address, the method may further include: determining whether the current software is a forced upgrading type or not based on a target bit of a target segmented IP address in the segmented IP addresses; if the target bit of the target segmented IP address indicates that the current software is of a forced upgrading type, triggering a system to automatically execute corresponding upgrading operation; and if the target bit of the target segmented IP address indicates that the software is in a non-mandatory upgrading type, returning prompt information whether to carry out version upgrading to the client. Specifically, it is determined whether the current software is a forced upgrade type based on the first bit of the first segment IP address in the segmented IP address, for example, the first bit of the first segment may be used to indicate whether the version is a forced upgrade version, if the first bit of the first segment is 1, the version is not a forced upgrade version, the user may be prompted whether the software needs to be upgraded, and finally, the user determines that, if the first bit of the first segment is 2, the software indicates that the version is a forced upgrade version, and the system automatically executes an upgrade operation based on the latest version number.
In this embodiment, after the IP address is segmented to obtain the segmented IP address, the method may further include: calculating the number of days of a release day of the current software based on the segmented IP address, and specifically determining the length of the first segment of the IP address in the segmented IP address; determining a calculation rule for the number of days of release day based on the length of the first segment of the IP address; and under the calculation rule, calculating the number of days of the current software release day based on the first section of IP address and the second section of IP address. For example, the first segment value (counted from left to right) is divided into the first segment value, and the second segment value together represents the number of days of the release day of the version, which represents the nth day from 2020.1.1, so that the release day of the version can be calculated and presented to the user, for example, N is 0, which represents 2020.1.1; n is 1, representing 2020.1.2, and so on the corresponding date is calculated and the associated calculation rule is as follows:
if the first segment length is 1, the number of days of release day = a second segment value, for example, if the IP address is 1.12.
If the length of the first segment is 2, the number of days of release day is 4 × 256+12 when the IP address is 14.12 × for example, the number of days of release day is 256+12;
if the length of the first segment is 3, the number of days of issue day is 24 × 256+12 when the number of days of issue day = second third bit 256+ second segment value of the first segment value, for example, the IP address is 124.12.
Step S13: and acquiring the current version number of the software through a target API interface.
In this embodiment, the current version number of the software is obtained through the target API interface, that is, when the software or APP is started, the version number of the current software may be obtained through the API interface of the relevant platform, for example, the version number of the current android APP is obtained, and the version number of the android APP is of an Int type, which is increased each time the software or APP is constructed and released, and the relevant obtaining code for obtaining the current version number of the android APP is as follows:
PackageManager pm=context.getPackageManager();
PackageInfo pi=pm.getPackageInfo(context.getPackageName(),0);
Integer versionCode=Integer.parse(pi.getVersionCode);
step S14: and comparing the latest version number with the current version number to obtain a corresponding comparison result.
In this embodiment, the latest version number of the software is determined based on the segmented IP address, and after the current version number of the software is obtained through the target API interface, the latest version number is compared with the current version number to obtain a corresponding comparison result.
Step S15: and determining whether the software needs to be upgraded currently based on the comparison result, and upgrading the software based on the latest version number.
In this embodiment, when the latest version number is compared with the current version number, if the comparison result indicates that the latest version number is greater than the current version number, the current version number of the current software Yuxing is indicated to be older, and the version of the current software is upgraded based on the latest version number. And if the comparison result shows that the latest version number is not greater than the current version number, the current version of the current software is the latest version and does not need to be upgraded temporarily.
In this embodiment, when the version of the current software needs to be upgraded, the software can be upgraded based on the latest version number, and specifically, the download addresses corresponding to the latest version number are spliced according to the latest version number; downloading a target installation package corresponding to the latest version number based on the download address; and upgrading the current software by using the target installation package. That is to say, the latest VERSION of software or APP download address is spliced according to the acquired latest VERSION number, for example, the download address is http:// xxx.yyy.zzz/down-VERSION.
It can be seen that, in the embodiment of the present application, an IP address corresponding to a target domain name is obtained by analyzing an IP address record set in a DNS server, then a latest version number of current software can be determined based on the IP address, and then the latest version number is compared with a current version number to determine whether version upgrading is required, that is, the latest version number can be obtained by analyzing the IP address record set in the DNS server, and then the version is determined, so that information of the latest version is obtained through an API interface, and a problem of being shielded by a firewall is avoided.
Correspondingly, an embodiment of the present application further discloses a software upgrading apparatus, as shown in fig. 3, the apparatus includes:
the IP address obtaining module 11 is configured to, when the current software is started, obtain an IP address corresponding to the target domain name by analyzing an IP address record set in the DNS server;
an IP address segmentation module 12, which performs segmentation processing on the IP address to obtain a segmented IP address;
a latest version number determination module 13, configured to determine a latest version number of the current software based on the segmented IP address;
a current version number determining module 14, configured to obtain a current version number of the software through a target API interface;
a version number comparison module 15, configured to compare the latest version number with the current version number to obtain a corresponding comparison result;
and the upgrading module 16 is used for determining whether the software needs to be upgraded currently based on the comparison result and upgrading the software based on the latest version number.
Therefore, in the embodiment of the application, the IP address corresponding to the target domain name is obtained by analyzing the IP address record arranged in the DNS server, then the latest version number of the current software can be determined based on the IP address, and then the latest version number is compared with the current version number to determine whether version upgrading is needed, that is, the latest version number can be obtained by analyzing the IP address record arranged in the DNS server, and then the version is judged, so that the dependence on obtaining the latest version information through an API (application program interface) interface is avoided, and the problem of being shielded by a firewall is avoided.
In some specific embodiments, the IP address segmentation module 12 may specifically include:
the IP address segmentation unit is used for carrying out segmentation processing on the IP address to obtain a segmented IP address comprising a first segment of IP address, a second segment of IP address, a third segment of IP address and a fourth segment of IP address;
in some specific embodiments, the latest version number determining module 13 may specifically include:
a latest version number determining unit, configured to generate a latest version number of the current software based on the third segment IP address and the fourth segment IP address in the segmented address.
In some specific embodiments, the software upgrading apparatus may further include:
the type determining module is used for determining whether the current software is a forced upgrading type or not based on the target bit of the target segmented IP address in the segmented IP address;
the automatic upgrading module is used for triggering a system to automatically execute corresponding upgrading operation if the target bit of the target segmented IP address indicates that the current software is in a forced upgrading type;
and the prompt information returning module is used for returning the prompt information whether to carry out version upgrading to the client if the target bit of the target segmented IP address indicates that the current software is in the non-forced upgrading type.
In some specific embodiments, the type determining module may specifically include:
and the type determining unit is used for determining whether the current software is a forced upgrading type or not based on the first bit of the first section of IP address in the segmented IP address.
In some specific embodiments, after the segmenting the IP address to obtain the segmented IP address, the method may further include:
and the release day calculation module is used for calculating the number of days of the release day of the current software based on the segmented IP address.
In some specific embodiments, the release day calculation module may specifically include:
an IP address length determining unit, configured to determine a length of the first segment of IP address in the segmented IP address;
a calculation rule determining unit configured to determine a calculation rule of the number of days of release day based on the length of the first segment of IP address;
and the release day calculation unit is used for calculating the number of days of the release day of the current software based on the first section of IP address and the second section of IP address under the calculation rule.
In some specific embodiments, the upgrading module 16 may specifically include:
the download address splicing unit is used for splicing a download address corresponding to the latest version number according to the latest version number;
the installation package downloading unit is used for downloading a target installation package corresponding to the latest version number based on the downloading address;
and the software upgrading unit is used for upgrading the current software by utilizing the target installation package.
Further, the embodiment of the application also provides electronic equipment. FIG. 4 is a block diagram illustrating an electronic device 20 according to an exemplary embodiment, and the contents of the diagram should not be construed as limiting the scope of use of the present application in any way.
Fig. 4 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present disclosure. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. Wherein, the memory 22 is used for storing a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the software upgrading method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be specifically an electronic computer.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and a communication protocol followed by the communication interface is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
In addition, the storage 22 is used as a carrier for resource storage, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the resources stored thereon may include an operating system 221, a computer program 222, etc., and the storage manner may be a transient storage or a permanent storage.
The operating system 221 is used for managing and controlling each hardware device on the electronic device 20 and the computer program 222, and may be Windows Server, netware, unix, linux, or the like. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the software upgrading method disclosed in any of the foregoing embodiments and executed by the electronic device 20.
Further, an embodiment of the present application further discloses a computer-readable storage medium, in which a computer program is stored, and when the computer program is loaded and executed by a processor, the steps of the software upgrading method disclosed in any of the foregoing embodiments are implemented.
In the present specification, the embodiments are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same or similar parts between the embodiments are referred to each other. The device disclosed in the embodiment corresponds to the method disclosed in the embodiment, so that the description is simple, and the relevant points can be referred to the description of the method part.
Finally, it should also be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The above detailed description is provided for a software upgrading method, apparatus, device and storage medium provided by the present invention, and the present document applies specific examples to explain the principle and the implementation of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method of upgrading software, comprising:
when the current software is started, the IP address corresponding to the target domain name is obtained by analyzing the IP address record arranged in the DNS;
segmenting the IP address to obtain a segmented IP address, and determining the latest version number of the current software based on the segmented IP address;
acquiring the current version number of the software through a target API (application program interface);
comparing the latest version number with the current version number to obtain a corresponding comparison result;
and determining whether the software needs to be upgraded currently based on the comparison result, and upgrading the software based on the latest version number.
2. The software upgrading method according to claim 1, wherein the segmenting the IP address to obtain a segmented IP address comprises:
carrying out segmentation processing on the IP address to obtain a segmented IP address comprising a first segment of IP address, a second segment of IP address, a third segment of IP address and a fourth segment of IP address;
correspondingly, the determining the latest version number of the current software based on the segmented IP address includes:
and generating the latest version number of the current software based on the third section of IP address and the fourth section of IP address in the segmented address.
3. The software upgrading method according to claim 2, wherein after the segmenting the IP address to obtain the segmented IP address, further comprising:
determining whether the current software is in a forced upgrading type or not based on a target bit of a target segmented IP address in the segmented IP addresses;
if the target bit of the target segmented IP address indicates that the current software is of a forced upgrading type, triggering a system to automatically execute corresponding upgrading operation;
and if the target bit of the target segmented IP address indicates that the software is in a non-mandatory upgrading type, returning prompt information whether to carry out version upgrading to the client.
4. The method for upgrading software according to claim 3, wherein the determining whether the software is currently of a forced upgrade type based on the target bit of the target fragmented IP address in the fragmented IP address comprises:
and determining whether the software is a forced upgrading type currently or not based on the first bit of the first section of the IP address in the segmented IP address.
5. The software upgrading method according to claim 2, wherein after the segmenting the IP address to obtain the segmented IP address, further comprising:
and calculating the number of days of the release day of the current software based on the segmented IP address.
6. The software upgrading method according to claim 5, wherein the calculating the number of days of release of the current software based on the segmented IP address comprises:
determining the length of the first segment of the segmented IP address;
determining a calculation rule of the number of days of release day based on the length of the first segment of IP address;
and under the calculation rule, calculating the number of days of the current software release day based on the first section of IP address and the second section of IP address.
7. The software upgrading method according to any one of claims 1 to 6, wherein the upgrading of software based on the latest version number comprises:
splicing a download address corresponding to the latest version number according to the latest version number;
downloading a target installation package corresponding to the latest version number based on the download address;
and upgrading the current software by using the target installation package.
8. A software upgrading apparatus, comprising:
the IP address acquisition module is used for acquiring an IP address corresponding to the target domain name by analyzing an IP address record arranged in the DNS server when the current software is started;
the IP address segmentation module is used for carrying out segmentation processing on the IP address to obtain a segmented IP address;
a latest version number determination module for determining the latest version number of the current software based on the segmented IP address;
the current version number determining module is used for acquiring the current version number of the software through a target API (application program interface);
the version number comparison module is used for comparing the latest version number with the current version number to obtain a corresponding comparison result;
and the upgrading module is used for determining whether the current software needs to be upgraded or not based on the comparison result and upgrading the software based on the latest version number.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to carry out the steps of the software upgrade method according to any one of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program; wherein the computer program realizes the steps of the software upgrade method as claimed in any one of claims 1 to 7 when executed by a processor.
CN202211334601.7A 2022-10-28 2022-10-28 Software upgrading method, device, equipment and storage medium Pending CN115529343A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211334601.7A CN115529343A (en) 2022-10-28 2022-10-28 Software upgrading method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211334601.7A CN115529343A (en) 2022-10-28 2022-10-28 Software upgrading method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115529343A true CN115529343A (en) 2022-12-27

Family

ID=84703350

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211334601.7A Pending CN115529343A (en) 2022-10-28 2022-10-28 Software upgrading method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115529343A (en)

Similar Documents

Publication Publication Date Title
US11461111B2 (en) Method for running applets, and electronic device
US10419289B2 (en) System and method for configuration management service
US7062765B1 (en) System and method for updating information via a network
CN105786538B (en) software upgrading method and device based on android system
US20150378714A1 (en) Providing Context-Specific Software Updates to Client Applications
CN106406961A (en) Method and device for loading and providing application based on browser
US9135263B2 (en) Method and system that routes requests for electronic files
US20090210868A1 (en) Software Update Techniques
US20090276770A1 (en) Systems, methods and computer program products for automating packaging and provisioning of j2ee web modules to eclipse-based rich clients
US20090210871A1 (en) System and method for software application migration
CN112764792B (en) Method and device for upgrading associated server version application and electronic equipment
CN113760306A (en) Method and device for installing software, electronic equipment and storage medium
CN115421764A (en) Method, device, equipment and storage medium for identifying module to be upgraded
CN112835568A (en) Project construction method and device
US10171627B2 (en) Download of a package of code
CN115529343A (en) Software upgrading method, device, equipment and storage medium
CN116755788A (en) On-line rule modification method, device, equipment and storage medium
CN116069366A (en) Client application program updating method and device, storage medium and electronic equipment
CN110851194A (en) Method and device for acquiring code for realizing new interface
CN112835609B (en) Method and device for modifying download address of dependent packet
CN111414175A (en) Network installation method, system and device of operating system and readable storage medium
CN113791795A (en) Plug-in installation method, device, system, equipment and storage medium
CN111026563B (en) Interface calling method and device, storage medium and electronic equipment
CN113535270B (en) Software starting method and device
CN114115916A (en) Software product installation method, device, equipment and 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