mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
Update config.py
This commit is contained in:
parent
c2e2dc5609
commit
eec810dc6a
@ -204,15 +204,15 @@ HIBIAPI = HIBIAPI[:-1] if HIBIAPI[-1] == "/" else HIBIAPI
|
|||||||
RSSHUBAPP = RSSHUBAPP[:-1] if RSSHUBAPP[-1] == "/" else RSSHUBAPP
|
RSSHUBAPP = RSSHUBAPP[:-1] if RSSHUBAPP[-1] == "/" else RSSHUBAPP
|
||||||
|
|
||||||
# 配置文件应用
|
# 配置文件应用
|
||||||
if USE_CONFIG_FILE:
|
# if USE_CONFIG_FILE:
|
||||||
config = get_config_data()
|
# config = get_config_data()
|
||||||
if config:
|
# if config:
|
||||||
for key in config.keys():
|
# for key in config.keys():
|
||||||
if isinstance(config[key], str):
|
# if isinstance(config[key], str):
|
||||||
config[key] = config[key].strip()
|
# config[key] = config[key].strip()
|
||||||
if key.find("proxy") != -1:
|
# if key.find("proxy") != -1:
|
||||||
if not config[key]:
|
# if not config[key]:
|
||||||
config[key] = None
|
# config[key] = None
|
||||||
# if not configs[key] and key.find("PATH") == -1:
|
# # if not configs[key] and key.find("PATH") == -1:
|
||||||
# configs[key] = None
|
# # configs[key] = None
|
||||||
globals().update(config)
|
# globals().update(config)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user