CN109547258A - A kind of method and apparatus of data configuration - Google Patents

A kind of method and apparatus of data configuration Download PDF

Info

Publication number
CN109547258A
CN109547258A CN201811485483.3A CN201811485483A CN109547258A CN 109547258 A CN109547258 A CN 109547258A CN 201811485483 A CN201811485483 A CN 201811485483A CN 109547258 A CN109547258 A CN 109547258A
Authority
CN
China
Prior art keywords
data
user
setting option
global
global parameter
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
CN201811485483.3A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811485483.3A priority Critical patent/CN109547258A/en
Publication of CN109547258A publication Critical patent/CN109547258A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of method and apparatus of data configuration, can be more flexiblely in page configuration data, modification data.The described method includes: saving the log-on message of the user after verifying successfully according to the log-on message of user;After the data for receiving user's input, the global parameter in the corresponding setting option of modified logo information;Wherein, the log-on message includes identification information.The data configuration that a large amount of or repetition configuration data needs to repeat to fill in complex parameters can be evaded using the embodiment of the present invention, and solve influence of the global parameter of configuration to other users.

Description

A kind of method and apparatus of data configuration
Technical field
The present invention relates to computer technology, espespecially a kind of method and apparatus of data configuration.
Background technique
In the web system of security platform, often there is the place for being much familiar with configuration data, the data of configuration are often There are many places in host address, port, path etc., the place needed to configure, often there are also the problem of configuring is repeated, so as to cause needing The problem of filling in multiplexed address and path is repeated, and when parameter value changes, needs to modify the ground of all configurations Side.Work as different users simultaneously in use, the object because of scanning is different, data are also not quite similar, in terms of data configuration, to flat The use of platform brings inconvenience.
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides a kind of method and apparatus of data configuration, can be cleverer It lives easily in page configuration data, modification data.
In order to reach the object of the invention, the present invention provides a kind of methods of data configuration, which comprises
After verifying successfully according to the log-on message of user, the log-on message of the user is saved;
After the data for receiving user's input, the global parameter in the corresponding setting option of modified logo information;
Wherein, the log-on message includes identification information.
In a kind of exemplary embodiment, wherein the setting option includes the mark of preconfigured one or more users Know the corresponding global parameter of information.
In a kind of exemplary embodiment, the data of user's input include special identifier symbol and global variable title, Global parameter in the corresponding setting option of the modified logo information, comprising:
Judge whether the data of user's input have special identifier;When there is special identifier, modify described in setting option The corresponding global parameter of identification information is the corresponding global variable of the global variable title.
In a kind of exemplary embodiment, the data of user's input include global variable;The modified logo information Global parameter in corresponding setting option, comprising:
Judge whether the data of user's input have special identifier;When there is no special identifier, institute in setting option is modified Stating the corresponding global parameter of identification information is the global variable.
In a kind of exemplary embodiment, when the setting option is configured in hypertext markup language html, institute It states and is set as text-entry control textarea.
In order to reach the object of the invention, the present invention also provides a kind of device of data configuration, described device includes saving Module and modified module, in which:
The preserving module after verifying successfully for the log-on message according to user, saves the log-on message of the user; Wherein, the log-on message includes identification information
The modified module, after receiving the data that user inputs, in the corresponding setting option of modified logo information Global parameter.
In a kind of exemplary embodiment, wherein the setting option includes the mark of preconfigured one or more users Know the corresponding global parameter of information.
In a kind of exemplary embodiment, the data of user's input include special identifier symbol and global variable title, Global parameter in the corresponding setting option of the modified module modified logo information, comprising:
The modified module judges whether the data of user's input have special identifier;It is described when there is special identifier It is the corresponding global change of the global variable title that modified module, which modifies the corresponding global parameter of identification information described in setting option, Amount.
In a kind of exemplary embodiment, the data of the modified module user input include global variable;The modification Global parameter in the corresponding setting option of identification information, comprising:
The modified module judges whether the data of user's input have special identifier;When there is no special identifier, repair Changing the corresponding global parameter of identification information described in setting option is the global variable.
In a kind of exemplary embodiment, when the setting option is configured in hypertext markup language html, institute It states and is set as text-entry control textarea.
Compared with prior art, the present invention includes compared with prior art that the present invention includes the log-on message according to user After verifying successfully, the log-on message of the user is saved;After the data for receiving user's input, modified logo information is corresponding to be set Set the global parameter in item;Wherein, the log-on message includes identification information.It realizes in flexible interface configuration data, solves Different user is evaded a large amount of or repeats configuration data and need to repeat the problem of filling in complex parameters.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by specification, right Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is the flow chart of the method for the data configuration of the embodiment of the present invention one;
Fig. 2 is the structural schematic diagram of the data configuration device of the embodiment of the present invention three.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable Sequence executes shown or described step.
Embodiment one
A kind of method for present embodiments providing page data configuration, as shown in Figure 1, this method includes S11-S12:
S11, after verifying successfully according to the log-on message of user, the log-on message of the user is saved;
S12, receive user input data after, the global parameter in the corresponding setting option of modified logo information;Wherein, The log-on message includes identification information.Different users can be distinguished according to identification information.
In the embodiment of the present invention, by page setup global parameter, when compared to conventional data configuration, largely or again The problem of multiple configuration data needs to repeat to fill in complex parameters, can evade a large amount of or repetition configuration data.
In a kind of exemplary embodiment, wherein the setting option includes the mark of preconfigured one or more users Know the corresponding global parameter of information.Log-on message includes: the information such as user identifier, login password;The user identifier includes using Name in an account book.
In a kind of exemplary embodiment, the data of user's input include special identifier symbol and global variable title, Global parameter in the corresponding setting option of the modified logo information, comprising:
Judge whether the data of user's input have special identifier;When there is special identifier, modify described in setting option The corresponding global parameter of identification information is the corresponding global variable of the global variable title.
In a kind of exemplary embodiment, the data of user's input include global variable;The modified logo information Global parameter in corresponding setting option, comprising:
Judge whether the data of user's input have special identifier;When there is no special identifier, institute in setting option is modified Stating the corresponding global parameter of identification information is the global variable.
In a kind of exemplary embodiment, when the setting option is configured in hypertext markup language html, institute It states and is set as text-entry control textarea.
Textarea have can show editable function.
In the embodiment of the present invention, after verifying successfully according to the log-on message of user, the log-on message of the user is saved;It connects After the data for receiving user's input, the global parameter in the corresponding setting option of modified logo information can evade a large amount of or again Multiple configuration data needs to repeat to fill in complex parameters, and solves influence of the global parameter of configuration to other users.
Embodiment two
(1) page addition includes the setting option of global parameter list;
The page distinguishes the list of user setting global parameter;Setting option includes user name and the corresponding global parameter of user name, So that one or more global parameter of different user is arranged.Data in setting option are saved in the data at background server end In library, and distinguish user's storage.
Wherein, type of the setting option of global parameter in html is textarea, and editable function can be shown by having.
(2) user logs in verification, and saves user information;
After verifying the success of login user information when logging in, by user's storage into Temporary storage registers.
For example, user information is saved in Temporary storage registers session:
a)from Flask import session
Session [' user ']=account
B) # distinguishes user's storage to database config table
Mongo.coll.config,insert({“user”:session[‘user’],“config”:config})
Background server end obtains the data of active user's (consistent with the user information that session is saved);
(3) global parameter list setting option has the function of submitting more new data;
The global parameter list is modified in the page, updates the global parameter of different user, is asked by sending js toward backstage It asks, submits and update global parameter data.
By sending js request toward backstage, to submit and update global parameter data, comprising: configuration data uses global variable, Reference global variable method $ adds global variable title;
Configure global variable URL:https//www.test.com in the database in advance;
When configuration data: url=$ URL;
Wherein, " $ " is special identifier, and " URL " is global variable title, and " https//www.test.com " is global become Measure the corresponding global variable of title;
Background server end handles data configuration and quotes global variable, comprising:
A) data " url=$ URL " of user's input are read at background server end;
B) data configuration is verified;
Whether the data " $ URL " of verification user's input have special identifier;
If c) reading special identifier symbol $ in data configuration, the character string after reading $ is global parameter title;
There is special identifier " $ " in this example, therefore " URL " thereafter is global parameter title;
D) global parameter value is read from database according to current global parameter title and active user;
There is URL:https//www.test.com in database, therefore, global variable name can be read from database Claim the corresponding global variable https//www.test.com of URL;
E) add global parameter title with the identifier for the global parameter value replacement data configuration read, realize that data configuration draws Use global variable;
Enable URL=https//www.test.com;It realizes and is configured in front end, the global variable url at end is configured For https//www.test.com.
The application is suitable for Python Flask Web system, and the field of relating generally to includes Python development language, Flask Development Framework, MongoDB database, while being suitable for the web system that all pages need to configure data.
The application adds the setting option of a global parameter list, page data parameter configuration in page difference different user The page can be quoted according to global parameter title, need to repeat to fill in complicated ginseng to evade a large amount of or repetition configuration data Several problems.
Embodiment three
A kind of device of data configuration is present embodiments provided, description is also applied for the present embodiment in above method embodiment In, as shown in Fig. 2, the device includes preserving module 21 and modified module 22, in which:
The preserving module 21 after verifying successfully for the log-on message according to user, saves the login letter of the user Breath;Wherein, the log-on message includes identification information
The modified module 22, after receiving the data that user inputs, in the corresponding setting option of modified logo information Global parameter.
In a kind of exemplary embodiment, wherein the setting option includes the mark of preconfigured one or more users Know the corresponding global parameter of information.
In a kind of exemplary embodiment, the data of user's input include special identifier symbol and global variable title, Global parameter in the corresponding setting option of the 22 modified logo information of modified module, comprising:
The modified module 22 judges whether the data of user's input have special identifier;When there is special identifier, institute Stating modified module 22 and modifying the corresponding global parameter of identification information described in setting option is that the global variable title is corresponding complete Office's variable.
In a kind of exemplary embodiment, the data of 22 user of the modified module input include global variable;It is described to repair Change the global parameter in the corresponding setting option of identification information, comprising:
The modified module 22 judges whether the data of user's input have special identifier;When there is no special identifier, Modifying the corresponding global parameter of identification information described in setting option is the global variable.
In a kind of exemplary embodiment, when the setting option is configured in hypertext markup language html, institute It states and is set as text-entry control textarea.
It will appreciated by the skilled person that whole or certain steps, system, dress in method disclosed hereinabove Functional module/unit in setting may be implemented as software, firmware, hardware and its combination appropriate.In hardware embodiment, Division between the functional module/unit referred in the above description not necessarily corresponds to the division of physical assemblies;For example, one Physical assemblies can have multiple functions or a function or step and can be executed by several physical assemblies cooperations.Certain groups Part or all components may be implemented as by processor, such as the software that digital signal processor or microprocessor execute, or by It is embodied as hardware, or is implemented as integrated circuit, such as specific integrated circuit.Such software can be distributed in computer-readable On medium, computer-readable medium may include computer storage medium (or non-transitory medium) and communication media (or temporarily Property medium).As known to a person of ordinary skill in the art, term computer storage medium is included in for storing information (such as Computer readable instructions, data structure, program module or other data) any method or technique in the volatibility implemented and non- Volatibility, removable and nonremovable medium.Computer storage medium include but is not limited to RAM, ROM, EEPROM, flash memory or its His memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storages, magnetic holder, tape, disk storage or other Magnetic memory apparatus or any other medium that can be used for storing desired information and can be accessed by a computer.This Outside, known to a person of ordinary skill in the art to be, communication media generally comprises computer readable instructions, data structure, program mould Other data in the modulated data signal of block or such as carrier wave or other transmission mechanisms etc, and may include any information Delivery media.

Claims (10)

1. a kind of method of data configuration, which is characterized in that the described method includes:
After verifying successfully according to the log-on message of user, the log-on message of the user is saved;
After the data for receiving user's input, the global parameter in the corresponding setting option of modified logo information;
Wherein, the log-on message includes identification information.
2. the method according to claim 1, wherein wherein, the setting option include preconfigured one or The corresponding global parameter of the identification information of multiple users.
3. according to the method described in claim 2, it is characterized in that, the data of user input include special identifier symbol and complete Office's name variable, the global parameter in the corresponding setting option of the modified logo information, comprising:
Judge whether the data of user's input have special identifier;When there is special identifier, modifies and identified described in setting option The corresponding global parameter of information is the corresponding global variable of the global variable title.
4. according to the method described in claim 2, it is characterized in that, the data of user input include global variable;It is described Global parameter in the corresponding setting option of modified logo information, comprising:
Judge whether the data of user's input have special identifier;When there is no special identifier, modifies and marked described in setting option Knowing the corresponding global parameter of information is the global variable.
5. method according to claim 1-4, which is characterized in that when the setting option is in hypertext markup language It is described to be set as text-entry control textarea when being configured in html.
6. a kind of device of data configuration, which is characterized in that described device includes preserving module and modified module, in which:
The preserving module after verifying successfully for the log-on message according to user, saves the log-on message of the user;Its In, the log-on message includes identification information
The modified module, the overall situation after receiving the data that user inputs, in the corresponding setting option of modified logo information Parameter.
7. device according to claim 6, which is characterized in that wherein, the setting option include preconfigured one or The corresponding global parameter of the identification information of multiple users.
8. device according to claim 7, which is characterized in that the data of user input include special identifier symbol and complete Office's name variable, the global parameter in the corresponding setting option of the modified module modified logo information, comprising:
The modified module judges whether the data of user's input have special identifier;When there is special identifier, the modification It is the corresponding global variable of the global variable title that module, which modifies the corresponding global parameter of identification information described in setting option,.
9. device according to claim 7, which is characterized in that the data of the modified module user input include global become Amount;Global parameter in the corresponding setting option of the modified logo information, comprising:
The modified module judges whether the data of user's input have special identifier;When not having special identifier, modification is set Setting the corresponding global parameter of identification information described in item is the global variable.
10. according to the described in any item devices of claim 6-9, which is characterized in that when the setting option is in hypertext markup language It is described to be set as text-entry control textarea when being configured in speech html.
CN201811485483.3A 2018-12-06 2018-12-06 A kind of method and apparatus of data configuration Pending CN109547258A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811485483.3A CN109547258A (en) 2018-12-06 2018-12-06 A kind of method and apparatus of data configuration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811485483.3A CN109547258A (en) 2018-12-06 2018-12-06 A kind of method and apparatus of data configuration

Publications (1)

Publication Number Publication Date
CN109547258A true CN109547258A (en) 2019-03-29

Family

ID=65853855

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811485483.3A Pending CN109547258A (en) 2018-12-06 2018-12-06 A kind of method and apparatus of data configuration

Country Status (1)

Country Link
CN (1) CN109547258A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090113337A1 (en) * 2007-10-31 2009-04-30 Rogers Steven W Global Variable Structure in a Graphical Program
CN105323318A (en) * 2015-10-29 2016-02-10 小米科技有限责任公司 Parameter modifying method, parameter modifying device and parameter modifying equipment
CN107506124A (en) * 2017-08-29 2017-12-22 武汉斗鱼网络科技有限公司 Video making friends method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090113337A1 (en) * 2007-10-31 2009-04-30 Rogers Steven W Global Variable Structure in a Graphical Program
CN105323318A (en) * 2015-10-29 2016-02-10 小米科技有限责任公司 Parameter modifying method, parameter modifying device and parameter modifying equipment
CN107506124A (en) * 2017-08-29 2017-12-22 武汉斗鱼网络科技有限公司 Video making friends method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
DAILY886: "discuz全局变量$_G", 《CSDN,HTTPS:// BLOG.CSDN.NET/DAILY886/ARTICLE/DETAILS/79567239》 *
沙舟: "基于Android系统的移动办公平台的设计与实现", 《中国优秀硕士学位论文全文数据库·信息科技辑》 *

Similar Documents

Publication Publication Date Title
US11513864B2 (en) Adoption of existing virtual computing resources into logical containers for management operations
CN105872019B (en) A kind of method and apparatus that the end Web logs in Docker container
US11822637B2 (en) Adaptive authentication in spreadsheet interface integrated with web service
US11693642B2 (en) Method and system for cross-platform deployment
US20150378714A1 (en) Providing Context-Specific Software Updates to Client Applications
EP3374857B1 (en) Dashboard as remote computing services
CN107741935B (en) Data importing method and data importing device
US9137094B1 (en) Method for setting DNS records
CN110673847A (en) Configuration page generation method and device, electronic equipment and readable storage medium
US20110181906A1 (en) Publishing content to social network sites from applications
US11004054B2 (en) Updating account data for multiple account providers
CN107995153A (en) Form data verification method and form data verification device
WO2021249356A1 (en) Form data verification method, system, server, and user terminal
CN107102908A (en) Data verification method, data fault tolerance method and device
US20170364381A1 (en) Data center configuration
CN112507267B (en) User preference setting synchronization method, system, device and readable storage medium
CN106708717B (en) A kind of exploitation adjustment method and device
CN110365640A (en) A kind of method and apparatus of control single-page application routing
CN109547258A (en) A kind of method and apparatus of data configuration
CN112543109A (en) Cloud host creation method, system, server and storage medium
CN109510735A (en) A kind of method and device of message test
US10986051B1 (en) System and method for dynamic chat message customization
CN111581565B (en) Page style configuration method, system, medium and equipment
EP3785408B1 (en) Auto-form fill based website authentication
US20130332591A1 (en) Dynamic script interpretation in remote contexts

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190329

RJ01 Rejection of invention patent application after publication