Third-party application code rapid distribution method, device, equipment and storage medium

CN116028045BActive Publication Date: 2026-09-15SHENZHEN FULIN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211574495.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-08
Publication Date
2026-09-15
Estimated Expiration
2042-12-08

AI Technical Summary

Technical Problem

然而开放平台自身的更新也是很频繁的,一旦开放平台的技术标准或程序源代码发生变化,则第三方开发者也需要重新获取新的标准代码模板,来更新第三方应用

Benefits of technology

[0043]This invention automates the distribution of third-party application code through an object storage service and a CLI tool. The CLI tool acquires user input and generates a user-defined object executable within the CLI interface. Then, the CLI tool queries the object storage service for the corresponding third-party application code template and merges it with the user-defined object to generate the code result expected by the third-party developer, thus achieving code distribution. The CLI tool is an application executed within a CLI interface, and the object storage service is a centralized object storage service. This combined structure connects third-party applications to the development platform, unifying the code distribution process for developers on the open platform with the process of third-party developers obtaining templates to update their applications, thereby automating the distribution process. Therefore, this invention provides a method, apparatus, device, and storage medium for rapid distribution of third-party application code, enabling rapid distribution of application code needed by third-party applications during open platform updates, increasing the timeliness of third-party application updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116028045B_ABST
    Figure CN116028045B_ABST
Patent Text Reader

Abstract

The application relates to an artificial intelligence technology and discloses a third-party application code rapid distribution method, device, equipment and storage medium. The method comprises the following steps: preset version information is configured for each third-party application code template updated by an open platform developer, the version information and the third-party application code template are stored in a pre-built object storage service, user input information of a third-party developer is acquired, a user-defined object is assembled according to the user input information by using a pre-built CLI tool, the version information of each third-party application code template in the object storage service is inquired according to the user-defined object by using the CLI tool, the third-party application code template corresponding to the user input information is obtained according to the version information, and the third-party application code template and the user-defined object are merged to obtain distributable code. The application can increase the updating efficiency of the third-party application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of artificial intelligence technology, and in particular to a method, apparatus, device, and computer-readable storage medium for the rapid distribution of third-party application code. Background Technology

[0002] With the development of computer networks, network applications are constantly increasing. To accelerate development efficiency and standardize application development, some open platforms package and encapsulate the source code of certain websites or programs as standard code templates to help third-party developers develop standardized applications. However, open platforms themselves are updated very frequently. Once the technical standards or program source code of an open platform change, third-party developers also need to obtain the new standard code templates to update their applications.

[0003] Currently, when the standards, architecture, or version of an open platform change, it is necessary to maintain third-party application code templates in a designated Git database and grant access permissions to third-party developers, waiting for them to download the new standard code templates to update or upgrade their third-party applications. The process of the development platform maintaining and distributing these third-party application code templates is relatively inefficient, affecting the access efficiency of the open platform. Summary of the Invention

[0004] This invention provides a method, apparatus, device, and storage medium for rapid distribution of third-party application code. Its main purpose is to rapidly distribute the application code required by third-party applications when the open platform is updated, thereby increasing the timeliness of the updates of the third-party applications.

[0005] To achieve the above objectives, the present invention provides a method for rapid distribution of third-party application code, comprising:

[0006] Configure preset version information for each third-party application code template updated by open platform developers, and store the version information and the corresponding third-party application code template in a pre-built object storage service.

[0007] Obtain user input information from third-party developers and use pre-built CLI tools to construct user-defined objects based on the user input information;

[0008] Using the CLI tool, based on the user-defined object, the version information of each third-party application code template in the object storage service is queried. Based on the version information, the third-party application code template corresponding to the user input information is obtained, and the third-party application code template is merged with the user-defined object to obtain distributable code.

[0009] Optionally, the step of using a pre-built CLI tool to construct a user-defined object based on the user input information includes:

[0010] Using a pre-defined Node.js, configure the CLI tool with a runtime environment based on a pre-defined set of data functions;

[0011] The user input information is validated using a pre-configured CLI tool.

[0012] When the user input information is not standardized, a preset user input error message is generated;

[0013] When the user input information is standardized, the pre-built basic information architecture of the object is filled with the user input information to obtain the user-defined object.

[0014] Optionally, the step of using the CLI tool to query the version information of each third-party application code template in the object storage service based on the user-defined object, and obtaining the third-party application code template corresponding to the user input information based on the version information, includes:

[0015] The data query and read functions of the CLI tool are expanded by utilizing the data transmission and data read services of Node.js.

[0016] An HTTP-based encrypted data transmission channel is established between the CLI tool and the pre-built object storage service.

[0017] The system uses the target keywords in the user-defined object to query the third-party application code template in the object storage service, and uses the data encryption transmission channel to obtain the third-party application code template read by the data reading service.

[0018] Optionally, before merging the third-party application code template with the user-defined object, the method further includes:

[0019] Obtain the metadata of the third-party application code template;

[0020] Based on the metadata, determine the completeness of the third-party application code template;

[0021] If the third-party application code template is incomplete, the third-party application code template shall be downloaded again.

[0022] When the third-party application code template is complete, the step of merging the third-party application code template with the user-defined object is executed.

[0023] Optionally, after storing the version information and the corresponding third-party application code template in a pre-built object storage service, the method further includes:

[0024] Version management is performed on the code templates of each third-party application in the object storage service to obtain a version topology diagram.

[0025] To address the above problems, the present invention also provides a device for rapid distribution of third-party application code, the device comprising:

[0026] The code template update module is used to configure preset version information for each third-party application code template updated by the open platform developer, and store the version information and the corresponding third-party application code template in a pre-built object storage service.

[0027] The CLI object building module is used to obtain user input information from third-party developers and use pre-built CLI tools to build user-defined objects based on the user input information.

[0028] The code query module is used to use the CLI tool to query the version information of each third-party application code template in the object storage service based on the user-defined object, obtain the third-party application code template corresponding to the user input information based on the version information, and merge the third-party application code template with the user-defined object to obtain distributable code.

[0029] Optionally, the step of using a pre-built CLI tool to construct a user-defined object based on the user input information includes:

[0030] Using a pre-defined Node.js, configure the CLI tool with a runtime environment based on a pre-defined set of data functions;

[0031] The user input information is validated using a pre-configured CLI tool.

[0032] When the user input information is not standardized, a preset user input error message is generated;

[0033] When the user input information is standardized, the pre-built basic information architecture of the object is filled with the user input information to obtain the user-defined object.

[0034] Optionally, the step of using the CLI tool to query the version information of each third-party application code template in the object storage service based on the user-defined object, and obtaining the third-party application code template corresponding to the user input information based on the version information, includes:

[0035] The data query and read functions of the CLI tool are expanded by utilizing the data transmission and data read services of Node.js.

[0036] An HTTP-based encrypted data transmission channel is established between the CLI tool and the pre-built object storage service.

[0037] The system uses the target keywords in the user-defined object to query the third-party application code template in the object storage service, and uses the data encryption transmission channel to obtain the third-party application code template read by the data reading service.

[0038] To address the above problems, the present invention also provides an electronic device, the electronic device comprising:

[0039] At least one processor; and,

[0040] A memory communicatively connected to the at least one processor; wherein,

[0041] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to execute the aforementioned method for rapid distribution of third-party application code.

[0042] To address the aforementioned problems, the present invention also provides a computer-readable storage medium storing at least one computer program, which is executed by a processor in an electronic device to implement the aforementioned method for rapid distribution of third-party application code.

[0043] This invention automates the distribution of third-party application code through an object storage service and a CLI tool. The CLI tool acquires user input and generates a user-defined object executable within the CLI interface. Then, the CLI tool queries the object storage service for the corresponding third-party application code template and merges it with the user-defined object to generate the code result expected by the third-party developer, thus achieving code distribution. The CLI tool is an application executed within a CLI interface, and the object storage service is a centralized object storage service. This combined structure connects third-party applications to the development platform, unifying the code distribution process for developers on the open platform with the process of third-party developers obtaining templates to update their applications, thereby automating the distribution process. Therefore, this invention provides a method, apparatus, device, and storage medium for rapid distribution of third-party application code, enabling rapid distribution of application code needed by third-party applications during open platform updates, increasing the timeliness of third-party application updates. Attached Figure Description

[0044] Figure 1 A flowchart illustrating a method for rapid distribution of third-party application code according to an embodiment of the present invention;

[0045] Figure 2 A detailed flowchart illustrating one step of a method for rapid distribution of third-party application code according to an embodiment of the present invention;

[0046] Figure 3 A detailed flowchart illustrating one step of a method for rapid distribution of third-party application code according to an embodiment of the present invention;

[0047] Figure 4 A functional block diagram of a third-party application code rapid distribution device provided in an embodiment of the present invention;

[0048] Figure 5 This is a schematic diagram of the structure of an electronic device that implements the fast distribution method for third-party application code, as provided in an embodiment of the present invention.

[0049] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0050] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0051] This application provides a method for rapid distribution of third-party application code. In this application, the executing entity of the rapid distribution method includes, but is not limited to, at least one of the following: a server, a terminal, or other electronic devices that can be configured to execute the method provided in this application. In other words, the rapid distribution method can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes, but is not limited to, a single server, a server cluster, a cloud server, or a cloud server cluster. The server can be an independent server or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0052] Reference Figure 1 The diagram shown is a flowchart illustrating a method for rapid distribution of third-party application code according to an embodiment of the present invention. In this embodiment, the method for rapid distribution of third-party application code includes:

[0053] S1. Configure preset version information for each third-party application code template updated by the open platform developer, and store the version information and the corresponding third-party application code template in a pre-built object storage service.

[0054] It should be understood that open platform developers need to update the underlying source code of the open platform according to the latest updated technical standards and other documents. Consequently, all third-party applications on the open platform also need to update their code in a timely manner to ensure application compliance.

[0055] Furthermore, the version information includes the project number, date, version number, etc. This embodiment of the invention configures version information for each third-party application code template updated by the open platform developer, and stores the configured third-party application code templates in a pre-built object storage service. The object storage service is a centralized object storage service, convenient for use by both open platform developers and third-party developers. The centralized object storage can be understood as cloud storage, a cloud computing system centered on data storage and management. Users can access the cloud computing system anytime, anywhere, increasing the efficiency of data storage and retrieval for both users.

[0056] In this embodiment of the invention, after the open platform developer updates the third-party application code template, a unique version information is configured for each updated third-party application code template. This can avoid the open platform developer manually distributing each third-party application code template, freeing up manpower for code distribution and improving efficiency. It also facilitates the use of version information as search keywords to achieve automated retrieval and make it convenient for third-party developers to search.

[0057] Furthermore, in this embodiment of the invention, after storing the version information and the third-party application code template in a pre-built object storage service, the method further includes:

[0058] Version management is performed on the code templates of each third-party application in the object storage service to obtain a version topology diagram.

[0059] Version management is an important function and feature of engineering database management systems. This invention effectively records the evolution process of different versions and manages different versions through version management operations of directed acyclic graphs, and obtains a version topology diagram to record each version with as little data redundancy as possible.

[0060] S2. Obtain user input information from third-party developers and use pre-built CLI tools to construct user-defined objects based on the user input information.

[0061] In this embodiment of the invention, user input information from third-party developers is obtained through a preset data interface. The user input information includes, but is not limited to, project name, project description information, project type, and project template and version number.

[0062] Furthermore, in this embodiment of the invention, the CLI (Command Line Interface) tool is a program tool that can be executed in a user command interface.

[0063] For details, please refer to the following: Figure 2 As shown in this embodiment of the invention, the step of using a pre-built CLI tool to construct a user-defined object based on the user input information includes:

[0064] S21. Using a preset Node.js, configure the CLI tool with a runtime environment based on a preset set of data functions;

[0065] S22. Use the configured CLI tool to perform standardization verification on the user input information;

[0066] S23. Determine the standardization of the user input information;

[0067] When the user input information is not standardized, S24: Generate a preset user input error message;

[0068] When the user input information is standardized, S25, the user input information is used to fill in the pre-built object basic information architecture to obtain a user-defined object.

[0069] The normativity mentioned here includes, but is not limited to, completeness and legality.

[0070] Furthermore, Node.js is a JavaScript runtime environment based on the Chrome V8 engine, using an event-driven, non-blocking I / O model. In this embodiment of the invention, by selecting a data packet corresponding to a preset data function set in Node.js, the CLI tool is configured with a runtime environment for the preset data function set. The preset data function set includes, but is not limited to, functions for receiving, loading, and reading data packets.

[0071] Then, in order to standardize the input of third-party developers, the embodiments of the present invention set up a foolproof function in terms of legality and completeness. When standardized user input information is obtained, the CLI tool is executed to load the user input information in the pre-built object basic information framework to obtain a user-defined object.

[0072] The user-defined object runs through the entire lifecycle of the CLI and directly controls the CLI's behavior. Among the controlled behaviors of the CLI in this embodiment of the invention, the behaviors include: generating (initializing) different configuration information for the project based on the project type; and generating different basic project templates for the project based on the project type, project template name, and version number.

[0073] S3. Using the CLI tool, query the version information of each third-party application code template in the object storage service according to the user-defined object, obtain the third-party application code template corresponding to the user input information according to the version information, and merge the third-party application code template with the user-defined object to obtain distributable code.

[0074] For details, please refer to the following: Figure 3 As shown in this embodiment of the invention, the step of using the CLI tool to query the version information of each third-party application code template in the object storage service based on the user-defined object, and obtaining the third-party application code template corresponding to the user input information based on the version information, includes:

[0075] S31. Expand the data query and read functions of the CLI tool by utilizing the data transmission and data reading services of Node.js;

[0076] S32. Establish an HTTP-based encrypted data transmission channel between the CLI tool and the pre-built object storage service;

[0077] S33. Use the target keyword in the user-defined object to query the third-party application code template in the object storage service, and use the data encryption transmission channel to obtain the third-party application code template read by the data reading service.

[0078] The data transmission service is used to access the object storage service, while the data reading service is used to read data. In this embodiment of the invention, the target keyword can be unique version information such as a version number.

[0079] This invention, through the data transmission service, deploys an encrypted data transmission channel to ensure data transmission security and improve transmission efficiency. A data reading service is used to read local third-party application code and merge it with the user-defined object for reading and writing, thereby obtaining distributable code.

[0080] Furthermore, in this embodiment of the invention, before merging the third-party application code template with the user-defined object, the method further includes:

[0081] Obtain the metadata of the third-party application code template;

[0082] Based on the metadata, determine the completeness of the third-party application code template;

[0083] If the third-party application code template is incomplete, the third-party application code template shall be downloaded again.

[0084] When the third-party application code template is complete, the step of merging the third-party application code template with the user-defined object is executed.

[0085] In order to ensure that the distributed third-party application code matches the content requested by the third-party developer, this embodiment of the invention ensures the integrity of the third-party application code by identifying the metadata of the third-party application code template. The metadata is information about information. Metadata allows the server to provide information about the data sent, such as the language and objects of the sent object in HTTP, and can also be used to implement conditional requests and report transaction completion.

[0086] From the perspective of open platform developers, this invention only requires updating the code templates of third-party applications and annotating the version information. It does not require participation in the distribution process of each third-party application, thus saving distribution costs. From the perspective of third-party developers, there is no need to access a specific Git repository, search and clone data, and then update the code. They only need to enter the query conditions to obtain the complete code that matches their application, realizing an automated process and speeding up the overall update efficiency of the open platform and third-party applications.

[0087] This invention automates the distribution of third-party application code through an object storage service and a CLI tool. The CLI tool acquires user input and generates a user-defined object executable within the CLI interface. Then, the CLI tool queries the object storage service for the corresponding third-party application code template and merges it with the user-defined object to generate the code result expected by the third-party developer, thus achieving code distribution. The CLI tool is an application executed within a CLI interface, and the object storage service is a centralized object storage service. This combined structure connects third-party applications to the development platform, unifying the code distribution process for developers on the open platform with the process of third-party developers obtaining templates to update their applications, thereby automating the distribution process. Therefore, this invention provides a method for rapid distribution of third-party application code, enabling quick distribution of application code needed by third-party applications during platform updates, increasing the timeliness of third-party application updates.

[0088] like Figure 4 The diagram shown is a functional block diagram of a third-party application code rapid distribution device provided in an embodiment of the present invention.

[0089] The third-party application code rapid distribution device 100 described in this invention can be installed in an electronic device. Depending on the functions implemented, the third-party application code rapid distribution device 100 may include a code template update module 101, a CLI object construction module 102, and a code query module 103. The module described in this invention can also be referred to as a unit, which refers to a series of computer program segments that can be executed by the processor of an electronic device and can perform a fixed function, and which are stored in the memory of the electronic device.

[0090] In this embodiment, the functions of each module / unit are as follows:

[0091] The code template update module 101 is used to configure preset version information for each third-party application code template updated by the open platform developer, and store the version information and the corresponding third-party application code template in a pre-built object storage service.

[0092] It should be understood that open platform developers need to update the underlying source code of the open platform according to the latest updated technical standards and other documents. Consequently, all third-party applications on the open platform also need to update their code in a timely manner to ensure application compliance.

[0093] Furthermore, the version information includes the project number, date, version number, etc. This embodiment of the invention configures version information for each third-party application code template updated by the open platform developer, and stores the configured third-party application code templates in a pre-built object storage service. The object storage service is a centralized object storage service, convenient for use by both open platform developers and third-party developers. The centralized object storage can be understood as cloud storage, a cloud computing system centered on data storage and management. Users can access the cloud computing system anytime, anywhere, increasing the efficiency of data storage and retrieval for both users.

[0094] In this embodiment of the invention, after the open platform developer updates the third-party application code template, a unique version information is configured for each updated third-party application code template. This can avoid the open platform developer manually distributing each third-party application code template, freeing up manpower for code distribution and improving efficiency. It also facilitates the use of version information as search keywords to achieve automated retrieval and make it convenient for third-party developers to search.

[0095] Furthermore, in this embodiment of the invention, after storing the version information and the corresponding third-party application code template in a pre-built object storage service, the code template update module 101 is further configured to:

[0096] Version management is performed on the code templates of each third-party application in the object storage service to obtain a version topology diagram.

[0097] Version management is an important function and feature of engineering database management systems. This invention effectively records the evolution process of different versions and manages different versions through version management operations of directed acyclic graphs, and obtains a version topology diagram to record each version with as little data redundancy as possible.

[0098] The CLI object construction module 102 is used to obtain user input information from third-party developers and use pre-built CLI tools to construct user-defined objects based on the user input information.

[0099] In this embodiment of the invention, user input information from third-party developers is obtained through a preset data interface. The user input information includes, but is not limited to, project name, project description information, project type, and project template and version number.

[0100] Furthermore, in this embodiment of the invention, the CLI (Command Line Interface) tool is a program tool that can be executed in a user command interface.

[0101] Specifically, when the CLI object construction module 102 uses a pre-built CLI tool to construct a user-defined object based on the user input information, it is specifically used for:

[0102] Using a pre-defined Node.js, configure the CLI tool with a runtime environment based on a pre-defined set of data functions;

[0103] The user input information is validated using a pre-configured CLI tool.

[0104] Determine the standardization of the user input information;

[0105] When the user input information is not standardized, a preset user input error message is generated;

[0106] When the user input information is standardized, the pre-built basic information architecture of the object is filled with the user input information to obtain the user-defined object.

[0107] The normativity mentioned here includes, but is not limited to, completeness and legality.

[0108] Furthermore, Node.js is a JavaScript runtime environment based on the Chrome V8 engine, using an event-driven, non-blocking I / O model. In this embodiment of the invention, by selecting a data packet corresponding to a preset data function set in Node.js, the CLI tool is configured with a runtime environment for the preset data function set. The preset data function set includes, but is not limited to, functions for receiving, loading, and reading data packets.

[0109] Then, in order to standardize the input of third-party developers, the embodiments of the present invention set up a foolproof function in terms of legality and completeness. When standardized user input information is obtained, the CLI tool is executed to load the user input information in the pre-built object basic information framework to obtain a user-defined object.

[0110] The user-defined object runs through the entire lifecycle of the CLI and directly controls the CLI's behavior. Among the controlled behaviors of the CLI in this embodiment of the invention, the behaviors include: generating (initializing) different configuration information for the project based on the project type; and generating different basic project templates for the project based on the project type, project template name, and version number.

[0111] The code query module 103 is used to use the CLI tool to query the version information of each third-party application code template in the object storage service according to the user-defined object, obtain the third-party application code template corresponding to the user input information according to the version information, and merge the third-party application code template with the user-defined object to obtain distributable code.

[0112] In detail, when the code query module 103 uses the CLI tool to query the version information of each third-party application code template in the object storage service based on the user-defined object, and obtains the third-party application code template corresponding to the user input information based on the version information, it is specifically used for:

[0113] The data query and read functions of the CLI tool are expanded by utilizing the data transmission and data read services of Node.js.

[0114] An HTTP-based encrypted data transmission channel is established between the CLI tool and the pre-built object storage service.

[0115] The system uses the target keywords in the user-defined object to query the third-party application code template in the object storage service, and uses the data encryption transmission channel to obtain the third-party application code template read by the data reading service.

[0116] The data transmission service is used to access the object storage service, while the data reading service is used to read data. In this embodiment of the invention, the target keyword can be unique version information such as a version number.

[0117] This invention, through the data transmission service, deploys an encrypted data transmission channel to ensure data transmission security and improve transmission efficiency. A data reading service is used to read local third-party application code and merge it with the user-defined object for reading and writing, thereby obtaining distributable code.

[0118] Furthermore, before merging the third-party application code template with the user-defined object, the code query module 103 is also used to:

[0119] Obtain the metadata of the third-party application code template;

[0120] Based on the metadata, determine the completeness of the third-party application code template;

[0121] If the third-party application code template is incomplete, the third-party application code template shall be downloaded again.

[0122] When the third-party application code template is complete, the step of merging the third-party application code template with the user-defined object is executed.

[0123] In order to ensure that the distributed third-party application code matches the content requested by the third-party developer, this embodiment of the invention ensures the integrity of the third-party application code by identifying the metadata of the third-party application code template. The metadata is information about information. Metadata allows the server to provide information about the data sent, such as the language and objects of the sent object in HTTP, and can also be used to implement conditional requests and report transaction completion.

[0124] From the perspective of open platform developers, this invention only requires updating the code templates of third-party applications and annotating the version information. It does not require participation in the distribution process of each third-party application, thus saving distribution costs. From the perspective of third-party developers, there is no need to access a specific Git repository, search and clone data, and then update the code. They only need to enter the query conditions to obtain the complete code that matches their application, realizing an automated process and speeding up the overall update efficiency of the open platform and third-party applications.

[0125] like Figure 5 The diagram shown is a structural schematic of an electronic device 1 that implements a method for rapidly distributing third-party application code, according to an embodiment of the present invention.

[0126] The electronic device 1 may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13. It may also include a computer program, such as a third-party application code rapid distribution program, stored in the memory 11 and capable of running on the processor 10.

[0127] In some embodiments, the processor 10 may be composed of integrated circuits, such as a single packaged integrated circuit or multiple integrated circuits with the same or different functions, including combinations of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips. The processor 10 is the control unit of the electronic device 1, connecting various components of the electronic device through various interfaces and lines. It executes programs or modules stored in the memory 11 (e.g., executing third-party application code distribution programs) and calls data stored in the memory 11 to perform various functions of the electronic device and process data.

[0128] The memory 11 includes at least one type of readable storage medium, including flash memory, portable hard drive, multimedia card, card-type memory (e.g., SD or DX memory), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of an electronic device, such as a portable hard drive. In other embodiments, the memory 11 can be an external storage device of the electronic device, such as a plug-in portable hard drive, Smart Media Card (SMC), Secure Digital (SD) card, Flash Card, etc. Furthermore, the memory 11 can include both internal and external storage units of the electronic device. The memory 11 can be used not only to store application software and various types of data installed on the electronic device, such as the code of a third-party application code distribution program, but also to temporarily store data that has been output or will be output.

[0129] The communication bus 12 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This bus can be divided into an address bus, a data bus, a control bus, etc. The bus is configured to enable communication between the memory 11 and at least one processor 10, etc.

[0130] The communication interface 13 is used for communication between the electronic device 1 and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a Wi-Fi interface, Bluetooth interface, etc.), typically used to establish communication connections between the electronic device and other electronic devices. The user interface may be a display, an input unit (such as a keyboard), or, optionally, a standard wired or wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen, etc. The display may also be appropriately referred to as a screen or display unit, used to display information processed in the electronic device and to display a visual user interface.

[0131] Figure 5 Only electronic devices with components are shown; it will be understood by those skilled in the art that... Figure 5 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown, or combine certain components, or have different component arrangements.

[0132] For example, although not shown, the electronic device 1 may also include a power supply (such as a battery) to power various components. Preferably, the power supply can be logically connected to the at least one processor 10 through a power management device, thereby enabling functions such as charging management, discharging management, and power consumption management. The power supply may also include one or more DC or AC power supplies, recharging devices, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device 1 may also include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be described in detail here.

[0133] It should be understood that the embodiments described are for illustrative purposes only and are not limited to this structure in the scope of the patent application.

[0134] The third-party application code rapid distribution program stored in the memory 11 of the electronic device 1 is a combination of multiple instructions, which, when run in the processor 10, can achieve the following:

[0135] Configure preset version information for each third-party application code template updated by open platform developers, and store the version information and the corresponding third-party application code template in a pre-built object storage service.

[0136] Obtain user input information from third-party developers and use pre-built CLI tools to construct user-defined objects based on the user input information;

[0137] Using the CLI tool, based on the user-defined object, the version information of each third-party application code template in the object storage service is queried. Based on the version information, the third-party application code template corresponding to the user input information is obtained, and the third-party application code template is merged with the user-defined object to obtain distributable code.

[0138] Specifically, the specific implementation method of the processor 10 for the above instructions can be referred to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, and will not be repeated here.

[0139] Furthermore, if the modules / units integrated in the electronic device 1 are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, or a read-only memory (ROM).

[0140] The present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor of an electronic device, can perform the following:

[0141] Configure preset version information for each third-party application code template updated by open platform developers, and store the version information and the corresponding third-party application code template in a pre-built object storage service.

[0142] Obtain user input information from third-party developers and use pre-built CLI tools to construct user-defined objects based on the user input information;

[0143] Using the CLI tool, based on the user-defined object, the version information of each third-party application code template in the object storage service is queried. Based on the version information, the third-party application code template corresponding to the user input information is obtained, and the third-party application code template is merged with the user-defined object to obtain distributable code.

[0144] In the several embodiments provided by this invention, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and other division methods may be used in actual implementation.

[0145] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0146] Furthermore, the functional modules in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional modules.

[0147] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0148] Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be embraced within the invention. No appended diagram markings in the claims should be construed as limiting the scope of the claims.

[0149] The blockchain referred to in this invention is a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Essentially, a blockchain is a decentralized database, a chain of data blocks linked together using cryptographic methods. Each data block contains information about a batch of network transactions, used to verify the validity of the information (anti-counterfeiting) and generate the next block. A blockchain can include an underlying blockchain platform, a platform product service layer, and an application service layer.

[0150] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) refers to the theories, methods, technologies, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.

[0151] Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices recited in a system claim may also be implemented by a single unit or device through software or hardware. The terms "first," "second," etc., are used to indicate names and do not indicate any specific order.

[0152] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims

1. A method for fast distribution of third-party application code, characterized by, The method includes: Configure preset version information for each third-party application code template updated by open platform developers, and store the version information and the corresponding third-party application code template in a pre-built object storage service. Obtaining user input information from third-party developers and using a pre-built CLI tool to construct a user-defined object based on the user input information includes: configuring the CLI tool with a pre-defined Node.js environment based on a pre-defined set of data functions; using the configured CLI tool to perform standardization validation on the user input information; generating a pre-defined user input error message when the user input information is not standard; and filling the pre-built object's basic information structure with the user input information to obtain the user-defined object when the user input information is standard. An HTTP-based encrypted data transmission channel is constructed between the CLI tool and the pre-built object storage service. Based on the user-defined object, the version information of each third-party application code template in the object storage service is queried. Based on the version information, the third-party application code template corresponding to the user input information is obtained through the encrypted data transmission channel. The third-party application code template is then merged with the user-defined object to obtain distributable code.

2. The third party application code quick distribution method of claim 1, wherein, The step of querying version information of various third-party application code templates in the object storage service based on the user-defined object, and obtaining the third-party application code template corresponding to the user input information through the data encryption transmission channel based on the version information, includes: The data query and read functions of the CLI tool are expanded by utilizing the data transmission and data read services of Node.js. The system uses the target keywords in the user-defined object to query the third-party application code template in the object storage service, and uses the data encryption transmission channel to obtain the third-party application code template read by the data reading service.

3. The method for rapid distribution of third-party application code as described in claim 1, characterized in that, Before merging the third-party application code template with the user-defined object, the method further includes: Obtain the metadata of the third-party application code template; Based on the metadata, determine the completeness of the third-party application code template; If the third-party application code template is incomplete, the third-party application code template shall be downloaded again. When the third-party application code template is complete, the step of merging the third-party application code template with the user-defined object is executed.

4. The method for rapid distribution of third-party application code as described in claim 1, characterized in that, After storing the version information and the corresponding third-party application code template in a pre-built object storage service, the method further includes: Version management is performed on the code templates of each third-party application in the object storage service to obtain a version topology diagram.

5. A device for rapid distribution of third-party application code, characterized in that, The device includes: The code template update module is used to configure preset version information for each third-party application code template updated by the open platform developer, and store the version information and the corresponding third-party application code template in a pre-built object storage service. The CLI object building module is used to obtain user input information from third-party developers and use a pre-built CLI tool to build a user-defined object based on the user input information. This includes: configuring the CLI tool with a preset Node.js to run on a preset set of data functions; using the configured CLI tool to perform standardization validation on the user input information; generating a preset user input error message when the user input information is not standard; and filling the pre-built object basic information structure with the user input information to obtain the user-defined object when the user input information is standard. The code query module is used to build an HTTP-based encrypted data transmission channel between the CLI tool and the pre-built object storage service. Based on the user-defined object, it queries the version information of each third-party application code template in the object storage service. Based on the version information, it obtains the third-party application code template corresponding to the user input information through the encrypted data transmission channel, and merges the third-party application code template with the user-defined object to obtain distributable code.

6. The third-party application code rapid distribution device as described in claim 5, characterized in that, The step of querying version information of various third-party application code templates in the object storage service based on the user-defined object, and obtaining the third-party application code template corresponding to the user input information through the data encryption transmission channel based on the version information, includes: The data query and read functions of the CLI tool are expanded by utilizing the data transmission and data read services of Node.js. The system uses the target keywords in the user-defined object to query the third-party application code template in the object storage service, and uses the data encryption transmission channel to obtain the third-party application code template read by the data reading service.

7. An electronic device, characterized in that, The electronic device includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor to enable the at least one processor to perform the rapid distribution method for third-party application code as described in any one of claims 1 to 4.

8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method for rapid distribution of third-party application code as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Medicine research and development software warehouse and software package management system thereof

    CN111221562A

  • Project engineering generation method and device, computer equipment and storage medium

    CN113408260A