CN113238765B - Distribution methods, devices, equipment and storage media for mini programs - Google Patents
Distribution methods, devices, equipment and storage media for mini programs Download PDFInfo
- Publication number
- CN113238765B CN113238765B CN202110553882.4A CN202110553882A CN113238765B CN 113238765 B CN113238765 B CN 113238765B CN 202110553882 A CN202110553882 A CN 202110553882A CN 113238765 B CN113238765 B CN 113238765B
- Authority
- CN
- China
- Prior art keywords
- applet
- target
- score
- distributable
- function
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
本公开提供了小程序的分发方法、装置、设备和存储介质,涉及计算机技术领域,尤其涉及小程序技术领域。具体实现方案为:确定目标小程序需要使用的至少两个目标功能;根据所述至少两个目标功能在所述目标小程序中的调用频次和宿主程序对所述至少两个目标功能的兼容信息,确定目标小程序的可分发得分;根据所述目标小程序的可分发得分,确定所述目标小程序在所述宿主程序中的分发类型。本公开实施例能够提高小程序的分发率。
The present disclosure provides a method, device, equipment and storage medium for distributing applet, and relates to the field of computer technology, in particular to the field of applet technology. The specific implementation plan is: determining at least two target functions that the target applet needs to use; based on the frequency of calls of the at least two target functions in the target applet and the compatibility information of the host program for the at least two target functions. , determine the distributable score of the target applet; determine the distribution type of the target applet in the host program according to the distributable score of the target applet. The embodiments of the present disclosure can improve the distribution rate of small programs.
Description
技术领域Technical Field
本公开涉及计算机技术领域,尤其涉及小程序技术领域,具体涉及小程序的分发方法、装置、设备和存储介质。The present disclosure relates to the field of computer technology, in particular to the field of mini-program technology, and specifically to a method, apparatus, device and storage medium for distributing mini-programs.
背景技术Background technique
智能小程序是指不需要下载安装即可使用的纯离线HTML5(Hyper Text MarkupLanguage 5,H5)应用。随着小程序生态的不断发展,越来越多的业务应用已转为小程序形态承载。Smart applets refer to pure offline HTML5 (Hyper Text Markup Language 5, H5) applications that can be used without downloading and installation. With the continuous development of the mini program ecosystem, more and more business applications have been transformed into mini programs.
小程序的运行依赖于宿主程序提供的可运行环境。为了保障宿主程序的稳定性和用户对小程序的使用体验,在小程序分发之前需要确定小程序是否可在宿主程序内正常运行。The operation of the applet depends on the runnable environment provided by the host program. In order to ensure the stability of the host program and the user experience of using the mini program, it is necessary to determine whether the mini program can run normally within the host program before distributing the mini program.
发明内容Contents of the invention
本公开提供了一种用于小程序的分发方法、装置、设备和存储介质。The present disclosure provides a distribution method, device, equipment and storage medium for applet.
根据本公开的一方面,提供了一种小程序的分发方法,包括:According to one aspect of the present disclosure, a method for distributing an applet is provided, including:
确定目标小程序需要使用的至少两个目标功能;Identify at least two target functions that the target applet needs to use;
根据所述至少两个目标功能在所述目标小程序中的调用频次和宿主程序对所述至少两个目标功能的兼容信息,确定目标小程序的可分发得分;Determine the distributable score of the target applet based on the calling frequency of the at least two target functions in the target applet and the compatibility information of the host program for the at least two target functions;
根据所述目标小程序的可分发得分,确定所述目标小程序在所述宿主程序中的分发类型。The distribution type of the target applet in the host program is determined according to the distributable score of the target applet.
根据本公开的又一方面,提供了一种小程序的分发装置,包括:According to another aspect of the present disclosure, a device for distributing applet is provided, including:
目标功能模块,用于确定目标小程序需要使用的至少两个目标功能;The target function module is used to determine at least two target functions that the target applet needs to use;
可分发得分模块,用于根据所述至少两个目标功能在所述目标小程序中的调用频次和宿主程序对所述至少两个目标功能的兼容信息,确定目标小程序的可分发得分;A distributable score module, configured to determine the distributable score of the target applet based on the frequency of calls of the at least two target functions in the target applet and the compatibility information of the host program for the at least two target functions;
分发类型模块,用于根据所述目标小程序的可分发得分,确定所述目标小程序在所述宿主程序中的分发类型。A distribution type module, configured to determine the distribution type of the target applet in the host program according to the distributable score of the target applet.
根据本公开的又一方面,提供了一种电子设备,包括:According to yet another aspect of the present disclosure, an electronic device is provided, including:
至少一个处理器;以及at least one processor; and
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行本公开任意实施例所提供的小程序的分发方法。The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the applet provided by any embodiment of the present disclosure. Distribution method.
根据本公开的又一方面,提供了一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使所述计算机执行本公开任意实施例所提供的小程序的分发方法。According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method for distributing applet provided by any embodiment of the present disclosure.
根据本公开的又一方面,提供了一种计算机程序产品,包括计算机程序,所述计算机程序在被处理器执行时实现本公开任意实施例所提供的小程序的分发方法。According to yet another aspect of the present disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the applet distribution method provided by any embodiment of the present disclosure.
根据本公开的技术,能够提高小程序的分发率。According to the technology of the present disclosure, the distribution rate of mini programs can be improved.
应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。It should be understood that what is described in this section is not intended to identify key or important features of the embodiments of the disclosure, nor is it intended to limit the scope of the disclosure. Other features of the present disclosure will become readily understood from the following description.
附图说明Description of drawings
附图用于更好地理解本方案,不构成对本公开的限定。其中:The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
图1是根据本公开实施例提供的一种小程序的分发方法的示意图;Figure 1 is a schematic diagram of a small program distribution method provided according to an embodiment of the present disclosure;
图2是根据本公开实施例提供的另一种小程序的分发方法的示意图;Figure 2 is a schematic diagram of another applet distribution method provided according to an embodiment of the present disclosure;
图3是根据本公开实施例提供的又一种小程序的分发方法的示意图;Figure 3 is a schematic diagram of yet another applet distribution method provided according to an embodiment of the present disclosure;
图4是根据本公开实施例提供的又一种小程序的分发方法的示意图;Figure 4 is a schematic diagram of yet another applet distribution method provided according to an embodiment of the present disclosure;
图5根据本公开实施例提供的一种小程序的分发装置的示意图;Figure 5 is a schematic diagram of an applet distribution device provided according to an embodiment of the present disclosure;
图6是用来实现本公开实施例的小程序的分发方法的电子设备的框图。FIG. 6 is a block diagram of an electronic device used to implement the applet distribution method according to an embodiment of the present disclosure.
具体实施方式Detailed ways
以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the present disclosure are included to facilitate understanding and should be considered to be exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the disclosure. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.
以下结合附图,对本公开实施例提供的该方案进行详细说明。The solution provided by the embodiment of the present disclosure is described in detail below in conjunction with the accompanying drawings.
图1是根据本公开实施例提供的一种小程序的分发方法的示意图,本公开实施例可适用于确定小程序是否能够在宿主程序中分发的情况。该方法可由一种小程序的分发装置来执行,该装置可采用硬件和/或软件的方式来实现,可配置于电子设备中。参考图1,该方法具体包括如下:FIG1 is a schematic diagram of a method for distributing a small program according to an embodiment of the present disclosure, which can be applied to the case of determining whether a small program can be distributed in a host program. The method can be executed by a small program distribution device, which can be implemented in hardware and/or software and can be configured in an electronic device. Referring to FIG1 , the method specifically includes the following:
S110、确定目标小程序需要使用的至少两个目标功能;S110. Determine at least two target functions that the target applet needs to use;
S120、根据所述至少两个目标功能在所述目标小程序中的调用频次和宿主程序对所述至少两个目标功能的兼容信息,确定目标小程序的可分发得分;S120. Determine the distributable score of the target applet based on the calling frequency of the at least two target functions in the target applet and the compatibility information of the host program for the at least two target functions;
S130、根据所述目标小程序的可分发得分,确定所述目标小程序在所述宿主程序中的分发类型。S130. Determine the distribution type of the target applet in the host program according to the distributable score of the target applet.
在本公开实施例中,目标功能是指目标小程序中可供用户使用的功能模块。目标功能根据目标小程序的业务需求确定,本申请实施例中对目标功能不做具体限定,例如目标小程序可以包括登录功能、二维码扫描功能、人脸识别功能、多媒体播放功能等。In the embodiment of the present disclosure, the target function refers to the functional module available to the user in the target applet. The target function is determined according to the business requirements of the target applet. In the embodiment of this application, the target function is not specifically limited. For example, the target applet may include a login function, a QR code scanning function, a face recognition function, a multimedia playback function, etc.
目标功能在目标小程序中的调用频次是指在目标小程序使用过程中,用户对目标功能的使用频次,可以通过对目标小程序的用户使用记录进行统计得到。宿主程序对目标功能的兼容信息可以为可兼容或不可兼容,例如在宿主环境可支持的功能版本低于目标功能的版本的情况下,确定宿主程序不兼容(或不支持)目标功能。The frequency of calling the target function in the target applet refers to the frequency of use of the target function by users during the use of the target applet, which can be obtained by counting the user usage records of the target applet. The host program's compatibility information for the target function may be compatible or incompatible. For example, if the function version supported by the host environment is lower than the version of the target function, it is determined that the host program is not compatible (or does not support) the target function.
在本公开实施例中,目标小程序的可分发得分用于表征目标小程序在宿主程序中的可分发程度,也就是说,可分发得分越高,目标小程序的可分发概率越大。目标小程序的可分发得分与宿主程序可兼容的目标功能数量之间可以呈正相关,即可兼容的目标功能数量越多,目标小程序的可分发得分越高。另外,目标小程序的可分发得分还可以与宿主程序不兼容的目标功能的调用频次成负相关,即针对不兼容的任一目标功能,若该目标功能的调用频次越高则目标小程序的可分发得分越低。其中,分发类型为可分发或不可分发。In the embodiment of the present disclosure, the distributability score of the target applet is used to characterize the distributability degree of the target applet in the host program. That is to say, the higher the distributability score, the greater the distributability probability of the target applet. There can be a positive correlation between the distributability score of the target applet and the number of compatible target functions of the host program, that is, the greater the number of compatible target functions, the higher the distributability score of the target applet. In addition, the distributability score of the target applet can also be negatively correlated with the calling frequency of the incompatible target function of the host program. That is, for any incompatible target function, if the calling frequency of the target function is higher, the target applet will have a higher distributability score. The lower the distributable score. Among them, the distribution type is distributable or non-distributable.
通过根据目标小程序中各目标功能在目标小程序的调用频次和宿主程序对各目标功能的兼容信息,确定目标小程序的可分发得分,即通过目标功能的调用频次、兼容信息定量地确定目标小程序的可分发得分,能够充分考虑不同目标功能对目标小程序的重要性不同,从而能够提高宿主程序可分发的小程序数量,即提高小程序的分发率和召回率。然而,传统小程序分发技术中采用一刀切的小程序分发标准,只要小程序中存在宿主程序不支持的功能,宿主程序就不可分发小程序,导致宿主程序可分发的小程序数量较少,使小程序的分发率与召回率较低。By determining the distributable score of the target mini-program according to the calling frequency of each target function in the target mini-program and the compatibility information of the host program for each target function, that is, by quantitatively determining the distributable score of the target mini-program through the calling frequency and compatibility information of the target function, it is possible to fully consider the different importance of different target functions to the target mini-program, thereby increasing the number of mini-programs that can be distributed by the host program, that is, increasing the distribution rate and recall rate of the mini-program. However, the traditional mini-program distribution technology adopts a one-size-fits-all mini-program distribution standard. As long as there are functions in the mini-program that are not supported by the host program, the host program cannot distribute the mini-program, resulting in a small number of mini-programs that can be distributed by the host program, and a low distribution rate and recall rate of the mini-program.
本公开实施例的技术方案,通过可分发得分定量表征目标小程序的可分发程度,能够充分考虑不同目标功能对目标小程序的重要性不同,能够提高小程序的分发率和召回率。The technical solution of the disclosed embodiment quantitatively characterizes the distributability of a target mini-program through a distributable score, which can fully consider the different importance of different target functions to the target mini-program, and can improve the distribution rate and recall rate of the mini-program.
图2是根据本公开实施例提供的另一种小程序的分发方法的示意图。本实施例是在上述实施例的基础上提出的一种可选方案。参见图2,本实施例提供的小程序的分发方法包括:FIG. 2 is a schematic diagram of another applet distribution method provided according to an embodiment of the present disclosure. This embodiment is an optional solution proposed based on the above embodiment. Referring to Figure 2, the applet distribution method provided by this embodiment includes:
S210、确定目标小程序需要使用的至少两个目标功能;S210. Determine at least two target functions that the target applet needs to use;
S220、根据至少两个目标功能在目标小程序中的调用频次和宿主程序对至少两个目标功能的兼容信息,确定目标小程序的第一得分;S220. Determine the first score of the target applet based on the calling frequency of at least two target functions in the target applet and the compatibility information of the host program for at least two target functions;
S230、根据至少两个目标功能在目标小程序中的调用频次,确定目标小程序的第二得分;S230. Determine the second score of the target applet based on the calling frequency of at least two target functions in the target applet;
S240、将所述第一得分与所述第二得分的比值,作为所述目标小程序的可分发得分;S240. Use the ratio of the first score to the second score as the distributable score of the target applet;
S250、根据所述目标小程序的可分发得分,确定所述目标小程序在所述宿主程序中的分发类型。S250. Determine the distribution type of the target applet in the host program according to the distributable score of the target applet.
在本公开实施例中,宿主程序可兼容的目标功能的调用频次对第一得分的影响度,大于宿主程序不兼容的目标功能的调用频次对第一得分的影响度;第二得分仅由各目标功能的调用频次决定,与宿主程序对目标功能的兼容信息无关。并且,目标小程序的可分发得分,与第一得分之间呈正相关,与第二得分之间呈负相关。通过可兼容的目标功能的调用频次与不可兼容的目标功能的调用频次对第一得分的影响度不同,使不同目标功能的重要度不同,从而在保障用户对目标小程序使用体验的前提下,能够提高目标小程序的分发率。In this embodiment of the present disclosure, the impact of the calling frequency of the target function that is compatible with the host program on the first score is greater than the impact of the calling frequency of the target function that is incompatible with the host program on the first score; the second score is only determined by each The frequency of calling the target function is determined regardless of the host program's compatibility information with the target function. Moreover, the distributability score of the target applet is positively correlated with the first score, and negatively correlated with the second score. The calling frequency of compatible target functions and the calling frequency of incompatible target functions have different impacts on the first score, so that the importance of different target functions is different, so as to ensure the user's experience of using the target applet. It can improve the distribution rate of target applet.
在一种可选实施方式中,通过如下公式,确定目标小程序的第一得分:In an optional implementation, the first score of the target applet is determined through the following formula:
其中,S为目标小程序的第一得分,n为目标小程序中目标功能的数量,c(i)为第i个目标功能的调用频次,v(i)为宿主程序对第i个目标功能的兼容得分;其中,在宿主程序可兼容第i个目标功能的情况下,v(i)取值为第一数值;在宿主程序不兼容第i个目标功能的情况下,v(i)取值为第二数值,且第二数值小于第一数值。例如,第一数值可以为1,第二数值可以为0。Among them, S is the first score of the target applet, n is the number of target functions in the target applet, c(i) is the calling frequency of the i-th target function, v(i) is the call frequency of the i-th target function by the host program The compatibility score of The value is a second value, and the second value is less than the first value. For example, the first value may be 1 and the second value may be 0.
并且,可以对目标小程序中各目标功能的调用频次求和,得到目标小程序的第二得分。也就是说,可以通过如下公式得到目标小程序的可分发得分:Furthermore, the calling frequency of each target function in the target applet can be summed to obtain the second score of the target applet. In other words, the distributable score of the target applet can be obtained through the following formula:
其中,M为目标小程序的可分发得分。 Among them, M is the distributable score of the target applet.
通过对可兼容的目标功能引入第一数值的兼容得分,对不可兼容的目标功能引入第二数值的兼容得分,且第二数值小于第一数值,使可兼容的目标功能对可分发得分的重要度大于不可兼容的目标功能,从而进一步提高可分发得分的准确度。By introducing a first numerical compatibility score for compatible target functions and a second numerical compatibility score for incompatible target functions, and the second numerical value is smaller than the first numerical value, the compatible target functions are important to the distributable score. greater than incompatible target features, further improving the accuracy of distributable scores.
在一种可选实施方式中,所述根据所述目标小程序的可分发得分,确定所述目标小程序在所述宿主程序中的分发类型,包括:比较目标小程序的可分发得分和小程序得分阈值;在目标小程序的可分发得分小于小程序得分阈值的情况下,确定所述目标小程序在所述宿主程序中的分发类型为不可分发。另外,在目标小程序的可分发得分等于或大于小程序得分阈值的情况下,确定所述目标小程序在所述宿主程序中的分发类型为可分发。In an optional implementation, the determining the distribution type of the target applet in the host program according to the distributable score of the target applet includes: comparing the distributable score of the target applet with the applet score threshold; when the distributable score of the target applet is less than the applet score threshold, determining the distribution type of the target applet in the host program as non-distributable. In addition, when the distributable score of the target applet is equal to or greater than the applet score threshold, determining the distribution type of the target applet in the host program as distributable.
其中,小程序得分阈值预先确定,可以为人工经验值,也可以根据其他小程序的用户使用体验和可分发得分确定。Among them, the mini program score threshold is predetermined, which can be a manual experience value, or can be determined based on the user experience and distributable scores of other mini programs.
在一种可选实施方式中,比较目标小程序的可分发得分和小程序得分阈值之前,还包括:将人工体验得分大于体验得分阈值的参考小程序,作为辅助小程序;确定所述辅助小程序的可分发得分,并根据所述辅助小程序的可分发得分确定所述小程序得分阈值。In an optional implementation, before comparing the distributable score of the target mini-program with the mini-program score threshold, it also includes: taking a reference mini-program whose artificial experience score is greater than the experience score threshold as an auxiliary mini-program; determining the distributable score of the auxiliary mini-program, and determining the mini-program score threshold based on the distributable score of the auxiliary mini-program.
参考小程序可以为用户使用量相对较大的小程序,例如可以将用户使用量前90%的常用小程序作为参考小程序。并且,将各参考小程序作为人工体验的待测试小程序。The reference mini-programs may be mini-programs with relatively large user usage, for example, the top 90% of commonly used mini-programs may be used as reference mini-programs. In addition, each reference mini-program is used as a mini-program to be tested for manual experience.
针对每一参考小程序,获取不同测试用户对该参考小程序的人工体验得分,且将不同测试用户对该参考小程序的人工体验得分均值作为该参考小程序的人工体验得分。例如,在对参考小程序的人工体验过程中,如果参考小程序发生崩溃无法使用,则该参考小程序的人工体验得分可以为1;如果参考小程序的部分功能不支持且对用户使用体验影响较大,则该参考小程序的人工体验得分可以为2;如果参考小程序的部分功能不支持且对用户使用体验影响较小,则该参考小程序的人工体验得分可以为3;如果参考小程序的各功能均正常,则该参考小程序的人工体验得分可以为4。本申请实施例对参考小程序人工体验得分的确定方式不做具体限定。For each reference applet, obtain the manual experience scores of different test users for the reference applet, and use the average of the manual experience scores of different test users for the reference applet as the manual experience score of the reference applet. For example, during the manual experience of the reference applet, if the reference applet crashes and cannot be used, the manual experience score of the reference applet can be 1; if some functions of the reference applet are not supported and have an impact on the user experience is larger, the manual experience score of the reference applet can be 2; if some functions of the reference applet are not supported and have little impact on the user experience, the manual experience score of the reference applet can be 3; if the reference applet If all functions of the program are normal, the manual experience score of the reference applet can be 4. The embodiment of this application does not specifically limit the method of determining the manual experience score of the reference applet.
其中,体验得分阈值是指对人工体验影响的门限值,可以人工设定,例如可以为3。将人工体验得分大于体验得分阈值的参考小程序,即选择不影响用户使用体验的至少两个参考小程序作为辅助小程序。分别确定各辅助小程序的可分发得分,且可以将各辅助小程序的最低可分发得分作为小程序得分阈值。需要说明的是,辅助小程序的可分发得分确定方式与目标小程序的可分发得分的确定方式相同,在此不再赘述。Among them, the experience score threshold refers to the threshold value that affects the artificial experience, and can be set manually, for example, it can be 3. The reference mini-programs whose artificial experience score is greater than the experience score threshold are selected as auxiliary mini-programs, that is, at least two reference mini-programs that do not affect the user experience are selected. The distributable score of each auxiliary applet is determined separately, and the lowest distributable score of each auxiliary applet can be used as the applet score threshold. It should be noted that the method of determining the distributable score of the auxiliary applet is the same as the method of determining the distributable score of the target applet, which will not be described again here.
通过分别确定各参考小程序的人工体验得分,将人工体验得分大于体验得分阈值的参考小程序作为辅助小程序,且将辅助小程序的最低可分发得分作为小程序得分阈值,能够保障用户对可分发目标小程序的使用体验。By separately determining the artificial experience score of each reference applet, using the reference applet whose artificial experience score is greater than the experience score threshold as an auxiliary applet, and using the lowest distributable score of the auxiliary applet as the applet score threshold, it is possible to ensure that users can Distribute the user experience of the target applet.
本公开实施例的技术方案,通过可兼容的目标功能的调用频次与不可兼容的目标功能的调用频次对第一得分的影响度不同;并且,将人工体验得分大于体验得分阈值的参考小程序作为辅助小程序,以及将辅助小程序的最低可分发得分作为小程序得分阈值,能够在保障用户对目标小程序使用体验的前提下,能够提高目标小程序的分发率。According to the technical solution of the embodiment of the present disclosure, the frequency of calling the compatible target function and the frequency of calling the incompatible target function have different influences on the first score; and, the reference applet with the artificial experience score greater than the experience score threshold is used as a reference applet Auxiliary applet, and using the minimum distributable score of the auxiliary applet as the applet score threshold can improve the distribution rate of the target applet while ensuring the user experience of the target applet.
图3是根据本公开实施例提供的又一种小程序的分发方法的示意图。本实施例是在上述实施例的基础上提出的一种可选方案。参见图3,本实施例提供的小程序的分发方法包括:Figure 3 is a schematic diagram of yet another applet distribution method provided according to an embodiment of the present disclosure. This embodiment is an optional solution proposed based on the above embodiment. Referring to Figure 3, the applet distribution method provided by this embodiment includes:
S310、获取目标小程序可使用的候选功能,且获取候选功能的关键词;S310. Obtain the candidate functions that can be used by the target applet and obtain the keywords of the candidate functions;
S320、获取目标小程序代码;S320. Obtain the target applet code;
S330、若所述目标小程序代码包括任一候选功能的关键词,则目标小程序需要使用该候选功能,以得到目标小程序需要使用的至少两个目标功能;S330. If the target applet code includes the keyword of any candidate function, the target applet needs to use the candidate function to obtain at least two target functions that the target applet needs to use;
S340、根据所述至少两个目标功能在所述目标小程序中的调用频次和宿主程序对所述至少两个目标功能的兼容信息,确定目标小程序的可分发得分;S340. Determine the distributable score of the target applet based on the frequency of calls of the at least two target functions in the target applet and the compatibility information of the host program for the at least two target functions;
S350、根据所述目标小程序的可分发得分,确定所述目标小程序在所述宿主程序中的分发类型。S350. Determine the distribution type of the target applet in the host program according to the distributable score of the target applet.
具体的,可以获取目标小程序使用的功能字典,其中,功能字典包括可使用的候选功能集合。针对候选功能集合中的每一候选功能,可以获取该候选功能的关键词,如login可以为登录功能的关键词。还可以目标小程序的源码包,解析源码包得到目标小程序代码。若目标小程序代码中包括任一候选功能的关键词,则确定该候选功能为目标小程序的目标功能。通过结合目标小程序的候选功能和目标小程序代码,能够提高目标小程序实际使用的目标功能的准确度,从而进一步提高目标小程序的分发类型的准确度。Specifically, the function dictionary used by the target applet can be obtained, where the function dictionary includes a set of usable candidate functions. For each candidate function in the candidate function set, the keyword of the candidate function can be obtained. For example, login can be the keyword of the login function. You can also target the source code package of the applet and parse the source code package to obtain the target applet code. If the code of the target applet includes the keyword of any candidate function, the candidate function is determined to be the target function of the target applet. By combining the candidate functions of the target applet and the target applet code, the accuracy of the target functions actually used by the target applet can be improved, thereby further improving the accuracy of the distribution type of the target applet.
在一种可选实施方式中,所述确定目标小程序的可分发得分之前,还包括:获取目标功能的测试用例;基于宿主程序执行所述目标功能的测试用例,并根据执行结果确定宿主程序是否兼容目标功能。In an optional implementation, before determining the distributable score of the target applet, the method further includes: obtaining a test case of the target function; executing the test case of the target function based on the host program, and determining the host program according to the execution result. Whether it is compatible with the target function.
具体的,可以获取目标功能的测试用例,并基于宿主程序(即宿主环境)执行目标功能的测试用例,确定宿主程序是否兼容目标功能。通过在宿主环境对目标功能进行测试得到宿主程序对目标功能的兼容信息,能够提高兼容信息的准确度,从而进一步提高目标小程序的分发类型的准确度。Specifically, the test cases of the target function can be obtained, and the test cases of the target function can be executed based on the host program (ie, the host environment) to determine whether the host program is compatible with the target function. By testing the target function in the host environment to obtain the host program's compatibility information for the target function, the accuracy of the compatibility information can be improved, thereby further improving the accuracy of the distribution type of the target applet.
本公开实施例的技术方案,通过将候选功能的关键词与目标小程序代码进行匹配,能够准确得到目标小程序需要使用的至少两个目标功能;通过在宿主环境对目标功能进行测试,能够提高宿主程序对所述至少两个目标功能的兼容信息的准确度,从而进一步提高目标小程序的分发类型的准确度。The technical solution of the disclosed embodiment can accurately obtain at least two target functions that the target mini-program needs to use by matching the keywords of candidate functions with the target mini-program code; by testing the target functions in the host environment, the accuracy of the host program's compatibility information for the at least two target functions can be improved, thereby further improving the accuracy of the distribution type of the target mini-program.
图4是根据本公开实施例提供的又一种小程序的分发方法的示意图。Figure 4 is a schematic diagram of yet another applet distribution method provided according to an embodiment of the present disclosure.
参见图4,本实施例中具体提供了一种小程序的分发方法,可以包括:Referring to Figure 4, this embodiment specifically provides a method for distributing small programs, which may include:
S410、确定目标小程序实际使用的至少两个目标功能。S410. Determine at least two target functions actually used by the target applet.
具体的,获取目标小程序的源码包和目标小程序使用的功能字典,其中,功能字典包括候选功能全集;解析目标小程序的源码包得到目标小程序代码;根据目标小程序代码,从候选功能全集中选择目标小程序实际使用的至少两个目标功能。具体的,针对每一候选功能,可以获取该候选功能的关键词,若小程序代码中有该候选功能的关键词,则确定该候选功能为目标小程序的目标功能;否则,确定该候选功能不为目标功能。Specifically, the source code package of the target applet and the function dictionary used by the target applet are obtained, where the function dictionary includes the complete set of candidate functions; the source code package of the target applet is parsed to obtain the target applet code; according to the target applet code, the candidate functions are obtained Select at least two target functions that the target applet actually uses. Specifically, for each candidate function, the keyword of the candidate function can be obtained. If there is a keyword of the candidate function in the applet code, the candidate function is determined to be the target function of the target applet; otherwise, the candidate function is determined Not a target function.
S420、确定目标小程序的宿主程序对各目标功能的兼容信息。S420. Determine the compatibility information of the host program of the target applet for each target function.
具体的,可以获取目标功能的测试用例;基于宿主程序执行目标功能的测试用例,确定宿主环境是否支持目标功能。Specifically, the test cases for the target function can be obtained; based on the test cases of the host program executing the target function, it is determined whether the host environment supports the target function.
S430、根据所述至少两个目标功能在所述目标小程序中的调用频次和宿主程序对所述至少两个目标功能的兼容信息,确定目标小程序的可分发得分。S430. Determine the distributable score of the target applet based on the calling frequency of the at least two target functions in the target applet and the compatibility information of the host program for the at least two target functions.
具体的,可以通过如下公式确定目标小程序的可分发得分:Specifically, the distributable score of the target applet can be determined through the following formula:
其中,M为目标小程序的可分发得分,n为目标小程序中目标功能的数量,c(i)为第i个目标功能的调用频次,v(i)为宿主程序对第i个目标功能的兼容得分;其中,在宿主程序可兼容第i个目标功能的情况下,v(i)取值为第一数值;在宿主程序不兼容第i个目标功能的情况下,v(i)取值为第二数值,且第二数值小于第一数值。例如,第一数值可以为1,第二数值可以为0。Wherein, M is the distributable score of the target applet, n is the number of target functions in the target applet, c(i) is the call frequency of the i-th target function, and v(i) is the compatibility score of the host program with the i-th target function; wherein, when the host program is compatible with the i-th target function, v(i) takes the first value; when the host program is not compatible with the i-th target function, v(i) takes the second value, and the second value is less than the first value. For example, the first value may be 1, and the second value may be 0.
S440、比较目标小程序的可分发得分和小程序得分阈值,并根据比较结果确定所述目标小程序在所述宿主程序中的分发类型。S440. Compare the distributable score of the target applet and the applet score threshold, and determine the distribution type of the target applet in the host program according to the comparison result.
具体的,若小程序得分大于宿主环境的门限值,则确定目标小程序的识别结果为可分发;若小程序得分小于宿主环境的门限值,则确定目标小程序的识别结果为不可分发。Specifically, if the mini program score is greater than the threshold value of the host environment, the recognition result of the target mini program is determined to be distributable; if the mini program score is less than the threshold value of the host environment, the recognition result of the target mini program is determined to be non-distributable.
其中,小程序得分阈值可以通过如下方式确定:Among them, the mini program score threshold can be determined in the following ways:
A、可以将用户使用量相对较大的小程序作为参考小程序,且确定参考小程序的人工体验得分。A. Mini programs with relatively large user usage can be used as reference mini programs, and the manual experience score of the reference mini programs can be determined.
具体的,可以获取不同测试用户对参考小程序的人工体验得分,且将不同测试用户对该参考小程序的人工体验得分均值作为该参考小程序的人工体验得分。Specifically, the artificial experience scores of different test users on the reference applet can be obtained, and the average of the artificial experience scores of different test users on the reference applet can be used as the artificial experience score of the reference applet.
B、将人工体验得分大于体验得分阈值的参考小程序,作为辅助小程序。B. Use the reference applet whose manual experience score is greater than the experience score threshold as an auxiliary applet.
C、分别确定各辅助小程序的可分发得分,且将最低的可分发得分作为小程序得分阈值。C. Determine the distributable score of each auxiliary applet respectively, and use the lowest distributable score as the applet score threshold.
本公开实施例的技术方案,通过结合目标小程序实际运行时目标功能的调用次数,与宿主程序对目标功能的支持情况,确定目标小程序的可分发得分;结合小程序测试集合的人工验证得分得到小程序得分阈值;根据小程序得分阈值确定目标小程序是否可以在宿主程序中分发,在保障用户对目标小程序使用体验的前提下,能够提高目标小程序的分发率和召回率。The technical solution of the disclosed embodiment determines the distributable score of the target applet by combining the number of calls of the target function when the target applet is actually running and the support of the target function by the host program; combined with the manual verification score of the applet test set Obtain the mini program score threshold; determine whether the target mini program can be distributed in the host program based on the mini program score threshold, which can improve the distribution rate and recall rate of the target mini program on the premise of ensuring the user experience of the target mini program.
图5根据本公开实施例提供的一种小程序的分发装置的示意图,本实施例可适用于确定小程序是否能够在宿主程序中分发的情况。该装置配置于电子设备中。参考图5,该小程序的分发装置500具体包括如下:FIG. 5 is a schematic diagram of a device for distributing an applet according to an embodiment of the present disclosure. This embodiment can be applied to the situation of determining whether the applet can be distributed in a host program. The device is configured in electronic equipment. Referring to Figure 5, the applet distribution device 500 specifically includes the following:
目标功能模块501,用于确定目标小程序需要使用的至少两个目标功能;The target function module 501 is used to determine at least two target functions that the target applet needs to use;
可分发得分模块502,用于根据所述至少两个目标功能在所述目标小程序中的调用频次和宿主程序对所述至少两个目标功能的兼容信息,确定目标小程序的可分发得分;A distributable score module 502, configured to determine a distributable score of a target applet according to the calling frequencies of the at least two target functions in the target applet and the compatibility information of the host program with the at least two target functions;
分发类型模块503,用于根据所述目标小程序的可分发得分,确定所述目标小程序在所述宿主程序中的分发类型。The distribution type module 503 is configured to determine the distribution type of the target applet in the host program according to the distributable score of the target applet.
在一种可选实施方式中,所述可分发得分模块502包括:In an optional implementation, the distributable scoring module 502 includes:
第一得分单元,用于根据至少两个目标功能在目标小程序中的调用频次和宿主程序对至少两个目标功能的兼容信息,确定目标小程序的第一得分;The first scoring unit is used to determine the first score of the target applet based on the frequency of calls of at least two target functions in the target applet and the compatibility information of the host program for the at least two target functions;
第二得分单元,用于根据至少两个目标功能在目标小程序中的调用频次,确定目标小程序的第二得分;The second scoring unit is used to determine the second score of the target applet based on the calling frequency of at least two target functions in the target applet;
可分发得分单元,用于将所述第一得分与所述第二得分的比值,作为所述目标小程序的可分发得分。The distributable score unit is used to use the ratio of the first score to the second score as the distributable score of the target applet.
在一种可选实施方式中,所述第一得分单元具体用于:In an optional implementation, the first scoring unit is specifically used for:
通过如下公式,确定目标小程序的第一得分:Determine the first score of the target applet through the following formula:
其中,S为目标小程序的第一得分,n为目标小程序中目标功能的数量,c(i)为第i个目标功能的调用频次,v(i)为宿主程序对第i个目标功能的兼容得分;其中,在宿主程序可兼容第i个目标功能的情况下,v(i)取值为第一数值;在宿主程序不兼容第i个目标功能的情况下,v(i)取值为第二数值,且第二数值小于第一数值。Among them, S is the first score of the target applet, n is the number of target functions in the target applet, c(i) is the calling frequency of the i-th target function, v(i) is the call frequency of the i-th target function by the host program The compatibility score of The value is the second value, and the second value is less than the first value.
在一种可选实施方式中,所述分发类型模块503包括:In an optional implementation, the distribution type module 503 includes:
比较单元,用于比较目标小程序的可分发得分和小程序得分阈值;A comparison unit used to compare the distributable score of the target applet and the applet score threshold;
分发类型单元,用于在目标小程序的可分发得分小于小程序得分阈值的情况下,确定所述目标小程序在所述宿主程序中的分发类型为不可分发。A distribution type unit, configured to determine that the distribution type of the target applet in the host program is undistributable when the distributable score of the target applet is less than the applet score threshold.
在一种可选实施方式中,该小程序的分发装置500还包括小程序得分阈值模块,所述小程序得分阈值模块包括:In an optional implementation, the applet distribution device 500 also includes an applet score threshold module, and the applet score threshold module includes:
参考小程序单元,用于将人工体验得分大于体验得分阈值的参考小程序,作为辅助小程序;The reference applet unit is used to use the reference applet whose artificial experience score is greater than the experience score threshold as an auxiliary applet;
小程序得分阈值单元,用于确定所述辅助小程序的可分发得分,并根据所述辅助小程序的可分发得分确定所述小程序得分阈值。The applet score threshold unit is used to determine the distributable score of the auxiliary applet, and determine the applet score threshold according to the distributable score of the auxiliary applet.
在一种可选实施方式中,所述目标功能模块501包括:In an optional implementation, the target function module 501 includes:
候选功能单元,用于获取目标小程序可使用的候选功能,且获取候选功能的关键词;The candidate function unit is used to obtain the candidate functions that can be used by the target applet and obtain the keywords of the candidate functions;
小程序代码单元,用于获取目标小程序代码;Mini-program code unit, used to obtain the target mini-program code;
目标功能单元,用于若所述目标小程序代码包括任一候选功能的关键词,则目标小程序需要使用该候选功能。The target function unit is used for if the target applet code includes the keyword of any candidate function, then the target applet needs to use the candidate function.
在一种可选实施方式中,该小程序的分发装置500还包括兼容信息确定模块,所述兼容信息确定模块包括:In an optional implementation, the applet distribution device 500 also includes a compatible information determination module, and the compatible information determination module includes:
测试用例单元,用于获取目标功能的测试用例;Test case unit, used to obtain test cases for target functions;
兼容信息确定单元,用于基于宿主程序执行所述目标功能的测试用例,并根据执行结果确定宿主程序是否兼容目标功能。The compatibility information determination unit is used to execute test cases of the target function based on the host program, and determine whether the host program is compatible with the target function based on the execution results.
本实施例的技术方案,通过结合目标小程序实际运行时目标功能的调用次数,与宿主程序对目标功能的支持情况,确定目标小程序的可分发得分;结合小程序测试集合的人工验证得分得到小程序得分阈值;比较小程序的可分发得分和小程序得分阈值以确定目标小程序是否可以在宿主程序中分发,在保障用户对目标小程序使用体验的前提下,能够提高目标小程序的分发率和召回率。The technical solution of this embodiment determines the distributable score of the target applet by combining the number of calls to the target function when the target applet is actually running and the support of the target function by the host program; combined with the manual verification score of the applet test set, we obtain Mini program score threshold; compare the distributable score of the mini program and the mini program score threshold to determine whether the target mini program can be distributed in the host program. This can improve the distribution of the target mini program while ensuring the user experience of the target mini program. rate and recall.
根据本公开的实施例,本公开还提供了一种电子设备、一种可读存储介质和一种计算机程序产品。According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.
图6示出了可以用来实施本公开实施例的示例电子设备Figure 6 illustrates an example electronic device that may be used to implement embodiments of the present disclosure.
600的示意性框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本公开的实现。Schematic block diagram of 600. Electronic devices are intended to refer to various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are examples only and are not intended to limit implementations of the disclosure described and/or claimed herein.
如图6所示,设备600包括计算单元601,其可以根据存储在只读存储器(ROM)602中的计算机程序或者从存储单元608加载到随机访问存储器(RAM)603中的计算机程序,来执行各种适当的动作和处理。在RAM 603中,还可存储设备600操作所需的各种程序和数据。计算单元601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in Figure 6, the device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to the bus 604.
设备600中的多个部件连接至I/O接口605,包括:输入单元606,例如键盘、鼠标等;输出单元607,例如各种类型的显示器、扬声器等;存储单元608,例如磁盘、光盘等;以及通信单元609,例如网卡、调制解调器、无线通信收发机等。通信单元609允许设备600通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Multiple components in device 600 are connected to I/O interface 605, including: input unit 606, such as keyboard, mouse, etc.; output unit 607, such as various types of displays, speakers, etc.; storage unit 608, such as magnetic disk, optical disk, etc. ; and communication unit 609, such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information/data with other devices through computer networks such as the Internet and/or various telecommunications networks.
计算单元601可以是各种具有处理和计算功能的通用和/或专用处理组件。计算单元601的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种执行机器学习模型算法的计算单元、数字信息处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元601执行上文所描述的各个方法和处理,例如小程序的分发方法。例如,在一些实施例中,小程序的分发方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元608。在一些实施例中,计算机程序的部分或者全部可以经由ROM602和/或通信单元609而被载入和/或安装到设备600上。当计算机程序加载到RAM 603并由计算单元601执行时,可以执行上文描述的小程序的分发方法的一个或多个步骤。备选地,在其他实施例中,计算单元601可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行小程序的分发方法。Computing unit 601 may be a variety of general and/or special purpose processing components having processing and computing functions. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units that execute machine learning model algorithms, digital information processing processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 601 performs various methods and processes described above, such as the distribution method of the applet. For example, in some embodiments, the applet distribution method may be implemented as a computer software program that is tangibly embodied in a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 600 via ROM 602 and/or communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the above-described distribution method of the applet may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the distribution method of the applet in any other suitable manner (eg, by means of firmware).
本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described above may be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on a chip implemented in a system (SOC), load programmable logic device (CPLD), computer hardware, firmware, software, and/or a combination thereof. These various embodiments may include implementation in one or more computer programs executable and/or interpreted on a programmable system including at least one programmable processor, the programmable processor The processor, which may be a special purpose or general purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device. An output device.
用于实施本公开的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions/operations specified in the flow chart and/or block diagram. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of this disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, laptop disks, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having a display device (eg, a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user ); and a keyboard and pointing device (eg, a mouse or a trackball) through which a user can provide input to the computer. Other kinds of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and may be provided in any form, including Acoustic input, voice input or tactile input) to receive input from the user.
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)、区块链网络和互联网。The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., A user's computer having a graphical user interface or web browser through which the user can interact with implementations of the systems and technologies described herein), or including such backend components, middleware components, or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communications network). Examples of communication networks include: local area network (LAN), wide area network (WAN), blockchain network, and the Internet.
计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上执行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决了传统物理主机与VPS服务中,存在的管理难度大,业务扩展性弱的缺陷。Computer systems may include clients and servers. Clients and servers are generally remote from each other and typically interact over a communications network. The relationship of client and server is created by computer programs executing on respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as cloud computing server or cloud host. It is a host product in the cloud computing service system to solve the problems of difficult management and weak business scalability in traditional physical hosts and VPS services. defect.
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发公开中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本公开公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that various forms of the process shown above may be used, with steps reordered, added or deleted. For example, each step described in the present disclosure can be executed in parallel, sequentially, or in a different order. As long as the desired results of the technical solution disclosed in the present disclosure can be achieved, there is no limitation here.
上述具体实施方式,并不构成对本公开保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本公开的精神和原则之内所作的修改、等同替换和改进等,均应包含在本公开保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the scope of the present disclosure. It will be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions are possible depending on design requirements and other factors. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this disclosure shall be included in the protection scope of this disclosure.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110553882.4A CN113238765B (en) | 2021-05-20 | 2021-05-20 | Distribution methods, devices, equipment and storage media for mini programs |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110553882.4A CN113238765B (en) | 2021-05-20 | 2021-05-20 | Distribution methods, devices, equipment and storage media for mini programs |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113238765A CN113238765A (en) | 2021-08-10 |
| CN113238765B true CN113238765B (en) | 2024-04-02 |
Family
ID=77138011
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110553882.4A Active CN113238765B (en) | 2021-05-20 | 2021-05-20 | Distribution methods, devices, equipment and storage media for mini programs |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113238765B (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112306887A (en) * | 2020-11-12 | 2021-02-02 | 广州方硅信息技术有限公司 | Program test distribution method and corresponding apparatus, equipment and medium |
| CN112433788A (en) * | 2020-11-23 | 2021-03-02 | 百度在线网络技术(北京)有限公司 | Applet running method and device, electronic equipment and storage medium |
| WO2021088909A1 (en) * | 2019-11-06 | 2021-05-14 | 第四范式(北京)技术有限公司 | Method and system for assisting operator development |
| CN112817869A (en) * | 2021-02-25 | 2021-05-18 | 网易(杭州)网络有限公司 | Test method, test device, test medium, and electronic apparatus |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7171485B2 (en) * | 2001-10-17 | 2007-01-30 | Velcero Broadband Applications, Llc | Broadband network system configured to transport audio or video at the transport layer, and associated method |
-
2021
- 2021-05-20 CN CN202110553882.4A patent/CN113238765B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2021088909A1 (en) * | 2019-11-06 | 2021-05-14 | 第四范式(北京)技术有限公司 | Method and system for assisting operator development |
| CN112306887A (en) * | 2020-11-12 | 2021-02-02 | 广州方硅信息技术有限公司 | Program test distribution method and corresponding apparatus, equipment and medium |
| CN112433788A (en) * | 2020-11-23 | 2021-03-02 | 百度在线网络技术(北京)有限公司 | Applet running method and device, electronic equipment and storage medium |
| CN112817869A (en) * | 2021-02-25 | 2021-05-18 | 网易(杭州)网络有限公司 | Test method, test device, test medium, and electronic apparatus |
Non-Patent Citations (1)
| Title |
|---|
| 宫承波 ; 王玉风 ; .立足小需求,做足轻应用:微信小程序无缝连接走向探析.新闻论坛.2017,(06),全文. * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113238765A (en) | 2021-08-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111782785B (en) | Automatic question and answer method, device, equipment and storage medium | |
| CN113157877B (en) | Multi-semantic recognition method, device, equipment and medium | |
| WO2025091924A1 (en) | Human-computer method and apparatus, electronic device, and storage medium | |
| CN112506800B (en) | Method, apparatus, device, medium and program product for testing code | |
| CN114244795B (en) | An information push method, device, equipment and medium | |
| CN115794473A (en) | Root cause alarm positioning method, device, equipment and medium | |
| CN113360602B (en) | Method, apparatus, device and storage medium for outputting information | |
| CN113434432B (en) | A performance testing method, device, equipment, and medium for a recommended platform | |
| CN113032258B (en) | Electronic map testing method, device, electronic equipment and storage medium | |
| CN113238765B (en) | Distribution methods, devices, equipment and storage media for mini programs | |
| CN115033701B (en) | Text vector generation model training method, text classification method and related device | |
| CN117743688A (en) | Service provision methods, devices, electronic equipment and media for large model scenes | |
| CN113327133B (en) | Data recommendation method, data recommendation device, electronic device and readable storage medium | |
| CN113495841B (en) | Compatibility detection method, device, equipment, storage medium and program product | |
| CN116383340A (en) | Information search method, device, electronic device and storage medium | |
| CN115688797A (en) | Text processing method, device, electronic device, and computer-readable storage medium | |
| CN115329897A (en) | Feature extraction model training method, device and electronic device | |
| CN114254028A (en) | Event attribute extraction method and device, electronic equipment and storage medium | |
| CN116541731B (en) | Method, device and equipment for processing network behavior data | |
| CN113674755B (en) | Speech processing methods, devices, electronic devices and media | |
| CN113643696B (en) | Voice processing method, device, equipment, storage medium and program | |
| CN114706792B (en) | Method, apparatus, device, medium, and product for recommending test cases | |
| CN116628004B (en) | Information query method, device, electronic equipment and storage medium | |
| CN119358507B (en) | Text marking method, text marking device, electronic equipment and storage medium | |
| US20250299052A1 (en) | Large model-based text generation method, electronic device and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |