Mini-program generation method, device, equipment, readable storage medium and product
By obtaining the applet generation request, generating personalized functional modules and configuring them with the general functional modules, and using the business process engine to parse and render, the problem of cumbersome operation and low flexibility of the applet generation method is solved, and flexible applet development is realized and save labor costs.
Patent Information
- Application Number
- CN202111547805.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-16
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2041-12-16
AI Technical Summary
The existing mini program generation method is cumbersome and has low flexibility. It requires cumbersome code writing and modification according to business supervision requirements and processes in different regions, which consumes a lot of human resources.
By obtaining the applet generation request, personalized functional modules are generated and configured with modules in the preset general functional module resource pool, the business process engine analysis and rendering is used to realize the personalization and flexibility of the applet.
There is no need to have an in-depth understanding of the special businesses of each region, save labor costs, improve the flexibility of mini program generation, simplify development processes, and reduce duplicate business logic replication.
Smart Images

Figure CN114217874B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of resource scheduling, and in particular to a method, apparatus, device, readable storage medium, and product for generating a mini-program. Background Art
[0002] With the development of technology, more and more lightweight mini-programs have entered users' lives. Take WeChat mini-programs, for example. WeChat mini-programs are a type of mini-program that relies on the WeChat platform and can be used without downloading or installing. They realize the dream of "apps at your fingertips" and allow users to open apps with just a scan or search.
[0003] The existing mini-program-based banking product development plan is that the main project team designs business processes for different banking products, and then the developers develop them according to the design drawings in accordance with the development specifications of the WeChat mini-program, and then configure them through the menu and put them on the mini-program.
[0004] However, due to varying business regulatory requirements and processes across regions, different mini-programs often need to be designed for different regions, which is a complex process. Furthermore, existing mini-program development typically relies on code for parameter transfer and process organization. Making even minor changes to existing mini-program processes based on actual needs requires rewriting the entire code, which is cumbersome and labor-intensive. Summary of the Invention
[0005] The present disclosure provides a method, apparatus, device, readable storage medium and product for generating a mini-program, which are used to solve the technical problems that the existing mini-program generation method is relatively cumbersome to operate and has low flexibility.
[0006] A first aspect of the present disclosure is to provide a method for generating a small program, comprising:
[0007] Obtaining a mini-program generation request, wherein the mini-program generation request includes a personalized page and at least one universal function module identifier;
[0008] Generate a personalized function module according to the personalized page in the mini-program generation request, and obtain a universal function module corresponding to each universal function module identifier from a preset universal function module resource pool according to the at least one universal function module identifier;
[0009] According to the configuration request sent by the user, parameter configuration operations are performed on the personalized function modules and the general function modules corresponding to the general function module identifiers to obtain the configured mini-programs to be processed;
[0010] The preset business process parsing engine is controlled to render the configured applet to be processed according to the parameter configuration of the configured applet to be processed, so as to obtain a target applet.
[0011] A second aspect of the present disclosure is to provide a device for generating a small program, comprising:
[0012] An acquisition module, configured to acquire a mini-program generation request, wherein the mini-program generation request includes a personalized page and at least one universal function module identifier;
[0013] A generation module, configured to generate a personalized function module according to the personalized page in the mini-program generation request, and obtain a universal function module corresponding to each universal function module identifier from a preset universal function module resource pool according to the at least one universal function module identifier;
[0014] A configuration module, configured to perform parameter configuration operations on the personalized function modules and the general function modules corresponding to the general function module identifiers according to the configuration request sent by the user, and obtain the configured mini-programs to be processed;
[0015] The rendering module is used to control the preset business process parsing engine to render the configured applet to be processed according to the parameter configuration of the configured applet to be processed to obtain the target applet.
[0016] A third aspect of the present disclosure is to provide an electronic device, comprising: a memory, a processor;
[0017] Memory; a memory for storing instructions executable by the processor;
[0018] The processor is used to call the program instructions in the memory to execute the mini-program generation method as described in the first aspect.
[0019] The fourth aspect of the present disclosure is to provide a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the applet generation method as described in the first aspect.
[0020] A fifth aspect of the present disclosure is to provide a computer program product, comprising a computer program, which, when executed by a processor, implements the applet generation method as described in the first aspect.
[0021] The mini-program generation method, apparatus, device, readable storage medium, and product provided by the present disclosure decouple the general function modules in the main project group from the personalized function modules of the featured project group, enabling users to build personalized function modules based on different needs, and then connect the personalized function modules built by users with multiple general function modules required by the process to build mini-programs. This eliminates the need to deeply understand the different featured businesses in each region and develop corresponding mini-programs based on the featured businesses one by one. Instead, the featured project group designs the personalized function modules on its own, saving labor costs. In addition, by encapsulating the general function modules, there is no need to perform a large amount of repeated business process logic replication in the future, thereby improving the flexibility of mini-program generation. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0023] Figure 1 A flowchart of a method for generating a mini-program according to the first embodiment of the present disclosure;
[0024] Figure 2 This is a diagram of the system architecture on which the embodiments of the present disclosure are based;
[0025] Figure 3 A flowchart of a method for generating a mini-program according to the second embodiment of the present disclosure;
[0026] Figure 4 A flowchart of a method for generating a mini-program according to the third embodiment of the present disclosure;
[0027] Figure 5 A schematic diagram of the structure of a mini-program generation device provided in the fourth embodiment of the present disclosure;
[0028] Figure 6 This is a structural diagram of an electronic device provided in Example 5 of the present disclosure. DETAILED DESCRIPTION
[0029] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained based on the embodiments in the present disclosure are within the scope of protection of the present disclosure.
[0030] Glossary:
[0031] WeChat Mini Program: WeChat Mini Program is a type of mini program that relies on the WeChat platform. It is an application that can be used without downloading and installing. It realizes the dream of "applications at your fingertips". Users can open the application by scanning or searching.
[0032] WebView: The container for web pages in WeChat Mini Programs. It automatically fills the entire Mini Program page. You can dynamically import HTML5 pages through WebView.
[0033] Business Process Engine: Typically, we use programmatic development, implementing processes through coding according to established designs. Any changes to the process require code modifications. The business process engine, based on this approach, uses configurable process nodes to implement a series combination of businesses. Multiple nodes are connected together into a single function through input and output configurations. The business process engine analyzes and dynamically implements business changes based on the process configuration, greatly facilitating process design.
[0034] In response to the technical problems mentioned above that the existing mini-program generation method is relatively cumbersome to operate and has low flexibility, the present disclosure provides a mini-program generation method, device, equipment, readable storage medium and product.
[0035] It should be noted that the mini-program generation method, device, equipment, readable storage medium and product provided by the present disclosure can be used in various mini-program production and use scenarios.
[0036] The current development model for WeChat mini-program-based banking products and services is that the main project team conducts unified design and development. However, the actual situation is that there will be great differences in the implementation of product processes in different regions, and it is difficult to include all the differences through a set of universal processes.
[0037] In solving the aforementioned technical problems, the inventors discovered through research that, in order to address the regulatory and specialized requirements of different regions within the banking system and meet the needs of regionally differentiated business functions, common functional modules can be encapsulated as transaction process nodes, forming a common module node pool. This also allows members of specialized project teams to participate in the development of personalized functional modules. Through business process engine analysis, the common and personalized functional modules are connected in series and integrated into mini-programs, which can then be launched in different regions.
[0038] Figure 1 This is a flowchart of the method for generating a small program according to the first embodiment of the present disclosure. Figure 1 As shown, the method includes:
[0039] Step 101: Obtain a mini-program generation request, wherein the mini-program generation request includes a personalized page and at least one universal function module identifier.
[0040] The execution subject of this embodiment is a small program generation device, which can be coupled to a server, and the server can be communicated with the main project server and the personalized server respectively.
[0041] In this embodiment, for mini-programs with the same function, different regions have different regulatory requirements and business processes. Therefore, it is necessary to design mini-programs that match different regions. To simplify the processing flow of mini-programs, functional modules can be classified, where functional modules specifically include general functional modules and personalized functional modules. Subsequently, general functional modules and personalized functional modules can be selected and connected in series according to the different needs of each region to build mini-programs that match the region.
[0042] Furthermore, users of the featured development project team can construct personalized functional modules and select common functional modules based on actual needs. Accordingly, a mini-program generation request can be obtained, wherein the mini-program generation request includes a personalized page and at least one common functional module identifier. The personalized page can be obtained by the users of the featured development project team after developing the page based on the Vue framework according to preset development specifications. The at least one common functional module identifier is a common module identifier that is determined to be currently used after analyzing the page flow design.
[0043] Step 102: Generate a personalized function module according to the personalized page in the mini-program generation request, and obtain a universal function module corresponding to each universal function module identifier from a preset universal function module resource pool according to the at least one universal function module identifier.
[0044] In this embodiment, the personalized page obtained in the mini-program generation request is parsed and rendered to generate personalized functional modules. Furthermore, based on the mini-program generation request, the universal functional modules corresponding to the universal functional module identifiers can be obtained from a preset universal functional module resource pool. The preset universal functional module resource pool includes all universal functional modules required to build the mini-program.
[0045] Step 103: According to the configuration request sent by the user, parameter configuration operations are performed on the personalized function modules and the general function modules corresponding to the general function module identifiers to obtain the configured mini-programs to be processed.
[0046] In this embodiment, for each functional module, parameter configuration and other operations are required. Specifically, based on the configuration request sent by the user, parameter configuration operations can be performed on the personalized functional modules and the general functional modules corresponding to the general functional module identifiers to obtain the configured mini-programs to be processed. The parameter configuration operations specifically include the configuration of parameters such as the functional module identifiers, key parameters, input parameters, and output parameters.
[0047] Step 104: Control the preset business process parsing engine to render the configured mini-program to be processed according to the parameter configuration of the configured mini-program to be processed, and obtain the target mini-program.
[0048] In this embodiment, after completing the parameter configuration of each functional module, the preset business process parsing engine can also be controlled to render the configured applet to be processed according to the parameter configuration of the applet to be processed to obtain the target applet.
[0049] Figure 2 This is a system architecture diagram based on the embodiments of the present disclosure, such as Figure 2 As shown, the system architecture underlying the present disclosure includes at least a main project server 21, a personalization server 22, and a server 23. The server 23 is provided with a mini-program generator, which can be written in a language such as C / C++, Java, Shell, or Python. The server 23 is in communication with the main project server 21 and the personalization server 22, respectively.
[0050] The mini-program generation method provided in this embodiment decouples the general function modules in the main project group from the personalized function modules in the featured project group, enabling users to build personalized function modules based on different needs. The personalized function modules built by users are then connected in series with multiple general function modules required by the process to build mini-programs. This eliminates the need to deeply understand the different featured businesses in each region and develop corresponding mini-programs based on the featured businesses one by one. Instead, the featured project team designs its own personalized function modules, saving labor costs. Furthermore, by encapsulating the general function modules, there is no need to perform a large amount of repeated business process logic duplication, thereby improving the flexibility of mini-program generation.
[0051] Furthermore, based on the first embodiment, step 102 includes:
[0052] A personalized page file is extracted according to the personalized page.
[0053] A framework parsing operation is performed on the personalized page, and the parsed personalized page file is filled into a preset framework general code to obtain the personalized function module.
[0054] In this embodiment, after obtaining a personalized page developed by a user according to a preset development specification, the personalized page file can be dynamically extracted from the personalized page. The personalized page is subjected to a framework parsing operation, and the WeChat mini-program webview dynamically renders the page. The personalized page file is then filled into the preset framework general code to obtain a personalized function module.
[0055] Furthermore, based on the first embodiment, the general function module includes a mini-program page function module and a project group page function module; step 103 includes:
[0056] According to the categories of the configured mini-programs to be processed, rendering methods corresponding to the categories are respectively adopted, and rendering operations are performed on the configured mini-programs to be processed according to the parameter configuration to obtain target mini-programs.
[0057] In this embodiment, the functional modules specifically include general functional modules and personalized functional modules, and the general functional modules include mini-program page functional modules and project group page functional modules. For different types of functional modules, different rendering methods can be used for rendering operations after parameter configuration. Specifically, according to the category of the configured mini-program to be processed, the rendering method corresponding to the category can be used respectively, and the configured mini-program to be processed can be rendered according to the parameter configuration to obtain the target mini-program.
[0058] Specifically, based on the first embodiment, the rendering methods corresponding to the categories are respectively adopted, and the configured mini-program to be processed is rendered according to the parameter configuration, including:
[0059] For the personalized function module, obtaining the compressed personalized function module from the personalization server, and performing a function module rendering operation on the compressed personalized function module through a preset container for carrying the web page according to parameter configuration corresponding to the personalized function module;
[0060] For the mini-program page function module, assemble input parameters and output parameters in a preset mini-program function module component according to the configuration information corresponding to the mini-program page function module, and perform a function module rendering operation on the mini-program page function module according to the mini-program function module component;
[0061] For the project group page function module, a web page file preset by the project group is obtained, input parameters and output parameters are assembled, and a function module rendering operation is performed on the project group page function module through a preset container for carrying the web page.
[0062] In this embodiment, the rendering operation can be performed according to the category of the functional module using a rendering method corresponding to the category. Specifically, for the personalized functional module, the compressed personalized functional module is obtained from the personalized server, and according to the parameter configuration corresponding to the personalized functional module, the functional module rendering operation is performed on the compressed personalized functional module through the preset container H5 that carries the web page. Among them, the compressed personalized functional module is obtained after the configured personalized functional module is compressed according to the preset encoding rules and compression rules. For the mini-program page functional module, according to the configuration information corresponding to the mini-program page functional module, the input parameters and output parameters are assembled in the preset mini-program functional module component, and the functional module rendering operation is performed on the mini-program page functional module according to the mini-program functional module component webview. For the project group page functional module, the web page file preset by the project group is obtained, the input parameters and output parameters are assembled, and the functional module rendering operation is performed on the project group page functional module through the preset container H5 that carries the web page.
[0063] Furthermore, based on the first embodiment, after step 103, the following steps are further included:
[0064] According to preset encoding rules and compression rules, a compression operation is performed on the configured personalized function module to obtain a compressed personalized function module.
[0065] The compressed personalized function module is sent to a personalized server installed with the business process parsing engine, wherein the personalized server is used to store the compressed personalized function module.
[0066] In this embodiment, after the personalized function module is generated and configured, the configured personalized function module can be uploaded to the personalization server for storage. The personalization server is specifically used to store the compressed personalized function module, so that when the mini program is subsequently generated, the personalized function module can be obtained from the personalization server.
[0067] To reduce the size of the transmitted code and improve data transmission efficiency, the personalized function module can be compressed before uploading. Specifically, the configured personalized function module can be compressed according to preset encoding rules and compression rules to obtain a compressed personalized function module. The preset encoding rules can be the Base64 encoding specification.
[0068] The mini-program generation method provided in this embodiment can reduce the amount of transmitted data and effectively improve the efficiency of data transmission by pre-compressing the personalized function module before transmitting the code of the personalized function module.
[0069] Figure 3 This is a flow chart of the method for generating a small program according to the second embodiment of the present disclosure, based on the first embodiment. Figure 3 As shown, after step 103, the following steps are further included:
[0070] Step 301: Obtain a test request sent by a terminal device.
[0071] Step 302: Configure the local node link parameters in the preset simulation test environment according to the test request to obtain the configured simulation test environment.
[0072] Step 303: In the configured simulated test environment, test the configured mini-program to be processed to obtain a test result.
[0073] In this embodiment, to ensure the mini-program is usable, after completing the parameter configuration of the personalized function modules and the general function modules and obtaining the configured mini-program to be processed, the mini-program to be processed can be tested and debugged locally. Specifically, a test request sent by a terminal device can be obtained. Based on the test request, the local node link parameters in a preset simulated test environment can be configured to obtain the configured simulated test environment. Within the configured simulated test environment, the configured mini-program to be processed is tested to obtain test results.
[0074] Optionally, in order to improve the efficiency of the test, the test operations may be performed on multiple functional modules concurrently.
[0075] The mini-program generation method provided in this embodiment can ensure the effectiveness of the mini-program by testing and debugging the mini-program to be processed locally after obtaining the configured mini-program to be processed.
[0076] Figure 4 This is a flowchart of the method for generating a mini-program according to the third embodiment of the present disclosure. Based on any of the above embodiments, Figure 4 As shown, after step 103, the following steps are further included:
[0077] Step 401: In response to the user's call operation on the target applet, control the preset business process parsing engine to perform a parsing operation on the target applet to obtain the business processes corresponding to the personalized function modules and the general function modules in the target applet.
[0078] Step 402: The personalized function module and the general function module are connected in series according to the business process, so that the connected personalized function module and the general function module can provide personalized services to the user when they are running.
[0079] In this embodiment, after the target applet is generated according to the personalized function module and the general function module, the user of the applet can select the target applet for use according to actual needs. Specifically, in response to the user's call operation on the target applet, the preset business process parsing engine is controlled to perform parsing operations on the target applet to obtain the personalized function modules and the business processes corresponding to the general function modules in the target applet. The personalized function modules and the general function modules are connected in series according to the business processes. Specifically, the configuration file writing rules can be set in advance, and the business process parsing engine can perform process parsing on the target applet according to the configuration content of the configuration file. The personalized function modules and the general function modules corresponding to the target applet are parsed and rendered, and the pre-configured input parameters and output parameters are injected into the current page, and the personalized function modules and the general function modules are connected in series. Therefore, the connected personalized function modules and the general function modules can provide personalized services to users when they are running.
[0080] The mini-program generation method provided in this embodiment parses, renders and connects the personalized function modules and general function modules corresponding to the target mini-program through the business process parsing engine according to the user's calling operation, thereby ensuring that the target mini-program can be called flexibly.
[0081] Figure 5 This is a schematic diagram of the structure of the mini-program generation device provided in the fourth embodiment of the present disclosure, as shown in FIG. Figure 5 As shown, the device includes: an acquisition module 51, a generation module 52, a configuration module 53 and a rendering module 54. The acquisition module 51 is used to obtain a mini-program generation request, wherein the mini-program generation request includes a personalized page and at least one universal function module identifier. The generation module 52 is used to generate a personalized function module according to the personalized page in the mini-program generation request, and obtain the universal function module corresponding to each universal function module identifier in the preset universal function module resource pool according to the at least one universal function module identifier. The configuration module 53 is used to perform parameter configuration operations on the personalized function module and the universal function module corresponding to each universal function module identifier according to the configuration request sent by the user, and obtain the configured mini-program to be processed. The rendering module 54 is used to control the preset business process parsing engine to render the configured mini-program to be processed according to the parameter configuration of the configured mini-program to be processed, and obtain the target mini-program.
[0082] Furthermore, based on the fourth embodiment, the generating module is configured to extract a personalized page file according to the personalized page, perform a framework parsing operation on the personalized page, and fill the parsed personalized page file into a preset framework general code to obtain the personalized function module.
[0083] Furthermore, based on the fourth embodiment, the general function module includes a mini-program page function module and a project group page function module. The configuration module is used to: according to the category of the configured mini-program to be processed, respectively adopt the rendering method corresponding to the category, render the configured mini-program to be processed according to the parameter configuration, and obtain the target mini-program.
[0084] Furthermore, based on the fourth embodiment, the rendering module is used to: for the personalized function module, obtain the compressed personalized function module from the personalized server, and perform function module rendering operations on the compressed personalized function module through a preset container that carries the web page according to the parameter configuration corresponding to the personalized function module. For the mini-program page function module, assemble input parameters and output parameters in a preset mini-program function module component according to the configuration information corresponding to the mini-program page function module, and perform function module rendering operations on the mini-program page function module according to the mini-program function module component. For the project group page function module, obtain the web page file preset by the project group, assemble input parameters and output parameters, and perform function module rendering operations on the project group page function module through a preset container that carries the web page.
[0085] Furthermore, based on the fourth embodiment, the apparatus further includes: a compression module configured to compress the configured personalized function module according to preset encoding and compression rules to obtain a compressed personalized function module; and a sending module configured to send the compressed personalized function module to a personalization server installed with the business process parsing engine, wherein the personalization server is configured to store the compressed personalized function module.
[0086] Furthermore, based on the fourth embodiment, the apparatus further includes: an acquisition module, further configured to acquire a test request sent by a terminal device; a configuration module, further configured to configure local node link parameters in a preset simulated test environment according to the test request, thereby obtaining a configured simulated test environment; and a testing module, further configured to test the configured mini-program to be processed in the configured simulated test environment, thereby obtaining a test result.
[0087] Furthermore, based on any of the above embodiments, the device also includes: a parsing module, which is used to respond to the user's call operation on the target applet, control the preset business process parsing engine to perform a parsing operation on the target applet, and obtain the personalized function modules and business processes corresponding to the general function modules within the target applet.
[0088] The processing module is used to perform a series operation on the personalized function module and the general function module according to the business process, so that the series-connected personalized function module and the general function module can provide personalized services to users when they are running.
[0089] Yet another embodiment of the present disclosure provides an electronic device, comprising: a memory, a processor;
[0090] Memory; a memory for storing instructions executable by the processor;
[0091] The processor is configured to call program instructions in the memory to execute the mini-program generation method as described in any of the above embodiments.
[0092] Figure 6 This is a structural diagram of an electronic device provided in the fifth embodiment of the present disclosure, such as Figure 6 , which shows a schematic diagram of the structure of an electronic device 600 suitable for implementing an embodiment of the present disclosure. The electronic device 600 may be a terminal device or a server. The terminal device may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), in-vehicle terminals (such as in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 6 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0093] like Figure 6 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. Various programs and data required for the operation of the electronic device 600 are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0094] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed instead.
[0095] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0096] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0097] Another embodiment of the present disclosure further provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the applet generation method as described in any of the above embodiments.
[0098] Yet another embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the applet generation method as described in any of the above embodiments.
[0099] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0100] Those skilled in the art will appreciate that all or part of the steps in the above-described method embodiments can be implemented using hardware associated with program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0101] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present disclosure.
Claims
1. A method for generating a small program, characterized in that: include: Obtaining a mini-program generation request, wherein the mini-program generation request includes a personalized page and at least one universal function module identifier; Extracting a personalized page file according to the personalized page; Performing a framework parsing operation on the personalized page, filling the parsed personalized page file into a preset framework general code, and obtaining a personalized function module; Acquire, according to the at least one universal function module identifier, universal function modules corresponding to the universal function module identifiers in a preset universal function module resource pool; According to the configuration request sent by the user, parameter configuration operations are performed on the personalized function modules and the general function modules corresponding to the general function module identifiers to obtain the configured mini-programs to be processed; The preset business process parsing engine is controlled to render the configured mini-program to be processed according to the parameter configuration of the configured mini-program to be processed, so as to obtain the target mini-program.
2. The method according to claim 1, characterized in that The general function module includes a mini program page function module and a project group page function module; The controlling preset business process parsing engine performs rendering operation on the configured mini-program to be processed according to the parameter configuration of the configured mini-program to be processed to obtain the target mini-program, including: According to the categories of the configured mini-programs to be processed, rendering methods corresponding to the categories are respectively adopted, and rendering operations are performed on the configured mini-programs to be processed according to the parameter configuration to obtain target mini-programs.
3. The method according to claim 2, characterized in that After performing parameter configuration operations on the personalized function modules and the general function modules corresponding to the general function module identifiers according to the configuration request sent by the user, and obtaining the configured mini-program to be processed, the method further includes: According to preset encoding rules and compression rules, compressing the configured personalized function module to obtain a compressed personalized function module; The compressed personalized function module is sent to a personalized server installed with the business process parsing engine, wherein the personalized server is used to store the compressed personalized function module.
4. The method according to any one of claims 1 to 3, characterized in that: After performing parameter configuration operations on the personalized function modules and the general function modules corresponding to the general function module identifiers according to the configuration request sent by the user, and obtaining the configured mini-program to be processed, the method further includes: Get the test request sent by the terminal device; According to the test request, a local node link parameter in a preset simulation test environment is configured to obtain a configured simulation test environment; In the configured simulated test environment, a test operation is performed on the configured mini-program to be processed to obtain a test result.
5. The method according to any one of claims 1 to 3, characterized in that: The controlling preset business process parsing engine performs rendering operation on the configured to-be-processed mini-program according to the parameter configuration of the configured to-be-processed mini-program, and after obtaining the target mini-program, further comprises: In response to the user's calling operation on the target applet, controlling a preset business process parsing engine to perform a parsing operation on the target applet to obtain the business processes corresponding to the personalized function modules and the common function modules in the target applet; The personalized function module and the general function module are connected in series according to the business process, so that the connected personalized function module and the general function module can provide personalized services to users when they are running.
6. The method according to claim 3, characterized in that The respectively adopting rendering modes corresponding to the categories and performing rendering operations on the configured mini-programs to be processed according to the parameter configurations include: For the personalized function module, the compressed personalized function module is obtained from the personalized server, and according to the parameter configuration corresponding to the personalized function module, a function module rendering operation is performed on the compressed personalized function module through a preset container for carrying the web page; For the mini-program page function module, according to the configuration information corresponding to the mini-program page function module, assemble input parameters and output parameters in a preset mini-program function module component, and perform a function module rendering operation on the mini-program page function module according to the mini-program function module component; For the project group page function module, a web page file preset by the project group is obtained, input parameters and output parameters are assembled, and a function module rendering operation is performed on the project group page function module through a preset container for carrying the web page.
7. A small program generation device, characterized in that: include: An acquisition module, used to acquire a mini-program generation request, wherein the mini-program generation request includes a personalized page and at least one general function module identifier; A generating module, used for extracting a personalized page file according to the personalized page; Performing a framework parsing operation on the personalized page, filling the parsed personalized page file into a preset framework general code, and obtaining a personalized function module; Acquire, according to the at least one universal function module identifier, universal function modules corresponding to the universal function module identifiers in a preset universal function module resource pool; A configuration module, used to perform parameter configuration operations on the personalized function modules and the general function modules corresponding to the general function module identifiers according to the configuration request sent by the user, and obtain the configured mini-programs to be processed; The rendering module is used to control the preset business process parsing engine to render the configured mini-program to be processed according to the parameter configuration of the configured mini-program to be processed, so as to obtain the target mini-program.
8. The device according to claim 7, characterized in that The general function module includes a mini program page function module and a project group page function module; The configuration module is used to: According to the categories of the configured mini-programs to be processed, rendering methods corresponding to the categories are respectively adopted, and rendering operations are performed on the configured mini-programs to be processed according to the parameter configuration to obtain target mini-programs.
9. The device according to claim 8, characterized in that The device also includes: A compression module, used to compress the configured personalized function module according to a preset encoding rule and a compression rule to obtain a compressed personalized function module; The sending module is used to send the compressed personalized function module to a personalized server installed with the business process parsing engine, wherein the personalized server is used to store the compressed personalized function module.
10. The device according to any one of claims 7 to 9, characterized in that: The device also includes: The acquisition module is also used to acquire the test request sent by the terminal device; The configuration module is further used to configure the local node link parameters in the preset simulation test environment according to the test request to obtain the configured simulation test environment; The test module is used to perform a test operation on the configured mini-program to be processed in the configured simulated test environment to obtain a test result.
11. The device according to any one of claims 7 to 9, characterized in that: The device also includes: A parsing module, configured to control a preset business process parsing engine to perform a parsing operation on the target mini-program in response to a user's calling operation on the target mini-program, and obtain business processes corresponding to personalized function modules and common function modules in the target mini-program; The processing module is used to perform a series operation on the personalized function module and the general function module according to the business process, so that the series-connected personalized function module and the general function module can provide personalized services to users when they are running.
12. The device according to claim 9, characterized in that The rendering module is used to: For the personalized function module, the compressed personalized function module is obtained from the personalized server, and according to the parameter configuration corresponding to the personalized function module, a function module rendering operation is performed on the compressed personalized function module through a preset container for carrying the web page; For the mini-program page function module, according to the configuration information corresponding to the mini-program page function module, assemble input parameters and output parameters in a preset mini-program function module component, and perform a function module rendering operation on the mini-program page function module according to the mini-program function module component; For the project group page function module, a web page file preset by the project group is obtained, input parameters and output parameters are assembled, and a function module rendering operation is performed on the project group page function module through a preset container for carrying the web page.
13. An electronic device, characterized in that: include: Memory, processor; Memory; a memory for storing instructions executable by the processor; Wherein, the processor is used to call the program instructions in the memory to execute the mini-program generation method as described in any one of claims 1-6.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the mini-program generation method as described in any one of claims 1 to 6.
15. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the applet generation method according to any one of claims 1 to 6.
