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

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

Info

Publication number
CN116028045A
CN116028045A CN202211574495.XA CN202211574495A CN116028045A CN 116028045 A CN116028045 A CN 116028045A CN 202211574495 A CN202211574495 A CN 202211574495A CN 116028045 A CN116028045 A CN 116028045A
Authority
CN
China
Prior art keywords
party application
application code
user
code template
user input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211574495.XA
Other languages
Chinese (zh)
Inventor
王颖奇
冯斌
赖杰辉
林煌东
兰锦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Fulin Technology Co Ltd
Original Assignee
Shenzhen Fulin Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Fulin Technology Co Ltd filed Critical Shenzhen Fulin Technology Co Ltd
Priority to CN202211574495.XA priority Critical patent/CN116028045A/en
Publication of CN116028045A publication Critical patent/CN116028045A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention relates to an artificial intelligence technology and discloses a method, a device, equipment and a storage medium for rapidly distributing third-party application codes. The method comprises the following steps: configuring preset version information for each third party application code template updated by an open platform developer, and correspondingly storing the version information and the third party application code templates into a pre-built object storage service; acquiring user input information of a third-party developer, and constructing a user-defined object according to the user input information by utilizing a pre-constructed CLI tool; and inquiring version information of each third party application code template in the object storage service according to the user-defined object by using the CLI tool, obtaining a third party application code template corresponding to the user input information according to the version information, and merging the third party application code template with the user-defined object to obtain the distributable code. The invention can increase the update efficiency of the third party application.

Description

Third party application code rapid distribution method, device, equipment and storage medium
Technical Field
The present invention relates to the field of artificial intelligence technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for rapidly distributing third party application codes.
Background
With the development of computer networks, network applications continue to increase. In order to accelerate development efficiency and normalize application development standards, some open platforms can package and encapsulate source codes of some websites or programs as standard code templates to help third-party developers develop normalized applications. However, the open platform itself is frequently updated, and once the technical standard or program source code of the open platform changes, the third party developer also needs to reacquire a new standard code template to update the third party application.
Currently, when the standard, architecture or version of the open platform changes, it is necessary to maintain a third party application code template in a designated Git database, give access rights to third party developers, wait for the third party developers, download new standard code templates to update or upgrade their third party applications, where the process efficiency of maintaining and distributing the third party application code templates by the development platform is low, and affects the access efficiency of the open platform.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for rapidly distributing third-party application codes, and mainly aims to rapidly distribute application codes required by third-party applications when an open platform is updated so as to increase the timely updating efficiency of the third-party applications.
In order to achieve the above object, the present invention provides a method for rapidly distributing third party application codes, including:
configuring preset version information for each third party application code template updated by an open platform developer, and correspondingly storing the version information and the third party application code templates into a pre-built object storage service;
acquiring user input information of a third-party developer, and constructing a user-defined object according to the user input information by utilizing a pre-constructed CLI tool;
and inquiring version information of each third party application code template in the object storage service according to the user-defined object by using the CLI tool, obtaining a third party application code template corresponding to the user input information according to the version information, and merging the third party application code template with the user-defined object to obtain a distributable code.
Optionally, the constructing, by using the pre-constructed CLI tool, a user-defined object according to the user input information includes:
configuring an operating environment based on a preset data function set for the CLI tool by using a preset node. Js;
performing normalization verification on the user input information by using the configured CLI tool;
when the user input information is not standard, generating preset user input abnormal prompt information;
and when the user inputs information specifications, filling the pre-constructed object basic information framework by utilizing the user input information to obtain a user-defined object.
Optionally, the querying version information of each third party application code template in the object storage service according to the user-defined object by using the CLI tool, and obtaining the third party application code template corresponding to the user input information according to the version information includes:
expanding the data query and read functions of the CLI tool by utilizing the data transmission service and the data read service of the node. Js;
constructing an http-based data encryption transmission channel for the CLI tool and the pre-constructed object storage service;
and inquiring a third party application code template in the object storage service by utilizing a target keyword in the user-defined object, and acquiring the third party application code template read by the data reading service by utilizing the data encryption transmission channel.
Optionally, before the third party application code template is combined with the user-defined object, the method further includes:
acquiring meta information of the third party application code template;
judging the integrity of the third party application code template according to the meta information;
when the third party application code template is incomplete, re-downloading the third party application code template;
and when the third party application code template is complete, executing the step of merging the third party application code template and the user-defined object.
Optionally, after the version information and the third party application code template are correspondingly stored in the pre-built object storage service, the method further includes:
and carrying out versioning management on each third party application code template in the object storage service to obtain a version topological structure diagram.
In order to solve the above problems, the present invention further provides a third party application code quick distribution apparatus, the apparatus comprising:
the code template updating module is used for configuring preset version information for each third party application code template updated by the open platform developer, and correspondingly storing the version information and the third party application code template into a preset object storage service;
The CLI object construction module is used for acquiring user input information of a third party developer and constructing a user-defined object according to the user input information by utilizing a pre-constructed CLI tool;
and the code query module is used for querying version information of each third party application code template in the object storage service according to the user-defined object by utilizing the CLI tool, obtaining a third party application code template corresponding to the user input information according to the version information, and combining the third party application code template with the user-defined object to obtain the distributable code.
Optionally, the constructing, by using the pre-constructed CLI tool, a user-defined object according to the user input information includes:
configuring an operating environment based on a preset data function set for the CLI tool by using a preset node. Js;
performing normalization verification on the user input information by using the configured CLI tool;
when the user input information is not standard, generating preset user input abnormal prompt information;
and when the user inputs information specifications, filling the pre-constructed object basic information framework by utilizing the user input information to obtain a user-defined object.
Optionally, the querying version information of each third party application code template in the object storage service according to the user-defined object by using the CLI tool, and obtaining the third party application code template corresponding to the user input information according to the version information includes:
expanding the data query and read functions of the CLI tool by utilizing the data transmission service and the data read service of the node. Js;
constructing an http-based data encryption transmission channel for the CLI tool and the pre-constructed object storage service;
and inquiring a third party application code template in the object storage service by utilizing a target keyword in the user-defined object, and acquiring the third party application code template read by the data reading service by utilizing the data encryption transmission channel.
In order to solve the above-mentioned problems, the present invention also provides an electronic apparatus including:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the third party application code fast distribution method described above.
In order to solve the above-mentioned problems, the present invention also provides a computer-readable storage medium having stored therein at least one computer program that is executed by a processor in an electronic device to implement the third party application code rapid distribution method described above.
The embodiment of the invention realizes the automatic distribution process of the third party application code through an object storage service and a CLI tool, obtains user input information through the CLI tool, generates a user-defined object which can be executed in a CLI interface, then queries a third party application code template corresponding to the user-defined object in the object storage service by utilizing the CLI tool, combines the third party application code template with the user-defined object to generate a code result expected by a third party developer user, thereby realizing the code distribution process, wherein the CLI tool is an application program executed in the CLI interface, the object storage service is a centralized object storage service, the third party application is connected with a development platform through a combined structure of the CLI tool and the object storage service, and the code distribution process of a developer of the open platform and the process of updating the application by the acquisition template of the third party developer are unified, so that the automatic distribution process is realized. Therefore, the method, the device, the equipment and the storage medium for rapidly distributing the third party application codes can rapidly distribute the application codes required by the third party application when the open platform is updated, and the timely updating efficiency of the third party application is improved.
Drawings
FIG. 1 is a flowchart of a method for fast distributing third party application codes according to an embodiment of the present invention;
FIG. 2 is a detailed flowchart illustrating a step in a method for fast distributing third party application code according to an embodiment of the present invention;
FIG. 3 is a detailed flowchart illustrating a step in a method for fast distributing third party application code according to an embodiment of the present invention;
FIG. 4 is a functional block diagram of a third party application code quick distribution device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device for implementing the method for rapidly distributing third party application codes according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The embodiment of the application provides a rapid distribution method for third-party application codes. In the embodiment of the present application, the execution body of the method for quickly distributing the third party application code includes, but is not limited to, at least one of a server, a terminal, and an electronic device capable of being configured to execute the method provided in the embodiment of the present application. In other words, the third party application code rapid distribution method may be performed by software or hardware installed in a terminal device or a server device, and the software may be a blockchain platform. The service end includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like. The server may be an independent server, or may be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
Referring to fig. 1, a flowchart of a method for quickly distributing third party application codes according to an embodiment of the present invention is shown. In this embodiment, the method for rapidly distributing the third party application code includes:
s1, configuring preset version information for each third party application code template updated by an open platform developer, and correspondingly storing the version information and the third party application code templates into a preset object storage service.
It should be noted that, the developer of the open platform needs to update the bottom source code of the open platform according to the latest updated files such as technical standards, and further, each third party application on the open platform needs to update the code in time, so as to ensure the compliance of the application.
Further, the version information includes engineering serial numbers, dates, version numbers and the like. The embodiment of the invention carries out version information configuration through each third party application code template updated by the open platform developer, and stores each configured third party application code template into the pre-constructed object storage service, wherein the object storage service is a centralized object storage service which is convenient for the open platform developer to use with the third party developer, wherein the centralized object storage can be a cloud storage, is a cloud computing system taking data storage and management as a core, and a user can access the cloud computing system at any time and place, so that the efficiency of data storage and data calling of the users of both sides is increased.
In the embodiment of the invention, after the open platform developer updates the third party application code templates, a unique version information is configured for each updated third party application code template, so that the open platform developer can be prevented from manually distributing each third party application code template, the code distribution manpower is liberated, the efficiency is improved, the automatic retrieval is realized by taking the version information as a retrieval keyword, and the retrieval of the third party developer is facilitated.
In addition, in the embodiment of the present invention, after the version information and the third party application code template are correspondingly stored in a pre-built object storage service, the method further includes:
and carrying out versioning management on each third party application code template in the object storage service to obtain a version topological structure diagram.
The invention effectively records the evolution process of different versions and effectively manages the different versions through the version management operation of the directed acyclic graph, so as to obtain a version topological structure diagram, and records each version with as little data redundancy as possible.
S2, acquiring user input information of a third party developer, and utilizing a pre-constructed CLI tool to construct a user-defined object according to the user input information.
According to the embodiment of the invention, the user input information of the third party developer is obtained through the preset data interface, wherein the user input information comprises, but is not limited to, an engineering name, engineering description information, an engineering type, an engineering template and a version number.
Further, in an embodiment of the present invention, the CLI (Command Line Interface) tool is a program tool that can be executed in a user command interface.
In detail, referring to fig. 2, in the embodiment of the present invention, the constructing, by using the pre-constructed CLI tool, a user-defined object according to the user input information includes:
s21, configuring an operation environment based on a preset data function set for the CLI tool by using a preset node.js;
s22, utilizing the configured CLI tool to carry out normalization check on the user input information;
s23, judging normalization of the user input information;
s24, generating preset user input abnormal prompt information when the user input information is not standard;
and when the user inputs information specifications, S25, filling the pre-constructed object basic information framework by utilizing the user input information to obtain a user-defined object.
Wherein the normalization includes, but is not limited to, integrity and legitimacy.
Furthermore, the node. Js is a JavaScript running environment based on a Chrome V8 engine, and an event-driven non-blocking I/O model is used. In the embodiment of the invention, the data packet corresponding to the preset data function set is selected in the node. Js, and the running environment of the preset data function set is configured for the CLI tool, wherein the preset data function set comprises and is not limited to the data functions of receiving, loading and reading packets.
Then, the embodiment of the invention sets a foolproof function for standardizing the input of a third party developer from the legitimacy and the integrity, and when standardized user input information is obtained, the CLI tool is executed, and the user input information is loaded in a pre-constructed object basic information frame to obtain a user-defined object.
The user-defined object runs through the life cycle of the CLI work and directly controls the behavior of the CLI, wherein the behavior of the CLI in the embodiment of the invention is controlled by the following behavior: generating (initializing) different configuration information for the project according to the project type; and generating different engineering foundation templates for the engineering according to the engineering type, the engineering template name and the version number.
S3, inquiring version information of each third party application code template in the object storage service according to the user-defined object by utilizing the CLI tool, obtaining a third party application code template corresponding to the user input information according to the version information, and combining the third party application code template with the user-defined object to obtain a distributable code.
In detail, referring to fig. 3, in the embodiment of the present invention, the querying version information of each third party application code template in the object storage service by using the CLI tool according to the user-defined object, and obtaining a third party application code template corresponding to the user input information according to the version information includes:
s31, expanding the data query and reading function of the CLI tool by utilizing the data transmission service and the data reading service of the node. Js;
s32, constructing an http-based data encryption transmission channel for the CLI tool and the pre-constructed object storage service;
s33, inquiring a third party application code template in the object storage service by utilizing a target keyword in the user-defined object, and acquiring the third party application code template read by the data reading service by utilizing the data encryption transmission channel.
Wherein the data transfer service is for accessing the object storage service and the data reading service is for implementing data reading. In the embodiment of the invention, the target keyword may be unique version information such as version number.
According to the embodiment of the invention, the data transmission safety can be ensured and the transmission efficiency can be improved by deploying the data encryption transmission channel through the data transmission service. And reading the local third party application code through the data reading service, and combining the local third party application code with the user-defined object for reading and writing to obtain the distributable code.
Further, in an embodiment of the present invention, before the merging the third party application code template with the user-defined object, the method further includes:
acquiring meta information of the third party application code template;
judging the integrity of the third party application code template according to the meta information;
when the third party application code template is incomplete, re-downloading the third party application code template;
and when the third party application code template is complete, executing the step of merging the third party application code template and the user-defined object.
In order to ensure that the distributed third party application code accords with the content requested by a third party developer, the integrity of the third party application code is ensured by identifying meta information of a third party application code template, wherein the meta information is information about information, the meta information allows a server to provide information of sent data, such as http, can improve the sent object language and objects, and can also be used for realizing conditional request and reporting transaction completion.
From the perspective of an open platform developer, the invention only needs to update the code template of the third party application and label version information, does not need to participate in the distribution process of each third party application, saves distribution cost, and from the perspective of the third party developer, does not need to visit and formulate a Git library, search and clone data and then update the code, can obtain complete codes conforming to the application of the user only by inputting query conditions, realizes an automatic process, and accelerates the integral updating efficiency of the open platform and the third party application.
The embodiment of the invention realizes the automatic distribution process of the third party application code through an object storage service and a CLI tool, obtains user input information through the CLI tool, generates a user-defined object which can be executed in a CLI interface, then queries a third party application code template corresponding to the user-defined object in the object storage service by utilizing the CLI tool, combines the third party application code template with the user-defined object to generate a code result expected by a third party developer user, thereby realizing the code distribution process, wherein the CLI tool is an application program executed in the CLI interface, the object storage service is a centralized object storage service, the third party application is connected with a development platform through a combined structure of the CLI tool and the object storage service, and the code distribution process of a developer of the open platform and the process of updating the application by the acquisition template of the third party developer are unified, so that the automatic distribution process is realized. Therefore, the method for rapidly distributing the third party application codes can rapidly distribute the application codes required by the third party application when the platform is opened for updating, and the timely updating efficiency of the third party application is improved.
Fig. 4 is a functional block diagram of a third party application code quick distribution device according to an embodiment of the present invention.
The third party application code quick distribution apparatus 100 of the present invention may be installed in an electronic device. Depending on the implementation, the third party application code quick distribution device 100 may include a code template update module 101, a CLI object building module 102, and a code query module 103. The module of the invention, which may also be referred to as a unit, refers to a series of computer program segments, which are stored in the memory of the electronic device, capable of being executed by the processor of the electronic device and of performing a fixed function.
In the present embodiment, the functions concerning the respective modules/units are as follows:
the code template updating module 101 is configured 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 third party application code template in a pre-constructed object storage service.
It should be noted that, the developer of the open platform needs to update the bottom source code of the open platform according to the latest updated files such as technical standards, and further, each third party application on the open platform needs to update the code in time, so as to ensure the compliance of the application.
Further, the version information includes engineering serial numbers, dates, version numbers and the like. The embodiment of the invention carries out version information configuration through each third party application code template updated by the open platform developer, and stores each configured third party application code template into the pre-constructed object storage service, wherein the object storage service is a centralized object storage service which is convenient for the open platform developer to use with the third party developer, wherein the centralized object storage can be a cloud storage, is a cloud computing system taking data storage and management as a core, and a user can access the cloud computing system at any time and place, so that the efficiency of data storage and data calling of the users of both sides is increased.
In the embodiment of the invention, after the open platform developer updates the third party application code templates, a unique version information is configured for each updated third party application code template, so that the open platform developer can be prevented from manually distributing each third party application code template, the code distribution manpower is liberated, the efficiency is improved, the automatic retrieval is realized by taking the version information as a retrieval keyword, and the retrieval of the third party developer is facilitated.
In addition, in the embodiment of the present invention, after storing the version information and the third party application code template in the pre-built object storage service, the code template updating module 101 is further configured to:
and carrying out versioning management on each third party application code template in the object storage service to obtain a version topological structure diagram.
The invention effectively records the evolution process of different versions and effectively manages the different versions through the version management operation of the directed acyclic graph, so as to obtain a version topological structure diagram, and records each version with as little data redundancy as possible.
The CLI object construction module 102 is configured to obtain user input information of a third party developer, and construct a user-defined object according to the user input information by using a pre-constructed CLI tool.
According to the embodiment of the invention, the user input information of the third party developer is obtained through the preset data interface, wherein the user input information comprises, but is not limited to, an engineering name, engineering description information, an engineering type, an engineering template and a version number.
Further, in an embodiment of the present invention, the CLI (Command Line Interface) tool is a program tool that can be executed in a user command interface.
In detail, the CLI object construction module 102 is specifically configured to, when using a pre-constructed CLI tool to construct a user-defined object according to the user input information:
configuring an operating environment based on a preset data function set for the CLI tool by using a preset node. Js;
performing normalization verification on the user input information by using the configured CLI tool;
judging normalization of the user input information;
when the user input information is not standard, generating preset user input abnormal prompt information;
and when the user inputs information specifications, filling the pre-constructed object basic information framework by utilizing the user input information to obtain a user-defined object.
Wherein the normalization includes, but is not limited to, integrity and legitimacy.
Furthermore, the node. Js is a JavaScript running environment based on a Chrome V8 engine, and an event-driven non-blocking I/O model is used. In the embodiment of the invention, the data packet corresponding to the preset data function set is selected in the node. Js, and the running environment of the preset data function set is configured for the CLI tool, wherein the preset data function set comprises and is not limited to the data functions of receiving, loading and reading packets.
Then, the embodiment of the invention sets a foolproof function for standardizing the input of a third party developer from the legitimacy and the integrity, and when standardized user input information is obtained, the CLI tool is executed, and the user input information is loaded in a pre-constructed object basic information frame to obtain a user-defined object.
The user-defined object runs through the life cycle of the CLI work and directly controls the behavior of the CLI, wherein the behavior of the CLI in the embodiment of the invention is controlled by the following behavior: generating (initializing) different configuration information for the project according to the project type; and generating different engineering foundation templates for the engineering according to the engineering type, the engineering template name and the version number.
The code query module 103 is configured to query version information of each third party application code template in the object storage service according to the user-defined object by using the CLI tool, obtain a third party application code template corresponding to the user input information according to the version information, and combine the third party application code template with the user-defined object to obtain a distributable code.
In detail, when the code query module 103 queries version information of each third party application code template in the object storage service according to the user-defined object by using the CLI tool, the code query module is specifically configured to:
expanding the data query and read functions of the CLI tool by utilizing the data transmission service and the data read service of the node. Js;
constructing an http-based data encryption transmission channel for the CLI tool and the pre-constructed object storage service;
and inquiring a third party application code template in the object storage service by utilizing a target keyword in the user-defined object, and acquiring the third party application code template read by the data reading service by utilizing the data encryption transmission channel.
Wherein the data transfer service is for accessing the object storage service and the data reading service is for implementing data reading. In the embodiment of the invention, the target keyword may be unique version information such as version number.
According to the embodiment of the invention, the data transmission safety can be ensured and the transmission efficiency can be improved by deploying the data encryption transmission channel through the data transmission service. And reading the local third party application code through the data reading service, and combining the local third party application code with the user-defined object for reading and writing to obtain the distributable code.
Further, the code query module 103 is further configured to, before merging the third party application code template with the user-defined object:
acquiring meta information of the third party application code template;
judging the integrity of the third party application code template according to the meta information;
when the third party application code template is incomplete, re-downloading the third party application code template;
and when the third party application code template is complete, executing the step of merging the third party application code template and the user-defined object.
In order to ensure that the distributed third party application code accords with the content requested by a third party developer, the integrity of the third party application code is ensured by identifying meta information of a third party application code template, wherein the meta information is information about information, the meta information allows a server to provide information of sent data, such as http, can improve the sent object language and objects, and can also be used for realizing conditional request and reporting transaction completion.
From the perspective of an open platform developer, the invention only needs to update the code template of the third party application and label version information, does not need to participate in the distribution process of each third party application, saves distribution cost, and from the perspective of the third party developer, does not need to visit and formulate a Git library, search and clone data and then update the code, can obtain complete codes conforming to the application of the user only by inputting query conditions, realizes an automatic process, and accelerates the integral updating efficiency of the open platform and the third party application.
Fig. 5 is a schematic structural diagram of an electronic device 1 for implementing a method for quickly distributing third party application codes according to an embodiment of the present invention.
The electronic device 1 may comprise a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may further comprise a computer program, such as a third party application code flash distribution program, stored in the memory 11 and executable on the processor 10.
The processor 10 may be formed by an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be formed by a plurality of integrated circuits packaged with the same function or different functions, including one or more central processing units (Central Processing Unit, CPU), a microprocessor, a digital processing chip, a graphics processor, a combination of various control chips, and so on. The processor 10 is a Control Unit (Control Unit) of the electronic device 1, connects various parts of the entire electronic device using various interfaces and lines, executes programs or modules stored in the memory 11 (for example, executes a third party application code quick distribution program, etc.), and invokes data stored in the memory 11 to perform various functions of the electronic device and process data.
The memory 11 includes at least one type of readable storage medium including flash memory, a removable hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device, such as a mobile hard disk of the electronic device. The memory 11 may in other embodiments also be an external storage device of the electronic device, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device. The memory 11 may be used not only for storing application software installed in an electronic device and various types of data, such as codes of a third party application code quick distribution program, etc., but also for temporarily storing data that has been output or is to be output.
The communication bus 12 may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. The bus is arranged to enable a connection communication between the memory 11 and at least one processor 10 etc.
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 (e.g., WI-FI interface, bluetooth interface, etc.), typically used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a Display (Display), an input unit such as a Keyboard (Keyboard), or alternatively a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device and for displaying a visual user interface.
Fig. 5 shows only an electronic device with components, it being understood by a person skilled in the art that the structure shown in fig. 5 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than shown, or may combine certain components, or may be arranged in different components.
For example, although not shown, the electronic device 1 may further include a power source (such as a battery) for supplying power to each component, and preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management, and the like are implemented through the power management device. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure detection circuit, power converter or inverter, power status indicator, etc. The electronic device 1 may further include various sensors, bluetooth modules, wi-Fi modules, etc., which will not be described herein.
It should be understood that the embodiments described are for illustrative purposes only and are not limited to this configuration in the scope of the patent application.
The third party application code quick distribution program stored in the memory 11 of the electronic device 1 is a combination of instructions which, when executed in the processor 10, may implement:
configuring preset version information for each third party application code template updated by an open platform developer, and correspondingly storing the version information and the third party application code templates into a pre-built object storage service;
Acquiring user input information of a third-party developer, and constructing a user-defined object according to the user input information by utilizing a pre-constructed CLI tool;
and inquiring version information of each third party application code template in the object storage service according to the user-defined object by using the CLI tool, obtaining a third party application code template corresponding to the user input information according to the version information, and merging the third party application code template with the user-defined object to obtain a distributable code.
In particular, the specific implementation method of the above instructions by the processor 10 may refer to the description of the relevant steps in the corresponding embodiment of the drawings, which is not repeated herein.
Further, the modules/units integrated in the electronic device 1 may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as separate products. The computer readable storage medium may be volatile or nonvolatile. For example, the computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM).
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 implement:
configuring preset version information for each third party application code template updated by an open platform developer, and correspondingly storing the version information and the third party application code templates into a pre-built object storage service;
acquiring user input information of a third-party developer, and constructing a user-defined object according to the user input information by utilizing a pre-constructed CLI tool;
and inquiring version information of each third party application code template in the object storage service according to the user-defined object by using the CLI tool, obtaining a third party application code template corresponding to the user input information according to the version information, and merging the third party application code template with the user-defined object to obtain a distributable code.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof.
The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The Blockchain (Blockchain), which is essentially a decentralised database, is a string of data blocks that are generated by cryptographic means in association, each data block containing a batch of information of network transactions for verifying the validity of the information (anti-counterfeiting) and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
The embodiment of the application can acquire and process the related data based on the artificial intelligence technology. Among these, artificial intelligence (Artificial Intelligence, AI) is the theory, method, technique and application system that uses a digital computer or a digital computer-controlled machine to simulate, extend and extend human intelligence, sense the environment, acquire knowledge and use knowledge to obtain optimal results.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the system claims can also be implemented by means of software or hardware by means of one unit or means. The terms first, second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention.

Claims (10)

1. A method for rapid distribution of third party application code, the method comprising:
configuring preset version information for each third party application code template updated by an open platform developer, and correspondingly storing the version information and the third party application code templates into a pre-built object storage service;
acquiring user input information of a third-party developer, and constructing a user-defined object according to the user input information by utilizing a pre-constructed CLI tool;
and inquiring version information of each third party application code template in the object storage service according to the user-defined object by using the CLI tool, obtaining a third party application code template corresponding to the user input information according to the version information, and merging the third party application code template with the user-defined object to obtain a distributable code.
2. The method for quickly distributing the third party application code according to claim 1, wherein the constructing the user-defined object according to the user input information by using the pre-constructed CLI tool includes:
configuring an operating environment based on a preset data function set for the CLI tool by using a preset node. Js;
performing normalization verification on the user input information by using the configured CLI tool;
when the user input information is not standard, generating preset user input abnormal prompt information;
and when the user inputs information specifications, filling the pre-constructed object basic information framework by utilizing the user input information to obtain a user-defined object.
3. The method for rapidly distributing the third party application code according to claim 1, wherein the querying version information of each third party application code template in the object storage service according to the user-defined object by using the CLI tool, and obtaining the third party application code template corresponding to the user input information according to the version information, comprises:
expanding the data query and read functions of the CLI tool by utilizing the data transmission service and the data read service of the node. Js;
Constructing an http-based data encryption transmission channel for the CLI tool and the pre-constructed object storage service;
and inquiring a third party application code template in the object storage service by utilizing a target keyword in the user-defined object, and acquiring the third party application code template read by the data reading service by utilizing the data encryption transmission channel.
4. The method for rapid distribution of third party application code according to claim 1, wherein prior to said merging said third party application code templates with said user-defined objects, said method further comprises:
acquiring meta information of the third party application code template;
judging the integrity of the third party application code template according to the meta information;
when the third party application code template is incomplete, re-downloading the third party application code template;
and when the third party application code template is complete, executing the step of merging the third party application code template and the user-defined object.
5. The method for quickly distributing the third party application code according to claim 1, wherein after the version information and the third party application code template are correspondingly stored in a pre-built object storage service, the method further comprises:
And carrying out versioning management on each third party application code template in the object storage service to obtain a version topological structure diagram.
6. A third party application code quick distribution device, the device comprising:
the code template updating module is used for configuring preset version information for each third party application code template updated by the open platform developer, and correspondingly storing the version information and the third party application code template into a preset object storage service;
the CLI object construction module is used for acquiring user input information of a third party developer and constructing a user-defined object according to the user input information by utilizing a pre-constructed CLI tool;
and the code query module is used for querying version information of each third party application code template in the object storage service according to the user-defined object by utilizing the CLI tool, obtaining a third party application code template corresponding to the user input information according to the version information, and combining the third party application code template with the user-defined object to obtain the distributable code.
7. The rapid third party application code distribution device according to claim 6, wherein the constructing a user-defined object from the user input information using a pre-constructed CLI tool comprises:
Configuring an operating environment based on a preset data function set for the CLI tool by using a preset node. Js;
performing normalization verification on the user input information by using the configured CLI tool;
when the user input information is not standard, generating preset user input abnormal prompt information;
and when the user inputs information specifications, filling the pre-constructed object basic information framework by utilizing the user input information to obtain a user-defined object.
8. The rapid third party application code distribution device according to claim 6, wherein the querying version information of each third party application code template in the object storage service according to the user-defined object by using the CLI tool, and obtaining the third party application code template corresponding to the user input information according to the version information, comprises:
expanding the data query and read functions of the CLI tool by utilizing the data transmission service and the data read service of the node. Js;
constructing an http-based data encryption transmission channel for the CLI tool and the pre-constructed object storage service;
and inquiring a third party application code template in the object storage service by utilizing a target keyword in the user-defined object, and acquiring the third party application code template read by the data reading service by utilizing the data encryption transmission channel.
9. An electronic device, the electronic device comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the third party application code fast distribution method according to any one of claims 1 to 5.
10. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the third party application code fast distribution method according to any one of claims 1 to 5.
CN202211574495.XA 2022-12-08 2022-12-08 Third party application code rapid distribution method, device, equipment and storage medium Pending CN116028045A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211574495.XA CN116028045A (en) 2022-12-08 2022-12-08 Third party application code rapid distribution method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211574495.XA CN116028045A (en) 2022-12-08 2022-12-08 Third party application code rapid distribution method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116028045A true CN116028045A (en) 2023-04-28

Family

ID=86075130

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211574495.XA Pending CN116028045A (en) 2022-12-08 2022-12-08 Third party application code rapid distribution method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116028045A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116610311A (en) * 2023-07-21 2023-08-18 太极计算机股份有限公司 Method and system for automatically excavating and multiplexing low-code templates

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116610311A (en) * 2023-07-21 2023-08-18 太极计算机股份有限公司 Method and system for automatically excavating and multiplexing low-code templates
CN116610311B (en) * 2023-07-21 2023-12-05 太极计算机股份有限公司 Method and system for automatically excavating and multiplexing low-code templates

Similar Documents

Publication Publication Date Title
CN112506559B (en) Gray release method and device based on gateway, electronic equipment and storage medium
CN111429121B (en) Block chain-based electronic ticket processing method, device, equipment and storage medium
CN113890712A (en) Data transmission method and device, electronic equipment and readable storage medium
CN116028045A (en) Third party application code rapid distribution method, device, equipment and storage medium
US20180234247A1 (en) Mixed checksum injection for content verification on multiple platforms
CN112256989A (en) Page loading method and device based on offline package, terminal equipment and storage medium
CN112965721A (en) Android-based project compiling method and device, computer equipment and storage medium
CN113297180A (en) Data migration method and device, electronic equipment and storage medium
CN115086047B (en) Interface authentication method and device, electronic equipment and storage medium
CN113791809B (en) Application exception handling method and device and computer readable storage medium
CN115174541A (en) H5 resource loading method and device, electronic equipment and storage medium
CN111651509B (en) Hbase database-based data importing method and device, electronic equipment and medium
CN114546410A (en) Code optimization method based on design mode and related equipment
CN114510400A (en) Task execution method and device, electronic equipment and storage medium
CN114358748A (en) BIM-based engineering construction informatization management method and device
CN113918296A (en) Model training task scheduling execution method and device, electronic equipment and storage medium
CN112380820A (en) Automatic data backfilling method and device, electronic equipment and computer storage medium
CN112686759A (en) Account checking monitoring method, device, equipment and medium
CN112527443A (en) Prompt box display method and device, electronic equipment and computer readable storage medium
CN113362040B (en) Approval chain configuration updating method and device, electronic equipment and storage medium
CN114640666B (en) File sharing downloading method, electronic equipment and readable storage medium
CN117827869A (en) Database operation method, device and equipment for automatic filling of universal fields
CN112817601A (en) Configurable program generation method and device, electronic equipment and storage medium
CN112612789A (en) Data access method and device, electronic equipment and storage medium
CN114610359A (en) Project upgrading method, device, equipment and medium based on design development framework

Legal Events

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