[go: up one dir, main page]

CN112269635B - Functional module configuration method, system, electronic device and storage medium - Google Patents

Functional module configuration method, system, electronic device and storage medium Download PDF

Info

Publication number
CN112269635B
CN112269635B CN202011111497.6A CN202011111497A CN112269635B CN 112269635 B CN112269635 B CN 112269635B CN 202011111497 A CN202011111497 A CN 202011111497A CN 112269635 B CN112269635 B CN 112269635B
Authority
CN
China
Prior art keywords
configuration information
module
target
functional module
target configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011111497.6A
Other languages
Chinese (zh)
Other versions
CN112269635A (en
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.)
Beijing Inspur Data Technology Co Ltd
Original Assignee
Beijing Inspur Data Technology 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 Beijing Inspur Data Technology Co Ltd filed Critical Beijing Inspur Data Technology Co Ltd
Priority to CN202011111497.6A priority Critical patent/CN112269635B/en
Publication of CN112269635A publication Critical patent/CN112269635A/en
Application granted granted Critical
Publication of CN112269635B publication Critical patent/CN112269635B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45591Monitoring or debugging support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本申请公开了一种功能模块配置方法、系统及设备和介质,该方法包括:获取预先编写的目标配置文件;提取目标配置文件中不同时间节点对应的功能模块配置信息并与对应的日历信息进行绑定封装,将封装后配置信息写入日历插件中;当功能模块运行时,通过读取日历插件中的封装后配置信息,获取目标配置信息;利用目标配置信息对功能模块进行更新以实现对应的功能。本申请预先在目标配置文件中编写了不同时间节点的配置信息,并与对应的日历信息绑定封装,封装后的信息中包括每天的日期信息以及每天的功能模块配置信息,在模块运行时通过日历插件即可根据日期信息更新功能模块配置,自动实现功能模块的功能更新,无需手动修改配置文件,提高了工作效率。

The present application discloses a method, system, device and medium for configuring a functional module. The method comprises: obtaining a pre-written target configuration file; extracting the functional module configuration information corresponding to different time nodes in the target configuration file and binding and encapsulating it with the corresponding calendar information, and writing the encapsulated configuration information into a calendar plug-in; when the functional module is running, obtaining the target configuration information by reading the encapsulated configuration information in the calendar plug-in; and updating the functional module using the target configuration information to realize the corresponding function. The present application pre-writes the configuration information of different time nodes in the target configuration file, and binds and encapsulates it with the corresponding calendar information. The encapsulated information includes the date information of each day and the functional module configuration information of each day. When the module is running, the calendar plug-in can be used to update the functional module configuration according to the date information, and the functional update of the functional module is automatically realized without manually modifying the configuration file, thereby improving work efficiency.

Description

Function module configuration method, system, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technology, and more particularly, to a method and a system for configuring a functional module, an electronic device, and a computer readable storage medium.
Background
In cloud computing management platforms, there are typically some modules that require functionality to be altered by reading a configuration file. For example, the license version number can remind and alarm the remaining time according to the date, and the virtual machine manages the configuration file and fills the configuration memory, CPU and the like of some hardware information for the virtual machine by reading the configuration file. However, if the configuration file needs to be changed according to perpetual calendar time, the user needs to manually change the configuration file, which results in low efficiency and poor usability.
Therefore, how to solve the above problems is a great concern for those skilled in the art.
Disclosure of Invention
The application aims to provide a functional module configuration method and system, electronic equipment and a computer readable storage medium, and the usability and the working efficiency of the module are improved.
In order to achieve the above object, the present application provides a method for configuring a functional module, including:
acquiring a target configuration file written for a functional module in advance;
Extracting function module configuration information corresponding to different time nodes in the target configuration file, binding and packaging the function module configuration information and corresponding calendar information, and writing the packaged configuration information into a calendar plug-in;
When the functional module operates, acquiring target configuration information corresponding to a current time node by reading the packaged configuration information in the calendar plug-in;
and updating the functional module by utilizing the target configuration information so that the functional module realizes the function corresponding to the target configuration information.
Optionally, the obtaining a target configuration file written in advance for the functional module includes:
Acquiring an initial configuration file corresponding to the functional module;
and returning the initial configuration file to the user terminal so that the user terminal adds function module configuration information corresponding to different time nodes in the initial configuration file to obtain the target configuration file.
Optionally, the updating the function module with the target configuration information to enable the function module to implement a function corresponding to the target configuration information includes:
if the target configuration information comprises the call quota of the virtual resource, modifying the original call quota into a target call quota corresponding to the target configuration information;
After receiving a call request for the virtual resource, judging whether an actual call allowance corresponding to the call request exceeds the target call allowance;
If yes, returning a first prompt message exceeding the call limit, and prohibiting the response to the call request;
if not, allowing to respond to the call request.
Optionally, after modifying the original call quota to the target call quota corresponding to the target configuration information, the method further includes:
And returning second prompt information to the user of the functional module, wherein the second prompt information is used for prompting the resource to call the quota adjustment.
Optionally, the method further comprises:
Receiving a setting instruction for configuring an update period for a functional module;
And acquiring an updating time period according to the setting instruction so as to read the packaged configuration information in the calendar plug-in at regular time according to the updating time period.
Optionally, when the function module operates, the obtaining, by reading the packaged configuration information in the calendar plug-in, target configuration information corresponding to a current time node includes:
when the functional module operates, judging whether the corresponding updating time period exists or not;
if yes, the packaged configuration information in the calendar plug-in is read regularly according to the updating time period so as to acquire target configuration information corresponding to the current time node;
And if not, the packaged configuration information in the calendar plug-in is read at regular time according to a default time period so as to acquire target configuration information corresponding to the current time node.
To achieve the above object, the present application provides a function module configuration system, including:
the file acquisition module is used for acquiring a target configuration file written for the functional module in advance;
The configuration binding module is used for extracting function module configuration information corresponding to different time nodes in the target configuration file, binding and packaging the function module configuration information and the corresponding calendar information, and writing the packaged configuration information into the calendar plug-in;
The configuration reading module is used for obtaining target configuration information corresponding to the current time node by reading the packaged configuration information in the calendar plug-in when the functional module operates;
And the function updating module is used for updating the function module by utilizing the target configuration information so as to enable the function module to realize the function corresponding to the target configuration information.
Optionally, the method further comprises:
the instruction receiving module is used for receiving a setting instruction aiming at the function module configuration update period;
and the period acquisition module is used for acquiring an updating time period according to the setting instruction so as to read the packaged configuration information in the calendar plug-in at regular time according to the updating time period.
To achieve the above object, the present application provides an electronic device including:
a memory for storing a computer program;
A processor for implementing the steps of any of the functional module configuration methods disclosed above when executing the computer program.
To achieve the above object, the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of any of the function module configuration methods disclosed above.
According to the technical scheme, the function module configuration method comprises the steps of obtaining a target configuration file written for a function module in advance, extracting function module configuration information corresponding to different time nodes in the target configuration file, binding and packaging the function module configuration information and corresponding calendar information, writing the packaged configuration information into a calendar plug-in unit, obtaining the target configuration information corresponding to the current time node by reading the packaged configuration information in the calendar plug-in unit when the function module operates, and updating the function module by utilizing the target configuration information so that the function module achieves functions corresponding to the target configuration information. According to the method, the configuration information corresponding to different time nodes is written in the target configuration file in advance, after the target configuration file is obtained, the configuration information and the corresponding calendar information can be bound and packaged, the packaged information comprises daily date information and daily function module configuration information, when the function module operates, the function module configuration can be updated according to the date information through the calendar plug-in, the function update of the function module is automatically realized, the configuration file does not need to be manually modified at the appointed time, and the usability and the working efficiency of the module are effectively improved.
The application also discloses a functional module configuration system, electronic equipment and a computer readable storage medium, and the technical effects can be realized.
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 as claimed.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for configuring a functional module according to an embodiment of the present application;
FIG. 2 is a flowchart of another method for configuring a functional module according to an embodiment of the present application;
FIG. 3 is a block diagram of a functional module configuration system according to an embodiment of the present application;
Fig. 4 is a block diagram of an electronic device according to an embodiment of the present application;
fig. 5 is a block diagram of another electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In the related art, if the configuration file needs to be changed according to perpetual calendar time, a user is required to manually change the configuration file by reading the function module for changing the configuration file, so that the efficiency is low and the usability is poor.
Therefore, the embodiment of the application discloses a functional module configuration method, which effectively improves the usability and the working efficiency of the module.
Referring to fig. 1, a method for configuring a functional module according to an embodiment of the present application includes:
s101, acquiring a target configuration file written for a functional module in advance;
In the embodiment of the application, the target configuration file written for the functional module in advance can be firstly obtained, the target configuration file is specifically used for configuring the functional functions and the like which can be realized by the functional module, and in the specific implementation, the configuration file can be specifically in an XML (Xtensible Markup Languag extensible markup language) format.
As a possible implementation manner, the process of obtaining the target configuration file written for the functional module in advance may specifically include obtaining an initial configuration file corresponding to the functional module, and returning the initial configuration file to the user terminal, so that the user terminal adds configuration information of the functional module corresponding to different time nodes in the initial configuration file to obtain the target configuration file. That is, initial values of various configuration information of the functional module may be included in the initial configuration file. The developer can modify and update the initial configuration file through the user terminal, and write the configuration information of the function modules corresponding to different time nodes into the initial configuration file to obtain the target configuration file comprising the configuration information according to time.
As another possible implementation manner, the process of obtaining the target configuration file written in advance for the functional module may specifically include obtaining the required target configuration file by means of copying from an external storage device. That is, the external storage device may be used to copy the target configuration file from the preset device, and then copy the target configuration file in the external storage device to the current device, so as to obtain the file.
S102, extracting function module configuration information corresponding to different time nodes in the target configuration file, binding and packaging the function module configuration information and corresponding calendar information, and writing the packaged configuration information into a calendar plug-in;
in this step, functional module configuration information corresponding to different time nodes may be extracted from the target configuration file obtained in the above step, and then binding and packaging the functional module configuration information and the corresponding calendar information, to obtain packaged configuration information, and writing the packaged configuration information into the calendar plug-in.
It should be noted that, in this step, the function module configuration information may be extracted from the target configuration file specifically by means of keyword extraction. Binding and packaging the configuration information of the function module and the corresponding calendar information, namely, the configuration information after binding comprises date information and configuration files corresponding to the date, and writing the configuration information after packaging into a calendar plug-in through an interface.
S103, when the functional module operates, acquiring target configuration information corresponding to a current time node by reading the packaged configuration information in the calendar plug-in;
in a specific implementation, when the functional module is running, the target configuration information corresponding to the current time node can be obtained by reading the packaged configuration information in the calendar plug-in.
In a preferred implementation manner, the embodiment of the application can also receive a setting instruction for configuring an update period for the functional module, and acquire the update time period according to the setting instruction so as to read the packaged configuration information in the calendar plug-in at regular time according to the update time period. That is, the user can set the update time period according to the actual requirement, and the subsequent functional module can acquire the configuration to perform the timing update according to the set update time period.
Specifically, when the functional module is running, it may be determined whether the corresponding update time period exists, that is, whether a time period set by the user exists. If the target configuration information does not exist, the packaged configuration information in the calendar plug-in can be read regularly according to the default time period so as to acquire the target configuration information corresponding to the current time node.
And S104, updating the functional module by utilizing the target configuration information so as to enable the functional module to realize the function corresponding to the target configuration information.
It can be understood that after the target configuration information is obtained, the function module can be updated by using the target configuration information, and the updated function module can realize the function corresponding to the target configuration file.
According to the technical scheme, the function module configuration method comprises the steps of obtaining a target configuration file written for a function module in advance, extracting function module configuration information corresponding to different time nodes in the target configuration file, binding and packaging the function module configuration information and corresponding calendar information, writing the packaged configuration information into a calendar plug-in unit, obtaining the target configuration information corresponding to the current time node by reading the packaged configuration information in the calendar plug-in unit when the function module operates, and updating the function module by utilizing the target configuration information so that the function module achieves functions corresponding to the target configuration information. According to the method, the configuration information corresponding to different time nodes is written in the target configuration file in advance, after the target configuration file is obtained, the configuration information and the corresponding calendar information can be bound and packaged, the packaged information comprises daily date information and daily function module configuration information, when the function module operates, the function module configuration can be updated according to the date information through the calendar plug-in, the function update of the function module is automatically realized, the configuration file does not need to be manually modified at the appointed time, and the usability and the working efficiency of the module are effectively improved.
The embodiment of the application discloses a specific function module configuration method, and compared with the previous embodiment, the technical scheme of the embodiment is further described and optimized. See fig. 2 for details:
S201, acquiring a target configuration file written for a functional module in advance;
s202, extracting function module configuration information corresponding to different time nodes in the target configuration file, binding and packaging the function module configuration information and corresponding calendar information, and writing the packaged configuration information into a calendar plug-in;
S203, when the functional module operates, acquiring target configuration information corresponding to a current time node by reading the packaged configuration information in the calendar plug-in;
S204, if the target configuration information comprises the call quota of the virtual resource, modifying the original call quota into a target call quota corresponding to the target configuration information;
In the embodiment of the present application, the target configuration information may be specifically a call quota of the virtual resource, that is, the call quota of the virtual resource may be adjusted in real time according to a specific date. If the target configuration information includes the call quota of the virtual resource, the original call quota can be modified into a target call quota corresponding to the target configuration information. For example, the WeChat red envelope limit may be adjusted based on the actual date.
S205, judging whether the actual call quota corresponding to the call request exceeds the target call quota after receiving the call request for the virtual resource, if so, entering step S206, otherwise, entering step S207;
s206, returning a first prompt message exceeding the call limit and prohibiting the response to the call request;
s207, allowing to respond to the call request.
After the call quota of the virtual resource is modified, if the call request for the virtual resource is received within the time range limited by the calendar information, whether the actual call quota corresponding to the current call request exceeds the target call quota is required to be judged. If yes, the response to the call request is forbidden, and a first prompt message exceeding the call limit is returned, and if not, the response to the current call request is allowed.
As a preferred implementation manner, after modifying the original call quota into the target call quota corresponding to the target configuration information, the embodiment of the application may further return second prompt information to the user of the function module, where the second prompt information is used to prompt the user to call the quota adjustment, and the user may obtain information of the quota adjustment before initiating the call request, so that it is convenient to directly use a new function or initiate a call request meeting the current quota, thereby improving user experience.
The following describes a method for configuring a functional module according to an embodiment of the present application through a specific implementation scenario.
Specifically, for a functional module that often needs to change configuration information, an XML-format configuration file may be pre-written, and the configuration file is read in the initialization process of the functional module, where initial values of various configuration information are defined in the configuration file, and the initial values are specifically distinguished according to current date information in a calendar.
For some reason, the configuration information of the functional module needs to be changed to a specific value, for example, a WeChat red package, and a maximum limit of 200 is usually set, and the configuration information can be changed to 520 on a specified date, that is, the configuration information is changed according to calendar information, and the calendar information is updated every day, so that the calendar information can be expanded according to the daily configuration information, that is, the daily configuration information is written into the calendar information, and the data information returned by acquiring the calendar information is enriched.
It can be understood that the initial calendar information may only contain date information, and the calendar information is expanded through the interface of the calendar plug-in, and the structure of the packaged calendar information is the date information and the specific configuration information corresponding to each day. Thus, when the system performs the update of the function module every day, it is only necessary to read the configuration information therein by the time of the update date and perform the system update.
In addition, since many functions in the system require occasional updates of configuration information, which may be different from day to day, it is necessary to read the calendar daily for updating the function configuration information. In a specific implementation, the update period may be specifically set according to the update frequency of the configuration information, and if the configuration does not need to be changed according to the fine time such as the hour, the update may be directly performed according to the date information, that is, the update is automatically performed every zero point.
The following describes a functional module configuration system according to an embodiment of the present application, and the functional module configuration system described below and the functional module configuration method described above may be referred to each other.
Referring to fig. 3, a functional module configuration system provided in an embodiment of the present application includes:
A file obtaining module 301, configured to obtain a target configuration file written for a functional module in advance;
a configuration binding module 302, configured to extract function module configuration information corresponding to different time nodes in the target configuration file, bind and encapsulate the function module configuration information and corresponding calendar information, and write the encapsulated configuration information into a calendar plug-in;
A configuration reading module 303, configured to obtain, when the function module is running, target configuration information corresponding to a current time node by reading the packaged configuration information in the calendar plug-in;
And the function updating module 304 is configured to update the function module with the target configuration information, so that the function module implements a function corresponding to the target configuration information.
The specific implementation process of the modules 301 to 304 may refer to the corresponding content disclosed in the foregoing embodiment, and will not be described herein.
On the basis of the foregoing embodiment, as a preferred implementation manner, the functional module configuration system provided by the embodiment of the present application may further include:
the instruction receiving module is used for receiving a setting instruction aiming at the function module configuration update period;
and the period acquisition module is used for acquiring an updating time period according to the setting instruction so as to read the packaged configuration information in the calendar plug-in at regular time according to the updating time period.
The application also provides an electronic device, as shown in fig. 4, and the electronic device provided by the embodiment of the application includes:
a memory 100 for storing a computer program;
the processor 200, when executing the computer program, may implement the steps provided in the above embodiments.
Specifically, the memory 100 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer readable instructions, and the internal memory provides an environment for the operating system and the execution of the computer readable instructions in the non-volatile storage medium. The processor 200 may be a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor, or other data processing chip in some embodiments, to provide computing and control capabilities for the electronic device, and to implement the method for configuring the functional modules disclosed in any of the foregoing embodiments when executing the computer program stored in the memory 100.
On the basis of the above embodiment, as a preferred implementation manner, referring to fig. 5, the electronic device further includes:
An input interface 300, coupled to the processor 200, for obtaining externally imported computer programs, parameters and instructions, which are stored in the memory 100 under control of the processor 200. The input interface 300 may be coupled to an input device for receiving parameters or instructions manually entered by a user. The input device can be a touch layer covered on a display screen, can also be a key, a track ball or a touch pad arranged on a terminal shell, and can also be a keyboard, a touch pad or a mouse, etc.
And a display unit 400 connected to the processor 200 for displaying data processed by the processor 200 and for displaying a visualized user interface. The display unit 400 may be an LED display, a liquid crystal display, a touch-control type liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like.
The network port 500 is connected to the processor 200 and is used for communication connection with external terminal devices. The communication technology adopted by the communication connection can be a wired communication technology or a wireless communication technology, such as a mobile high definition link technology (MHL), a Universal Serial Bus (USB), a High Definition Multimedia Interface (HDMI), a wireless fidelity technology (WiFi), a Bluetooth communication technology with low power consumption, a communication technology based on IEEE802.11s, and the like.
Fig. 5 illustrates only an electronic device having assemblies 100-500, and it will be understood by those skilled in the art that the configuration illustrated in fig. 5 is not limiting of the electronic device and may include fewer or more components than illustrated, or may combine certain components, or a different arrangement of components.
The application also provides a computer readable storage medium, which can comprise a U disk, a mobile hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk and other various media capable of storing program codes. The storage medium has stored thereon a computer program which, when executed by a processor, implements the method of configuring a functional module as disclosed in any of the foregoing embodiments.
According to the method, configuration information corresponding to different time nodes is written in the target configuration file in advance, after the target configuration file is obtained, the configuration information and the corresponding calendar information can be bound and packaged, the packaged information comprises daily date information and daily function module configuration information, when the function module operates, the function module configuration can be updated according to the date information through the calendar plug-in, the function update of the function module is automatically realized, the configuration file does not need to be manually modified at the appointed time, and the usability and the working efficiency of the module are effectively improved.
In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the application can be made without departing from the principles of the application and these modifications and adaptations are intended to be within the scope of the application as defined in the following claims.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.

Claims (5)

1. The functional module configuration method is characterized by being applied to a cloud computing management platform and comprising the following steps of:
The method comprises the steps of obtaining a target configuration file written for a functional module in advance, wherein the target configuration file is used for configuring a functional function which can be realized by the functional module and adopts an XML format;
Extracting function module configuration information corresponding to different time nodes in the target configuration file, binding and packaging the function module configuration information and corresponding calendar information, and writing the packaged configuration information into a calendar plug-in;
When the functional module operates, acquiring target configuration information corresponding to a current time node by reading the packaged configuration information in the calendar plug-in;
updating the function module by utilizing the target configuration information so that the function module realizes the function corresponding to the target configuration information;
the obtaining the target configuration file written for the functional module in advance comprises the following steps:
Returning the initial configuration file to the user terminal so that the user terminal adds function module configuration information corresponding to different time nodes in the initial configuration file to obtain the target configuration file;
The method comprises the steps of updating the function module by utilizing the target configuration information to enable the function module to realize the function corresponding to the target configuration information, wherein the method comprises the steps of modifying an original call quota into a target call quota corresponding to the target configuration information if the target configuration information comprises the call quota of a virtual resource, judging whether an actual call quota corresponding to the call request exceeds the target call quota after receiving a call request aiming at the virtual resource, returning first prompt information exceeding the call quota and prohibiting to respond to the call request if the actual call quota exceeds the target call quota, and allowing to respond to the call request if the actual call quota exceeds the target call quota;
After the original call quota is modified into the target call quota corresponding to the target configuration information, the method further comprises the step of returning second prompt information to a user of the functional module, wherein the second prompt information is used for prompting resource call quota adjustment;
The method further comprises the steps of receiving a setting instruction for configuring an update period for the functional module, and acquiring an update time period according to the setting instruction so as to read the packaged configuration information in the calendar plug-in at regular time according to the update time period.
2. The method for configuring a functional module according to claim 1, wherein when the functional module is running, the obtaining the target configuration information corresponding to the current time node by reading the encapsulated configuration information in the calendar plug-in includes:
when the functional module operates, judging whether the corresponding updating time period exists or not;
if yes, the packaged configuration information in the calendar plug-in is read regularly according to the updating time period so as to acquire target configuration information corresponding to the current time node;
And if not, the packaged configuration information in the calendar plug-in is read at regular time according to a default time period so as to acquire target configuration information corresponding to the current time node.
3. A functional module configuration system, characterized by being applied to a cloud computing management platform, comprising:
The system comprises a file acquisition module, a function module and a function module, wherein the file acquisition module is used for acquiring a target configuration file written for the function module in advance, and the target configuration file is used for configuring the function functions which can be realized by the function module and adopts an XML format;
The configuration binding module is used for extracting function module configuration information corresponding to different time nodes in the target configuration file, binding and packaging the function module configuration information and the corresponding calendar information, and writing the packaged configuration information into the calendar plug-in;
The configuration reading module is used for obtaining target configuration information corresponding to the current time node by reading the packaged configuration information in the calendar plug-in when the functional module operates;
The function updating module is used for updating the function module by utilizing the target configuration information so as to enable the function module to realize the function corresponding to the target configuration information;
The file acquisition module is specifically used for acquiring an initial configuration file corresponding to the functional module, and returning the initial configuration file to the user terminal so that the user terminal adds functional module configuration information corresponding to different time nodes in the initial configuration file to obtain the target configuration file;
the function updating module is specifically configured to modify an original call quota into a target call quota corresponding to the target configuration information if the target configuration information includes the call quota of the virtual resource, and after receiving a call request for the virtual resource, determine whether an actual call quota corresponding to the call request exceeds the target call quota;
The system is also used for returning second prompt information to the user of the functional module, wherein the second prompt information is used for prompting the resource calling quota adjustment;
The system further comprises an instruction receiving module and a period acquisition module, wherein the instruction receiving module is used for receiving a setting instruction for configuring an update period for the functional module, and the period acquisition module is used for acquiring an update time period according to the setting instruction so as to read the packaged configuration information in the calendar plug-in at regular time according to the update time period.
4. An electronic device, comprising:
a memory for storing a computer program;
processor for implementing the steps of the method for configuring a functional module according to any one of claims 1 to 2 when executing said computer program.
5. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the functional module configuration method according to any of claims 1 to 2.
CN202011111497.6A 2020-10-16 2020-10-16 Functional module configuration method, system, electronic device and storage medium Active CN112269635B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011111497.6A CN112269635B (en) 2020-10-16 2020-10-16 Functional module configuration method, system, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011111497.6A CN112269635B (en) 2020-10-16 2020-10-16 Functional module configuration method, system, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN112269635A CN112269635A (en) 2021-01-26
CN112269635B true CN112269635B (en) 2025-02-14

Family

ID=74338348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011111497.6A Active CN112269635B (en) 2020-10-16 2020-10-16 Functional module configuration method, system, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN112269635B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113568666B (en) * 2021-06-07 2024-05-24 阿里巴巴创新公司 Image processing method, device, storage medium and processor
CN113986337A (en) * 2021-11-02 2022-01-28 北京紫光展锐通信技术有限公司 Method, device, device and storage medium for setting firmware parameters

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110275735A (en) * 2019-06-24 2019-09-24 深圳乐信软件技术有限公司 An interface configuration method, device, terminal and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314651A (en) * 2010-06-30 2012-01-11 腾讯科技(北京)有限公司 Resource exhibition method and device
US10391958B2 (en) * 2015-07-30 2019-08-27 Ford Global Technologies, Llc Methods and systems to customize a vehicle computing system based on an electronic calendar
CN108391009A (en) * 2018-02-13 2018-08-10 广东欧珀移动通信有限公司 Application page display method, device, storage medium and electronic device
CN108647051B (en) * 2018-03-13 2021-03-09 Oppo广东移动通信有限公司 Optimization strategy acquisition method, provision method, device and equipment
CN109101381A (en) * 2018-08-02 2018-12-28 Oppo(重庆)智能科技有限公司 Configuration file update method, system, electronic equipment and storage medium
CN110046730A (en) * 2019-02-27 2019-07-23 拉扎斯网络科技(上海)有限公司 Automatic meal ordering method, device, server and readable storage medium
CN110196725B (en) * 2019-04-23 2024-12-31 平安科技(深圳)有限公司 Configuration file management method, device, computer equipment and storage medium
CN110300227A (en) * 2019-06-28 2019-10-01 北京金山安全软件有限公司 Call interface display method, device and equipment of terminal equipment
CN111625511B (en) * 2020-05-22 2023-11-03 广东浪潮大数据研究有限公司 Configuration file management method and device, electronic equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110275735A (en) * 2019-06-24 2019-09-24 深圳乐信软件技术有限公司 An interface configuration method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN112269635A (en) 2021-01-26

Similar Documents

Publication Publication Date Title
WO2020015166A1 (en) Charting component creation method and device and computer readable storage medium
US8978023B2 (en) Canonical mechanism for securely assembling features into a mobile application
CN107832099B (en) A client version compatible method, device and storage medium
CN104731589A (en) Automatic generation method and device of user interface (UI)
CN108572825B (en) User interface processing method, device and equipment
WO2020019458A1 (en) Page switching method of hybrid application, framework, computer device and storage medium
CN110569130A (en) A method, apparatus and device for cross-process communication
CN107656729B (en) List view updating apparatus, method and computer-readable storage medium
CN109933760A (en) Form generation method, apparatus, computer device, and computer-readable storage medium
CN111367518B (en) Page layout method, page layout device, computing equipment and computer storage medium
CN108647032B (en) Application loading method and apparatus, computer apparatus and computer-readable storage medium
CN106469071B (en) Application theme changing method and device
WO2017107851A1 (en) Method and device for releasing and updating desktop application component
CN110555073A (en) data processing method and device, electronic equipment and storage medium
CN112269635B (en) Functional module configuration method, system, electronic device and storage medium
CN109669692B (en) Source code sharing method, server, computer readable storage medium and system
CN105138337B (en) A kind of plug-in unit adaptation method and plug-in unit adaptive device
CN110888843A (en) Cross-host sparse file copying method, device, equipment and storage medium
CN113504918A (en) Equipment tree configuration optimization method and device, computer equipment and storage medium
CN104461509B (en) A kind of information interaction system and method
CN114489894A (en) Client user interface updating method and device, client and server
CN118192965A (en) Page component processing method, device, computer equipment, storage medium and product
CN113342420B (en) Firmware configuration method, device, equipment and storage medium
CN107092601B (en) Resource file construction method, resource file application method and device
CN113590996A (en) Buried point data generation method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant