[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN106453494A - A plug-in update method, system, client and server - Google Patents

A plug-in update method, system, client and server Download PDF

Info

Publication number
CN106453494A
CN106453494A CN201610783200.8A CN201610783200A CN106453494A CN 106453494 A CN106453494 A CN 106453494A CN 201610783200 A CN201610783200 A CN 201610783200A CN 106453494 A CN106453494 A CN 106453494A
Authority
CN
China
Prior art keywords
plug
loading
server
client app
module
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.)
Pending
Application number
CN201610783200.8A
Other languages
Chinese (zh)
Inventor
曾开华
罗捷
纪俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Pinwei Software Co Ltd
Original Assignee
Guangzhou Pinwei Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangzhou Pinwei Software Co Ltd filed Critical Guangzhou Pinwei Software Co Ltd
Priority to CN201610783200.8A priority Critical patent/CN106453494A/en
Publication of CN106453494A publication Critical patent/CN106453494A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72469User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明公开了一种插件更新方法、系统、客户端和服务端,属于通信领域,包括:服务端确认客户端APP所要加载的功能;服务端从注册模块中加载功能对应的组件;服务端将组件加载至插件,并将插件发送至客户端APP;客户端APP将插件加载至插件环境,并通过插件环境加载插件中的组件。通过客户端APP将插件加载至插件环境,并通过插件环境加载插件中的组件,避免了通过下载并安装APP实现客户端的更新,从而节省了系统的处理资源以及运行资源,提高了用户体验。

The invention discloses a plug-in update method, system, client and server, belonging to the field of communication, including: the server confirms the functions to be loaded by the client APP; the server loads components corresponding to the functions from the registration module; The component is loaded into the plug-in, and the plug-in is sent to the client APP; the client APP loads the plug-in into the plug-in environment, and loads the components in the plug-in through the plug-in environment. The plug-in is loaded into the plug-in environment through the client APP, and the components in the plug-in are loaded through the plug-in environment, which avoids updating the client by downloading and installing the APP, thereby saving system processing resources and operating resources, and improving user experience.

Description

一种插件更新方法、系统、客户端和服务端A plug-in update method, system, client and server

技术领域technical field

本发明涉及通信领域,特别涉及一种插件更新方法、系统、客户端和服务端。The invention relates to the communication field, in particular to a plug-in updating method, system, client and server.

背景技术Background technique

在目前的智能终端上,用户可以通过安装第三方应用程序(Application,APP)以满足自身的使用需求。为了方便用户的使用,提高用户的使用体验,往往需要对APP内置的部分功能进行更新,或者APP部分算法进行优化。On current smart terminals, users can install third-party application programs (Application, APP) to meet their own usage needs. In order to facilitate the use of users and improve the user experience, it is often necessary to update some built-in functions of the APP, or to optimize some algorithms of the APP.

但是在现有技术中,对APP内置的部分功能的更新,或者对APP部分算法的优化是通过发布新版本的APP实现的,该过程通常为APP提供商发布新版的APP,用户需要下载并安装该新版的APP,以实现APP内置的部分功能的更新以及APP部分算法的优化。However, in the existing technology, the update of some built-in functions of the APP, or the optimization of some algorithms of the APP is realized by releasing a new version of the APP. This process usually releases a new version of the APP for the APP provider, and the user needs to download and install it. This new version of the APP is to realize the update of some built-in functions of the APP and the optimization of some algorithms of the APP.

由于用户在下载该新版的APP过程,所需传输流量较大,占用的存储空间也较大,且在安装该APP过程中,会占用较多的系统处理资源,从而降低了用户在使用该APP过程中的用户体验。Since the user is downloading the new version of the APP, the required transmission traffic is relatively large, and the storage space occupied is also relatively large, and during the installation of the APP, it will occupy more system processing resources, thereby reducing the user's ability to use the APP. User experience in the process.

发明内容Contents of the invention

为了避免通过下载并安装APP实现客户端的更新,节省系统的处理资源以及运行资源,提高用户体验,本发明实施例提供了一种插件更新方法、系统、客户端和服务端。所述技术方案如下:In order to avoid updating the client by downloading and installing an APP, save system processing resources and operating resources, and improve user experience, embodiments of the present invention provide a plug-in update method, system, client, and server. Described technical scheme is as follows:

第一方面,提供了一种插件更新方法,所述方法包括:In the first aspect, a method for updating a plug-in is provided, and the method includes:

服务端确认客户端APP所要加载的功能;The server confirms the functions to be loaded by the client APP;

所述服务端从注册模块中加载所述功能对应的组件;The server loads components corresponding to the functions from the registration module;

所述服务端将所述组件加载至插件,并将所述插件发送至所述客户端APP;The server loads the component into a plug-in, and sends the plug-in to the client APP;

所述客户端APP将所述插件加载至插件环境,并通过所述插件环境加载所述插件中的组件。The client APP loads the plug-in into a plug-in environment, and loads components in the plug-in through the plug-in environment.

结合第一方面,在第一种可能的实现方式中,通过以下操作中至少一个,实现所述服务端确认客户端APP所要加载的功能的步骤:With reference to the first aspect, in a first possible implementation manner, the server confirms the function to be loaded by the client APP through at least one of the following operations:

获取用户在所述客户端APP上触发的加载请求,根据所述加载请求,确认所述客户端APP所要加载的功能;或者Obtain a loading request triggered by the user on the client APP, and confirm the function to be loaded by the client APP according to the loading request; or

在所述客户端APP检测到更新之后,根据所述客户端APP发送的更新请求,确认所述客户端APP所要加载的功能。After the client APP detects the update, according to the update request sent by the client APP, confirm the functions to be loaded by the client APP.

结合第一方面的第一种可能的实现方式,在第二种可能的实现方式中,所述服务端从注册模块中加载所述功能对应的组件包括:With reference to the first possible implementation of the first aspect, in a second possible implementation, the server loading components corresponding to the functions from the registration module includes:

根据所述注册模块中的功能名称,从可执行文件群所包含的多个组件中选择所要加载的所述功能对应的组件。According to the function name in the registration module, the component corresponding to the function to be loaded is selected from a plurality of components included in the executable file group.

结合第一方面的第二种可能的实现方式,在第三种可能的实现方式中,所述服务端将所述组件加载至插件包括:With reference to the second possible implementation of the first aspect, in a third possible implementation, loading the component to the plug-in by the server includes:

设置所述组件与数据层的通信配置数据;Setting communication configuration data between the component and the data layer;

将所述通信配置数据与所述组件封装至所述插件。Encapsulating the communication configuration data and the component into the plug-in.

结合第一方面的第三种可能的实现方式,在第四种可能的实现方式中,In combination with the third possible implementation of the first aspect, in the fourth possible implementation,

所述客户端APP将所述插件加载至插件环境包括:The client APP loading the plug-in to the plug-in environment includes:

将所述通信配置数据加载至插件环境;Loading the communication configuration data into the plug-in environment;

根据所述通信配置数据,设置所述组件与数据层之间的通信机制。According to the communication configuration data, a communication mechanism between the component and the data layer is set.

结合第一方面的第四种可能的实现方式,在第五种可能的实现方式中,所述客户端APP通过所述插件环境加载所述插件中的组件包括:With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner, loading the components in the plug-in by the client APP through the plug-in environment includes:

所述客户端APP加载所述组件。The client APP loads the component.

结合第一方面的第五种可能的实现方式,在第六种可能的实现方式中,所述客户端APP加载所述组件包括:With reference to the fifth possible implementation manner of the first aspect, in a sixth possible implementation manner, loading the component by the client APP includes:

在检测到用户加载事件后,加载所述组件,并在完成加载之后,运行所述客户端APP;After the user loading event is detected, the component is loaded, and after the loading is completed, the client APP is run;

其中,所述加载事件包括用户点击预设按键、用户输入预设手势以及用户持续点击界面的时间满足阈值。Wherein, the loading event includes the user clicking a preset button, the user inputting a preset gesture, and the duration of the user's continuous clicking on the interface meeting a threshold.

第二方面,提供了一种服务端,所述服务端包括:In a second aspect, a server is provided, and the server includes:

确认模块,用于确认客户端APP所要加载的功能;The confirmation module is used to confirm the functions to be loaded by the client APP;

第一加载模块,用于从注册模块中加载所述功能对应的组件;The first loading module is configured to load components corresponding to the functions from the registration module;

第二加载模块,用于将所述组件加载至插件;a second loading module, configured to load the component into the plug-in;

发送模块,用于将所述插件发送至所述客户端APP,以使所述客户端APP将所述插件加载至插件环境,并通过所述插件环境加载所述插件中的组件。A sending module, configured to send the plug-in to the client APP, so that the client APP loads the plug-in into a plug-in environment, and loads components in the plug-in through the plug-in environment.

结合第二方面,在第一种可能的实现方式中,所述确认模块包括:With reference to the second aspect, in a first possible implementation manner, the confirmation module includes:

获取子模块,用于获取用户在所述客户端APP上触发的加载请求;An acquisition submodule, configured to acquire a loading request triggered by a user on the client APP;

第一确认子模块,用于根据所述加载请求,确认所述客户端APP所要加载的功能;The first confirmation submodule is used to confirm the function to be loaded by the client APP according to the loading request;

第二确认子模块,用于在所述客户端APP检测到更新之后,根据所述客户端APP发送的更新请求,确认所述客户端APP所要加载的功能。The second confirmation submodule is configured to confirm the functions to be loaded by the client APP according to the update request sent by the client APP after the client APP detects the update.

结合第二方面的第一种可能的实现方式,在第二种可能的实现方式中,In combination with the first possible implementation of the second aspect, in the second possible implementation,

所述第一加载模块具体用于:The first loading module is specifically used for:

根据所述注册模块中的功能名称,从可执行文件群所包含的多个组件中选择所要加载的所述功能对应的组件。According to the function name in the registration module, the component corresponding to the function to be loaded is selected from a plurality of components included in the executable file group.

结合第二方面的第二种可能的实现方式,在第三种可能的实现方式中,In combination with the second possible implementation of the second aspect, in the third possible implementation,

所述第二加载模块包括:The second loading module includes:

通信配置数据设置子模块,用于设置所述组件与数据层的通信配置数据;The communication configuration data setting submodule is used to set the communication configuration data between the components and the data layer;

封装子模块,用于将所述通信配置数据与所述组件封装至所述插件。The encapsulation sub-module is used for encapsulating the communication configuration data and the components into the plug-in.

第三方面,提供了一种客户端,所述客户端包括:In a third aspect, a client is provided, and the client includes:

发送模块,用于发送所要加载的功能至服务端,以使所述服务端确认所述功能,从注册模块中加载所述功能对应的组件,并将所述组件加载至插件;A sending module, configured to send the function to be loaded to the server, so that the server can confirm the function, load the component corresponding to the function from the registration module, and load the component to the plug-in;

接收模块,用于接收服务端发送的所述插件;A receiving module, configured to receive the plug-in sent by the server;

第一加载模块,用于将所述插件加载至插件环境;The first loading module is used to load the plug-in into the plug-in environment;

第二加载模块,用于通过所述插件环境加载所述插件中的组件。The second loading module is used to load the components in the plug-in through the plug-in environment.

结合第三方面,在第一种可能的实现方式中,所述发送模块包括:With reference to the third aspect, in a first possible implementation manner, the sending module includes:

第一发送子模块,用于发送用户触发的加载请求至所述服务端;A first sending submodule, configured to send a loading request triggered by a user to the server;

检测子模块,用于检测更新;The detection sub-module is used to detect updates;

第二发送子模块,用于所述检测子模块检测到更新之后,发送更新请求至所述服务端。The second sending submodule is configured to send an update request to the server after the detection submodule detects an update.

结合第三方面的第一种可能的实现方式,在第二种可能的实现方式中,所述第一加载模块具体用于:With reference to the first possible implementation of the third aspect, in a second possible implementation, the first loading module is specifically configured to:

将所述通信配置数据加载至插件环境;Loading the communication configuration data into the plug-in environment;

根据所述通信配置数据,设置所述组件与数据层之间的通信机制。According to the communication configuration data, a communication mechanism between the component and the data layer is set.

结合第三方面的第二种可能的实现方式,在第三种可能的实现方式中,所述第二加载模块包括:With reference to the second possible implementation of the third aspect, in a third possible implementation, the second loading module includes:

加载子模块,用于加载所述组件。Load submodule for loading said components.

结合第三方面的第三种可能的实现方式,在第四种可能的实现方式中,所述加载子模块具体用于:In combination with the third possible implementation of the third aspect, in a fourth possible implementation, the loading submodule is specifically used for:

在检测到用户加载事件后,加载所述组件,并在完成加载之后,运行APP;After the user loading event is detected, the component is loaded, and after the loading is completed, the APP is run;

其中,所述加载事件包括用户点击预设按键、用户输入预设手势以及用户持续点击界面的时间满足阈值。Wherein, the loading event includes the user clicking a preset button, the user inputting a preset gesture, and the duration of the user's continuous clicking on the interface meeting a threshold.

第四方面,提供了一种服务端,其特征在于,所述服务端包括存储器以及与所述存储器连接的处理器,其中,所述存储器用于存储一组程序代码,所述处理器调用所述存储器所存储的程序代码用于执行以下操作:In a fourth aspect, a server is provided, wherein the server includes a memory and a processor connected to the memory, wherein the memory is used to store a set of program codes, and the processor calls the The program code stored in the memory is used to perform the following operations:

确认客户端APP所要加载的功能;Confirm the functions to be loaded by the client APP;

从注册模块中加载所述功能对应的组件;Loading components corresponding to the functions from the registration module;

将所述组件加载至插件;loading said component into the plugin;

将所述插件发送至所述客户端APP,以使所述客户端APP将所述插件加载至插件环境,并通过所述插件环境加载所述插件中的组件。sending the plug-in to the client APP, so that the client APP loads the plug-in into a plug-in environment, and loads components in the plug-in through the plug-in environment.

结合第四方面,在第一种可能的实现方式中,所述处理器调用所述存储器所存储的程序代码用于执行以下操作:With reference to the fourth aspect, in a first possible implementation manner, the processor calls the program code stored in the memory to perform the following operations:

获取用户在所述客户端APP上触发的加载请求;Obtain a loading request triggered by the user on the client APP;

根据所述加载请求,确认所述客户端APP所要加载的功能;或者According to the loading request, confirm the function to be loaded by the client APP; or

在所述客户端APP检测到更新之后,根据所述客户端APP发送的更新请求,确认所述客户端APP所要加载的功能。After the client APP detects the update, according to the update request sent by the client APP, confirm the functions to be loaded by the client APP.

结合第四方面的第一种可能的实现方式,在第二种可能的实现方式中,所述处理器调用所述存储器所存储的程序代码用于执行以下操作:With reference to the first possible implementation manner of the fourth aspect, in a second possible implementation manner, the processor invokes the program code stored in the memory to perform the following operations:

根据所述注册模块中的功能名称,从可执行文件群所包含的多个组件中选择所要加载的所述功能对应的组件。According to the function name in the registration module, the component corresponding to the function to be loaded is selected from a plurality of components included in the executable file group.

结合第四方面的第二种可能的实现方式,在第三种可能的实现方式中,所述处理器调用所述存储器所存储的程序代码用于执行以下操作:With reference to the second possible implementation manner of the fourth aspect, in a third possible implementation manner, the processor invokes the program code stored in the memory to perform the following operations:

设置所述组件与数据层的通信配置数据;Setting communication configuration data between the component and the data layer;

将所述通信配置数据与所述组件封装至所述插件。Encapsulating the communication configuration data and the component into the plug-in.

第五方面,提供了一种客户端,其特征在于,所述客户端包括存储器以及与所述存储器连接的处理器,其中,所述存储器用于存储一组程序代码,所述处理器调用所述存储器所存储的程序代码用于执行以下操作:According to a fifth aspect, a client is provided, wherein the client includes a memory and a processor connected to the memory, wherein the memory is used to store a set of program codes, and the processor calls the The program code stored in the memory is used to perform the following operations:

发送所要加载的功能至服务端,以使所述服务端确认所述功能,从注册模块中加载所述功能对应的组件,并将所述组件加载至插件;sending the function to be loaded to the server, so that the server confirms the function, loads the component corresponding to the function from the registration module, and loads the component into the plug-in;

接收服务端发送的所述插件;receiving the plug-in sent by the server;

将所述插件加载至插件环境;loading the plug-in into a plug-in environment;

通过所述插件环境加载所述插件中的组件。The components in the plug-in are loaded through the plug-in environment.

结合第五方面,在第一种可能的实现方式中,所述处理器调用所述存储器所存储的程序代码用于执行以下操作:With reference to the fifth aspect, in a first possible implementation manner, the processor invokes the program code stored in the memory to perform the following operations:

发送用户触发的加载请求至所述服务端;或者sending a user-triggered loading request to said server; or

检测到更新之后,发送更新请求至所述服务端。After an update is detected, an update request is sent to the server.

结合第五方面的第一种可能的实现方式,在第二种可能的实现方式中,所述处理器调用所述存储器所存储的程序代码用于执行以下操作:With reference to the first possible implementation manner of the fifth aspect, in a second possible implementation manner, the processor invokes the program code stored in the memory to perform the following operations:

将所述通信配置数据加载至插件环境;Loading the communication configuration data into the plug-in environment;

根据所述通信配置数据,设置所述组件与数据层之间的通信机制。According to the communication configuration data, a communication mechanism between the component and the data layer is set.

结合第五方面的第二种可能的实现方式,在第三种可能的实现方式中,所述处理器调用所述存储器所存储的程序代码用于执行以下操作:With reference to the second possible implementation manner of the fifth aspect, in a third possible implementation manner, the processor invokes the program code stored in the memory to perform the following operations:

加载所述组件。Load said component.

结合第五方面的第三种可能的实现方式,在第四种可能的实现方式中,所述处理器调用所述存储器所存储的程序代码用于执行以下操作:With reference to the third possible implementation manner of the fifth aspect, in a fourth possible implementation manner, the processor invokes the program code stored in the memory to perform the following operations:

在检测到用户加载事件后,加载所述组件,并在完成加载之后,运行APP;After the user loading event is detected, the component is loaded, and after the loading is completed, the APP is run;

其中,所述加载事件包括用户点击预设按键、用户输入预设手势以及用户持续点击界面的时间满足阈值。Wherein, the loading event includes the user clicking a preset button, the user inputting a preset gesture, and the duration of the user's continuous clicking on the interface meeting a threshold.

第六方面,提供了一种插件更新系统,所述系统包括服务端和客户端:In a sixth aspect, a plug-in update system is provided, and the system includes a server and a client:

所述服务端包括:The server includes:

确认模块,用于确认客户端APP所要加载的功能;The confirmation module is used to confirm the functions to be loaded by the client APP;

第一加载模块,用于从注册模块中加载所述功能对应的组件;The first loading module is configured to load components corresponding to the functions from the registration module;

第二加载模块,用于将所述组件加载至插件;a second loading module, configured to load the component into the plug-in;

第一发送模块,用于将所述插件发送至所述客户端APP,以使所述客户端APP将所述插件加载至插件环境,并通过所述插件环境加载所述插件中的组件;A first sending module, configured to send the plug-in to the client APP, so that the client APP loads the plug-in into a plug-in environment, and loads components in the plug-in through the plug-in environment;

所述客户端包括:The clients include:

第二发送模块,用于发送所要加载的功能至服务端,以使所述服务端确认所述功能,从注册模块中加载所述功能对应的组件,并将所述组件加载至插件;The second sending module is used to send the function to be loaded to the server, so that the server can confirm the function, load the component corresponding to the function from the registration module, and load the component to the plug-in;

接收模块,用于接收服务端发送的所述插件;A receiving module, configured to receive the plug-in sent by the server;

第三加载模块,用于将所述插件加载至插件环境;The third loading module is used to load the plug-in into the plug-in environment;

第四加载模块,用于通过所述插件环境加载所述插件中的组件。The fourth loading module is used to load the components in the plug-in through the plug-in environment.

结合第六方面,在第一种可能的实现方式中,In combination with the sixth aspect, in the first possible implementation manner,

所述确认模块包括:The confirmation module includes:

获取子模块,用于获取用户在所述客户端APP上触发的加载请求;An acquisition submodule, configured to acquire a loading request triggered by a user on the client APP;

第一确认子模块,用于根据所述加载请求,确认所述客户端APP所要加载的功能;The first confirmation submodule is used to confirm the function to be loaded by the client APP according to the loading request;

第二确认子模块,用于在所述客户端APP检测到更新之后,根据所述客户端APP发送的更新请求,确认所述客户端APP所要加载的功能;The second confirmation submodule is used to confirm the function to be loaded by the client APP according to the update request sent by the client APP after the client APP detects the update;

所述第二发送模块包括:The second sending module includes:

第一发送子模块,用于发送用户触发的加载请求至所述服务端;A first sending submodule, configured to send a loading request triggered by a user to the server;

检测子模块,用于检测更新;The detection sub-module is used to detect updates;

第二发送子模块,用于所述检测子模块检测到更新之后,发送更新请求至所述服务端。The second sending submodule is configured to send an update request to the server after the detection submodule detects an update.

结合第六方面的第一种可能的实现方式,在第二种可能的实现方式中,所述第一加载模块具体用于:With reference to the first possible implementation of the sixth aspect, in a second possible implementation, the first loading module is specifically configured to:

根据所述注册模块中的功能名称,从可执行文件群所包含的多个组件中选择所要加载的所述功能对应的组件。According to the function name in the registration module, the component corresponding to the function to be loaded is selected from a plurality of components included in the executable file group.

结合第六方面的第二种可能的实现方式,在第三种可能的实现方式中,所述第二加载模块包括:With reference to the second possible implementation manner of the sixth aspect, in a third possible implementation manner, the second loading module includes:

通信配置数据设置子模块,用于设置所述组件与数据层的通信配置数据;The communication configuration data setting submodule is used to set the communication configuration data between the components and the data layer;

封装子模块,用于将所述通信配置数据与所述组件封装至所述插件。The encapsulation sub-module is used for encapsulating the communication configuration data and the components into the plug-in.

结合第六方面的第三种可能的实现方式,在第四种可能的实现方式中,所述第三加载模块具体用于:With reference to the third possible implementation of the sixth aspect, in a fourth possible implementation, the third loading module is specifically configured to:

将所述通信配置数据加载至插件环境;Loading the communication configuration data into the plug-in environment;

根据所述通信配置数据,设置所述组件与数据层之间的通信机制。According to the communication configuration data, a communication mechanism between the component and the data layer is set.

结合第六方面的第四种可能的实现方式,在第五种可能的实现方式中,所述第四加载模块具体用于:With reference to the fourth possible implementation of the sixth aspect, in a fifth possible implementation, the fourth loading module is specifically configured to:

加载所述组件。Load said component.

结合第六方面的第五种可能的实现方式,在第六种可能的实现方式中,所述加载子模块具体用于:With reference to the fifth possible implementation manner of the sixth aspect, in a sixth possible implementation manner, the loading submodule is specifically used for:

在检测到用户加载事件后,加载所述组件,并在完成加载之后,运行APP;After the user loading event is detected, the component is loaded, and after the loading is completed, the APP is run;

其中,所述加载事件包括用户点击预设按键、用户输入预设手势以及用户持续点击界面的时间满足阈值。Wherein, the loading event includes the user clicking a preset button, the user inputting a preset gesture, and the duration of the user's continuous clicking on the interface meeting a threshold.

本发明实施例提供了一种插件更新方法、系统、客户端和服务端,方法包括:服务端确认客户端APP所要加载的功能;服务端从注册模块中加载功能对应的组件;服务端将组件加载至插件,并将插件发送至客户端APP;客户端APP将插件加载至插件环境,并通过插件环境加载插件中的组件。通过客户端APP将插件加载至插件环境,并通过插件环境加载插件中的组件,避免了通过下载并安装APP实现客户端的更新,从而节省了系统的处理资源以及运行资源,提高了用户体验。The embodiment of the present invention provides a plug-in update method, system, client, and server. The method includes: the server confirms the function to be loaded by the client APP; the server loads the component corresponding to the function from the registration module; the server loads the component Load to the plug-in, and send the plug-in to the client APP; the client APP loads the plug-in to the plug-in environment, and loads the components in the plug-in through the plug-in environment. The plug-in is loaded into the plug-in environment through the client APP, and the components in the plug-in are loaded through the plug-in environment, which avoids updating the client by downloading and installing the APP, thereby saving system processing resources and operating resources, and improving user experience.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.

图1是本发明实施例提供的一种插件更新方法流程图;Fig. 1 is a flowchart of a method for updating a plug-in provided by an embodiment of the present invention;

图2是本发明实施例提供的一种插件更新方法流程图;Fig. 2 is a flowchart of a method for updating a plug-in provided by an embodiment of the present invention;

图3是本发明实施例提供的一种客户端APP界面示意图;Fig. 3 is a schematic diagram of a client APP interface provided by an embodiment of the present invention;

图4是本发明实施例提供的一种客户端APP界面示意图;Fig. 4 is a schematic diagram of a client APP interface provided by an embodiment of the present invention;

图5是本发明实施例提供的一种客户端APP界面示意图;Fig. 5 is a schematic diagram of a client APP interface provided by an embodiment of the present invention;

图6是本发明实施例提供的一种服务端结构示意图;FIG. 6 is a schematic structural diagram of a server provided by an embodiment of the present invention;

图7是本发明实施例提供的一种客户端结构示意图;Fig. 7 is a schematic structural diagram of a client provided by an embodiment of the present invention;

图8是本发明实施例提供的一种服务端结构示意图;FIG. 8 is a schematic structural diagram of a server provided by an embodiment of the present invention;

图9是本发明实施例提供的一种客户端结构示意图;Fig. 9 is a schematic structural diagram of a client provided by an embodiment of the present invention;

图10是本发明实施例提供了一种插件更新系统结构示意图。FIG. 10 is a schematic structural diagram of a plug-in update system provided by an embodiment of the present invention.

具体实施方式detailed description

为使本发明的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only Some, but not all, embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

实施例一为本发明实施例提供的一种插件更新方法,参照图1所示,该方法包括:Embodiment 1 is a plug-in update method provided by an embodiment of the present invention, as shown in FIG. 1 , the method includes:

101、服务端确认客户端APP所要加载的功能。101. The server confirms the functions to be loaded by the client APP.

具体的,通过以下操作中至少一个,实现服务端确认客户端APP所要加载的功能的步骤:Specifically, the server confirms the function to be loaded by the client APP through at least one of the following operations:

获取用户在客户端APP上触发的加载请求,根据加载请求,确认客户端APP所要加载的功能;或者Obtain the loading request triggered by the user on the client APP, and confirm the functions to be loaded by the client APP according to the loading request; or

在客户端APP检测到更新之后,根据客户端APP发送的更新请求,确认客户端APP所要加载的功能。After the client APP detects the update, it confirms the functions to be loaded by the client APP according to the update request sent by the client APP.

102、服务端从注册模块中加载功能对应的组件。102. The server loads components corresponding to functions from the registration module.

具体的,根据注册模块中的功能名称,从可执行文件群所包含的多个组件中选择所要加载的功能对应的组件。Specifically, according to the function name in the registration module, the component corresponding to the function to be loaded is selected from the multiple components contained in the executable file group.

103、服务端将组件加载至插件,并将插件发送至客户端APP。103. The server loads the component into the plug-in, and sends the plug-in to the client APP.

具体的,服务端将组件加载至插件,该过程可以为:Specifically, the server loads the component to the plug-in, and the process can be:

设置组件与数据层的通信配置数据;Set the communication configuration data between the component and the data layer;

将通信配置数据与组件封装至插件。Encapsulate communication configuration data and components into plugins.

104、客户端APP将插件加载至插件环境,并通过插件环境加载插件中的组件。104. The client APP loads the plug-in into the plug-in environment, and loads components in the plug-in through the plug-in environment.

具体的,客户端APP将插件加载至插件环境,该过程可以为:Specifically, the client APP loads the plug-in into the plug-in environment, and the process can be:

将通信配置数据加载至插件环境;Load communication configuration data into the plug-in environment;

根据通信配置数据,设置组件与数据层之间的通信机制。According to the communication configuration data, set the communication mechanism between the component and the data layer.

客户端APP通过插件环境加载插件中的组件,该过程可以为:The client APP loads the components in the plug-in through the plug-in environment. The process can be:

客户端APP加载组件。The client APP loads components.

其中,客户端APP加载组件,该过程可以为:Among them, the client APP loads components, the process can be:

在检测到用户加载事件后,加载组件,并在完成加载之后,运行客户端APP;After the user loading event is detected, the component is loaded, and after the loading is completed, the client APP is run;

其中,加载事件包括用户点击预设按键、用户输入预设手势以及用户持续点击界面的时间满足阈值。Wherein, the loading event includes the user clicking a preset button, the user inputting a preset gesture, and the duration of the user's continuous clicking on the interface meeting a threshold.

本发明实施例提供了一种插件更新方法,通过客户端APP将插件加载至插件环境,并通过插件环境加载插件中的组件,避免了通过下载并安装APP实现客户端的更新,从而节省了系统的处理资源以及运行资源,提高了用户体验。The embodiment of the present invention provides a plug-in update method. The plug-in is loaded into the plug-in environment through the client APP, and the components in the plug-in are loaded through the plug-in environment, which avoids updating the client by downloading and installing the APP, thereby saving system resources. Processing resources and running resources improves user experience.

实施例二为本发明实施例提供的一种插件更新方法,参照图2所示,该方法包括:Embodiment 2 is a plug-in update method provided by the embodiment of the present invention, as shown in FIG. 2 , the method includes:

201、服务端确认客户端APP所要加载的功能。201. The server confirms the functions to be loaded by the client APP.

具体的,通过以下操作中至少一个,服务端确认客户端APP所要加载的功能,该过程可以包括:Specifically, through at least one of the following operations, the server confirms the functions to be loaded by the client APP, and the process may include:

A、获取用户在客户端APP上触发的加载请求,根据加载请求,确认客户端APP所要加载的功能,该过程可以为:A. Obtain the loading request triggered by the user on the client APP, and confirm the functions to be loaded by the client APP according to the loading request. The process can be:

获取用户在客户端APP功能选择界面上输入的功能添加请求;其中,功能添加请求至少包括用户所选择的功能以及对所选择功能的个性化设置,该过程可以为:Obtain the function addition request input by the user on the client APP function selection interface; wherein, the function addition request includes at least the function selected by the user and the personalized settings for the selected function, and the process can be:

获取用户在功能选择界面触发的手势、语音以及文本数据中的任意一个;其中,该手势包括但不限于用户点击用于指示该功能的图标以及至少包括该图标手势轨迹;该语音或者文本数据至少包括用于描述用户所指示功能的关键字;Obtain any one of the gesture, voice and text data triggered by the user on the function selection interface; wherein, the gesture includes but is not limited to the user clicking on the icon used to indicate the function and at least the gesture track of the icon; the voice or text data is at least include keywords used to describe the functionality indicated by the user;

获取用户在功能选择界面触发的至少包括该图标手势轨迹之后,上述客户端APP获取用户触发的功能添加请求可以为:After obtaining at least the icon gesture trajectory triggered by the user on the function selection interface, the above client APP obtains the function addition request triggered by the user can be:

识别该手势轨迹以及该手势轨迹所包括的图标,本发明实施例对具体的识别方式不加以限定。The gesture track and the icons included in the gesture track are identified, and the embodiment of the present invention does not limit the specific identification manner.

获取用户在功能选择界面触发的语音或文本数据之后,上述客户端APP获取用户触发的功能添加请求可以为:After obtaining the voice or text data triggered by the user on the function selection interface, the above client APP obtains the function addition request triggered by the user can be:

解析并识别该语音或文本数据,本发明实施例对具体的解析或识别方式不加以限定。The voice or text data is analyzed and recognized, and the embodiment of the present invention does not limit the specific analysis or recognition manner.

示例性的,为了进一步说明本发明实施例的方法,假设该功能选择界面参照图3中的a所示,用户可以通过点击图3中a的图标,选择所指示的功能,参照图3中的b所示,用户还可以通过输入至少包括图标的手势轨迹,选择所指示的功能,该手势轨迹可以参照图3中的c所示,用户还可以通过输入语音或者文本数据,查找并选择所指示的功能,其中,语音输入界面和文本输入界面可以参照图3中的d和图3中的e所示。Exemplarily, in order to further illustrate the method of the embodiment of the present invention, it is assumed that the function selection interface is as shown in a in FIG. 3 , and the user can click the icon in a in FIG. As shown in b, the user can also select the indicated function by inputting a gesture track that includes at least an icon. The gesture track can be shown in c in FIG. function, wherein, the voice input interface and the text input interface can refer to d in FIG. 3 and e in FIG. 3 .

B、在客户端APP检测到更新之后,根据客户端APP发送的更新请求,确认客户端APP所要加载的功能,本发明实施例对具体的更新检测方式不加以限定。B. After the client APP detects the update, according to the update request sent by the client APP, confirm the functions to be loaded by the client APP. The embodiment of the present invention does not limit the specific update detection method.

202、根据注册模块中的功能名称,从可执行文件群所包含的多个组件中选择所要加载的功能对应的组件。202. According to the function name in the registration module, select a component corresponding to the function to be loaded from multiple components included in the executable file group.

具体的,该注册模块可以为在IOS系统中APPRegister注册的模块,可执行文件可以为JSBundle,该过程可以为:Specifically, the registration module can be a module registered by APPRegister in the IOS system, the executable file can be a JSBundle, and the process can be:

根据该功能的描述数据,从可执行文件群所包含的多个组件中选择所要加载的功能对应的组件,该描述数据包括但不限于功能的定义数据,交互实现数据以及运行实现数据。According to the description data of the function, select the component corresponding to the function to be loaded from the multiple components contained in the executable file group, the description data includes but not limited to the definition data of the function, the interaction realization data and the operation realization data.

203、服务端将组件加载至插件。203. The server loads the component into the plug-in.

具体的,该过程可以包括:Specifically, the process may include:

设置组件与数据层的通信配置数据,该通信配置数据可以为插件接口与数据层之间的数据资源调用方式。Set the communication configuration data between the component and the data layer. The communication configuration data can be the data resource calling method between the plug-in interface and the data layer.

将通信配置数据与组件封装至插件,该过程可以为根据客户端APP的系统信息,将组件与通信配置数据绑定至插件,本发明实施例对具体的绑定方式不加以限定。Encapsulating the communication configuration data and components into a plug-in, the process may be to bind the components and communication configuration data to the plug-in according to the system information of the client APP. The embodiment of the present invention does not limit the specific binding method.

204、服务端将插件发送至客户端APP。204. The server sends the plug-in to the client APP.

具体的,本发明实施例对具体的发送方式不加以限定。Specifically, the embodiment of the present invention does not limit the specific sending manner.

205、客户端APP将插件加载至插件环境。205. The client APP loads the plug-in into the plug-in environment.

具体的,该过程可以包括:Specifically, the process may include:

将通信配置数据加载至插件环境,该过程可以为:Load the communication configuration data into the plug-in environment, the process can be:

根据配置信息,设置注册模块中的功能与该插件之间的对应关系According to the configuration information, set the corresponding relationship between the functions in the registration module and the plug-in

根据配置信息,设置插件接口与数据层之间的数据资源调用方式According to the configuration information, set the data resource calling method between the plug-in interface and the data layer

根据通信配置数据,设置组件与数据层之间的通信机制,该过程可以为:According to the communication configuration data, set the communication mechanism between the component and the data layer, the process can be:

根据配置信息,设置注册模块中的功能与该插件之间的对应关系According to the configuration information, set the corresponding relationship between the functions in the registration module and the plug-in

根据配置信息,设置插件接口与数据层之间的数据资源调用方式。According to the configuration information, set the data resource calling method between the plug-in interface and the data layer.

206、客户端APP加载组件。206. The client APP loads a component.

具体的,该过程可以为:Specifically, the process can be:

在检测到用户加载事件后,加载组件,并在完成加载之后,运行客户端APP;After the user loading event is detected, the component is loaded, and after the loading is completed, the client APP is run;

其中,加载事件包括用户点击预设按键、用户输入预设手势以及用户持续点击界面的时间满足阈值,用户输入预设手势包括用户按照预先设置的方向输入滑动手势。Wherein, the loading event includes the user clicking a preset button, the user inputting a preset gesture, and the user continuing to click on the interface for a time that satisfies a threshold, and the user inputting a preset gesture includes the user inputting a sliding gesture in a preset direction.

在检测到加载事件之后,显示加载界面,并再客户端APP加载完成组件之后,关闭加载界面。After the loading event is detected, the loading interface is displayed, and after the client APP loads the component, the loading interface is closed.

示例性的,为了进一步说明本发明实施例的方法,假设用户点击预设按键,参照图4中的a所示,显示的加载界面可以参照图5所示,其中,图5中的加载动画部分可以根据加载进度,设置不同的显示方式,用户输入预设手势可以参照图4中的b所示,显示的加载界面可以参照图5所所示。Exemplarily, in order to further illustrate the method of the embodiment of the present invention, assume that the user clicks a preset button, as shown in a in FIG. 4, and the displayed loading interface can be shown in FIG. Different display modes can be set according to the loading progress. The user can input preset gestures as shown in b in FIG. 4 , and the displayed loading interface can refer to FIG. 5 .

值得注意的是,步骤205至步骤206是实现客户端APP将插件加载至插件环境,并通过插件环境加载插件中的组件的过程,除了上述步骤的方式之外,还可以通过其他方式实现该过程,本发明实施例对具体的方式不加以限定。It is worth noting that steps 205 to 206 are the process of realizing that the client APP loads the plug-in to the plug-in environment and loads the components in the plug-in through the plug-in environment. In addition to the above steps, this process can also be realized in other ways , the embodiment of the present invention does not limit the specific manner.

本发明实施例提供了一种插件更新方法,通过客户端APP将插件加载至插件环境,并通过插件环境加载插件中的组件,避免了通过下载并安装APP实现客户端的更新,从而节省了系统的处理资源以及运行资源,提高了用户体验。The embodiment of the present invention provides a plug-in update method. The plug-in is loaded into the plug-in environment through the client APP, and the components in the plug-in are loaded through the plug-in environment, which avoids updating the client by downloading and installing the APP, thereby saving system resources. Processing resources and running resources improves user experience.

实施例三为本发明实施例提供的一种服务端6,参照图6所示,该服务端6包括:Embodiment 3 is a kind of server 6 provided by the embodiment of the present invention, as shown in FIG. 6, the server 6 includes:

确认模块61,用于确认客户端APP所要加载的功能;Confirmation module 61, is used for confirming the function that client APP will load;

第一加载模块62,用于从注册模块中加载功能对应的组件;The first loading module 62 is used to load components corresponding to functions from the registration module;

第二加载模块63,用于将组件加载至插件;The second loading module 63 is used to load the component into the plug-in;

发送模块64,用于将插件发送至客户端APP,以使客户端APP将插件加载至插件环境,并通过插件环境加载插件中的组件。The sending module 64 is configured to send the plug-in to the client APP, so that the client APP loads the plug-in into the plug-in environment, and loads components in the plug-in through the plug-in environment.

可选的,确认模块61包括:Optionally, the confirmation module 61 includes:

获取子模块611,用于获取用户在客户端APP上触发的加载请求;Obtaining sub-module 611, configured to obtain the loading request triggered by the user on the client APP;

第一确认子模块612,用于根据加载请求,确认客户端APP所要加载的功能;The first confirmation submodule 612 is used to confirm the function to be loaded by the client APP according to the loading request;

第二确认子模块613,用于在客户端APP检测到更新之后,根据客户端APP发送的更新请求,确认客户端APP所要加载的功能。The second confirmation submodule 613 is configured to confirm the functions to be loaded by the client APP according to the update request sent by the client APP after the client APP detects the update.

可选的,第一加载模块62具体用于:Optionally, the first loading module 62 is specifically used for:

根据注册模块中的功能名称,从可执行文件群所包含的多个组件中选择所要加载的功能对应的组件。According to the function name in the registration module, the component corresponding to the function to be loaded is selected from the multiple components contained in the executable file group.

可选的,第二加载模块63包括:Optionally, the second loading module 63 includes:

通信配置数据设置子模块631,用于设置组件与数据层的通信配置数据;The communication configuration data setting sub-module 631 is used to set the communication configuration data of the component and the data layer;

封装子模块632,用于将通信配置数据与组件封装至插件。The encapsulation sub-module 632 is used for encapsulating the communication configuration data and components into the plug-in.

本发明实施例提供了一种服务端,该服务端通过客户端APP将插件加载至插件环境,并通过插件环境加载插件中的组件,避免了通过下载并安装APP实现客户端的更新,从而节省了系统的处理资源以及运行资源,提高了用户体验。The embodiment of the present invention provides a server, the server loads the plug-in to the plug-in environment through the client APP, and loads the components in the plug-in through the plug-in environment, avoiding the update of the client by downloading and installing the APP, thereby saving System processing resources and operating resources improve user experience.

实施例四为本发明实施例提供的一种客户端7,参照图7所示,该客户端7包括:Embodiment 4 is a client 7 provided by an embodiment of the present invention. Referring to FIG. 7, the client 7 includes:

发送模块71,用于发送所要加载的功能至服务端,以使服务端确认功能,从注册模块中加载功能对应的组件,并将组件加载至插件;The sending module 71 is used to send the function to be loaded to the server, so that the server can confirm the function, load the component corresponding to the function from the registration module, and load the component to the plug-in;

接收模块72,用于接收服务端发送的插件;The receiving module 72 is used to receive the plug-in sent by the server;

第一加载模块73,用于将插件加载至插件环境;The first loading module 73 is used to load the plug-in into the plug-in environment;

第二加载模块74,用于通过插件环境加载插件中的组件。The second loading module 74 is configured to load components in the plug-in through the plug-in environment.

可选的,发送模块71包括:Optionally, the sending module 71 includes:

第一发送子模块711,用于发送用户触发的加载请求至服务端;The first sending sub-module 711 is used to send the loading request triggered by the user to the server;

检测子模块712,用于检测更新;A detection submodule 712, configured to detect updates;

第二发送子模块713,用于检测子模块检测到更新之后,发送更新请求至服务端。The second sending sub-module 713 is configured to send an update request to the server after the detection sub-module detects the update.

可选的,第一加载模块73具体用于:Optionally, the first loading module 73 is specifically used for:

将通信配置数据加载至插件环境;Load communication configuration data into the plug-in environment;

根据通信配置数据,设置组件与数据层之间的通信机制。According to the communication configuration data, set the communication mechanism between the component and the data layer.

可选的,第二加载模块74包括:Optionally, the second loading module 74 includes:

加载子模块741,用于加载组件。The loading submodule 741 is used for loading components.

可选的,加载子模块741具体用于:Optionally, the loading submodule 741 is specifically used for:

在检测到用户加载事件后,加载组件,并在完成加载之后,运行APP;After detecting the user loading event, load the component, and run the APP after the loading is complete;

其中,加载事件包括用户点击预设按键、用户输入预设手势以及用户持续点击界面的时间满足阈值。Wherein, the loading event includes the user clicking a preset button, the user inputting a preset gesture, and the duration of the user's continuous clicking on the interface meeting a threshold.

本发明实施例提供了一种客户端,该客户端通过客户端APP将插件加载至插件环境,并通过插件环境加载插件中的组件,避免了通过下载并安装APP实现客户端的更新,从而节省了系统的处理资源以及运行资源,提高了用户体验。The embodiment of the present invention provides a client, the client loads the plug-in to the plug-in environment through the client APP, and loads the components in the plug-in through the plug-in environment, avoiding the update of the client by downloading and installing the APP, thereby saving System processing resources and operating resources improve user experience.

实施例五为本发明实施例提供的一种服务端8,参照图8所示,该服务端8包括存储器81以及与存储器81连接的处理器82,其中,存储器81用于存储一组程序代码,处理器82调用存储器81所存储的程序代码用于执行以下操作:Embodiment 5 is a server 8 provided by an embodiment of the present invention. Referring to FIG. 8, the server 8 includes a memory 81 and a processor 82 connected to the memory 81, wherein the memory 81 is used to store a set of program codes , the processor 82 calls the program code stored in the memory 81 to perform the following operations:

确认客户端APP所要加载的功能;Confirm the functions to be loaded by the client APP;

从注册模块中加载功能对应的组件;Load the component corresponding to the function from the registration module;

将组件加载至插件;load the component into the plugin;

将插件发送至客户端APP,以使客户端APP将插件加载至插件环境,并通过插件环境加载插件中的组件。Send the plug-in to the client APP, so that the client APP loads the plug-in into the plug-in environment, and loads the components in the plug-in through the plug-in environment.

可选的,处理器82调用存储器81所存储的程序代码用于执行以下操作:Optionally, the processor 82 calls the program code stored in the memory 81 to perform the following operations:

获取用户在客户端APP上触发的加载请求;Obtain the loading request triggered by the user on the client APP;

根据加载请求,确认客户端APP所要加载的功能;或者According to the loading request, confirm the functions to be loaded by the client APP; or

在客户端APP检测到更新之后,根据客户端APP发送的更新请求,确认客户端APP所要加载的功能。After the client APP detects the update, it confirms the functions to be loaded by the client APP according to the update request sent by the client APP.

可选的,处理器82调用存储器81所存储的程序代码用于执行以下操作:Optionally, the processor 82 calls the program code stored in the memory 81 to perform the following operations:

根据注册模块中的功能名称,从可执行文件群所包含的多个组件中选择所要加载的功能对应的组件。According to the function name in the registration module, the component corresponding to the function to be loaded is selected from the multiple components contained in the executable file group.

可选的,处理器82调用存储器81所存储的程序代码用于执行以下操作:Optionally, the processor 82 calls the program code stored in the memory 81 to perform the following operations:

设置组件与数据层的通信配置数据;Set the communication configuration data between the component and the data layer;

将通信配置数据与组件封装至插件。Encapsulate communication configuration data and components into plugins.

本发明实施例提供了一种服务端,该服务端通过客户端APP将插件加载至插件环境,并通过插件环境加载插件中的组件,避免了通过下载并安装APP实现客户端的更新,从而节省了系统的处理资源以及运行资源,提高了用户体验。The embodiment of the present invention provides a server, the server loads the plug-in to the plug-in environment through the client APP, and loads the components in the plug-in through the plug-in environment, avoiding the update of the client by downloading and installing the APP, thereby saving System processing resources and operating resources improve user experience.

实施例六为本发明实施例提供的一种客户端9,参照图9所示,该客户端9包括存储器91以及与存储器91连接的处理器92,其中,存储器91用于存储一组程序代码,处理器92调用存储器91所存储的程序代码用于执行以下操作:Embodiment 6 is a client 9 provided by the embodiment of the present invention. Referring to FIG. 9, the client 9 includes a memory 91 and a processor 92 connected to the memory 91, wherein the memory 91 is used to store a set of program codes , the processor 92 calls the program code stored in the memory 91 to perform the following operations:

发送所要加载的功能至服务端,以使服务端确认功能,从注册模块中加载功能对应的组件,并将组件加载至插件;Send the function to be loaded to the server, so that the server can confirm the function, load the component corresponding to the function from the registration module, and load the component to the plug-in;

接收服务端发送的插件;Receive the plug-in sent by the server;

将插件加载至插件环境;Load the plugin into the plugin environment;

通过插件环境加载插件中的组件。Components in the plugin are loaded through the plugin environment.

可选的,处理器92调用存储器91所存储的程序代码用于执行以下操作:Optionally, the processor 92 calls the program code stored in the memory 91 to perform the following operations:

发送用户触发的加载请求至服务端;或者Send a user-triggered loading request to the server; or

检测到更新之后,发送更新请求至服务端。After an update is detected, an update request is sent to the server.

可选的,处理器92调用存储器91所存储的程序代码用于执行以下操作:Optionally, the processor 92 calls the program code stored in the memory 91 to perform the following operations:

将通信配置数据加载至插件环境;Load communication configuration data into the plug-in environment;

根据通信配置数据,设置组件与数据层之间的通信机制。According to the communication configuration data, set the communication mechanism between the component and the data layer.

可选的,处理器92调用存储器91所存储的程序代码用于执行以下操作:Optionally, the processor 92 calls the program code stored in the memory 91 to perform the following operations:

加载组件。Load the component.

可选的,处理器92调用存储器91所存储的程序代码用于执行以下操作:Optionally, the processor 92 calls the program code stored in the memory 91 to perform the following operations:

在检测到用户加载事件后,加载组件,并在完成加载之后,运行APP;After detecting the user loading event, load the component, and run the APP after the loading is complete;

其中,加载事件包括用户点击预设按键、用户输入预设手势以及用户持续点击界面的时间满足阈值。Wherein, the loading event includes the user clicking a preset button, the user inputting a preset gesture, and the duration of the user's continuous clicking on the interface meeting a threshold.

本发明实施例提供了一种客户端,该客户端通过客户端APP将插件加载至插件环境,并通过插件环境加载插件中的组件,避免了通过下载并安装APP实现客户端的更新,从而节省了系统的处理资源以及运行资源,提高了用户体验。The embodiment of the present invention provides a client, the client loads the plug-in to the plug-in environment through the client APP, and loads the components in the plug-in through the plug-in environment, avoiding the update of the client by downloading and installing the APP, thereby saving System processing resources and operating resources improve user experience.

实施例七为本发明实施例提供的一种插件更新系统10,参照图10所示,该系统10包括服务端101和客户端102;Embodiment 7 is a plug-in update system 10 provided by the embodiment of the present invention. Referring to FIG. 10 , the system 10 includes a server 101 and a client 102;

服务端101包括:Server 101 includes:

确认模块1011,用于确认客户端APP所要加载的功能;Confirmation module 1011, used to confirm the functions to be loaded by the client APP;

第一加载模块1012,用于从注册模块中加载功能对应的组件;The first loading module 1012 is configured to load components corresponding to functions from the registration module;

第二加载模块1013,用于将组件加载至插件;The second loading module 1013 is used to load the component into the plug-in;

第一发送模块1014,用于将插件发送至客户端APP,以使客户端APP将插件加载至插件环境,并通过插件环境加载插件中的组件;The first sending module 1014 is configured to send the plug-in to the client APP, so that the client APP loads the plug-in into the plug-in environment, and loads components in the plug-in through the plug-in environment;

客户端102包括:Client 102 includes:

第二发送模块1021,用于发送所要加载的功能至服务端,以使服务端确认功能,从注册模块中加载功能对应的组件,并将组件加载至插件;The second sending module 1021 is used to send the function to be loaded to the server, so that the server can confirm the function, load the component corresponding to the function from the registration module, and load the component to the plug-in;

接收模块1022,用于接收服务端发送的插件;The receiving module 1022 is used to receive the plug-in sent by the server;

第三加载模块1023,用于将插件加载至插件环境;The third loading module 1023 is used to load the plug-in into the plug-in environment;

第四加载模块1024,用于通过插件环境加载插件中的组件。The fourth loading module 1024 is configured to load components in the plug-in through the plug-in environment.

可选的,确认模块1011包括:Optionally, the confirmation module 1011 includes:

获取子模块10111,用于获取用户在客户端APP上触发的加载请求;The acquisition sub-module 10111 is used to acquire the loading request triggered by the user on the client APP;

第一确认子模块10112,用于根据加载请求,确认客户端APP所要加载的功能;The first confirmation submodule 10112 is used to confirm the function to be loaded by the client APP according to the loading request;

第二确认子模块10113,用于在客户端APP检测到更新之后,根据客户端APP发送的更新请求,确认客户端APP所要加载的功能;The second confirmation submodule 10113 is used to confirm the functions to be loaded by the client APP according to the update request sent by the client APP after the client APP detects the update;

第二发送模块1021包括:The second sending module 1021 includes:

第一发送子模块10211,用于发送用户触发的加载请求至服务端;The first sending sub-module 10211 is used to send the loading request triggered by the user to the server;

检测子模块10212,用于检测更新;The detection sub-module 10212 is used to detect and update;

第二发送子模块10213,用于检测子模块检测到更新之后,发送更新请求至服务端。The second sending sub-module 10213 is configured to send an update request to the server after the detection sub-module detects the update.

可选的,第一加载模块1012具体用于:Optionally, the first loading module 1012 is specifically used for:

根据注册模块中的功能名称,从可执行文件群所包含的多个组件中选择所要加载的功能对应的组件。According to the function name in the registration module, the component corresponding to the function to be loaded is selected from the multiple components contained in the executable file group.

可选的,第二加载模块1013包括:Optionally, the second loading module 1013 includes:

通信配置数据设置子模块10131,用于设置组件与数据层的通信配置数据;The communication configuration data setting sub-module 10131 is used to set the communication configuration data of components and data layers;

封装子模块10132,用于将通信配置数据与组件封装至插件。The encapsulation sub-module 10132 is used for encapsulating the communication configuration data and components into the plug-in.

可选的,第三加载模块1023具体用于:Optionally, the third loading module 1023 is specifically used for:

将通信配置数据加载至插件环境;Load communication configuration data into the plug-in environment;

根据通信配置数据,设置组件与数据层之间的通信机制。According to the communication configuration data, set the communication mechanism between the component and the data layer.

可选的,第四加载模块1024包括:Optionally, the fourth loading module 1024 includes:

加载子模块10241,用于加载组件。Load submodule 10241, used to load components.

可选的,加载子模块10241具体用于:Optionally, the loading submodule 10241 is specifically used for:

在检测到用户加载事件后,加载组件,并在完成加载之后,运行APP;After detecting the user loading event, load the component, and run the APP after the loading is complete;

其中,加载事件包括用户点击预设按键、用户输入预设手势以及用户持续点击界面的时间满足阈值。Wherein, the loading event includes the user clicking a preset button, the user inputting a preset gesture, and the duration of the user's continuous clicking on the interface meeting a threshold.

本发明实施例提供了一种插件更新系统,该系统通过客户端APP将插件加载至插件环境,并通过插件环境加载插件中的组件,避免了通过下载并安装APP实现客户端的更新,从而节省了系统的处理资源以及运行资源,提高了用户体验。The embodiment of the present invention provides a plug-in update system, the system loads the plug-in to the plug-in environment through the client APP, and loads the components in the plug-in through the plug-in environment, avoiding the update of the client by downloading and installing the APP, thereby saving System processing resources and operating resources improve user experience.

上述所有可选技术方案,可以采用任意结合形成本发明的可选实施例,在此不再一一赘述。All the above optional technical solutions can be combined in any way to form an optional embodiment of the present invention, which will not be repeated here.

需要说明的是:上述实施例提供的服务端、客户端及系统在执行插件更新方法时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将服务端、客户端及系统的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的服务端、客户端及系统与插件更新方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that when the server, client and system provided in the above embodiments execute the plug-in update method, the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be assigned by different The functional modules are completed, that is, the server, client and the internal structure of the system are divided into different functional modules to complete all or part of the functions described above. In addition, the server, client, system, and plug-in update method embodiments provided in the above embodiments belong to the same idea, and the specific implementation process thereof is detailed in the method embodiments, and will not be repeated here.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, and can also be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, and the like.

以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within range.

Claims (10)

1.一种插件更新方法,其特征在于,所述方法包括:1. A plug-in update method, characterized in that the method comprises: 服务端确认客户端APP所要加载的功能;The server confirms the functions to be loaded by the client APP; 所述服务端从注册模块中加载所述功能对应的组件;The server loads components corresponding to the functions from the registration module; 所述服务端将所述组件加载至插件,并将所述插件发送至所述客户端APP;The server loads the component into a plug-in, and sends the plug-in to the client APP; 所述客户端APP将所述插件加载至插件环境,并通过所述插件环境加载所述插件中的组件。The client APP loads the plug-in into a plug-in environment, and loads components in the plug-in through the plug-in environment. 2.根据权利要求1所述的方法,其特征在于,通过以下操作中至少一个,实现所述服务端确认客户端APP所要加载的功能的步骤:2. The method according to claim 1, characterized in that the step of the server confirming the function to be loaded by the client APP is realized by at least one of the following operations: 获取用户在所述客户端APP上触发的加载请求,根据所述加载请求,确认所述客户端APP所要加载的功能;或者Obtain a loading request triggered by the user on the client APP, and confirm the function to be loaded by the client APP according to the loading request; or 在所述客户端APP检测到更新之后,根据所述客户端APP发送的更新请求,确认所述客户端APP所要加载的功能。After the client APP detects the update, according to the update request sent by the client APP, confirm the functions to be loaded by the client APP. 3.根据权利要求2所述的方法,其特征在于,所述服务端从注册模块中加载所述功能对应的组件包括:3. The method according to claim 2, wherein the loading of the component corresponding to the function by the server from the registration module includes: 根据所述注册模块中的功能名称,从可执行文件群所包含的多个组件中选择所要加载的所述功能对应的组件。According to the function name in the registration module, the component corresponding to the function to be loaded is selected from a plurality of components included in the executable file group. 4.根据权利要求3所述的方法,其特征在于,所述服务端将所述组件加载至插件包括:4. The method according to claim 3, wherein loading the component to the plug-in by the server comprises: 设置所述组件与数据层的通信配置数据;Setting communication configuration data between the component and the data layer; 将所述通信配置数据与所述组件封装至所述插件。Encapsulating the communication configuration data and the component into the plug-in. 5.根据权利要求4所述的方法,其特征在于,所述客户端APP将所述插件加载至插件环境包括:5. The method according to claim 4, wherein the client APP loading the plug-in to the plug-in environment comprises: 将所述通信配置数据加载至插件环境;Loading the communication configuration data into the plug-in environment; 根据所述通信配置数据,设置所述组件与数据层之间的通信机制。According to the communication configuration data, a communication mechanism between the component and the data layer is set. 6.根据权利要求5所述的方法,其特征在于,所述客户端APP通过所述插件环境加载所述插件中的组件包括:6. The method according to claim 5, wherein loading the components in the plug-in by the client APP through the plug-in environment comprises: 所述客户端APP加载所述组件。The client APP loads the component. 7.根据权利要求6所述的方法,其特征在于,所述客户端APP加载所述组件包括:7. The method according to claim 6, wherein loading the component by the client APP comprises: 在检测到用户加载事件后,加载所述组件,并在完成加载之后,运行所述客户端APP;After the user loading event is detected, the component is loaded, and after the loading is completed, the client APP is run; 其中,所述加载事件包括用户点击预设按键、用户输入预设手势以及用户持续点击界面的时间满足阈值。Wherein, the loading event includes the user clicking a preset button, the user inputting a preset gesture, and the duration of the user's continuous clicking on the interface meeting a threshold. 8.一种服务端,其特征在于,所述服务端包括:8. A server, characterized in that the server includes: 确认模块,用于确认客户端APP所要加载的功能;The confirmation module is used to confirm the functions to be loaded by the client APP; 第一加载模块,用于从注册模块中加载所述功能对应的组件;The first loading module is configured to load components corresponding to the functions from the registration module; 第二加载模块,用于将所述组件加载至插件;a second loading module, configured to load the component into the plug-in; 发送模块,用于将所述插件发送至所述客户端APP,以使所述客户端APP将所述插件加载至插件环境,并通过所述插件环境加载所述插件中的组件。A sending module, configured to send the plug-in to the client APP, so that the client APP loads the plug-in into a plug-in environment, and loads components in the plug-in through the plug-in environment. 9.一种客户端,其特征在于,所述客户端包括:9. A client, characterized in that the client includes: 发送模块,用于发送所要加载的功能至服务端,以使所述服务端确认所述功能,从注册模块中加载所述功能对应的组件,并将所述组件加载至插件;A sending module, configured to send the function to be loaded to the server, so that the server can confirm the function, load the component corresponding to the function from the registration module, and load the component to the plug-in; 接收模块,用于接收服务端发送的所述插件;A receiving module, configured to receive the plug-in sent by the server; 第一加载模块,用于将所述插件加载至插件环境;The first loading module is used to load the plug-in into the plug-in environment; 第二加载模块,用于通过所述插件环境加载所述插件中的组件。The second loading module is used to load the components in the plug-in through the plug-in environment. 10.一种插件更新系统,其特征在于,所述系统包括服务端和客户端:10. A plug-in update system, characterized in that the system includes a server and a client: 所述服务端包括:The server includes: 确认模块,用于确认客户端APP所要加载的功能;The confirmation module is used to confirm the functions to be loaded by the client APP; 第一加载模块,用于从注册模块中加载所述功能对应的组件;The first loading module is configured to load components corresponding to the functions from the registration module; 第二加载模块,用于将所述组件加载至插件;a second loading module, configured to load the component into the plug-in; 第一发送模块,用于将所述插件发送至所述客户端APP,以使所述客户端APP将所述插件加载至插件环境,并通过所述插件环境加载所述插件中的组件;A first sending module, configured to send the plug-in to the client APP, so that the client APP loads the plug-in into a plug-in environment, and loads components in the plug-in through the plug-in environment; 所述客户端包括:The clients include: 第二发送模块,用于发送所要加载的功能至服务端,以使所述服务端确认所述功能,从注册模块中加载所述功能对应的组件,并将所述组件加载至插件;The second sending module is used to send the function to be loaded to the server, so that the server can confirm the function, load the component corresponding to the function from the registration module, and load the component to the plug-in; 接收模块,用于接收服务端发送的所述插件;A receiving module, configured to receive the plug-in sent by the server; 第三加载模块,用于将所述插件加载至插件环境;The third loading module is used to load the plug-in into the plug-in environment; 第四加载模块,用于通过所述插件环境加载所述插件中的组件。The fourth loading module is used to load the components in the plug-in through the plug-in environment.
CN201610783200.8A 2016-08-31 2016-08-31 A plug-in update method, system, client and server Pending CN106453494A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610783200.8A CN106453494A (en) 2016-08-31 2016-08-31 A plug-in update method, system, client and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610783200.8A CN106453494A (en) 2016-08-31 2016-08-31 A plug-in update method, system, client and server

Publications (1)

Publication Number Publication Date
CN106453494A true CN106453494A (en) 2017-02-22

Family

ID=58091063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610783200.8A Pending CN106453494A (en) 2016-08-31 2016-08-31 A plug-in update method, system, client and server

Country Status (1)

Country Link
CN (1) CN106453494A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107291503A (en) * 2017-06-23 2017-10-24 广东神马搜索科技有限公司 Application program updating unit and method
CN112235333A (en) * 2019-07-15 2021-01-15 北京字节跳动网络技术有限公司 Function package management method, device, equipment and storage medium
CN114968406A (en) * 2022-05-27 2022-08-30 北京青云科技股份有限公司 Plug-in management method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7845258B2 (en) * 2003-08-20 2010-12-07 Sd3, Llc Brake cartridges for power equipment
US8959365B2 (en) * 2012-07-01 2015-02-17 Speedtrack, Inc. Methods of providing fast search, analysis, and data retrieval of encrypted data without decryption
US9046396B2 (en) * 2013-03-15 2015-06-02 Dieterich Standard, Inc. Process variable measurement using universal flow technology connection platform
CN104750528A (en) * 2015-03-31 2015-07-01 北京奇虎科技有限公司 Management method and device for components in Android program
CN105407130A (en) * 2015-09-25 2016-03-16 成都趣点科技有限公司 Mobile client plug-in system and mobile client plug-in processing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7845258B2 (en) * 2003-08-20 2010-12-07 Sd3, Llc Brake cartridges for power equipment
US8959365B2 (en) * 2012-07-01 2015-02-17 Speedtrack, Inc. Methods of providing fast search, analysis, and data retrieval of encrypted data without decryption
US9046396B2 (en) * 2013-03-15 2015-06-02 Dieterich Standard, Inc. Process variable measurement using universal flow technology connection platform
CN104750528A (en) * 2015-03-31 2015-07-01 北京奇虎科技有限公司 Management method and device for components in Android program
CN105407130A (en) * 2015-09-25 2016-03-16 成都趣点科技有限公司 Mobile client plug-in system and mobile client plug-in processing method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107291503A (en) * 2017-06-23 2017-10-24 广东神马搜索科技有限公司 Application program updating unit and method
CN112235333A (en) * 2019-07-15 2021-01-15 北京字节跳动网络技术有限公司 Function package management method, device, equipment and storage medium
CN114968406A (en) * 2022-05-27 2022-08-30 北京青云科技股份有限公司 Plug-in management method and device, electronic equipment and storage medium
CN114968406B (en) * 2022-05-27 2023-10-13 北京青云科技股份有限公司 Plug-in management method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106331135B (en) A partial interface updating method, system, client and server
KR102226782B1 (en) Seamless call transitions
US20170063611A1 (en) User Configuration Mechanism for Internet-of-Things (IOT)
CN102073507B (en) Method, device and system for calling widget
US9491563B1 (en) Pre-provisioning mobile application acquisition and utilization
US20140195663A1 (en) Method and System for Providing Cloud-Based Common Distribution Applications
CN106230977B (en) A kind of client functionality loading method, system, client and server-side
US20140086105A1 (en) Device and method for providing drawing screen sharing service
US20170357735A1 (en) Information presentation method, device, and system
US9246983B2 (en) Method and apparatus for widget compatibility and transfer
JP2018537757A (en) Method and mobile device for locking and unlocking a mobile device with a touch screen
KR102024820B1 (en) Desktop sharing method and mobile terminal
CN106201638A (en) A kind of plug-in loading method, system, client and service end
US9307010B2 (en) Data upload method using shortcut
US10437577B2 (en) Systems and methods for mobile application installation
CN106453494A (en) A plug-in update method, system, client and server
EP3192027A1 (en) Accounts control
EP3007470B1 (en) Performance improvement method in instance hosting environment and service system therefor
US20160380811A1 (en) Application hierarchy specification with real-time functional selection
CN111382039A (en) Method, device, electronic equipment and storage medium for reporting user behavior event
CN106775879B (en) VR application installation-free method and system based on android system client
CN108370500B (en) Optimized settings for wireless devices
CN102981721A (en) A method, device and mobile terminal for deleting an application program
JP7331132B2 (en) Application program installation method, operation method, electronic device, computer readable medium
CN104424260A (en) Browser information sharing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170222

RJ01 Rejection of invention patent application after publication