WO2020248727A1 - Management method and device for software module, and server - Google Patents
Management method and device for software module, and server Download PDFInfo
- Publication number
- WO2020248727A1 WO2020248727A1 PCT/CN2020/086877 CN2020086877W WO2020248727A1 WO 2020248727 A1 WO2020248727 A1 WO 2020248727A1 CN 2020086877 W CN2020086877 W CN 2020086877W WO 2020248727 A1 WO2020248727 A1 WO 2020248727A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- software module
- server
- intranet
- intranet client
- download
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Definitions
- the present invention relates to the technical field of financial technology (Fintech), and in particular to a method, device and server for managing software modules.
- the common software module management methods mainly include NPM, which is the official solution of the javascript software module management tool.
- NPM has relatively complete javascript software module resources, the access speed of domestic users is relatively slow, which is not conducive to software development.
- an application usually has multiple release versions. Before a certain version of the application is released, testers need to obtain the existing software modules, and for the released software modules, they need to conduct a comprehensive test of the version of the application.
- the current NPM is not suitable for managing software modules applicable to internal testing of enterprises, and the security is not high, and it cannot meet the needs of managing internal testing of enterprises.
- the present invention provides a software module management method, device and server, which are used to solve the technical problems of low software management efficiency and low security in the prior art.
- an embodiment of the present invention provides a software module management method, the method includes:
- the first server obtains the download request of the first software module sent by the intranet client;
- the first server determines that the first server does not store the first software module, it obtains the first software module from the second server through the external network, and generates the internal network of the first software module.
- the first server returns the first version information of the first software module and the first download address to the intranet client, so that the intranet client can use the
- the version information verifies the version of the first software module, and after the verification is successful, downloads the first software module from the first server according to the first download address.
- the method before the first server obtains the download request of the software module sent by the intranet client, the method further includes:
- the first server confirms whether the first software module is stored according to the stored version information of the software module
- the first server returns the query result of the first software module to the intranet client.
- the method further includes:
- the first server maps the first access address to the second access address of the intranet
- the first server returns the second access address to the intranet client, so that the intranet client dynamically compiles the first software module according to the second access address.
- the first server obtains the first software module from a second server through an external network, and generates a first download address and first version information of the first software module on the internal network, Also includes:
- first server determines that the first software module and the second software module are dependent
- the first server sends the second download address and second version information of the second software module in the intranet to the intranet client, so that the intranet client downloads the second software module from the first download address according to the second download address. Download the second software module from the server.
- the method further includes:
- the first server After successfully verifying the third version information of the third software module, the first server stores the third software module in the first server, and generates the third software module on the intranet. Three download addresses, so that the second intranet client terminal downloads the third software module according to the third download address.
- the method further includes:
- the first server searches the external network whether the first software module is updated
- the first server determines that the first software module is updated, download the updated first software module, and update the first version information of the first software module and the first download address;
- the first server sends an update message of the first software module to the intranet client, so that the intranet client obtains the updated first software module according to the updated first download address.
- the method further includes:
- the first server determines that the URL address of the resource that needs to be called in the first software module is updated, it updates the URL address of the resource that needs to be called in the first software module stored in the first server;
- the first server notifies the intranet client to update the URL address of the resource to be called in the first software module.
- a software module management apparatus provided by an embodiment of the present invention includes:
- the transceiver unit is used to obtain the download request of the first software module sent by the intranet client;
- the processing unit is configured to, if it is determined that the first software module is not stored in the first server, obtain the first software module from the second server through the external network, and generate the internal network of the first software module The first download address and the first version information of the first software module;
- the transceiver unit is configured to return the first version information of the first software module and the first download address to the intranet client, so that the intranet client can be
- the first version information verifies the version of the first software module, and after the verification is successful, downloads the first software module from the first server according to the first download address.
- the transceiver unit is further configured to obtain a query request of the first software module sent by the intranet client;
- the processing unit is configured to confirm whether the first software module is stored according to the stored version information of the software module
- the transceiver unit is further configured to return the query result of the first software module to the intranet client.
- the transceiver unit is further configured to obtain the dynamic compilation request of the first software module sent by the intranet client; and obtain the dynamic compilation resource of the first software module on the second external network.
- the processing unit is configured to map the first access address to a second access address of the intranet
- the transceiver unit is further configured to return the second access address to the intranet client, so that the intranet client dynamically compiles the first software module according to the second access address.
- the processing unit is configured to, if it is determined that the first software module and the second software module are dependent, download the second software module from the second server through an external network, and Generating a second download address and second version information of the second software module in the intranet; sending the second download address and second version information of the second software module in the intranet to the intranet client, So that the intranet client downloads the second software module from the first server according to the second download address.
- the transceiver unit is further configured to obtain a release request of the third software module of the intranet client;
- the processing unit is further configured to store the third software module in the first server after the third version information of the third software module is successfully verified, and generate the third software module in The third download address of the Internet, so that the second intranet client downloads the third software module according to the third download address.
- the processing unit is further configured to find whether the first software module is updated on the external network; if it is determined that the first software module is updated, download the updated first software module , And update the first version information of the first software module and the first download address;
- the transceiver unit is further configured to send an update message of the first software module to the intranet client, so that the intranet client obtains the updated first software module according to the updated first download address .
- the processing unit is further configured to update the first software module stored in the first server if it is determined that the URL address of the resource to be called in the first software module is updated.
- the transceiver unit is also used to notify the intranet client to update the URL address of the resource to be called in the first software module.
- a server provided by an embodiment of the present invention includes:
- the first server obtains the download request of the first software module sent by the intranet client;
- the first server determines that the first server does not store the first software module, it obtains the first software module from the second server through the external network, and generates the internal network of the first software module.
- the first server returns the first version information of the first software module and the first download address to the intranet client, so that the intranet client can use the
- the version information verifies the version of the first software module, and after the verification is successful, downloads the first software module from the first server according to the first download address.
- the method before the first server obtains the download request of the software module sent by the intranet client, the method further includes:
- the first server confirms whether the first software module is stored according to the stored version information of the software module
- the first server returns the query result of the first software module to the intranet client.
- the method further includes:
- the first server maps the first access address to the second access address of the intranet
- the first server returns the second access address to the intranet client, so that the intranet client dynamically compiles the first software module according to the second access address.
- the first server obtains the first software module from a second server through an external network, and generates a first download address and first version information of the first software module on the internal network, Also includes:
- first server determines that the first software module and the second software module are dependent
- the first server sends the second download address and second version information of the second software module in the intranet to the intranet client, so that the intranet client downloads the second software module from the first download address according to the second download address. Download the second software module from the server.
- the method further includes:
- the first server After successfully verifying the third version information of the third software module, the first server stores the third software module in the first server, and generates the third software module on the intranet. Three download addresses, so that the second intranet client terminal downloads the third software module according to the third download address.
- the method further includes:
- the first server searches the external network whether the first software module is updated
- the first server determines that the first software module is updated, download the updated first software module, and update the first version information of the first software module and the first download address;
- the first server sends an update message of the first software module to the intranet client, so that the intranet client obtains the updated first software module according to the updated first download address.
- the method further includes:
- the first server determines that the URL address of the resource that needs to be called in the first software module is updated, it updates the URL address of the resource that needs to be called in the first software module stored in the first server;
- the first server notifies the intranet client to update the URL address of the resource to be called in the first software module.
- a software module management apparatus provided by an embodiment of the present invention includes:
- the first server obtains the download request of the first software module sent by the intranet client;
- the first server determines that the first server does not store the first software module, it obtains the first software module from the second server through the external network, and generates the internal network of the first software module.
- the first server returns the first version information of the first software module and the first download address to the intranet client, so that the intranet client can use the
- the version information verifies the version of the first software module, and after the verification is successful, downloads the first software module from the first server according to the first download address.
- the method before the first server obtains the download request of the software module sent by the intranet client, the method further includes:
- the first server confirms whether the first software module is stored according to the stored version information of the software module
- the first server returns the query result of the first software module to the intranet client.
- the method further includes:
- the first server maps the first access address to the second access address of the intranet
- the first server returns the second access address to the intranet client, so that the intranet client dynamically compiles the first software module according to the second access address.
- the first server obtains the first software module from the second server through an external network, and generates a first download address and first version information of the first software module on the internal network After that, it also includes:
- first server determines that the first software module and the second software module are dependent
- the first server sends the second download address and second version information of the second software module in the intranet to the intranet client, so that the intranet client downloads the second software module from the first download address according to the second download address. Download the second software module from the server.
- the method further includes:
- the first server After successfully verifying the third version information of the third software module, the first server stores the third software module in the first server, and generates the third software module on the intranet. Three download addresses, so that the second intranet client terminal downloads the third software module according to the third download address.
- the method further includes:
- the first server searches the external network whether the first software module is updated
- the first server determines that the first software module is updated, download the updated first software module, and update the first version information of the first software module and the first download address;
- the first server sends an update message of the first software module to the intranet client, so that the intranet client obtains the updated first software module according to the updated first download address.
- the method further includes:
- the first server determines that the URL address of the resource that needs to be called in the first software module is updated, it updates the URL address of the resource that needs to be called in the first software module stored in the first server;
- the first server notifies the intranet client to update the URL address of the resource to be called in the first software module.
- an embodiment of the present invention provides a server including a memory and a processor, wherein the memory is used to store program instructions, and the processor is used to call the program instructions stored in the memory according to the obtained program Perform the steps of the above-mentioned software module management method.
- an embodiment of the present invention provides a computer storage medium, the computer storage medium stores computer executable instructions, and the computer executable instructions are used to make the computer execute the steps of the above-mentioned software module management method.
- an embodiment of the present invention provides a computer program product
- the computer program product includes a computer program stored on a computer storage medium
- the computer program includes program instructions, and when the program instructions are executed by a computer, The computer is made to execute the steps of the above-mentioned software module management method.
- the intranet client after determining the software module to be downloaded, sends a software module download request to the first server, and the first server obtains the software module corresponding to the software module to be downloaded from the second server according to the download address, and According to the software module, the version information and download address of the intranet corresponding to the software module are generated.
- the intranet client receives the version information and download address returned by the first server according to the identification of the software module to be downloaded in the software module download request, and downloads the software module from the first server according to the software module.
- the intranet client can successfully access and verify the software module according to the download address provided by the first server according to the download address, and then download the software module to be downloaded from the first server to achieve While the software modules can be downloaded quickly, it also guarantees the invisible requirement of publishing software modules on the external network during enterprise testing, and improves the management efficiency and security of software modules.
- Fig. 1 is a system architecture diagram to which a software module management method provided by an embodiment of the present invention is applicable;
- FIG. 2 is a schematic diagram of a process corresponding to a method for managing software modules provided by an embodiment of the present invention
- FIG. 3 is a schematic structural diagram of a software module management apparatus provided by an embodiment of the present invention.
- Fig. 4 is a schematic structural diagram of a server provided by an embodiment of the present invention.
- NPM Node.js package manager
- FIG. 1 is a system architecture diagram to which the software module management method provided by an embodiment of the present invention is applicable.
- the software module management system includes a first server 101, a second server 102, and an intranet client 103 (may It is a PC terminal or a smart phone installed with a software module management program), and related project managers 104 and testers 105.
- the first server can use a Linux system server (such as centos7) and is configured with a NODE JS environment.
- the present invention needs to deploy two parts of WEB retrieval service and REGISTRY storage service on the server.
- the software module managed by it can be a node.js software module; among them, the first server 101 and the intranet client 102 are deployed in the intranet, the second server 102 is deployed in the external network, and the first server 101 can communicate with each other through a proxy server.
- the second server 102 communicates.
- the intranet client 103 can access the above-mentioned first server 101 through a wireless network, and provide services such as display, upload, download, and installation of software modules for terminal users who install the intranet client.
- the intranet client 103 can obtain the resources on the second server 102 through the first server 101.
- the software module can be installed in a designated location through the terminal software of the developer's computer.
- the computer system includes Windows, Mac, and Linux
- the terminal software includes but is not limited to cmd, git bash, and terminal.
- cmd cmd
- git bash cmd
- terminal terminal software
- the types of software modules that can be installed are different. Therefore, when developing application programs, developers need to select matching software modules for the type of operating system.
- an embodiment of the present invention provides a software management method, including:
- Step 1 The first server obtains the resources of the software module from the NPM REGISTER server through the network proxy server;
- the first server may be a warehouse server, which is used to store the resources of the software modules on the NPM REGISTER server; the specific acquisition process may be setting a timer to periodically obtain the resources of the software modules on the NPM REGISTER server.
- Step 2 The user executes the command to install the software module through the client, so that the software module resources stored in the first server are installed in the local project of the client.
- the first server Since the first server is deployed in China, when the client downloads the corresponding software module, it can achieve a very high download speed and improve the download efficiency.
- a possible implementation method can specify that the software modules with the current top percentages are synchronized to the first server through the proxy server.
- the above embodiment solves the problem of the speed of domestic users accessing the official NPM.
- the software module distribution process must rely on the external network environment. Developers who are officially registered with NPM can obtain the permission to publish self-developed software modules on the NPM server. They can be released by executing specified commands on the NPM intranet client. After the module is released, other developers can execute the corresponding via the intranet client. The command to install the released software module.
- this form is only applicable to the production version that has been released on-line.
- software modules used internally are usually kept secret. In order to ensure the security of internal software modules, the release and use of software modules must be limited to the corporate intranet, so third-party hosting platforms cannot be used.
- a proxy server that can provide proxy services, such as a VPN, can be deployed in the first server; of course, it can also be deployed separately, which is not limited here. Associate with the first server and modify the relevant configuration parameters of the proxy server to complete the establishment of the proxy service in the intranet. After the establishment of the proxy service is completed, the first server can obtain the resources of the software module from the outside through its proxy server.
- the first server can be a centos 7 server (configured with a node.js environment, all server programs are NODEJS software modules, and the service consists of two parts: WEB and REGISTRY).
- the service program in the first server is based on KOA (next generation web framework for node.js): NODE JS development framework, and is secondary developed to meet the development needs of NODE JS software modules.
- the resource file corresponding to nodejs can be downloaded through the curl command. Specifically, it can be: curl-sL https://rpm.nodesource.com/setup_10.x
- the first server can use the yum command to install the resources of the downloaded software module, and the specific command can be sudo yum install nodejs.
- the first server can use the node-version command to verify the installation.
- an embodiment of the present invention provides a software module management method, including:
- Step 201 The first server obtains the download request of the first software module sent by the intranet client;
- Step 202 If the first server determines that the first server does not store the first software module, it acquires the first software module from the second server through the external network, and generates the first software module in The first download address of the intranet and the first version information of the first software module;
- the proxy function of the proxy server can be realized by the tunnel-agent module, and the resource files of the first software module are synchronized and stored in the storage space of the first server from the second server through the external network.
- step 203 is executed;
- Step 203 the first server returns the first version information of the first software module and the first download address to the intranet client;
- Step 204 The intranet client verifies the version of the first software module according to the first version information of the first software module, and after successful verification, downloads from the first server according to the first download address Download the first software module.
- the intranet client after determining the software module to be downloaded, sends a software module download request to the first server, and the first server obtains the software module corresponding to the software module to be downloaded from the second server according to the download address, and According to the software module, the version information and download address of the intranet corresponding to the software module are generated.
- the intranet client receives the version information and download address returned by the first server according to the identification of the software module to be downloaded in the software module download request, and downloads the software module from the first server according to the software module.
- the intranet client can successfully access and verify the software module according to the download address provided by the first server according to the download address, and then download the software module to be downloaded from the first server to achieve While the software modules can be downloaded quickly, it also guarantees the invisible needs of the external network for publishing software modules during enterprise testing.
- the method before the first server obtains the download request of the software module sent by the intranet client, the method further includes:
- the first server confirms whether the first software module is stored according to the stored version information of the software module
- the first server returns the query result of the first software module to the intranet client.
- software modules and related information about the software modules can be stored on the first server.
- the intranet client can obtain all the software modules stored on the first server, as well as related information about the software modules, etc. , And show it.
- the related information of the software module includes the version information of the software module itself, and the project management information added for the software module by the project manager when the software module is released.
- the version information includes information such as the application name, application package name, and version number of the software module.
- the project management information can be used by the tester to learn the specific requirements of the project manager for testing the software module after successfully downloading the software module.
- the user browses the software modules displayed on the intranet client and selects the software modules to be downloaded. Subsequently, after the intranet client determines the software module to be downloaded, it sends a software module download request to the first server, and the software module download request carries the identification of the software module to be downloaded selected by the user.
- the query result may be that the first software module does not exist, or it may include all versions of the first software module.
- the user can manually send a download request of the first software module, and obtain the corresponding software module through the first server, which can synchronize on demand and save the pressure of server storage space.
- the first server can also be set to actively download the first software module and store the resources of the latest version of the first software module.
- the first server may set a timer to perform unified download at a predetermined time, or obtain it according to a download request sent by the user. While downloading resources from the second server through the external network, it is also necessary to update the version information and download addresses of the software modules stored in the first server to ensure that users can correctly retrieve the corresponding software modules.
- Step 1 The first server searches on the external network whether the first software module is updated
- Step 2 If the first server determines that the first software module is updated, it downloads the updated first software module, and updates the first version information of the first software module and the first download address;
- Step 3 The first server sends an update message of the first software module to the intranet client, so that the intranet client obtains the updated first software module according to the updated first download address.
- the intranet client can check whether the software module needs to be upgraded every time the corresponding software module is executed. At the same time, the intranet client can also set the default to initiate a check update request to the second server, and Set the request timeout period.
- the request timeout period can be 3 minutes.
- the intranet client cannot directly send a request for checking updates to the second server. Therefore, the intranet client needs to wait for a timeout when opening the software module.
- the intranet client since the intranet client does not update frequently, the intranet client can be set to send an update request to the first server at a fixed time; the update request can be an update request to update the client or an update request to update the software module , There is no limitation here. If it is determined that there is a new version, an update message is sent to the client to prompt the user to update, and the time of checking for the update is cached in the local disk, and the intranet client does not need to send an update request at other running times.
- the method further includes:
- Step 1 The first server obtains the dynamic compilation request of the first software module sent by the intranet client;
- Step 2 The first server obtains the first access address of the dynamic compilation resource of the first software module on the external network
- Step 3 The first server maps the first access address to the second access address of the intranet
- Step 4 The first server returns the second access address to the intranet client, so that the intranet client dynamically compiles the first software module according to the second access address.
- a mirror address can be generated from the first access address, and the mirror address is a second access address that can be accessed by the intranet; in a possible implementation manner, the first server stores the first access address and the second access address.
- the access address mapping relationship the intranet client sends an access request for the second access address to the first server; the first server determines the first access address according to the mapping relationship between the first access address and the second access address, and then through the external The network sends to the first access address to obtain the resources required for dynamic compilation. After obtaining the resources required for dynamic compilation through the first access address, the first server returns the resources required for dynamic compilation to the intranet client.
- the mirror resource in the dynamic compilation request can be transparently transmitted through the proxy server in the first server.
- the intranet client can use the second access address generated by the first server (proxy mirror ) Download the corresponding dynamically compiled resources.
- the original resource request path is: http://npm.taobao.org/mirrors/node-sass/v4.11.0/win32-x64-64_binding.node;
- This URL request needs to be forwarded to the external network through the proxy server, so that the internal network client can access the corresponding resource normally.
- the first server obtains the first software module from the second server through an external network, and generates a first download address and first version information of the first software module on the internal network After that, it also includes:
- Step 1 If the first server determines that the first software module and the second software module are in a dependent relationship, it downloads the second software module from the second server via the external network, and generates the second software module in The second download address and the second version information of the intranet;
- Step 2 The first server sends the second download address and the second version information of the second software module in the intranet to the intranet client, so that the intranet client downloads the second software module from the first download address according to the second download address. Downloading the second software module from a server.
- the dependency relationship between the first software module and other software modules can also be obtained in advance, and the dependent second software module is downloaded to the client according to the dependency relationship.
- the dependency relationship may be preset or determined according to the historical record of downloading software modules by the server, which is not limited here.
- the first software module depends on small functions provided by other software modules.
- software module A may depend on software module B, software module C, and software module D. Therefore, the first server determines software module A during the installation process. According to the dependency relationship, download the corresponding software module. Specifically, when the software module A is installed, the software module B and the software module C can be determined, and then the software module B and the software module C are returned. After the installation process is completed, it is determined that the return process of the download request ends.
- the URL link of the first resource in the first software module Due to the replacement of the new and old resources of the second server, for example, the URL link of the first resource in the first software module has become invalid, but has not been updated in the second software module. To ensure that the resources of the second software module are downloaded successfully, The URL resource to be updated can be replaced with the URL link of the new resource in the synchronization function.
- the method further includes:
- Step 1 If the first server determines that the URL address of the resource that needs to be called in the first software module is updated, it updates the URL address of the resource that needs to be called in the first software module stored in the first server;
- Step 2 The first server notifies the intranet client to update the URL address of the resource to be called in the first software module.
- a possible implementation method includes:
- the first server After successfully verifying the third version information of the third software module, the first server stores the third software module in the first server, and generates the third software module on the intranet. Three download addresses, so that the second intranet client terminal downloads the third software module according to the third download address.
- the user installs the corresponding intranet client through the specified command, and the intranet client logs in and registers through the login module.
- the user executes the publishing request in the root directory of the module project that needs to be published to the bank .
- the release request can upload software modules of Android, iOS, etc., and the client can read the version and name of the software module’s package.json, and verify related test procedures.
- the first server will Generate resources for downloading the software module for the software module, and complete publishing to the first server.
- Other users on the intranet can obtain the release message of the third software module through the first server, and can directly download and install the third software module.
- the third software module can distinguish the third software module and the first software module published by the intranet by naming the software module in the domain of the intranet.
- FIG. 3 is a schematic structural diagram of one provided by the implementation of the present invention.
- the software module management device includes:
- the transceiver unit 301 is configured to obtain the download request of the first software module sent by the intranet client;
- the processing unit 302 is configured to, if it is determined that the first software module is not stored in the first server, obtain the first software module from the second server through an external network, and generate the first software module in the The first download address of the intranet and the first version information of the first software module;
- the transceiving unit 301 is configured to return the first version information of the first software module and the first download address to the intranet client, so that the intranet client can be based on the first software module
- a version information verifies the version of the first software module, and after the verification is successful, downloads the first software module from the first server according to the first download address.
- the transceiver unit 301 is further configured to obtain the query request of the first software module sent by the intranet client;
- the processing unit 302 is configured to confirm whether the first software module is stored according to the stored version information of the software module
- the transceiver unit 301 is further configured to return the query result of the first software module to the intranet client.
- the transceiver unit 301 is further configured to obtain the dynamic compilation request of the first software module sent by the intranet client; and obtain the dynamic compilation resource of the first software module in the first external network. address;
- the processing unit 302 is configured to map the first access address to the second access address of the intranet
- the transceiver unit 301 is further configured to return the second access address to the intranet client, so that the intranet client dynamically compiles the first software module according to the second access address.
- the processing unit 302 is configured to, if it is determined that the first software module and the second software module are dependent, download the second software module from the second server through the external network, and generate The second download address and the second version information of the second software module in the intranet; the second download address and the second version information of the second software module in the intranet are sent to the intranet client to Enabling the intranet client to download the second software module from the first server according to the second download address.
- the transceiver unit 301 is further configured to obtain a release request of the third software module of the intranet client;
- the processing unit 302 is further configured to store the third software module in the first server after the third version information of the third software module is successfully verified, and generate the third software module in the intranet The third download address for the second intranet client to download the third software module according to the third download address.
- the processing unit 302 is further configured to find whether the first software module is updated on the external network; if it is determined that the first software module is updated, download the updated first software module, And update the first version information of the first software module and the first download address;
- the transceiver unit 301 is further configured to send an update message of the first software module to the intranet client, so that the intranet client obtains the updated first software module according to the updated first download address.
- the processing unit 302 is further configured to update the URL address of the resource that needs to be called in the first software module and update the URL address of the first software module stored in the first server.
- the URL address of the called resource is further configured to update the URL address of the resource that needs to be called in the first software module and update the URL address of the first software module stored in the first server.
- the transceiver unit 301 is also used to notify the intranet client to update the URL address of the resource to be called in the first software module.
- FIG. 4 a schematic structural diagram of a server in an embodiment of the present invention.
- the embodiment of the present invention provides a server, where the electronic device may be a server or other computer device, etc., the electronic device may include a processor 710 (Center Processing Unit, CPU), a memory 720, an input device 730, and an output device 740
- the input device 730 may include a keyboard, a mouse, a touch screen, etc.
- the output device 740 may include a display device, such as a liquid crystal display (LCD), a cathode ray tube (Cathode Ray Tube, CRT), etc.
- LCD liquid crystal display
- CRT cathode Ray Tube
- the memory 720 may include a read only memory (ROM) and a random access memory (RAM), and provides the processor 710 with program instructions and data stored in the memory 720.
- the memory 720 may be used to store the program of the software module management method in the foregoing embodiment.
- the processor 710 calls the program instructions stored in the memory 720, and the processor 710 is configured to execute according to the obtained program instructions:
- the first server If it is determined that the first server does not store the first software module, obtain the first software module from the second server through the external network, and generate a first download of the first software module on the internal network Address and first version information of the first software module;
- the processor 710 is further configured to confirm whether the first software module is stored according to the stored version information of the software module.
- the processor 710 is further configured to map the first access address to a second access address of the intranet;
- the processor 710 is further configured to, if it is determined that the first software module and the second software module are in a dependent relationship, download the second software module from the second server through the external network, and Generating a second download address and second version information of the second software module in the intranet; sending the second download address and second version information of the second software module in the intranet to the intranet client, So that the intranet client downloads the second software module from the first server according to the second download address.
- the processor 710 is further configured to store the third software module in the first server after the third version information of the third software module is successfully verified, and generate the The third software module is a third download address of the intranet, so that the second intranet client downloads the third software module according to the third download address.
- the processor 710 is further configured to find whether the first software module is updated on the external network; if it is determined that the first software module is updated, download the updated first software module, And update the first version information of the first software module and the first download address.
- the processor 710 is further configured to, if it is determined that the URL address of the resource that needs to be called in the first software module is updated, then update the request in the first software module stored in the first server. The URL address of the called resource.
- the intranet client after determining the software module to be downloaded, sends a software module download request to the first server, and the first server obtains the software module corresponding to the software module to be downloaded from the second server according to the download address, and According to the software module, the version information and download address of the intranet corresponding to the software module are generated.
- the intranet client receives the version information and download address returned by the first server according to the identification of the software module to be downloaded in the software module download request, and downloads the software module from the first server according to the software module.
- the intranet client can successfully access and verify the software module according to the download address provided by the first server according to the download address, and then download the software module to be downloaded from the first server to achieve While the software modules can be downloaded quickly, it also guarantees the invisible needs of the external network for publishing software modules during enterprise testing.
- an embodiment of the present invention provides a computer storage medium for storing computer program instructions used by the above-mentioned computing device, which includes a program for executing the above-mentioned software module management method.
- the computer storage medium may be any available medium or data storage device that can be accessed by the computer, including but not limited to magnetic storage (such as floppy disk, hard disk, magnetic tape, magneto-optical disk (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor memory (such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid state drive (SSD)), etc.
- magnetic storage such as floppy disk, hard disk, magnetic tape, magneto-optical disk (MO), etc.
- optical storage such as CD, DVD, BD, HVD, etc.
- semiconductor memory such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid state drive (SSD)
- embodiments of the present invention provide a computer program product, the computer program product includes a computer program stored on a computer storage medium, the computer program includes program instructions, when the program instructions are executed by a computer At this time, the computer is caused to execute the steps of the above-mentioned software module management method.
- the embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may be in the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
- computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
- These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
- the device implements the functions specified in one process or two or more processes in the flowchart and/or one block or two or more blocks in the block diagram.
- These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
- the instructions provide steps for implementing the functions specified in one process or two or more processes in the flowchart and/or one block or two or more blocks in the block diagram.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
- Computer And Data Communications (AREA)
Abstract
Description
Claims (17)
- 一种软件模块的管理方法,其特征在于,所述方法包括:A software module management method, characterized in that the method includes:第一服务器获取内网客户端发送的第一软件模块的下载请求;The first server obtains the download request of the first software module sent by the intranet client;所述第一服务器若确定所述第一服务器未存储有所述第一软件模块,则通过外网从第二服务器获取所述第一软件模块,并生成所述第一软件模块在内网的第一下载地址及所述第一软件模块的第一版本信息;If the first server determines that the first server does not store the first software module, it obtains the first software module from the second server through the external network, and generates the internal network of the first software module. The first download address and the first version information of the first software module;所述第一服务器向所述内网客户端返回所述第一软件模块的第一版本信息及所述第一下载地址,以使所述内网客户端根据所述第一软件模块的第一版本信息校验所述第一软件模块的版本,并在校验成功后,根据所述第一下载地址从所述第一服务器中下载所述第一软件模块。The first server returns the first version information of the first software module and the first download address to the intranet client, so that the intranet client can use the The version information verifies the version of the first software module, and after the verification is successful, downloads the first software module from the first server according to the first download address.
- 根据权利要求1所述的方法,其特征在于,所述第一服务器获取内网客户端发送的软件模块的下载请求之前,还包括:The method according to claim 1, wherein before the first server obtains the download request of the software module sent by the intranet client, the method further comprises:所述第一服务器获取所述内网客户端发送的所述第一软件模块的查询请求;Acquiring, by the first server, the query request of the first software module sent by the intranet client;所述第一服务器根据存储的软件模块的版本信息,确认是否存储有所述第一软件模块;The first server confirms whether the first software module is stored according to the stored version information of the software module;所述第一服务器向所述内网客户端返回所述第一软件模块的查询结果。The first server returns the query result of the first software module to the intranet client.
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, wherein the method further comprises:所述第一服务器获取所述内网客户端发送的所述第一软件模块的动态编译请求;Acquiring, by the first server, the dynamic compilation request of the first software module sent by the intranet client;所述第一服务器获取所述第一软件模块的动态编译资源在外网的第一访问地址;Acquiring, by the first server, the first access address of the dynamically compiled resource of the first software module on the external network;所述第一服务器将所述第一访问地址映射为内网的第二访问地址;The first server maps the first access address to the second access address of the intranet;所述第一服务器将所述第二访问地址返回至所述内网客户端,以使所述内网客户端根据所述第二访问地址动态编译所述第一软件模块。The first server returns the second access address to the intranet client, so that the intranet client dynamically compiles the first software module according to the second access address.
- 根据权利要求1所述的方法,其特征在于,所述第一服务器通过外网从第二服务器获取所述第一软件模块,并生成所述第一软件模块在内网的第一下载地址及第一版本信息之后,还包括:The method according to claim 1, wherein the first server obtains the first software module from a second server through an external network, and generates a first download address of the first software module on the internal network and After the first version information, it also includes:所述第一服务器若确定所述第一软件模块与第二软件模块为依赖关系;If the first server determines that the first software module and the second software module are dependent;则通过外网从所述第二服务器下载所述第二软件模块,并生成所述第二软件模块在内网的第二下载地址及第二版本信息;Downloading the second software module from the second server through the external network, and generating a second download address and second version information of the second software module on the internal network;所述第一服务器将所述第二软件模块在内网的第二下载地址及第二版本信息发送至所述内网客户端,以使所述内网客户端根据所述第二下载地址从第一服务器中下载所述第二软件模块。The first server sends the second download address and the second version information of the second software module in the intranet to the intranet client, so that the intranet client downloads from the intranet according to the second download address. The second software module is downloaded from the first server.
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, wherein the method further comprises:所述第一服务器获取所述内网客户端的第三软件模块的发布请求;Acquiring, by the first server, the release request of the third software module of the intranet client;所述第一服务器在所述第三软件模块的第三版本信息校验成功后,将所述第三软件模块存储至所述第一服务器,并生成所述第三软件模块在内网的第三下载地址,以使第二内网客户端根据所述第三下载地址下载所述第三软件模块。After successfully verifying the third version information of the third software module, the first server stores the third software module in the first server, and generates the third software module on the intranet. Three download addresses, so that the second intranet client terminal downloads the third software module according to the third download address.
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, wherein the method further comprises:所述第一服务器在外网查找所述第一软件模块是否出现更新;The first server searches the external network whether the first software module is updated;所述第一服务器若确定所述第一软件模块存在更新,则下载更新后的所述第一软件模块,并更新所述第一软件模块的第一版本信息和所述第一下载地址;If the first server determines that the first software module is updated, download the updated first software module, and update the first version information of the first software module and the first download address;所述第一服务器向所述内网客户端发送所述第一软件模块的更新消息,以使所述内网客户端根据更新后的第一下载地址获取更新后的第一软件模块。The first server sends an update message of the first software module to the intranet client, so that the intranet client obtains the updated first software module according to the updated first download address.
- 根据权利要求1-6任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-6, wherein the method further comprises:所述第一服务器若确定所述第一软件模块中需要调用的资源的URL地址更新,则更新所述第一服务器中存储的所述第一软件模块中需要调用的资源的URL地址;If the first server determines that the URL address of the resource that needs to be called in the first software module is updated, it updates the URL address of the resource that needs to be called in the first software module stored in the first server;所述第一服务器通知所述内网客户端,更新所述第一软件模块中需要调用的资源的URL地址。The first server notifies the intranet client to update the URL address of the resource to be called in the first software module.
- 一种软件模块的管理装置,其特征在于,所述装置包括:A software module management device, characterized in that the device includes:收发单元,用于获取内网客户端发送的第一软件模块的下载请求;The transceiver unit is used to obtain the download request of the first software module sent by the intranet client;处理单元,用于若确定所述第一服务器未存储有所述第一软件模块,则通过外网向第二服务器发送所述第一软件模块的下载请求;获取所述第一软件模块,并生成所述第一软件模块在内网的第一下载地址及所述第一软件模块的第一版本信息;The processing unit is configured to, if it is determined that the first server does not store the first software module, send a download request of the first software module to the second server via the external network; obtain the first software module, and Generating the first download address of the first software module in the intranet and the first version information of the first software module;所述收发单元,还用于向所述内网客户端返回所述第一软件模块的第一版本信息及所述第一下载地址,以使所述内网客户端根据所述第一软件模块的第一版本信息校验所述第一软件模块的版本,并在校验成功后,根据所述第一下载地址从所述第一服务器中下载所述第一软件模块。The transceiving unit is further configured to return the first version information of the first software module and the first download address to the intranet client, so that the intranet client can use the first software module The first version information of the verifies the version of the first software module, and after the verification is successful, downloads the first software module from the first server according to the first download address.
- 根据权利要求8所述的装置,其特征在于,所述收发单元,还用于获取所述内网客户端发送的所述第一软件模块的查询请求;8. The device according to claim 8, wherein the transceiver unit is further configured to obtain a query request of the first software module sent by the intranet client;所述处理单元,还用于根据存储的软件模块的版本信息,确认是否存储有所述第一软件模块;The processing unit is further configured to confirm whether the first software module is stored according to the stored version information of the software module;所述收发单元,还用于向所述内网客户端返回所述第一软件模块的查询结果。The transceiver unit is further configured to return the query result of the first software module to the intranet client.
- 根据权利要求8所述的装置,其特征在于,所述收发单元,还用于获取所述内网客户端发送的所述第一软件模块的动态编译请求;获取所述第一软件模块的动态编译资源在外网的第一访问地址;8. The device according to claim 8, wherein the transceiver unit is further configured to obtain the dynamic compilation request of the first software module sent by the intranet client; and obtain the dynamic compilation request of the first software module. The first access address of the compiled resource on the external network;所述处理单元,还用于将所述第一访问地址映射为内网的第二访问地址;The processing unit is further configured to map the first access address to a second access address of the intranet;所述收发单元,还用于将所述第二访问地址返回至所述内网客户端,以使所述内网客户端根据所述第二访问地址动态编译所述第一软件模块。The transceiver unit is further configured to return the second access address to the intranet client, so that the intranet client dynamically compiles the first software module according to the second access address.
- 根据权利要求8所述的装置,其特征在于,所述处理单元,还用于若确定所述第一软件模块与第二软件模块为依赖关系,则通过外网从所述第二服务器下载所述第二软件模块,并生成所述第二软件模块在内网的第二下载地址及第二版本信息;将所述第二软件模块在内网的第二下载地址及第二版本信息发送至所述内网客户端,以使所述内网客户端根据所述第二下载地址从第一服务器中下载所述第二软件模块。8. The device according to claim 8, wherein the processing unit is further configured to download the data from the second server via an external network if it is determined that the first software module and the second software module are in a dependent relationship. The second software module, and generate the second download address and second version information of the second software module in the intranet; send the second download address and second version information of the second software module in the intranet to The intranet client, so that the intranet client downloads the second software module from the first server according to the second download address.
- 根据权利要求8所述的装置,其特征在于,所述收发单元,还用于获取所述内网客户端的第三软件模块的发布请求;8. The device according to claim 8, wherein the transceiver unit is further configured to obtain a release request of a third software module of the intranet client;所述处理单元,还用于在所述第三软件模块的第三版本信息校验成功后,将所述第三软件模块存储至所述第一服务器,并生成所述第三软件模块在内网的第三下载地址,以使第二内网客户端根据所述第三下载地址下载所述第三软件模块。The processing unit is further configured to store the third software module in the first server after the third version information of the third software module is successfully verified, and generate the third software module in The third download address of the Internet, so that the second intranet client downloads the third software module according to the third download address.
- 根据权利要求8所述的装置,其特征在于,所述处理单元,还用于在外网查找所述第一软件模块是否出现更新;若确定所述第一软件模块存在更新,则下载更新后的所述第一软件模块,并更新所述第一软件模块的第一版本信息和所述第一下载地址;8. The device according to claim 8, wherein the processing unit is further configured to find whether the first software module is updated on the external network; if it is determined that the first software module is updated, download the updated The first software module, and update the first version information of the first software module and the first download address;所述收发单元,还用于向所述内网客户端发送所述第一软件模块的更新消息,以使所述内网客户端根据更新后的第一下载地址获取更新后的第一软件模块。The transceiver unit is further configured to send an update message of the first software module to the intranet client, so that the intranet client obtains the updated first software module according to the updated first download address .
- 根据权利要求8-12任一所述的装置,其特征在于,所述处理单元,还用于若确定所述第一软件模块中需要调用的资源的URL地址更新,则更新所述第一服务器中存储的所述第一软件模块中需要调用的资源的URL地址;The apparatus according to any one of claims 8-12, wherein the processing unit is further configured to update the first server if it is determined that the URL address of the resource to be called in the first software module is updated The URL address of the resource that needs to be called in the first software module stored in;所述收发单元,还用于通知所述内网客户端,更新所述第一软件模块中需要调用的资源的URL地址。The transceiver unit is also used to notify the intranet client to update the URL address of the resource to be called in the first software module.
- 一种服务器,其特征在于,包括:A server, characterized in that it comprises:存储器,用于存储程序指令;Memory, used to store program instructions;处理器,用于调用所述存储器中存储的程序指令,按照获得的程序执行如权利要求1至7中任一项所述的方法。The processor is configured to call the program instructions stored in the memory, and execute the method according to any one of claims 1 to 7 according to the obtained program.
- 一种计算机存储介质,其特征在于,所述计算机存储介质存储有计算机可执行指令,所述计算机可执行指令用于使所述计算机执行如权利要求1至7中任一项所述的方法。A computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to make the computer execute the method according to any one of claims 1 to 7.
- 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储在计算机存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行如权利要求1至7中任一项所述方法的步骤。A computer program product, wherein the computer program product includes a computer program stored on a computer storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes The steps of the method according to any one of claims 1 to 7.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910515520.9 | 2019-06-14 | ||
CN201910515520.9A CN110262821A (en) | 2019-06-14 | 2019-06-14 | A kind of management method of software module, device and server |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020248727A1 true WO2020248727A1 (en) | 2020-12-17 |
Family
ID=67918276
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/086877 WO2020248727A1 (en) | 2019-06-14 | 2020-04-24 | Management method and device for software module, and server |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110262821A (en) |
WO (1) | WO2020248727A1 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110262821A (en) * | 2019-06-14 | 2019-09-20 | 深圳前海微众银行股份有限公司 | A kind of management method of software module, device and server |
CN111857781B (en) * | 2020-07-23 | 2022-06-10 | 平安普惠企业管理有限公司 | Resource updating method and related equipment |
CN114679410B (en) * | 2020-12-24 | 2024-04-12 | 奇安信网神信息技术(北京)股份有限公司 | Method and device for reducing occupation of external network resources, electronic equipment and storage medium |
CN112732283B (en) * | 2021-01-21 | 2024-06-11 | 深圳市位元领航科技有限公司 | Client-server mode realization method, client and server |
CN114385213A (en) * | 2022-01-27 | 2022-04-22 | 广东电网有限责任公司中山供电局 | Operation and maintenance method and system for updating patches in batches |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103647844A (en) * | 2013-12-20 | 2014-03-19 | 北京奇虎科技有限公司 | Method and device for upgrading applications in inner network |
CN107896244A (en) * | 2017-11-07 | 2018-04-10 | 中国银联股份有限公司 | A kind of distribution method of version file, client and server |
CN108595221A (en) * | 2018-04-26 | 2018-09-28 | Oppo广东移动通信有限公司 | Plug-in loading method, device, server and the storage medium of PaaS platform |
CN109495433A (en) * | 2017-09-13 | 2019-03-19 | 腾讯科技(深圳)有限公司 | Data download method and device, storage medium and electronic device |
CN110262821A (en) * | 2019-06-14 | 2019-09-20 | 深圳前海微众银行股份有限公司 | A kind of management method of software module, device and server |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104915218A (en) * | 2014-03-13 | 2015-09-16 | 盈止道明(北京)科技发展有限公司 | Scenic spot tour guide internal and external network downloading method and system based on two-dimensional code |
CN105389191B (en) * | 2015-12-11 | 2018-11-02 | 北京奇虎科技有限公司 | A kind of method for upgrading software based on LAN, device and system |
CN107357583A (en) * | 2017-07-13 | 2017-11-17 | 上海市共进通信技术有限公司 | The system and method built automatically based on software code progress module |
CN108132794A (en) * | 2017-12-29 | 2018-06-08 | 普华基础软件股份有限公司 | A kind of operating system update method and system |
-
2019
- 2019-06-14 CN CN201910515520.9A patent/CN110262821A/en active Pending
-
2020
- 2020-04-24 WO PCT/CN2020/086877 patent/WO2020248727A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103647844A (en) * | 2013-12-20 | 2014-03-19 | 北京奇虎科技有限公司 | Method and device for upgrading applications in inner network |
CN109495433A (en) * | 2017-09-13 | 2019-03-19 | 腾讯科技(深圳)有限公司 | Data download method and device, storage medium and electronic device |
CN107896244A (en) * | 2017-11-07 | 2018-04-10 | 中国银联股份有限公司 | A kind of distribution method of version file, client and server |
CN108595221A (en) * | 2018-04-26 | 2018-09-28 | Oppo广东移动通信有限公司 | Plug-in loading method, device, server and the storage medium of PaaS platform |
CN110262821A (en) * | 2019-06-14 | 2019-09-20 | 深圳前海微众银行股份有限公司 | A kind of management method of software module, device and server |
Also Published As
Publication number | Publication date |
---|---|
CN110262821A (en) | 2019-09-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020248727A1 (en) | Management method and device for software module, and server | |
US20190236000A1 (en) | Distributed system test device | |
US8775577B1 (en) | System and method for configuration management service | |
CN107534571B (en) | Method, system and computer readable medium for managing virtual network functions | |
US11561889B2 (en) | Orchestration for automated performance testing | |
KR20180090180A (en) | Website access method, apparatus, and website system | |
WO2017034789A1 (en) | Application service architecture | |
WO2015180601A1 (en) | Method and device for starting operation of webapp and generating mirror image file | |
US11196728B1 (en) | Caching login sessions to access a software testing environment | |
US10789111B2 (en) | Message oriented middleware with integrated rules engine | |
JP2019530089A (en) | Method and apparatus for realizing communication between web page and native application, and electronic apparatus | |
US10452522B1 (en) | Synthetic data generation from a service description language model | |
US10803166B1 (en) | Automated determination of application privileges | |
US9513762B1 (en) | Static content updates | |
US20230131898A1 (en) | Techniques for building and validating database software in a shared management environment | |
CN113485927B (en) | Test data generation method, device, equipment and storage medium | |
US11184431B2 (en) | System and control method | |
CN111831567B (en) | Application test environment configuration method, device, system and medium | |
CN112235132A (en) | Method, device, medium and server for dynamically configuring service | |
CN107239475B (en) | File calling method and device | |
US11966880B2 (en) | Policies and controls for building and validating database software in a shared management environment | |
CN113760339A (en) | Vulnerability repair method and device | |
CN113641503B (en) | Multi-cloud multi-cluster Kubernetes management system, method and equipment | |
US20230118880A1 (en) | Copying computing resources between execution environments | |
CN112115056B (en) | Project deployment method and device, server and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20822734 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20822734 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 22/03/2022) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20822734 Country of ref document: EP Kind code of ref document: A1 |