CN112957742A - Processing method and processing device for configuration file - Google Patents

Processing method and processing device for configuration file Download PDF

Info

Publication number
CN112957742A
CN112957742A CN202110371462.4A CN202110371462A CN112957742A CN 112957742 A CN112957742 A CN 112957742A CN 202110371462 A CN202110371462 A CN 202110371462A CN 112957742 A CN112957742 A CN 112957742A
Authority
CN
China
Prior art keywords
data
server
configuration
configuration file
format
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
CN202110371462.4A
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.)
Beijing Grela Technology Co ltd
Original Assignee
Beijing Grela 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 Grela Technology Co ltd filed Critical Beijing Grela Technology Co ltd
Priority to CN202110371462.4A priority Critical patent/CN112957742A/en
Publication of CN112957742A publication Critical patent/CN112957742A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/77Game security or game management aspects involving data related to game devices or game servers, e.g. configuration data, software version or amount of memory
    • 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
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/55Details of game data or player data management
    • A63F2300/552Details of game data or player data management for downloading to client devices, e.g. using OS version, hardware or software profile of the client device

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • General Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a processing method and a processing device for configuration files, wherein the processing method comprises the step of forming a configuration table based on the configuration files of an interaction component import target program of electronic equipment, the expression form of the configuration table is a table structure, and the table structure is at least one preset form of the following: field type, field name, and field description; exporting the data to be configured in the configuration file from the configuration table based on the format of the data to be configured; and synchronizing the data to be configured to the first server to support the running of the target program. The configuration file can be directly imported through the interactive component of the electronic equipment, other application programs do not need to be independently installed, the operation is convenient, and the maintenance cost is low; moreover, the data to be configured is selectively derived through the format of the data to be configured, and the data to be configured is synchronized to the first server, so that the data to be configured in the first server can be modified in a targeted manner, and the maintenance cost is low.

Description

Processing method and processing device for configuration file
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for processing a configuration file.
Background
The game profile is an important component in the game server. Specifically, a large number of Excel configuration files are generated in the game development and operation process, and then the content in the Excel is converted into a format which can be used by a server, so that the normal operation of the game is realized.
The currently common conversion methods mainly include the following two methods: 1. the contents in the Excel are converted into a format which can be used by a server by using a python or other scripting language writing tool and further by using the python or other scripting language writing tool; 2. and using a third-party tool such as Navicat for Mysql, firstly creating a corresponding table according to the header of the Excel and the data type of each column, then importing the content contained in the Excel into the table, and then exporting the table into a format which can be used by a server.
However, in the first mode, each Excel needs to be individually corresponding to one script file to process the file content, which results in higher maintenance cost; in the second mode, once the field of Excel changes, the table structure corresponding to Excel needs to be maintained, and the maintenance cost is higher; in addition, a third-party tool is required in both the two modes, and the operation is inconvenient.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for processing a configuration file, which can reduce maintenance cost and facilitate operation.
In a first aspect, an embodiment of the present application provides a method for processing a configuration file, where the method includes:
the method comprises the following steps of importing a configuration file of a target program to form a configuration table based on an interactive component of the electronic equipment, wherein the expression form of the configuration table is a table structure, and the table structure comprises at least one preset form: field type, field name, and field description;
exporting the data to be configured in the configuration file from the configuration table based on the format of the data to be configured;
and synchronizing the data to be configured to a first server to support the running of the target program.
In one possible implementation, the importing, by the electronic device-based interaction component, a configuration file of a target program to form a configuration table includes:
acquiring a plurality of import instructions transmitted by users with import authority based on an interactive component of the electronic equipment;
importing a configuration file corresponding to each import instruction based on the time sequence of each import instruction;
and forming a configuration table by using the configuration file.
In a possible implementation manner, the data to be configured is one or more; the deriving the data to be configured in the configuration file from the configuration table based on the format of the data to be configured includes:
extracting a separation symbol in the data format to be configured, wherein the separation symbol is preset;
and determining the number of the data to be configured based on the number of the separation symbols.
In one possible implementation, the processing method further includes:
determining whether a second server meeting a preset condition exists or not based on the data to be configured of the first server;
and if so, synchronizing the data to be configured to the second server.
In a possible implementation manner, the determining whether there is a second server meeting a preset condition based on the data to be configured of the first server includes:
judging whether the data to be configured required by the second server is the same as the data to be configured of the first server or not;
and if the first server is the same as the second server, determining that the second server meeting the preset condition exists.
In one possible embodiment, the configuration table is divided into a plurality of tabs; the deriving the data to be configured in the configuration file from the configuration table based on the format of the data to be configured includes:
and deriving the data to be configured from any tab or a plurality of tabs of the configuration table based on the format of the data to be configured.
In one possible implementation, the processing method further includes:
saving the data format to be configured;
and carrying out next export of the data to be configured based on the data format to be configured.
In one possible implementation, the processing method further includes:
saving the data to be configured;
comparing the derived data to be configured for preset times, and determining difference data between the data to be configured for the preset times;
displaying the difference data in a particular manner, wherein the particular manner includes a particular color and a particular font.
In a second aspect, an embodiment of the present application further provides a device for processing a configuration file, where the device includes:
the configuration management system comprises an importing module, a configuration table forming module and a configuration management module, wherein the configuration table forms a configuration table based on a configuration file of an interaction component importing target program of the electronic equipment, the expression form of the configuration table is a table structure, and the table structure is provided with at least one preset form: field type, field name, and field description;
the export module is configured to export the data to be configured in the configuration file from the configuration table based on the format of the data to be configured;
the first synchronization module is configured to synchronize the data to be configured to a first server so as to support the target program to run.
In a third aspect, an embodiment of the present application further provides a computer apparatus, including a memory, a processor, and a computer program stored on the memory, where the processor executes the computer program to implement the steps of the processing method in any one of the foregoing embodiments.
According to the processing method provided by the embodiment of the application, the configuration file can be directly imported through the interactive component of the electronic equipment, other application programs do not need to be independently installed, the operation is convenient, and the maintenance cost is low; moreover, the data to be configured is selectively derived through the format of the data to be configured, and the data to be configured is synchronized to the first server, so that the data to be configured in the first server can be modified in a targeted manner, and the maintenance cost is low.
Drawings
In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a flow chart illustrating a method for processing a configuration file provided herein;
fig. 2 is a flowchart illustrating a configuration table formed based on a configuration file of an interactive component import target program of an electronic device in a configuration file processing method provided by the present application;
FIG. 3 is a flow chart illustrating exporting data to be configured in a configuration file processing method provided by the present application;
fig. 4 is a flowchart illustrating that data to be configured of other programs is configured in a method for processing a configuration file provided by the present application;
fig. 5 is a flowchart illustrating a next export of data to be configured in the method for processing a configuration file provided in the present application;
FIG. 6 is a flow chart illustrating a method for processing a configuration file according to the present application to distinctively display different data to be configured;
FIG. 7 is a schematic diagram of a configuration file processing apparatus provided in the present application;
fig. 8 shows a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
Various aspects and features of the present application are described herein with reference to the drawings.
It will be understood that various modifications may be made to the embodiments of the present application. Accordingly, the foregoing description should not be construed as limiting, but merely as exemplifications of embodiments. Those skilled in the art will envision other modifications within the scope and spirit of the application.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and, together with a general description of the application given above and the detailed description of the embodiments given below, serve to explain the principles of the application.
These and other characteristics of the present application will become apparent from the following description of preferred forms of embodiment, given as non-limiting examples, with reference to the attached drawings.
It should also be understood that, although the present application has been described with reference to some specific examples, a person of skill in the art shall certainly be able to achieve many other equivalent forms of application, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.
The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the application, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the application of unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the application.
The method for processing the configuration files provided by the embodiment of the application can be applied to configuration scenes of the configuration files of various application programs, and because the game programs are complex and the scenes involved in the game are more, the embodiment of the application takes configuration data of the configuration game as an example for detailed explanation. For the understanding of the present application, a method for processing a configuration file provided in the present application will be described in detail first.
As shown in fig. 1, a flowchart of a method for processing a configuration file provided in an embodiment of the present application is shown, where the specific steps include:
s101, forming a configuration table based on a configuration file of an interaction component importing target program of the electronic equipment, wherein the expression form of the configuration table is a table structure, and the table structure comprises at least one preset form of: field type, field name, and field description.
In the game development and operation process, a numerical planner sets a large amount of data to be filled in an Excel table, so that the developer can realize related functions based on the data in the Excel table. In the embodiment of the present application, the target program is a game program.
And importing the configuration file of the target program through an interactive component of the electronic equipment, and forming a configuration table. The expression form of the configuration table is a table structure, and the table structure comprises at least one of the following preset field type, field name and field description. Preferably, the configuration file in the form of a table structure can also be directly imported.
Here, the interactive component of the electronic device is owned by itself or can be commonly used by each electronic device, so that the configuration file of the target program can be imported without separately installing other application programs, obtaining authorization of other application programs and the like, and the operation is convenient and fast. Preferably, the interactive component is a webpage-side management tool developed by Hypertext Preprocessor (PHP), such as various browsers and the like.
Specifically, fig. 2 shows a flowchart of a method for forming a configuration table based on a configuration file of an interactive component import target program of an electronic device, wherein the steps include S201-S203.
S201, acquiring a plurality of import instructions transmitted by users with import authority based on an interactive component of the electronic equipment.
S202, importing the configuration file corresponding to each import instruction based on the time sequence of each import instruction.
S203, forming a configuration table by using the configuration file.
In view of the fact that the configuration file can be imported only through the interactive component of the electronic device without separately installing other application programs, the processing method in the embodiment of the application needs to set certain import authority in order to ensure the security of the imported configuration file, and before the configuration file is imported, the import authority needs to be authenticated. For example, a specific account name is authorized in advance, a password that is only known by a user is set for the user corresponding to the account name, the account name and the password of the user need to be authenticated when the user imports a configuration file based on an interactive component of the electronic device, and the user confirms that the authentication is successful after inputting the correct account name and password, and then imports the configuration file.
In specific implementation, multiple account names can be authorized, that is, multiple users can have import permission to import the configuration file, so that resource utilization rate and configuration efficiency are improved.
Furthermore, after the interactive component based on the electronic device acquires the import instructions transmitted by the users with the import authority, the configuration file corresponding to each import instruction is imported based on the time sequence of each import instruction. Specifically, the generation time of each import instruction is determined; then, calculating the time interval between the generation time of each import instruction and the current time, arranging the corresponding import instructions according to the sequence of the time intervals from large to small, and importing the configuration files corresponding to the import instructions in sequence according to the sequence; thereafter, a configuration table is formed using the configuration file.
Of course, when one import instruction is acquired or no other import instruction is acquired within a preset time period when the import instruction is acquired, the configuration file corresponding to the import instruction is directly imported to form the configuration table.
S102, exporting the data to be configured in the configuration file from the configuration table based on the data format to be configured.
In a specific implementation, the data to be configured may be derived from the configuration table in a targeted manner, for example, the data to be configured in the configuration file is derived from the configuration table according to a preset data format to be configured, such as json, php array, plist, and the like.
The number of the derived data to be configured may be one or more. When there are a plurality of data to be configured, the method steps shown in fig. 3 are referred to derive the data to be configured in the configuration file from the configuration table based on the format of the data to be configured, and specifically includes S301 and S302.
S301, extracting a separation symbol in the data format to be configured, wherein the separation symbol is preset.
S302, determining the number of the data to be configured based on the number of the separation symbols.
In specific implementation, the format of the data to be configured includes a preset separation symbol, and the adjacent data to be configured is distinguished by using the separation symbol, where the separation symbol may be a symbol such as "|", or the like, and this is not specifically limited in this embodiment of the present application.
For example, to derive int [ ] one-bit shaping array, the content of the corresponding field of the configuration table is (a | B | C), the derived content is [ a, B, C ], that is, the number of the separation symbols plus 1 is the number of the data to be configured.
S103, synchronizing the data to be configured to the first server to support the operation of the target program.
After the data to be configured is exported, the data to be configured is synchronized to the first server, namely the server corresponding to the target program, so that the first server runs corresponding functional logic, and the purpose of running the target program is further achieved.
According to the processing method provided by the embodiment of the application, the configuration file can be directly imported through the interactive component of the electronic equipment, other application programs do not need to be independently installed, the operation is convenient, and the maintenance cost is low; moreover, the data to be configured is selectively derived through the format of the data to be configured, and the data to be configured is synchronized to the first server, so that the data to be configured in the first server can be modified in a targeted manner, and the maintenance cost is low.
Further, there are other programs similar to the data to be configured of the target program, but the data to be configured between the different programs are independent from each other, and at this time, the data to be configured of the other programs may be configured according to the method shown in fig. 4, specifically including S401-S403.
S401, determining whether a second server meeting preset conditions exists or not based on the data to be configured of the first server.
S402, if the data to be configured exist, synchronizing the data to be configured to a second server.
The method for determining whether the second server meeting the preset condition exists is as follows: judging whether the data to be configured required by the second server is the same as the data to be configured of the first server or not; if the first server is the same as the second server, determining that the second server meeting the preset condition exists; and if not, determining that the second server meeting the preset condition does not exist.
Under the condition that the second server meeting the preset conditions is determined to exist, the data to be configured are synchronized to the second server, and then the configuration files corresponding to other programs do not need to be imported separately and then exported to the second server, so that resources are saved, and the configuration efficiency of other programs is improved.
In a particular implementation, the configuration table is divided into a plurality of tabs; in the process of deriving the data to be configured based on the format of the data to be configured, the data to be configured may be derived from any tab or tabs of the configuration table. In the process, under the condition that the numerical value planner adjusts part of the data to be configured, the numerical value planner does not need to perform configuration operation, and can synchronize the modified data to be configured to the first server, so that the work of the numerical value planner is reduced, and the configuration efficiency of the data to be configured is improved.
The multiple tabs may be divided according to the type of the data to be configured, or may be divided according to the data amount of the data to be configured, and the like, which is not specifically limited in this embodiment of the application.
The embodiment of the present application further provides a processing method as shown in fig. 5, which specifically includes S501 and S502.
S501, storing the format of the data to be configured.
S502, the next export of the data to be configured is carried out based on the data format to be configured.
After the data to be configured in the configuration file is exported, the format of the data to be configured is stored, and when the next data to be configured is exported, the data to be configured can be exported based on the stored format of the data to be configured without manually selecting or inputting the format of the data to be configured, so that the configuration efficiency is improved, and the accuracy of the exported data to be configured is ensured.
Considering that there may be multiple users with import rights in the embodiment of the present application, to avoid the problem of resource waste due to repeated import caused by the same configuration file, the embodiment of the present application further provides a processing method as shown in fig. 6, which specifically includes S601 and S602.
S601, storing the data to be configured.
S602, comparing the derived data to be configured with preset times, and determining difference data between the data to be configured with the preset times.
S603, displaying the difference data in a specific manner, wherein the specific manner includes a specific color and a specific font.
Furthermore, after the data to be configured in the configuration file is exported, the data to be configured can be stored, and when a value planner or a developer needs to check the data to be configured for many times, the data to be configured which is exported historically and for preset times can be directly obtained and called out, and comparison is performed.
After the preset times of data to be configured are compared, the difference data among the preset times of data to be configured are determined and displayed in a specific mode, so that numerical planning personnel can further optimize the data to be configured, and the problem of resource waste caused by repeatedly importing the same configuration files is avoided. Wherein the specific manner includes a specific color and a specific font, etc.
Based on the same inventive concept, the second aspect of the present application further provides a device for processing a configuration file corresponding to the method for processing a configuration file, and since the principle of the device in the present application for solving the problem is similar to the method for processing a configuration file described above in the present application, the implementation of the device may refer to the implementation of the method, and repeated details are not repeated.
Fig. 7 shows a schematic diagram of a device for processing a configuration file according to an embodiment of the present application, which specifically includes:
an importing module 701, configured to import a configuration file of a target program based on an interactive component of an electronic device to form a configuration table, wherein the configuration table is expressed in a table structure, and the table structure includes at least one of the following preset forms: field type, field name, and field description;
an export module 702 configured to export the data to be configured in the configuration file from the configuration table based on the format of the data to be configured;
a first synchronization module 703 configured to synchronize the data to be configured to the first server to support the target program to run.
In another embodiment, the import module 701 is specifically configured to:
acquiring a plurality of import instructions transmitted by users with import authority based on an interactive component of the electronic equipment;
importing a configuration file corresponding to each import instruction based on the time sequence of each import instruction;
and forming a configuration table by using the configuration file.
In a further embodiment, the derivation module 702 is specifically configured to:
extracting a separation symbol in the data format to be configured, wherein the separation symbol is preset;
and determining the number of the data to be configured based on the number of the separation symbols.
In yet another embodiment, the processing device further comprises:
a determining module 704 configured to determine whether a second server meeting a preset condition exists based on the data to be configured of the first server;
a second synchronization module 705, configured to synchronize the data to be configured to the second server if the data exists.
In yet another embodiment, the determining module 704 is specifically configured to:
judging whether the data to be configured required by the second server is the same as the data to be configured of the first server or not;
and if the first server is the same as the second server, determining that the second server meeting the preset condition exists.
In yet another embodiment, the configuration table is divided into a plurality of tabs; the export module 702 is further specifically configured to:
and deriving the data to be configured from any tab or a plurality of tabs of the configuration table based on the format of the data to be configured.
In yet another embodiment, the processing device further comprises a saving module 706 configured to:
saving the data format to be configured;
and carrying out next export of the data to be configured based on the data format to be configured.
In yet another embodiment, the comparison module 707 is configured to:
saving the data to be configured;
comparing the derived data to be configured for preset times, and determining difference data between the data to be configured for the preset times;
displaying the difference data in a particular manner, wherein the particular manner includes a particular color and a particular font.
In the embodiment of the application, the configuration file can be directly imported through the interactive component of the electronic equipment, other application programs do not need to be independently installed, the operation is convenient, and the maintenance cost is low; moreover, the data to be configured is selectively derived through the format of the data to be configured, and the data to be configured is synchronized to the first server, so that the data to be configured in the first server can be modified in a targeted manner, and the maintenance cost is low.
An electronic device provided in an embodiment of the present disclosure may be as shown in fig. 8, where the electronic device at least includes a memory 801 and a processor 802, the memory 801 stores a computer program, and the processor 802 implements the method provided in any embodiment of the present disclosure when executing the computer program on the memory 801. Illustratively, the electronic device computer program steps are as follows S11-S13:
s11, forming a configuration table based on the configuration file of the interactive component import target program of the electronic equipment, wherein the expression form of the configuration table is a table structure, and the table structure comprises at least one preset form as follows: field type, field name, and field description;
s12, deriving the data to be configured in the configuration file from the configuration table based on the format of the data to be configured;
s13, synchronizing the data to be configured to the first server to support the operation of the target program.
The processor executes the following computer program when executing the configuration file of the interactive component import object program based on the electronic equipment stored in the memory to form the configuration table: acquiring a plurality of import instructions transmitted by users with import authority based on an interactive component of the electronic equipment; importing a configuration file corresponding to each import instruction based on the time sequence of each import instruction; and forming a configuration table by using the configuration file.
The processor executes the following computer program when the data to be configured in the configuration file is derived from the configuration table based on the data format to be configured stored in the memory: extracting a separation symbol in the data format to be configured, wherein the separation symbol is preset; and determining the number of the data to be configured based on the number of the separation symbols.
The processor, when executing the processing method stored on the memory, further executes the following computer program: determining whether a second server meeting a preset condition exists or not based on the data to be configured of the first server; and if so, synchronizing the data to be configured to the second server.
When the processor executes the data to be configured stored in the memory and based on the first server, and determines whether a second server meeting a preset condition exists, the processor further executes the following computer program: judging whether the data to be configured required by the second server is the same as the data to be configured of the first server or not; and if the first server is the same as the second server, determining that the second server meeting the preset condition exists.
The configuration table is divided into a plurality of tabs; the processor executes the following computer program when the data to be configured in the configuration file is derived from the configuration table based on the data format to be configured stored in the memory: and deriving the data to be configured from any tab or a plurality of tabs of the configuration table based on the format of the data to be configured.
The processor, when executing the processing method stored on the memory, further executes the following computer program: saving the data format to be configured; and carrying out next export of the data to be configured based on the data format to be configured.
The processor, when executing the processing method stored on the memory, further executes the following computer program: saving the data to be configured; comparing the derived data to be configured for preset times, and determining difference data between the data to be configured for the preset times; displaying the difference data in a particular manner, wherein the particular manner includes a particular color and a particular font.
In the embodiment of the application, the configuration file can be directly imported through the interactive component of the electronic equipment, other application programs do not need to be independently installed, the operation is convenient, and the maintenance cost is low; moreover, the data to be configured is selectively derived through the format of the data to be configured, and the data to be configured is synchronized to the first server, so that the data to be configured in the first server can be modified in a targeted manner, and the maintenance cost is low.
The storage medium is a computer-readable medium, and stores a computer program, and when the computer program is executed by a processor, the method provided in any embodiment of the present application is implemented, including the following steps S21 to S23:
s21, forming a configuration table based on the configuration file of the interactive component import target program of the electronic equipment, wherein the expression form of the configuration table is a table structure, and the table structure comprises at least one preset form as follows: field type, field name, and field description;
s22, deriving the data to be configured in the configuration file from the configuration table based on the format of the data to be configured;
s23, synchronizing the data to be configured to the first server to support the operation of the target program.
When the computer program is executed by the processor to form the configuration table based on the configuration file of the interactive component import target program of the electronic device, the following steps are specifically executed by the processor: acquiring a plurality of import instructions transmitted by users with import authority based on an interactive component of the electronic equipment; importing a configuration file corresponding to each import instruction based on the time sequence of each import instruction; and forming a configuration table by using the configuration file.
When the computer program is executed by the processor based on the format of the data to be configured and the data to be configured in the configuration file is derived from the configuration table, the computer program is further executed by the processor to perform the following steps: extracting a separation symbol in the data format to be configured, wherein the separation symbol is preset; and determining the number of the data to be configured based on the number of the separation symbols.
When the computer program is executed by the processor to execute the processing method, the processor further executes the following steps: determining whether a second server meeting a preset condition exists or not based on the data to be configured of the first server; and if so, synchronizing the data to be configured to the second server.
When the computer program is executed by the processor based on the data to be configured of the first server and whether a second server meeting a preset condition exists is determined, the following steps are specifically executed by the processor: judging whether the data to be configured required by the second server is the same as the data to be configured of the first server or not; and if the first server is the same as the second server, determining that the second server meeting the preset condition exists.
The configuration table is divided into a plurality of tabs; when the computer program is executed by the processor based on the format of the data to be configured and the data to be configured in the configuration file is derived from the configuration table, the following steps are specifically executed by the processor: and deriving the data to be configured from any tab or a plurality of tabs of the configuration table based on the format of the data to be configured.
When the computer program is executed by the processor to perform the processing method, the processor specifically executes the following steps: saving the data format to be configured; and carrying out next export of the data to be configured based on the data format to be configured.
When the computer program is executed by the processor to perform the processing method, the processor specifically executes the following steps: saving the data to be configured; comparing the derived data to be configured for preset times, and determining difference data between the data to be configured for the preset times; displaying the difference data in a particular manner, wherein the particular manner includes a particular color and a particular font.
In the embodiment of the application, the configuration file can be directly imported through the interactive component of the electronic equipment, other application programs do not need to be independently installed, the operation is convenient, and the maintenance cost is low; moreover, the data to be configured is selectively derived through the format of the data to be configured, and the data to be configured is synchronized to the first server, so that the data to be configured in the first server can be modified in a targeted manner, and the maintenance cost is low.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes. Optionally, in this embodiment, the processor executes the method steps described in the above embodiments according to the program code stored in the storage medium. Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again. It will be apparent to those skilled in the art that the modules or steps of the present application described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
Moreover, although exemplary embodiments have been described herein, the scope thereof includes any and all embodiments based on the present application with equivalent elements, modifications, omissions, combinations (e.g., of various embodiments across), adaptations or alterations. The elements of the claims are to be interpreted broadly based on the language employed in the claims and not limited to examples described in the present specification or during the prosecution of the application, which examples are to be construed as non-exclusive. It is intended, therefore, that the specification and examples be considered as exemplary only, with a true scope and spirit being indicated by the following claims and their full scope of equivalents.
The above description is intended to be illustrative and not restrictive. For example, the above-described examples (or one or more versions thereof) may be used in combination with each other. For example, other embodiments may be used by those of ordinary skill in the art upon reading the above description. In addition, in the above detailed description, various features may be grouped together to streamline the application. This should not be interpreted as an intention that a disclosed feature not claimed is essential to any claim. Rather, subject matter of the present application can lie in less than all features of a particular disclosed embodiment. Thus, the following claims are hereby incorporated into the detailed description as examples or embodiments, with each claim standing on its own as a separate embodiment, and it is contemplated that these embodiments may be combined with each other in various combinations or permutations. The scope of the application should be determined with reference to the appended claims, along with the full scope of equivalents to which such claims are entitled.
The embodiments of the present application have been described in detail, but the present application is not limited to these specific embodiments, and those skilled in the art can make various modifications and modified embodiments based on the concept of the present application, and these modifications and modified embodiments should fall within the scope of the present application.

Claims (10)

1. A method for processing a configuration file, comprising:
the method comprises the following steps of importing a configuration file of a target program to form a configuration table based on an interactive component of the electronic equipment, wherein the expression form of the configuration table is a table structure, and the table structure comprises at least one preset form: field type, field name, and field description;
exporting the data to be configured in the configuration file from the configuration table based on the format of the data to be configured;
and synchronizing the data to be configured to a first server to support the running of the target program.
2. The processing method according to claim 1, wherein the importing the configuration file of the target program based on the interactive component of the electronic device to form the configuration table comprises:
acquiring a plurality of import instructions transmitted by users with import authority based on an interactive component of the electronic equipment;
importing a configuration file corresponding to each import instruction based on the time sequence of each import instruction;
and forming a configuration table by using the configuration file.
3. The processing method according to claim 1, wherein the data to be configured is one or more; the deriving the data to be configured in the configuration file from the configuration table based on the format of the data to be configured includes:
extracting a separation symbol in the data format to be configured, wherein the separation symbol is preset;
and determining the number of the data to be configured based on the number of the separation symbols.
4. The processing method of claim 1, further comprising:
determining whether a second server meeting a preset condition exists or not based on the data to be configured of the first server;
and if so, synchronizing the data to be configured to the second server.
5. The processing method according to claim 4, wherein the determining whether there is a second server meeting a preset condition based on the data to be configured of the first server comprises:
judging whether the data to be configured required by the second server is the same as the data to be configured of the first server or not;
and if the first server is the same as the second server, determining that the second server meeting the preset condition exists.
6. The process of claim 1, wherein the configuration table is partitioned into a plurality of tabs; the deriving the data to be configured in the configuration file from the configuration table based on the format of the data to be configured includes:
and deriving the data to be configured from any tab or a plurality of tabs of the configuration table based on the format of the data to be configured.
7. The processing method according to claim 1 or 6, further comprising:
saving the data format to be configured;
and carrying out next export of the data to be configured based on the data format to be configured.
8. The processing method according to claim 1 or 6, further comprising:
saving the data to be configured;
comparing the derived data to be configured for preset times, and determining difference data between the data to be configured for the preset times;
displaying the difference data in a particular manner, wherein the particular manner includes a particular color and a particular font.
9. An apparatus for processing a configuration file, comprising:
the configuration management system comprises an importing module, a configuration table forming module and a configuration management module, wherein the configuration table forms a configuration table based on a configuration file of an interaction component importing target program of the electronic equipment, the expression form of the configuration table is a table structure, and the table structure is provided with at least one preset form: field type, field name, and field description;
the export module is configured to export the data to be configured in the configuration file from the configuration table based on the format of the data to be configured;
the first synchronization module is configured to synchronize the data to be configured to a first server so as to support the target program to run.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory, characterized in that the processor executes the computer program to implement the processing method steps of any of claims 1-8.
CN202110371462.4A 2021-04-07 2021-04-07 Processing method and processing device for configuration file Pending CN112957742A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110371462.4A CN112957742A (en) 2021-04-07 2021-04-07 Processing method and processing device for configuration file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110371462.4A CN112957742A (en) 2021-04-07 2021-04-07 Processing method and processing device for configuration file

Publications (1)

Publication Number Publication Date
CN112957742A true CN112957742A (en) 2021-06-15

Family

ID=76279961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110371462.4A Pending CN112957742A (en) 2021-04-07 2021-04-07 Processing method and processing device for configuration file

Country Status (1)

Country Link
CN (1) CN112957742A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109241514A (en) * 2018-09-10 2019-01-18 深圳市泰洲科技有限公司 Data automatically imported method, device, computer equipment and storage medium
CN110059305A (en) * 2019-03-04 2019-07-26 广州市辉海计算机科技有限公司 Method and apparatus derived from data
CN110262976A (en) * 2019-06-21 2019-09-20 深圳市腾讯网域计算机网络有限公司 Analytic method, device, equipment and the storage medium of game resource file
CN110515896A (en) * 2019-08-29 2019-11-29 网易(杭州)网络有限公司 Model resource management method, model file production method, device and system
CN111310221A (en) * 2020-03-26 2020-06-19 北京百度网讯科技有限公司 Encryption and decryption method, device, equipment and storage medium for persistent layer data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109241514A (en) * 2018-09-10 2019-01-18 深圳市泰洲科技有限公司 Data automatically imported method, device, computer equipment and storage medium
CN110059305A (en) * 2019-03-04 2019-07-26 广州市辉海计算机科技有限公司 Method and apparatus derived from data
CN110262976A (en) * 2019-06-21 2019-09-20 深圳市腾讯网域计算机网络有限公司 Analytic method, device, equipment and the storage medium of game resource file
CN110515896A (en) * 2019-08-29 2019-11-29 网易(杭州)网络有限公司 Model resource management method, model file production method, device and system
CN111310221A (en) * 2020-03-26 2020-06-19 北京百度网讯科技有限公司 Encryption and decryption method, device, equipment and storage medium for persistent layer data

Similar Documents

Publication Publication Date Title
US8914676B2 (en) Test cases generation for different test types
US20080072283A1 (en) Methods, apparatus and systems for time-based function back-off
US10621651B2 (en) Automatic recharge system and method, and server
CN110048855B (en) Introduction method and calling method of cryptographic algorithm, device, equipment and Fabric platform
KR20160138063A (en) Techniques to operate a service with machine generated authentication tokens
CN110401656B (en) Block chain management system
US20090210938A1 (en) Utilizing Previous Password to Determine Authenticity to Enable Speedier User Access
US20170019407A1 (en) Method and server for providing image captcha
CA2862046C (en) Method and device for prompting program uninstallation
US20230224325A1 (en) Distributed endpoint security architecture enabled by artificial intelligence
CN103731403A (en) Verification code generating system and method
CN112118239A (en) Block chain consensus method and device, electronic equipment and storage medium
CN106897629A (en) The control method and terminal of terminal applies
US20230025870A1 (en) Password authentication apparatus, password authentication method, and computer readable medium
WO2018026613A1 (en) Scope-based certificate deployment
CN114066277B (en) Service decision method, decision platform, readable medium and electronic equipment
CN110581841A (en) Back-end anti-crawler method
CN112957742A (en) Processing method and processing device for configuration file
CN112925711A (en) Local joint debugging test method and related device
CN109218024A (en) Method and apparatus for control authority
US9323910B2 (en) Method, client and server of password verification, and password terminal system
CN106302317B (en) The generation method and device of logon web page
CN109558722A (en) Mobile medium checking method and device and computer readable storage medium
US20200302914A1 (en) Method, device, computer apparatus, and storage medium of processing claim data
CN104572036B (en) Event processing method and device

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