CN114168215B - Plug-in processing method, system and medium for multiple small program function modules - Google Patents

Plug-in processing method, system and medium for multiple small program function modules Download PDF

Info

Publication number
CN114168215B
CN114168215B CN202111359642.7A CN202111359642A CN114168215B CN 114168215 B CN114168215 B CN 114168215B CN 202111359642 A CN202111359642 A CN 202111359642A CN 114168215 B CN114168215 B CN 114168215B
Authority
CN
China
Prior art keywords
applet
file
plug
target
cluster
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.)
Active
Application number
CN202111359642.7A
Other languages
Chinese (zh)
Other versions
CN114168215A (en
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.)
Guangdong Pacific Internet Information Service Co ltd
Original Assignee
Guangdong Pacific Internet Information Service 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 Guangdong Pacific Internet Information Service Co ltd filed Critical Guangdong Pacific Internet Information Service Co ltd
Priority to CN202111359642.7A priority Critical patent/CN114168215B/en
Publication of CN114168215A publication Critical patent/CN114168215A/en
Application granted granted Critical
Publication of CN114168215B publication Critical patent/CN114168215B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45529Embedded in an application, e.g. JavaScript in a Web browser
    • 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 discloses a method, a system and a medium for plug-in processing of a plurality of small program function modules, wherein the method comprises the following steps: generating a target general page file according to the similar parts of the applet clusters; generating a target identification file according to the user file of the applet cluster; generating a target configuration file according to configuration data of channels corresponding to the applet clusters; plug-ins of the applet clusters are formed according to the target general page file, the target identification file and the target configuration file; acquiring js files preset by the applet clusters; and completing the plug-in call of each applet in the applet cluster according to the js file. The invention improves unified applet plug-in for multiple channels through plug-in development based on WeChat applet, solves the problem of repeated development work of similar functional modules, improves code reusability of similar module functions among various channels of enterprises, reduces labor cost and later maintenance cost, and can be widely applied to the technical field of WeChat applet development.

Description

Plug-in processing method, system and medium for multiple small program function modules
Technical Field
The invention relates to the technical field of WeChat applet development, in particular to a method, a system and a medium for plug-in processing of a plurality of applet function modules.
Background
Currently, enterprises on the market generally have a plurality of channels, and often needs to provide applet applications capable of operating independently for each channel, and a conventional means in the prior art is to combine and develop various functional modules into a plurality of independent applets, but the development period of a single applet is long, and multiple parties are required to operate separately in the later period, and meanwhile, a plurality of background management systems are used for data maintenance.
Therefore, in the prior art, commonly used functional modules are repeatedly developed among all small programs, and the functional modules of all applications of one functional adjustment are matched and adjusted, so that the labor cost is increased, and the later maintenance difficulty is increased.
Disclosure of Invention
In view of this, the embodiment of the invention provides a method, a system and a medium for plug-in processing of a plurality of small program function modules, which can provide uniform small program plug-ins for multiple channels, avoid repeated development work of similar function modules, and reduce labor cost and later maintenance cost.
A first aspect of an embodiment of the present invention provides a method for plugin processing a plurality of applet function modules, including:
generating a target general page file according to the similar parts of the applet clusters;
generating a target identification file according to the user file of the applet cluster;
generating a target configuration file according to configuration data of channels corresponding to the applet clusters;
forming an plugin of the applet cluster according to the target general page file, the target identification file and the target configuration file;
acquiring js files preset by the applet clusters;
completing the plug-in call of each applet in the applet cluster according to the js file;
the small program cluster comprises at least one small program to be plugged in, the target general page file is used for describing page characteristics of the plug-in, the target identification file is used for identifying matching information of the plug-in, and the target configuration file is used for describing configuration information of the plug-in.
Optionally, the generating the target general page file according to the similar part of the applet cluster includes:
presetting a component file and a basic page file according to the similar part of the applet cluster, wherein the component file comprises a basic component file and an operation component file;
and forming the target general page file according to the component file and the basic page file.
Optionally, the generating the target identification file according to the user file of the applet cluster includes:
according to the login credentials obtained by calling the WeChat login interface by each applet in the applet cluster, obtaining user login state information;
acquiring unique identifiers of all applets in the applet cluster and unique identifiers under a WeChat development platform account of a user according to the user login state information;
taking the unique identifier of each applet in the applet cluster as the unique identifier of the user corresponding to each channel;
and taking the unique identifier under the WeChat development platform account as the unique identifier of the user of the platform.
Optionally, the generating the target configuration file includes at least one of:
generating a configuration file of the content;
an active configuration file is generated.
Optionally, the acquiring the js file preset by the applet cluster includes:
deriving parameter information listed in a key value pair mode according to the module;
and acquiring the js file according to the parameter information.
Optionally, the completing the plug-in call of each applet in the applet cluster according to the js file includes:
the plugin reads the js file according to the global function and acquires channel data corresponding to the target applet;
according to the WeChat request, the channel data is transmitted through the plug-in calling port;
and displaying the channel data in the target applet through the plug-in.
Optionally, the obtaining channel data corresponding to the target applet includes at least one of the following:
obtaining a channel value corresponding to the target applet;
and acquiring user information corresponding to the target applet.
A second aspect of an embodiment of the present invention provides a system for plugin processing a plurality of applet function modules, including:
the first module is used for generating a target general page file according to the similar part of the applet cluster;
the second module is used for generating a target identification file according to the user file of the applet cluster;
the third module is used for generating a target configuration file according to the configuration data of the channel corresponding to the applet cluster;
a fourth module, configured to compose an add-in of the applet cluster according to the target general page file, the target identification file and the target configuration file;
a fifth module, configured to obtain a js file preset by the applet cluster;
a sixth module, configured to complete plug-in calling of each applet in the applet cluster according to the js file;
the small program cluster comprises at least one small program to be plugged in, the target general page file is used for describing page characteristics of the plug-in, the target identification file is used for identifying matching information of the plug-in, and the target configuration file is used for describing configuration information of the plug-in.
A third aspect of an embodiment of the present invention provides an electronic device, including a processor and a memory;
the memory is used for storing programs;
the processor executes the program to implement the method as described above.
A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium storing a program for execution by a processor to implement a method as described above.
Embodiments of the present invention also disclose a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The computer instructions may be read from a computer-readable storage medium by a processor of a computer device, and executed by the processor, to cause the computer device to perform the foregoing method.
The technical scheme provided by the embodiment of the invention has the beneficial effects that: through the plug-in development based on WeChat applet, unified applet plug-in is improved for multiple channels, the repeated development work problem of similar function modules is solved, the code reusability of similar module functions among various channels of an enterprise is improved, and labor cost and later maintenance cost are reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for plugin processing of a plurality of applet function modules according to an embodiment of the invention;
FIG. 2 is a schematic diagram of configuration items of a plurality of channel parties according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of call plug-in presentation data according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The implementation principle of the specific embodiment of the present invention is described in detail below with reference to the attached drawings of the specification:
fig. 1 is a flow chart of a method for plugin processing of a plurality of applet function modules according to an embodiment of the present invention, where the method includes:
generating a target general page file according to the similar parts of the applet clusters;
generating a target identification file according to the user file of the applet cluster;
generating a target configuration file according to configuration data of channels corresponding to the applet clusters;
plug-ins of the applet clusters are formed according to the target general page file, the target identification file and the target configuration file;
acquiring js files preset by the applet clusters;
completing the plug-in call of each applet in the applet cluster according to the js file;
the applet cluster comprises at least one applet to be plugged in, a target general page file is used for describing page characteristics of plug-ins, a target identification file is used for identifying matching information of the plug-ins, and a target configuration file is used for describing configuration information of the plug-ins.
In some embodiments, generating the target generic page file from the similar portion of the applet clusters includes:
presetting a component file and a basic page file according to the similar part of the applet cluster, wherein the component file comprises a basic component file and an operation component file;
and forming a target general page file according to the component file and the basic page file.
In some embodiments, generating the target identification file from the user files of the applet clusters includes:
according to each applet in the applet cluster, calling a login credential acquired by a WeChat login interface to acquire user login state information;
acquiring unique identifiers of all applets in an applet cluster and unique identifiers under a WeChat development platform account of a user according to user login state information;
taking the unique identifier of each applet in the applet cluster as the unique identifier of the user corresponding to each channel;
and taking the unique identifier under the WeChat development platform account as the unique identifier of the user of the platform.
In some embodiments, generating the target profile includes at least one of:
generating a configuration file of the content;
an active configuration file is generated.
In some embodiments, obtaining js files preset by the applet clusters includes:
deriving parameter information listed in a key value pair mode according to the module;
and acquiring js files according to the parameter information.
In some embodiments, completing plug-in calls for each applet in an applet cluster from a js file includes:
the plugin reads js file according to the global function and obtains channel data corresponding to the target applet;
according to the WeChat request, channel data are transmitted through a plugin calling port;
and displaying the channel data in the target applet through the plug-in.
In some embodiments, obtaining channel data corresponding to the targeted applet includes at least one of:
obtaining a channel value corresponding to the target applet;
and acquiring user information corresponding to the target applet.
Specifically, in some embodiments, the present invention implements the above method by:
1. customizing universal components/pages of each applet developed;
2. the central platform performs unified user management;
3. the center platform provides multi-channel content configuration;
4. each calling party transmits in a unique channel mark;
5. the plug-in acquires the content data of the corresponding channel and displays and outputs the content data to the applet terminal.
The detailed steps of the first step are as follows:
dividing the parts with high similarity of the applets of each channel of the enterprise into a basic assembly, an operation assembly and a basic page;
writing service codes on defined components and pages, developing interfaces and functions provided by service function call WeChat, respectively storing the interfaces and the functions in components (custom component catalogue) and pages (custom page catalogue), listing the components and the pages required to be provided for the calling of an applet party in a configuration file plug in. Json (plug-in configuration file), and listing the custom components in publicComponents (component list of plug-in) in a key value pair format: "component name: component path "; custom pages are listed in pages (page list of plug-ins) in key-value pair format: "page name: page path).
The detailed steps of the second step are as follows:
the same WeChat open platform account numbers are bound through the applet main bodies of all channels, then all the applets can acquire login credentials (codes) by calling WeChat login interfaces (wx.logins), further user login information is acquired through the login credentials to a server, the acquired user information is used as a user unique identifier of all the channels at the unique identifier (open) of the current applet, and the unique identifier (unique) under the WeChat open platform account numbers is used as a user unique identifier of the whole platform.
It should be noted that, the unique user identifier (openId) of the user channel and the unique user identifier (unionId) of the whole platform are stored through the central platform, and the user is identified through the recorded unique user identifier (unionId) of the whole platform, so that the functions of unified login of the whole platform and operations of praise, collection, comment and the like of the user on the content can be realized.
The detailed steps of the third step are as follows:
referring to fig. 2, the central platform can expand and add a plurality of channel parties, and can configure corresponding contents, activities and the like for each platform, and configuration items can be customized and developed according to actual requirements;
the detailed steps of the fourth step are as follows:
the applet of each channel side exports js through export for the plugin side to acquire the channel mark and user information of the applet side.
The specific operation is as follows:
1) An index. Js file preset by a module export (module. Exports) applet (a file of applet writing export to a plugin to acquire applet information) is obtained by a plugin side, and required information is listed in a key value pair mode:
channel (Channel parameters): ' channel A ' (channel value of calling party) ';
openId (user identification parameter of channel): 'unique identification openid' of the current applet;
unitId (user identification parameter of full platform): unique identification (unionid) under the WeChat open platform Account.
2) Exporting index. Js (a preset file in operation 1) through miniprogram/app.json (a common configuration file of an applet) for calling by the plug-in;
controlling the version of the introduced plugin by declaring the plugin name and exporting the plugin name in a key value pair mode in plugin information and controlling the version of the introduced plugin by version parameters (version numbers); writing an appId reference of a provider to a corresponding plug-in through a provider parameter (provider); the file path to be exported is written for use by the plug-in through export parameters (export).
The detailed steps of the fifth step are as follows:
referring to fig. 3, the plug-in reads the file exported in the fourth step through a requireMiniProgram (global function) to acquire the channel and user information of the applet; declaring a public variable openId (applet unique user identifier) and assigning a value to the public variable openId (applet unique user identifier) derived from an applet obtained by a global function (requireMiniProgram), and storing the public variable openId (applet unique user identifier) into a plug-in public variable; in the same way as the operation of storing openId (applet unique user identifier), channel value and unionId (full platform unique user identifier) are also stored into a common variable;
the plug-in initiates an HTTPS network request through a wx.request (WeChat request network interface method), invokes a back-end interface and transmits channel information, acquires data of a corresponding channel and displays the data;
the specific operation is as follows:
1) The interface address of the center platform is transmitted in through url;
2) The data is transmitted into the parameter channel in a key value pair mode: channel value (channel value obtained by global function)
3) Monitoring success (request success callback function), determining whether 200 (response success status code) is the code returned by the interface according to the code (response status code), if not 200, performing error status code log printing (control. Log (res. Data)) and making an exception prompt on the page; when the returned code is 200, rendering and displaying the returned data, carrying out dynamic data binding by calling a setData interface, traversing the data by a view layer through wx for, and carrying the traversed data by using a view tag, thereby realizing the display of the data content by a user interface;
4) And monitoring fail (request failure callback function), performing log printing on returned error information and making an exception prompt on the page.
The embodiment of the invention provides a plug-in processing system for a plurality of small program function modules, which comprises the following components:
the first module is used for generating a target general page file according to the similar part of the applet cluster;
the second module is used for generating a target identification file according to the user file of the applet cluster;
the third module is used for generating a target configuration file according to the configuration data of the channel corresponding to the applet cluster;
a fourth module, configured to compose an add-in of the applet cluster according to the target general page file, the target identification file and the target configuration file;
a fifth module, configured to obtain a js file preset by the applet cluster;
a sixth module, configured to complete plug-in calling of each applet in the applet cluster according to the js file;
the small program cluster comprises at least one small program to be plugged in, the target general page file is used for describing page characteristics of the plug-in, the target identification file is used for identifying matching information of the plug-in, and the target configuration file is used for describing configuration information of the plug-in.
The method embodiment of the invention is applicable to the system embodiment, has the same realized functions as the method embodiment, and has the same beneficial effects as the method.
The embodiment of the invention provides electronic equipment, which comprises a processor and a memory;
the memory is used for storing programs;
the processor executes the program to realize the plug-in processing method of the plurality of small program function modules.
The content of the method embodiment of the invention is suitable for the electronic equipment embodiment, the functions of the electronic equipment embodiment are the same as those of the method embodiment, and the achieved beneficial effects are the same as those of the method.
In summary, the embodiment of the invention can realize plug-in development based on WeChat applet, and the corresponding content data is presented for the applet party by identifying the applet party calling the plug-in, thereby solving the problem of repeated development of the existing multi-channel/brand and similar functional modules. Compared with the prior art, the method and the device are developed for a plurality of channels respectively and provide the independently-operated applet for each channel, the technical scheme provided by the embodiment of the invention can improve the code reusability of similar module functions among various brands of channels of enterprises, reduce the development cost of new projects, reduce the labor cost and simultaneously reduce the maintenance cost of later stages of projects.
Embodiments of the present invention also disclose a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The computer instructions may be read from a computer-readable storage medium by a processor of a computer device, and executed by the processor, cause the computer device to perform the method described above.
In some alternative embodiments, the functions/acts noted in the block diagrams may occur out of the order noted in the operational illustrations. For example, two blocks shown in succession may in fact be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending upon the functionality/acts involved. Furthermore, the embodiments presented and described in the flowcharts of the present invention are provided by way of example in order to provide a more thorough understanding of the technology. The disclosed methods are not limited to the operations and logic flows presented herein. Alternative embodiments are contemplated in which the order of various operations is changed, and in which sub-operations described as part of a larger operation are performed independently.
Furthermore, while the invention is described in the context of functional modules, it should be appreciated that, unless otherwise indicated, one or more of the described functions and/or features may be integrated in a single physical system and/or software module or one or more functions and/or features may be implemented in separate physical systems or software modules. It will also be appreciated that a detailed discussion of the actual implementation of each module is not necessary to an understanding of the present invention. Rather, the actual implementation of the various functional modules in the systems disclosed herein will be apparent to engineers in ordinary skill in view of their attributes, functions, and internal relationships. Accordingly, one of ordinary skill in the art can implement the invention as set forth in the claims without undue experimentation. It is also to be understood that the specific concepts disclosed are merely illustrative and are not intended to be limiting upon the scope of the invention, which is to be defined in the appended claims and their full scope of equivalents.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any system that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, or apparatus.
More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic system) with one or more wires, a portable computer diskette (magnetic system), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber system, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present invention have been shown and described, it will be understood by those of ordinary skill in the art that: many changes, modifications, substitutions and variations may be made to the embodiments without departing from the spirit and principles of the invention, the scope of which is defined by the claims and their equivalents.
While the preferred embodiment of the present invention has been described in detail, the present invention is not limited to the embodiments described above, and those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention, and these equivalent modifications or substitutions are included in the scope of the present invention as defined in the appended claims.

Claims (9)

1. A method for plug-in processing of a plurality of applet function modules, comprising:
generating a target general page file according to the similar parts of the applet clusters;
generating a target identification file according to the user file of the applet cluster;
generating a target configuration file according to configuration data of channels corresponding to the applet clusters;
forming an plugin of the applet cluster according to the target general page file, the target identification file and the target configuration file;
acquiring js files preset by the applet clusters;
completing the plug-in call of each applet in the applet cluster according to the js file;
the step of completing the plug-in call of each applet in the applet cluster according to the js file comprises the following steps:
the plugin reads the js file according to the global function and acquires channel data corresponding to the target applet;
according to the WeChat request, the channel data is transmitted through the plug-in calling port;
displaying the channel data on the target applet through the plug-in;
the small program cluster comprises at least one small program to be plugged in, the target general page file is used for describing page characteristics of the plug-in, the target identification file is used for identifying matching information of the plug-in, and the target configuration file is used for describing configuration information of the plug-in.
2. The method for plug-in processing of a plurality of applet function modules according to claim 1, wherein the generating a target generic page file according to a similar part of an applet cluster comprises:
presetting a component file and a basic page file according to the similar part of the applet cluster, wherein the component file comprises a basic component file and an operation component file;
and forming the target general page file according to the component file and the basic page file.
3. The method for plug-in processing of a plurality of applet functional modules according to claim 1, wherein the generating a target identification file according to a user file of the applet cluster comprises:
according to the login credentials obtained by calling the WeChat login interface by each applet in the applet cluster, obtaining user login state information;
acquiring unique identifiers of all applets in the applet cluster and unique identifiers under a WeChat development platform account of a user according to the user login state information;
taking the unique identifier of each applet in the applet cluster as the unique identifier of the user corresponding to each channel;
and taking the unique identifier under the WeChat development platform account as the unique identifier of the user of the platform.
4. The method for plug-in processing of a plurality of applet function modules according to claim 1, wherein the generating the target configuration file comprises at least one of:
generating a configuration file of the content;
an active configuration file is generated.
5. The method for plug-in processing of a plurality of applet function modules according to claim 1, wherein the obtaining js files preset by the applet clusters comprises:
deriving parameter information listed in a key value pair mode according to the module;
and acquiring the js file according to the parameter information.
6. The method for plug-in processing of a plurality of applet function modules according to claim 1, wherein the obtaining channel data corresponding to the applet includes at least one of:
obtaining a channel value corresponding to the target applet;
and acquiring user information corresponding to the target applet.
7. A multiple applet function module plug-in processing system, comprising:
the first module is used for generating a target general page file according to the similar part of the applet cluster;
the second module is used for generating a target identification file according to the user file of the applet cluster;
the third module is used for generating a target configuration file according to the configuration data of the channel corresponding to the applet cluster;
a fourth module, configured to compose an add-in of the applet cluster according to the target general page file, the target identification file and the target configuration file;
a fifth module, configured to obtain a js file preset by the applet cluster;
a sixth module, configured to complete plug-in calling of each applet in the applet cluster according to the js file;
the step of completing the plug-in call of each applet in the applet cluster according to the js file comprises the following steps:
the plugin reads the js file according to the global function and acquires channel data corresponding to the target applet;
according to the WeChat request, the channel data is transmitted through the plug-in calling port;
displaying the channel data on the target applet through the plug-in;
the small program cluster comprises at least one small program to be plugged in, the target general page file is used for describing page characteristics of the plug-in, the target identification file is used for identifying matching information of the plug-in, and the target configuration file is used for describing configuration information of the plug-in.
8. An electronic device comprising a processor and a memory;
the memory is used for storing programs;
the processor executing the program implements the method of any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that the storage medium stores a program that is executed by a processor to implement the method of any one of claims 1 to 6.
CN202111359642.7A 2021-11-17 2021-11-17 Plug-in processing method, system and medium for multiple small program function modules Active CN114168215B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111359642.7A CN114168215B (en) 2021-11-17 2021-11-17 Plug-in processing method, system and medium for multiple small program function modules

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111359642.7A CN114168215B (en) 2021-11-17 2021-11-17 Plug-in processing method, system and medium for multiple small program function modules

Publications (2)

Publication Number Publication Date
CN114168215A CN114168215A (en) 2022-03-11
CN114168215B true CN114168215B (en) 2024-03-19

Family

ID=80479314

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111359642.7A Active CN114168215B (en) 2021-11-17 2021-11-17 Plug-in processing method, system and medium for multiple small program function modules

Country Status (1)

Country Link
CN (1) CN114168215B (en)

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108319483A (en) * 2018-01-30 2018-07-24 腾讯科技(深圳)有限公司 Web page processing method, device, terminal and storage medium
CN109710258A (en) * 2018-12-28 2019-05-03 北京金山安全软件有限公司 WeChat applet interface generation method and device
CN109995877A (en) * 2019-04-12 2019-07-09 上海连尚网络科技有限公司 Information-pushing method and device
CN110764791A (en) * 2019-10-25 2020-02-07 网易(杭州)网络有限公司 Channel adaptation method and device of applet and electronic equipment
CN110989993A (en) * 2019-11-12 2020-04-10 安徽信果网络科技有限公司 WeChat applet-based development method
CN111078260A (en) * 2019-12-23 2020-04-28 焦点科技股份有限公司 WeChat applet third-party platform management method and system
CN111158677A (en) * 2018-11-08 2020-05-15 广州微粤信息科技有限公司 Page layout data processing method and system for multiple platforms
CN111258565A (en) * 2020-01-21 2020-06-09 深圳乐信软件技术有限公司 Method, system, server and storage medium for generating small program
CN111324335A (en) * 2020-01-04 2020-06-23 厦门二五八网络科技集团股份有限公司 Method and device for creating small program
CN111580820A (en) * 2020-05-25 2020-08-25 泰康保险集团股份有限公司 Applet generation method and device
CN111694575A (en) * 2019-03-15 2020-09-22 北京奇虎科技有限公司 Method and device for converting applets of different application service platforms
CN111767091A (en) * 2020-07-01 2020-10-13 百度在线网络技术(北京)有限公司 Method and device for acquiring user information by applet, electronic equipment and storage medium
CN111782300A (en) * 2020-07-08 2020-10-16 支付宝(杭州)信息技术有限公司 Data processing method, device, equipment and system
CN112269607A (en) * 2020-11-17 2021-01-26 北京百度网讯科技有限公司 Applet control method, system, server and terminal device
CN112416328A (en) * 2020-12-11 2021-02-26 广州伊智信息科技有限公司 Multi-platform small program mall construction method, device, equipment and medium
CN112506854A (en) * 2020-11-24 2021-03-16 百度在线网络技术(北京)有限公司 Method, device, equipment and medium for storing page template file and generating page
CN112579092A (en) * 2020-12-07 2021-03-30 广东亿润网络技术有限公司 Multifunctional small program multi-end updating and publishing system
CN113312104A (en) * 2021-05-31 2021-08-27 杭州推啊网络科技有限公司 Advertisement conversion method and system based on small program
CN113535267A (en) * 2021-07-16 2021-10-22 口碑(上海)信息技术有限公司 Applet page configuration method and device, electronic equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8996658B2 (en) * 2008-09-03 2015-03-31 Oracle International Corporation System and method for integration of browser-based thin client applications within desktop rich client architecture
CN106557486A (en) * 2015-09-25 2017-04-05 阿里巴巴集团控股有限公司 A kind of storage method and device of data

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108319483A (en) * 2018-01-30 2018-07-24 腾讯科技(深圳)有限公司 Web page processing method, device, terminal and storage medium
CN111158677A (en) * 2018-11-08 2020-05-15 广州微粤信息科技有限公司 Page layout data processing method and system for multiple platforms
CN109710258A (en) * 2018-12-28 2019-05-03 北京金山安全软件有限公司 WeChat applet interface generation method and device
CN111694575A (en) * 2019-03-15 2020-09-22 北京奇虎科技有限公司 Method and device for converting applets of different application service platforms
CN109995877A (en) * 2019-04-12 2019-07-09 上海连尚网络科技有限公司 Information-pushing method and device
CN110764791A (en) * 2019-10-25 2020-02-07 网易(杭州)网络有限公司 Channel adaptation method and device of applet and electronic equipment
CN110989993A (en) * 2019-11-12 2020-04-10 安徽信果网络科技有限公司 WeChat applet-based development method
CN111078260A (en) * 2019-12-23 2020-04-28 焦点科技股份有限公司 WeChat applet third-party platform management method and system
CN111324335A (en) * 2020-01-04 2020-06-23 厦门二五八网络科技集团股份有限公司 Method and device for creating small program
CN111258565A (en) * 2020-01-21 2020-06-09 深圳乐信软件技术有限公司 Method, system, server and storage medium for generating small program
CN111580820A (en) * 2020-05-25 2020-08-25 泰康保险集团股份有限公司 Applet generation method and device
CN111767091A (en) * 2020-07-01 2020-10-13 百度在线网络技术(北京)有限公司 Method and device for acquiring user information by applet, electronic equipment and storage medium
CN111782300A (en) * 2020-07-08 2020-10-16 支付宝(杭州)信息技术有限公司 Data processing method, device, equipment and system
CN112269607A (en) * 2020-11-17 2021-01-26 北京百度网讯科技有限公司 Applet control method, system, server and terminal device
CN112506854A (en) * 2020-11-24 2021-03-16 百度在线网络技术(北京)有限公司 Method, device, equipment and medium for storing page template file and generating page
CN112579092A (en) * 2020-12-07 2021-03-30 广东亿润网络技术有限公司 Multifunctional small program multi-end updating and publishing system
CN112416328A (en) * 2020-12-11 2021-02-26 广州伊智信息科技有限公司 Multi-platform small program mall construction method, device, equipment and medium
CN113312104A (en) * 2021-05-31 2021-08-27 杭州推啊网络科技有限公司 Advertisement conversion method and system based on small program
CN113535267A (en) * 2021-07-16 2021-10-22 口碑(上海)信息技术有限公司 Applet page configuration method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114168215A (en) 2022-03-11

Similar Documents

Publication Publication Date Title
US9591038B2 (en) Feature set differentiation by tenant and user
WO2021008413A1 (en) Fault prompting method for internet of things device, and related apparatus
CN104932480A (en) Automobile diagnostic system design method and apparatus
CN106649164B (en) Hardware interface management method
CN111324378B (en) Configuration method, device and equipment for video monitoring application software
CN111818175B (en) Enterprise service bus configuration file generation method, device, equipment and storage medium
CN110209562A (en) A kind of log analysis method and Analysis server
CN108874379B (en) Page processing method and device
CN109560895A (en) Data transmission method and device
CN114168215B (en) Plug-in processing method, system and medium for multiple small program function modules
CN112115394A (en) Data display method, server, terminal and medium
US10838579B2 (en) Custom list for keyboard navigation of user interface
CN105763541B (en) A kind of multiple methods using Dropbox intercommunication in same system
EP3762832A1 (en) Customized application architecture utilizing sparse and base metadata layers
CN115345142A (en) Contract template generation method and device, computer-readable storage medium and electronic equipment
CN111208979B (en) Assembly type development method and system based on platform framework
CN109446180B (en) Method and device for configuring cloud data platform
CN110597700A (en) Server testing method and device
CN112416442A (en) Equipment process control method, equipment and medium
CN111652580A (en) Method and device for processing data of nodes
US20140223152A1 (en) Configuring operating system administration capabilities using an embedded workflow engine
CN113254244B (en) Program fusion system, method and computer device
CN110275862B (en) Method and device for counting number of created documents
CN114785847B (en) Network control software development configuration method, terminal and storage medium
CN114237626A (en) Method, system and equipment for non-invasive dynamic editing of JVM (Java virtual machine) parameters

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
GR01 Patent grant
GR01 Patent grant