CN115639990A - Offline package access method, system, device, equipment and storage medium - Google Patents

Offline package access method, system, device, equipment and storage medium Download PDF

Info

Publication number
CN115639990A
CN115639990A CN202211105203.8A CN202211105203A CN115639990A CN 115639990 A CN115639990 A CN 115639990A CN 202211105203 A CN202211105203 A CN 202211105203A CN 115639990 A CN115639990 A CN 115639990A
Authority
CN
China
Prior art keywords
target
offline package
configuration file
offline
package
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211105203.8A
Other languages
Chinese (zh)
Inventor
苏川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202211105203.8A priority Critical patent/CN115639990A/en
Publication of CN115639990A publication Critical patent/CN115639990A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The disclosure provides an offline package access method, system, device, equipment and storage medium, and relates to the technical field of internet, in particular to the technical fields of application development, intelligent office and instant messaging. The specific implementation scheme is as follows: acquiring configuration information aiming at a target service function; generating a configuration file corresponding to the target service function by using the configuration information; acquiring specified content generated at least based on the configuration file; the specified content is a target offline package constructed based on a configuration file and a code base of a target service function, or a release address distributed to the constructed target offline package; and generating a universal storage configuration for indicating the issuing address of the target offline package based on the specified content, so that after the target offline package is issued to the issuing address indicated by the universal storage configuration, the client downloads the target offline package to the local according to the universal storage configuration. Therefore, by the scheme, the access efficiency of the off-line package can be improved.

Description

Offline package access method, system, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a method, a system, an apparatus, a device, and a storage medium for accessing an offline package.
Background
Accessing the offline package by the client means that the client downloads the offline package including static resource files such as HTML (HyperText Markup Language) files, CSS (Cascading Style Sheets) files and the like to the local of the client, that is, the access of the offline package is completed. The off-line package is accessed through the client, so that the service function realized by the off-line package can be loaded into the client.
In the related art, when an offline package of any service function is accessed in a client, a person of a service party to which the service function belongs is required to determine an ID (Identity document) of the service function, self-use configuration information such as a domain name and a page route of the service function to compile a configuration file corresponding to the service function with the ID, insert the configuration file into a code library of the service function to compile and package the configuration file into the offline package, and store the offline package to a specified release address, so that the client downloads the offline package from the specified release address, and completes an access process of the offline package.
Disclosure of Invention
The disclosure provides an offline packet access method, system, device, equipment and storage medium.
According to an aspect of the present disclosure, an offline packet access method is provided, which is applied to an offline packet management platform, and includes:
acquiring configuration information aiming at a target service function; the target service function is a service function to be subjected to offline packet access aiming at a client;
generating a configuration file corresponding to the target service function by using the configuration information;
acquiring specified content generated at least based on the configuration file; the specified content is a target offline package constructed based on the configuration file and the code base of the target service function, or a release address distributed to the constructed target offline package;
and generating a universal storage configuration used for indicating the issuing address of the target offline package based on the specified content, so that after the target offline package is issued to the issuing address indicated by the universal storage configuration, the client downloads the target offline package to the local according to the universal storage configuration.
According to another aspect of the present disclosure, an access system for an offline packet is provided, which includes an offline packet management platform and a client;
the offline packet management platform is used for acquiring configuration information aiming at a target service function, wherein the target service function is a service function of a corresponding offline packet to be accessed to a client; generating a configuration file corresponding to the target service function by using the configuration information; acquiring specified content generated at least based on the configuration file, wherein the specified content is a target offline package constructed based on the configuration file and a code base of the target business function, or a release address distributed to the constructed target offline package; generating a general storage configuration used for indicating the issue address of the target offline packet based on the specified content;
and the client is used for downloading the target offline package to the local according to the universal storage configuration after the target offline package is published to the publishing address indicated by the universal storage configuration.
According to another aspect of the present disclosure, an access apparatus for an offline packet is provided, which is applied to an offline packet management platform, and includes:
the first acquisition module is used for acquiring configuration information aiming at the target service function; the target service function is a service function for the client to be subjected to offline packet access;
the first generating module is used for generating a configuration file corresponding to the target service function by using the configuration information;
a second obtaining module, configured to obtain specified content generated based on at least the configuration file; the specified content is a target offline package constructed based on the configuration file and the code base of the target service function, or a release address distributed to the constructed target offline package;
and the second generation module is used for generating a universal storage configuration used for indicating the issuing address of the target offline package based on the specified content, so that the client downloads the target offline package to the local according to the universal storage configuration after the target offline package is issued to the issuing address indicated by the universal storage configuration.
According to another aspect of the present disclosure, there is provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any of the above-mentioned off-line packet access methods.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the above-mentioned offline packet access method.
According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the above-mentioned method of accessing an offline package.
According to the scheme, the off-line package management platform is used for automatically completing construction and release of the off-line package, and the access efficiency of the off-line package can be improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a flow chart of an access method for an offline package according to the present disclosure;
FIG. 2 is a flowchart of step S104 implementing the present disclosure;
fig. 3 is a schematic diagram of a specific example of an access method for an offline packet according to the present disclosure;
fig. 4 is a schematic structural diagram of an access system for offline packets according to the present disclosure;
fig. 5 is a schematic structural diagram of an access device for offline packets according to the present disclosure;
fig. 6 is a block diagram of an electronic device for implementing an offline packet access method according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In the related art, when an offline package of any service function is accessed in a client, a person of a service party to which the service function belongs is required to determine an ID of the service function, self-writes a configuration file corresponding to the service function with the ID by using configuration information such as a domain name and a page route of the service function, inserts the configuration file into a code library of the service function, compiles and packages the configuration file into an offline package, and stores the offline package to a specified release address.
However, there are several problems in accessing the offline package:
(1) The link integrally connected to the offline package is long, a person who needs to find a service party to which the service function belongs searches the ID of the service function, and then the person who needs the service party manually applies for a new offline package, so that a large amount of communication cost and labor waste are caused;
(2) Personnel needing a service party can write a configuration file of an offline package and insert the configuration file into a code library according to the resource matching rule of the offline package, and the problem that the personnel needing the service party cannot write the configuration file or wrongly write a routing configuration item in the configuration file is solved;
(3) The whole access and release process is relatively dispersed, and a unified platform management offline package is lacked.
Based on the above, in order to improve the access efficiency of the offline package, embodiments of the present disclosure provide an access method, system, apparatus, device, and storage medium for an offline package.
First, an access method for an offline package provided in the embodiment of the present disclosure is described below.
The off-line packet access method provided by the embodiment of the disclosure is applied to an off-line packet management platform. In a specific application, the offline packet management platform for implementing the offline packet access method may be an offline packet management platform in a terminal device, where the terminal device may be a tablet computer, a desktop computer, or the like; moreover, the offline package management platform may also be a developer background or a development platform, which is not limited in this application.
Specifically, the execution subject of the offline packet access method may be an offline packet access device. For example, when the access method of the offline package is applied to the terminal device, the access device of the offline package may be an offline package management client; of course, the access device of the offline package may also be a plug-in the existing offline package management client, for example: and the plug-in is used for creating and publishing the offline package. For example, when the off-line package access method is applied to a server, the off-line package access device may be a computer program running in the server, and the computer program may be used for creating and issuing the off-line package.
The method for accessing the offline packet provided by the embodiment of the disclosure may include the following steps:
acquiring configuration information aiming at a target service function; the target service function is a service function to be subjected to offline packet access aiming at a client;
generating a configuration file corresponding to the target service function by using the configuration information;
acquiring specified content generated at least based on the configuration file; the specified content is a target offline package constructed based on the configuration file and the code base of the target service function, or a release address distributed to the constructed target offline package;
and generating a universal storage configuration used for indicating the issuing address of the target offline package based on the specified content, so that after the target offline package is issued to the issuing address indicated by the universal storage configuration, the client downloads the target offline package to the local according to the universal storage configuration.
According to the scheme provided by the disclosure, the generation of the configuration file is automatically completed through the offline package management platform, the target offline package constructed at least based on the configuration file or the issuing address of the constructed target offline package is obtained, and the universal storage configuration used for indicating the issuing address of the target offline package is generated. When the client accesses the target offline package, the client only needs to acquire the general storage configuration from the offline package management platform, so as to download the target offline package to the local from the release address indicated by the general storage configuration, and complete the access of the offline package. Therefore, according to the scheme, the off-line package management platform is used for automatically completing construction and release of the off-line package, and the access efficiency of the off-line package can be improved.
The following describes an access method for an offline package according to an embodiment of the present disclosure with reference to the accompanying drawings.
As shown in fig. 1, the method for accessing an offline package provided in the embodiment of the present disclosure is applied to an offline package management platform, and may include steps S101 to S104:
s101, acquiring configuration information aiming at a target service function; the target service function is a service function for the client to be subjected to offline packet access;
it can be understood that the target service function is a service function for a client to perform offline packet access, that is, by accessing an offline packet corresponding to the target service function, the target service function implemented by the offline packet can be loaded into the client. Illustratively, the business function may be an attendance function, an approval function, and so on. Illustratively, if the client needs to access the attendance service function through the offline packet, the target service function is the attendance service function. The client may be an APP (Application), or of course, may be a web page-like client; the specific type of the client is not limited in the present application, for example, the client may be a financial client, an instant messaging client, a news client, or the like.
Moreover, since the offline package corresponding to the target service function is constructed by the configuration file and the code library corresponding to the target service function, the configuration information for the target service function can be firstly acquired, and then the configuration file is generated by using the configuration information. In practical application, the staff of the service party may fill in the configuration information of the target service function in the configuration interface provided by the offline package management platform, and then the offline package management platform may obtain the configuration information submitted by the staff of the service party. For example, the configuration information may be a domain name, a port number, and a page route set for accessing a page corresponding to the target service function in the client, and the like.
In addition, when the target service function needs to be loaded to the client, a relevant administrator of the offline package management platform may register in advance for the target service function in the offline package management platform, and after the registration is completed, a functional entity corresponding to the target service function may be displayed in the offline package management platform, that is, the functional identification information corresponding to the target service function is displayed, so that the functional entity is operated to implement an operation on the target service function, for example: calling out an interface for filling configuration information of the target service function, checking function introduction contents of the target service function, and the like.
S102, generating a configuration file corresponding to the target service function by using the configuration information;
it can be understood that, after the configuration information is obtained in step S101, a configuration file corresponding to the target service function may be generated, so that after the subsequent client downloads the offline package, the configuration file in the offline package may be used to perform page rendering on the code library content of the target service function.
Optionally, in an implementation manner, generating a configuration file corresponding to the target service function by using the configuration information may include:
and calling a preset template engine for generating a configuration file of any business function, so that the template engine generates the configuration file corresponding to the target business function by taking the configuration information as the content to be loaded when the configuration file is generated.
The template engine may analyze the file content of the configuration file corresponding to each business function in advance for a developer, that is, analyze the variable content and the common content in each configuration file, and write a functional program for generating the configuration file through a predetermined programming language based on the analysis result, where the variable content may include the configuration information. After receiving the configuration information, the template engine may generate a configuration file including the configuration information by using the configuration information as variable content.
It can be understood that, by using the template of the configuration file provided by the template engine, loading the configuration information into the template to generate the configuration file corresponding to the target business function, the configuration file of the offline package can be automatically generated, and compared with manually writing the configuration file, the generation speed of the configuration file can be increased.
S103, acquiring specified content generated at least based on the configuration file; the specified content is a target offline package constructed based on the configuration file and the code base of the target service function, or a release address distributed to the constructed target offline package;
in this embodiment, after the configuration file corresponding to the target service function is generated in step S102, the configuration file and the code library of the target service function may be used to construct a target offline package, that is, the configuration file is inserted into the code library of the target service function and compiled and packaged into an offline package.
In practical application, in an optional implementation manner, a target offline package may be constructed by using a designated processing platform having offline package constructing and issuing functions, and the constructed target offline package may be fed back to the offline package management platform, or the constructed target offline package is issued, and an issuing address of the target offline package is fed back to the offline package management platform. At this time, the offline package management platform may obtain the target offline package, or obtain an assigned issue address for the constructed target offline package.
In another optional implementation manner, the offline package management platform may also not use a designated processing platform, and at this time, the offline package management platform may obtain a code library of the target service function, and construct the target offline package based on the configuration file and the code library of the target service function, so as to obtain the designated content of the target offline package, which is also reasonable.
It should be noted that the code library of the target service function includes a static resource file that needs to be utilized when the target service function is loaded to the client. In practical application, the code base of the target business function may be stored in a code base hosting platform, and when the offline package is constructed, the code base of the target business function may be acquired from the code base hosting platform.
And S104, generating a universal storage configuration used for indicating the issuing address of the target offline package based on the specified content, so that after the target offline package is issued to the issuing address indicated by the universal storage configuration, the client downloads the target offline package to the local according to the universal storage configuration.
It is understood that after the specified content is obtained through step S103, a general storage configuration for indicating the issue address of the target offline package may be generated based on the specified content, that is, based on the target offline package or an assigned issue address for the target offline package. The general storage configuration may be in a form of key value pairs, and the recorded ID of the target service function corresponding to the target offline packet and the issue address of the target offline packet. Therefore, after the target offline package is issued to the issuing address indicated by the universal storage configuration, the client can download the target offline package from the issuing address to the local.
Optionally, in an implementation, generating a general storage configuration for indicating the issue address of the target offline package based on the specified content may include steps A1-A2:
a1, if the specified content is the target offline package, acquiring a release address pre-allocated to the target offline package, and generating a general storage configuration for indicating the release address of the target offline package by using the acquired release address;
and A2, if the specified content is the issued address allocated to the constructed target offline package, taking the acquired issued address as the issued address of the target offline package, and generating a general storage configuration for indicating the issued address of the target offline package.
It is to be understood that, if the specified content acquired in step S103 is the target offline packet, a general storage configuration indicating the issue address of the target offline packet may be generated by using the issue address previously allocated to the target offline packet. For example, the release address pre-allocated to the target offline package may be a release address pre-set by a person of a service party, where the offline package management platform releases the target offline package.
If the specified content acquired in step S103 is the issue address assigned to the constructed target offline package, that is, the specified processing platform issues the issue address of the target offline package, a general storage configuration for indicating the issue address of the target offline package may be generated according to the issue address acquired by the offline management platform. And generating a universal storage configuration for indicating the issuing address of the target offline package by utilizing the issuing address of the specified processing platform for actually issuing the target offline package, so that the client can download the target offline package from the issuing address indicated by the universal storage configuration.
According to the scheme provided by the disclosure, the generation of the configuration file is automatically completed through an offline package management platform, the target offline package constructed at least based on the configuration file or the issuing address of the constructed target offline package is obtained, and the universal storage configuration used for indicating the issuing address of the target offline package is generated. When the client accesses the target offline package, the client only needs to acquire the general storage configuration from the offline package management platform, so that the target offline package is downloaded to the local from the release address indicated by the general storage configuration, and the access of the offline package is completed. Therefore, according to the scheme, the off-line package management platform is used for automatically completing construction and release of the off-line package, and the access efficiency of the off-line package can be improved.
Optionally, in another embodiment of the present disclosure, the acquiring, in step S103, the specified content generated at least based on the configuration file may include:
acquiring specified content generated at least based on the configuration file from a specified processing platform;
the specified processing platform is used for acquiring the configuration file from the offline package management platform, acquiring the code base of the target service function from the code hosting platform, constructing a target offline package by using the configuration file and the code base, and determining the specified content by using the target offline package.
In this embodiment, the specified processing platform may be a pipeline platform. The pipeline platform can be used for automatically realizing compiling of a code base and building of an offline package. The pipeline platform acquires the configuration file from the offline package management platform, acquires the code base of the target business function from the code hosting platform, and constructs the target offline package by using the configuration file and the code base. After a target offline package is constructed, the constructed target offline package can be fed back to the offline package management platform, and at the moment, the specified content acquired by the offline package management platform is the target offline package; or, the constructed target offline package is released, and a release address of the target offline package is fed back to the offline package management platform, where the specified content acquired by the offline package management platform is a release address allocated to the constructed target offline package.
In addition, after the designated processing platform constructs a target offline package by using the configuration file and the code library, the target offline package construction record may be fed back to the offline package management platform, so that the offline package management platform records the constructed offline package, and executes a corresponding offline package issuing task or offline package version rollback, and the like based on the offline package construction record.
Correspondingly, in this embodiment, the method further includes:
determining the ID of the target service function, and establishing the corresponding relation between the configuration file and the ID;
the appointed processing platform is also used for receiving the ID of the target business function given by business side personnel and the download address of the code library in the code hosting platform;
the specified processing platform acquires the configuration file from the offline package management platform, and the configuration file comprises the following steps:
requesting the configuration file corresponding to the ID in the corresponding relationship from the offline package management platform;
it can be understood that, by establishing the corresponding relationship between the configuration file and the ID of the target business function, after receiving the ID of the target business function given by the business party personnel, the specified processing platform can request the configuration file corresponding to the ID in the corresponding relationship from the offline package management platform.
The method for acquiring the code library of the target service function from the code hosting platform by the appointed processing platform comprises the following steps:
and downloading the code library of the target business function from the code hosting platform by using the received download address.
It is understood that, after receiving the ID of the target business function given by the business party person and the download address of the code library at the code hosting platform, the designated processing platform may request the configuration file corresponding to the ID in the corresponding relationship from the offline package management platform and download the code library of the target business function from the download address of the code hosting platform, so as to construct the target offline package by using the configuration file and the code library.
Optionally, in an implementation manner, the specified processing platform constructs a target offline package by using the configuration file and the code library, and may include steps B1 to B2:
b1, compiling the code base to obtain a compiled file;
and B2, packaging the compiled file and the configuration file to obtain a target offline package.
It is understood that after the code base of the target business function is obtained, the code base can be compiled to convert the content of the code base into an executable file that can be run by the computer. Therefore, after the client downloads the offline package, the compiled file contained in the offline package can be loaded to the client.
It is to be appreciated that the decoupling of the configuration file from the code base can be achieved by compiling the code base and packaging the configuration file, rather than inserting the configuration file into the code base and compiling and packaging the configuration file. Therefore, if the configuration file is configured wrongly, after the configuration file is updated, the code base inserted with the updated configuration file does not need to be compiled again and packaged, and the compiled file and the updated configuration file only need to be packaged again, so that the construction efficiency of the off-line package is improved.
Therefore, according to the scheme, the construction of the offline package is automatically completed by using the appointed processing platform, so that the appointed content at least generated based on the configuration file is obtained from the appointed processing platform, and the labor waste can be reduced. Moreover, the construction efficiency of the offline package is further improved by compiling the code base and then packaging the code base and the configuration file.
Optionally, in another embodiment of the present disclosure, as shown in fig. 2, the step S104 of downloading the target offline package to the local by the client according to the general storage configuration may include steps S1041 to S1042:
s1041, if the historical use frequency of the target service function is detected to meet the preset pre-download condition, after the client is started, downloading the target offline package to the local according to the general storage configuration;
s1042, if it is detected that the historical usage frequency of the target service function does not meet the predetermined pre-download condition, downloading the target offline package to the local according to the general storage configuration when the target service function is accessed.
In this embodiment, the predetermined pre-download condition may be that a historical usage frequency of the target service function reaches a preset frequency value, and the historical usage frequency may be a usage frequency of the target service function in a preset historical period. Illustratively, the preset history period may be the previous week, the previous month, or the like. For example, if the preset history period is the previous week and the predetermined pre-download condition is that the history use frequency reaches 100 times/week, then if it is detected that the history use frequency of the target service function reaches 120 times/week and the pre-download condition is reached, after the client is started, the target offline package is downloaded locally according to the general storage configuration. And if the historical use frequency of the target service function is detected to be 80 times/week and the pre-downloading condition is not met, downloading the target offline package to the local according to the general storage configuration when the target service function is accessed.
In addition, it should be noted that, if there are a plurality of service functions to be accessed by the client, the predetermined pre-download condition may also be that the historical usage frequency of the service functions in the plurality of service functions is ranked from high to low. For example, if there are 10 service functions to be accessed by the client through the offline package, the offline package corresponding to the first 5 service functions with the historical usage frequency sorted from high to low among the 10 service functions is determined as the offline package that needs to be pre-downloaded.
It can be understood that, by determining the offline package with higher historical usage frequency as the offline package meeting the predetermined pre-download condition, and downloading the offline package to the local in advance after the client is started, instead of downloading the offline package to the local when the target service function is accessed, the time consumed for loading the service function can be reduced, thereby improving the response speed of the service function.
Therefore, the response speed of the service function can be improved through the scheme.
For better understanding of the present solution, the following describes an access method for an offline package provided in the embodiments of the present disclosure with reference to a specific example.
Fig. 3 shows a schematic diagram of a specific example of an offline package access method, which includes four processes of registering an application (corresponding to the above service function), configuring an offline package, issuing an offline package, and accessing an offline package by a client, and relates to multi-end operations of an offline package management platform, a pipeline platform, and a client.
The process of registering the application comprises the following steps:
(1) Acquiring an application list from an offline package management platform;
when the manager of the offline package management platform needs to create the offline package, the enterprise background service interface is called, and all application lists are displayed by a pull-down menu for the manager to select.
(2) The manager selects the target application and registers an application entity (corresponding to the functional entity above) of the target application;
the administrator selects a target application (corresponding to the target business function in the above) from the pull-down menu, and clicks an application entity that registers the target application. After the registration is completed, the application entity corresponding to the target application, that is, the application identification information corresponding to the target application, may be displayed in the offline package management platform. Meanwhile, an administrator (corresponding to the business side personnel above) of the application may be set, i.e., an actual maintainer is set for the newly created offline package.
(3) Newly adding the general storage configuration of the application entity;
and generating an ID (global unique value) of the application entity according to the existing rule, and adding a universal storage configuration corresponding to the application entity in the universal storage configuration of the offline packet management platform, namely recording the ID of the application entity and allocating the issuing address of the corresponding offline packet to the application entity in advance.
The process for configuring the offline package comprises the following steps:
(1) Inputting configuration information;
and manually inputting configuration information such as the domain name, the page route and the like of the application by a manager through a form on the offline package management platform.
(2) Generating a configuration file;
and after submitting the form to a server end of the offline package management platform, automatically generating a corresponding offline package configuration file by calling a template engine for generating the configuration file. After the configuration file is generated, the configuration file is directly stored in the offline package management platform without being downloaded to a code library.
Since the offline package resource matching rules in the offline package configuration files may require a long time for a manager unfamiliar with the regular matching to configure, the time consumed for manually writing the configuration files can be reduced by automatically generating the corresponding offline package configuration files by using the template engine.
The process of issuing the offline package comprises the following steps:
(1) Constructing an offline packet by a Pipeline platform;
before the Pipeline platform constructs the offline package, the configuration file corresponding to the target application is pulled from the offline package management platform, the code library of the target application is pulled from the code library hosting platform, and then the construction operation is executed. When the offline package is constructed, the code library is compiled first, the compiled file is obtained and then packaged with the configuration file to form the offline package, and decoupling of the configuration file and the code library is achieved.
(2) The Pipeline platform feeds the offline package construction record back to the offline package management platform;
after the offline package is constructed, the offline package construction records are fed back to the offline package management platform, so that managers can check the offline package construction records applied to various environments (development environments, test environments and the like) in the offline package management platform.
(3) The offline package management platform stores the received offline package construction record;
(4) Triggering a distributed coil in a Pipeline platform or an off-line packet management platform;
after the offline package is constructed, the Pipeline platform may send the offline package to the offline package management platform, so that the offline package management platform issues the offline package, or directly issue the offline package in the Pipeline platform, and send the issue address to the offline package management platform.
(5) Updating the general storage configuration;
and updating the general storage configuration of the offline packet according to the actual issuing address of the offline packet. In addition, the Pipeline platform and the offline package management platform also support offline package operation.
The process of accessing the offline package by the client comprises the following steps:
(1) The client pulls the general storage configuration in the offline package management platform;
(2) Calculating top5 (top five) application rankings;
and calculating the ranking of the use frequency of each application module in the client from high to low, and determining the top5 applications with the use frequency from high to low.
(3) Acquiring an offline package applied to top 5;
and according to the acquired general storage configuration, downloading an offline package of the top5 application from an offline package issuing address indicated by the general storage configuration.
(4) Deleting offline packets of non-top 5 applications;
and deleting the off-line packet of the non-top 5 application loaded in the client so as to improve the response speed of the client.
In addition, the offline package management platform supports member management, and only personnel with corresponding offline package management authority can perform related operation of offline packages. Support the addition and deletion of persons with administrative rights.
Therefore, according to the scheme, the offline package is automatically constructed by using the pipeline platform, so that the development cost can be reduced; the configuration file of the off-line package is automatically generated through the off-line package management platform, so that the time consumption of application access to the off-line package can be reduced, and the off-line package access efficiency is improved; the personnel with the corresponding offline package management authority performs related operation of offline packages, and the offline packages are subjected to authority isolation, so that the risk of misoperation can be reduced; by storing the offline package construction records, the construction history applied to different environments can be checked on the offline package management platform, and the release tasks of different environments can be directly executed on the offline package management platform; by pre-downloading the offline package with higher use frequency, the waiting process of manual downloading after clicking the application can be reduced, and the response speed of the application is improved.
Corresponding to the above method embodiment, the present disclosure further provides an offline packet access system, as shown in fig. 4, including an offline packet management platform 410 and a client 420;
the offline package management platform 410 is configured to obtain configuration information for a target service function, where the target service function is a service function of a corresponding offline package to be accessed to a client; generating a configuration file corresponding to the target service function by using the configuration information; acquiring specified content generated at least based on the configuration file, wherein the specified content is a target offline package constructed based on the configuration file and a code base of the target business function, or a release address distributed to the constructed target offline package; generating a general storage configuration used for indicating the issue address of the target offline packet based on the specified content;
the client 420 is configured to download the target offline package to the local according to the general storage configuration after the target offline package is issued to the issue address indicated by the general storage configuration.
Optionally, the system further comprises: designating a processing platform;
the specified processing platform is used for acquiring the configuration file from the offline package management platform, acquiring the code library of the target business function from a code hosting platform, constructing a target offline package by using the configuration file and the code library, and determining the specified content by using the target offline package;
the offline package management platform is used for acquiring the specified content generated at least based on the configuration file from the specified processing platform.
For specific function implementation of the offline package management platform and the client included in the system, reference may be made to corresponding contents in the foregoing method embodiments, which are not described herein again.
Correspondingly, in the foregoing method embodiment, an embodiment of the present disclosure further provides an offline packet access device, which is applied to an offline packet management platform, and as shown in fig. 5, the device includes:
a first obtaining module 510, configured to obtain configuration information for a target service function; the target service function is a service function to be subjected to offline packet access aiming at a client;
a first generating module 520, configured to generate a configuration file corresponding to the target service function by using the configuration information;
a second obtaining module 530, configured to obtain specified content generated based on at least the configuration file; the specified content is a target offline package constructed based on the configuration file and the code base of the target service function, or a release address distributed to the constructed target offline package;
a second generating module 540, configured to generate, based on the specified content, a universal storage configuration used for indicating an issue address of the target offline package, so that after the target offline package is issued to the issue address indicated by the universal storage configuration, the client downloads the target offline package to the local according to the universal storage configuration.
Optionally, the first generating module is specifically configured to:
and calling a preset template engine for generating a configuration file of any business function, so that the template engine generates the configuration file corresponding to the target business function by taking the configuration information as the content to be loaded when the configuration file is generated.
Optionally, the second obtaining module is specifically configured to:
acquiring specified content generated at least based on the configuration file from a specified processing platform;
the specified processing platform is used for acquiring the configuration file from the offline package management platform, acquiring the code base of the target business function from the code hosting platform, constructing a target offline package by using the configuration file and the code base, and determining the specified content by using the target offline package.
Optionally, the apparatus further comprises:
the determining module is used for determining the ID of the target service function and establishing the corresponding relation between the configuration file and the ID;
the appointed processing platform is also used for receiving the ID of the target business function given by business personnel and the download address of the code library on the code hosting platform;
the method for acquiring the configuration file from the offline package management platform by the appointed processing platform comprises the following steps:
requesting the configuration file corresponding to the ID in the corresponding relation from the offline package management platform;
the method for acquiring the code base of the target business function from the code hosting platform by the appointed processing platform comprises the following steps:
and downloading the code library of the target business function from the code hosting platform by using the received download address.
Optionally, the specifying processing platform, using the configuration file and the code library, constructs a target offline package, including:
compiling the code base to obtain a compiled file;
and packaging the compiled file and the configuration file to obtain a target offline package.
Optionally, the second generating module includes:
the first generation submodule is used for acquiring a pre-distributed issuing address for the target offline package if the specified content is the target offline package, and generating a general storage configuration for indicating the issuing address of the target offline package by using the acquired issuing address;
and the second generation submodule is used for generating a universal storage configuration for indicating the issuing address of the target off-line packet by taking the acquired issuing address as the issuing address of the target off-line packet if the specified content is the issuing address allocated to the constructed target off-line packet.
Optionally, the downloading, by the client, the target offline package to the local according to the general storage configuration includes:
if the historical use frequency of the target service function is detected to meet a preset pre-downloading condition, after the client is started, the target offline package is downloaded to the local according to the general storage configuration;
and if the historical use frequency of the target service function is detected not to meet the preset pre-downloading condition, downloading the target offline package to the local according to the general storage configuration when the target service function is accessed.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
An electronic device provided by the present disclosure may include: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of any of the above-described off-line packet access methods.
The present disclosure provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any above-mentioned method for accessing an offline package.
In a further embodiment provided by the present disclosure, there is also provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of any of the above-described methods of access to an offline package.
FIG. 6 illustrates a schematic block diagram of an example electronic device 600 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 6, the apparatus 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 602 or a computer program loaded from a storage unit 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The calculation unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
A number of components in the device 600 are connected to the I/O interface 605, including: an input unit 606 such as a keyboard, a mouse, or the like; an output unit 607 such as various types of displays, speakers, and the like; a storage unit 608, such as a magnetic disk, optical disk, or the like; and a communication unit 609 such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 601 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 601 performs the various methods and processes described above, such as an access method to an offline package. For example, in some embodiments, the method of access to an offline package may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 600 via the ROM 602 and/or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the above described method of accessing an offline package may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the off-line package access method by any other suitable means (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server combining a blockchain.
It should be understood that various forms of the flows shown above, reordering, adding or deleting steps, may be used. For example, the steps described in the present disclosure may be executed in parallel, sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (13)

1. An off-line packet access method is applied to an off-line packet management platform and comprises the following steps:
acquiring configuration information aiming at a target service function; the target service function is a service function to be subjected to offline packet access aiming at a client;
generating a configuration file corresponding to the target service function by using the configuration information;
acquiring specified content generated at least based on the configuration file; the specified content is a target offline package constructed based on the configuration file and the code base of the target business function, or a release address distributed to the constructed target offline package;
and generating a universal storage configuration used for indicating the issuing address of the target offline package based on the specified content, so that after the target offline package is issued to the issuing address indicated by the universal storage configuration, the client downloads the target offline package to the local according to the universal storage configuration.
2. The method of claim 1, wherein the generating a configuration file corresponding to the target service function by using the configuration information comprises:
and calling a preset template engine for generating a configuration file of any business function, so that the template engine generates the configuration file corresponding to the target business function by taking the configuration information as the content to be loaded when the configuration file is generated.
3. The method of claim 1, wherein the obtaining specified content generated based at least on the configuration file comprises:
acquiring specified content generated at least based on the configuration file from a specified processing platform;
the specified processing platform is used for acquiring the configuration file from the offline package management platform, acquiring the code base of the target business function from the code hosting platform, constructing a target offline package by using the configuration file and the code base, and determining the specified content by using the target offline package.
4. The method of claim 3, further comprising:
determining the ID of the target service function, and establishing the corresponding relation between the configuration file and the ID;
the appointed processing platform is also used for receiving the ID of the target business function given by business side personnel and the download address of the code library on the code hosting platform;
the step of acquiring the configuration file from the offline package management platform by the appointed processing platform comprises the following steps:
requesting the configuration file corresponding to the ID in the corresponding relation from the offline package management platform;
the method for acquiring the code library of the target business function from the code hosting platform by the appointed processing platform comprises the following steps:
and downloading the code library of the target business function from the code hosting platform by using the received download address.
5. The method of claim 3, wherein the specified processing platform constructs a target offline package using the configuration file and the code library, comprising:
compiling the code base to obtain a compiled file;
and packaging the compiled file and the configuration file to obtain a target offline package.
6. The method of claim 1, wherein the generating, based on the specified content, a generic storage configuration for indicating an issue address of the target offline package comprises:
if the specified content is the target offline package, acquiring a release address pre-allocated to the target offline package, and generating a general storage configuration for indicating the release address of the target offline package by using the acquired release address;
and if the specified content is the issuing address distributed for the constructed target offline package, generating a general storage configuration for indicating the issuing address of the target offline package by taking the acquired issuing address as the issuing address of the target offline package.
7. The method of claim 1, wherein the client locally downloading the target offline package according to the generic storage configuration comprises:
if the historical use frequency of the target service function is detected to meet a preset pre-downloading condition, after the client is started, the target offline package is downloaded to the local according to the general storage configuration;
and if the historical use frequency of the target service function is detected to be not in accordance with the preset pre-downloading condition, downloading the target offline package to the local according to the general storage configuration when the target service function is accessed.
8. An access system of an offline packet comprises an offline packet management platform and a client;
the offline packet management platform is used for acquiring configuration information aiming at a target service function, wherein the target service function is a service function of a corresponding offline packet to be accessed to a client; generating a configuration file corresponding to the target service function by using the configuration information; acquiring specified content generated at least based on the configuration file, wherein the specified content is a target offline package constructed based on the configuration file and a code base of the target business function, or a release address distributed to the constructed target offline package; generating a general storage configuration used for indicating the issue address of the target offline packet based on the specified content;
and the client is used for downloading the target offline package to the local according to the universal storage configuration after the target offline package is published to the publishing address indicated by the universal storage configuration.
9. The system of claim 8, further comprising: designating a processing platform;
the specified processing platform is used for acquiring the configuration file from the offline package management platform, acquiring the code base of the target business function from the code hosting platform, constructing a target offline package by using the configuration file and the code base, and determining the specified content by using the target offline package;
the offline package management platform is used for acquiring the specified content generated at least based on the configuration file from the specified processing platform.
10. An access device of off-line packet, which is applied to off-line packet management platform, includes:
the first acquisition module is used for acquiring configuration information aiming at the target service function; the target service function is a service function to be subjected to offline packet access aiming at a client;
the first generating module is used for generating a configuration file corresponding to the target service function by using the configuration information;
a second obtaining module, configured to obtain specified content generated based on at least the configuration file; the specified content is a target offline package constructed based on the configuration file and the code base of the target business function, or a release address distributed to the constructed target offline package;
and the second generation module is used for generating a universal storage configuration used for indicating the issuing address of the target offline package based on the specified content, so that the client downloads the target offline package to the local according to the universal storage configuration after the target offline package is issued to the issuing address indicated by the universal storage configuration.
11. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
12. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-7.
13. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-7.
CN202211105203.8A 2022-09-09 2022-09-09 Offline package access method, system, device, equipment and storage medium Pending CN115639990A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211105203.8A CN115639990A (en) 2022-09-09 2022-09-09 Offline package access method, system, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211105203.8A CN115639990A (en) 2022-09-09 2022-09-09 Offline package access method, system, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115639990A true CN115639990A (en) 2023-01-24

Family

ID=84941461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211105203.8A Pending CN115639990A (en) 2022-09-09 2022-09-09 Offline package access method, system, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115639990A (en)

Similar Documents

Publication Publication Date Title
CN111177231A (en) Report generation method and report generation device
US8539514B2 (en) Workflow integration and portal systems and methods
US9590859B2 (en) Discovering resources of a distributed computing environment
US10044837B2 (en) Generation and distribution of named, definable, serialized tokens
CN111917587B (en) Method for network service management by using service system and service system
CN111427971B (en) Business modeling method, device, system and medium for computer system
CN111400061A (en) Data processing method and system
US10055393B2 (en) Distributed version control of orchestration templates
CN111125064B (en) Method and device for generating database schema definition statement
CN115082247B (en) System production method, device, equipment, medium and product based on label library
CN111444077A (en) Method and device for generating flow node test data
CN115168341A (en) Service processing method, system, medium and equipment
CN112947919A (en) Method and device for constructing service model and processing service request
CN113448570A (en) Data processing method and device, electronic equipment and storage medium
CN112926008A (en) Method and device for generating form page, electronic equipment and storage medium
CN111435306A (en) Code management method and device
CN115639990A (en) Offline package access method, system, device, equipment and storage medium
CN109697141B (en) Method and device for visual testing
CN111158649A (en) Method and device for configuring multi-level parameters
CN116775030B (en) Method and device for creating security baseline
CN114201214A (en) File generation method, file generation device, electronic equipment, medium and program product
CN114817073A (en) Automated testing method, apparatus, device, medium, and program product
CN114461527A (en) Test item management method, test item management apparatus, test item management device, storage medium, and program product
CN117112081A (en) Scheduling management method, device, equipment and medium of Python script
CN112783753A (en) Test method and device for stream data processing system

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