CN114661372A - Configuration information processing method and device and server - Google Patents

Configuration information processing method and device and server Download PDF

Info

Publication number
CN114661372A
CN114661372A CN202210210004.7A CN202210210004A CN114661372A CN 114661372 A CN114661372 A CN 114661372A CN 202210210004 A CN202210210004 A CN 202210210004A CN 114661372 A CN114661372 A CN 114661372A
Authority
CN
China
Prior art keywords
configuration information
configuration
terminal
memory
memory card
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
CN202210210004.7A
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 Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202210210004.7A priority Critical patent/CN114661372A/en
Publication of CN114661372A publication Critical patent/CN114661372A/en
Pending legal-status Critical Current

Links

Images

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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • 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/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to a configuration information processing method, a device and a server, wherein the method comprises the following steps: acquiring first configuration information corresponding to a target application; sending the first configuration information to target equipment, wherein the target equipment is used for acquiring configuration modification information, and performing configuration updating on the first configuration information based on the configuration modification information to generate second configuration information; acquiring second configuration information, and storing the second configuration information in a memory card of the terminal; the method and the device for modifying the configuration file have the advantages that the second configuration information in the memory card is loaded into the memory of the terminal, the first configuration information stored in the memory is updated to the second configuration information in the memory card, so that the configuration information can be called from the memory by the target application, and the problems that time and energy of developers are wasted and working efficiency is low due to the mode that the APP needs to be recompiled after the configuration file is modified by the client terminal to enable the modified configuration file to take effect in the related technology are solved.

Description

Configuration information processing method and device and server
Technical Field
The present disclosure relates to the field of data processing, and in particular, to a method, an apparatus, and a server for processing configuration information.
Background
In the related art, some configuration files locally stored in a client terminal are used in an APP, and data are loaded from the configuration files for use, but the configuration files are sometimes modified locally at the client terminal in a development process, and the APP needs to be recompiled to enable the modified configuration files to take effect after the configuration files are modified, so that the APP needs to be recompiled every time the configuration files are modified at the client terminal to enable the modified configuration files to take effect.
Disclosure of Invention
The present disclosure provides a configuration information processing method, device and server, so as to at least solve the problems of time and energy waste of developers and low work efficiency in a manner of modifying a configuration file at a client terminal and recompiling an APP to enable the modified configuration file to take effect in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of an embodiment of the present disclosure, a method for processing configuration information is provided, including obtaining first configuration information corresponding to a target application, where the first configuration information is stored in a local area of a terminal running the target application; sending the first configuration information to target equipment, wherein the target equipment is used for acquiring configuration modification information, and performing configuration updating on the first configuration information based on the configuration modification information to generate second configuration information; acquiring second configuration information, and storing the second configuration information in a memory card of the terminal; and loading the second configuration information in the memory card into the memory of the terminal, and updating the first configuration information stored in the memory into the second configuration information in the memory card so as to enable the target application to call the configuration information from the memory.
Optionally, before sending the first configuration information to the target device, establishing a link with the target device is further included, where the link includes a full duplex communication protocol Websocket link based on a transmission control protocol.
Optionally, before the obtaining the second configuration information and storing the second configuration information in the memory card of the terminal, the method further includes: storing the first configuration information in the memory card; storing the second configuration information in a memory card of the terminal includes: and updating the first configuration information into second configuration information.
Optionally, after loading the second configuration information stored in the memory card into the memory of the terminal for the target application to call, the method further includes: detecting a calling request of a target application to configuration information stored in a local terminal; and responding to the calling request, and determining that the memory calls the second configuration information to run the target application.
Optionally, the method further includes: periodically detecting whether second configuration information in the memory card is updated; and under the condition that the second configuration information in the memory card is detected to be updated, loading the updated second configuration information in the memory card into a memory of the terminal for calling by the target application.
According to a second aspect of the embodiments of the present disclosure, another method for processing configuration information is provided, including receiving first configuration information corresponding to a target application, where the first configuration information is stored in a local area of a terminal running the target application; acquiring configuration modification information, and updating the configuration of the first configuration information based on the configuration modification information to generate second configuration information; and transmitting and storing the second configuration information into a memory card of the terminal, so that the terminal updates the first configuration information stored in the memory of the terminal into the second configuration information in the memory card, and the target application calls the configuration information from the memory.
Optionally, receiving first configuration information of the target application from the terminal includes: receiving first configuration information by calling a callback function; analyzing the first configuration information to obtain data in a preset format type; and displaying the data in the preset format type in the network page.
Optionally, acquiring configuration modification information, performing configuration update on the first configuration information based on the configuration modification information, and generating second configuration information, including receiving a modification instruction of the target object, and generating the configuration modification information based on the modification instruction; and updating the configuration of the first configuration information based on the configuration modification information to obtain second configuration information.
According to a third aspect of the embodiments of the present disclosure, there is provided a configuration information processing apparatus, including an obtaining module configured to obtain first configuration information corresponding to a target application, where the first configuration information is stored in a local of a terminal running the target application; the sending module is configured to send the first configuration information to target equipment, and the target equipment is used for acquiring configuration modification information, performing configuration updating on the first configuration information based on the configuration modification information and generating second configuration information; the first storage module is configured to acquire second configuration information and store the second configuration information in a memory card of the terminal; and the updating module is configured to load the second configuration information in the memory card into the memory of the terminal, and update the first configuration information stored in the memory into the second configuration information in the memory card so as to enable the target application to call the configuration information from the memory.
Optionally, the apparatus further includes an establishing module configured to establish a link with the target device before sending the first configuration information to the target device, where the link includes a full duplex communication protocol Websocket link based on a transmission control protocol.
Optionally, the apparatus further includes a second storage module configured to store the first configuration information in the memory card before acquiring the second configuration information and storing the second configuration information in the memory card of the terminal; wherein storing the second configuration information in the memory card of the terminal comprises: and updating the first configuration information into second configuration information.
Optionally, the apparatus further includes a first detection module, configured to detect a call request of the target application for the configuration information stored locally in the terminal after loading the second configuration information stored in the memory card into a memory of the terminal for the target application to call; and the response module is configured to respond to the calling request and determine that the memory calls the second configuration information to run the target application.
Optionally, the apparatus further comprises: the second detection module is configured to periodically detect whether second configuration information in the memory card is updated; and the loading module is configured to load the updated second configuration information in the memory card into a memory of the terminal for the target application to call under the condition that the second configuration information in the memory card is detected to be updated.
According to a fourth aspect of the embodiments of the present disclosure, there is also provided a configuration information processing apparatus, including a receiving module configured to receive first configuration information corresponding to a target application, where the first configuration information is stored locally in a terminal running the target application; the acquisition module is configured to acquire the configuration modification information, and perform configuration update on the first configuration information based on the configuration modification information to generate second configuration information; and the storage module is configured to transmit and store the second configuration information in a memory card of the terminal, so that the terminal updates the first configuration information stored in the memory of the terminal into the second configuration information in the memory card, and the configuration information is called from the memory by the target application.
Optionally, the receiving module includes a first receiving unit configured to receive the first configuration information by calling a callback function; the analysis unit is configured to analyze the first configuration information to obtain data of a preset format type; the presentation unit is configured to present the data of the predetermined format type in the network page.
Optionally, the obtaining module includes a second receiving unit configured to receive a modification instruction of the target object, and generate configuration modification information based on the modification instruction; and the updating unit is configured to perform configuration updating on the first configuration information based on the configuration modification information to obtain second configuration information.
According to a fifth aspect of the embodiments of the present disclosure, there is also provided a server, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement any one of the configuration information processing methods described above.
According to a sixth aspect of the embodiments of the present disclosure, there is also provided a computer-readable storage medium, wherein instructions of the computer-readable storage medium, when executed by a processor of a server, enable the server to perform any one of the above-mentioned configuration information processing methods.
According to a seventh aspect of embodiments of the present disclosure, there is also provided a computer program product comprising a computer program/instructions which, when executed by a processor, implement any one of the above-mentioned configuration information processing methods.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
in the embodiment of the disclosure, first configuration information corresponding to a target application is acquired, wherein the first configuration information is stored in the local of a terminal running the target application; sending the first configuration information to target equipment, wherein the target equipment is used for acquiring configuration modification information, and then performing configuration updating on the first configuration information based on the configuration modification information to generate second configuration information; acquiring second configuration information, and storing the second configuration information in a memory card of the terminal; loading the second configuration information in the memory card into the memory of the terminal, updating the first configuration information stored in the memory into the second configuration information in the memory card for the target application to call the configuration information from the memory, achieving the technical purpose of dynamically modifying the configuration information stored in the client terminal based on the server device, storing the modified configuration information in the memory card, subsequently directly judging whether the updated configuration information exists in the memory card in the process of calling the configuration information, if so, directly running the application based on the configuration information of the memory card, realizing the technical effects of saving development time and improving working efficiency, and further solving the technical problem that the modified configuration file is validated by recompiling APP after the configuration file is modified by the client terminal in the related technology, the time and energy of developers are wasted, and the working efficiency is low.
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 disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a flowchart illustrating a configuration information processing method according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating another configuration information processing method according to an example embodiment.
Fig. 3 is a schematic diagram illustrating an interaction flow between a client terminal and a server device according to an exemplary embodiment.
Fig. 4 is a schematic configuration diagram illustrating a configuration information processing apparatus according to an exemplary embodiment.
Fig. 5 is a schematic configuration diagram illustrating another configuration information processing apparatus according to an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
To facilitate a better understanding of the related embodiments of the present disclosure for those skilled in the art, technical terms or partial terms that may be referred to in the related embodiments are now explained as follows:
JSON (JSON Object Notation) is a widely used data format that stores and represents data in a text format that is completely independent of the programming language. The JSON has a simple and clear hierarchical structure, is easy to read and write, and is easy to analyze and generate by a machine, so that the network transmission efficiency is effectively improved. The syntax rules of JSON mainly include: first, objects are represented as key-value pairs; second, data are separated by commas; third, curly braces save objects; fourth, brackets hold arrays. Specifically, each JSON message is wrapped in parenthesis, with the key name in the key-value pair combination written before and wrapped with a double quote, the keys and values separated by a colon, followed by the values, as: "name": zhou "; the array is wrapped with brackets, such as: [ "zhou", "zhang" ].
2. Software Development Kit (SDK) refers to a collection of Development tools used by Software engineers to create application Software for a particular Software package, Software framework, hardware platform, operating system, and the like. It may be simply some files that provide an application program interface for a certain programming language, but may also include complex hardware that can communicate with a certain embedded system. Typical tools include utility tools for debugging and other purposes. SDKs also often include example code, supporting technical notes, or other supporting documentation to clarify suspicions for basic reference.
3. A Memory Card, abbreviated as SD and named as Secure Digital Memory Card, is a kind of Memory Card that is widely used in portable devices, such as Digital cameras, personal Digital assistants, and multimedia players. The technology of the SD card is based on the MultiMedia card format. The SD card has a relatively high data transmission speed and is continuously updated with standards. Most SD cards have write protection controls on the sides to prevent some data from being written accidentally, while a small portion of SD cards even support digital rights management techniques. The SD card is sometimes called memory card or memory card in the Chinese world.
WebSocket is a network transport protocol that allows full duplex communication over a single TCP connection and can be located at the application layer of the OSI model. The WebSocket protocol is standardized by IETF to RFC 6455 in 2011 and then supplemented by RFC 7936. The WebSocket API in Web IDL is standardized by W3C. WebSocket enables data exchange between the client and the server to be simpler, and allows the server to actively push data to the client. In the WebSocket API, the browser and the server only need to complete one handshake, and persistent connection can be established between the browser and the server, and bidirectional data transmission is carried out.
5. The Memory, also called main Memory, is a Memory required for program operation, and can only temporarily store data for exchanging cache data with the CPU, and is generally referred to as Random Access Memory (RAM). The size of the running memory directly determines how many programs can be run by the system, and the larger the running memory is, the faster the system runs the programs. The development of memory is closely related to the processor technology and the degree of system optimization.
Fig. 1 is a configuration information processing method according to an exemplary embodiment, as shown in fig. 1, the method is used for dynamically adjusting configuration information local to a client terminal, and the method includes the following steps:
in step S11, first configuration information corresponding to the target application is obtained, where the first configuration information is stored locally in the terminal running the target application;
in step S12, sending the first configuration information to a target device, where the target device is configured to obtain configuration modification information, and perform configuration update on the first configuration information based on the configuration modification information to generate second configuration information;
in step S13, acquiring the second configuration information, and storing the second configuration information in the memory card of the terminal;
in step S14, the second configuration information in the memory card is loaded into the memory of the terminal, and the first configuration information stored in the memory is updated to the second configuration information in the memory card, so that the target application can call the configuration information from the memory.
In the configuration information processing method, first configuration information corresponding to a target application is acquired, wherein the first configuration information is stored in the local of a terminal running the target application; then, sending the first configuration information to target equipment, wherein the target equipment is used for acquiring configuration modification information, and performing configuration updating on the first configuration information based on the configuration modification information to generate second configuration information; acquiring second configuration information, and storing the second configuration information in a memory card of the terminal; finally, loading the second configuration information in the memory card into the memory of the terminal, updating the first configuration information stored in the memory into the second configuration information in the memory card for the target application to call the configuration information from the memory, achieving the technical purpose of dynamically modifying the configuration information stored in the client terminal based on the server device, storing the modified configuration information in the memory card, and subsequently directly judging whether the updated configuration information exists in the memory card in the process of calling the configuration information, if so, directly running the application based on the configuration information of the memory card, realizing the technical effects of saving development time and improving working efficiency without compiling APP, and further solving the technical problem that the modified configuration file takes effect by recompiling APP after the configuration file is modified at the client terminal in the related technology, the time and energy of developers are wasted, and the working efficiency is low.
It should be noted that the memory card includes, but is not limited to: SD card, TF-card, multimedia card, etc.
In some embodiments of the present application, before sending the first configuration information to the target device, a link may be established with the target device, where the link includes, but is not limited to: links based on a half-duplex transmission control protocol, for example, http 1.1-based protocol, and a full-duplex communication protocol Websocket link based on a transmission control protocol.
It should be noted that, the Websocket link is preferably used as a communication link between the client terminal and the target device, because the Websocket link can actively send data compared to other links, and after the first communication handshake of the two interacting parties, no handshake is needed before sending data each time, which can save communication time and further indirectly improve the modification efficiency of the configuration information.
It can be understood that, in order to facilitate operation and maintenance personnel and other users to program and modify the configuration information on the target device, modification time is saved, and therefore, the target device preferably selects a computer device connected with an external input device such as a mouse, a keyboard and the like, so that the user can rapidly modify the configuration information based on the external input device such as the mouse, the keyboard and the like.
It is easy to note that, the target device may also be a mobile terminal, that is, a communication connection between the mobile terminal of the server and the client terminal is established through the Websocket link, and then, the configuration information locally stored in the client terminal is dynamically modified through the mobile terminal of the server.
In some embodiments of the application, before the second configuration information is obtained and stored in the memory card of the terminal, the first configuration information may be stored in the memory card, which can be understood that, before the second configuration information is obtained, the first configuration information stored in the memory is stored in the memory card, so as to ensure consistency of the configuration information stored in the memory card and the memory card, and ensure that the configuration information that is updated when the memory card updates the configuration information later is the configuration information that the memory card is currently running.
In some embodiments of the present application, storing the second configuration information in the memory card of the terminal includes: updating the first configuration information into the second configuration information, wherein the updating process can be realized by the following modes:
first, a current first storage location (e.g., a storage directory, a storage path, etc.) of first configuration information in a memory card is determined, then the first configuration information is erased from the current first storage location, and second configuration information is stored in the first storage location, that is, the first configuration information is deleted, and the second configuration information is used to replace the first configuration information.
And secondly, reserving the first configuration information, generating a new second storage position in the memory card without modifying the first configuration information, storing the second configuration information in the second storage position, and calling the configuration information from the second storage position directly when the memory card calls the configuration information.
It can be understood that, the first updating method can save the storage space of the memory card, but does not utilize the updating process of the configuration information that the operation and maintenance personnel subsequently check locally at the client, and the second updating method can save the configuration information of the historical version although occupying part of the storage space of the memory card, which is beneficial for the operation and maintenance personnel to trace back the configuration information.
In some optional embodiments of the present application, after the second configuration information stored in the memory card is loaded in the memory of the terminal for the target application to call, a call request of the target application to the configuration information stored locally in the terminal may be detected; and responding to the calling request, and determining that the memory calls the second configuration information to run the target application.
By the calling mode, the configuration information of the latest version can be guaranteed to be used for the target application to run under the condition that the target application needs the configuration information to run, and the effect of dynamically using the latest configuration information is achieved.
In some optional embodiments of the present application, it may be periodically detected whether the second configuration information in the memory card is updated; and under the condition that the second configuration information in the memory card is detected to be updated, loading the updated second configuration information in the memory card into a memory of the terminal for calling by the target application.
By periodically detecting the updating mode, whether the configuration information is updated or not can be effectively found in time, the configuration information called by the target application is ensured to be the latest configuration information, and then the target application runs with the latest configuration information in the subsequent running process.
Fig. 2 is a configuration information processing method according to an exemplary embodiment, and as shown in fig. 2, the method is implemented based on a target device of a server, and is used in dynamically adjusting configuration information of a client terminal device, where the method includes:
in step S21, receiving first configuration information corresponding to the target application, where the first configuration information is stored locally in the terminal running the target application;
in step S22, acquiring the configuration modification information, and performing configuration update on the first configuration information based on the configuration modification information to generate second configuration information;
in step S23, the second configuration information is transmitted and stored in the memory card of the terminal, so that the terminal updates the first configuration information stored in the memory of the terminal to the second configuration information in the memory card, so that the target application can call the configuration information from the memory.
The configuration information processing method comprises the steps of receiving first configuration information corresponding to a target application, wherein the first configuration information is stored in the local of a terminal running the target application; then, acquiring configuration modification information, and updating the configuration of the first configuration information based on the configuration modification information to generate second configuration information; finally, the second configuration information is transmitted and stored in a memory card of the terminal, so that the terminal updates the first configuration information stored in the memory of the terminal into the second configuration information in the memory card, the second configuration information is used for a target application to call the configuration information from the memory, the technical purposes that the configuration information stored in the client terminal is dynamically modified based on the server side equipment, the modified configuration information is stored in the memory card, whether the updated configuration information exists in the memory card is directly judged subsequently, and if the updated configuration information exists, the application is directly operated based on the configuration information of the memory card are achieved, the technical effects that the APP does not need to be compiled, the development time is saved, and the working efficiency is improved are achieved, and the problem that the modified configuration file is validated by recompiling the APP after the configuration file is modified by the client terminal in the related technology is solved, the time and energy of developers are wasted, and the working efficiency is low.
In some embodiments of the present application, the first configuration information of the target application from the terminal may be received in the following manner, specifically, the first configuration information is received by calling a callback function; analyzing the first configuration information to obtain data in a preset format type; and displaying the data in the preset format type in the network page. The predetermined format types of data include, but are not limited to: JSON data.
In some optional embodiments of the present application, the configuration modification information is obtained, the first configuration information is configured and updated based on the configuration modification information, and the second configuration information is generated, which may be implemented by: receiving a modification instruction of a target object, and generating configuration modification information based on the modification instruction; and updating the configuration of the first configuration information based on the configuration modification information to obtain second configuration information.
It can be understood that, in order to facilitate operation and maintenance personnel and other users to edit programs on the target device and program and modify the configuration information, the server device, i.e., the target device, preferably selects a computer device connected with an input device such as a mouse, a keyboard, etc., so that the user can rapidly modify the configuration information, and thus, the modification instruction may be an operation event of the keyboard and the mouse.
In addition, it should be noted that the target device may also be a mobile terminal, that is, a communication connection between the mobile terminal of the server and the client terminal is established through the Websocket link, and then the configuration information locally stored in the client terminal is dynamically modified through the mobile terminal of the server, so that the modification instruction may be a touch screen event of the mobile terminal.
In some optional embodiments of the present application, the web page is provided with a submit button, and after the second configuration information is obtained, whether the submit button is triggered can be detected; and under the condition that the submission button is determined to be triggered, transmitting the target configuration information to the client terminal through the WebSocket link. Compared with other links, the Websocket link has the advantages that both interaction parties can actively send data, and after the interaction parties carry out communication handshake for the first time, handshake is not needed before data is sent each time, so that communication time can be saved, and modification efficiency of configuration information is indirectly improved.
Fig. 3 is a schematic diagram of an interaction process between a client terminal and a target device of a server (referred to as a server device for short) in an exemplary implementation of the present application, where as shown in fig. 3, the interaction process mainly includes:
the client terminal starts an APP, establishes connection with the server device through WebSocket, and then sends configuration information to the server device through the WebSocket, and after the server displays the configuration information, the server can receive a modification instruction of a user, modify the configuration information, and send the modified configuration information to the client terminal; and the client terminal is used for updating the local configuration information according to the modified configuration information.
Specifically, the method can be realized by the following steps:
(1) the method comprises the steps that a server program of WebSocket is operated on a PC (namely a server), the program is used for receiving configuration information sent by a mobile phone (namely a client) and sending modified configuration information to the mobile phone, and the PC program can be operated on an 8080 port to wait for connection of the mobile phone. The running of the pc-end program code can be realized by using javax.
(2) Starting the APP, judging whether the SD card has configuration information, loading the configuration information into an operating memory (for example, RAM) under the condition that the configuration information is determined, and establishing WebSocket connection with a WebSocket server program of the PC end through a WebSocket protocol when the APP is started. The client can write code using org.
(3) The mobile phone terminal obtains corresponding configuration information through an SDK (software development kit) or other methods provided by an Android platform, the information format can be JSON, a send method is called through WebSocket _ Client (for a class packaged in org. Java-WebSocket: Java-WebSocket three-party library) to send the configuration information to the PC terminal, and then the configuration information is stored in an SD card of the mobile phone.
(4) When the PC terminal receives the data in the onMessage callback method, the data is analyzed into JSON data, html embedded in JSP is used for displaying the data in a browser,
(5) the configuration information displayed in the browser can be displayed in a JSON data format and can be edited, and after the modification is completed, a submission button on an html webpage can be clicked to submit the configuration information.
(6) After the click submission, the modified data is pushed to the mobile phone end through a session, getBasicRemote (). sendText () method, the mobile phone end receives the data in the onMessage callback and then analyzes the data into JSON, the updated configuration data is updated to the SD card, and when the target application calls the configuration information, the memory (for example, RAM) is controlled to obtain the updated configuration data from the SD card so as to update the configuration data stored in the memory. By the method, under the condition that the configuration information of the memory needs to be called by the application of the mobile phone terminal, the latest configuration information can be directly called, so that the technical effect of dynamically using the latest configuration information is achieved, and the compiling is not required to be carried out again.
Fig. 4 is a configuration information processing apparatus according to an exemplary embodiment, and as shown in fig. 4, the apparatus includes an obtaining module 40, a sending module 42, a first storing module 44, and an updating module 46.
The obtaining module 40 is configured to obtain first configuration information corresponding to a target application, where the first configuration information is stored in a local area of a terminal running the target application;
a sending module 42, configured to send the first configuration information to a target device, where the target device is configured to obtain configuration modification information, and perform configuration update on the first configuration information based on the configuration modification information to generate second configuration information;
a first storage module 44 configured to acquire the second configuration information and store the second configuration information in a memory card of the terminal;
the updating module 46 is configured to load the second configuration information in the memory card into the memory of the terminal, and update the first configuration information stored in the memory into the second configuration information in the memory card, so that the target application calls the configuration information from the memory.
In the configuration information processing device, an obtaining module 40 is configured to obtain first configuration information corresponding to a target application, wherein the first configuration information is stored in a local area of a terminal running the target application; a sending module 42, configured to send the first configuration information to a target device, where the target device is configured to obtain configuration modification information, and perform configuration update on the first configuration information based on the configuration modification information to generate second configuration information; a first storage module 44 configured to acquire the second configuration information and store the second configuration information in a memory card of the terminal; the updating module 46 is configured to load the second configuration information in the memory card into the memory of the terminal, update the first configuration information stored in the memory into the second configuration information in the memory card, so that the target application can call the configuration information from the memory, thereby achieving the technical purposes of dynamically modifying the configuration information stored in the client terminal based on the server device, storing the modified configuration information in the memory card, subsequently directly judging whether the updated configuration information exists in the memory card, and if so, directly running the application based on the configuration information of the memory card, i.e. without compiling the APP, thereby achieving the technical effects of saving development time and improving working efficiency, and further solving the problem of modifying the configuration file in the related art by recompiling the APP after the configuration file is modified by the client terminal to enable the modified configuration file to take effect, the time and energy of developers are wasted, and the working efficiency is low.
In some embodiments of the present application, the apparatus further includes an establishing module, configured to establish a link with the target device before sending the first configuration information to the target device, where it should be noted that the link includes a full duplex communication protocol Websocket link based on a transmission control protocol. It should be noted that, compared with other links, the Websocket link can not only actively transmit, but also does not need to handshake before each transmission, and can indirectly improve the modification efficiency. It should be noted that, the target device may be preferably a computer device connected with an input device such as a mouse and a keyboard, so as to improve modification efficiency and save modification time.
In some optional embodiments of the present application, the apparatus further includes a second storage module configured to store the first configuration information in the memory card before acquiring the second configuration information and storing the second configuration information in the memory card of the terminal; wherein storing the second configuration information in a memory card of the terminal comprises: and updating the first configuration information into second configuration information.
In some embodiments of the present application, the apparatus further includes a first detection module configured to detect a call request of the target application for the configuration information stored locally in the terminal after the second configuration information stored in the memory card is loaded in the memory of the terminal for the target application to call; and the response module is configured to respond to the calling request and determine that the memory calls the second configuration information to run the target application. Namely, under the condition that the target application needs the configuration information for running, the latest configuration information in the memory card is directly called, so that the effect of dynamically using the latest configuration information is achieved.
In some embodiments of the present application, the apparatus further comprises: the second detection module is configured to periodically detect whether second configuration information in the memory card is updated; and the loading module is configured to load the updated second configuration information in the memory card into a memory of the terminal for the target application to call under the condition that the second configuration information in the memory card is detected to be updated. It can be understood that, by periodically detecting the update, the update can be effectively found in time, and the target application is ensured to run in time with the latest configuration information.
Fig. 5 shows a configuration information processing apparatus according to an embodiment, and as shown in fig. 5, the apparatus includes a receiving module 50, an obtaining module 52, and a storing module 54.
The receiving module 50 is configured to receive first configuration information corresponding to a target application, where the first configuration information is stored in a local area of a terminal running the target application;
the obtaining module 52 is configured to obtain the configuration modification information, and perform configuration update on the first configuration information based on the configuration modification information to generate second configuration information;
the storage module 54 is configured to transmit and store the second configuration information in the memory card of the terminal, so that the terminal updates the first configuration information stored in the memory of the terminal to the second configuration information in the memory card, so that the target application can call the configuration information from the memory.
In the configuration information processing apparatus, the receiving module 50 is configured to receive first configuration information corresponding to a target application, where the first configuration information is stored in a local area of a terminal running the target application; the obtaining module 52 is configured to obtain the configuration modification information, and perform configuration update on the first configuration information based on the configuration modification information to generate second configuration information; the storage module 54 is configured to transmit and store the second configuration information into a memory card of the terminal, so that the terminal updates the first configuration information stored in the memory of the terminal into the second configuration information in the memory card, so that the target application can call the configuration information from the memory, thereby achieving the technical purpose of dynamically modifying the configuration information stored in the client terminal based on the server device, storing the modified configuration information into the memory card, subsequently and directly judging whether the updated configuration information exists in the memory card, and if so, directly running the application based on the configuration information of the memory card, i.e. without compiling the APP, thereby achieving the technical effects of saving development time and improving working efficiency, and further solving the problem of the manner of modifying the configuration file in the related art that the modified configuration file becomes effective by recompiling the APP after the configuration file is modified by the client terminal, the time and energy of developers are wasted, and the working efficiency is low.
In some embodiments of the present application, the receiving module includes a first receiving unit configured to receive first configuration information by calling a callback function; the analysis unit is configured to analyze the first configuration information to obtain data of a preset format type; and the display unit is configured to display the data in the preset format type in the network page.
In some optional embodiments of the present application, the obtaining module includes a second receiving unit, configured to receive a modification instruction of the target object, and generate configuration modification information based on the modification instruction; and the updating unit is configured to perform configuration updating on the first configuration information based on the configuration modification information to obtain second configuration information.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
In an exemplary embodiment, the present disclosure also provides a server comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement any one of the configuration information processing methods.
In an exemplary embodiment, the present disclosure also provides a computer-readable storage medium in which instructions, when executed by a processor of a server, enable the server to perform any one of the configuration information processing methods.
In an exemplary embodiment, the present disclosure also provides a computer program product comprising computer programs/instructions which, when executed by a processor, implement any of the configuration information processing methods.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for processing configuration information, comprising:
acquiring first configuration information corresponding to a target application, wherein the first configuration information is stored in the local of a terminal running the target application;
sending the first configuration information to target equipment, wherein the target equipment is used for acquiring configuration modification information, and updating the configuration of the first configuration information based on the configuration modification information to generate second configuration information;
acquiring the second configuration information, and storing the second configuration information in a memory card of the terminal;
and loading the second configuration information in the memory card into a memory of the terminal, and updating the first configuration information stored in the memory into the second configuration information in the memory card so that the target application can call the configuration information from the memory.
2. The method of claim 1, wherein before sending the first configuration information to a target device, further comprising:
establishing a link with the target device, wherein the link comprises a full duplex communication protocol Websocket link based on a transmission control protocol.
3. The method according to claim 1, before acquiring the second configuration information and storing the second configuration information in a memory card of the terminal, further comprising:
storing the first configuration information in the memory card;
the storing the second configuration information in a memory card of the terminal includes: updating the first configuration information to the second configuration information.
4. The method according to claim 1, further comprising, after loading the second configuration information stored in the memory card into the memory of the terminal for the target application to call, the step of:
detecting a calling request of the target application for configuration information stored locally in the terminal;
and responding to the calling request, and determining that the memory calls the second configuration information to run the target application.
5. A method for processing configuration information, comprising:
receiving first configuration information corresponding to a target application, wherein the first configuration information is stored in the local of a terminal running the target application;
acquiring configuration modification information, and updating the configuration of the first configuration information based on the configuration modification information to generate second configuration information;
and transmitting and storing the second configuration information into a memory card of the terminal, so that the terminal updates the first configuration information stored in the memory of the terminal into the second configuration information in the memory card, so that the target application can call the configuration information from the memory.
6. A configuration information processing apparatus characterized by comprising:
the terminal comprises an acquisition module, a processing module and a display module, wherein the acquisition module is configured to acquire first configuration information corresponding to a target application, and the first configuration information is stored in the local of a terminal running the target application;
the sending module is configured to send the first configuration information to a target device, and the target device is used for acquiring configuration modification information, performing configuration update on the first configuration information based on the configuration modification information, and generating second configuration information;
the first storage module is configured to acquire the second configuration information and store the second configuration information in a memory card of the terminal;
the updating module is configured to load the second configuration information in the memory card into a memory of the terminal, and update the first configuration information stored in the memory into the second configuration information in the memory card, so that the target application can call the configuration information from the memory.
7. A configuration information processing apparatus characterized by comprising:
the terminal comprises a receiving module, a sending module and a receiving module, wherein the receiving module is configured to receive first configuration information corresponding to a target application, and the first configuration information is stored in the local of a terminal running the target application;
the acquisition module is configured to acquire configuration modification information, perform configuration update on the first configuration information based on the configuration modification information, and generate second configuration information;
the storage module is configured to transmit and store the second configuration information in a memory card of the terminal, so that the terminal updates the first configuration information stored in the memory of the terminal to the second configuration information in the memory card, so that the target application can call the configuration information from the memory.
8. A server, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the configuration information processing method of any one of claims 1 to 5.
9. A computer-readable storage medium in which instructions, when executed by a processor of a server, enable the server to perform the configuration information processing method according to any one of claims 1 to 5.
10. A computer program product comprising computer programs/instructions, characterized in that the computer programs/instructions, when executed by a processor, implement the configuration information processing method of any of claims 1 to 5.
CN202210210004.7A 2022-03-03 2022-03-03 Configuration information processing method and device and server Pending CN114661372A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210210004.7A CN114661372A (en) 2022-03-03 2022-03-03 Configuration information processing method and device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210210004.7A CN114661372A (en) 2022-03-03 2022-03-03 Configuration information processing method and device and server

Publications (1)

Publication Number Publication Date
CN114661372A true CN114661372A (en) 2022-06-24

Family

ID=82028303

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210210004.7A Pending CN114661372A (en) 2022-03-03 2022-03-03 Configuration information processing method and device and server

Country Status (1)

Country Link
CN (1) CN114661372A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101042651A (en) * 2006-03-22 2007-09-26 华为技术有限公司 Software updating method and system thereof
CN102200916A (en) * 2010-03-26 2011-09-28 联想(北京)有限公司 Electronic equipment, configurable member and method for storing configuration information of configurable member
CN105100191A (en) * 2015-05-22 2015-11-25 华为技术有限公司 Method, device and system for realizing Java application installation via cloud compilation
CN110196725A (en) * 2019-04-23 2019-09-03 平安科技(深圳)有限公司 Configuration file management method, apparatus, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101042651A (en) * 2006-03-22 2007-09-26 华为技术有限公司 Software updating method and system thereof
CN102200916A (en) * 2010-03-26 2011-09-28 联想(北京)有限公司 Electronic equipment, configurable member and method for storing configuration information of configurable member
CN105100191A (en) * 2015-05-22 2015-11-25 华为技术有限公司 Method, device and system for realizing Java application installation via cloud compilation
CN110196725A (en) * 2019-04-23 2019-09-03 平安科技(深圳)有限公司 Configuration file management method, apparatus, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US11588922B2 (en) Capturing and replaying application sessions using resource files
CN106970790B (en) Application program creating method, related equipment and system
CN105357323B (en) HTML5 page adjustment method and device in a kind of APP
US9961129B2 (en) Business transaction correlation with client request monitoring data
US8458727B2 (en) Asynchronous client to server updates
CN112257135B (en) Model loading method and device based on multithreading, storage medium and terminal
CN110659057B (en) Application program hot updating method and device, storage medium and computer equipment
CN105204875B (en) The method and system of webpage calling native function
US11436066B2 (en) System for offline object based storage and mocking of rest responses
US20180159724A1 (en) Automatic task tracking
WO2021238596A1 (en) Interface calling method and apparatus, and computer-readable storage medium
US11729295B2 (en) Dynamic link processing engine
EP4209894A1 (en) Cloud code development system, method, and apparatus, device, and storage medium
CN107577609A (en) A kind of embedded system dynamic module adjustment method of Intrusion Detection based on host end dynamic link
CN114490383A (en) Remote debugging system, remote debugging method, computing device and readable medium
EP1489504A2 (en) Mechanism for asynchronous components to be application framework agnostic
US9830307B1 (en) Ahead of time compilation of content pages
CN112241356B (en) Page test method, device, equipment and storage medium
CN110633443B (en) Method, device, equipment and medium for intra-page data communication
CN114661372A (en) Configuration information processing method and device and server
US20130132930A1 (en) Capturing telemetry data by dynamic language engine
CN115061678A (en) Code compiling method and client based on browser proxy service
CN108509243A (en) The method, apparatus and electronic equipment of a kind of page load in application
CN106775900B (en) Calling method and system of application browser
CN112650959A (en) Page loading duration statistical 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