CN118426793A - An application distribution system based on automatic identification - Google Patents
An application distribution system based on automatic identification Download PDFInfo
- Publication number
- CN118426793A CN118426793A CN202410889251.3A CN202410889251A CN118426793A CN 118426793 A CN118426793 A CN 118426793A CN 202410889251 A CN202410889251 A CN 202410889251A CN 118426793 A CN118426793 A CN 118426793A
- Authority
- CN
- China
- Prior art keywords
- application
- information
- code
- installation
- platform
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
Description
技术领域Technical Field
本发明涉及自动识别技术领域,尤其涉及一种基于自动识别的应用分发系统。The present invention relates to the field of automatic identification technology, and in particular to an application distribution system based on automatic identification.
背景技术Background technique
随着电子设备的应用越来越广泛,出现了不同操作系统的电子设备,同一个应用软件会经常需要安装在多个不同操作系统的电子设备中,因此需要对应用进行分发。As electronic devices are used more and more widely, electronic devices with different operating systems have emerged. The same application software often needs to be installed in multiple electronic devices with different operating systems, so the application needs to be distributed.
目前存在的应用分发技术主要是通过建立不同的链接,并且将不同操作系统对应的应用存放至不同的安装链接中,在安装过程中很容易因为链接错误下载到错误版本的应用导致安装失败,导致应用分发效率低下。The existing application distribution technology mainly establishes different links and stores applications corresponding to different operating systems in different installation links. During the installation process, it is easy to download the wrong version of the application due to link errors, resulting in installation failure, resulting in low application distribution efficiency.
因此,本发明提供一种基于自动识别的应用分发系统。Therefore, the present invention provides an application distribution system based on automatic identification.
发明内容Summary of the invention
本发明提供一种基于自动识别的应用分发系统,用以解决现有技术中应用分发效率低且失误率较高的缺陷。The present invention provides an application distribution system based on automatic identification, which is used to solve the defects of low application distribution efficiency and high error rate in the prior art.
一方面,本发明提供一种基于自动识别的应用分发系统,包括:In one aspect, the present invention provides an application distribution system based on automatic identification, comprising:
信息识别模块:获取应用安装包信息,并对所述应用安装包信息进行信息解析得到版本信息;Information identification module: obtains application installation package information, and parses the application installation package information to obtain version information;
链接生成模块:基于所述版本信息确定对应的应用生成器,并基于所述应用生成器对所述应用安装包信息进行加载得到应用安装链接;A link generation module: determining a corresponding application generator based on the version information, and loading the application installation package information based on the application generator to obtain an application installation link;
协议确定模块:自动识别应用安装平台的转换协议;Protocol determination module: automatically identifies the conversion protocol of the application installation platform;
应用分发模块:基于所述转换协议对应用安装链接进行信息转换得到应用信息,并分发到所述应用安装平台。Application distribution module: based on the conversion protocol, performs information conversion on the application installation link to obtain application information, and distributes it to the application installation platform.
根据本发明提供的一种基于自动识别的应用分发系统,信息识别模块,包括:According to an application distribution system based on automatic identification provided by the present invention, the information identification module includes:
信息获取单元:基于所述应用安装包信息确定相应应用安装包的应用代码信息;An information acquisition unit is used to determine the application code information of the corresponding application installation package based on the application installation package information;
信息解析单元:基于专属代码库对所述应用代码信息进行解析,得到应用安装包的详情信息,并对所述详情信息进行数据提取得到对应应用安装包的版本信息。Information parsing unit: Parsing the application code information based on the dedicated code library to obtain detailed information of the application installation package, and extracting data from the detailed information to obtain version information of the corresponding application installation package.
根据本发明提供的一种基于自动识别的应用分发系统,信息解析单元,包括:According to an application distribution system based on automatic identification provided by the present invention, the information parsing unit includes:
代码段确定块:获取所有历史安装包的安装包类型,并基于所述安装包类型从应用程序库中获取代码段;Code segment determination block: obtains the installation package types of all historical installation packages, and obtains code segments from the application library based on the installation package types;
用例执行块:基于所述应用代码信息生成测试用例,并通过所述代码段执行每个测试用例;A test case execution block generates test cases based on the application code information and executes each test case through the code segment;
代码库生成块:提取所有执行成功的代码段并基于所述代码段组成专属代码库。Code library generation block: extracts all successfully executed code segments and composes a dedicated code library based on the code segments.
根据本发明提供的一种基于自动识别的应用分发系统,链接生成模块,包括:According to an application distribution system based on automatic identification provided by the present invention, a link generation module includes:
匹配单元:确定所述版本信息的多个待校验指标,并从指标-生成器映射表依次按照待校验指标的全部指标组合到单独指标的匹配生成器;A matching unit: determining a plurality of indicators to be verified of the version information, and combining all indicators of the indicators to be verified from the indicator-generator mapping table into matching generators of individual indicators in sequence;
提取单元:分别对每个指标组合下的匹配生成器进行数量统计处理,分别获取每个匹配生成器的第一数量,同时,提取全部指标组合以及少一个指标组合下的交集生成器;Extraction unit: performing quantitative statistical processing on the matching generators under each indicator combination, respectively obtaining the first quantity of each matching generator, and at the same time, extracting the intersection generators under all indicator combinations and one less indicator combination;
组合单元:从所有第一数量中提取数量靠前的前n1个匹配生成器,且结合交集生成器,得到对应版本信息的应用生成器。Combining unit: extracting the first n1 matching generators from all the first quantities, and combining them with the intersection generator to obtain the application generator of the corresponding version information.
根据本发明提供的一种基于自动识别的应用分发系统,链接生成模块,还包括:According to an automatic identification-based application distribution system provided by the present invention, the link generation module further includes:
信息解析单元:基于所述应用生成器对所述应用安装包信息进行加载解析,得到所述应用安装包的基本信息;Information parsing unit: loading and parsing the application installation package information based on the application generator to obtain basic information of the application installation package;
转码单元:对所述基本信息进行转码处理得到转码文本,并按照文本拆分规则对所述转码文本进行拆分得到若干文本字段;Transcoding unit: transcoding the basic information to obtain transcoded text, and splitting the transcoded text according to a text splitting rule to obtain a plurality of text fields;
随机生成单元:向每个文本字段匹配链接字符组,并随机组合得到所述应用生成器的应用安装链接。Random generation unit: matches link character groups to each text field, and randomly combines them to obtain the application installation link of the application generator.
根据本发明提供的一种基于自动识别的应用分发系统,协议确定模块,包括:According to an automatic identification-based application distribution system provided by the present invention, a protocol determination module includes:
信息获取单元:获取应用安装包支持的多个应用安装平台的平台类型以及相应应用安装平台的平台特征;Information acquisition unit: acquiring platform types of multiple application installation platforms supported by the application installation package and platform characteristics of the corresponding application installation platforms;
转换协议确定单元:基于所述平台类型以及平台特征从转换协议数据库中进行搜索得到相应应用安装平台的转换协议。The conversion protocol determining unit searches the conversion protocol database based on the platform type and platform characteristics to obtain the conversion protocol of the corresponding application installation platform.
根据本发明提供的一种基于自动识别的应用分发系统,应用分发模块,包括:According to an automatic identification-based application distribution system provided by the present invention, the application distribution module includes:
代码分类单元:获取应用安装链接对应的多组源代码,并按照源代码的代码类型不同对所述多组源代码进行分类;A code classification unit: obtaining multiple sets of source codes corresponding to the application installation links, and classifying the multiple sets of source codes according to different code types of the source codes;
将每组源代码按照代码用途进行分块处理,并获取每组源代码中的若干验证代码块;Divide each set of source codes into blocks according to code usage, and obtain several verification code blocks from each set of source codes;
计算每个验证代码块与所述转换协议的匹配值;Calculating a matching value between each verification code block and the conversion protocol;
;其中,为第i个验证代码块与所述转换协议的匹配值,为第i个验证代码块的长度占对应组源代码长度的比例,为第i个验证代码块中第k个代码段与对应转换协议的子匹配值,n表示第i个验证代码块所存在的代码段的数量,为第k个代码段中第j个代码,表示对第j个代码基于代码有效数量的转换系数,m表示第k个代码段中存在的代码总个数;为对应组源代码中除第i个验证代码块外的剩余代码块中涉及到的代码段总数量,为针对第k个代码段的预设有效代码量,为第i个验证代码块的波动系数,为第i个验证代码块下第k个代码段的无效数量系数,为第i个验证代码块的当下稳定时长,为第i个验证代码块所对应代码用途的设定稳定时长;为针对第k个代码段的预设总代码量;表示第i个验证代码块下的所有中的最小值; ;in, is the matching value between the ith verification code block and the conversion protocol, is the ratio of the length of the i-th verification code block to the length of the corresponding group source code, is the sub-matching value between the kth code segment in the i-th verification code block and the corresponding conversion protocol, n represents the number of code segments in the i-th verification code block, is the jth code in the kth code segment, represents the conversion coefficient for the jth code based on the effective number of codes, and m represents the total number of codes present in the kth code segment; is the total number of code segments involved in the remaining code blocks except the i-th verification code block in the corresponding group source code, is the preset effective code amount for the kth code segment, is the fluctuation coefficient of the ith verification code block, is the invalid number coefficient of the kth code segment under the i-th verification code block, is the current stable duration of the i-th verification code block, The set stable duration of the code usage corresponding to the i-th verification code block; is the preset total code amount for the kth code segment; Represents all the verification code blocks under the i-th The minimum value in ;
当所述匹配值大于预设值时,将对应验证代码块所对应的源代码保留;When the matching value is greater than a preset value, the source code corresponding to the corresponding verification code block is retained;
按照分类结果对每个所保留源代码的代码类型进行标注,并根据标注结果确定每个代码类型下的保留次数,同时,对每个代码类型下的源代码的代码总量进行统计;The code type of each retained source code is marked according to the classification result, and the number of retentions of each code type is determined according to the marking result. At the same time, the total amount of source code of each code type is counted;
基于保留次数最多的代码类型所涉及到的所有源代码以及代码总量最多的代码类型下的所有源代码,生成过渡转换条件;Generate transition conditions based on all source codes involved in the code type with the largest number of retentions and all source codes under the code type with the largest total amount of code;
基于所述过渡转换条件控制转换协议实现对所述应用安装连接的转换,得到应用信息。Based on the transition conversion condition, the conversion protocol is controlled to realize the conversion of the application installation connection to obtain application information.
根据本发明提供的一种基于自动识别的应用分发系统,应用分发模块,还包括:According to an automatic identification-based application distribution system provided by the present invention, the application distribution module further includes:
空间比较单元:获取所述应用安装平台的平台安装空间,并与待安装应用安装包所需安装空间进行比较;Space comparison unit: obtains the platform installation space of the application installation platform, and compares it with the installation space required by the application installation package to be installed;
应用分发单元:若平台安装空间大于所需安装空间,则将所述应用信息分发至所述应用安装平台;Application distribution unit: if the platform installation space is larger than the required installation space, distribute the application information to the application installation platform;
否则,提醒用户安装空间不足,并保存应用信息至云端,并在所述应用安装平台再次进行安装时直接调取应用信息。Otherwise, the user is reminded that there is insufficient installation space, and the application information is saved to the cloud, and the application information is directly retrieved when the application installation platform is installed again.
与现有技术相比,本申请的有益效果在于:本发明提供的一种基于自动识别的应用分发系统,通过获取应用安装包信息并对信息进行解析得到版本信息,再通过版本信息确定应用生成器对安装包信息进行加载得到安装链接,保证了安装链接的准确性,通过自动识别应用安装平台的转换协议并对安装链接进行信息转换得到应用信息,能够通过同一个链接自动识别安装系统,有效提高了应用分发效率,有效避免了由于链接选择错误导致的安装错误。Compared with the prior art, the beneficial effects of the present application are as follows: the present invention provides an application distribution system based on automatic identification, which obtains application installation package information and parses the information to obtain version information, and then determines the application generator to load the installation package information to obtain the installation link through the version information, thereby ensuring the accuracy of the installation link, and automatically identifies the conversion protocol of the application installation platform and converts the installation link to obtain application information, and can automatically identify the installation system through the same link, thereby effectively improving the application distribution efficiency and effectively avoiding installation errors caused by incorrect link selection.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本发明或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
图1是本发明实施例提供的一种基于自动识别的应用分发系统的结构图。FIG1 is a structural diagram of an application distribution system based on automatic identification provided by an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚,下面将结合本发明中的附图,对本发明中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
如图1所示,本发明实施例提供的一种基于自动识别的应用分发系统,包括:As shown in FIG1 , an embodiment of the present invention provides an application distribution system based on automatic identification, including:
信息识别模块:获取应用安装包信息,并对所述应用安装包信息进行信息解析得到版本信息;Information identification module: obtains application installation package information, and parses the application installation package information to obtain version information;
链接生成模块:基于所述版本信息确定对应的应用生成器,并基于所述应用生成器对所述应用安装包信息进行加载得到应用安装链接;A link generation module: determining a corresponding application generator based on the version information, and loading the application installation package information based on the application generator to obtain an application installation link;
协议确定模块:自动识别应用安装平台的转换协议;Protocol determination module: automatically identifies the conversion protocol of the application installation platform;
应用分发模块:基于所述转换协议对应用安装链接进行信息转换得到应用信息,并分发到所述应用安装平台。Application distribution module: based on the conversion protocol, performs information conversion on the application installation link to obtain application information, and distributes it to the application installation platform.
该实施例中,应用安装包信息是指应用安装包的特征信息,比如安装包的大小以及安装包的内容信息等。In this embodiment, the application installation package information refers to characteristic information of the application installation package, such as the size of the installation package and content information of the installation package.
该实施例中,信息解析是指对安装包的信息所反映出来的具体特征进行信息提取,比如通过安装包信息可以确定安装包的版本为2.0,则进行信息解析后得到的版本信息为2.0。In this embodiment, information analysis refers to extracting information from specific features reflected by the information of the installation package. For example, if the installation package information can determine that the version of the installation package is 2.0, the version information obtained after information analysis is 2.0.
该实施例中,不同的版本信息有不同的应用生成器,通过版本信息的待校验指标可以组合得到对应的,应用生成器可以将安装包信息转换为对应的安装链接。In this embodiment, different version information has different application generators, and the indicators to be verified of the version information can be combined to obtain the corresponding application generator, which can convert the installation package information into the corresponding installation link.
该实施例中,通过对应用安装平台的信息进行自动识别可以得到应用安装平台对应的安装系统,并确定对应的转换协议。In this embodiment, the installation system corresponding to the application installation platform can be obtained by automatically identifying the information of the application installation platform, and the corresponding conversion protocol can be determined.
该实施例中,信息转换是通过转换协议对安装链接里的编码信息进行转换的过程,转换后可以得到应用的安装信息。In this embodiment, information conversion is a process of converting the coded information in the installation link through a conversion protocol, and the installation information of the application can be obtained after the conversion.
上述技术方案的有益效果是:通过获取应用安装包信息并对信息进行解析得到版本信息,再通过版本信息确定应用生成器对安装包信息进行加载得到安装链接,保证了安装链接的准确性,通过自动识别应用安装平台的转换协议并对安装链接进行信息转换得到应用信息,能够通过同一个链接自动识别安装系统,有效提高了应用分发效率,避免了由于链接选择错误导致安装错误的情况发生。The beneficial effects of the above technical solution are: by obtaining the application installation package information and parsing the information to obtain the version information, and then determining the application generator to load the installation package information to obtain the installation link through the version information, the accuracy of the installation link is ensured, and by automatically identifying the conversion protocol of the application installation platform and converting the installation link information to obtain the application information, the installation system can be automatically identified through the same link, which effectively improves the application distribution efficiency and avoids installation errors caused by incorrect link selection.
本发明实施例提供一种基于自动识别的应用分发系统,信息识别模块,包括:The embodiment of the present invention provides an application distribution system based on automatic identification, an information identification module, including:
信息获取单元:基于所述应用安装包信息确定相应应用安装包的应用代码信息;An information acquisition unit is used to determine the application code information of the corresponding application installation package based on the application installation package information;
信息解析单元:基于专属代码库对所述应用代码信息进行解析,得到应用安装包的详情信息,并对所述详情信息进行数据提取得到对应应用安装包的版本信息。Information parsing unit: Parsing the application code information based on the dedicated code library to obtain detailed information of the application installation package, and extracting data from the detailed information to obtain version information of the corresponding application installation package.
该实施例中,应用代码信息是指应用安装包内用于反映安装包内容的代码信息。In this embodiment, the application code information refers to the code information in the application installation package that is used to reflect the content of the installation package.
该实施例中,专属代码库是通过对代码段进行验证组成的,专属代码库中包含对应应用的所有不同安装系统的代码信息,每个应用对应一个专属代码库。In this embodiment, the exclusive code library is formed by verifying code segments, and the exclusive code library contains code information of all different installation systems corresponding to the application, and each application corresponds to a exclusive code library.
该实施例中,详情信息是指应用安装包的基本信息详情,包括安装包大小、安装包版本。In this embodiment, the detailed information refers to the basic information details of the application installation package, including the size of the installation package and the version of the installation package.
上述技术方案的有益效果是:通过安装包信息确定应用代码信息,并通过专属代码库对应用代码信息进行解析,保证了代码信息解析结果的准确性,通过得到的详情信息进行数据提取得到应用安装包的版本信息,确保了安装包版本信息的准确性,进一步保证了应用分发的准确性。The beneficial effects of the above technical solution are: determining the application code information through the installation package information, and parsing the application code information through a dedicated code library, thereby ensuring the accuracy of the code information parsing results, and obtaining the version information of the application installation package through data extraction through the obtained detailed information, thereby ensuring the accuracy of the installation package version information and further ensuring the accuracy of application distribution.
本发明实施例提供一种基于自动识别的应用分发系统,信息解析单元,包括:The embodiment of the present invention provides an application distribution system based on automatic identification, an information parsing unit, including:
代码段确定块:获取所有历史安装包的安装包类型,并基于所述安装包类型从应用程序库中获取代码段;Code segment determination block: obtains the installation package types of all historical installation packages, and obtains code segments from the application library based on the installation package types;
用例执行块:基于所述应用代码信息生成测试用例,并通过所述代码段执行每个测试用例;A test case execution block generates test cases based on the application code information and executes each test case through the code segment;
代码库生成块:提取所有执行成功的代码段并基于所述代码段组成专属代码库。Code library generation block: extracts all successfully executed code segments and composes a dedicated code library based on the code segments.
该实施例中,历史安装包是指同个系统安装过的对应应用历史版本的安装包。In this embodiment, the historical installation package refers to the installation package of the historical version of the corresponding application installed on the same system.
该实施例中,安装包类型是指安装包对应的安装软件的类型,比如办公软件、娱乐软件等。In this embodiment, the installation package type refers to the type of installation software corresponding to the installation package, such as office software, entertainment software, etc.
该实施例中,代码段是指应用程序库中与安装包类型相关的代码信息。In this embodiment, the code segment refers to code information related to the installation package type in the application library.
该实施例中,测试用例是通过对应用代码信息进行提取并通过提取到的特征信息建立测试得到的。In this embodiment, the test case is obtained by extracting application code information and establishing a test using the extracted feature information.
上述技术方案的有益效果是:通过获取历史安装包的安装包类型,并从应用程序库中获取代码段,并通过应用代码信息生成测试用例,再通过代码段执行测试用例进行验证,将通过验证的代码段组成专属代码库,保证了专属代码库的全面性,并进一步保证了代码信息解析的准确性。The beneficial effect of the above technical solution is: by obtaining the installation package type of the historical installation package, and obtaining the code segment from the application library, and generating test cases through application code information, and then executing the test cases through the code segment for verification, the verified code segments are combined into an exclusive code library, thereby ensuring the comprehensiveness of the exclusive code library and further ensuring the accuracy of the code information analysis.
本发明实施例提供一种基于自动识别的应用分发系统,链接生成模块,包括:The embodiment of the present invention provides an application distribution system based on automatic identification, a link generation module, including:
匹配单元:确定所述版本信息的多个待校验指标,并从指标-生成器映射表依次按照待校验指标的全部指标组合到单独指标的匹配生成器;A matching unit: determining a plurality of indicators to be verified of the version information, and combining all indicators of the indicators to be verified from the indicator-generator mapping table into matching generators of individual indicators in sequence;
提取单元:分别对每个指标组合下的匹配生成器进行数量统计处理,分别获取每个匹配生成器的第一数量,同时,提取全部指标组合以及少一个指标组合下的交集生成器;Extraction unit: performing quantitative statistical processing on the matching generators under each indicator combination, respectively obtaining the first quantity of each matching generator, and at the same time, extracting the intersection generators under all indicator combinations and one less indicator combination;
组合单元:从所有第一数量中提取数量靠前的前n1个匹配生成器,且结合交集生成器,得到对应版本信息的应用生成器。Combining unit: extracting the first n1 matching generators from all the first quantities, and combining them with the intersection generator to obtain the application generator of the corresponding version information.
该实施例中,待校验指标是指版本信息中与上一版本信息不同的指标。In this embodiment, the indicator to be verified refers to an indicator in the version information that is different from the previous version information.
该实施例中,指标-生成器映射表中包含所有的指标以及对应的生成器。In this embodiment, the indicator-generator mapping table includes all indicators and corresponding generators.
该实施例中,第一数量是指每个匹配生成器对应的所有指标组合的总指标数量。In this embodiment, the first quantity refers to the total number of indicators of all indicator combinations corresponding to each matching generator.
该实施例中,交集生成器是指全部指标组合对应的全部生成器与少一个指标组合对应的全部生成器的交集部分。In this embodiment, the intersection generator refers to the intersection of all generators corresponding to all indicator combinations and all generators corresponding to one less indicator combination.
上述技术方案的有益效果是:通过确定待校验指标,从指标-生成器映射表依次按照待校验指标匹配合适的匹配生成器,再对匹配生成器进行数量统计得到数量,并提取交际生成器,结合部分匹配生成器得到对应版本信息的应用生成器,保证了应用生成器能够完整的生成应用链接。The beneficial effect of the above technical solution is: by determining the indicator to be verified, matching the appropriate matching generator according to the indicator to be verified from the indicator-generator mapping table in turn, and then counting the number of matching generators to obtain the number, and extracting the communication generator, combining the partial matching generator to obtain the application generator with the corresponding version information, thereby ensuring that the application generator can completely generate the application link.
本发明实施例提供一种基于自动识别的应用分发系统,链接生成模块,还包括:The embodiment of the present invention provides an application distribution system based on automatic identification, a link generation module, and further includes:
信息解析单元:基于所述应用生成器对所述应用安装包信息进行加载解析,得到所述应用安装包的基本信息;Information parsing unit: loading and parsing the application installation package information based on the application generator to obtain basic information of the application installation package;
转码单元:对所述基本信息进行转码处理得到转码文本,并按照文本拆分规则对所述转码文本进行拆分得到若干文本字段;Transcoding unit: transcoding the basic information to obtain transcoded text, and splitting the transcoded text according to a text splitting rule to obtain a plurality of text fields;
随机生成单元:向每个文本字段匹配链接字符组,并随机组合得到所述应用生成器的应用安装链接。Random generation unit: matches link character groups to each text field, and randomly combines them to obtain the application installation link of the application generator.
该实施例中,文本拆分规则为预设规则,与文本的大小以及每段文本对应的基本信息内容相关。In this embodiment, the text segmentation rule is a preset rule, which is related to the size of the text and the basic information content corresponding to each segment of text.
上述技术方案的有益效果是:通过应用生成器对安装包信息进行加载解析,得到基本信息,并对基本信息进行转码处理得到转码文本,按照文本拆分规则对转码文本进行拆分,再通过向每个文本字段匹配链接字符组提高了匹配效率,随机组合得到应用安装链接提高了安装链接的准确性。The beneficial effects of the above technical solution are: the installation package information is loaded and parsed by the application generator to obtain basic information, and the basic information is transcoded to obtain transcoded text, the transcoded text is split according to the text splitting rules, and then the matching efficiency is improved by matching the link character group to each text field, and the application installation link is obtained by random combination to improve the accuracy of the installation link.
本发明实施例提供一种基于自动识别的应用分发系统,协议确定模块,包括:The embodiment of the present invention provides an application distribution system based on automatic identification, a protocol determination module, including:
信息获取单元:获取应用安装包支持的多个应用安装平台的平台类型以及相应应用安装平台的平台特征;Information acquisition unit: acquiring platform types of multiple application installation platforms supported by the application installation package and platform characteristics of the corresponding application installation platforms;
转换协议确定单元:基于所述平台类型以及平台特征从转换协议数据库中进行搜索得到相应应用安装平台的转换协议。The conversion protocol determining unit searches the conversion protocol database based on the platform type and platform characteristics to obtain the conversion protocol of the corresponding application installation platform.
该实施例中,安装平台的系统不同对应应用安装平台的平台类型也不同,安装平台的系统版本不同则平台特征也不相同。In this embodiment, different installation platform systems correspond to different platform types of application installation platforms, and different installation platform system versions correspond to different platform features.
该实施例中,转换协议数据库中包含所有不同特征以及不同类型的应用安装平台的转换协议。In this embodiment, the conversion protocol database contains conversion protocols for all different features and different types of application installation platforms.
上述技术方案的有益效果是:通过获取应用安装包支持的多个应用安装平台平台的平台类型以及平台特征,并根据对应的平台类型以及平台特征从转换协议数据库中得到转换协议,保证了转换协议的匹配性,进一步保证了对应用链接解析的准确性。The beneficial effect of the above technical solution is: by obtaining the platform types and platform characteristics of multiple application installation platforms supported by the application installation package, and obtaining the conversion protocol from the conversion protocol database according to the corresponding platform types and platform characteristics, the matching of the conversion protocol is ensured, and the accuracy of the application link resolution is further ensured.
本发明实施例提供一种基于自动识别的应用分发系统,应用分发模块,包括:The embodiment of the present invention provides an application distribution system based on automatic identification, and an application distribution module, including:
代码分类单元:获取应用安装链接对应的多组源代码,并按照源代码的代码类型不同对所述多组源代码进行分类;A code classification unit: obtaining multiple sets of source codes corresponding to the application installation links, and classifying the multiple sets of source codes according to different code types of the source codes;
将每组源代码按照代码用途进行分块处理,并获取每组源代码中的若干验证代码块;Divide each set of source codes into blocks according to code usage, and obtain several verification code blocks from each set of source codes;
计算每个验证代码块与所述转换协议的匹配值;Calculating a matching value between each verification code block and the conversion protocol;
;其中,为第i个验证代码块与所述转换协议的匹配值,为第i个验证代码块的长度占对应组源代码长度的比例,为第i个验证代码块中第k个代码段与对应转换协议的子匹配值,n表示第i个验证代码块所存在的代码段的数量,为第k个代码段中第j个代码,表示对第j个代码基于代码有效数量的转换系数,m表示第k个代码段中存在的代码总个数;为对应组源代码中除第i个验证代码块外的剩余代码块中涉及到的代码段总数量,为针对第k个代码段的预设有效代码量,为第i个验证代码块的波动系数,为第i个验证代码块下第k个代码段的无效数量系数,为第i个验证代码块的当下稳定时长,为第i个验证代码块所对应代码用途的设定稳定时长;为针对第k个代码段的预设总代码量;表示第i个验证代码块下的所有中的最小值; ;in, is the matching value between the ith verification code block and the conversion protocol, is the ratio of the length of the i-th verification code block to the length of the corresponding group source code, is the sub-matching value between the kth code segment in the i-th verification code block and the corresponding conversion protocol, n represents the number of code segments in the i-th verification code block, is the jth code in the kth code segment, represents the conversion coefficient for the jth code based on the effective number of codes, and m represents the total number of codes present in the kth code segment; is the total number of code segments involved in the remaining code blocks except the i-th verification code block in the corresponding group source code, is the preset effective code amount for the kth code segment, is the fluctuation coefficient of the ith verification code block, is the invalid number coefficient of the kth code segment under the i-th verification code block, is the current stable duration of the i-th verification code block, The set stable duration of the code usage corresponding to the i-th verification code block; is the preset total code amount for the kth code segment; Represents all the verification code blocks under the i-th The minimum value in ;
当所述匹配值大于预设值时,将对应验证代码块所对应的源代码保留;When the matching value is greater than a preset value, the source code corresponding to the corresponding verification code block is retained;
按照分类结果对每个所保留源代码的代码类型进行标注,并根据标注结果确定每个代码类型下的保留次数,同时,对每个代码类型下的源代码的代码总量进行统计;The code type of each retained source code is marked according to the classification result, and the number of retentions of each code type is determined according to the marking result. At the same time, the total amount of source code of each code type is counted;
基于保留次数最多的代码类型所涉及到的所有源代码以及代码总量最多的代码类型下的所有源代码,生成过渡转换条件;Generate transition conditions based on all source codes involved in the code type with the largest number of retentions and all source codes under the code type with the largest total amount of code;
基于所述过渡转换条件控制转换协议实现对所述应用安装连接的转换,得到应用信息。Based on the transition conversion condition, the conversion protocol is controlled to realize the conversion of the application installation connection to obtain application information.
该实施例中,不同系统的安装平台对应的源代码的代码类型不同。In this embodiment, the code types of source codes corresponding to the installation platforms of different systems are different.
该实施例中,验证代码块是源代码中用于对协议信息进行验证的部分源代码。In this embodiment, the verification code block is a portion of the source code used to verify the protocol information.
该实施例中,匹配值用于反映验证代码块与转换协议的匹配程度,且匹配值与匹配程度成正比,匹配值越高则匹配程度越高。In this embodiment, the matching value is used to reflect the matching degree between the verification code block and the conversion protocol, and the matching value is proportional to the matching degree. The higher the matching value, the higher the matching degree.
该实施例中,过渡转换条件用于控制转换协议进行转换,包括对转换协议的筛选以及应用条件。In this embodiment, the transition conversion condition is used to control the conversion of the conversion protocol, including the screening of the conversion protocol and the application condition.
上述技术方案的有益效果是:通过获取应用链接的多组源代码并按照不同的代码类型进行分类,再将源代码进行分块处理,确定验证代码块,获取验证代码块与转换协议的匹配值并确定被保留部分的源代码,将对印度个代码类型进行标注并对代码总量进行统计,根据统计结果生成过渡转换条件,并控制转换协议进行转换得到应用信息,保证了应用信息的准确性,能够有效实现应用的自动分发。The beneficial effects of the above technical solution are: by obtaining multiple groups of source codes linked to the application and classifying them according to different code types, the source code is processed in blocks, the verification code block is determined, the matching value of the verification code block and the conversion protocol is obtained and the retained part of the source code is determined, the individual code types are marked and the total amount of code is counted, the transition conversion conditions are generated according to the statistical results, and the conversion protocol is controlled to convert to obtain application information, thereby ensuring the accuracy of the application information and being able to effectively realize the automatic distribution of the application.
本发明实施例提供一种基于自动识别的应用分发系统,应用分发模块,还包括:The embodiment of the present invention provides an application distribution system based on automatic identification, and the application distribution module further includes:
空间比较单元:获取所述应用安装平台的平台安装空间,并与待安装应用安装包所需安装空间进行比较;Space comparison unit: obtains the platform installation space of the application installation platform, and compares it with the installation space required by the application installation package to be installed;
应用分发单元:若平台安装空间大于所需安装空间,则将所述应用信息分发至所述应用安装平台;Application distribution unit: if the platform installation space is larger than the required installation space, distribute the application information to the application installation platform;
否则,提醒用户安装空间不足,并保存应用信息至云端,并在所述应用安装平台再次进行安装时直接调取应用信息。Otherwise, the user is reminded that there is insufficient installation space, and the application information is saved to the cloud, and the application information is directly retrieved when the application installation platform is installed again.
该实施例中,平台安装空间是指安装平台的剩余可使用空间,所需安装空间是指待安装应用包进行安装所需要的空间。In this embodiment, the platform installation space refers to the remaining available space of the installation platform, and the required installation space refers to the space required for the installation of the application package to be installed.
上述技术方案的有益效果是:通过获取平台安装空间并与待安装应用安装包的所需安装空间进行比较,通过比较结果确定是否要将应用信息分发至对应的应用安装平台,降低了安装失败的概率,在安装空间不足时将应用信息保存至云端,并在下一次安装时直接调用,提高了应用安装的效率。The beneficial effects of the above technical solution are: by obtaining the platform installation space and comparing it with the required installation space of the application installation package to be installed, determining whether to distribute the application information to the corresponding application installation platform based on the comparison result, thereby reducing the probability of installation failure, saving the application information to the cloud when the installation space is insufficient, and directly calling it at the next installation, thereby improving the efficiency of application installation.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410889251.3A CN118426793B (en) | 2024-07-04 | 2024-07-04 | Application distribution system based on automatic identification |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410889251.3A CN118426793B (en) | 2024-07-04 | 2024-07-04 | Application distribution system based on automatic identification |
Publications (2)
Publication Number | Publication Date |
---|---|
CN118426793A true CN118426793A (en) | 2024-08-02 |
CN118426793B CN118426793B (en) | 2024-11-05 |
Family
ID=92326560
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410889251.3A Active CN118426793B (en) | 2024-07-04 | 2024-07-04 | Application distribution system based on automatic identification |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118426793B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104539676A (en) * | 2014-12-18 | 2015-04-22 | 深圳市腾讯计算机系统有限公司 | Method, device and system for providing and obtaining application installation packets |
CN106550022A (en) * | 2016-10-24 | 2017-03-29 | 上海瀚银信息技术有限公司 | A kind of application program distributes control process method and system |
CN107248946A (en) * | 2017-05-11 | 2017-10-13 | 北京潘达互娱科技有限公司 | Application installation package sending method and device |
CN113179314A (en) * | 2021-04-25 | 2021-07-27 | 网易(杭州)网络有限公司 | Channel installation package processing method and device |
CN113934634A (en) * | 2021-10-21 | 2022-01-14 | 吉林亿联银行股份有限公司 | Test application package downloading method and device, storage medium and electronic equipment |
CN115277664A (en) * | 2022-07-29 | 2022-11-01 | 北京鸿途信达科技股份有限公司 | System for automatically distributing software |
CN117573139A (en) * | 2023-12-12 | 2024-02-20 | 北斗星通智联科技有限责任公司 | Code automatic generation method, device, equipment and medium |
-
2024
- 2024-07-04 CN CN202410889251.3A patent/CN118426793B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104539676A (en) * | 2014-12-18 | 2015-04-22 | 深圳市腾讯计算机系统有限公司 | Method, device and system for providing and obtaining application installation packets |
CN106550022A (en) * | 2016-10-24 | 2017-03-29 | 上海瀚银信息技术有限公司 | A kind of application program distributes control process method and system |
CN107248946A (en) * | 2017-05-11 | 2017-10-13 | 北京潘达互娱科技有限公司 | Application installation package sending method and device |
CN113179314A (en) * | 2021-04-25 | 2021-07-27 | 网易(杭州)网络有限公司 | Channel installation package processing method and device |
CN113934634A (en) * | 2021-10-21 | 2022-01-14 | 吉林亿联银行股份有限公司 | Test application package downloading method and device, storage medium and electronic equipment |
CN115277664A (en) * | 2022-07-29 | 2022-11-01 | 北京鸿途信达科技股份有限公司 | System for automatically distributing software |
CN117573139A (en) * | 2023-12-12 | 2024-02-20 | 北斗星通智联科技有限责任公司 | Code automatic generation method, device, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN118426793B (en) | 2024-11-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113628043B (en) | Complaint validity judging method, device, equipment and medium based on data classification | |
CN114818643B (en) | Log template extraction method and device for reserving specific service information | |
CN104756113A (en) | Method, apparatus and computer program for detecting deviations in data sources | |
CN112699119A (en) | Cross-system data processing method, device, equipment and storage medium | |
CN111679979A (en) | Destructive testing method and device | |
CN118426793B (en) | Application distribution system based on automatic identification | |
CN111563034A (en) | Method and device for generating simulation data | |
CN115687283A (en) | Log-based playback method and device, electronic equipment and medium | |
CN116204428A (en) | Test case generation method and device | |
CN116187754A (en) | Production line fault positioning method, equipment and readable storage medium | |
CN116719881A (en) | Energy data on-chain storage method and device based on virtual power plant | |
CN114860614A (en) | Data processing method, apparatus, device, medium and product | |
CN116882966B (en) | A method and device for judging faults of inspection results of operation and maintenance equipment | |
CN113377801A (en) | Data inspection method, data inspection device, electronic equipment and computer storage medium | |
CN118445208A (en) | Automatic test code processing method, system, terminal and storage medium | |
CN118094644B (en) | Data processing method, device, electronic equipment and storage medium | |
CN118095919B (en) | Method and system for checking quality of service data | |
CN117056576B (en) | Data quality flexible verification method based on big data platform | |
CN113778880B (en) | Intelligent contract function verification method and device based on formal verification | |
CN115994743B (en) | Document abstract specification management method and system | |
CN119537254B (en) | Fuzz testing method and system based on large model code generation and automatic program repair | |
CN116662622B (en) | Power grid data consistency comparison method and device, medium and electronic equipment | |
CN112101926B (en) | Intelligent payment method and system for patent annual fee | |
CN119006209A (en) | Electric energy metering data diagnosis method and system based on weak reduction signal | |
CN116720981A (en) | Virtual loop checking method and device, terminal equipment 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 |