Resource package deployment method, device, storage medium and electronic device

By obtaining and confirming the deployment request of the resource package on the first platform, and completing the deployment on the second platform, the problem of the cumbersome deployment process of the resource package on the H5 page is solved, the efficiency is improved, the operation is simplified, and the resource package is highly efficient. deploy.

CN115297096BActive Publication Date: 2024-10-22QINGDAO HAIER TECH +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202210745175.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-28
Publication Date
2024-10-22
Estimated Expiration
2042-06-28

AI Technical Summary

Technical Problem

The deployment process of existing H5 page resource packages is cumbersome and difficult to maintain, resulting in low efficiency.

Method used

Obtain the deployment request through the first platform, confirm that the resource package has been entered in the second platform, initiate a call request for deployment, and receive a successful deployment notification to complete the deployment of the resource package, avoiding multi-platform operations and simplifying the deployment process.

Benefits of technology

It improves the deployment efficiency of H5 page resource packages, simplifies the operation process, reduces the difficulty of maintenance, and avoids waste of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115297096B_ABST
    Figure CN115297096B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, storage medium and electronic device for deploying a resource package, and relates to the field of smart home / intelligent family technology. The method for deploying the resource package comprises: obtaining a target request, wherein the target request is used to request the deployment of the resource package; in the case of confirming that the resource package is successfully entered into the second platform, initiating a call request to the second platform, wherein the call request is used to instruct the second platform to deploy the resource package; in the case of successfully deploying the resource package on the second platform, receiving a successful deployment notification sent by the second platform, which solves the problem in the related art that the operation process of deploying the resource package of the H5 page is cumbersome and difficult to maintain, resulting in low efficiency in deploying the resource package of the H5 page, and achieves the effect of improving the efficiency of deploying the resource package of the H5 page.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home / intelligent family technology, and more specifically, to a method, device, storage medium and electronic device for deploying a resource package. Background Art

[0002] H5 page is an interactive multimedia page that is displayed in various apps or browsers. HTML5 is the next generation standard of the Internet and a language for building and presenting Internet content. H5 is implemented based on HTML5 and follows the standard specifications of HTML5.

[0003] Before the H5 page is displayed in the browser, it is necessary to build the resource package of the H5 page and deploy the resource package to the server of the operation platform. The existing H5 page resource package building and deployment process is to create a code library on GitLab, then package the code library on the performance platform to complete the construction of the resource package, and then the build system deploys the resource package to the server of the operation platform.

[0004] In the prior art, when constructing a resource package for deploying an H5 page, operations need to be performed on multiple platforms, and the operation process is cumbersome and difficult to maintain, resulting in low efficiency in deploying the resource package for the H5 page. No solution has been proposed for the problem of low efficiency in deploying the resource package for the H5 page in the above-mentioned related art. Summary of the invention

[0005] The embodiments of the present invention provide a method, device, storage medium and electronic device for deploying a resource package, so as to at least solve the problem in the related art that the operation process of deploying the resource package of the H5 page is cumbersome and difficult to maintain, resulting in low efficiency when deploying the resource package of the H5 page.

[0006] According to one embodiment of the present invention, there is provided a method for deploying a resource package, comprising: obtaining a target request, wherein the target request is used to request deployment of the resource package; upon confirming that the resource package is successfully entered into a second platform, initiating a call request to the second platform, wherein the call request is used to instruct the second platform to deploy the resource package; upon successful deployment of the resource package by the second platform, receiving a successful deployment notification sent by the second platform.

[0007] In an exemplary embodiment, upon confirming that the resource package has been successfully entered into the second platform, a call request is initiated to the second platform, wherein the call request is used to instruct the second platform to deploy the resource package, including: verifying whether the resource package has been entered into the second platform; and upon determining that the resource package has not been entered into the second platform, entering the resource package into the second platform.

[0008] In an exemplary embodiment, the verifying whether the resource package has been entered into the second platform includes: verifying whether the resource package exists in the first platform; if the resource package does not exist in the first platform, determining that the resource package is not entered into the second platform; if the resource package exists in the first platform, sending a verification request to the second platform, and determining whether the resource package has been entered into the second platform based on the verification result returned by the second platform, wherein the verification request indicates verifying whether the resource package is entered into the second platform.

[0009] In an exemplary embodiment, when it is determined that the resource package is not entered into the second platform, the resource package is entered into the second platform, including: when it is determined that the resource package is not entered into the second platform and the resource package exists in the first platform, the resource package is entered into the second platform.

[0010] In an exemplary embodiment, after the resource package is entered into the second platform, the method further includes: receiving a successful entry notification sent by the second platform, wherein the successful entry notification is used to indicate that the resource package is successfully entered into the second platform.

[0011] In an exemplary embodiment, the obtaining the target request includes: when the front-end page receives a deployment operation, receiving the target request sent by the front-end page, wherein the front-end page is also used to select the deployment version information of the resource package.

[0012] In an exemplary embodiment, after receiving the successful deployment notification sent by the second platform, the method further includes: sending the successful deployment notification to a front-end page to instruct the front-end page to refresh the page.

[0013] In an exemplary embodiment, the resource package is an H5 resource package.

[0014] According to another embodiment of the present invention, a resource package deployment device is also provided, including: an acquisition unit, used to acquire a target request, wherein the target request is used to request deployment of the resource package; an initiating unit, used to initiate a call request to the second platform when confirming that the resource package is successfully entered into the second platform, wherein the call request is used to instruct the second platform to deploy the resource package; and a receiving unit, used to receive a successful deployment notification sent by the second platform when the second platform successfully deploys the resource package.

[0015] In an exemplary embodiment, the initiating unit includes: a first verification module, used to verify whether the resource package has been entered into the second platform; and an entry unit, used to enter the resource package into the second platform if it is determined that the resource package has not been entered into the second platform.

[0016] In an exemplary embodiment, the above-mentioned first verification module also includes: a second verification module, used to verify whether the resource package exists in the first platform; a first determination module, used to determine that the resource package is not recorded in the second platform when the resource package does not exist in the first platform; a sending module, used to send a verification request to the second platform when the resource package exists in the first platform, and determine whether the resource package has been recorded in the second platform according to the verification result returned by the second platform, wherein the verification request indicates verification of whether the resource package is recorded in the second platform.

[0017] In an exemplary embodiment, the above-mentioned import module is further used to import the resource package into the second platform when it is determined that the resource package has not been imported into the second platform and the resource package exists in the first platform.

[0018] In an exemplary embodiment, the apparatus is further configured to receive a successful entry notification sent by the second platform after the resource package is entered into the second platform, wherein the successful entry notification is used to indicate that the resource package is successfully entered into the second platform.

[0019] In an exemplary embodiment, the acquisition unit includes: a receiving module, which receives the target request sent by the front-end page when the front-end page receives a deployment operation, wherein the front-end page is also used to select the deployment version information of the resource package.

[0020] In an exemplary embodiment, the above-mentioned device is also used to, after receiving the successful deployment notification sent by the second platform, send the successful deployment notification to the front-end page to instruct the front-end page to refresh the page.

[0021] In an exemplary embodiment, the resource package is an H5 resource package.

[0022] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.

[0023] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0024] Through the present invention, the first platform obtains the target request for deploying the resource package. When the first platform confirms that the resource package is entered into the second platform, it will initiate a call request to the second platform to deploy the resource package to the second platform. When the second platform successfully deploys the resource package, the first platform receives a successful deployment notification and completes the deployment of the resource package.

[0025] In the prior art, the deployment of resource packages needs to be completed on multiple platforms, which makes the deployment process complicated and difficult to maintain after deployment. The present invention completes the entry of resource packages and initiates call requests through the first platform, thereby completing the entire deployment process of deploying resource packages to the second platform through the first platform alone, without the need for multiple platforms to complete it together, thereby solving the problem in the related art that the operation process of deploying resource packages for H5 pages is cumbersome and difficult to maintain, resulting in low efficiency in deploying resource packages for H5 pages, thereby achieving the effect of improving the efficiency of deploying resource packages for H5 pages. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0027] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0028] Figure 1 It is a hardware environment diagram of a method for deploying a resource package according to an embodiment of the present application;

[0029] Figure 2 is a flow chart of a method for deploying a resource package according to an embodiment of the present application;

[0030] Figure 3 is an optional flow chart for checking whether a resource package has been entered into the second platform according to an embodiment of the present application;

[0031] Figure 4 is a schematic diagram of deployment of an optional resource package according to an embodiment of the present application;

[0032] Figure 5It is a structural block diagram of an optional resource package deployment according to an embodiment of the present application. DETAILED DESCRIPTION

[0033] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0035] According to one aspect of the embodiments of the present application, a method for deploying a resource package is provided. The method for deploying the resource package is widely used in smart home, smart home, smart home device ecology, smart residential ecology and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, Figure 1 is a hardware environment diagram of a method for deploying a resource package according to an embodiment of the present application. The deployment of the resource package can be applied to Figure 1 In the hardware environment composed of the terminal device 102 and the server 104 shown in FIG. Figure 1 As shown, the server 104 is connected to the terminal device 102 via a network, and can be used to provide services (such as application services, etc.) for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server 104.

[0036] The network may include but is not limited to at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 102 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing device, a smart dishwasher, a smart projection device, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart fresh air device, a smart kitchen and bathroom device, a smart bathroom device, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification device, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.

[0037] According to an embodiment of the present invention, a method for deploying a resource package is provided, which is applied to a first platform. Figure 2 is a flow chart of a method for deploying a resource package according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:

[0038] Step S202, obtaining a target request, wherein the target request is used to request deployment of a resource package;

[0039] In this embodiment, the first platform is a performance platform, the second platform is an operation platform, and the above-mentioned resource package is the resource package of the H5 page that needs to be deployed. The user selects the version information of the H5 page to be deployed on the front-end page, thereby initiating a request to deploy the corresponding H5 page resource package (ie, the target request). The first platform obtains the target request from the front-end page, and the first platform completes the deployment of the H5 page resource package to the server of the operation platform according to the target request.

[0040] Step S204: when confirming that the resource package is successfully entered into the second platform, initiating a call request to the second platform, wherein the call request is used to instruct the second platform to deploy the resource package;

[0041] In this embodiment, the second platform is an operation platform, and the H5 page can only be displayed in the browser by deploying the resource package of the H5 page in the operation platform. After the first platform obtains the target request, the resource package is deployed to the second platform through the first platform. The first platform sends a call request to the grayscale deployment environment interface of the resource department in the operation platform, calls the resource package entered in the operation platform, and deploys it.

[0042] It should be noted that when the first platform initiates a call request to the second platform, it must ensure that the resource package of the H5 page has been entered in the second platform before the second platform can complete the deployment. Otherwise, the second platform only parses the call request sent by the first platform, but since the second platform does not have the resource package, it cannot perform the next deployment operation. Therefore, only when it is confirmed that the resource package has been successfully entered in the second platform, will the call request be initiated to the second platform to avoid the second platform parsing the call request but failing to perform the next deployment operation, thereby causing the second platform to perform useless parsing operations and waste resources.

[0043] Step S206: When the second platform successfully deploys the resource package, receiving a successful deployment notification sent by the second platform.

[0044] In this embodiment, after the second platform successfully deploys the resource package, it sends a notification that the resource package has been successfully deployed (i.e., a successful deployment notification) to the first platform. When the first platform receives the above-mentioned successful deployment notification, it indicates that the deployment of the resource package of the H5 page is completed.

[0045] Through the above steps S202 to S206, when the user selects the version information of the H5 page to be created on the front-end page, the front-end page sends a target request for the corresponding resource package to be deployed to the first platform (performance platform). When the resource package is entered on the second platform, the first platform instructs the second platform to deploy the resource package. When the second platform is successfully deployed, a successful deployment notification is returned to the first platform to complete the deployment of the resource package. In this embodiment, the resource package is deployed to the second platform only through the first platform, and the above deployment work does not need to be completed on multiple platforms together. It is not necessary to complete the deployment through the construction platform after packaging the resource package on the first platform, and it is not necessary to create a code library on GitLab and package the code library by the performance platform. This solves the problem of low efficiency in deploying resource packages for H5 pages in related technologies, saves resources and improves the efficiency of deploying resource packages for H5 pages.

[0046] In an exemplary embodiment, upon confirming that the resource package has been successfully entered into the second platform, a call request is initiated to the second platform, wherein the call request is used to instruct the second platform to deploy the resource package, including: verifying whether the resource package has been entered into the second platform; and upon determining that the resource package has not been entered into the second platform, entering the resource package into the second platform.

[0047] In this embodiment, when the first platform initiates a call request to the second platform, it must ensure that the resource package of the above-mentioned H5 page has been entered into the second platform before the second platform can complete the deployment. Therefore, it is necessary to verify whether the resource package to be deployed has been entered into the second platform. If the above-mentioned resource package has been entered into the second platform, the first platform directly initiates a call request to the second platform, and calls the second platform to deploy the resource package that has been entered; if the second platform has not yet entered the above-mentioned resource package, it is necessary to first enter the above-mentioned resource package in the first platform into the second platform, and then after the entry is successful, return a successful entry notification to the first platform. Further, the first platform directly initiates a call request to the second platform, and calls the second platform to deploy the resource package that has been entered.

[0048] In an exemplary embodiment, the verifying whether the resource package has been entered into the second platform includes: verifying whether the resource package exists in the first platform; if the resource package does not exist in the first platform, determining that the resource package is not entered into the second platform; if the resource package exists in the first platform, sending a verification request to the second platform, and determining whether the resource package has been entered into the second platform based on the verification result returned by the second platform, wherein the verification request indicates verifying whether the resource package is entered into the second platform.

[0049] Figure 3 is an optional flow chart of checking whether a resource package has been entered into the second platform according to an embodiment of the present application, such as Figure 3 As shown, the following steps are included:

[0050] Step S301, checking whether the resource package exists in the first platform, if the result is no, executing step S302, if the result is yes, executing step S303;

[0051] Step S302, determining that the resource package is not entered into the second platform;

[0052] Step S303, sending a verification request to the second platform;

[0053] Step S304, judging the verification result returned by the second platform, if the verification result is negative, executing step S305, if the verification result is positive, executing step S306;

[0054] Step S305, determining that the resource package is not entered into the second platform;

[0055] Step S306, determining whether the resource package has been entered into the second platform.

[0056] In this embodiment, since the resource packages entered into the second platform are all entered into the second platform through the resource packages saved in the first platform, the resource packages entered into the second platform must exist in the first platform, but the resource packages existing in the first platform may not have been entered into the second platform, and the resource packages that do not yet exist in the first platform must not have been entered into the second platform.

[0057] Optionally, to verify whether the resource package has been entered into the second platform, first verify whether there is a corresponding resource package in the first platform. If there is no corresponding resource package in the first platform, it means that the above resource package must not be entered into the second platform; if there is a corresponding resource package in the first platform, it means that the above resource package may have been entered into the second platform. Therefore, it is necessary to further verify whether the resource package has been entered into the second platform by sending a verification request to the second platform. After completing the verification according to the verification request, the second platform sends the verification result to the first platform. If the verification result shows that the second platform detects that the resource package has been entered, the first platform initiates a call request to call the second platform to deploy the entered resource package; if the verification result shows that the second platform detects that the resource package has been entered, the first platform enters the resource package into the second platform.

[0058] Optionally, the deployment version information includes at least one of the following: operating environment, name, and version number. The deployment version information may also include other information, which is not limited here. The deployment version information carried in the target request is used to verify whether a corresponding resource package exists in the first platform. The first platform parses the deployment version information carried in the target request to obtain the operating environment, name, and version number of the H5 page resource package to be deployed. The resource package stored in the first platform is searched for a resource package that matches the above operating environment, name, and version number. If a resource package that matches the above operating environment, name, and version number can be found, it indicates that the corresponding resource package exists in the first platform. If a resource package that matches the above operating environment, name, and version number cannot be found, it indicates that the corresponding resource package does not exist in the first platform.

[0059] Optionally, when a corresponding resource package exists in the first platform, the deployment version information carried in the verification request is used to verify whether there is a resource package matching the deployment version information among the resource packages already entered in the second platform. If there is a resource package matching the deployment version information among the resource packages already entered in the second platform, it indicates that the second platform has entered the above-mentioned resource package, and returns the verification result of the entry to the first platform. Otherwise, if there is no resource package matching the deployment version information among the resource packages already entered in the second platform, it indicates that the second platform has not entered the above-mentioned resource package, and returns the verification result of not entering the corresponding resource package to the first platform.

[0060] In an exemplary embodiment, when it is determined that the resource package is not entered into the second platform, the resource package is entered into the second platform, including: when it is determined that the resource package is not entered into the second platform and the resource package exists in the first platform, the resource package is entered into the second platform.

[0061] In this embodiment, when it is determined that the resource package is not entered into the second platform and a corresponding resource package exists in the first platform, the first platform can directly enter the corresponding resource package saved in the first platform into the above-mentioned second platform; if it is determined that the resource package is not entered into the second platform and a corresponding resource package does not exist in the first platform, a prompt message indicating that the resource package does not exist is sent to the front-end page to prompt the user that the above-mentioned H5 page cannot be deployed, and prompt the user to reselect the version information of the H5 page or prompt the user to create code in the first platform to generate the corresponding resource package.

[0062] Optionally, when it is determined that the resource package has not been entered into the second platform and the resource package exists in the first platform, the corresponding resource package is entered into the second platform by the following method: the resource package corresponding to the deployment version information in the database of the first platform is found through the deployment version information carried in the target request, and a unique signature identifier is generated according to the deployment version information; whether the storage path of the resource package is legal and complete is determined through security detection; when the storage path of the resource package is legal and complete, the resource package is sent to the second platform for entry by the second platform.

[0063] It should be noted that the above method also includes that the first platform formats the version number in the deployment version information according to the version number type supported by the second platform. The specific deployment version information includes a version number, and the version number consists of numbers and symbols, for example: 1.0.0, 1.1.0.1.20220318, 1.1.0.20220318, where 1.0.0 is a three-segment version number, 1.1.0.20220318 is a four-segment version number, and 1.1.0.1.20220318 is a five-segment version number. Some operating platforms only support four-segment version numbers or less. Therefore, when the version number in the deployment version information selected by the user is five-segment, the five-segment version number needs to be formatted and converted into a four-segment version number, and the converted four-segment version number is passed to the second platform. For example, the five-segment version number 1.1.0.1.20220318 is converted into the four-segment version number 1.1.0_20220318.

[0064] In an exemplary embodiment, after the resource package is entered into the second platform, the method further includes: receiving a successful entry notification sent by the second platform, wherein the successful entry notification is used to indicate that the resource package is successfully entered into the second platform.

[0065] In this embodiment, when the second platform successfully enters the corresponding resource package, the second platform will send a successful entry notification to the first platform. After receiving the above successful entry notification, the first platform can send a call instruction for deploying the resource package to the second platform, and send the call instruction through the grayscale deployment environment interface of the resource department in the first platform to request the second platform to deploy.

[0066] In an exemplary embodiment, the obtaining the target request includes: when the front-end page receives a deployment operation, receiving the target request sent by the front-end page, wherein the front-end page is also used to select the deployment version information of the resource package.

[0067] In this embodiment, the user clicks the button to create an H5 page (deploy an H5 resource package) on the front-end page, and then selects the version information corresponding to the resource package of the H5 page on the front-end page. After the selection is completed, the user clicks the confirmation button, and the front-end page generates a target request to deploy the above resource package. The optional target request carries the deployment version information selected by the user on the front-end page. The deployment version information is used to verify whether the corresponding resource package exists on the first platform or to verify whether the corresponding resource package is entered on the second platform.

[0068] In an exemplary embodiment, after receiving the successful deployment notification sent by the second platform, the method further includes: sending the successful deployment notification to a front-end page to instruct the front-end page to refresh the page.

[0069] In this embodiment, after the second platform successfully deploys the above resource package, the first platform receives the successful deployment notification sent by the second platform, and then the first platform sends the successful deployment notification to the front-end page. The front-end page refreshes the page according to the successful deployment notification, and the displayed content in the front-end page can be updated to the H5 page.

[0070] In an exemplary embodiment, the resource package is an H5 resource package.

[0071] The present invention will be specifically described below in conjunction with embodiments:

[0072] Figure 4 is a schematic diagram of an optional resource package deployment according to an embodiment of the present application, such as Figure 4As shown, the user clicks the Deploy button on the front-end page, selects the deployment version information of the H5 resource package, and after clicking the Confirm button, sends a target request for deploying the H5 resource package to the performance platform. The performance platform verifies whether the corresponding resource package exists in the performance platform. If the corresponding resource package exists, it verifies whether the resource package is entered in the integrated service in the operation platform. If the resource package has not been entered by the operation platform, the corresponding resource package is entered in the operation platform. After successful entry, the entry result is returned to the performance platform. The performance platform initiates a call request by calling the grayscale deployment environment interface of the resource department. The operation platform deploys the above resource package according to the call request and returns the deployment result to the performance platform. The performance platform returns the deployment result to the front-end page, and the front-end page refreshes the page according to the deployment result to complete the creation of the H5 page.

[0073] According to another embodiment of the present invention, a resource package deployment device is also provided. Figure 5 is a structural block diagram of an optional resource package deployment according to an embodiment of the present application, such as Figure 5 As shown, the device comprises:

[0074] An acquisition unit 502 is used to acquire a target request, wherein the target request is used to request deployment of a resource package;

[0075] The initiating unit 504 is used to initiate a call request to the second platform when confirming that the resource package is successfully entered into the second platform, wherein the call request is used to instruct the second platform to deploy the resource package;

[0076] The receiving unit 506 is configured to receive a successful deployment notification sent by the second platform when the resource package is successfully deployed by the second platform.

[0077] In an exemplary embodiment, the initiating unit includes: a first verification module, used to verify whether the resource package has been entered into the second platform; and an entry unit, used to enter the resource package into the second platform if it is determined that the resource package has not been entered into the second platform.

[0078] In an exemplary embodiment, the above-mentioned first verification module also includes: a second verification module, used to verify whether the resource package exists in the first platform; a first determination module, used to determine that the resource package is not recorded in the second platform when the resource package does not exist in the first platform; a sending module, used to send a verification request to the second platform when the resource package exists in the first platform, and determine whether the resource package has been recorded in the second platform according to the verification result returned by the second platform, wherein the verification request indicates verification of whether the resource package is recorded in the second platform.

[0079] In an exemplary embodiment, the above-mentioned import module is further used to import the resource package into the second platform when it is determined that the resource package has not been imported into the second platform and the resource package exists in the first platform.

[0080] In an exemplary embodiment, the apparatus is further configured to receive a successful entry notification sent by the second platform after the resource package is entered into the second platform, wherein the successful entry notification is used to indicate that the resource package is successfully entered into the second platform.

[0081] In an exemplary embodiment, the acquisition unit includes: a receiving module, which receives the target request sent by the front-end page when the front-end page receives a deployment operation, wherein the front-end page is also used to select the deployment version information of the resource package.

[0082] In an exemplary embodiment, the above-mentioned device is also used to, after receiving the successful deployment notification sent by the second platform, send the successful deployment notification to the front-end page to instruct the front-end page to refresh the page.

[0083] In an exemplary embodiment, the resource package is an H5 resource package.

[0084] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0085] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0086] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0087] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0088] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0089] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0090] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for deploying a resource package, characterized in that: Applied to the first platform, including: In the case where the front-end page receives a deployment operation, receiving a target request sent by the front-end page, wherein the target request is used to request the first platform to deploy a resource package of the multimedia page, the first platform is a performance platform, and the front-end page is also used to select deployment version information of the resource package, the deployment version information includes at least one of the following: an operating environment, a name, and a version number; In the case of confirming that the resource package is successfully entered into the second platform, initiating a call request to the second platform, wherein the call request is used to instruct the second platform to deploy the resource package, and the second platform is an operation platform; When the second platform successfully deploys the resource package, receiving a successful deployment notification sent by the second platform; Before confirming that the resource package is successfully entered into the second platform, the method further includes: verifying whether the resource package exists in the first platform; if the corresponding resource package does not exist in the first platform, determining that the resource package is not entered into the second platform; if the resource package exists in the first platform, sending a verification request to the second platform and receiving a verification result returned by the second platform; determining whether the resource package has been entered into the second platform according to the verification result; The verifying whether the resource package exists in the first platform includes: verifying whether the corresponding resource package exists in the first platform through the deployment version information carried in the target request, the first platform parsing the deployment version information carried in the target request to obtain the operating environment, name and version number, and searching for a resource package matching the operating environment, name and version number in the resource packages stored in the first platform; if a resource package matching the operating environment, name and version number can be found, it indicates that the corresponding resource package exists in the first platform; if a resource package matching the operating environment, name and version number cannot be found, it indicates that the corresponding resource package does not exist in the first platform.

2. The method according to claim 1, characterized in that When confirming that the resource package is successfully entered into the second platform, initiating a call request to the second platform, wherein the call request is used to instruct the second platform to deploy the resource package, including: Verifying whether the resource package has been entered into the second platform; If it is determined that the resource package is not recorded in the second platform, the resource package is recorded in the second platform.

3. The method according to claim 2, characterized in that When it is determined that the resource package is not entered into the second platform, entering the resource package into the second platform includes: When it is determined that the resource package is not recorded in the second platform, and the resource package exists in the first platform, the resource package is recorded in the second platform.

4. The method according to claim 2, characterized in that: After entering the resource package into the second platform, the method further includes: A successful entry notification sent by the second platform is received, wherein the successful entry notification is used to indicate that the resource package is successfully entered into the second platform.

5. The method according to claim 1, characterized in that After receiving the successful deployment notification sent by the second platform, the method further includes: The successful deployment notification is sent to the front-end page to instruct the front-end page to refresh the page.

6. The method according to any one of claims 1 to 5, characterized in that The resource package is an H5 resource package.

7. A resource package deployment device, characterized in that: include: an acquisition unit, configured to receive a target request sent by the front-end page when the front-end page receives a deployment operation, wherein the target request is used to request the first platform to deploy the resource package of the multimedia page, the first platform is a performance platform, and the front-end page is further configured to select deployment version information of the resource package, wherein the deployment version information includes at least one of the following: an operating environment, a name, and a version number; An initiating unit, configured to initiate a call request to the second platform when confirming that the resource package is successfully entered into the second platform, wherein the call request is used to instruct the second platform to deploy the resource package, and the second platform is an operation platform; A receiving unit, configured to receive a successful deployment notification sent by the second platform when the resource package is successfully deployed on the second platform; The device is also used to verify whether the resource package exists in the first platform before confirming that the resource package is successfully entered in the second platform; if the corresponding resource package does not exist in the first platform, determine that the second platform has not entered the resource package; if the resource package exists in the first platform, send a verification request to the second platform and receive a verification result returned by the second platform; determine whether the second platform has entered the resource package according to the verification result; The device is also used to verify whether the corresponding resource package exists in the first platform through the deployment version information carried in the target request. The first platform parses the deployment version information carried in the target request to obtain the operating environment, name and version number, and searches for a resource package matching the operating environment, name and version number in the resource packages stored in the first platform. If a resource package matching the operating environment, name and version number can be found, it indicates that the corresponding resource package exists in the first platform. If a resource package matching the operating environment, name and version number cannot be found, it indicates that the corresponding resource package does not exist in the first platform.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 6 when executed.

9. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 6 through the computer program.

Citation Information

Patent Citations

  • Code deployment method and device, storage medium and electronic equipment

    CN112579099A

  • Business platform deployment method, device and equipment, and storage medium

    CN112688804A

  • H5 page loading method and device

    CN113064685A

  • Equipment access method and device, storage medium and electronic device

    CN113467776A

  • Network resource deployment method and device, and network resource assessment method and device

    US20200228990A1