Small program processing method, device and equipment and computer program product

By providing a mini program processing method and device, the original files of the mini program are automatically refactored according to the reconstruction logic of different application platforms, which solves the problem that developers need to repeatedly switch developer tools and construction logic, and realizes smooth release of mini programs and multi-platform adaptation.

CN119556942APending Publication Date: 2025-03-0458 CHANG LIFE (BEIJING) INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411606583.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-11
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

When the same applet needs to be published to multiple third-party application platforms, developers need to repeatedly switch different developer tools to build mini programs, and timely convert the construction logic of applets based on the switch of developer tools. This kind of artificial operation has low fault tolerance, which leads to the inability to build corresponding applets for different third-party platforms in time, which in turn affects the review and release of applets.

Method used

Provide a mini program processing method and device, which obtains the original files of the pending mini program by responding to the mini program processing instructions, and determines the target application platform to which it needs to be published. Based on the mapping relationship between the preset application platform and the reconstruction logic, the reconstruction logic corresponding to the target application platform is determined, the original file is reconstructed, the target file adapted to the operation requirements of the target application platform, and finally the target applet used for publishing on the target application platform is generated.

Benefits of technology

It realizes smooth release of mini programs, avoids the problem of low fault tolerance caused by human operations, and can timely build multiple mini programs that are suitable for multiple application platforms, and then completes the review and release of mini programs in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119556942A_ABST
    Figure CN119556942A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an applet processing method, device and equipment and a computer program product. In the embodiment of the invention, the applet processing device is provided, and the mapping relation between the application platforms and the reconstruction logic is preset in the applet processing device, so that when any applet needs to be published to a plurality of application platforms, the applet processing device can automatically publish the applet to the plurality of application platforms according to the reconstruction logic corresponding to the plurality of application platforms. And reconstructing the original file of the applet to generate a plurality of target applets adapted to release requirements of different application platforms. By means of the applet processing device, automation of constructing the applets for multiple platforms is achieved, the problem that the error-tolerant rate is low due to manual operation can be avoided, the multiple applets matched with the multiple application platforms can be constructed in time, then the constructed applets can be checked and published in time, and the application experience is improved. And smooth release of the applet can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer application technology, and in particular to a method, device, equipment and computer program product for processing small programs. Background Art

[0002] Mini Programs are lightweight applications. After being released on a third-party application platform, users of the third-party application platform can open and use the mini program on the platform without downloading it. The process of releasing a mini program to a third-party application platform is usually as follows: the mini program developer writes code in the developer tools provided by the third-party application platform to develop the mini program. After the development is completed, the mini program developer can submit the completed mini program to the review team of the third-party application platform for review. After the review team passes the review, the mini program can be released on the third-party application platform and provided to users.

[0003] At present, when the same mini program needs to be released to multiple third-party application platforms, developers not only need to repeatedly switch different developer tools to build the mini program, but also need to promptly convert the mini program's construction logic according to the switching of developer tools. This manual construction solution has a low fault tolerance rate, making it impossible to build corresponding mini programs for different third-party platforms in a timely manner, which in turn leads to the failure to complete the mini program's review and release in a timely manner. Summary of the invention

[0004] Multiple aspects of the present application provide a method, apparatus, device and computer program product for processing a mini-program to achieve smooth release of the mini-program.

[0005] The present application embodiment provides a method for processing a mini-program, including:

[0006] In response to the mini-program processing instruction, obtaining the original file corresponding to the mini-program to be processed;

[0007] Determine at least one target application platform to which the mini program to be processed needs to be published;

[0008] Based on the mapping relationship between the preset application platform and the reconstruction logic, determine the reconstruction logic corresponding to each of the at least one target application platform, wherein different application platforms correspond to different reconstruction logics, and the reconstruction logic is used to guide the applet processing device to reconstruct the original file into a new file that is compatible with the operation requirements of the application platform;

[0009] For any target application platform, based on the original file and in accordance with the target reconstruction logic corresponding to the target application platform, reconstruct a target file adapted to the running requirements of the target application platform for the mini program to be processed;

[0010] Based on the target file, a target applet for publishing on the target application platform is generated for the applet to be processed.

[0011] The embodiment of the present application also provides a mini-program processing device, including a response module and a reconstruction module;

[0012] The response module is used to respond to the mini-program processing instruction, obtain the original file corresponding to the mini-program to be processed; and determine at least one target application platform to be released for the mini-program to be processed;

[0013] The reconstruction module is used to determine the reconstruction logic corresponding to each of the at least one target application platforms based on the mapping relationship between the preset application platform and the reconstruction logic, wherein different application platforms correspond to different reconstruction logics, and the reconstruction logic is used to guide the mini-program processing device to reconstruct the original file into a new file that is compatible with the operating requirements of the application platform; for any target application platform, based on the original file, according to the target reconstruction logic corresponding to the target application platform, a target file that is compatible with the operating requirements of the target application platform is reconstructed for the mini-program to be processed; based on the target file, a target mini-program for publishing on the target application platform is generated for the mini-program to be processed.

[0014] The embodiment of the present application also provides a computing device, including: a memory, a processor, and a communication component;

[0015] The memory is used to store one or more computer instructions;

[0016] The processor is coupled to the memory and the communication component, and is used to execute the one or more computer instructions to execute the aforementioned applet processing method.

[0017] An embodiment of the present application also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed by one or more processors, the one or more processors are caused to execute the aforementioned applet processing method.

[0018] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by one or more processors, causes the one or more processors to execute the aforementioned mini-program processing method.

[0019] In an embodiment of the present application, the mini-program processing device can respond to the mini-program processing instruction and obtain the original file corresponding to the mini-program to be processed. After that, determine at least one target application platform to which the mini-program to be processed needs to be released, and based on the mapping relationship between the preset application platform and the reconstruction logic, determine the reconstruction logic corresponding to each of the at least one target application platform. For any target application platform, based on the original file and in accordance with the target reconstruction logic corresponding to the target application platform, a target file that adapts to the release requirements of the target application platform can be reconstructed for the mini-program to be processed, and a target mini-program for release on the target application platform is generated for the mini-program to be processed.

[0020] Accordingly, a mini-program processing device is provided, and a mapping relationship between application platforms and reconstruction logic is preset in the mini-program processing device. In this way, when any mini-program needs to be published to multiple application platforms, the mini-program processing device can automatically reconstruct the original file of the mini-program according to the reconstruction logic corresponding to each of the multiple application platforms to generate multiple target mini-programs adapted to the publishing requirements of different application platforms. The mini-program processing device realizes the automation of building mini-programs for multiple platforms, which can avoid the problem of low fault tolerance caused by manual operation, so that multiple mini-programs adapted to multiple application platforms can be built in time, and then the constructed mini-programs can be reviewed and published in time, so as to achieve smooth publishing of mini-programs. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0022] Figure 1 A flowchart of a method for processing a small program provided as an exemplary embodiment of the present application;

[0023] Figure 2 A flowchart of an application scenario provided for another exemplary embodiment of the present application;

[0024] Figure 3 A schematic diagram of the structure of a small program processing device provided for another exemplary embodiment of the present application;

[0025] Figure 4 A schematic diagram of the structure of a computing device is provided for yet another exemplary embodiment of the present application. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0027] At present, in the process of publishing mini-programs to multiple application platforms, developers need to repeatedly switch between the developer tools provided by different application platforms, and switch to the development logic adapted to the application platform accordingly, so as to develop mini-programs on different developer tools respectively. This review plan is complicated and cumbersome, and it is easy for the switching of developer tools to cause the development logic to be incompatible with the application platform, which in turn leads to frequent errors in the development process of the mini-program, affecting the release of the mini-program.

[0028] To improve this problem, an embodiment of the present application provides a solution. The basic idea is: to provide a mini-program processing device, and use the mini-program processing device to reconstruct the original file of the mini-program to be processed, so as to automatically generate adapted target mini-programs for multiple application platforms respectively. This can avoid the problem of low fault tolerance caused by human operation, and enable timely construction of multiple mini-programs that need to be released to multiple application platforms, thereby achieving smooth release of mini-programs.

[0029] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0030] Figure 1 A flowchart of a method for processing a small program provided as an exemplary embodiment of the present application. The method can be executed by a small program processing device, and the small program processing device can be implemented as a combination of software and / or hardware. For example, the small program processing device can be a plug-in, a script, etc., and the small program processing device can be integrated in a computing device. Figure 1 , the method comprising:

[0031] Step 100, in response to the mini-program processing instruction, obtaining the original file corresponding to the mini-program to be processed;

[0032] Step 101, determining at least one target application platform to which the mini program to be processed needs to be published;

[0033] Step 102, based on the mapping relationship between the preset application platform and the reconstruction logic, determining the reconstruction logic corresponding to at least one target application platform;

[0034] Wherein, different application platforms correspond to different reconstruction logics, and the reconstruction logic is used to guide the applet processing device to reconstruct the original file into a new file that is compatible with the operation requirements of the application platform;

[0035] Step 103, for any target application platform, based on the original file corresponding to the mini-program to be processed and in accordance with the target reconstruction logic corresponding to the target application platform, reconstruct a target file that adapts to the running requirements of the target application platform for the mini-program to be processed;

[0036] Step 104: Based on the target file, generate a target applet for publishing on a target application platform for the applet to be processed.

[0037] The mini program processing method provided in this embodiment can be applied to various scenarios related to mini program release, for example, the scenario of submitting the mini program to multiple third-party application platforms for review, the scenario of submitting the mini program matrix to multiple third-party application platforms for review, etc. Of course, this is only exemplary, and this embodiment is not limited to this.

[0038] In step 100, the applet processing device may obtain the original file corresponding to the applet to be processed in response to the applet processing instruction. The applet processing instruction is a startup instruction initiated on the applet processing device, which is not for the only applet to be processed, but for all the applet to be processed pointed to by the configuration table in the applet processing device. The configuration table in the applet processing device is used to describe the applet to be processed and at least one target application platform to which the applet to be processed needs to be published, that is, the configuration table contains the parameters required to be used in the applet processing process.

[0039] For users who expect to use the applet processing device to process the applet, before initiating the applet processing instruction, the configuration table can be pre-configured according to the actual applet publishing requirements, and the number of applet to be processed pointed to by the configuration table can be one or more. In the case where the configuration table points to multiple applet to be processed, the applet processing device can simultaneously obtain the original files corresponding to the multiple applet to be processed in response to the applet processing instruction. The original files corresponding to the applet to be processed contain all the data involved in the process of developing the applet to be processed. The data in the original files include but are not limited to the program code, the environmental parameters required to run the program code, the dependency packages required to run the program code, etc.

[0040] Based on this, in response to the mini-program processing instruction, the configuration table in the mini-program processing device can be obtained, and the identification of the mini-program to be processed can be parsed from the configuration table. The identification of the mini-program to be processed includes but is not limited to the mini-program name, mini-program ID, etc. The mini-program pointed to by the identification of the mini-program to be processed is determined as the mini-program to be processed. The number of mini-program identifications to be processed parsed from the configuration table can be one or more, and the mini-program pointed to by the identification of the mini-program to be processed is determined as the mini-program to be processed, and then one or more mini-programs to be processed can be obtained, which corresponds to the aforementioned fact that the number of mini-programs to be processed pointed to by the configuration table can be one or more.

[0041] In the case where there are multiple mini-programs to be processed, these multiple mini-programs to be processed can be a mini-program matrix. The mini-program matrix refers to dividing the business of an enterprise or brand into multiple mini-programs, and each mini-program provides a dedicated and lightweight function or service for specific user scenarios and needs. The target application platform to which each mini-program to be processed in the mini-program matrix needs to be released is the same. For example, if the mini-programs to be processed are A1, A2, and A3, respectively, it is determined that at least one target application platform to which the mini-programs to be processed need to be released is a, b, and c, that is, the mini-program A1 to be processed is released to the target application platforms a, b, and c respectively, the mini-program A2 to be processed is released to the target application platforms a, b, and c respectively, and the mini-program A3 to be processed is released to the target application platforms a, b, and c respectively.

[0042] In actual applications, by adding multiple mini-program identifiers to be processed in the preset configuration table in the device during mini-program processing, multiple mini-programs can be reconstructed with one click, without the need to open the developer tools corresponding to multiple target application platforms at the same time, which is convenient and quick.

[0043] It is understandable that when there are multiple mini-programs to be processed, the processing ideas for each mini-program to be processed are the same. Below, taking one mini-program to be processed as an example, the processing scheme for the mini-program to be processed will be explained. The same processing scheme can be used for other mini-programs to be processed, and no further description will be given.

[0044] refer to Figure 1 In step 101, at least one target application platform to which the mini program to be processed needs to be published can be determined. The relationship between the mini program to be processed and at least one target application platform is pre-configured by the user in the configuration table in the mini program processing device. The target application platform is an application platform that allows the mini program to be published. The target application platform can be a social platform, a payment platform, a short video platform, etc., which is not limited in this embodiment.

[0045] For example, the mini-program processing device may display a configuration interface to the user, and display check boxes for binding to multiple application platforms on the configuration interface, and in response to the user's selection operation on at least one target check box, determine the target application platform bound to at least one check box as at least one target application platform to which the mini-program to be processed needs to be published. The selection operation initiated by the user is performed according to the actual mini-program publishing requirements.

[0046] After determining at least one target application platform, in step 102, the reconstruction logic corresponding to each of the at least one target application platform can be determined based on the mapping relationship between the preset application platform and the reconstruction logic. The reconstruction logic is used to guide the applet processing device to reconstruct the original file into a new file that is compatible with the running requirements of the application platform, and different application platforms correspond to different reconstruction logics.

[0047] Continuing with the above example, a mapping relationship between application platforms and reconstruction logic is configured in the mini-program processing device. When configuring at least one application platform to be published for the application to be processed, the application platform bound to the multiple check boxes displayed to the user by the mini-program processing device is the application platform that has the reconstruction logic in the mini-program processing device, that is, the check box is actually bound to the reconstruction logic mapped by the application platform. Therefore, in response to the selection operation performed on at least one target check box, the reconstruction logic bound to each of the at least one target check box can be determined as the reconstruction logic corresponding to each of the at least one target application platforms.

[0048] On this basis, in step 103, for any target application platform, based on the original file corresponding to the applet to be processed, according to the target reconstruction logic corresponding to the target application platform, a target file adapted to the operating requirements of the target application platform can be reconstructed for the applet to be processed. Among them, the operating requirements of the target application platform can be used to describe the operating rules within the target application platform, and only the applet that complies with the operating rules within the target application platform can be understood and processed by the target application platform. It should be noted that the target reconstruction logic mapped by the target application platform in the applet processing device is pre-configured according to the operating requirements of the target application platform. Combined with what is mentioned above, the reconstruction logic can be used to guide the applet processing device to reconstruct the original file into a new file that is compatible with the operating requirements of the application platform. It can be understood that the original file corresponding to the applet to be processed is reconstructed according to the reconstruction logic, that is, the original file corresponding to the applet to be processed is reconstructed into a target file according to the operating requirements of the target application platform, and the target file meets the operating requirements of the target application platform.

[0049] Continue to refer Figure 1In step 104, a target applet for publishing on a target application platform may be generated for the applet to be processed based on the target file. For example, the target file may be recursively packaged to obtain the target applet. Of course, other generation methods may also be used, which will not be described in detail here. When the target file meets the operating requirements of the target application platform, the target applet generated based on the target file also meets the operating requirements, which can ensure the normal operation of the target applet on the target application platform.

[0050] In addition, step 103 only explains the implementation plan for reconstructing a target applet for a target application platform. When the applet to be processed needs to be published to multiple target application platforms, the original files corresponding to the applet to be processed can be reconstructed in sequence or simultaneously according to the reconstruction logic corresponding to each of the multiple target application platforms according to the implementation plan in 103 to obtain multiple target applets, and the multiple target applets are different from each other.

[0051] In summary, in this embodiment, a mini-program processing device is provided, and a mapping relationship between application platforms and reconstruction logic is preset in the mini-program processing device. In this way, when any mini-program needs to be published to multiple application platforms, the mini-program processing device can automatically reconstruct the original file of the mini-program according to the reconstruction logic corresponding to each of the multiple application platforms to generate multiple target mini-programs adapted to the publishing requirements of different application platforms. The mini-program processing device realizes the automation of building mini-programs for multiple platforms, which can avoid the problem of low fault tolerance caused by manual operation, so that multiple mini-programs that need to be published to multiple application platforms can be built in a timely manner, and then the constructed mini-programs can be reviewed and published in a timely manner, so as to achieve smooth publishing of mini-programs.

[0052] In the above or following embodiments, a variety of implementation methods may be used to reconstruct a target file that is adapted to the operating requirements of the target application platform for the mini-program to be processed.

[0053] In an optional implementation, the environment reconstruction logic and the dependency reconstruction logic can be extracted from the target reconstruction logic. According to the environment reconstruction logic, the code environment in the original file is adjusted to a target code environment that meets the environmental requirements of the target application platform; according to the dependency reconstruction logic, the dependencies in the original file are adjusted to target dependencies that meet the dependency requirements of the target application platform; and the original file containing the target code environment and the target dependencies is used as a target file that adapts to the operating requirements of the target application platform.

[0054] The code environment may include but is not limited to an operating system, a programming language, a runtime environment, and development tools. The dependencies may include but are not limited to module dependencies, library dependencies, service dependencies, configuration dependencies, etc. In this embodiment, a package manager may be set to automatically adjust the dependencies. For example, a NodeJS package management and distribution tool (NodePackage Manager, npm) may be used as a package manager.

[0055] Of course, other implementation methods can also be used to reconstruct the target applet, as long as the applet to be processed can be reconstructed into a target file that adapts to the operating requirements of the target application platform. No further examples are given here.

[0056] In this embodiment, the original files are adjusted according to the environment reconstruction logic and the dependency reconstruction logic, so that the code environment and dependencies corresponding to the applet to be processed can be modified to the target code environment and target dependencies adapted to the target application platform. This can avoid the target applet being unable to compile or run normally on the target application platform due to compatibility issues, thereby ensuring that the target applet reconstructed based on the original files corresponding to the applet to be processed can run on the target application platform.

[0057] In the above or following embodiments, for any target application platform, after reconstructing a target applet that adapts to the running requirements of the target application platform for the applet to be processed, the reconstructed target applet can be submitted to the target application platform so that the target application platform can review the target applet according to its own publishing requirements and publish the target applet after the review is passed.

[0058] In this embodiment, a variety of implementation methods can be used to submit the reconstructed target applet to the target application platform.

[0059] In an optional implementation, a target upload tool associated with the target application platform may be obtained, and the target upload tool may be called to submit the target applet to the target application platform so that the target application platform can review the target applet according to its own publishing requirements.

[0060] The target upload tool is a coding module extracted from the developer tools provided by the target application platform. The coding module can be separated from the developer tools and independently perform operations such as uploading and previewing the mini program. Since different application platforms provide different developer tools, the upload tools corresponding to different application platforms are also different.

[0061] In this optional implementation, the association between the application platform and the upload tool can be preset in the mini-program processing device, and a corresponding acquisition path can be configured for each upload tool. Based on this, when it is necessary to submit the target mini-program to the target application platform, the target upload tool associated with the target application platform can be determined based on the association between the application platform and the upload tool, and the target upload tool can be obtained according to the acquisition path corresponding to the target upload tool. The target upload tool contains the upload logic for the mini-program, so the target upload tool can be called so that the target upload tool can submit the target mini-program to the target application platform according to the upload logic contained in it.

[0062] As mentioned above, the number of mini-programs to be processed can be one or more. When submitting the target mini-program to the target application platform, multiple target mini-programs can also be submitted to the target application platform. The target application platform to which each target mini-program needs to be submitted is the same, and the number of target application platforms can be one or more.

[0063] By calling different target upload tools to submit the target Mini Program to different target application platforms, there is no need to open multiple developer tools. The testing and uploading of the Mini Program can be automated, which greatly reduces manual intervention and improves the efficiency of the Mini Program review.

[0064] Among them, after reconstructing the target applet that adapts to the running requirements of the target application platform for the applet to be processed, the target upload tool corresponding to the target application platform can be directly obtained, or the target upload tool corresponding to the target application platform can be obtained in response to the upload instruction.

[0065] For example, after the target mini program is reconstructed from the mini program to be processed, it can be determined whether the target mini program meets the preset upload conditions. If the target mini program meets the preset upload conditions, an upload instruction is initiated for the target mini program. In response to the upload instruction, the target upload tool corresponding to the target application platform is obtained to call the target upload tool to submit the target mini program to the target application platform.

[0066] Of course, the user may also manually initiate an upload instruction. For example, the reconstructed target applet may be displayed to the user for the user to test the reconstructed target applet. The user may manually initiate an upload instruction after confirming that the test passes. In this embodiment, the initiation method of the upload instruction is not limited.

[0067] In this embodiment, the applet processing device can provide multiple interfaces to the outside, and different interfaces point to different processing nodes in the applet processing device. Each interface is associated with a hook function, which is a special function or method that allows custom logic to be inserted or modified at a specific point in the program. It can be understood that multiple hook functions are provided in this embodiment, and these hook functions include but are not limited to hook functions before reconstruction, hook functions during reconstruction, hook functions after reconstruction, etc. For example, the hook function before reconstruction may include the execution logic uploaded directly after the reconstruction is completed, the hook function during reconstruction may include the modification logic of some parameters, and the hook function after reconstruction may include the feedback logic of the reconstruction results. In this way, hook functions are exposed in multiple nodes of the reconstructed target applet, which is convenient for users to flexibly adjust the reconstruction process through hook functions, or add new functions to the applet processing device through hook functions.

[0068] In addition, in this optional implementation, at least one program upload key corresponding to the mini program to be processed can also be obtained, and the at least one program upload key is respectively associated with different upload tools; from the at least one program upload key, the target program upload key associated with the target upload tool is extracted; based on the target program upload key, the target upload tool is called to send the target mini program to the target application platform through the target upload tool. Among them, the program upload key can be obtained from a preset configuration table, and the user can pre-configure the mini program identifier to be processed in the configuration table, and associate at least one program upload key with each identifier to be processed.

[0069] The program upload key has the permission to preview and upload the mini program code, which ensures that only users with the key can upload and preview the mini program code, thereby ensuring the security of the mini program code. In addition, before using the target upload tool, you can also configure an IP whitelist so that only IPs in the whitelist can call the relevant interface, which can further limit only specific and trusted users to upload the mini program code, reducing security risks.

[0070] Of course, this embodiment is not limited to this implementation method, and other implementation methods can be used to submit the target applet to the target application platform. For example, the user can manually submit the target applet to the target application platform, and this embodiment does not limit this.

[0071] In summary, in this embodiment, after constructing the corresponding target mini-programs for multiple target application platforms, the target upload tools corresponding to each target application platform can be automatically called to submit multiple target mini-programs to each target application platform through different target upload tools. In this way, one-click review can be automatically achieved for multiple mini-programs and multiple target application platforms, without the need to open multiple terminal developer tools at the same time, which can save development resources, be convenient and fast, and improve the efficiency of multi-terminal review of mini-programs.

[0072] In the above or below embodiments, various implementations may be used to obtain the original file of the applet to be processed.

[0073] In an optional implementation, a preset configuration table may be obtained in response to a mini-program processing instruction, wherein the configuration table includes an identifier of the mini-program to be processed and a preset address interval; based on the identifier of the mini-program to be processed, the file address associated with the identifier of the mini-program to be processed is determined. If the file address associated with the identifier of the mini-program to be processed is within the preset address interval, it indicates that the file address associated with the identifier of the mini-program to be processed is an accessible address, and the original file corresponding to the mini-program to be processed may be obtained based on the file address. Among them, the preset address interval is a collection of some available file addresses configured for the mini-program processing device. By configuring the preset address interval, the mini-program processing device may be configured with an accessible file address, thereby avoiding access to erroneous and unsafe files and improving the efficiency and security of access control.

[0074] For example, after completing code development, developers can store the developed code in a code repository management tool (such as Global Information Tracker, Git). The code repository management tool stores the code in the form of branches. Therefore, the preset address range here can be understood as a branch set containing multiple branches, and only branches within these branch sets are allowed to be accessed by the mini-program processing device. In addition, the code repository management tool can be deployed on a remote server, which can liberate local resources and improve the flexibility and efficiency of the reconstruction process. And the code in the code repository management tool can be used as a backup of the local code, so there is no need to worry about data loss, which provides additional protection for the security of the code.

[0075] In this implementation, the file pointed to by the file address associated with the mini-program to be processed may store multiple versions of the mini-program to be processed, so that the obtained original file contains multiple versions of the mini-program to be processed, and it is impossible to accurately determine the mini-program version that needs to be released to the target application platform.

[0076] Based on this, when obtaining the original file corresponding to the applet to be processed according to the file address, the version identifier contained in the file pointed to by the file address associated with the applet to be processed identifier can be displayed, and the number of version identifiers can be one or more. In response to the selection operation for the target version identifier, the original file pointed to by the target version identifier is obtained as the original file corresponding to the applet to be processed. Alternatively, the target version identifier can be pre-specified for the applet to be processed identifier in a preset configuration file, so that the original file pointed to by the target version identifier can be directly obtained from the file pointed to by the file address associated with the applet to be processed identifier as the original file corresponding to the applet to be processed.

[0077] Of course, in this embodiment, other implementation methods can also be used to obtain the original file of the applet to be processed, as long as the original file corresponding to the applet to be processed can be obtained by the applet processing device. No further examples are given here.

[0078] In actual applications, the version of the mini-program to be processed is selected to effectively ensure the accuracy of the mini-program version to be processed. Even if there is only one version identifier stored in the file or a version identifier is pre-specified for the mini-program to be processed, the version identifier is displayed to the user so that the user can reconfirm the version of the mini-program to be processed, thereby effectively ensuring the consistency between the version to be processed and the version actually processed, and avoiding waste of resources due to the mini-program version error.

[0079] Figure 2 A flowchart of an application scenario provided by another exemplary embodiment of the present application. Figure 2 The mini program matrix contains mini programs A, B, and C to be processed, and at least one target application platform to be submitted includes P and Q. In the scenario where the mini program matrix needs to be submitted to the above two target application platforms for review, the review process can be divided into the configuration stage and the execution stage.

[0080] 1. During the configuration phase:

[0081] The applet processing device can provide a configuration table to the user, and the user configures the applet identifier to be processed and the target application platform identifier in the configuration table. The three applet identifiers to be processed correspond to A, B, and C respectively, and the target application platform identifiers to be processed correspond to P and Q respectively;

[0082] The user can configure a preset address range for the applet processing device in the configuration table;

[0083] Users can download the program upload key that is compatible with the target upload tool from the target application platform, and configure the program upload keys ap, aq associated with the pre-processed mini-program identifier A, the program upload keys bp, bq associated with the pending mini-program identifier B, and the program upload keys cp, cq associated with the pending mini-program C in the configuration table, where the program upload keys ap, bp, cp are adapted to the upload tool p corresponding to the target application platform P, and the program upload keys aq, bq, cq are adapted to the upload tool q corresponding to the target application platform Q.

[0084] 2. In the execution phase:

[0085] The applet processing device, in response to the applet processing instruction, obtains three applet identifiers to be processed contained in the configuration table, and determines the file addresses associated with the three applet identifiers to be processed respectively;

[0086] If the file address associated with the identifier of the mini-program to be processed is within the preset address range, the original files corresponding to the three mini-programs to be processed are obtained; if the file address associated with the identifier of the mini-program to be processed is not within the preset address range, a failure notification can be returned to the user, ending the current reconstruction process;

[0087] The mini-program processing device displays the version identification corresponding to each mini-program to be processed to the user, so that the user can confirm the version of the mini-program to be processed that needs to be submitted;

[0088] If the required version can be determined, the two target application platforms to which the pending mini-program needs to be published are obtained according to the two target application platform identifiers in the configuration table; if the required version cannot be determined, a failure notification is returned to the user, and the current reconstruction process ends;

[0089] The mini-program processing device determines the reconstruction logic corresponding to each of the two target application platforms according to the mapping relationship between the built-in application platform and the reconstruction logic, that is, the target application platform P corresponds to the reconstruction logic P', and the target application platform Q corresponds to the reconstruction logic Q';

[0090] The applet processing device can adjust the code environment and dependency relationship in the original files corresponding to the three applet to be processed according to the reconstruction logic P', so that the three target files obtained after the adjustment are adapted to the target application platform P, and the three target files are packaged to obtain the three target applet AP, BP, and CP that need to be submitted to the target application platform P; similarly, the applet processing device can obtain the three target applet AQ, BQ, and CQ that need to be submitted to the target application platform Q based on the reconstruction logic Q';

[0091] The mini-program processing device obtains the program upload keys ap, bp, cp, aq, bq, and cq configured for the three mini-programs to be processed from the configuration table; calls the upload tool p based on the program upload keys ap, bp, and cp respectively to submit the target mini-programs AP, BP, and CP to the target application platform P respectively; calls the upload tool q based on the program upload keys aq, bq, and cq respectively to send the target mini-programs AQ, BQ, and CQ to the target application platform Q respectively.

[0092] In this exemplary application scenario, based on the mini-program processing device provided in this embodiment, the mini-program reconstruction and submission for review can be integrated and automated. One-click submission for review can be achieved when there are many and complex mini-programs and many and complex application platforms, without the need to start developer tools for multiple platforms at the same time, which improves the efficiency of multi-platform submission for review of the mini-program matrix; the review version of the mini-program can also be controlled to ensure that the mini-program version actually submitted for review is the mini-program version required for review, thereby improving the accuracy of the review.

[0093] It should be noted that the execution subject of each step of the method provided in the above embodiment can be the same device, or the method can be executed by different devices. For example, the execution subject of steps 100 to 104 can be device A; for another example, the execution subject of steps 100-102 can be device A, and the execution subject of steps 103-104 can be device B; and so on.

[0094] In addition, in some of the processes described in the above embodiments and the accompanying drawings, multiple operations appearing in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this document or may be executed in parallel, and the serial numbers of the operations, such as 100, 101, etc., are only used to distinguish between different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel.

[0095] Figure 3 A schematic diagram of a small program submission device provided by another exemplary embodiment of the present application. Figure 3 As shown, the mini-program processing device includes a response module 31 and a reconstruction module 32.

[0096] The response module 31 is used to respond to the mini-program processing instruction, obtain the original file corresponding to the mini-program to be processed, and determine at least one target application platform to be released for the mini-program to be processed;

[0097] The reconstruction module 32 is used to determine the reconstruction logic corresponding to at least one target application platform based on the mapping relationship between the preset application platform and the reconstruction logic; for any target application platform, based on the original file corresponding to the applet to be processed, according to the target reconstruction logic corresponding to the target application platform, reconstruct the target file adapted to the running requirements of the target application platform for the applet to be processed; based on the target file, generate a target applet for publishing on the target application platform for the applet to be processed.

[0098] Among them, different application platforms correspond to different reconstruction logics, and the reconstruction logic is used to guide the small program processing device to reconstruct the original file into a new file that is compatible with the operation requirements of the application platform.

[0099] In an optional embodiment, the mini-program processing device further includes an upload module 33;

[0100] The upload module 33 is used to obtain the target upload tool associated with the target application platform; call the target upload tool to submit the target applet to the target application platform, so that the target application platform can review the target applet according to its own publishing requirements.

[0101] It is worth noting that the technical details in the above-mentioned embodiments of the mini-program processing device can refer to the relevant description of the mini-program processing device in the aforementioned method embodiment. In order to save space, they will not be repeated here, but this should not cause loss of the protection scope of this application.

[0102] Figure 4 A schematic diagram of a computing device provided as another exemplary embodiment of the present application. Figure 4 As shown, the computing device includes: a memory 40 , a processor 41 and a communication component 42 .

[0103] The processor 41 is coupled to the memory 40 and is used to execute the computer program in the memory 40 to:

[0104] Responding to the applet processing instruction through the communication component 42, obtaining the original file corresponding to the applet to be processed;

[0105] Determine at least one target application platform to which the mini program to be processed needs to be published;

[0106] Based on the mapping relationship between the preset application platform and the reconstruction logic, determine the reconstruction logic corresponding to at least one target application platform, wherein different application platforms correspond to different reconstruction logics, and the reconstruction logic is used to guide the processor 41 to reconstruct the original file into a new file adapted to the operation requirements of the application platform;

[0107] For any target application platform, based on the original file corresponding to the mini program to be processed and in accordance with the target reconstruction logic corresponding to the target application platform, a target file adapted to the running requirements of the target application platform is reconstructed for the mini program to be processed;

[0108] Based on the target file, a target applet for publishing on a target application platform is generated for the applet to be processed.

[0109] In an optional embodiment, based on the original file, according to the target reconstruction logic corresponding to the target application platform, a target file adapted to the running requirements of the target application platform is reconstructed for the mini program to be processed, and the processor 41 is further used to:

[0110] Extract the environment reconstruction logic and dependency reconstruction logic from the target reconstruction logic;

[0111] According to the environment reconstruction logic, the code environment in the original file is adjusted to a target code environment that meets the environment requirements of the target application platform;

[0112] According to the dependency reconstruction logic, the dependency relationships in the original files are adjusted to target dependency relationships that meet the dependency requirements of the target application platform;

[0113] The original file containing the target code environment and target dependencies is used as a target file adapted to the running requirements of the target application platform;

[0114] Among them, the operation requirements of the target application platform include environmental requirements and dependency requirements.

[0115] In an optional embodiment, the processor 41 is further configured to:

[0116] Obtain the target upload tool associated with the target application platform;

[0117] Call the target upload tool to submit the target Mini Program to the target application platform so that the target application platform can review the target Mini Program according to its own publishing requirements.

[0118] In an optional embodiment, during the process of acquiring the target upload tool corresponding to the target application platform, the processor 41 is further configured to:

[0119] Determine whether the target applet meets the preset upload conditions;

[0120] If the target Mini Program meets the preset upload conditions, an upload instruction is initiated for the target Mini Program;

[0121] In response to the upload instruction, a target upload tool corresponding to the target application platform is obtained.

[0122] In an optional embodiment, during the process of calling the target upload tool to send the target applet to the target application platform, the processor 41 is further configured to:

[0123] Obtain at least one program upload key corresponding to the mini program to be processed, where the at least one program upload key is respectively associated with different upload tools;

[0124] Extracting a target program upload key associated with a target upload tool from at least one program upload key;

[0125] The target upload tool is called based on the target program upload key to send the target applet to the target application platform through the target upload tool.

[0126] In an optional embodiment, in response to the mini-program processing instruction, in the process of obtaining the original file corresponding to the mini-program to be processed, the processor 41 is further configured to:

[0127] In response to the mini-program processing instruction, a preset configuration table is obtained, wherein the configuration table includes an identifier of the mini-program to be processed and a preset address range;

[0128] Based on the identifier of the mini-program to be processed, determine the file address associated with the identifier of the mini-program to be processed;

[0129] If the file address is within the preset address range, the original file corresponding to the mini-program to be processed is obtained according to the file address.

[0130] In an optional embodiment, in the process of obtaining the original file corresponding to the mini-program to be processed according to the file address, the processor 41 is further configured to:

[0131] Display the version identifiers contained in the file pointed to by the file address. The number of version identifiers is one or more.

[0132] In response to the selection operation for the target version identifier, the original file pointed to by the target version identifier is obtained as the original file corresponding to the mini-program to be processed.

[0133] In an optional embodiment, the processor 41 is further configured to:

[0134] In response to the applet processing instruction, obtaining a preset configuration table;

[0135] Parse at least one mini-program identifier to be processed from the configuration table;

[0136] The mini-program pointed to by the mini-program-to-be-processed identifier is determined as the mini-program to be processed, and the number of the mini-programs to be processed is one or more.

[0137] Further, if Figure 4 As shown, the computing device also includes: a display 43, a power supply component 44 and other components. Figure 4 Only some components are shown schematically, and it does not mean that the computing device only includes Figure 4 Components shown.

[0138] It is worth noting that the technical details in the above-mentioned embodiments of the computing device can refer to the relevant descriptions of the actions of the computing device in the embodiments of the aforementioned mini-program processing method. In order to save space, they will not be repeated here, but this should not cause any loss of the scope of protection of this application.

[0139] Accordingly, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, which, when executed, can implement the steps that can be executed by a computing device in the above method embodiment.

[0140] Accordingly, an embodiment of the present application also provides a computer program product, which can implement the steps in the above method embodiment when the computer program included in the product is executed.

[0141] Above Figure 4 The memory in the computer is used to store computer programs and can be configured to store various other data to support operations on the computing platform. Examples of such data include instructions for any application or method operating on the computing platform, contact data, phone book data, messages, pictures, videos, etc. The memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0142] Above Figure 4 The communication component in is configured to facilitate wired or wireless communication between the device where the communication component is located and other devices. The device where the communication component is located can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G / LTE, 5G and other mobile communication networks, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0143] Above Figure 4The display in the embodiment includes a screen, which may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.

[0144] Above Figure 4 The power supply component in the device provides power to various components of the device where the power supply component is located. The power supply component may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device where the power supply component is located.

[0145] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0146] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0147] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0148] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0149] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0150] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0151] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0152] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0153] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0154] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for processing a small program, characterized in that: Applicable to small program processing devices, including: In response to the mini-program processing instruction, obtaining the original file corresponding to the mini-program to be processed; Determine at least one target application platform to which the mini program to be processed needs to be published; Based on the mapping relationship between the preset application platform and the reconstruction logic, determine the reconstruction logic corresponding to each of the at least one target application platform, wherein different application platforms correspond to different reconstruction logics, and the reconstruction logic is used to guide the applet processing device to reconstruct the original file into a new file that is compatible with the operation requirements of the application platform; For any target application platform, based on the original file and in accordance with the target reconstruction logic corresponding to the target application platform, reconstruct a target file adapted to the running requirements of the target application platform for the mini program to be processed; Based on the target file, a target applet for publishing on the target application platform is generated for the applet to be processed.

2. The method according to claim 1, characterized in that Based on the original file, according to the target reconstruction logic corresponding to the target application platform, a target file adapted to the running requirements of the target application platform is reconstructed for the mini program to be processed, including: Extracting environment reconstruction logic and dependency reconstruction logic from the target reconstruction logic; According to the environment reconstruction logic, the code environment in the original file is adjusted to a target code environment that meets the environment requirements of the target application platform; According to the dependency reconstruction logic, the dependency relationship in the original file is adjusted to a target dependency relationship that meets the dependency requirements of the target application platform; Using the original file including the target code environment and the target dependency as a target file adapted to the running requirements of the target application platform; The operating requirements of the target application platform include environment requirements and dependency requirements.

3. The method according to claim 1, characterized in that Also includes: Obtaining a target upload tool associated with the target application platform; The target upload tool is called to submit the target applet to the target application platform, so that the target application platform can review the target applet according to its own publishing requirements.

4. The method according to claim 3, characterized in that Obtaining the target upload tool corresponding to the target application platform includes: Determine whether the target applet meets the preset upload conditions; If the target applet meets the preset upload conditions, an upload instruction is initiated for the target applet; In response to the upload instruction, a target upload tool corresponding to the target application platform is obtained.

5. The method according to claim 3, characterized in that: Calling the target upload tool to send the target applet to the target application platform includes: Obtain at least one program upload key corresponding to the mini program to be processed, wherein the at least one program upload key is respectively associated with different upload tools; Extracting a target program upload key associated with the target upload tool from the at least one program upload key; The target upload tool is called based on the target program upload key to send the target applet to the target application platform through the target upload tool.

6. The method according to claim 1, characterized in that In response to the mini-program processing instruction, the original file corresponding to the mini-program to be processed is obtained, including: In response to the mini-program processing instruction, a preset configuration table is obtained, wherein the configuration table includes an identifier of the mini-program to be processed and a preset address range; Based on the to-be-processed mini-program identifier, determine a file address associated with the to-be-processed mini-program identifier; If the file address is within the preset address range, the original file corresponding to the mini-program to be processed is obtained according to the file address.

7. The method according to claim 6, characterized in that According to the file address, the original file corresponding to the mini program to be processed is obtained, including: Displaying version identifiers contained in the file pointed to by the file address, where the number of version identifiers is one or more; In response to a selection operation on a target version identifier, an original file pointed to by the target version identifier is obtained as the original file corresponding to the mini-program to be processed.

8. The method according to claim 1, characterized in that Also includes: In response to the applet processing instruction, obtaining a preset configuration table; Parsing at least one to-be-processed mini-program identifier from the configuration table; The mini-program pointed to by the to-be-processed mini-program identifier is determined as the to-be-processed mini-program, and the number of the to-be-processed mini-programs is one or more.

9. A small program processing device, characterized in that: Includes response module and reconstruction module; The response module is used to respond to the mini-program processing instruction, obtain the original file corresponding to the mini-program to be processed; and determine at least one target application platform to be released for the mini-program to be processed; The reconstruction module is used to determine the reconstruction logic corresponding to each of the at least one target application platform based on the mapping relationship between the preset application platform and the reconstruction logic, wherein different application platforms correspond to different reconstruction logics, and the reconstruction logic is used to guide the mini-program processing device to reconstruct the original file into a new file that is compatible with the running requirements of the application platform; for any target application platform, based on the original file, according to the target reconstruction logic corresponding to the target application platform, a target file that is compatible with the running requirements of the target application platform is reconstructed for the mini-program to be processed; Based on the target file, a target applet for publishing on the target application platform is generated for the applet to be processed.

10. A computing device, characterized in that Includes memory, processor, and communication components; The memory is used to store one or more computer instructions; The processor is coupled to the memory and the communication component, and is used to execute the one or more computer instructions to execute the applet processing method described in any one of claims 1-8.

11. A computer-readable storage medium storing computer instructions, characterized in that: When the computer instructions are executed by one or more processors, the one or more processors are caused to execute the applet processing method described in any one of claims 1-8.

12. A computer program product, characterized in that It includes a computer program, wherein when the computer program is executed by a processor, it causes the processor to execute the applet processing method described in any one of claims 1-8.