CN111314446B - Resource updating method, device, server and storage medium - Google Patents

Resource updating method, device, server and storage medium Download PDF

Info

Publication number
CN111314446B
CN111314446B CN202010072794.8A CN202010072794A CN111314446B CN 111314446 B CN111314446 B CN 111314446B CN 202010072794 A CN202010072794 A CN 202010072794A CN 111314446 B CN111314446 B CN 111314446B
Authority
CN
China
Prior art keywords
offline
resource
client
offline resource
version number
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
CN202010072794.8A
Other languages
Chinese (zh)
Other versions
CN111314446A (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 Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202010072794.8A priority Critical patent/CN111314446B/en
Publication of CN111314446A publication Critical patent/CN111314446A/en
Application granted granted Critical
Publication of CN111314446B publication Critical patent/CN111314446B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

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)
  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure relates to a resource updating method, device, server and storage medium, the method comprising: receiving a query request sent by a client; and when at least one candidate offline resource exists, sending a download link of a target offline resource in the at least one candidate offline resource to the client, and updating a parameter value of a downloaded time parameter of the version number of the target offline resource. When a plurality of offline resources with different version numbers appear along with the continuous updating of the offline resources, whether the offline resources on the client side need to be updated and whether the offline resources on the client side can be updated are determined, and when the offline resources on the client side need to be updated and the offline resources on the client side can be updated, the corresponding offline resources are issued to update the offline resources on the client side.

Description

Resource updating method, device, server and storage medium
Technical Field
The present disclosure relates to the field of operations and maintenance, and in particular, to a resource updating method, apparatus, server, and storage medium.
Background
Techniques for directly accessing offline resources on a client are used to increase the speed of access on the client to pages and related resources, such as H5(HTML 5) pages, and to conserve network resources. In the technology of directly accessing the offline resources, the page and the related resources are packaged into the offline resources in advance, and after the client downloads the offline resources, the page and the related resources are directly accessed on the client, so that the client does not need to send a request to a network server to access the page and the related resources.
With the continuous update of the offline resources, a plurality of offline resources of different versions appear, that is, a plurality of offline resources with different version numbers appear, for each of a large number of clients, it is necessary to determine whether the offline resources on the client need to be updated and whether the offline resources on the client can be updated, and when it is determined that the offline resources on the client need to be updated and it is determined that the offline resources on the client can be updated, the offline resources on the client are updated.
How to determine whether the offline resources on the client need to be updated and whether the offline resources on the client can be updated under the condition that a plurality of offline resources with different version numbers appear along with the continuous updating of the offline resources becomes a problem to be solved urgently.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a resource updating method, apparatus, server, and storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a resource updating method, including:
receiving a query request sent by a client, wherein the query request comprises: information for determining candidate offline resources;
when at least one candidate offline resource exists in all the issued offline resources, acquiring a target offline resource in the at least one candidate offline resource, wherein the candidate offline resource is determined based on information for determining the candidate offline resource and a gray rule information set corresponding to the version number of each offline resource in all the issued offline resources;
and sending the downloading link of the target offline resource to the client, and updating the parameter value of the downloaded time parameter of the version number of the target offline resource.
In some embodiments, the information for determining candidate offline resources includes: the version number of the currently running offline resource on the client, at least one parameter of the client, and the candidate offline resource satisfy all the following conditions: for each parameter of the client, the parameter is matched with the gray scale rule information corresponding to the parameter, the parameter value of the download time upper limit parameter of the version number of the candidate offline resource is greater than the parameter value of the downloaded time parameter of the version number of the candidate offline resource, and the version number of the candidate offline resource is greater than the version number of the currently running offline resource on the client, wherein the gray scale rule information corresponding to the parameter is the gray scale rule information corresponding to the parameter in the gray scale rule information set corresponding to the version number of the candidate offline resource.
In some embodiments, the method further comprises:
acquiring access condition information of each target client, wherein the currently running offline resource on the target client is the latest published offline resource in all the published offline resources, and the access condition information of the target client comprises one or more of the following items: the method comprises the steps of obtaining collapse times of offline access pages within a preset statistical time period, collapse times of a target client within the preset statistical time period, click times of preset page elements in the offline access pages within the preset statistical time period, and the number of complaint information of users of the target client aiming at newly issued offline resources within the preset statistical time period;
based on all the obtained access situation information, calculating evaluation information of the newly released offline resources, wherein the evaluation information comprises one or more of the following items: the method comprises the following steps of obtaining a collapse rate of an offline access page, a collapse rate of a target client, a click rate of preset page elements in the offline access page, and the total number of complaint information aiming at a newly issued offline resource, wherein for each evaluation information item in the evaluation information, the evaluation information item is obtained based on an access condition information item corresponding to the evaluation information item in access condition information of each target client; updating a parameter value of a download time upper limit parameter of a version number of the latest released offline resource to a new parameter value when the latest released offline resource meets an update condition, wherein evaluation information items in the evaluation information correspond to update condition items in the update condition one to one, and the satisfaction of the latest released offline resource to the update condition is determined based on that, for each evaluation information item in the evaluation information, the evaluation information item satisfies its corresponding update condition item.
In some embodiments, the update condition includes one or more of the following update condition items: the collapse rate of the offline access page is smaller than a page collapse rate threshold, the collapse rate of the target client is smaller than a client collapse rate threshold, the click rate of preset page elements in the offline access page is larger than a click rate threshold, and the total number of the complaint information aiming at the newly issued offline resource is smaller than a number threshold.
In some embodiments, the method further comprises:
when the latest published offline resource meets the offline condition, identifying the latest published offline resource as an offline state, deleting the version number of the latest published offline resource and deleting the download link of the latest published offline resource, wherein the evaluation information items in the evaluation information correspond to the offline condition items in the offline condition one by one, the latest published offline resource meeting the offline condition is determined based on that each evaluation information item in the evaluation information meets the corresponding offline condition item, and the offline condition comprises one or more of the following offline condition items: the collapse rate of the offline access page is greater than a page collapse rate threshold, the collapse rate of the target client is greater than a client collapse rate threshold, the click rate of preset page elements in the offline access page is less than a click rate threshold, and the total number of the complaint information aiming at the newly issued offline resource is greater than a number threshold.
In some embodiments, the method further comprises:
and when the currently running offline resource on the client is the latest released offline resource and the latest released offline resource is identified to be in an offline state, sending an offline instruction to the client to delete the latest released offline resource on the client.
In some embodiments, the method further comprises:
receiving a version number of an already issued offline resource and a download link of the offline resource sent by a management server, wherein the offline resource comprises: the method comprises the steps of obtaining an offline access page, a page related to the offline access page and a network resource related to the offline access page, wherein the offline resource is sent to a content distribution network by a management server in advance so as to store the offline resource on the content distribution network and generate a download link of the offline resource, and the page related to the offline access page and the network resource related to the offline access page are obtained by simulating access of the offline access page deployed on a network server through the management server.
According to a second aspect of the embodiments of the present disclosure, there is provided a resource updating apparatus, including:
a receiving module configured to receive a query request sent by a client, where the query request includes: information for determining candidate offline resources;
the acquisition module is configured to acquire a target offline resource in at least one candidate offline resource when at least one candidate offline resource exists in all the issued offline resources, wherein the candidate offline resource is determined based on information for determining the candidate offline resource and a gray rule information set corresponding to the version number of each offline resource in all the issued offline resources;
and the issuing module is configured to send the download link of the target offline resource to the client and update the parameter value of the downloaded time parameter of the version number of the target offline resource.
In some embodiments, the information for determining candidate offline resources includes: the version number of the currently running offline resource on the client, at least one parameter of the client, and the candidate offline resource satisfy all the following conditions: for each parameter of the client, the parameter is matched with the gray scale rule information corresponding to the parameter, the parameter value of the download time upper limit parameter of the version number of the candidate offline resource is greater than the parameter value of the downloaded time parameter of the version number of the candidate offline resource, and the version number of the candidate offline resource is greater than the version number of the currently running offline resource on the client, wherein the gray scale rule information corresponding to the parameter is the gray scale rule information corresponding to the parameter in the gray scale rule information set corresponding to the version number of the candidate offline resource.
In some embodiments, the resource updating apparatus further comprises: an issue control module configured to: acquiring access condition information of each target client, wherein the currently running offline resource on the target client is the latest published offline resource in all the published offline resources, and the access condition information of the target client comprises one or more of the following items: the method comprises the steps of obtaining collapse times of offline access pages within a preset statistical time period, collapse times of a target client within the preset statistical time period, click times of preset page elements in the offline access pages within the preset statistical time period, and the number of complaint information of users of the target client aiming at newly issued offline resources within the preset statistical time period; based on all the obtained access situation information, calculating evaluation information of the newly released offline resources, wherein the evaluation information comprises one or more of the following items: the method comprises the following steps of obtaining a collapse rate of an offline access page, a collapse rate of a target client, a click rate of preset page elements in the offline access page, and the total number of complaint information aiming at a newly issued offline resource, wherein for each evaluation information item in the evaluation information, the evaluation information item is obtained based on an access condition information item corresponding to the evaluation information item in access condition information of each target client; updating a parameter value of a download time upper limit parameter of a version number of the latest released offline resource to a new parameter value when the latest released offline resource meets an update condition, wherein evaluation information items in the evaluation information correspond to update condition items in the update condition one to one, and the satisfaction of the latest released offline resource to the update condition is determined based on that, for each evaluation information item in the evaluation information, the evaluation information item satisfies its corresponding update condition item.
In some embodiments, the update condition includes one or more of the following update condition items: the collapse rate of the offline access page is smaller than a page collapse rate threshold, the collapse rate of the target client is smaller than a client collapse rate threshold, the click rate of preset page elements in the offline access page is larger than a click rate threshold, and the total number of the complaint information aiming at the newly issued offline resource is smaller than a number threshold.
In some embodiments, the resource updating apparatus further comprises:
a downline module configured to: when the latest published offline resource meets the offline condition, identifying the latest published offline resource as an offline state, deleting the version number of the latest published offline resource and deleting the download link of the latest published offline resource, wherein the evaluation information items in the evaluation information correspond to the offline condition items in the offline condition one by one, the latest published offline resource meeting the offline condition is determined based on that each evaluation information item in the evaluation information meets the corresponding offline condition item, and the offline condition comprises one or more of the following offline condition items: the collapse rate of the offline access page is greater than a page collapse rate threshold, the collapse rate of the target client is greater than a client collapse rate threshold, the click rate of preset page elements in the offline access page is less than a click rate threshold, and the total number of the complaint information aiming at the newly issued offline resource is greater than a number threshold.
In some embodiments, the resource updating apparatus further comprises:
the instruction sending module is configured to send a offline instruction to the client to delete the latest issued offline resource on the client when the currently running offline resource on the client is the latest issued offline resource and the latest issued offline resource is identified as an offline state.
In some embodiments, the resource updating apparatus further comprises:
the preprocessing module is configured to receive a version number of an already issued offline resource and a download link of the offline resource, which are sent by a management server, and the offline resource includes: the method comprises the steps of obtaining an offline access page, a page related to the offline access page and a network resource related to the offline access page, wherein the offline resource is sent to a content distribution network by a management server in advance so as to store the offline resource on the content distribution network and generate a download link of the offline resource, and the page related to the offline access page and the network resource related to the offline access page are obtained by simulating access of the offline access page deployed on a network server through the management server.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
and when the offline resources on the client side are determined to need to be updated, issuing the corresponding offline resources to update the offline resources on the client side. And issuing corresponding offline resources according to the condition of the client to update the offline resources on the client.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow diagram illustrating one embodiment of a resource update method in accordance with an exemplary embodiment;
FIG. 2 is an interaction diagram of a management server, a web server, a content distribution network, and an API server;
FIG. 3 is an interaction diagram of a client, an API server, a content distribution network in the case of upgrading an offline resource on the client;
FIG. 4 is a schematic diagram illustrating the effect of determining whether to upgrade an offline resource on a client;
FIG. 5 is a schematic flow chart of gradually issuing the newly released offline resource;
FIG. 6 is a block diagram illustrating the structure of a resource updating apparatus in accordance with an exemplary embodiment;
fig. 7 is a block diagram illustrating a configuration of a server according to an example embodiment.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that, in the present disclosure, the embodiments and features of the embodiments may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
FIG. 1 is a flow diagram illustrating one embodiment of a resource update method in accordance with an exemplary embodiment. The method comprises the following steps:
step 101, receiving a query request sent by a client.
In the present disclosure, step 101-103 may be performed by a server. The server performing the step 101-103 may be referred to as an API (Application Programming Interface) server.
In the present disclosure, the query request sent by the client includes: information for determining candidate offline resources. The query request sent by the client includes information used for determining candidate offline resources, such as the version number of the currently running offline resource on the client, and parameters of the client, for example, the version number of the client.
The client version rule information defines a version number of a client capable of acquiring the offline resource with the version number, the region rule information in the gray scale rule information set corresponding to the version number defines a region where the client capable of acquiring the offline resource with the version number is located, the equipment model rule information in the gray scale rule information set corresponding to the version number defines a model of a terminal where the client capable of acquiring the offline resource with the version number is operated, the operating system version rule information in the gray scale rule information set corresponding to the version number defines a version number of an operating system of the terminal where the client capable of acquiring the offline resource with the version number is operated, and a user white list in the gray scale rule information set corresponding to the version number includes an identifier of a user capable of acquiring the client capable of acquiring the offline resource with the version number.
In the disclosure, for each client, the query request sent by the client may include one or more parameters of the client in a version number of the client, a location of the client, a model number of the client running on the terminal, a version number of an operating system of the client running on the terminal, and an identification of a user of the client.
In some embodiments, the query request sent by the client comprises: the version number of the currently running offline resource on the client and the parameters of the client.
In the present disclosure, for each client, the client may send an inquiry request at a certain interval to inquire whether to upgrade offline resources on the client, after receiving the inquiry request sent by the client, the API server at least performs step 101, and when the offline resources on the client need to be upgraded and the offline resources on the client can be upgraded, the API server performs step 101 and step 103.
In the present disclosure, offline resources may include, but are not limited to: the method comprises the steps of accessing a page offline on a client, accessing a related page offline with the offline accessed page, and accessing a network resource related to the offline accessed page. The page associated with the offline access page may be a page to which a jump may be made via a page link in the offline access page. The management server may access network resources associated with the offline access page during access of the most recent version of the offline access page on the Web server. The network resource related to the offline access page may be a resource such as a picture or a video, which can be accessed through the resource link in the offline access page.
In the present disclosure, the type of page that can be accessed offline on the client may be H5 page, and the type of associated page may also be H5 page.
In the present disclosure, when the type of page that can be accessed offline on a client is a H5 page, the offline resource may be referred to as an H5 offline package.
Step 102, when at least one candidate offline resource exists in all the issued offline resources, obtaining a target offline resource in the at least one candidate offline resource.
In the present disclosure, each of all offline resources that have been released has a version number. And when an offline resource is released for downloading by the client, a version number is distributed to the released offline resource.
For each of all the offline resources that have been released, the version number of the offline resource is different from the version number of any other offline resource.
The later the release time of the released offline resource is, the larger the version number of the released offline resource is, and the maximum version number of all the current version numbers is the version number of the latest released offline resource in all the released offline resources.
The download link for each of all offline resources that have been published may be stored on the API server. All offline resources that have been delivered may be stored on a Content Delivery Network (CDN).
For example, the offline resource is H5 offline package. H5 off-line packets with version number 3.0.0, H5 off-line packets with version number 3.1.0, H5 off-line packets with version number 3.2.0 have been issued. The version numbers are 3.0.0, 3.1.0 and 3.2.0 in sequence from small to large. The H5 offline package with version number 3.2.0 is the newly issued H5 offline package. The issue time of the H5 leaving the coil is that the H5 leaving the coil with the version number of 3.0.0, the H5 leaving the coil with the version number of 3.1.0 and the H5 leaving the coil with the version number of 3.2.0 are arranged from the morning to the evening. All offline resources that have been published include: h5 off-line package with version number 3.0.0, H5 off-line package with version number 3.1.0, H5 off-line package with version number 3.2.0. The API server stores a download link of H5 with a version number of 3.0.0 leaving the package, a download link of H5 with a version number of 3.1.0 leaving the package, and a download link of H5 with a version number of 3.2.0 leaving the package. The CDN stores H5 offline packets with version number 3.0.0, H5 offline packets with version number 3.1.0, H5 offline packets with version number 3.2.0.
In the disclosure, for a client, after receiving a query request sent by the client, it may be determined whether a candidate offline resource exists in all the offline resources that have been issued.
In the disclosure, when there is one candidate offline resource among all the offline resources that have been released, the candidate offline resource may be directly used as the target offline resource.
In the present disclosure, when there are multiple candidate offline resources among all offline resources that have already been published, a candidate offline resource with the latest publication time among the multiple candidate offline resources may be taken as a target offline resource.
For example, the offline resource is H5 offline package. In order from early to late in the release time, all H5 offline packages that have been released include: h5 off-line package with version number 3.0.0, H5 off-line package with version number 3.1.0, H5 off-line package with version number 3.2.0. The API server stores a download link of H5 with a version number of 3.0.0 leaving the package, a download link of H5 with a version number of 3.1.0 leaving the package, and a download link of H5 with a version number of 3.2.0 leaving the package.
For a client, the version number of the currently running offline package of the client is 3.0.0, and if two candidate offline resources, namely an H5 offline package with the version number of 3.1.0 and an H5 offline package with the version number of 3.2.0, exist in all the issued offline resources, the H5 offline package with the version number of 3.2.0 is used as the target offline resource.
In the disclosure, the candidate offline resource is determined based on the information for determining the candidate offline resource and the gray scale rule information set corresponding to the version number of each of all the offline resources that have been issued.
In the disclosure, each of the published offline resources has a corresponding gray scale rule information set.
In this disclosure, for each version number, the gray scale rule information set corresponding to the version number may include gray scale rule information such as client version rule information, region rule information, device model rule information, operating system version rule information, and user white list.
In the present disclosure, for each version number, the client version rule information in the set of gray scale rule information corresponding to the version number defines the version number of the client that can acquire the offline resource with the version number, the region rule information in the gray rule information set corresponding to the version number defines the region where the client capable of acquiring the offline resource with the version number is located, the device model rule information in the gray scale rule information set corresponding to the version number defines the model of the terminal where the client capable of acquiring the offline resource with the version number operates, the operating system version rule information in the gray scale rule information set corresponding to the version number defines the version number of the operating system of the terminal where the client capable of acquiring the offline resource with the version number runs, and the user white list in the gray scale rule information set corresponding to the version number comprises the identification of the user of the client capable of acquiring the offline resource with the version number.
In the present disclosure, for each version number, the set of gray scale rule information corresponding to the version number corresponds to the parameters of the client in the information for determining the candidate offline resource one by one.
When the candidate offline resource is determined based on the information for determining the candidate offline resource and the gray rule information set corresponding to the version number of each offline resource in all the issued offline resources, the candidate offline resource satisfies the following conditions: information which is not corresponding to the gray rule information in the attribute information of the candidate offline resource, for example, the version number of the candidate offline resource, meets a preset condition for the information related to the information for determining the candidate offline resource, for example, the version number of the candidate offline resource is greater than the version number of the currently running offline resource on the client in the information for determining the candidate offline resource. Meanwhile, the candidate offline resources further satisfy: for each parameter of the client in the information for determining the candidate offline resource, the parameter is matched with the gray rule information corresponding to the parameter in the gray rule information set corresponding to the version number of the candidate offline resource.
In some embodiments, the information for determining candidate offline resources includes: the version number of the currently running offline resource on the client and at least one parameter of the client, and the candidate offline resource meets all the following conditions: for each parameter of the client, the parameter is matched with the gray scale rule information corresponding to the parameter, the parameter value of the download time upper limit parameter of the version number of the candidate offline resource is larger than the parameter value of the downloaded time parameter of the version number of the candidate offline resource, and the version number of the candidate offline resource is larger than the version number of the currently running offline resource on the client, wherein for each parameter of the client, the gray scale rule information corresponding to the parameter is the gray scale rule information corresponding to the parameter in the gray scale rule information set corresponding to the version number of the candidate offline resource.
In the disclosure, for a client, after receiving a query request sent by the client, when it is determined that at least one candidate offline resource exists, all of the following conditions are satisfied for each candidate offline resource: each parameter in the at least one parameter of the client is matched with the gray rule information corresponding to the parameter in the gray rule information set corresponding to the version number of the candidate offline resource, the parameter value of the download time upper limit parameter of the version number of the candidate offline resource is greater than the parameter value of the downloaded time parameter of the version number of the candidate offline resource, and the version number of the candidate offline resource is greater than the version number of the currently running offline resource on the client.
In the disclosure, for each client, the query request sent by the client may include one or more parameters of the client in a version number of the client, a location of the client, a model number of the client running on the terminal, a version number of an operating system of the client running on the terminal, and an identification of a user of the client.
In this disclosure, for each version number, the grayscale rule information corresponding to the version number of the client in the parameter of the client in the grayscale rule information set corresponding to the version number is client version rule information, the grayscale rule information corresponding to the position of the client in the parameter of the client is region rule information, the grayscale rule information corresponding to the model of the client running at the terminal in the parameter of the client is device model rule information, the grayscale rule information corresponding to the version number of the client running at the operating system of the terminal in the parameter of the client is operating system version rule information, and the grayscale rule information corresponding to the identifier of the user of the client in the parameter of the client is a user white list.
For a version number and the version number of the client in the parameters of the client, when the version number of the client is the version number of the client defined by the client version rule information in the gray scale rule information set corresponding to the version number, the version number of the client is matched with the client version rule information in the gray scale rule information set corresponding to the version number.
And for the client position in one version number and the client parameter, when the client position is located in the region defined by the region rule information in the gray rule information set corresponding to the version number, the client position is matched with the region rule information in the gray rule information set corresponding to the version number.
And for the model number of the client running in the terminal in one version number and the parameters of the client, when the model number of the client running in the terminal is the model number defined by the equipment model rule information in the gray scale rule information set corresponding to the version number, matching the model number of the client running in the terminal with the equipment model rule information in the gray scale rule information set corresponding to the version number.
And for one version number and the version number of the operating system of the client running on the terminal in the parameters of the client, when the version number of the operating system of the client running on the terminal is the version number defined by the operating system version rule information in the gray scale rule information set corresponding to the version number, matching the version number of the operating system of the client running on the terminal with the operating system version rule information in the gray scale rule information set corresponding to the version number.
For the identifier of the user of the client in one version number and the parameters of the client, when the identifier of the user of the client is in the user white list in the gray scale rule information set corresponding to the version number, the identifier of the user of the client is matched with the user white list in the gray scale rule information set corresponding to the version number. In the present disclosure, each version number has an upper limit parameter for the number of downloads. For each version number, the parameter value of the upper limit parameter of the number of downloads of the version number indicates how many times the offline resource with the version number can be downloaded at most.
In the present disclosure, each version number has a downloaded number of times parameter. For each version number, the parameter value of the downloaded number parameter of the version number indicates the number of times the offline resource with the version number has been downloaded.
In this disclosure, for each version number, when a parameter value of the download number upper limit parameter of the version number is a value indicating that the offline resource with the version number is issued in full, for example, 0, the value indicating that the download number upper limit parameter of the version number is downloaded in full is greater than any one parameter value of the downloaded number parameter of the version number.
In this disclosure, for each version number, when the parameter value of the download number upper limit parameter of the version number is a value indicating that the offline resource with the version number is issued in full, the maximum number of times that the offline resource with the version number can be downloaded is not limited.
In the disclosure, for a client, after receiving a query request sent by the client, when determining whether at least one candidate offline resource exists in all the offline resources that have been issued, for each offline resource in all the offline resources that have been issued, it is determined whether a parameter value of a download time upper limit parameter of the offline resource is greater than a parameter value of a download time parameter of the candidate offline resource.
In the disclosure, for a client, after receiving a query request sent by the client, when determining whether at least one candidate offline resource exists in all the offline resources that have been issued, for each offline resource that has been issued, it is determined whether a version number of the offline resource is greater than a version number of a currently running offline resource on the client.
In the present disclosure, for one client and one candidate offline resource, the candidate offline resource satisfies all of the following conditions: each of the at least one parameter of the client is matched with the gray rule information corresponding to the parameter in the gray rule information set corresponding to the version number of the candidate offline resource, the parameter value of the download time upper limit parameter of the version number of the candidate offline resource is greater than the parameter value of the downloaded time parameter of the version number of the candidate offline resource, and the version number of the candidate offline resource is greater than the version number of the currently running offline resource on the client.
For example, for a client, the query request sent by the client includes: the version number of the currently running offline resource of the client and a plurality of parameters of the client. The plurality of parameters of the client include a version number of the client, a location of the client, an identification of a user of the client.
One candidate offline resource satisfies: each of the at least one parameter of the client matches with the gray rule information corresponding to the parameter in the gray rule information set corresponding to the version number of the candidate offline resource, that is, the version number of the client matches with the client version rule information in the gray rule information set corresponding to the version number of the candidate offline resource, the location of the client matches with the region rule information in the gray rule information set corresponding to the version number of the candidate offline resource, and the identifier of the user of the client matches with the white list of the user in the gray rule information set corresponding to the version number of the candidate offline resource. Meanwhile, the candidate offline resource satisfies that the parameter value of the download time upper limit parameter of the version number of the candidate offline resource is larger than the parameter value of the downloaded time parameter of the version number of the candidate offline resource, and the version number of the candidate offline resource is larger than the version number of the currently running offline resource on the client.
In some embodiments, further comprising: receiving a version number of an already issued offline resource and a download link of the offline resource sent by a management server, wherein the offline resource comprises: the method comprises the steps of obtaining an offline access page, a page related to the offline access page and a network resource related to the offline access page, wherein the offline resource is sent to a content distribution network by a management server in advance so as to be stored in the content distribution network and generate a download link of the offline resource in the content distribution network, and the page related to the offline access page and the network resource related to the offline access page are obtained by simulating access to the offline access page deployed on the network server through the management server.
In the present disclosure, for each of all offline resources that have been released, after the offline resource is released, the API server may receive the version number of the offline resource and the download link of the offline resource, which are sent by the management server.
In other words, for each offline resource in all the offline resources that have been released, after the offline resource is released, the API server obtains the version number of the offline resource and the download link of the offline resource through the management server, and after the API server obtains the version number of the offline resource and the download link of the offline resource through the management server, the API server may provide the download link of the offline resource to the corresponding client.
For example, the offline resource is H5 offline package. For an H5 offline package with a version number of 3.2.0 which is newly released, after the H5 offline package is released, receiving a version number of the H5 offline package and a download link of the H5 offline package sent by a management server, wherein the H5 offline package is located on the CDN, and the H5 offline package comprises: the Web server comprises an offline access page, a page related to the offline access page and network resources related to the offline access page, wherein the page related to the offline access page and the network resources related to the offline access page are acquired by simulating and accessing the offline access page deployed on the Web server through a management server.
Referring to fig. 2, an interaction diagram of the management server, the network server, the content distribution network, and the API server is shown.
In this disclosure, the management server may be referred to as an admin server. The Web server may be referred to as a Web server.
Taking the newly released H5 offline package as an example, the newly developed page of the developer can be deployed on a Web server, i.e., a network server. The newly published H5 leaves the offline access page in the package as the newly developed page.
The Admin server, the management server, simulates access to newly developed pages on the Web server.
The Admin server, in accessing the newly developed H5 page on the Web server, may access the pages associated with the offline access pages in the newly published H5 offline package and the network resources associated with the offline access pages in the newly published H5 offline package. The page associated with the offline access page in the newly published H5 offline package may be the page to which the jump may be made via the page link in the offline access page. The network resource related to the offline access page in the newly published H5 offline package may be a resource such as a picture, a video, etc. that is accessible through a resource link in the offline access page.
By simulating the access of the offline access page on the Web server, the Admin server can acquire the page related to the offline access page in the newly released H5 offline package and the network resource related to the offline access page in the newly released H5 offline package.
The Admin server may package the newly published offline access page of H5 offline from the package, the page associated with the newly published offline access page of H5 offline from the package, and the network resources associated with the newly published offline access page of H5 offline from the package to obtain the newly published H5 offline package.
The Admin server may upload the newly released H5 offline package to the CDN for storage, store the newly released H5 offline package in the CDN, generate a download link of the newly released H5 offline package on the CDN, and then receive the download link, i.e., the URL, of the newly released H5 offline package returned by the CDN.
The Admin server may send the download link of the newly issued H5 offline package and the version number of the newly issued H5 offline package to the API server, so that the API server may receive the version number of the newly issued H5 offline package and the download link of the newly issued H5 offline package sent by the Admin server.
And 103, sending the downloading link of the target offline resource to the client, and updating the parameter value of the downloaded time parameter of the version number of the target offline resource.
In this disclosure, after determining the target offline resource, the download link of the target offline resource may be sent to the client, so that the client may download the target offline resource from the CDN to the client according to the download link.
In the present disclosure, for each client, after the client downloads a target offline resource to the client through a download link, the target offline resource becomes a currently running offline resource of the client, so that the currently running offline resource on the client is updated.
In this disclosure, while the download link of the target offline resource is sent to the client, the parameter value of the downloaded time parameter of the version number of the target offline resource may be updated, and the parameter value of the downloaded time parameter of the version number of the target offline resource is updated to be +1, which is the current parameter value of the downloaded time parameter of the version number of the target offline resource.
Referring to fig. 3, an interaction diagram of a client, an API server, and a content distribution network in the case of upgrading an offline resource on the client is shown.
The client sends a query request to the API server. After the API server determines the target offline resource, the API server determines the target offline resource according to the version number of the currently running offline resource on the client side in the query request and at least one parameter of the client side. The API server sends an update instruction to the client that includes a download link for the target offline resource. The client generates a downloading request comprising a downloading link of the target offline resource, the client sends the downloading request to the CDN, the target offline resource is downloaded to the client from the CDN, and the target offline resource becomes the currently running offline resource of the client.
Referring to fig. 4, a schematic diagram illustrating an effect of determining whether to upgrade an offline resource on a client is shown.
Taking the offline resource H5 offline package as an example, all H5 offline packages that have been published in the order from early to late include: h5 off-line package with version number 3.0.0, H5 off-line package with version number 3.1.0, H5 off-line package with version number 3.2.0. The newly released offline resource is an H5 offline package with version number 3.2.0. The version numbers are 3.0.0, 3.1.0 and 3.2.0 in sequence from small to large. The API server stores a download link of H5 with a version number of 3.0.0 leaving the package, a download link of H5 with a version number of 3.1.0 leaving the package, and a download link of H5 with a version number of 3.2.0 leaving the package.
For a client, when the version number of the current H5 offline package of the client is 3.2.0, and the current H5 offline package of the client is the latest issued offline resource, no candidate offline resource exists, and the offline package of the client is not upgraded.
For a client, the version number of the current offline package of the client is 3.0.0, and since the identifier of the user of the client is not in the user white list in the gray scale rule information set corresponding to the H5 offline package with the version number of 3.2.0, the identifier of the user of the client is not matched with the user white list in the gray scale rule information set corresponding to the H5 offline package with the version number of 3.2.0, and the H5 offline package with the version number of 3.2.0 is not taken as a candidate offline resource. Only one candidate offline resource of H5 offline package with version number 3.1.0 exists among all the offline resources already published. H5 offline package with version number 3.1.0 is the target offline resource. The API server sends the client a download link with H5 offline with version number 3.1.0. Therefore, the client can download the H5 offline package with the version number of 3.1.0 from the CDN to the client according to the download link, the H5 offline package with the version number of 3.1.0 becomes the currently running offline resource of the client, and the H5 offline package of the client is upgraded to the H5 offline package with the version number of 3.1.0.
For a client, the version number of the current H5 offline package of the client is 3.0.0, two candidate offline resources, namely an H5 offline package with the version number of 3.1.0 and an H5 offline package with the version number of 3.2.0, exist in all the issued offline resources, and the H5 offline package with the version number of 3.2.0 is taken as a target offline resource. The API server sends the client a download link with H5 off the package with version number 3.2.0. Therefore, the client can download the H5 offline package with the version number of 3.2.0 from the CDN to the client according to the download link, the H5 offline package with the version number of 3.2.0 becomes the currently running offline resource of the client, and the H5 offline package of the client is upgraded to the H5 offline package with the version number of 3.2.0.
In some embodiments, further comprising: acquiring access condition information of each target client, wherein the currently running offline resource on the target client is the latest published offline resource in all the published offline resources, and the access condition information of the target client comprises one or more of the following items: the method comprises the steps of obtaining collapse times of offline access pages within a preset statistical time period, collapse times of a target client within the preset statistical time period, click times of preset page elements in the offline access pages within the preset statistical time period, and the number of complaint information of users of the target client aiming at newly issued offline resources within the preset statistical time period; based on all the acquired access situation information, calculating evaluation information of the newly issued offline resource, wherein the evaluation information comprises one or more of the following items: the method comprises the following steps of obtaining the collapse rate of an offline access page, the collapse rate of a target client, the click rate of preset page elements in the offline access page and the total number of complaint information aiming at the newly issued offline resource, wherein for each evaluation information item in the evaluation information, the evaluation information item is obtained based on the access condition information item corresponding to the evaluation information item in the access condition information of each target client; updating the parameter value of the download time upper limit parameter of the version number of the latest released offline resource to a new parameter value when the latest released offline resource meets the update condition, wherein the offline access page is an offline access page in the latest released offline resource on the target client, the evaluation information items in the evaluation information correspond to the update condition items in the update condition one by one, and the satisfaction of the latest released offline resource to the update condition is determined based on that for each evaluation information item in the evaluation information, the information item satisfies the corresponding update condition item.
And when each evaluation information item in the evaluation information of the newly released offline resource meets the corresponding update condition item, determining that the newly released offline resource meets the update condition.
The new parameter value is larger than the current parameter value of the download time upper limit parameter of the version number of the newly released offline resource.
The new parameter value may be the sum of the current parameter value of the download time upper limit parameter of the version number of the newly released offline resource and a preset increment.
In some embodiments, the update condition includes one or more of the following update condition items: the collapse rate of the offline access page is smaller than a page collapse rate threshold, the collapse rate of the target client is smaller than a client collapse rate threshold, the click rate of preset page elements in the offline access page is larger than a click rate threshold, and the total amount of complaint information aiming at the newly issued offline resource is smaller than a quantity threshold.
In this disclosure, after it is determined that the update condition is satisfied each time, the access condition information of each target client may be acquired again, the evaluation information of the newly released offline resource is generated based on all the acquired access condition information again, and whether the parameter value of the download time upper limit parameter of the version number of the newly released offline resource satisfies the update condition is determined again based on the evaluation information of the newly released offline resource again until the parameter value of the download time upper limit parameter of the version number of the newly released offline resource reaches a large preset value, for example, 1000000. When the parameter value of the download time upper limit parameter of the version number of the latest released offline resource reaches a large preset value, the parameter value of the download time upper limit parameter of the version number of the latest released offline resource can be directly set as the value indicating that the latest released offline resource is fully released.
In the present disclosure, the offline resource with the latest release time among all the offline resources that have been released is the latest released offline resource.
For example, the offline resource is H5 offline package. According to the order of the release time from early to late, all the offline resources which have been released comprise: h5 off-line package with version number 3.0.0, H5 off-line package with version number 3.1.0, H5 off-line package with version number 3.2.0. H5 with version number 3.2.0 leaves the package as the newly issued offline resource.
In this disclosure, a client that has a currently running offline resource as a newly released offline resource may be referred to as a target client.
In the disclosure, each target client receives a download link of a newly released offline resource sent by the API server, and downloads the newly released offline resource from the CDN to the target client according to the download link. Thus, the currently running offline resource on each target client is the newly released offline resource.
For example, the API server stores a download link from a package of H5 with version number 3.0.0, a download link from a package of H5 with version number 3.1.0, and a download link from a package of H5 with version number 3.2.0. H5 with version number 3.2.0 leaves the package as the newly issued offline resource. And each target client respectively receives the download link of the H5 offline package with the version number of 3.2.0 sent by the API server, and respectively downloads the H5 offline package with the version number of 3.2.0 from the CDN to the target client according to the download link. The currently running offline resource on each target client is an H5 offline package with version number 3.2.0.
In the present disclosure, access situation information of each target client may be acquired.
In the present disclosure, for each target client, the access condition information of the target client may include one or more of the following: the number of page crashes within the statistical time period, the number of client crashes within the statistical time period, the number of clicks within the statistical time period, and the number of complaint information of the user of the target client for the newly published offline resource within the statistical time period.
The statistical time period is a time period between the time when the parameter value of the download time upper limit parameter of the version number of the latest released offline resource is updated last time and the time when the parameter value of the downloaded time parameter of the version number of the latest released offline resource reaches the parameter value of the download time upper limit parameter of the version number of the latest released offline resource.
In this disclosure, for a target client, the number of times of page collapse in the access condition information of the target client may be the number of times of page collapse in offline access during at least one offline access of an offline access page in a newly published offline resource on the target client within a statistical time period.
In this disclosure, for a target client, the number of times of client crashes in the access condition information of the target client may be the number of times of the target client crashes due to the fact that the offline access page in the newly published offline resource calls a related function on the target client in the process of offline accessing the offline access page in the newly published offline resource on the target client at least once in a statistical time period.
In this disclosure, for a target client, the number of clicks in the access condition information of the target client within the statistical time period may be the number of times that a user of the target client clicks a preset button in an offline access page in a newly released offline resource within the statistical time period.
In the disclosure, for a target client, the number of the user complaint information for the newly released offline resource in the access condition information of the target client may be the number of the complaint information for the newly released offline resource submitted by the user of the target client within the statistical time period.
In this disclosure, a CDN flow consumed by issuing the latest delivered offline resource within a statistical time period may also be obtained from the CDN.
In the present disclosure, the evaluation information of the newly released offline resource may be generated based on the obtained access condition information of all the target clients.
In the present disclosure, for an evaluation information item of offline access page collapse rate within a statistical time period, an access condition information item corresponding to the evaluation information item in the access condition information of each target client is a page collapse number. For the evaluation information item of the client crash rate within the statistical time period, the access condition information item corresponding to the evaluation information item in the access condition information of each target client is the client crash number. For the evaluation information item, which is the click rate within the statistical time period, the access condition information item corresponding to the evaluation information item in the access condition information of each target client is the number of clicks. For the evaluation information item of the total number of the user complaint information about the newly released offline resource in the statistical time period, the access condition information item corresponding to the evaluation information item in the access condition information of each target client is the number of the user complaint information about the newly released offline resource.
The offline access page collapse rate within the statistical time period can be calculated according to the page collapse times in the access condition information of each target client, the sum of all the page collapse times can be calculated, and the sum is divided by the number of the target clients to obtain the page collapse rate. The client crash rate in the statistical time period can be calculated according to the client crash times in the access condition information of each target client, the sum of all the client crash times can be calculated, and the sum is divided by the number of the target clients to obtain the client crash times. The click rate in the statistical time period may be calculated according to the number of clicks in the access condition information of each target client, and the sum of all the click rates may be calculated and divided by the number of target clients to obtain the click rate. The total number of the user complaint information of the newly released offline resource in the statistical time period can be calculated according to the number of the user complaint information of the newly released offline resource in the access condition information of each target client, and the sum of the number of the user complaint information of the newly released offline resource can be calculated to obtain the total number.
In the present disclosure, the evaluation information of the newly released offline resource may include one or more of the following items: the method comprises the steps of obtaining a breakdown rate of an offline access page in a latest released offline resource in a statistical time period, a target client breakdown rate in the statistical time period, a click rate in the statistical time period, the number of user complaint information aiming at the latest released offline resource in the statistical time period, and CDN flow consumed by releasing the latest released offline resource in the statistical time period.
In the present disclosure, an update condition may be set in advance, and the update condition may include one or more of the following update condition items: the offline access page collapse rate in the statistical time period is smaller than a page collapse rate threshold, the target client collapse rate in the statistical time period is smaller than a client collapse rate threshold, the click rate in the statistical time period is larger than a click rate threshold, the total amount of user complaint information aiming at the newly released offline resource in the statistical time period is smaller than a quantity threshold, and the CDN flow consumed by issuing the newly released offline resource in the statistical time period is smaller than a CDN flow threshold.
In the present disclosure, when each evaluation information item in the evaluation information of the newly released offline resource satisfies a corresponding update condition item, it is determined that the newly released offline resource satisfies the update condition. In the disclosure, after it is determined that the update condition is satisfied and the parameter value of the upper limit parameter of the number of downloads of the version number of the newly released offline resource reaches a large value, the parameter value of the upper limit parameter of the number of downloads of the version number of the newly released offline resource is directly set to the value of the newly released offline resource which is issued in full. When the parameter value of the download time upper limit parameter of the version number of the latest released offline resource is a value indicating that the offline resource with the version number is issued in full, the maximum number of times that the latest released offline resource can be downloaded is not limited.
In the present disclosure, for each offline resource in all the offline resources that have been released, when the offline resource is the latest released offline resource, the offline resource can be gradually released in the above manner. Therefore, when the latest released offline resource runs well on a large number of clients, the parameter value of the download time upper limit parameter of the version number of the latest released offline resource is the value indicating that the offline resource with the version number is fully issued, and the maximum download time of the latest released offline resource is not limited.
In some embodiments, further comprising: when the latest published offline resource meets the offline condition, identifying the latest published offline resource as an offline state, deleting the version number of the latest published offline resource and deleting the download link of the latest published offline resource, wherein the evaluation information items in the evaluation information of the latest published offline resource correspond to the offline condition items in the offline condition one by one, the latest published offline resource meeting the offline condition is determined based on each evaluation information item in the evaluation information meeting the corresponding offline condition item, and the offline condition comprises one or more of the following offline condition items: the collapse rate of the offline access page is greater than a page collapse rate threshold, the collapse rate of the target client is greater than a client collapse rate threshold, the click rate of preset page elements in the offline access page is less than a click rate threshold, and the total amount of complaint information aiming at the newly issued offline resource is greater than a quantity threshold. .
And when each evaluation information item in the evaluation information of the latest issued offline resource meets the corresponding offline condition item, determining that the latest issued offline resource meets the offline condition.
In the present disclosure, it may be determined whether the newly released offline resource satisfies the offline condition based on the evaluation information of the newly released offline resource.
For example, a down condition includes one or more of the following down condition items: the offline access page collapse rate in the statistical time period is greater than a page collapse rate threshold, the target client collapse rate in the statistical time period is greater than a client collapse rate threshold, the click rate of preset page elements in the offline access page in the statistical time period is less than a click rate threshold, the total amount of user complaint information aiming at the newly released offline resource in the statistical time period is greater than a quantity threshold, and the CDN flow consumed by issuing the newly released offline resource in the statistical time period is greater than a flow threshold.
In the present disclosure, when each of the evaluation information items satisfies its corresponding offline condition item for each of the evaluation information items, it may be determined that the offline condition is satisfied. After determining that the offline condition is met, it may be determined that the latest published offline resource has a poor running condition on the client, and the latest published offline resource may be identified as an offline state, and the version number of the latest published offline resource and the download link of the latest published offline resource may be deleted. And when the off-line resource identifier released latest is in an off-line state, stopping the client from downloading the off-line resource released latest. Meanwhile, according to the pre-recorded identifiers of all the clients which have received the download link of the latest published offline resource, an instruction for deleting the latest published offline resource on the client can be sent to all the clients which have received the download link of the latest published offline resource, so as to delete the latest published offline resource on the client.
In some embodiments, further comprising: and when the currently running offline resource on the client is the latest released offline resource and the latest released offline resource is identified to be in an offline state, sending an offline instruction to the client to delete the latest released offline resource on the client.
In this disclosure, for each client that has the currently running offline resource as the latest published offline resource, the version number in the received query request sent by the client is the version number of the latest published offline resource.
In this disclosure, for each client that currently runs offline resources are the latest offline resources issued by the client, after receiving the query request sent by the client, it may be determined that the currently running offline resources of the client are the latest offline resources issued by the client according to the version number in the query request, and when the latest offline resources issued by the client are identified as an offline state, it may be determined that the currently running offline resources on the client are the latest offline resources and the latest offline resources issued by the client are identified as an offline state, and then, a offline instruction is sent to the client, and after receiving the offline instruction, the client deletes the latest offline resources issued by the client. And the offline resource with the latest release time in the offline resources except the latest release offline resource on the client becomes the currently running offline resource on the client.
Therefore, under the condition that the running condition of the latest released offline resource on the client is poor, the latest released offline resource on the client is deleted in time for each client of which the currently running offline resource is the latest released offline resource.
Referring to fig. 5, a flow chart of gradually issuing the newly released offline resource is shown.
After receiving the version number of the latest released offline resource and the download link of the latest released offline resource from the management server, the API server sets the parameter value of the download number upper limit parameter of the version number of the latest released offline resource to 10000. The latest released offline resource is released 10000 times at most, that is, the latest released offline resource is downloaded 10000 times at most.
And the API server respectively sends the download links of the newly released offline resources to 10000 clients. 10000 clients downloading the newly released offline resources through the download link become target clients of which 10000 currently running offline resources are the newly released offline resources.
After the API server acquires the sent access condition information sent by each of the 10000 target clients, the API server generates newly issued evaluation information of the offline resource according to all the acquired access condition information. When it is determined that the update condition is satisfied based on the evaluation information of the newly released offline resource, it may be determined that the newly released offline resource is in a good running condition on the client, and the parameter value of the upper limit parameter of the number of downloads of the version number of the newly released offline resource may be updated to a value 100000 greater than 10000. By continuing to issue the download link, the number of target clients increases by 90000, which reaches 100000. When it is determined that the offline condition is met based on the evaluation information of the newly issued offline resource, the API server may send an offline instruction to each target client, and after receiving the offline instruction, the target client deletes the newly issued offline resource on the target client, and the offline resource with the latest issuance time in the offline resources except the newly issued offline resource on the target client becomes the currently running offline resource on the target client, so that the currently running offline resource on the target client is rolled back.
After the API server obtains the access condition information sent by each of the 100000 target clients, the API server generates newly issued evaluation information of the offline resource according to all the obtained access condition information. When it is determined that the update condition is satisfied again based on the evaluation information of the newly released offline resource, it may be determined that the newly released offline resource operates well on the client again, and the API server may update the parameter value of the upper limit parameter of the number of downloads of the newly released offline resource to a value of 1000000 greater than 100000. By continuing to issue download links, the number of target clients is increased 990000, and the number of target clients reaches 1000000. When it is determined that the offline condition is met based on the evaluation information of the newly issued offline resource, the API server may send an offline instruction to each target client, and after receiving the offline instruction, the target client deletes the newly issued offline resource on the target client, and the offline resource with the latest issuance time in the offline resources except the newly issued offline resource on the target client becomes the currently running offline resource on the target client, so that the currently running offline resource on the target client is rolled back.
After the API server acquires the access condition information sent by each of the 1000000 target clients, the API server generates newly issued evaluation information of the offline resource according to all the acquired access condition information. When it is determined that the update condition is satisfied based on the evaluation information of the newly released offline resource again, it may be determined that the newly released offline resource is in good operation on the client again, and at this time, since the parameter value of the download time upper limit parameter of the version number of the newly released offline resource reaches a large value of 1000000, the API server may directly set the parameter value of the download time upper limit parameter of the version number of the newly released offline resource to the value of the full-quantity delivered newly released offline resource. When the parameter value of the download time upper limit parameter of the version number of the latest released offline resource is a value indicating that the offline resource with the version number is issued in full, the maximum number of times that the latest released offline resource can be downloaded is not limited. When it is determined that the offline condition is met based on the evaluation information of the newly issued offline resource, the API server may send an offline instruction to each target client, and after receiving the offline instruction, the target client deletes the newly issued offline resource on the target client, and the offline resource with the latest issuance time in the offline resources except the newly issued offline resource on the target client becomes the currently running offline resource on the target client, so that the currently running offline resource on the target client is rolled back.
Fig. 6 is a block diagram illustrating a structure of a resource updating apparatus according to an exemplary embodiment. Referring to fig. 6, the resource updating apparatus includes: the system comprises a receiving module 601, an acquiring module 602 and a sending module 603.
The receiving module 601 is configured to receive a query request sent by a client, where the query request includes: information for determining candidate offline resources;
the obtaining module 602 is configured to obtain a target offline resource of at least one candidate offline resource when there is at least one candidate offline resource in all the offline resources that have been released, where the candidate offline resource is determined based on information used to determine the candidate offline resource and a gray rule information set corresponding to a version number of each of all the offline resources that have been released;
the issuing module 603 is configured to send the download link of the target offline resource to the client, and update the parameter value of the downloaded time parameter of the version number of the target offline resource.
In some embodiments, the information for determining candidate offline resources includes: the version number of the currently running offline resource on the client, at least one parameter of the client, and the candidate offline resource satisfy all the following conditions: for each parameter of the client, the parameter is matched with the gray scale rule information corresponding to the parameter, the parameter value of the download time upper limit parameter of the version number of the candidate offline resource is greater than the parameter value of the downloaded time parameter of the version number of the candidate offline resource, and the version number of the candidate offline resource is greater than the version number of the currently running offline resource on the client, wherein the gray scale rule information corresponding to the parameter is the gray scale rule information corresponding to the parameter in the gray scale rule information set corresponding to the version number of the candidate offline resource.
In some embodiments, the resource updating apparatus further comprises: an issue control module configured to: acquiring access condition information of each target client, wherein the currently running offline resource on the target client is the latest published offline resource in all the published offline resources, and the access condition information of the target client comprises one or more of the following items: the method comprises the steps of obtaining collapse times of offline access pages within a preset statistical time period, collapse times of a target client within the preset statistical time period, click times of preset page elements in the offline access pages within the preset statistical time period, and the number of complaint information of users of the target client aiming at newly issued offline resources within the preset statistical time period; based on all the obtained access situation information, calculating evaluation information of the newly released offline resources, wherein the evaluation information comprises one or more of the following items: the method comprises the following steps of obtaining a collapse rate of an offline access page, a collapse rate of a target client, a click rate of preset page elements in the offline access page, and the total number of complaint information aiming at a newly issued offline resource, wherein for each evaluation information item in the evaluation information, the evaluation information item is obtained based on an access condition information item corresponding to the evaluation information item in access condition information of each target client; updating a parameter value of a download time upper limit parameter of a version number of the latest released offline resource to a new parameter value when the latest released offline resource meets an update condition, wherein evaluation information items in the evaluation information correspond to update condition items in the update condition one to one, and the satisfaction of the latest released offline resource to the update condition is determined based on that, for each evaluation information item in the evaluation information, the evaluation information item satisfies its corresponding update condition item.
In some embodiments, the update condition includes one or more of the following update condition items: the collapse rate of the offline access page is smaller than a page collapse rate threshold, the collapse rate of the target client is smaller than a client collapse rate threshold, the click rate of preset page elements in the offline access page is larger than a click rate threshold, and the total number of the complaint information aiming at the newly issued offline resource is smaller than a number threshold.
In some embodiments, the resource updating apparatus further comprises:
a downline module configured to: when the latest published offline resource meets the offline condition, identifying the latest published offline resource as an offline state, deleting the version number of the latest published offline resource and deleting the download link of the latest published offline resource, wherein the evaluation information items in the evaluation information correspond to the offline condition items in the offline condition one by one, the latest published offline resource meeting the offline condition is determined based on that each evaluation information item in the evaluation information meets the corresponding offline condition item, and the offline condition comprises one or more of the following offline condition items: the collapse rate of the offline access page is greater than a page collapse rate threshold, the collapse rate of the target client is greater than a client collapse rate threshold, the click rate of preset page elements in the offline access page is less than a click rate threshold, and the total number of the complaint information aiming at the newly issued offline resource is greater than a number threshold.
In some embodiments, the resource updating apparatus further comprises:
the instruction sending module is configured to send a offline instruction to the client to delete the latest issued offline resource on the client when the currently running offline resource on the client is the latest issued offline resource and the latest issued offline resource is identified as an offline state.
In some embodiments, the resource updating apparatus further comprises:
the preprocessing module is configured to receive a version number of an already issued offline resource and a download link of the offline resource, which are sent by a management server, and the offline resource includes: the method comprises the steps of obtaining an offline access page, a page related to the offline access page and a network resource related to the offline access page, wherein the offline resource is sent to a content distribution network by a management server in advance so as to store the offline resource on the content distribution network and generate a download link of the offline resource, and the page related to the offline access page and the network resource related to the offline access page are obtained by simulating access of the offline access page deployed on a network server through the management server.
Fig. 7 is a block diagram illustrating a configuration of a server according to an example embodiment. Referring to fig. 7, server 700 includes a processing component 722 that further includes one or more processors and memory resources, represented by memory 732, for storing instructions, such as application programs, that are executable by processing component 722. The application programs stored in memory 732 may include one or more modules that each correspond to a set of instructions. Further, the processing component 722 is configured to execute instructions to perform the above-described methods.
The server 700 may also include a power component 726 configured to perform power management of the server 700, a wired or wireless network interface 750 configured to connect the server 700 to a network, and an input output (I/O) interface 758. The server 700 may operate based on an operating system stored in memory 732, such as Windows Server, MacOS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
In an exemplary embodiment, a storage medium comprising instructions, such as a memory comprising instructions, executable by a server to perform the above method is also provided. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The present application also provides a computer program comprising the operational steps as shown in fig. 1.
Other embodiments of the invention 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 invention 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 invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (14)

1. A method for resource update, the method comprising:
receiving a query request sent by a client, wherein the query request comprises: information for determining candidate offline resources;
when at least one candidate offline resource exists in all the issued offline resources, acquiring a target offline resource in the at least one candidate offline resource, wherein the candidate offline resource is determined based on information for determining the candidate offline resource and a gray rule information set corresponding to the version number of each offline resource in all the issued offline resources, and the information for determining the candidate offline resource includes: the version number of the currently running offline resource on the client, at least one parameter of the client, and the candidate offline resource satisfy all the following conditions: for each parameter of the client, the parameter is matched with the gray scale rule information corresponding to the parameter, the parameter value of the download time upper limit parameter of the version number of the candidate offline resource is greater than the parameter value of the downloaded time parameter of the version number of the candidate offline resource, and the version number of the candidate offline resource is greater than the version number of the currently running offline resource on the client, wherein the gray scale rule information corresponding to the parameter is the gray scale rule information corresponding to the parameter in the gray scale rule information set corresponding to the version number of the candidate offline resource;
and sending the downloading link of the target offline resource to the client, and updating the parameter value of the downloaded time parameter of the version number of the target offline resource.
2. The method of claim 1, further comprising:
acquiring access condition information of each target client, wherein the currently running offline resource on the target client is the latest published offline resource in all the published offline resources, and the access condition information of the target client comprises one or more of the following items: the method comprises the steps of obtaining collapse times of offline access pages within a preset statistical time period, collapse times of a target client within the preset statistical time period, click times of preset page elements in the offline access pages within the preset statistical time period, and the number of complaint information of users of the target client aiming at newly issued offline resources within the preset statistical time period;
based on all the obtained access situation information, calculating evaluation information of the newly released offline resources, wherein the evaluation information comprises one or more of the following items: the method comprises the following steps of obtaining a collapse rate of an offline access page, a collapse rate of a target client, a click rate of preset page elements in the offline access page, and the total number of complaint information aiming at a newly issued offline resource, wherein for each evaluation information item in the evaluation information, the evaluation information item is obtained based on an access condition information item corresponding to the evaluation information item in access condition information of each target client;
updating a parameter value of a download time upper limit parameter of a version number of the latest released offline resource to a new parameter value when the latest released offline resource meets an update condition, wherein evaluation information items in the evaluation information correspond to update condition items in the update condition one to one, and the satisfaction of the latest released offline resource to the update condition is determined based on that, for each evaluation information item in the evaluation information, the evaluation information item satisfies its corresponding update condition item.
3. The method of claim 2, wherein the update condition comprises one or more of the following update condition items: the collapse rate of the offline access page is smaller than a page collapse rate threshold, the collapse rate of the target client is smaller than a client collapse rate threshold, the click rate of preset page elements in the offline access page is larger than a click rate threshold, and the total number of the complaint information aiming at the newly issued offline resource is smaller than a number threshold.
4. The method of claim 2, further comprising:
when the latest published offline resource meets the offline condition, identifying the latest published offline resource as an offline state, deleting the version number of the latest published offline resource and deleting the download link of the latest published offline resource, wherein the evaluation information items in the evaluation information correspond to the offline condition items in the offline condition one by one, the latest published offline resource meeting the offline condition is determined based on that each evaluation information item in the evaluation information meets the corresponding offline condition item, and the offline condition comprises one or more of the following offline condition items: the collapse rate of the offline access page is greater than a page collapse rate threshold, the collapse rate of the target client is greater than a client collapse rate threshold, the click rate of preset page elements in the offline access page is less than a click rate threshold, and the total number of the complaint information aiming at the newly issued offline resource is greater than a number threshold.
5. The method of claim 4, further comprising:
and when the currently running offline resource on the client is the latest released offline resource and the latest released offline resource is identified to be in an offline state, sending an offline instruction to the client to delete the latest released offline resource on the client.
6. The method according to one of claims 1 to 5, characterized in that the method further comprises:
receiving a version number of an already issued offline resource and a download link of the offline resource sent by a management server, wherein the offline resource comprises: the method comprises the steps of obtaining an offline access page, a page related to the offline access page and a network resource related to the offline access page, wherein the offline resource is sent to a content distribution network by a management server in advance so as to store the offline resource on the content distribution network and generate a download link of the offline resource, and the page related to the offline access page and the network resource related to the offline access page are obtained by simulating access of the offline access page deployed on a network server through the management server.
7. An apparatus for resource update, the apparatus comprising:
a receiving module configured to receive a query request sent by a client, where the query request includes: information for determining candidate offline resources;
the acquisition module is configured to acquire a target offline resource in at least one candidate offline resource when at least one candidate offline resource exists in all the issued offline resources, wherein the candidate offline resource is determined based on information for determining the candidate offline resource and a gray rule information set corresponding to the version number of each offline resource in all the issued offline resources, and the information for determining the candidate offline resource includes: the version number of the currently running offline resource on the client, at least one parameter of the client, and the candidate offline resource satisfy all the following conditions: for each parameter of the client, the parameter is matched with the gray scale rule information corresponding to the parameter, the parameter value of the download time upper limit parameter of the version number of the candidate offline resource is greater than the parameter value of the downloaded time parameter of the version number of the candidate offline resource, and the version number of the candidate offline resource is greater than the version number of the currently running offline resource on the client, wherein the gray scale rule information corresponding to the parameter is the gray scale rule information corresponding to the parameter in the gray scale rule information set corresponding to the version number of the candidate offline resource;
and the issuing module is configured to send the download link of the target offline resource to the client and update the parameter value of the downloaded time parameter of the version number of the target offline resource.
8. The apparatus of claim 7, further comprising:
an issue control module configured to: acquiring access condition information of each target client, wherein the currently running offline resource on the target client is the latest published offline resource in all the published offline resources, and the access condition information of the target client comprises one or more of the following items: the method comprises the steps of obtaining collapse times of offline access pages within a preset statistical time period, collapse times of a target client within the preset statistical time period, click times of preset page elements in the offline access pages within the preset statistical time period, and the number of complaint information of users of the target client aiming at newly issued offline resources within the preset statistical time period; based on all the obtained access situation information, calculating evaluation information of the newly released offline resources, wherein the evaluation information comprises one or more of the following items: the method comprises the following steps of obtaining a collapse rate of an offline access page, a collapse rate of a target client, a click rate of preset page elements in the offline access page, and the total number of complaint information aiming at a newly issued offline resource, wherein for each evaluation information item in the evaluation information, the evaluation information item is obtained based on an access condition information item corresponding to the evaluation information item in access condition information of each target client; updating a parameter value of a download time upper limit parameter of a version number of the latest released offline resource to a new parameter value when the latest released offline resource meets an update condition, wherein evaluation information items in the evaluation information correspond to update condition items in the update condition one to one, and the satisfaction of the latest released offline resource to the update condition is determined based on that, for each evaluation information item in the evaluation information, the evaluation information item satisfies its corresponding update condition item.
9. The apparatus of claim 8, wherein the update condition comprises one or more of the following update condition items: the collapse rate of the offline access page is smaller than a page collapse rate threshold, the collapse rate of the target client is smaller than a client collapse rate threshold, the click rate of preset page elements in the offline access page is larger than a click rate threshold, and the total number of the complaint information aiming at the newly issued offline resource is smaller than a number threshold.
10. The apparatus of claim 8, further comprising:
a downline module configured to: when the latest published offline resource meets the offline condition, identifying the latest published offline resource as an offline state, deleting the version number of the latest published offline resource and deleting the download link of the latest published offline resource, wherein the evaluation information items in the evaluation information correspond to the offline condition items in the offline condition one by one, the latest published offline resource meeting the offline condition is determined based on that each evaluation information item in the evaluation information meets the corresponding offline condition item, and the offline condition comprises one or more of the following offline condition items: the collapse rate of the offline access page is greater than a page collapse rate threshold, the collapse rate of the target client is greater than a client collapse rate threshold, the click rate of preset page elements in the offline access page is less than a click rate threshold, and the total number of the complaint information aiming at the newly issued offline resource is greater than a number threshold.
11. The apparatus of claim 10, further comprising:
the instruction sending module is configured to send a offline instruction to the client to delete the latest issued offline resource on the client when the currently running offline resource on the client is the latest issued offline resource and the latest issued offline resource is identified as an offline state.
12. The apparatus according to any one of claims 7-11, wherein the apparatus further comprises:
the preprocessing module is configured to receive a version number of an already issued offline resource and a download link of the offline resource, which are sent by a management server, and the offline resource includes: the method comprises the steps of obtaining an offline access page, a page related to the offline access page and a network resource related to the offline access page, wherein the offline resource is sent to a content distribution network by a management server in advance so as to store the offline resource on the content distribution network and generate a download link of the offline resource, and the page related to the offline access page and the network resource related to the offline access page are obtained by simulating access of the offline access page deployed on a network server through the management server.
13. A server, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of any one of claims 1 to 6.
14. A storage medium in which instructions, when executed by a processor of a server, enable the server to perform the method of any one of claims 1 to 6.
CN202010072794.8A 2020-01-21 2020-01-21 Resource updating method, device, server and storage medium Active CN111314446B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010072794.8A CN111314446B (en) 2020-01-21 2020-01-21 Resource updating method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010072794.8A CN111314446B (en) 2020-01-21 2020-01-21 Resource updating method, device, server and storage medium

Publications (2)

Publication Number Publication Date
CN111314446A CN111314446A (en) 2020-06-19
CN111314446B true CN111314446B (en) 2021-05-25

Family

ID=71150923

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010072794.8A Active CN111314446B (en) 2020-01-21 2020-01-21 Resource updating method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN111314446B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113037597B (en) * 2021-05-21 2021-08-31 北京每日优鲜电子商务有限公司 Flow monitoring method and device, electronic equipment and computer readable medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103227836A (en) * 2013-05-02 2013-07-31 百度在线网络技术(北京)有限公司 Off-line downloading method and off-line downloading server
CN103701914A (en) * 2013-12-30 2014-04-02 百度在线网络技术(北京)有限公司 Off-line downloading method and device for serial resources
CN106055588A (en) * 2016-05-20 2016-10-26 青岛海信电器股份有限公司 Off-line resource processing method and apparatus
CN108345632A (en) * 2017-12-29 2018-07-31 中国平安财产保险股份有限公司 Call method, device, equipment and the computer readable storage medium of the H5 pages
CN109688209A (en) * 2018-12-13 2019-04-26 合肥高行网络科技有限责任公司 A kind of system of the load based on the Android H5 page

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103391312B (en) * 2013-06-26 2017-06-09 北京奇虎科技有限公司 Resource offline method for down loading and device
JP7145220B2 (en) * 2017-12-22 2022-09-30 マジック リープ, インコーポレイテッド Multistage block mesh simplification

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103227836A (en) * 2013-05-02 2013-07-31 百度在线网络技术(北京)有限公司 Off-line downloading method and off-line downloading server
CN103701914A (en) * 2013-12-30 2014-04-02 百度在线网络技术(北京)有限公司 Off-line downloading method and device for serial resources
CN106055588A (en) * 2016-05-20 2016-10-26 青岛海信电器股份有限公司 Off-line resource processing method and apparatus
CN108345632A (en) * 2017-12-29 2018-07-31 中国平安财产保险股份有限公司 Call method, device, equipment and the computer readable storage medium of the H5 pages
CN109688209A (en) * 2018-12-13 2019-04-26 合肥高行网络科技有限责任公司 A kind of system of the load based on the Android H5 page

Also Published As

Publication number Publication date
CN111314446A (en) 2020-06-19

Similar Documents

Publication Publication Date Title
US6976251B2 (en) Intelligent update agent
CN107968842B (en) News pushing method, device and equipment based on distributed system
US9386119B2 (en) Mobile web adaptation techniques
US20200404046A1 (en) Application Download Method and Apparatus, Application Sending Method and Apparatus, and System
CN105245567B (en) A kind of processing updates the method and server system of request
US11210198B2 (en) Distributed web page performance monitoring methods and systems
CN115086189A (en) Server-free computing oriented service resource elastic expansion method and system
CN113656087A (en) Applet starting method, device, equipment and storage medium
CN110888658A (en) Dynamic method and device for functional module in application program and storage medium
CN111314446B (en) Resource updating method, device, server and storage medium
CN113204368B (en) Application processing method, server and storage medium
CN113360210A (en) Data reconciliation method and device, computer equipment and storage medium
CN116303320A (en) Real-time task management method, device, equipment and medium based on log file
CN111679842A (en) Application program hot update processing method, device and system
CN105681073A (en) Application program updating method and device
CN113326397A (en) Service data processing method and device
CN114385570A (en) Data synchronization method and device, electronic equipment and readable medium
CN114329071A (en) Gesture enhanced display method and device, electronic equipment and storage medium
CN111679850B (en) Application program hot update processing method, device and system
US11526574B2 (en) Server of statistics for optimization of client-server requests
US10721319B1 (en) System and method of targeting internet protocol (IP) notifications to mobile communication devices
CN113836405B (en) Information query method, device and computer readable storage medium
CN115361462B (en) Method and device for updating mobile phone application Cheng Xuwen case
US20230275821A1 (en) Monitoring workflow timing information related to http requests to web servers
CN112861041B (en) Media content display method and device, electronic equipment and storage medium

Legal Events

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