Mini-program delivery method, computer storage medium, and computer program product
By introducing independent storage space and automatic/manual review mechanisms in the mini program delivery method, the problem of mini program developers need to repeatedly develop and adapt to different operating standards has been solved, and the effect of mini program development can be implemented across the running platform.
Patent Information
- Application Number
- CN202010297246.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-15
- Publication Date
- 2025-05-23
- Estimated Expiration
- 2040-04-15
AI Technical Summary
In the prior art, mini program developers need to repeatedly develop to adapt to different mini program operation standards, resulting in inefficient development and complex delivery.
By providing a mini program delivery method, allowing mini program development to be delivered across the running platform at one time, the method to achieve this goal is to store the mini program in the tenant's independent storage space, and then copy it to the target tenant's storage space through automatic testing or manual auditing.
It realizes that mini-program development can be delivered on multiple mobile clients at one time, which improves development efficiency, reduces delivery complexity, and avoids the need for duplicate development.
Smart Images

Figure CN113536295B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method for delivering a small program, a computer storage medium, and a computer program product. Background Art
[0002] Mini Program is an application that can be used without downloading and installing. It runs in the operating environment provided by the application software. Currently, each application software provides a Mini Program platform to obtain Mini Programs uploaded and submitted by developers. The operating standards of different Mini Program platforms are incompatible with each other. For developers, if they need to launch the same Mini Program on multiple mobile clients, they need to repeat the development multiple times to adapt to different Mini Program operating standards. Summary of the invention
[0003] The embodiments of the present application provide a method for delivering a mini-program, a computer storage medium, and a computer program product, so that a mini-program can be developed once and then delivered across operating platforms.
[0004] In order to achieve the above purpose, the embodiment of the present application adopts the following technical solution:
[0005] In a first aspect, the present application provides a method for delivering a mini-program, comprising: receiving a mini-program uploaded to a first tenant among multiple tenants, wherein each tenant is configured with a corresponding storage space, and the storage spaces of any two different tenants are isolated from each other; storing the mini-program in the storage space of the first tenant; determining, among the multiple tenants, the tenants to which the mini-program is to be delivered to obtain target tenants, wherein each target tenant corresponds to an application software configured with a specified mini-program operating environment; determining that the mini-program meets the operating conditions, wherein the operating conditions at least include the ability to run in the specified mini-program operating environment; and copying the mini-program to the storage space of each target tenant.
[0006] A tenant is an identity. Each tenant will be pre-allocated an independent storage space, and the storage spaces of different tenants are isolated from each other. When receiving uploaded mini-programs, you can use portal websites / mobile clients, etc. as interactive interfaces to receive the mini-programs uploaded by the developer of the mini-programs to the first tenant. Among multiple tenants, there are some tenants to which the mini-programs can be delivered. Among these tenants to which the mini-programs can be delivered, each tenant corresponds to a different application software, and each application software is configured with a unified mini-program operating environment. After determining the target tenants to which the mini-programs are to be delivered, it is necessary to determine that the mini-programs meet the operating conditions before they can be delivered to each target tenant. Among them, the running conditions at least include the ability to run in a specified mini-program running environment, and optionally, may also include compliance with relevant laws and regulations, etc., wherein the determination of whether it can run in a specified mini-program running environment may be implemented by an automatic testing program, for example, it may be to match whether the code of the interface API corresponding to the specified mini-program running environment is included in the mini-program code, or the automatic testing program may be executed to run the mini-program in the specified mini-program running environment, and execute various test logics in the automatic testing program to determine whether the test results are correct. If correct, it is determined that the mini-program can run in the specified mini-program running environment. Optionally, the determination of whether it can run in a specified mini-program running environment may also be made manually, and whether it complies with relevant laws and regulations may also be manually reviewed to determine whether the content of the mini-program is compliant. After determining that the mini program meets the running conditions, the mini program is placed in the storage space corresponding to each target tenant to be placed, where the above-mentioned tenants may correspond to one or more accounts. After logging in to an account, you can obtain and view the data stored in the storage space of the tenant corresponding to the account, but you cannot obtain and view the data stored in the storage space of the tenants corresponding to other accounts, so as to achieve data isolation between different tenants. In an optional application scenario, each tenant corresponds to only one application software, and accordingly, each storage space corresponds to only one application software.
[0007] Among them, whether the mini program meets the running conditions can be determined by the tenant with the review authority. Specifically, among multiple tenants, there are two types of tenants according to whether they have the authority to review whether the mini program meets the running conditions. The first type of tenants does not have the authority to review the mini program, and the second type of tenants have the authority to review the mini program.
[0008] In one possible implementation, the first tenant belongs to the first type of tenant mentioned above and does not have the authority to review the mini-program. Correspondingly, the multiple tenants also include a second tenant. The steps of determining whether the mini-program meets the running conditions include: copying the mini-program from the storage space of the first tenant to the storage space of the second tenant; sending a review request to the second tenant, wherein the review request is used to request the review result for the mini-program; receiving the review result of the second tenant determining that the mini-program meets the running conditions; and copying the mini-program to the storage space of each target tenant, including: copying the mini-program from the storage space of the second tenant to the storage space of each target tenant.
[0009] In a possible implementation, the first tenant corresponds to an application software configured with a specified mini-program running environment.
[0010] In one possible implementation, the first tenant belongs to the second type of tenant mentioned above and has the authority to review the mini-program. Accordingly, the step of determining whether the mini-program meets the running conditions includes: sending a review request to the first tenant, wherein the review request is used to request the review result for the mini-program; receiving the review result of the first tenant determining that the mini-program meets the running conditions; and copying the mini-program to the storage space of each target tenant, including: copying the mini-program from the storage space of the first tenant to the storage space of each target tenant.
[0011] In one possible implementation, the mini program is uploaded by a user, and the user is an identity. Each user is not allocated a corresponding storage space. Each user can log in through the user's account. Each user needs to apply in advance for the upload permission to upload the mini program to the tenant. After the application is approved, the user has the upload permission to upload the mini program to the corresponding tenant. Accordingly, receiving the mini program uploaded to the first tenant among multiple tenants includes: determining that the user is configured with the upload permission to upload the mini program to the first tenant; receiving the mini program uploaded by the user to the first tenant.
[0012] In one possible implementation, among multiple tenants, tenants where the mini program is to be launched are determined to obtain target tenants, including: among multiple tenants, tenants that open upload permissions to users to obtain candidate tenants; among the candidate tenants, tenants where the mini program is to be launched are determined to obtain target tenants.
[0013] In a possible implementation, determining the tenant to which the mini program is to be placed from the candidate tenants includes: displaying a list of candidate tenants; receiving a selection operation from the user in the list of candidate tenants; and determining the tenant corresponding to the selection operation as the target tenant. For example, the executor of the embodiment of the present application may use a portal website as an interactive interface, the user logs in to the account on the portal website, then chooses to upload the mini program, and selects the tenant that the user expects to place from the list of candidate tenants provided by the portal website. After the user performs the selection operation, the executor of the embodiment of the present application determines the target tenant to be placed by the user.
[0014] In a possible implementation, before receiving the mini-program uploaded by the user to the first tenant, the method further includes: receiving a first download request from the user to download a specified mini-program operating environment; and sending the specified mini-program operating environment to a download terminal indicated by the user. That is, the executor of the embodiment of the present application can provide a unified mini-program operating environment to the developers of each mini-program, and the mini-program operating environment is configured in each application software that the executor of the embodiment of the present application can launch, so that the mini-program developed by the mini-program developer can run directly in each different application software without modification.
[0015] In one possible implementation, after copying the mini program to the storage space of each target tenant, the method further includes: receiving a second download request sent by the target tenant to instruct downloading the mini program; and sending the mini program stored in the storage space corresponding to the target tenant to the download terminal indicated by the target tenant.
[0016] For example, a service provider (staff) of an application software logs in to the corresponding tenant account on the portal website provided by the executor of the embodiment of the present application, checks that there is a mini-program to be launched, and then clicks to download the mini-program on the page of the portal website to perform review and other operations. After clicking to download the mini-program, the executor of the embodiment of the present application receives the download request and sends the mini-program stored in the tenant's storage space to the terminal logged in to the tenant account, so that the staff of the application software service provider can perform further review and other operations on the mini-program.
[0017] In a possible implementation, sending the mini-program stored in the storage space corresponding to the target tenant to the download terminal indicated by the target tenant includes: signing the mini-program stored in the storage space of the target tenant according to the signing certificate pre-configured for the target tenant; and sending the signed mini-program to the download terminal indicated by the target tenant. For the security of the mini-program during data transmission, a corresponding signing certificate is configured for each application software, and the mini-program is signed before it is sent to ensure data security during transmission.
[0018] In a possible implementation, the target tenant corresponds to the target application software, and the target application software uses the verification certificate to verify the signature of the applet before running, and the signature certificate corresponds to the verification certificate. In order to prevent the applet downloaded to the terminal with the application software installed from being tampered with, the application software installed in the terminal usually verifies the signature of the applet before running the applet. The verification certificates of different application software are different. In the embodiment of the present application, the signature certificate used by the executor of the embodiment of the present application to sign the applet corresponds to the verification certificate used by the application software (target application software) before running the applet. The tenant of each application software can pre-store the corresponding signature certificate in the corresponding storage space.
[0019] In the second aspect, the present application provides a mini-program delivery device, including: a receiving unit, used to receive a mini-program uploaded to a first tenant among multiple tenants, wherein each tenant is configured with a corresponding storage space, and the storage spaces of any two different tenants are isolated from each other; a storage unit, used to store the mini-program in the storage space of the first tenant; a first determination unit, used to determine the tenant to which the mini-program is to be delivered among multiple tenants to obtain a target tenant, wherein each target tenant corresponds to an application software configured with a specified mini-program running environment; a second determination unit, used to determine whether the mini-program meets the running conditions, wherein the running conditions at least include the ability to run in the specified mini-program running environment; a copying unit, used to copy the mini-program to the storage space of each target tenant.
[0020] In one possible implementation, the multiple tenants include a second tenant, and the second determination unit is also used to copy the mini program from the storage space of the first tenant to the storage space of the second tenant; send an audit request to the second tenant, wherein the audit request is used to request an audit result for the mini program; receive the audit result of the second tenant determining that the mini program meets the running conditions; the copying unit is also used to copy the mini program from the storage space of the second tenant to the storage space of each target tenant.
[0021] In a possible implementation, the first tenant corresponds to an application software configured with a specified mini-program running environment.
[0022] In one possible implementation, the second determination unit is also used to send an audit request to the first tenant, wherein the audit request is used to request an audit result for the mini program; receive the audit result of the first tenant determining that the mini program meets the operating conditions; and the copying unit is also used to copy the mini program from the storage space of the first tenant to the storage space of each target tenant.
[0023] In a possible implementation, the receiving unit is further configured to determine whether the user is configured with upload permission to upload the mini program to the first tenant; and receive the mini program uploaded by the user to the first tenant.
[0024] In a possible implementation, the first determination unit is further used to determine tenants that open upload permissions to users among multiple tenants to obtain candidate tenants; and determine tenants in which the mini program is to be launched among the candidate tenants to obtain target tenants.
[0025] In a possible implementation, the first determining unit is further configured to display a list of candidate tenants; receive a selection operation from a user in the list of candidate tenants; and determine that the tenant corresponding to the selection operation is the target tenant.
[0026] In one possible implementation, the receiving unit is also used to receive a first download request from a user requesting to download a specified mini-program operating environment before receiving the mini-program uploaded by the user to the first tenant; the device also includes a first sending unit, used to send the specified mini-program operating environment to the download terminal indicated by the user.
[0027] In one possible implementation, the receiving unit is also used to receive a second download request sent by the target tenant to indicate the downloading of the mini-program after the mini-program is copied to the storage space of each target tenant; the device also includes a second sending unit, which is used to send the mini-program stored in the storage space corresponding to the target tenant to the download terminal indicated by the target tenant.
[0028] In a possible implementation, the second sending unit is further used to sign the mini-program stored in the storage space of the target tenant according to the signing certificate pre-configured for the target tenant; and send the signed mini-program to the download terminal indicated by the target tenant.
[0029] In a possible implementation, the target tenant corresponds to the target application software, and the target application software uses the signature verification certificate to verify the signature of the mini-program before running, and the signature certificate corresponds to the signature verification certificate.
[0030] In a third aspect, an embodiment of the present application provides a computer storage medium, comprising computer instructions, which, when executed on a terminal, causes the terminal to execute a method as described in any one of the first aspects.
[0031] In a fourth aspect, an embodiment of the present application provides a computer program product. When the computer program product is executed on a terminal, the terminal executes the method as described in any one of the first aspects.
[0032] In any possible implementation method provided by any of the above aspects, by verifying whether the mini program can run in a unified mini program running environment, the mini program that meets the conditions is delivered to the application software configured with the same mini program running environment, so that each mini program developer can develop based on the unified mini program running environment, and the developed mini program can run in the application software configured with the unified mini program running environment. The mini program developer does not need to repeatedly develop for different application software. It can be run in different application software after development once, and the cross-application software delivery can be realized through the embodiments of the present application, and multiple application software can be uploaded and delivered at one time.
[0033] It can be understood that the above-provided terminal, computer storage medium and computer program product are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A schematic diagram of an application scenario of a mini-program delivery method provided in an embodiment of the present application;
[0035] Figure 2 A schematic diagram of an implementation method of a mini-program delivery method provided in an embodiment of the present application;
[0036] Figure 3 A schematic diagram of another implementation method of a mini-program delivery method provided in an embodiment of the present application;
[0037] Figure 4 A schematic diagram of the structure of a mini-program delivery device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] The implementation of this embodiment will be described in detail below with reference to the accompanying drawings.
[0039] This application embodiment provides a method for delivering a mini program. Figure 1 As shown, it is a schematic diagram of an application scenario of an optional mini program delivery method. The mini program delivery method provided in the embodiment of the present application can be executed by the mini program delivery platform 100, wherein the mini program delivery platform 100 is configured with two identities, one of which is a tenant, such as Figure 1 As shown, it may include tenants 121 to 125, one identity is a user, such as Figure 1 As shown, users 101 to 103 may be included.
[0040] For each tenant, the mini-program delivery platform 100 allocates a corresponding storage space. The storage spaces of each tenant are isolated from each other. Each tenant can be configured with one or more accounts. When logging in, each account can only view the mini-programs in the storage space of the tenant corresponding to the account.
[0041] For each user, the mini program delivery platform 100 does not allocate corresponding storage space. Each user can apply to become a developer of one or more tenants. If the corresponding tenant agrees to the user's application, the user can upload a mini program to the corresponding tenant, and the mini program delivery platform 100 will store the mini program uploaded by the user in the storage space of the corresponding tenant. Each user can log in through an account. The mini program delivery platform 100 can use portal websites, application software APPs, clients, etc. as interfaces for interacting with accounts.
[0042] Tenants may include owners of application software, which are used to provide application software (also known as mobile clients, wallets, etc.) that can run in users' mobile phones, tablet computers and other terminals. For example, service providers that can provide SaaS (full name Software-as-a-Service, meaning: software as a service, that is, providing software services through the Internet), such as payment application software (APP) service providers, etc., can also be merchants that provide other software services, such as instant messaging APP service providers, etc. Each tenant of the mini program delivery platform 100 that corresponds to an application software is configured with a unified mini program operating environment for its corresponding application software. A mini program is a program that runs in an application software. The mini program can be downloaded from the server when the user needs to use it. It does not need to be pre-installed in the user's terminal (such as a mobile phone) and does not need to be configured in the installation package of the application software. However, the mini program needs to run in a mini program operating environment. At present, the mini program operating environments of different application software are different. Therefore, mini program developers need to develop a mini program for different operating environments. In the mini-program delivery method provided in the embodiment of the present application, since each tenant corresponding to the application software in the mini-program delivery platform 100 has a unified mini-program operating environment pre-configured in the application software, the mini-program developer can directly provide the developed mini-program to tenants of different application software without having to develop them separately for different operating environments.
[0043] In the mini-program delivery method provided in the embodiment of the present application, before delivering the mini-program to tenants corresponding to different application software, it is necessary to determine whether the mini-program meets the operating conditions, and the operating conditions at least include determining whether the mini-program can run in the above-mentioned mini-program operating environment. The step of determining whether the mini-program meets the operating conditions can be performed by a tenant, and the tenant may not correspond to an application. An optional implementation is that, based on whether it is possible to review whether the mini-program meets the operating conditions, the tenants of the mini-program delivery platform 100 can be divided into two categories, the first category of tenants does not have review authority, and the second category of tenants has review authority. Figure 1 As shown, tenant 121 has the audit authority, tenants 122 to 125 do not have the audit authority, and tenant 121 has no corresponding application software, while tenants 122 to 125 correspond to one application software respectively.
[0044] In such Figure 1 In the application scenario shown, a developer of a small program wants to publish a small program in the application software provided by tenant 122. The developer of this small program can register a user account on the portal website provided by the small program delivery platform 100 and become user 101. The developer can be an independent software developer ISV (full name Independent Software Vendors), which refers to an enterprise specializing in software development, production, sales and services, or a merchant, such as major supermarkets (which can develop shopping small programs), etc., or an individual developer. Further, user 101 can apply to become a developer user of tenant 122. After tenant 122 agrees to the application, the developer of the small program can use the account of user 101 to log in to the portal website and upload the small program developed by himself to the storage space of tenant 122. After the staff of tenant 122 logs in to the portal website using the account of tenant 122, they receive the message that user 101 has uploaded the small program to tenant 122. The staff can download the small program and put it on the shelves in the application software of tenant 122 after passing the review. It should be noted that after the staff of tenant 122 downloads the mini program, the subsequent steps have nothing to do with the mini program delivery platform 100.
[0045] In such Figure 1 In the application scenario shown, you can execute Figure 2 An implementation method of the mini-program delivery method is shown.
[0046] like Figure 2 As shown, the mini program delivery platform 100 may include a server ( Figure 2 1200 , 1210 , 1220 , 1230 , 1240 , and 1250 ; the interactive interface between the mini-program delivery platform 100 and each user and tenant is the portal website 1001 .
[0047] The server can manage the data in each database. The server may include Figure 2 The signing module 1002 shown is used to sign the mini-program.
[0048] Each database is used to store data, and different databases are stored in different storage spaces, and each storage space is deployed independently of each other, that is, the data in each database is isolated from each other. The mini program delivery platform 100 can provide an independent database for each tenant to achieve data isolation between different tenants.
[0049] For example, Figure 2 The databases 1210, 1220, 1230, 1240 and 1250 shown correspond to Figure 1 Tenants 121-125 are shown.
[0050] The portal website 1001 of the mini program delivery platform 100 is used as an interface for interacting with tenants and users. An optional implementation is that each tenant and user registers their own account through the portal website 1001, and then can log in to the portal website 1001 using their own account. Figure 2 The illustrated application scenario is that all tenants and users share the same portal website 1001. Optionally, different portal websites or different clients may be provided for tenants and users, respectively, which is not limited in the embodiments of the present application.
[0051] Combine the following Figure 2 The following is a flow chart of an optional implementation method of a mini program delivery method, which specifically includes the following steps:
[0052] Step S11 : User 101 can use computer terminal 201 to download mini-program development software from mini-program delivery platform 100 through portal website 1001 .
[0053] Mini program developers can pre-register an account, which is called user 101 of the mini program delivery platform 100.
[0054] The mini program development software can be configured with a mini program running environment. The mini program development software is provided for the mini program developer 101 to simulate the environment in which the mini program runs in the application software provided by each mini program delivery party. The operator of the mini program delivery platform 100 can reach an agreement with the tenants 122 to 125 offline in advance to configure a mini program container that is the same as the mini program running environment in the application software of the tenants 122 to 125, so that any developer can match the mini program container of the application software corresponding to each tenant when developing a mini program based on the mini program running environment, so that the mini program can run in the application software of each tenant.
[0055] Taking the application software provided by the tenant as an example, which is based on the Android system, the mini-program operating environment can be SDK (full name Software Development Kit), which is also pre-configured in the application software provided by the tenant. The mini-program operating environment provides a unified interface API. Optionally, there can be multiple interfaces, for example, the interface for the mini-program to obtain user registration information from the application software, the interface for the mini-program to call the specified function of the application software (such as payment), and so on. In order for the mini-program to adapt to the mini-program operating environment, the corresponding API code needs to be configured in the mini-program code.
[0056] Step S12: User 101 develops a mini-program using the mini-program development software of the mini-program delivery platform 100.
[0057] Step S13 , user 101 logs into his account through computer terminal 201 , selects tenant 121 (in this embodiment, the first tenant is tenant 121 ), and uploads the data of the developed mini program to tenant 121 through portal website 1001 .
[0058] In an optional implementation, user 101 needs to apply for upload permission from tenant 121 in advance. After tenant 121 agrees to the application, mini program delivery platform 100 allows user 101 to upload mini program data to tenant 121.
[0059] Tenant 121 is the second type of tenant mentioned above, has the authority to review whether the mini program meets the operating conditions, and has no corresponding application software.
[0060] The mini program delivery platform 100 stores the mini program data uploaded to the tenant 121 in the database 1210 of the tenant 121. The portal website 1001 is used to provide each user with an interactive entry for uploading. Each user can upload the mini program data to the tenant with upload permission through the upload entry displayed on the portal website 1001. The mini program data may include descriptive data (also called metadata) of the mini program, such as the name of the mini program, the mini program icon used to be displayed in the application software of the mini program delivery party, etc., and the offline package of the mini program (also called the source code package), which contains some codes of the mini program, some element images and buttons displayed by the mini program, etc. The mini program offline package can run in the mini program running environment.
[0061] Step S14, tenant 121 is the second type of tenant mentioned above, and has the authority to review the mini-program. Tenant 121 can download the mini-program in database 1210 to computer terminal 202 by logging into the corresponding account.
[0062] In step S15, the auditor can run and test the mini-program in the computer terminal 202 to determine whether it meets the running conditions. The running conditions are the conditions for being able to run in each application software to be delivered, and can include whether it can run in the mini-program running environment provided by the mini-program delivery platform 100, and whether it contains high-risk code, etc. Optionally, this step can also be performed by computer instructions instead of manually, for example, by automatically running the mini-program in the mini-program running environment, testing whether there are any abnormalities in the running results of the mini-program during the running process, so as to determine whether the mini-program can run in the mini-program running environment.
[0063] Step S16, after the mini program uploaded by user 101 is reviewed and approved, tenant 121 chooses which tenant to place the mini program to. Tenant 121 can determine which tenant to place the mini program to based on the selection of user 101. An optional implementation is that when executing step S13, user 101 can choose in which application software he wants to publish, and the corresponding tenant is the target tenant to be placed. Optionally, all tenants can be selected by default. Optionally, when user 101 selects the target tenant to be placed, he needs to select from the candidate tenants who have obtained the upload permission in advance. In the embodiment of the present application, tenant 121 determines that the target tenants to be placed are tenants 123 and tenant 124 based on the selection of user 101.
[0064] Step S17: The server of the mini program delivery platform 100 copies the mini program from the database 1210 to the database 1230 corresponding to the tenant 123 to be delivered, and the database 1240 corresponding to the tenant 124, as shown in FIG. Figure 2 shown.
[0065] If the tenant 124 has logged into the account, the mini program in the database 1240 can be downloaded. The tenant 124 can click the download button to send a download request (a second download request) to the mini program delivery platform 100.
[0066] Step S18: After receiving the second download request, the mini program delivery platform 100 uses the signing module 1002 to sign the mini program data.
[0067] Before providing the mini program to the tenant, the mini program delivery platform 100 can re-sign the offline package in the mini program data to ensure data security during data transmission. An optional implementation method is that the certificate used for signing is the signing certificate corresponding to each tenant. The signing certificate of each tenant is different. Each tenant can provide the corresponding signing certificate to the mini program delivery platform 100 in advance and store it in the database corresponding to each tenant.
[0068] In order to prevent the mini-program downloaded to the terminal from being tampered with, the application software installed in the terminal will use the verification certificate to verify the mini-program before running it. The verification certificates of different application software are different. The verification certificate used by the signing module 1002 when signing is the verification certificate corresponding to the verification certificate of the application software, thereby ensuring the security of the mini-program running in the application software.
[0069] Step S19: The mini program delivery platform 100 sends the signed mini program data to the server 203 of the tenant 124, and may initiate a publishing (also referred to as listing) application to the tenant 124. The server of each tenant may be used to provide services for the corresponding application software.
[0070] Step S20: After receiving the release application, the auditor of the tenant 124 reviews the mini program data to determine whether the release conditions are met. If the release requirements are not met, the application is rejected, and the mini program delivery platform 100 can receive a rejection notification.
[0071] Step S21: If the tenant 124 confirms that the product can be published, the product can be published according to the preset publishing rules. For example, the product can be published in full (published to all users) after being published in phase (published to some users), or the product can be published in full directly.
[0072] Step S31: After the mini program is listed in the application software of tenant 124, user 205 (user 205 is not a user identity in the mini program delivery platform, but refers to a user using the application software) who uses the application software provided by tenant 124 can see the icon of the mini program in the application software. User 205 can open the application software on mobile phone 204 and click on the mini program icon to request to open the mini program.
[0073] Step S32: Mobile phone 204 applies to server 203 for obtaining the mini program offline package.
[0074] Step S33 : mobile phone 204 obtains the mini program offline package fed back by server 203 .
[0075] Step S34: After receiving the mini-program offline package, mobile phone 204 uses the mini-program running environment configured in the application software to verify the mini-program offline package. After the verification is successful, the mini-program offline package is run so that user 205 can use the mini-program.
[0076] The mini-program delivery method provided in the embodiment of the present application provides a unified mini-program operating environment through the mini-program delivery platform 100, and configures the operating environment in each application software of the mini-program delivery platform 100, so that each mini-program developer can develop based on the unified mini-program operating environment. The developed mini-program can run in different application software without modification. The mini-program developer does not need to repeatedly develop for different application software, and the mini-program developer can develop once and deliver it across application software.
[0077] Figure 3 Another optional implementation of the mini program delivery method of the embodiment of the present application is also provided. Figure 2 The process of the mini program delivery method provided is similar, and the same steps will not be repeated here. Figure 2 A description of the process of the provided mini-program delivery method. Figure 3 The implementation method of the mini program delivery method shown is the same as Figure 2 The different steps of the implementation method of the mini program delivery method shown include:
[0078] Step S13 is replaced by step S13': user 101 chooses to upload the mini program to tenant 122 (in this embodiment, the first tenant is tenant 122), and tenant 122 is a tenant without review authority corresponding to an application software. In addition, user 101 also chooses to release the mini program to tenants 123 and 124.
[0079] Step S131, store the mini program in the database 1220 corresponding to the tenant 122.
[0080] Since tenant 122 does not have the audit authority to review whether the mini program meets the operating conditions, the mini program is audited by tenant 121 who has the audit authority. Therefore, after executing step S131, step S132 is executed to copy the mini program from database 1220 to database 1210 corresponding to tenant 121, so that tenant 121 can download the mini program from database 1210.
[0081] The present application also provides a mini-program delivery device, which can be used to execute the mini-program delivery method provided in the present application. Figure 4 The method comprises a receiving unit 41 , a storage unit 42 , a first determining unit 43 , a second determining unit 44 and a copying unit 45 .
[0082] Among them, the receiving unit is used to receive the mini program uploaded to the first tenant among multiple tenants, wherein each tenant is configured with a corresponding storage space, and the storage spaces of any two different tenants are isolated from each other; the storage unit is used to store the mini program in the storage space of the first tenant; the first determination unit is used to determine the tenant to which the mini program is to be launched among multiple tenants to obtain the target tenant, wherein each target tenant corresponds to an application software configured with a specified mini program running environment; the second determination unit is used to determine whether the mini program meets the running conditions, wherein the running conditions at least include the ability to run in the specified mini program running environment; the copying unit is used to copy the mini program to the storage space of each target tenant.
[0083] In one possible implementation, the multiple tenants include a second tenant, and the second determination unit is also used to copy the mini program from the storage space of the first tenant to the storage space of the second tenant; send an audit request to the second tenant, wherein the audit request is used to request an audit result for the mini program; receive the audit result of the second tenant determining that the mini program meets the running conditions; the copying unit is also used to copy the mini program from the storage space of the second tenant to the storage space of each target tenant.
[0084] In a possible implementation, the first tenant corresponds to an application software configured with a specified mini-program running environment.
[0085] In one possible implementation, the second determination unit is also used to send an audit request to the first tenant, wherein the audit request is used to request an audit result for the mini program; receive the audit result of the first tenant determining that the mini program meets the operating conditions; and the copying unit is also used to copy the mini program from the storage space of the first tenant to the storage space of each target tenant.
[0086] In a possible implementation, the receiving unit is further configured to determine whether the user is configured with upload permission to upload the mini program to the first tenant; and receive the mini program uploaded by the user to the first tenant.
[0087] In a possible implementation, the first determination unit is further used to determine tenants that open upload permissions to users among multiple tenants to obtain candidate tenants; and determine tenants in which the mini program is to be launched among the candidate tenants to obtain target tenants.
[0088] In a possible implementation, the first determining unit is further configured to display a list of candidate tenants; receive a selection operation from a user in the list of candidate tenants; and determine that the tenant corresponding to the selection operation is the target tenant.
[0089] In one possible implementation, the receiving unit is also used to receive a first download request from a user requesting to download a specified mini-program operating environment before receiving the mini-program uploaded by the user to the first tenant; the device also includes a first sending unit, used to send the specified mini-program operating environment to the download terminal indicated by the user.
[0090] In one possible implementation, the receiving unit is also used to receive a second download request sent by the target tenant to indicate the downloading of the mini-program after the mini-program is copied to the storage space of each target tenant; the device also includes a second sending unit, which is used to send the mini-program stored in the storage space corresponding to the target tenant to the download terminal indicated by the target tenant.
[0091] In a possible implementation, the second sending unit is further used to sign the mini-program stored in the storage space of the target tenant according to the signing certificate pre-configured for the target tenant; and send the signed mini-program to the download terminal indicated by the target tenant.
[0092] In a possible implementation, the target tenant corresponds to the target application software, and the target application software uses the signature verification certificate to verify the signature of the mini-program before running, and the signature certificate corresponds to the signature verification certificate.
[0093] The mini-program delivery device provided in the embodiment of the present application provides a unified mini-program running environment through the mini-program delivery party 111. The running environment is configured in the application software of each mini-program delivery party. Each mini-program developer develops based on the running environment, so that the developed mini-program can run in multiple application software. The mini-program developer does not need to repeatedly develop for different application software. The mini-program developer can develop once and then deliver it across the running platforms.
[0094] An embodiment of the present application also provides a computer storage medium, including computer instructions. When the computer instructions are executed on a terminal, the terminal executes the mini-program delivery method of the embodiment of the present application as described above.
[0095] The embodiment of the present application also provides a computer program product. When the computer program product runs on a terminal, the terminal executes the mini-program delivery method of the embodiment of the present application as described above.
[0096] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0097] Each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0098] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk.
[0099] The above is only a specific implementation of the embodiment of the present application, but the protection scope of the embodiment of the present application is not limited thereto, and any changes or replacements within the technical scope disclosed in the embodiment of the present application should be included in the protection scope of the embodiment of the present application. Therefore, the protection scope of the embodiment of the present application should be based on the protection scope of the claims.
Claims
1. A method for delivering a mini program. in, The method comprises: Receiving a mini program uploaded to a first tenant among multiple tenants, wherein each of the tenants is configured with a corresponding storage space, and the storage spaces of any two different tenants are isolated from each other; Storing the mini program in the storage space of the first tenant; Determine, among the multiple tenants, the tenants to which the mini-program is to be delivered, to obtain target tenants, wherein each of the target tenants corresponds to an application software configured with a specified mini-program running environment; Determining that the mini-program meets an operating condition, wherein the operating condition at least includes being able to run in a specified mini-program operating environment; The applet is copied to the storage space of each of the target tenants.
2. The method according to claim 1, in, The plurality of tenants include a second tenant, The determining that the mini program meets the running conditions includes: copying the mini program from the storage space of the first tenant to the storage space of the second tenant; sending a review request to the second tenant, wherein the review request is used to request to obtain a review result for the mini program; and receiving a review result from the second tenant that determines that the mini program meets the running conditions; The copying of the mini program to the storage space of each of the target tenants includes: copying the mini program from the storage space of the second tenant to the storage space of each of the target tenants.
3. The method according to claim 2, in, The first tenant corresponds to an application software configured with the specified mini-program running environment.
4. The method according to claim 1, in, The determining that the mini program meets the running conditions includes: sending a review request to the first tenant, wherein the review request is used to request to obtain a review result for the mini program; receiving a review result from the first tenant that determines that the mini program meets the running conditions; The copying of the mini program to the storage space of each of the target tenants includes: copying the mini program from the storage space of the first tenant to the storage space of each of the target tenants.
5. The method according to claim 1, in, The receiving of the mini program uploaded to the first tenant among the multiple tenants includes: Determining that the user is configured with upload permission to upload the mini-program to the first tenant; Receive the mini program uploaded by the user to the first tenant.
6. The method according to claim 5, in, The step of determining the tenant to which the mini program is to be delivered among the multiple tenants to obtain a target tenant includes: Determine, among the multiple tenants, a tenant that opens the upload permission to the user to obtain a candidate tenant; Among the candidate tenants, the tenant to which the mini program is to be delivered is determined to obtain the target tenant.
7. The method according to claim 6, in, Determining the tenant to which the mini program is to be delivered from among the candidate tenants includes: displaying the list of candidate tenants; receiving a selection operation by the user from the list of candidate tenants; The tenant corresponding to the selection operation is determined to be the target tenant.
8. The method according to any one of claims 5 to 7, in, Before receiving the mini program uploaded by the user to the first tenant, the method further includes: Receive a first download request from the user requesting to download the specified mini-program running environment; The specified applet operating environment is sent to the download terminal indicated by the user.
9. The method according to claim 1, in, After copying the applet to the storage space of each target tenant, the method further includes: Receiving a first download request sent by the target tenant for instructing to download the mini program; The mini program stored in the storage space corresponding to the target tenant is sent to the download terminal indicated by the target tenant.
10. The method according to claim 9, in, The sending the mini program stored in the storage space corresponding to the target tenant to the download terminal indicated by the target tenant includes: Sign the mini-program stored in the storage space of the target tenant according to the signing certificate pre-configured for the target tenant; The signed mini program is sent to the download terminal indicated by the target tenant.
11. The method according to claim 10, in, The target tenant corresponds to a target application software, and the target application software uses a signature verification certificate to verify the signature of the mini program before running, and the signature addition certificate corresponds to the signature verification certificate.
12. A computer storage medium, in, The method comprises computer instructions, and when the computer instructions are executed on a terminal, the terminal is caused to execute the method according to any one of claims 1 to 11.
13. A computer program product comprising instructions, in, When the computer program product is executed on a terminal, the terminal is enabled to execute the method according to any one of claims 1 to 11.
Citation Information
Patent Citations
System and method for multitenant execution of OS programs invoked from a multitenant middleware application
CN107533485A
Multi-tenant-based web application project customization method and device
CN107908434A