







相关申请的交叉引用Cross References to Related Applications
本申请要求于2022年2月10日提交的,申请名称为“应用程序部署方法、装置、设备及介质”的、中国专利申请号为“202210114239.6”的优先权,该中国专利申请的全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application number "202210114239.6" filed on February 10, 2022, with the title of "Application Deployment Method, Apparatus, Equipment, and Medium". The entire content of the Chinese patent application is approved by References are incorporated in this application.
本申请涉及计算机技术领域,具体而言,涉及一种应用程序部署方法、装置、电子设备及计算机可读存储介质。The present application relates to the field of computer technology, in particular, to an application program deployment method, device, electronic equipment, and computer-readable storage medium.
对于不同的行业与不同类型的企业用户,对应用程序(Application,简称APP)定制的要求也不一样,同样对信息的需求是不同的,其管理特点也不一样,用既定应用程序产品已经不能满足不同企业用户的需求。因此,很多企业用户选择应用程序定制,从而可以得到更有针对性的应用程序,因为应用程序的每个功能的开发都必须经过仔细的系统分析,根据不同企业的实际情况,得到适合每个企业的、易于使用的应用程序,可以满足用户具体功能的需求。For different industries and different types of enterprise users, the requirements for application (Application, APP) customization are also different, and the requirements for information are also different, and its management characteristics are also different. It is no longer possible to use established application products. Meet the needs of different business users. Therefore, many enterprise users choose application customization, so as to obtain more targeted applications, because the development of each function of the application must undergo careful system analysis, and according to the actual situation of different enterprises, obtain the most suitable application for each enterprise. Customized, easy-to-use applications that can meet the user's specific functional needs.
但是,随着应用程序的业务的增长以及定制公司越来越多,定制要求越来越高,导致应用程序的业务逻辑变得臃肿,并且对于应用程序的维护也愈加困难。However, as the business of the application program grows and there are more and more customization companies, the requirements for customization become higher and higher, resulting in bloated business logic of the application program and more difficult maintenance of the application program.
为解决上述技术问题,本申请的实施例提供了一种应用程序部署方法、装置、电子设备及计算机可读存储介质,以优化应用程序的业务逻辑以及应用程序的维护。In order to solve the above technical problems, the embodiments of the present application provide an application program deployment method, device, electronic device and computer-readable storage medium, so as to optimize the business logic of the application program and the maintenance of the application program.
根据本申请实施例的一个方面,提供了一种应用程序部署方法,方法包括:接收应用程序部署请求;其中,应用程序部署请求中携带有待部署的对象标识;根据应用程序部署请求,获取通用代码参数,以及从私有配置参数列表中获取与待部署的对象标识相匹配的私有配置参数;其中,私有配置参数列表中包括多个对象标识,以及与多个对象标识对应的私有配置参数;基于私有配置参数获取私有代码参数,并根据通用代码参数以及私有代码参数得到待编译代码;基于待编译代码生成应用程序包,并将应用程序包部署到待部署环境中。According to an aspect of the embodiment of the present application, an application deployment method is provided, the method includes: receiving an application deployment request; wherein, the application deployment request carries an object identifier to be deployed; according to the application deployment request, obtaining a general code Parameters, and obtain private configuration parameters that match the object identifiers to be deployed from the private configuration parameter list; wherein, the private configuration parameter list includes multiple object identifiers, and private configuration parameters corresponding to multiple object identifiers; based on private Configure parameters to obtain private code parameters, and obtain the code to be compiled according to the general code parameters and private code parameters; generate an application package based on the code to be compiled, and deploy the application package to the environment to be deployed.
根据本申请实施例的一个方面,提供了一种应用程序部署装置,装置包括:请求获取模块,配置为接收应用程序部署请求;其中,应用程序部署请求中携带有待部署的对象标识;参数匹配模块,配置为根据应用程序部署请求,获取通用代码参数,以及从私有配置参数列表中获取与待部署的对象标识相匹配的私有配置参数;其中,私有配置参数列表中包括多个对象标识,以及与多个对象标识对应的私有配置参数;待编译代码获取模块,配 置为基于私有配置参数获取私有代码参数,并根据通用代码参数以及私有代码参数得到待编译代码;部署模块,配置为基于待编译代码生成应用程序包,并将应用程序包部署到待部署环境中。According to an aspect of the embodiment of the present application, an application deployment device is provided, and the device includes: a request acquisition module configured to receive an application deployment request; wherein, the application deployment request carries an object identifier to be deployed; a parameter matching module , configured to obtain common code parameters according to the application deployment request, and to obtain private configuration parameters matching the object identifier to be deployed from the private configuration parameter list; wherein, the private configuration parameter list includes multiple object identifiers, and The private configuration parameters corresponding to multiple object identifiers; the code-to-be-compiled acquisition module is configured to obtain private code parameters based on private configuration parameters, and obtains the code to be compiled according to the general code parameters and private code parameters; the deployment module is configured to be based on the code to be compiled Generate an application package and deploy the application package to the environment to be deployed.
根据本申请实施例的一个方面,提供了一种电子设备,包括一个或多个处理器;存储装置,用于存储一个或多个程序,当一个或多个程序被电子设备执行时,使得电子设备实现如上的应用程序部署方法。According to an aspect of an embodiment of the present application, an electronic device is provided, including one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the electronic device, the electronic device The device implements the above application program deployment method.
根据本申请实施例的一个方面,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现如上的应用程序部署方法。According to an aspect of the embodiments of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the above method for deploying an application program is implemented.
根据本申请实施例的一个方面,提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令被处理器执行时实现如上的应用程序部署方法。According to an aspect of the embodiments of the present application, a computer program product is provided, the computer program product includes computer instructions, and when the computer instructions are executed by a processor, the above method for deploying an application program is implemented.
在本申请的实施例提供的技术方案中,通过接收应用程序部署请求;其中,应用程序部署请求中携带有待部署的对象标识;根据应用程序部署请求,获取通用代码参数,以及从私有配置参数列表中获取与待部署的对象标识相匹配的私有配置参数;通过将应用程序中的通用代码和每个用户对应的私有配置进行分离,使每个用户对应用程序的需求更加清晰直观,进而在每个用户进行应用程序部署时获取该用户的私有配置参数以及通用代码参数即可。然后基于私有配置参数获取私有代码参数,并根据通用代码参数以及私有代码参数得到待编译代码;基于待编译代码生成应用程序包,并将应用程序包部署到待部署环境中;进而使该用户对应部署的应用程序包仅包含通用代码参数以及私有代码参数,使每个用户的应用程序的代码逻辑更加统一,以便于后续对应用程序的维护,提高程序构建的效率和灵活性。In the technical solution provided by the embodiment of this application, by receiving the application deployment request; wherein, the application deployment request carries the object identifier to be deployed; according to the application deployment request, obtain the general code parameters, and from the private configuration parameter list obtain the private configuration parameters that match the object ID to be deployed; by separating the common code in the application from the private configuration corresponding to each user, each user's requirements for the application are clearer and more intuitive, and then in When a user deploys an application, it only needs to obtain the user's private configuration parameters and common code parameters. Then obtain the private code parameters based on the private configuration parameters, and obtain the code to be compiled according to the general code parameters and the private code parameters; generate an application package based on the code to be compiled, and deploy the application package to the environment to be deployed; and then make the user correspond to The deployed application package only contains common code parameters and private code parameters, which makes the code logic of each user's application more unified, facilitates subsequent maintenance of the application, and improves the efficiency and flexibility of program construction.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术者来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。在附图中:The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application. Apparently, the drawings in the following description are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative efforts. In the attached picture:
图1是可以应用本申请实施例的技术方案的示例性应用环境的示意图;Fig. 1 is a schematic diagram of an exemplary application environment to which the technical solutions of the embodiments of the present application can be applied;
图2是本申请的一示例性实施例示出的应用程序部署方法的流程图;Fig. 2 is a flowchart of an application deployment method shown in an exemplary embodiment of the present application;
图3是本申请的一示例性实施例示出的获取私有配置参数的流程示意图;Fig. 3 is a schematic flow diagram of obtaining private configuration parameters shown in an exemplary embodiment of the present application;
图4是本申请的一示例性实施例示出的根据私有语言数据修改通用语言数据的流程示意图;Fig. 4 is a schematic flow diagram of modifying general language data according to private language data according to an exemplary embodiment of the present application;
图5是本申请的一示例性实施例示出的获取页面数据的流程示意图;Fig. 5 is a schematic flow diagram of obtaining page data according to an exemplary embodiment of the present application;
图6是本申请的一示例性实施例示出的应用程序部署方法的流程示意图;Fig. 6 is a schematic flowchart of an application deployment method shown in an exemplary embodiment of the present application;
图7是本申请的一示例性实施例示出的应用程序部署装置的框图;Fig. 7 is a block diagram of an application deployment device shown in an exemplary embodiment of the present application;
图8是适于用来实现本申请实施例的电子设备的计算机系统的结构示意图。Fig. 8 is a schematic structural diagram of a computer system suitable for implementing the electronic device of the embodiment of the present application.
这里将详细地对示例性实施例执行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相同的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相同的装置和方法的例子。Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all the same embodiments as the present application. Rather, they are merely examples of apparatuses and methods in common with aspects of the application as recited in the appended claims.
附图中所示的方框图仅仅是功能实体,不一定必须与物理上独立的实体相对应。即,可以采用应用程序形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。The block diagrams shown in the drawings are merely functional entities and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in the form of application programs, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices. functional entity.
附图中所示的流程图仅是示例性说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解,而有的操作/步骤可以合并或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flow charts shown in the drawings are only exemplary illustrations, and do not necessarily include all contents and operations/steps, nor must they be performed in the order described. For example, some operations/steps can be decomposed, and some operations/steps can be combined or partly combined, so the actual order of execution may be changed according to the actual situation.
需要说明的是,在本申请中提及的“多个”是指两个或者两个以上。“和/或”描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。It should be noted that the "plurality" mentioned in this application refers to two or more than two. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships. For example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently. The character "/" generally indicates that the contextual objects are an "or" relationship.
示例性地在本实施例中,上述应用程序部署方法可以应用于如图1所示的由服务端110和终端120所构成的硬件环境中。图1是根据本申请实施例的一种应用程序部署方法的硬件环境的示意图,如图1所示,服务端110通过网络与终端120进行连接,上述网络包括但不限于:广域网、城域网或局域网。Exemplarily in this embodiment, the above application deployment method may be applied to a hardware environment composed of a
其中,服务端110指的是应用程序部署方法所对应的服务器;其中,服务器可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN(Content Delivery Network,内容分发网络)以及大数据和人工智能平台等基础云计算服务的云服务器,本申请对此不进行限定。Wherein, the
其中,终端120可以是智能手机、平板、笔记本电脑、计算机、车载终端等电子设备,本申请对此不进行限定。Wherein, the
本申请实施例的应用程序部署方法可以由服务端110来执行,也可以由终端120来执行,还可以是由服务端110和终端120共同执行。其中,终端120执行本申请实施例的应用程序部署方法也可以是由安装在其上的客户端来执行。The application deployment method in this embodiment of the present application may be executed by the
请参阅图2,图2是本申请的一个实施例示出的应用程序部署方法的流程图。如图2所示,应用程序部署方法至少包括步骤S210至步骤S240,详细介绍如下:Please refer to FIG. 2 . FIG. 2 is a flowchart of an application deployment method according to an embodiment of the present application. As shown in Figure 2, the application deployment method includes at least steps S210 to S240, which are described in detail as follows:
步骤S210、接收应用程序部署请求;其中,应用程序部署请求中携带有待部署的对象标识。Step S210, receiving an application deployment request; wherein, the application deployment request carries an identifier of an object to be deployed.
其中,应用程序部署请求用于请求将指定的应用程序部署到待部署环境中。被指定的应用程序可以是全球广域网(World Wide Web,简称WEB)应用程序,WEB应用程序是 指可以通过Web访问的应用程序,用户只需要有浏览器即可以访问WEB应用程序,不需要再安装其他软件;被指定的应用程序还可以是需要下载并进行安装的终端应用程序,其运行在终端的操作系统上,操作系统包括但不限于windows操作系统、linux操作系统、Android操作系统等。Wherein, the application program deployment request is used to request to deploy the specified application program to the environment to be deployed. The specified application program can be a global wide area network (World Wide Web, referred to as WEB) application program. WEB application program refers to an application program that can be accessed through the Web. Users only need to have a browser to access WEB application programs without installing Other software; the specified application program can also be a terminal application program that needs to be downloaded and installed, which runs on the terminal operating system, including but not limited to windows operating system, linux operating system, and Android operating system.
可以理解的是,应用程序部署请求可以是由终端生成并发送的,也可以是由服务器生成并发送的,本申请对此不做限定。It can be understood that the application deployment request may be generated and sent by the terminal, or may be generated and sent by the server, which is not limited in this application.
本申请示例性实施例中,应用程序部署请求中携带有待部署的对象标识,待部署的对象是指需要使用该应用程序的对象,例如需要使用该应用程序的用户。In the exemplary embodiment of the present application, the application deployment request carries an identifier of an object to be deployed, and the object to be deployed refers to an object that needs to use the application, for example, a user who needs to use the application.
通过接收应用程序部署请求,并解析应用程序部署请求得到该请求中携带的待部署的对象标识,以通过待部署的对象标识得到待部署的对象。By receiving the application deployment request and parsing the application deployment request to obtain the object identifier to be deployed carried in the request, the object to be deployed is obtained through the object identifier to be deployed.
步骤S220、根据应用程序部署请求,获取通用代码参数,以及从私有配置参数列表中获取与待部署的对象标识相匹配的私有配置参数;其中,私有配置参数列表中包括多个对象标识,以及与多个对象标识对应的私有配置参数。Step S220, obtain common code parameters according to the application deployment request, and obtain private configuration parameters matching the object ID to be deployed from the private configuration parameter list; wherein, the private configuration parameter list includes multiple object IDs, and Private configuration parameters corresponding to multiple object IDs.
其中,通用代码参数是指对于不同待部署对象需求的应用程序中均需要包含的参数,私有配置参数是指对于各个待部署对象需求的应用程序中与其它待部署对象需求的应用程序不同的参数。Among them, the general code parameters refer to the parameters that need to be included in the application programs that require different objects to be deployed, and the private configuration parameters refer to the parameters that are different from the applications required by other objects to be deployed. .
示例性地,私有配置参数列表中包含有多个对象标识以及与每个对象标识对应的私有配置参数;通过解析应用程序部署请求得到该应用程序部署请求中携带的待部署的对象标识,然后将待部署的对象标识与私有配置参数列表中的对象标识进行对比,以得到私有配置参数列表中与待部署的对象标识匹配的对象标识对应的私有配置参数。Exemplarily, the private configuration parameter list contains multiple object identifiers and private configuration parameters corresponding to each object identifier; the object identifier to be deployed carried in the application deployment request is obtained by parsing the application deployment request, and then the The object identifier to be deployed is compared with the object identifier in the private configuration parameter list to obtain the private configuration parameter corresponding to the object identifier matching the object identifier to be deployed in the private configuration parameter list.
示例性地,本实施例中在通过私有配置列表来获取与待部署的对象标识相匹配的私有配置参数时,可以基于待部署的对象标识,通过字符匹配的方式从私有配置列表中选取对应的私有配置参数。Exemplarily, in this embodiment, when obtaining the private configuration parameters matching the object ID to be deployed through the private configuration list, the corresponding parameter can be selected from the private configuration list by character matching based on the object ID to be deployed. Private configuration parameters.
示例性地,待部署的对象标识对应的字符串为A={A1,A2,…,Ai,…,An,},1≤i≤n,i和n为大于1的自然数。以待部署的对象标识的第一个字符A1开始,先确定各字符Ai对应的绝对字符值为Ai2,之后基于绝对字符值计算待部署的对象标识中的各字符与私有配置列表中字符串B={B1,B2,…,Bi,…,Bn,}中字符Ai之间的字符距离di为:Exemplarily, the character string corresponding to the object identifier to be deployed is A={A1 , A2 ,. .. , A i , . Starting with the first character A1 of the object ID to be deployed, first determine the absolute character value of each character Ai corresponding to Ai2 , and then calculate each character in the object ID to be deployed and the private configuration list based on the absolute character value The character distance di between the characters Ai in the character string B={B1 , B2 ,...,Bi ,...,Bn ,} is:
di=|Ai2-Bi2|di =|Ai2 -Bi2 |
基于字符距离确定待部署的对象标识与私有配置列表中字符串之间的距离为:Determine the distance between the object identifier to be deployed and the character string in the private configuration list based on the character distance:
选取字符距离为0时的参数作为私有配置参数;若不存在字符距离为0,则选取字符距离最小时对应的参数作为私有配置参数。通过上述字符匹配的方式,从私有配置列表中的各个字符串中确定与待部署的对象标识最匹配的私有配置参数,提高了私有配置参数确定时的效率和精确性。Select the parameter when the character distance is 0 as the private configuration parameter; if there is no character distance of 0, select the corresponding parameter when the character distance is the smallest as the private configuration parameter. By means of the above character matching, the private configuration parameters that best match the object identifier to be deployed are determined from each character string in the private configuration list, which improves the efficiency and accuracy of determining the private configuration parameters.
在一些实施方式中,在接收应用程序部署请求之后,方法还包括:调用私有配置参数列表获取函数,以根据私有配置参数列表获取函数获取私有配置参数列表。In some implementations, after receiving the application deployment request, the method further includes: calling a private configuration parameter list acquisition function to acquire the private configuration parameter list according to the private configuration parameter list acquisition function.
其中,私有配置参数列表获取函数用于自动获取私有配置参数列表;例如,私有配置参数列表获取函数可以为webpack中的require.context函数,require.context函数用于获取一个特定的上下文,主要用来实现自动化导入模块,如果遇到从一个文件夹引入很多模块的情况,可以使用require.context函数,它会遍历文件夹中的指定文件,然后自动导入。其中,webpack是一个模块打包器,它的主要目标是将JavaScript文件打包在一起,打包后的文件用于在浏览器中使用。Among them, the private configuration parameter list acquisition function is used to automatically obtain the private configuration parameter list; for example, the private configuration parameter list acquisition function can be the require.context function in webpack, and the require.context function is used to obtain a specific context, mainly for To realize automatic import of modules, if you encounter the situation of importing many modules from a folder, you can use the require.context function, which will traverse the specified files in the folder and then import them automatically. Among them, webpack is a module packager, its main goal is to package JavaScript files together, and the packaged files are used in browsers.
通过私有配置参数列表获取函数自动导入各个待部署对象的私有配置参数,以得到私有配置参数列表。通过私有配置参数列表获取函数自动导入得到私有配置参数列表的方式,减少了手动获取私有配置参数列表的过程,进而简化应用程序的部署流程,提高应用程序的部署效率。The private configuration parameter list of each to-be-deployed object is automatically imported through the acquisition function of the private configuration parameter list to obtain the private configuration parameter list. The method of automatically importing the private configuration parameter list through the acquisition function of the private configuration parameter list reduces the process of manually obtaining the private configuration parameter list, thereby simplifying the deployment process of the application program and improving the deployment efficiency of the application program.
在一些实施方式中,应用程序部署请求中还携带有待部署的环境信息,私有配置参数包括多个部署环境下的私有配置参数;从私有配置参数列表中获取与待部署的对象标识相匹配的私有配置参数,包括:从私有配置参数列表中获取与待部署的对象标识相匹配的多个部署环境下的私有配置参数;根据待部署的环境信息,从多个部署环境下的私有配置参数中获取与待部署的环境信息相匹配的私有配置参数。In some implementations, the application deployment request also carries environment information to be deployed, and the private configuration parameters include private configuration parameters in multiple deployment environments; obtain the private configuration parameter matching the object identifier to be deployed from the private configuration parameter list. Configuration parameters, including: obtaining private configuration parameters in multiple deployment environments that match the object ID to be deployed from the private configuration parameter list; obtaining private configuration parameters in multiple deployment environments according to the environment information to be deployed Private configuration parameters matching the environment information to be deployed.
其中,待部署的环境信息是指待部署对象所对应的环境信息。Wherein, the environment information to be deployed refers to the environment information corresponding to the object to be deployed.
示例性地,待部署对象的环境信息包括但不限于软件开发环境、软件测试环境、软件生产环境等。软件开发环境(Software Development Environment,简称SDE)是指在基本硬件和数字软件的基础上,为支持系统软件和应用程序的工程化开发和维护而使用的一组软件,简称SDE,由软件工具和环境集成机制构成,软件工具用以支持应用程序开发的相关过程、活动和任务,环境集成机制为工具集成和应用程序的开发、维护及管理提供统一的支持。软件测试环境(Testing environment)是指测试运行其上的软件和硬件环境的描述,以及任何其它与被测应用程序交互的软件,软件测试环境是指为了完成软件测试工作所必需的计算机硬件、软件、网络设备、历史数据的总称。软件生产环境是指线上环境,即真实用户使用的环境。可以理解的是,待部署对象的环境信息还可以包括其它环境,例如预发布环境等,本申请对此不做限定。Exemplarily, the environment information of the object to be deployed includes, but is not limited to, a software development environment, a software testing environment, a software production environment, and the like. Software Development Environment (Software Development Environment, referred to as SDE) refers to a set of software used to support the engineering development and maintenance of system software and application programs on the basis of basic hardware and digital software. Environment integration mechanism constitutes, software tools are used to support related processes, activities and tasks of application development, and environment integration mechanism provides unified support for tool integration and application development, maintenance and management. Software testing environment (Testing environment) refers to the description of the software and hardware environment on which the test runs, and any other software that interacts with the application program under test. The software testing environment refers to the computer hardware and software necessary to complete the software testing work. , network equipment, and historical data in general. The software production environment refers to the online environment, that is, the environment used by real users. It can be understood that the environment information of the object to be deployed may also include other environments, such as a pre-release environment, which is not limited in this application.
例如,私有配置参数的内容可以如下(仅示例出部分内容):For example, the content of private configuration parameters can be as follows (only part of the content is shown):
本申请示例性实施例中,私有配置参数包括多个部署环境下的私有配置参数,通过对象标识获取与待部署的对象匹配的多个部署环境下的私有配置参数,然后根据待部署的对象的环境信息,获取与该环境信息匹配的私有配置参数。In the exemplary embodiment of the present application, the private configuration parameters include private configuration parameters in multiple deployment environments, the private configuration parameters in multiple deployment environments that match the object to be deployed are acquired through the object identifier, and then according to the Environment information, get the private configuration parameters that match the environment information.
例如,请参阅图3,图3为获取私有配置参数的流程示意图。如图3所示,获取私有配置参数可以包括步骤S310至S360:For example, please refer to FIG. 3 , which is a schematic flowchart of obtaining private configuration parameters. As shown in Figure 3, obtaining private configuration parameters may include steps S310 to S360:
步骤S310、从私有配置参数列表中取出任一私有配置参数;Step S310, taking out any private configuration parameter from the list of private configuration parameters;
步骤S320、获取私有配置参数列表中取出的私有配置参数的对象标识以及环境信息;Step S320, obtaining the object identifier and environment information of the private configuration parameters extracted from the private configuration parameter list;
步骤S330、判断取出的私有配置参数的对象标识以及环境信息与应用程序部署请求携带的待部署的对象标识以及环境信息是否一致,若一致则执行步骤S340,若不一致则执行步骤S350;Step S330, judging whether the object identifier and environment information of the extracted private configuration parameters are consistent with the object identifier and environment information to be deployed carried in the application deployment request, if they are consistent, execute step S340, and if not, execute step S350;
步骤S340、将取出的私有配置参数作为该待部署的对象的私有配置参数;Step S340, using the retrieved private configuration parameters as the private configuration parameters of the object to be deployed;
步骤S350、判断私有配置参数列表中是否存在未取出的私有配置参数,若存在未取出的私有配置参数,则执行步骤S310,若不存在未取出的私有配置参数,则执行步骤S360;Step S350, judging whether there are unretrieved private configuration parameters in the private configuration parameter list, if there are unretrieved private configuration parameters, execute step S310, if there are no unretrieved private configuration parameters, execute step S360;
步骤S360、将空对象作为待部署的对象的私有配置参数。Step S360, using an empty object as a private configuration parameter of the object to be deployed.
其中,若私有配置参数列表中的所有私有配置参数的对象标识以及环境信息与应用程序部署请求携带的待部署的对象标识以及环境信息不一致,则表明该待部署对象在该环境信息下不存在私有配置参数列表,因此该待部署对象的私有配置参数列表为空。Wherein, if the object identifiers and environment information of all private configuration parameters in the private configuration parameter list are inconsistent with the object identifiers and environment information carried in the application deployment request, it indicates that the object to be deployed does not have private information under the environment information. Configuration parameter list, so the private configuration parameter list of the object to be deployed is empty.
通过对私有配置参数列表中每一私有配置参数的对象标识以及环境信息进行匹配,进而得到与应用程序部署请求携带的待部署的对象标识以及环境信息一致的私有配置参数。By matching the object identifier and environment information of each private configuration parameter in the private configuration parameter list, the private configuration parameters consistent with the object identifier to be deployed and the environment information carried in the application deployment request are obtained.
在一些实施方式中,在根据应用程序部署请求,获取通用代码参数,以及从私有配置参数列表中获取与待部署的对象标识相匹配的私有配置参数之前,方法还包括:获取多个对象标识以及与多个对象标识对应的私有配置参数;将多个对象标识以及与多个对象标识对应的私有配置参数进行关联,生成私有配置参数列表。In some implementations, before obtaining the common code parameters according to the application deployment request, and obtaining the private configuration parameters matching the object identifiers to be deployed from the private configuration parameter list, the method further includes: obtaining multiple object identifiers and The private configuration parameters corresponding to multiple object identifiers; associating the multiple object identifiers with the private configuration parameters corresponding to the multiple object identifiers to generate a list of private configuration parameters.
示例性地,获取多个对象标识以及与多个对象标识对应的私有配置参数,可以是技术人员在应用程序的开发阶段对各个待部署对象的私有配置参数进行配置,以将每个待部署对象的私有配置参数以及每个待部署对象的对象标识进行关联保存,进而得到私有配置参数列表。Exemplarily, obtaining multiple object identifiers and private configuration parameters corresponding to multiple object identifiers may be that technicians configure private configuration parameters of each object to be deployed during the development stage of the application program, so that each object to be deployed The private configuration parameters and the object identifier of each object to be deployed are stored associatively, and then the list of private configuration parameters is obtained.
示例性地,获取多个对象标识以及与多个对象标识对应的私有配置参数,还可以是接收待部署对象对应用程序执行的应用定制输入操作,根据应用定制输入操作得到私有配置参数,以将每个待部署对象的私有配置参数以及每个待部署对象的对象标识进行关联保存,进而得到私有配置参数列表;例如用户可以在应用定制输入界面执行应用定制输入操作,如修改页面中各个控件的部署位置、修改页面之间的跳转关系、修改页面中使用的语言等,然后根据用户执行的应用定制输入操作得到私有配置参数,并将该用户的用户信息获取待部署的对象标识,进而将对象标识以及私有配置参数进行关联存储。Exemplarily, obtaining multiple object identifiers and private configuration parameters corresponding to the multiple object identifiers may also be receiving an application customization input operation performed by the object to be deployed on the application program, and obtaining private configuration parameters according to the application customization input operation, so as to The private configuration parameters of each object to be deployed and the object identifier of each object to be deployed are associated and saved to obtain a list of private configuration parameters; for example, users can perform application customization input operations on the application customization input interface, such as modifying the settings of each control on the page Deploy the location, modify the jump relationship between pages, modify the language used in the page, etc., and then obtain the private configuration parameters according to the application customization input operation performed by the user, and obtain the user information of the user to be deployed. Object IDs and private configuration parameters are stored associatively.
在一些实施方式中,获取多个对象标识以及与多个对象标识对应的私有配置参数,包括:基于接收到的对象标识的输入操作,得到各个对象标识;以及,基于接收到的私有配置数据项的输入操作,得到各个对象标识的私有配置数据项,并基于各个对象标识对应的私有配置数据项,生成各个对象标识对应的私有配置参数。In some implementations, obtaining multiple object identifiers and private configuration parameters corresponding to the multiple object identifiers includes: obtaining each object identifier based on the input operation of the received object identifiers; and, based on the received private configuration data items The input operation to obtain the private configuration data item of each object identifier, and generate the private configuration parameter corresponding to each object identifier based on the private configuration data item corresponding to each object identifier.
其中,私有配置数据项是指对应用程序的某一类型的数据进行配置的参数,例如,私有配置数据项包括但不限于对应用程序的页面进行配置的参数、对应用程序的语言进行配置的参数、对应用程序的执行逻辑进行配置的参数等。Among them, the private configuration data item refers to the parameter for configuring a certain type of data of the application program. For example, the private configuration data item includes but is not limited to the parameter for configuring the page of the application program, and the parameter for configuring the language of the application program. Parameters, parameters that configure the execution logic of the application, etc.
示例性地,私有配置参数包括多个私有配置数据项,通过接收每个私有配置数据项的输入操作得到私有配置参数,并通过接收对象标识的输入操作得到该私有配置参数对应的对象标识,以将该私有配置参数以及该对象标识进行关联。Exemplarily, the private configuration parameter includes a plurality of private configuration data items, the private configuration parameter is obtained by receiving the input operation of each private configuration data item, and the object identifier corresponding to the private configuration parameter is obtained by receiving the input operation of the object identifier, to Associate the private configuration parameter with the object ID.
在一些实施方式中,私有配置数据项的内容包括路径信息,路径信息是指在磁盘上寻找文件时所历经的文件夹线路;路径分为绝对路径和相对路径;绝对路径是从根文件夹开始的路径,相对路径是从当前文件夹开始的路径。路径信息包括但不限于私有语言路径信息、私有页面路径信息等,通过路径信息查找到该路径信息下的资源文件。In some embodiments, the content of the private configuration data item includes path information, and the path information refers to the folder line traversed when looking for files on the disk; the path is divided into an absolute path and a relative path; the absolute path starts from the root folder The relative path is the path starting from the current folder. The path information includes but not limited to private language path information, private page path information, etc., and the resource files under the path information can be found through the path information.
可以理解的是,私有配置数据项中的路径信息下不一定存在对应的资源文件,因此需要确认路径信息下是否存在资源文件。It can be understood that there may not be a corresponding resource file under the path information in the private configuration data item, so it is necessary to confirm whether there is a resource file under the path information.
示例性地,以路径信息包括私有语言路径信息且资源文件包括私有语言文件为例,对获取资源文件的过程进行说明:获取私有配置参数中包含的私有语言路径信息,根据私有语言路径信息查询该路径信息下是否存在私有语言文件,若存在则获取该私有语言文件,若不存在则该待部署对象的私有配置参数中的私有语言文件为空。Exemplarily, taking path information including private language path information and resource files including private language files as an example, the process of obtaining resource files is described: obtain private language path information contained in private configuration parameters, query the private language path information according to the Whether there is a private language file under the path information, if it exists, get the private language file, if it does not exist, the private language file in the private configuration parameters of the object to be deployed is empty.
但是,若是路径信息存在错误时,则会导致资源文件获取失败。因此,本申请示例性实施例在私有配置数据项的输入过程中添加监测步骤,以保证输入的私有配置数据项中的路径信息的正确性。However, if there is an error in the path information, the acquisition of the resource file will fail. Therefore, the exemplary embodiment of the present application adds a monitoring step in the input process of the private configuration data item, so as to ensure the correctness of the path information in the input private configuration data item.
示例性地,基于接收到的私有配置数据项的输入操作,得到各个对象标识的私有配置数据项,包括:监测私有配置数据项的输入操作,根据输入操作获取预输入的路径信息;检测预输入的路径信息是否存在资源数据;若预输入的路径信息存在资源数据,则根据预输入的路径信息得到私有配置数据项;若预输入的路径信息不存在资源数据,则生成不存在资源数据的提示信息。Exemplarily, based on the received input operation of the private configuration data item, obtaining the private configuration data item identified by each object includes: monitoring the input operation of the private configuration data item, obtaining pre-input path information according to the input operation; detecting the pre-input Whether there is resource data in the path information; if there is resource data in the pre-input path information, get the private configuration data item according to the pre-input path information; if there is no resource data in the pre-input path information, generate a prompt that there is no resource data information.
示例性地,在私有配置参数的输入界面接收私有配置数据项的输入操作,私有配置数据项的输入操作中包括路径信息的输入操作,根据路径信息的输入操作获取预输入的路径信息。Exemplarily, an input operation of a private configuration data item is received on the input interface of the private configuration parameter, the input operation of the private configuration data item includes an input operation of path information, and pre-input path information is obtained according to the input operation of the path information.
进一步地,检测预输入的路径信息下是否存在资源文件,若预输入的路径信息下存在资源文件,则根据预输入的路径信息得到私有配置数据项;若预输入的路径信息下不存在资源文件,则向执行输入操作的对象显示不存在资源数据的提示信息,例如对该预输入的路径信息进行突出显示,或者对该预输入的路径信息显示对应的弹窗提示,以提示执行输入操作的对象预输入的路径信息下不存在资源数据。例如,可以基于ESLint对私有配置数据项的输入操作进行检测,ESLint是一个语法规则和代码风格的检查工具,可以用来保证写出语法正确、风格统一的代码。Further, detect whether there is a resource file under the pre-input path information, if there is a resource file under the pre-input path information, then obtain the private configuration data item according to the pre-input path information; if there is no resource file under the pre-input path information , then display a prompt message that there is no resource data to the object performing the input operation, for example, highlight the pre-input path information, or display a corresponding pop-up window prompt for the pre-input path information to prompt the user of the input operation There is no resource data under the path information of the object pre-typed. For example, the input operation of private configuration data items can be detected based on ESLint. ESLint is a checking tool for grammar rules and code style, which can be used to ensure that code with correct grammar and uniform style is written.
通过在私有配置参数的生产过程中即对私有配置参数中包含的路径信息进行判断,以保证输入的路径信息的正确性,避免在代码编译过程中因为路径错误而导致资源文件加载失败,并且可以减少代码编译过程中对路径信息下是否存在资源文件的判断步骤,提高代码编译的效率。By judging the path information contained in the private configuration parameters during the production process of the private configuration parameters, to ensure the correctness of the input path information, to avoid resource file loading failures caused by path errors during the code compilation process, and to be able to Reduce the steps of judging whether there are resource files under the path information during the code compilation process, and improve the efficiency of code compilation.
步骤S230、基于私有配置参数获取私有代码参数,并根据通用代码参数以及私有代码参数得到待编译代码。Step S230, obtaining private code parameters based on private configuration parameters, and obtaining code to be compiled according to general code parameters and private code parameters.
其中,私有代码参数是指应用程序实现过程中所需要的具体的代码数据,以通过私有代码参数以及通用代码参数得到待编译代码。Wherein, the private code parameter refers to the specific code data required in the implementation process of the application program, so that the code to be compiled can be obtained through the private code parameter and the common code parameter.
在一些实施方式中,私有代码参数包括私有语言数据,通用代码参数包括通用语言数据;基于私有配置参数获取私有代码参数,并根据通用代码参数以及所述私有代码参数得到待编译代码,包括:获取私有配置参数中包含的私有语言路径信息;获取私有语言路径信息对应的私有语言数据;基于私有语言数据以及通用代码参数中含有的通用语言数据,得到待编译代码。In some implementations, the private code parameters include private language data, and the general code parameters include general language data; obtain the private code parameters based on the private configuration parameters, and obtain the code to be compiled according to the general code parameters and the private code parameters, including: obtaining The private language path information included in the private configuration parameters; the private language data corresponding to the private language path information is obtained; the code to be compiled is obtained based on the private language data and the general language data contained in the general code parameters.
通过私有配置参数中包含的私有语言路径信息获取私有语言数据,以根据私有语言参数以及通用代码参数中含有的通用语言数据,得到待编译的代码。The private language data is obtained through the private language path information contained in the private configuration parameters, so as to obtain the code to be compiled according to the private language parameters and the general language data contained in the general code parameters.
由于不同用户对应用程序所显示的语言的需求可能不同,以及同一用户在不同场景下对应用程序所显示的语言的需求也可能不同。例如,公司A对于第一区域内使用的应用程序默认显示的语言为第一语言,默认显示的翻译语言为第二语言;对于第二区域内使用的应用程序默认显示的语言为第一语言,默认显示的翻译语言为第三语言,因此,通过私有语言数据满足不同用户对应用程序显示的语言的不同需求。Because different users may have different requirements for the language displayed by the application program, and the same user may also have different requirements for the language displayed by the application program in different scenarios. For example, company A uses the first language as the default display language for the application programs used in the first area, and the second language as the default translation language for the application programs used in the second area; the default display language for the application programs used in the second area is the first language, The default displayed translation language is the third language, therefore, the different needs of different users for the language displayed by the application are met through private language data.
在一些实施方式中,私有语言数据包括私有语言修改规则以及私有语言修改数据;基于私有语言数据以及通用代码参数中的通用语言数据,得到待编译代码,包括:基于私有语言修改规则,将通用代码参数中的通用语言数据修改为私有语言修改数据,以得到待编译代码。In some implementations, the private language data includes private language modification rules and private language modification data; based on the private language data and the general language data in the general code parameters, the code to be compiled is obtained, including: based on the private language modification rules, converting the general code The general language data in the parameter is modified to the private language modification data, so as to obtain the code to be compiled.
其中,私有语言修改数据是指进行语言数据修改所对应的目标对象,私有语言修改规 则用于指示将通用语言数据修改为私有语言修改数据的具体实施步骤。Among them, the private language modification data refers to the target object corresponding to the language data modification, and the private language modification rules are used to indicate the specific implementation steps of modifying the general language data into the private language modification data.
根据私有语言修改规则以及私有语言修改数据,对通用代码参数中的通用语言数据进行修改,可以是根据私有语言修改数据对所有通用语言数据进行替换;也可以是根据私有语言修改数据对部分通用语言数据进行替换;还可以是对私有语言修改数据以及通用语言数据进行合并。Modify the general language data in the general code parameters according to the private language modification rules and private language modification data, which can be to replace all the general language data according to the private language modification data; or to modify some general language data according to the private language modification data Data can be replaced; private language modification data and general language data can also be merged.
示例性地,通用语言数据包括应用程序默认显示的通用语言显示数据以及应用程序默认显示的通用翻译语言显示数据中的至少一者,私有语言修改数据包括应用程序默认显示的私有语言显示数据以及应用程序默认显示的私有翻译语言显示数据中的至少一者。Exemplarily, the general language data includes at least one of the general language display data displayed by default by the application program and the general translation language display data displayed by the application program by default, and the private language modification data includes the private language display data displayed by default by the application program and the application program At least one of the private translation language display data displayed by default by the program.
例如,若私有语言修改数据包括应用程序默认显示的私有语言显示数据,则在对应用程序默认显示的通用语言显示数据进行加载后,根据私有语言修改数据获取私有语言修改范围,将私有语言修改范围中的通用语言显示数据替换为私有语言显示数据,以得到修改后的待编译代码。For example, if the private language modification data includes the private language display data displayed by the application program by default, after loading the general language display data displayed by the application program by default, the private language modification range is obtained according to the private language modification data, and the private language modification range The general language display data in is replaced with the private language display data to obtain the modified code to be compiled.
例如,若私有语言修改数据包括应用程序默认显示的私有翻译语言显示数据,则在对应用程序默认显示的通用翻译语言显示数据进行加载后,根据私有语言修改数据获取私有语言修改范围,将私有语言修改范围中的通用翻译语言显示数据替换为私有翻译语言显示数据,以得到修改后的待编译代码。For example, if the private language modification data includes the private translation language display data displayed by default by the application, after loading the general translation language display data displayed by default by the application, the private language modification range is obtained according to the private language modification data, and the private language The common translation language display data in the modification range is replaced with the private translation language display data to obtain the modified code to be compiled.
示例性地,请参阅图4,图4为根据私有语言数据修改通用语言数据的流程示意图。如图4所示,根据私有语言数据修改通用语言数据可以包括步骤S410至步骤S440:For example, please refer to FIG. 4 , which is a schematic flowchart of modifying general language data according to private language data. As shown in Figure 4, modifying the general language data according to the private language data may include steps S410 to S440:
步骤S410、获取通用语言数据;其中,通用语言数据包括应用程序的通用语言显示数据以及通用翻译语言显示数据中的至少一者。Step S410, acquiring common language data; wherein, the common language data includes at least one of common language display data and common translation language display data of the application program.
步骤S420、判断私有配置参数中是否包含私有语言路径信息,若私有配置参数中包含私有语言路径信息,则执行步骤S430;若私有配置参数中不包含私有语言路径信息,则结束。Step S420, determine whether the private configuration parameters contain private language path information, if the private configuration parameters contain private language path information, execute step S430; if the private configuration parameters do not contain private language path information, end.
步骤S430、获取私有配置参数中包含的私有语言路径信息对应的私有语言数据;其中,私有语言数据包括应用程序的私有语言显示数据以及私有翻译语言显示数据中的至少一者。Step S430, acquiring private language data corresponding to the private language path information contained in the private configuration parameters; wherein the private language data includes at least one of the private language display data of the application program and the private translation language display data.
步骤S440、根据私有语言数据对通用语言数据进行修改;其中,修改包括根据私有语言数据对通用语言数据进行部分覆盖或全部覆盖,或根据私有语言数据对通用语言数据进行合并。Step S440, modify the general language data according to the private language data; wherein, the modification includes covering part or all of the general language data according to the private language data, or merging the general language data according to the private language data.
其中,根据私有语言数据对通用语言数据进行部分覆盖,是指将通用语言显示数据或通用翻译语言显示数据中的部分语言数据替换为私有语言显示数据或私有翻译语言显示数据;根据私有语言数据对通用语言数据进行全部覆盖,是指将通用语言显示数据或通用翻译语言显示数据中的全部语言数据替换为私有语言显示数据或私有翻译语言显示数据;根据私有语言数据对通用语言数据进行合并,是指将私有语言显示数据或私有翻译语言显示数据添加至通用语言显示数据或通用翻译语言显示数据中。Among them, partial coverage of general language data based on private language data refers to replacing part of the language data in general language display data or general translation language display data with private language display data or private translation language display data; Full coverage of general language data refers to replacing all language data in general language display data or general translation language display data with private language display data or private translation language display data; merging general language data based on private language data is Refers to adding private language display data or private translation language display data to general language display data or general translation language display data.
本申请示例性实施例通过私有配置参数中包含的私有语言路径信息获取私有语言数据,以根据私有语言参数以及通用代码参数中含有的通用语言数据,进而用户可以对应用程序中使用的语言数据进行定制,以根据用户的需求使应用程序向不同用户展示不同的语言数据。The exemplary embodiment of the present application obtains the private language data through the private language path information contained in the private configuration parameters, so that the user can further configure the language data used in the application according to the private language parameters and the general language data contained in the general code parameters. Customize to make the application display different language data to different users according to their needs.
在一些实施方式中,私有代码参数包括私有页面数据,通用代码参数包括通用页面数据;基于私有配置参数获取私有代码参数,并根据通用代码参数以及私有代码参数得到待编译代码,包括:获取私有配置参数中包含的私有页面路径信息;获取私有页面路径信息对应的私有页面数据;基于私有页面数据以及通用代码参数中的通用页面数据,得到待编译代码。In some implementations, the private code parameters include private page data, and the general code parameters include general page data; obtain the private code parameters based on the private configuration parameters, and obtain the code to be compiled according to the general code parameters and the private code parameters, including: obtaining the private configuration The private page path information included in the parameter; obtain the private page data corresponding to the private page path information; and obtain the code to be compiled based on the private page data and the general page data in the general code parameter.
通过私有配置参数中包含的私有页面路径信息获取私有页面数据,以根据私有页面数据以及通用代码参数中含有的通用页面数据,得到待编译的代码。The private page data is acquired through the private page path information included in the private configuration parameter, so as to obtain the code to be compiled according to the private page data and the general page data contained in the general code parameter.
由于不同用户对应用程序所显示的页面的需求可能不同,例如,公司A对于应用程序显示的页面包括第一页面、第二页面以及第三页面;公司B对于应用程序显示的页面包括第一页面、第二页面以及第四页面,因此,通过私有页面数据满足不同用户对应用程序显示的页面的不同需求。Because different users may have different requirements for the pages displayed by the application, for example, the pages displayed by company A for the application include the first page, the second page, and the third page; the pages displayed by company B for the application include the first page , the second page and the fourth page, therefore, the different needs of different users for the pages displayed by the application program are met through the private page data.
示例性地,私有页面数据中可以包含有应用程序的所有页面数据,请参阅图5,图5为获取页面数据的流程示意图。如图5所示,获取页面数据可以包括步骤S510至步骤S540:Exemplarily, the private page data may include all page data of the application program, please refer to FIG. 5 , which is a schematic flow chart of obtaining page data. As shown in Figure 5, acquiring page data may include steps S510 to S540:
步骤S510、判断私有配置参数中是否包括私有页面路径信息,若私有配置参数中包括私有页面路径信息,则执行步骤S520;若私有配置参数中不包括私有页面路径信息,则执行步骤S540。Step S510, determine whether private configuration parameters include private page path information, if private configuration parameters include private page path information, execute step S520; if private configuration parameters do not include private page path information, execute step S540.
步骤S520、判断私有配置参数中包括的私有页面路径信息是否存在对应的私有页面数据,若私有页面路径信息存在对应的私有页面数据,则执行步骤S530;若私有页面路径信息不存在对应的私有页面数据,则执行步骤S540。Step S520, determine whether the private page path information included in the private configuration parameters has corresponding private page data, if there is corresponding private page data in the private page path information, then perform step S530; if there is no corresponding private page in the private page path information data, execute step S540.
步骤S530、加载私有页面路径信息对应的私有页面数据。Step S530, loading the private page data corresponding to the private page path information.
步骤S540、加载通用代码参数中的通用页面数据。Step S540, loading the general page data in the general code parameter.
例如,通用代码参数中的通用页面数据包括第一页面、第二页面以及第三页面,公司A在私有页面路径信息下的私有页面数据包括第一页面、第二页面以及第四页面;在对公司A进行应用程序包部署过程中进行页面数据加载时,检测到公司A对应的私有配置参数中包含有私有页面路径信息,进而根据私有页面路径信息得到的私有页面数据为第一页面、第二页面以及第四页面。进一步地,若公司A对应的私有配置参数中不包含私有页面路径信息,或者通过公司A的私有页面路径信息获取不到私有页面数据,则直接加载通用页面数据为第一页面、第二页面以及第三页面,进而根据应用程序对应的页面数据得到代编译代码。For example, the general page data in the general code parameter includes the first page, the second page and the third page, and the private page data of company A under the private page path information includes the first page, the second page and the fourth page; When company A loads page data during application package deployment, it detects that the private configuration parameters corresponding to company A contain private page path information, and the private page data obtained according to the private page path information is the first page, the second page and the fourth page. Further, if the private configuration parameters corresponding to company A do not contain private page path information, or the private page data cannot be obtained through company A's private page path information, the general page data is directly loaded as the first page, the second page and The third page, and then obtain the compiled code according to the page data corresponding to the application program.
示例性地,私有页面数据包括私有页面修改规则以及私有页面修改数据。其中,私有页面修改数据中包含有应用程序的部分页面数据,私有页面修改数据是指进行页面数据修 改所对应的目标对象,私有页面修改规则用于指示将通用页面数据修改为私有页面修改数据的具体实施步骤。根据私有配置参数中的私有页面路径信息,得到私有页面修改规则以及私有页面修改数据,以根据私有页面修改规则,将通用页面数据修改为私有页面修改数据。其中,私有页面修改规则包括页面替换、页面删除以及页面增加。Exemplarily, the private page data includes private page modification rules and private page modification data. Among them, the private page modification data includes part of the page data of the application program, the private page modification data refers to the target object corresponding to the page data modification, and the private page modification rule is used to indicate the modification of the general page data to the private page modification data Specific implementation steps. According to the private page path information in the private configuration parameters, private page modification rules and private page modification data are obtained, so as to modify the general page data into private page modification data according to the private page modification rules. Wherein, the private page modification rules include page replacement, page deletion and page addition.
例如,通用页面数据包括第一页面数据、第二页面数据以及第三页面数据,私有页面修改数据包括第四页面数据;若私有页面修改规则为将通用页面数据中的第三页面数据替换为私有页面修改数据中的第四页面数据,则该应用程序对应的页面包括第一页面数据、第二页面数据以及第四页面数据;若私有页面修改规则为将通用页面数据中的第三页面数据进行删除,则该应用程序对应的页面包括第一页面数据以及第二页面数据;若私有页面修改规则为将私有页面修改数据中的第四页面数据增加至通用页面数据中,则该应用程序对应的页面包括第一页面数据、第二页面数据、第三页面数据以及第四页面数据,进而根据应用程序对应的页面数据得到代编译代码。For example, the general page data includes the first page data, the second page data, and the third page data, and the private page modification data includes the fourth page data; if the private page modification rule is to replace the third page data in the general page data with the private If the fourth page data in the page modification data, the page corresponding to the application includes the first page data, the second page data and the fourth page data; if the private page modification rule is to modify the third page data in the general page data Delete, the page corresponding to the application includes the first page data and the second page data; if the private page modification rule is to add the fourth page data in the private page modification data to the general page data, then the application corresponding to The pages include the first page data, the second page data, the third page data and the fourth page data, and then the compiled code is obtained according to the page data corresponding to the application program.
可以理解的是,根据私有页面数据以及通用代码参数中的通用页面数据得到待编译代码的具体实施步骤可以根据实际应用情况进行灵活设置,本申请对此不做限定。It can be understood that the specific implementation steps of obtaining the code to be compiled according to the private page data and the general page data in the general code parameter can be flexibly set according to the actual application situation, which is not limited in this application.
本申请示例性实施例通过私有配置参数中包含的私有页面路径信息获取私有页面数据,以根据私有页面数据以及通用代码参数中含有的通用页面数据,进而用户可以对应用程序中使用的页面数据进行定制,以根据用户的需求使应用程序向不同用户展示不同的页面数据。The exemplary embodiment of the present application obtains the private page data through the private page path information contained in the private configuration parameters, so that according to the private page data and the general page data contained in the general code parameters, the user can further configure the page data used in the application Customize to make the application display different page data to different users according to the user's needs.
在一些实施方式中,私有代码参数包括私有逻辑数据;基于私有配置参数获取私有代码参数,并根据通用代码参数以及私有代码参数得到待编译代码,包括:基于私有配置参数获取私有函数标识;获取与私有函数标识相匹配的函数代码段,并将函数代码段作为私有逻辑数据;基于私有逻辑数据以及通用代码参数,得到待编译代码。In some implementations, the private code parameters include private logic data; obtaining the private code parameters based on the private configuration parameters, and obtaining the code to be compiled according to the general code parameters and the private code parameters include: obtaining the private function identifier based on the private configuration parameters; The private function identifies the matching function code segment, and uses the function code segment as private logic data; based on the private logic data and common code parameters, the code to be compiled is obtained.
其中,私有逻辑数据是指对于部分特定用户,应用程序在运行过程中需要进行特殊处理时所对应的数据,其可以是指一段可以通过私有函数标识直接被另一段程序或代码引用的程序或代码。Among them, the private logical data refers to the data corresponding to some specific users when the application program needs special processing during operation, which can refer to a program or code that can be directly referenced by another program or code through a private function identifier .
例如,私有逻辑数据可以是隐藏指定页面中的某些功能模块,还可以是在指定页面中添加某些功能模块,还可以是对应用程序的执行步骤的修改等,本申请对此不做限定。For example, the private logic data may be to hide some functional modules in a specified page, or to add some functional modules to a specified page, or to modify the execution steps of an application program, etc. This application does not limit this .
示例性地,根据不同用户的需要,私有配置参数中配置有不同的私有函数标识,以根据私有函数标识获取私有逻辑数据。其中,私有函数标识可以是函数名称,以通过函数名称调用该函数名称对应的函数代码段;例如,私有配置参数的私有函数标识包括hidePermission()、showPermission()、actionPermission(),其中,hidePermission()函数对应需要进行特殊隐藏的数据,showPermission()函数对应需要进行特殊展示的数据,actionPermission()函数对应需要执行特殊步骤的数据。可以理解的是,可以根据实际应用情况对私有函数标识进行灵活设置,本申请对此不做限定。Exemplarily, according to the needs of different users, different private function identifiers are configured in the private configuration parameters, so as to obtain private logic data according to the private function identifiers. Wherein, the private function identifier can be a function name, so as to call the function code segment corresponding to the function name through the function name; for example, the private function identifier of the private configuration parameter includes hidePermission(), showPermission(), actionPermission(), where hidePermission( ) function corresponds to the data that needs to be specially hidden, the showPermission() function corresponds to the data that needs to be displayed specially, and the actionPermission() function corresponds to the data that needs to perform special steps. It can be understood that the private function identifier can be flexibly set according to actual application conditions, which is not limited in this application.
例如,公司A的私有配置参数中包含有:For example, company A's private configuration parameters include:
hideModules:{homepage:[‘help’,‘vest’]};hideModules:{homepage:['help','vest']};
其中,hideModules为私有函数标识,根据私有函数标识得到的函数代码段包括:Among them, hideModules is a private function identifier, and the function code segment obtained according to the private function identifier includes:
hidePermission(‘homepage.help’);hidePermission('homepage. help');
其中,homepage用于指定需要进行修改的页面为首页,homepage.help用于表示将首页中的help模块进行隐藏,将hidePermission中的homepage.help函数对应的具体执行代码作为与私有函数标识相匹配的函数代码段,并将该函数代码段作为私有逻辑数据。Among them, homepage is used to designate the page that needs to be modified as the homepage, homepage.help is used to indicate that the help module in the homepage is hidden, and the specific execution code corresponding to the homepage.help function in hidePermission is used as the one that matches the private function identifier Function code segment, and use the function code segment as private logic data.
在相关技术中,需要先判断该应用程序面向的用户在应用程序运行过程中是否要进行特殊处理,若该用户需要应用程序进行特殊处理,则再根据该用户的需求添加特殊处理对应的私有逻辑数据,则导致要对每个用户添加判断逻辑。In related technologies, it is necessary to first determine whether the user of the application program needs to perform special processing during the running of the application program. If the user requires the application program to perform special processing, then add the private logic corresponding to the special processing according to the user's needs. data, it leads to adding judgment logic for each user.
而本申请示例性实施例中,仅需在每个用户对应的私有配置参数中添加对应的私有函数标识即可,减少了对用户的判断步骤,且提高了函数代码段的复用性以及应用程序代码的可读性。However, in the exemplary embodiment of the present application, it is only necessary to add the corresponding private function identifier to the private configuration parameters corresponding to each user, which reduces the judgment steps for the user, and improves the reusability and application of the function code segment. Program code readability.
步骤S240、基于待编译代码生成应用程序包,并将应用程序包部署到待部署环境中。Step S240, generating an application package based on the code to be compiled, and deploying the application package to the environment to be deployed.
其中,基于待编译代码生成应用程序包的过程是指将源语言编写的待编译代码生成目标程序的过程,即把高级语言的待编译代码变成计算机可以识别的2进制语言。Wherein, the process of generating an application program package based on the code to be compiled refers to the process of generating the target program from the code to be compiled written in the source language, that is, converting the code to be compiled in a high-level language into a binary language that can be recognized by a computer.
对待编译代码进行编译后,得到计算机可以识别的应用程序包,以将该应用程序包部署到待部署环境中。可以理解的是,若待部署的应用程序包为WEB应用程序包,则将该WEB应用程序包部署至指定的WEB应用服务器中;待部署的应用程序包为终端应用程序包,则将该终端应用程序包部署至指定的终端中,以使应用程序包部署至待部署环境后,用户通过访问该应用程序包使用该应用程序。After the code to be compiled is compiled, an application package that can be recognized by the computer is obtained, so that the application package can be deployed to the environment to be deployed. It can be understood that if the application package to be deployed is a WEB application package, then deploy the WEB application package to a designated WEB application server; if the application package to be deployed is a terminal application package, then the terminal The application package is deployed to the designated terminal, so that after the application package is deployed to the environment to be deployed, the user accesses the application package to use the application.
以下对本申请实施例的一个具体应用场景进行详细说明:A specific application scenario of the embodiment of the present application is described in detail below:
以应用程序为WEB应用程序为例;其中:Take the application as an example of a WEB application; where:
请参阅图6,服务端接收应用程序部署请求,根据应用程序部署请求获取待部署的对象标识,以根据待部署的对象标识对私有配置参数列表进行匹配,得到与该待部署的对象标识匹配的多个部署环境下的私有配置参数。进一步地,根据应用程序部署请求获取待部署的环境信息,以根据待部署的环境信息从多个部署环境下的私有配置参数中获取与待部署的环境信息相匹配的私有配置参数。然后根据与待部署的环境信息相匹配的私有配置参数得到私有语言数据、私有页面数据以及私有逻辑数据,进而根据通用代码参数和私有配置参数中的私有语言数据、私有页面数据以及私有逻辑数据,得到待编译代码。最后对待编译代码进行编译,得到应用程序包,以对该应用程序包部署到待部署服务器中。Please refer to Figure 6, the server receives the application deployment request, obtains the object identifier to be deployed according to the application deployment request, and matches the private configuration parameter list according to the object identifier to be deployed, and obtains the object identifier that matches the object identifier to be deployed Private configuration parameters for multiple deployment environments. Further, the environment information to be deployed is obtained according to the application program deployment request, so as to obtain private configuration parameters matching the environment information to be deployed from private configuration parameters in multiple deployment environments according to the environment information to be deployed. Then obtain the private language data, private page data, and private logic data according to the private configuration parameters that match the environment information to be deployed, and then according to the private language data, private page data, and private logic data in the general code parameters and private configuration parameters, Get the code to be compiled. Finally, the code to be compiled is compiled to obtain an application package, and the application package is deployed to the server to be deployed.
本申请提供的应用程序部署方法,通过接收应用程序部署请求;其中,应用程序部署请求中携带有待部署的对象标识;根据应用程序部署请求,获取通用代码参数,以及从私有配置参数列表中获取与待部署的对象标识相匹配的私有配置参数;通过将应用程序中的通用代码和每个用户对应的私有配置进行分离,使每个用户对应用程序的需求更加清晰直观,进而在每个用户进行应用程序部署时获取该用户的私有配置参数以及通用代码参数即 可。然后基于私有配置参数获取私有代码参数,并根据通用代码参数以及私有代码参数得到待编译代码;基于待编译代码生成应用程序包,并将应用程序包部署到待部署环境中;进而使该用户对应部署的应用程序包仅包含通用代码参数以及私有代码参数,使每个用户的应用程序的代码逻辑更加统一,以便于后续对应用程序的维护。The application deployment method provided by this application receives an application deployment request; wherein, the application deployment request carries the object identifier to be deployed; according to the application deployment request, obtains general code parameters, and obtains the corresponding parameters from the private configuration parameter list. The private configuration parameters that match the object identifiers to be deployed; by separating the common code in the application from the private configuration corresponding to each user, each user's requirements for the application are clearer and more intuitive, and then each user can The user's private configuration parameters and common code parameters can be obtained when the application is deployed. Then obtain the private code parameters based on the private configuration parameters, and obtain the code to be compiled according to the general code parameters and the private code parameters; generate an application package based on the code to be compiled, and deploy the application package to the environment to be deployed; and then make the user correspond to The deployed application package only contains common code parameters and private code parameters, which makes the code logic of each user's application more unified and facilitates subsequent maintenance of the application.
图7是本申请的一个实施例示出的应用程序部署装置的框图,如图7所示,该装置包括:Fig. 7 is a block diagram of an application deployment device shown in an embodiment of the present application. As shown in Fig. 7, the device includes:
请求获取模块710,配置为接收应用程序部署请求;其中,应用程序部署请求中携带有待部署的对象标识;The
参数匹配模块720,配置为根据应用程序部署请求,获取通用代码参数,以及从私有配置参数列表中获取与待部署的对象标识相匹配的私有配置参数;其中,私有配置参数列表中包括多个对象标识,以及与多个对象标识对应的私有配置参数;The
待编译代码获取模块730,配置为基于私有配置参数获取私有代码参数,并根据通用代码参数以及私有代码参数得到待编译代码;The code to be compiled
部署模块740,配置为基于待编译代码生成应用程序包,并将应用程序包部署到待部署环境中。The
在本申请的一个实施例中,应用程序部署装置还可以包括标识及参数获取单元和关联单元,在根据应用程序部署请求,获取通用代码参数,以及从私有配置参数列表中获取与待部署的对象标识相匹配的私有配置参数之前:In one embodiment of the present application, the application deployment device may also include an identification and parameter acquisition unit and an association unit, which acquires general code parameters and obtains the object to be deployed from the private configuration parameter list according to the application deployment request. Before identifying matching private configuration parameters:
标识及参数获取单元,配置为获取多个对象标识以及与多个对象标识对应的私有配置参数;An identifier and parameter acquisition unit configured to acquire multiple object identifiers and private configuration parameters corresponding to the multiple object identifiers;
关联单元,配置为将多个对象标识以及与多个对象标识对应的私有配置参数进行关联,生成私有配置参数列表。The associating unit is configured to associate multiple object identifiers and private configuration parameters corresponding to the multiple object identifiers to generate a list of private configuration parameters.
在本申请的一个实施例中,标识及参数获取单元可以包括:In one embodiment of the present application, the identification and parameter acquisition unit may include:
标识获取单元,配置为基于接收到的对象标识的输入操作,得到各个对象标识;An identification obtaining unit configured to obtain each object identification based on the input operation of the received object identification;
参数获取单元,配置为基于接收到的私有配置数据项的输入操作,得到各个对象标识的私有配置数据项,并基于各个对象标识对应的私有配置数据项,生成各个对象标识对应的私有配置参数。The parameter acquisition unit is configured to obtain the private configuration data items of each object identifier based on the input operation of the received private configuration data items, and generate the private configuration parameters corresponding to each object identifier based on the private configuration data items corresponding to each object identifier.
在本申请的一个实施例中,私有配置数据项的内容包括路径信息;参数获取单元可以包括:In one embodiment of the present application, the content of the private configuration data item includes path information; the parameter acquisition unit may include:
监测单元,配置为监测私有配置数据项的输入操作,根据输入操作获取预输入的路径信息;The monitoring unit is configured to monitor the input operation of the private configuration data item, and obtain the pre-input path information according to the input operation;
资源检测单元,配置为检测预输入的路径信息是否存在资源数据;A resource detection unit configured to detect whether there is resource data in the pre-input path information;
数据项确认单元,配置为若预输入的路径信息存在资源数据,则根据预输入的路径信息得到私有配置数据项;The data item confirmation unit is configured to obtain a private configuration data item according to the pre-input path information if there is resource data in the pre-input path information;
信息提示单元,配置为若预输入的路径信息不存在资源数据,则生成不存在资源数据 的提示信息。The information prompting unit is configured to generate prompt information that resource data does not exist if the pre-input path information does not contain resource data.
在本申请的一个实施例中,应用程序部署请求中还携带有待部署的环境信息,私有配置参数包括多个部署环境下的私有配置参数;参数匹配模块720可以包括:In one embodiment of the present application, the application deployment request also carries environment information to be deployed, and the private configuration parameters include private configuration parameters in multiple deployment environments; the
第一获取单元,配置为从私有配置参数列表中获取与待部署的对象标识相匹配的多个部署环境下的私有配置参数;The first obtaining unit is configured to obtain private configuration parameters in multiple deployment environments that match the identifier of the object to be deployed from the list of private configuration parameters;
第二获取单元,配置为根据待部署的环境信息,从多个部署环境下的私有配置参数中获取与待部署的环境信息相匹配的私有配置参数。The second acquiring unit is configured to acquire private configuration parameters matching the environment information to be deployed from private configuration parameters in multiple deployment environments according to the environment information to be deployed.
在本申请的一个实施例中,应用程序部署装置还可以包括参数列表获取单元,在接收应用程序部署请求之后:In an embodiment of the present application, the application deployment device may further include a parameter list acquisition unit, after receiving the application deployment request:
参数列表获取单元,配置为调用私有配置参数列表获取函数,以根据私有配置参数列表获取函数获取私有配置参数列表。The parameter list obtaining unit is configured to call a private configuration parameter list obtaining function to obtain the private configuration parameter list according to the private configuration parameter list obtaining function.
在本申请的一个实施例中,私有代码参数包括私有语言数据,通用代码参数包括通用语言数据;待编译代码获取模块730还包括:In one embodiment of the present application, the private code parameters include private language data, and the general code parameters include general language data; the code to be compiled
语言路径获取单元,配置为获取私有配置参数中包含的私有语言路径信息;A language path obtaining unit configured to obtain private language path information contained in private configuration parameters;
语言数据获取单元,配置为获取私有语言路径信息对应的私有语言数据;A language data acquisition unit configured to acquire private language data corresponding to the private language path information;
语言待编译代码获取单元,配置为基于私有语言数据以及通用代码参数中含有的通用语言数据,得到待编译代码。The language code acquisition unit to be compiled is configured to obtain the code to be compiled based on the private language data and the general language data contained in the general code parameter.
在本申请的一个实施例中,私有语言数据包括私有语言修改规则以及私有语言修改数据;语言待编译代码获取单元可以包括:In an embodiment of the present application, the private language data includes private language modification rules and private language modification data; the language code acquisition unit to be compiled may include:
修改单元,配置为基于私有语言修改规则,将通用代码参数中的通用语言数据修改为私有语言修改数据,以得到待编译代码。The modification unit is configured to modify the general language data in the general code parameter into the private language modification data based on the private language modification rules, so as to obtain the code to be compiled.
在本申请的一个实施例中,私有代码参数包括私有页面数据,通用代码参数包括通用页面数据;待编译代码获取模块730还包括:In one embodiment of the present application, the private code parameters include private page data, and the general code parameters include general page data; the code to be compiled
页面路径获取单元,配置为获取私有配置参数中包含的私有页面路径信息;A page path obtaining unit configured to obtain private page path information contained in private configuration parameters;
页面数据获取单元,配置为获取私有页面路径信息对应的私有页面数据;A page data acquisition unit configured to acquire private page data corresponding to the private page path information;
页面待编译代码获取单元,配置为基于私有页面数据以及通用代码参数中的通用页面数据,得到待编译代码。The page code to be compiled acquisition unit is configured to obtain the code to be compiled based on the private page data and the general page data in the general code parameter.
在本申请的一个实施例中,私有代码参数包括私有逻辑数据;待编译代码获取模块730还包括:In one embodiment of the present application, the private code parameters include private logic data; the code to be compiled
函数标识获取单元,配置为基于私有配置参数获取私有函数标识;A function identification obtaining unit configured to obtain a private function identification based on private configuration parameters;
逻辑数据获取单元,配置为获取与私有函数标识相匹配的函数代码段,并将函数代码段作为私有逻辑数据;The logic data acquisition unit is configured to acquire the function code segment matching the private function identifier, and use the function code segment as private logic data;
逻辑待编译代码获取单元,配置为基于私有逻辑数据以及通用代码参数,得到待编译代码。The logic to-be-compiled code acquisition unit is configured to obtain the to-be-compiled code based on private logic data and common code parameters.
图8示出了适于用来实现本申请实施例的电子设备的计算机系统的结构示意图。FIG. 8 shows a schematic structural diagram of a computer system suitable for implementing the electronic device of the embodiment of the present application.
需要说明的是,图8示出的电子设备的计算机系统800仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。It should be noted that the
如图8所示,电子设备800以通用计算设备的形式表现。电子设备800的组件可以包括但不限于:上述至少一个处理单元810、上述至少一个存储单元820、连接不同系统组件(包括存储单元820和处理单元810)的总线830、显示单元840。As shown in FIG. 8,
其中,存储单元存储有程序代码,程序代码可以被处理单元810执行,使得处理单元810执行本说明书上述“示例性方法”部分中描述的根据本公开各种示例性实施例的步骤。Wherein, the storage unit stores program codes, and the program codes can be executed by the
存储单元820可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)821和/或高速缓存存储单元822,还可以进一步包括只读存储单元(ROM)823。The
存储单元820还可以包括具有一组(至少一个)程序模块825的程序/实用工具824,这样的程序模块825包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。
总线830可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。
电子设备800也可以与一个或多个外部设备870(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备800交互的设备通信,和/或与使得该电子设备800能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口850进行。并且,电子设备800还可以通过网络适配器860与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器860通过总线830与电子设备800的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备800使用其它硬件和/或应用程序模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The
特别地,根据本申请的实施例,上文参考流程图描述的过程可以被实现为计算机应用程序。例如,本申请的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的计算机程序。在该计算机程序被处理单元810执行时,执行本申请的系统中限定的各种功能。In particular, according to the embodiments of the present application, the processes described above with reference to the flowcharts can be implemented as computer application programs. For example, the embodiments of the present application include a computer program product, which includes a computer program carried on a computer-readable medium, where the computer program includes a computer program for executing the method shown in the flowchart. When the computer program is executed by the
需要说明的是,本申请实施例所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、闪存、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光存储器件、磁存储器件、或者上述的任 意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的计算机程序。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的计算机程序可以用任何适当的介质传输,包括但不限于:无线、有线等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), flash memory, optical fiber, portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical storage device, magnetic storage device, or any suitable one of the above The combination. In this application, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, in which a computer-readable computer program is carried. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. . A computer program embodied on a computer readable medium can be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。其中,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不相同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Wherein, each block in the flowchart or block diagram may represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or part of the code includes one or more executable instruction. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block in the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a A combination of dedicated hardware and computer instructions.
描述于本申请实施例中所涉及到的单元可以通过应用程序的方式实现,也可以通过硬件的方式来实现,所描述的单元也可以设置在处理器中。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定。The units described in the embodiments of the present application may be implemented in the form of application programs or in the form of hardware, and the described units may also be set in the processor. Wherein, the names of these units do not constitute a limitation of the unit itself under certain circumstances.
本申请的另一方面还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如前的应用程序部署方法。该计算机可读存储介质可以是上述实施例中描述的电子设备中所包含的,也可以是单独存在,而未装配入该电子设备中。Another aspect of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above method for deploying an application program is implemented. The computer-readable storage medium may be included in the electronic device described in the above embodiments, or may exist independently without being assembled into the electronic device.
本申请的另一方面还提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述各个实施例中提供的应用程序部署方法。Another aspect of the present application also provides a computer program product or computer program, the computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the application program deployment method provided in each of the foregoing embodiments.
上述内容,仅为本申请的较佳示例性实施例,并非用于限制本申请的实施方案,本领域普通技术人员根据本申请的主要构思和精神,可以十分方便地进行相应的变通或修改,故本申请的保护范围应以权利要求书所要求的保护范围为准。The above content is only a preferred exemplary embodiment of the application, and is not intended to limit the implementation of the application. Those skilled in the art can easily make corresponding modifications or modifications according to the main idea and spirit of the application. Therefore, the scope of protection of this application should be based on the scope of protection required by the claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210114239.6ACN114527993A (en) | 2022-02-10 | 2022-02-10 | Application deployment method, device, equipment and medium |
| CN202210114239.6 | 2022-02-10 |
| Publication Number | Publication Date |
|---|---|
| WO2023151397A1true WO2023151397A1 (en) | 2023-08-17 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2022/140761CeasedWO2023151397A1 (en) | 2022-02-10 | 2022-12-21 | Application program deployment method and apparatus, device, and medium |
| Country | Link |
|---|---|
| CN (1) | CN114527993A (en) |
| WO (1) | WO2023151397A1 (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114527993A (en)* | 2022-02-10 | 2022-05-24 | 富途网络科技(深圳)有限公司 | Application deployment method, device, equipment and medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110764769A (en)* | 2019-10-21 | 2020-02-07 | 苏州思必驰信息科技有限公司 | Method and device for processing user request |
| US20200350069A1 (en)* | 2019-05-02 | 2020-11-05 | Companion Medical, Inc. | Methods for self-validation of hardware and software for safety-critical medical devices |
| CN113126982A (en)* | 2021-04-23 | 2021-07-16 | 上海绚显科技有限公司 | Application program generation and operation method and device |
| CN113741949A (en)* | 2021-09-07 | 2021-12-03 | 北京百度网讯科技有限公司 | Method, device and equipment for generating application program installation package and storage medium |
| CN114527993A (en)* | 2022-02-10 | 2022-05-24 | 富途网络科技(深圳)有限公司 | Application deployment method, device, equipment and medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104391687B (en)* | 2014-10-28 | 2017-11-28 | 深圳市多彩人生技术有限公司 | The realization method and system of the internet APP common platforms of enterprise and corporations |
| CN108551487B (en)* | 2018-04-26 | 2021-02-09 | Oppo广东移动通信有限公司 | Application deployment method, device, server and storage medium of PaaS platform |
| CN108846044A (en)* | 2018-05-30 | 2018-11-20 | 浪潮软件股份有限公司 | A kind of map application dispositions method and device |
| CN108958927B (en)* | 2018-05-31 | 2023-04-18 | 康键信息技术(深圳)有限公司 | Deployment method and device of container application, computer equipment and storage medium |
| CN109857405A (en)* | 2019-02-02 | 2019-06-07 | Oppo广东移动通信有限公司 | Compilation Method, device, storage medium and the terminal of application program installation kit |
| US11190619B2 (en)* | 2019-03-21 | 2021-11-30 | International Business Machines Corporation | Generation and application of meta-policies for application deployment environments |
| EP4006721A4 (en)* | 2019-08-27 | 2023-04-12 | Siemens Aktiengesellschaft | METHOD AND DEVICE FOR THE DEVELOPMENT AND DEPLOYMENT OF APPLICATION PROGRAMS AND COMPUTER READABLE MEDIA |
| CN112416426B (en)* | 2020-11-30 | 2025-01-14 | 北京有竹居网络技术有限公司 | Application function publishing method, device, equipment and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20200350069A1 (en)* | 2019-05-02 | 2020-11-05 | Companion Medical, Inc. | Methods for self-validation of hardware and software for safety-critical medical devices |
| CN110764769A (en)* | 2019-10-21 | 2020-02-07 | 苏州思必驰信息科技有限公司 | Method and device for processing user request |
| CN113126982A (en)* | 2021-04-23 | 2021-07-16 | 上海绚显科技有限公司 | Application program generation and operation method and device |
| CN113741949A (en)* | 2021-09-07 | 2021-12-03 | 北京百度网讯科技有限公司 | Method, device and equipment for generating application program installation package and storage medium |
| CN114527993A (en)* | 2022-02-10 | 2022-05-24 | 富途网络科技(深圳)有限公司 | Application deployment method, device, equipment and medium |
| Publication number | Publication date |
|---|---|
| CN114527993A (en) | 2022-05-24 |
| Publication | Publication Date | Title |
|---|---|---|
| US20150089415A1 (en) | Method of processing big data, apparatus performing the same and storage media storing the same | |
| CN114238948A (en) | Application program detection method and device, electronic equipment and storage medium | |
| CN110083526A (en) | Applied program testing method, device, computer installation and storage medium | |
| CN113626223A (en) | Interface calling method and device | |
| CN112835568A (en) | A project construction method and device | |
| CN110895472A (en) | A method and device for identifying business changes | |
| CN113778897A (en) | Automatic test method, device, equipment and storage medium of interface | |
| CN113312900A (en) | Data verification method and device | |
| CN111158654A (en) | Algorithm calling method, device, server and storage medium | |
| CN111651196A (en) | Document publishing method, device and server | |
| CN110688305A (en) | Test environment synchronization method, device, medium, electronic equipment | |
| CN113392014A (en) | Test case generation method and device, electronic equipment and medium | |
| WO2023151397A1 (en) | Application program deployment method and apparatus, device, and medium | |
| US12118350B1 (en) | Hierarchical clustering for coding practice discovery | |
| CN119356696A (en) | Operating system deployment method, device, equipment, medium and program product | |
| CN116149650B (en) | Configuration method of data integration strategy, data integration method, device, equipment and storage medium | |
| CN111026466A (en) | File processing method and device, computer readable storage medium and electronic equipment | |
| CN117454038A (en) | Page detection method and device | |
| CN115576624A (en) | Programming framework optimization method, system, terminal equipment and storage medium | |
| CN113918525A (en) | Data exchange scheduling method, system, electronic device, medium and program product | |
| CN114168652A (en) | A smart contract interaction method, device, device and storage medium | |
| CN111444161A (en) | Data processing method and device, electronic equipment and storage medium | |
| CN113569182B (en) | Data processing method, device, storage medium and electronic device | |
| CN113342736B (en) | Storage path management method, device, medium and computing device | |
| CN113900895B (en) | Information processing method, information processing apparatus, storage medium, and electronic device |
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application | Ref document number:22925747 Country of ref document:EP Kind code of ref document:A1 | |
| NENP | Non-entry into the national phase | Ref country code:DE | |
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established | Free format text:NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 03/01/2025) | |
| 122 | Ep: pct application non-entry in european phase | Ref document number:22925747 Country of ref document:EP Kind code of ref document:A1 |