增加urlprotocol配置读取

增加urlprotocol配置读取
pull/124/head
horizonlin 2018-12-11 14:26:37 +08:00 committed by GitHub
parent c1817a9d09
commit dcf33358ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -456,6 +456,18 @@ class AppConfig(BaseAppConfig):
if conf_data is None:
log.w('system default config info is empty.\n')
# return True
# =====================================
# 全局设置相关
# =====================================
try:
_glob = json.loads(conf_data['global'])
except:
log.w('password config not set or invalid, use default.\n')
_glob = {}
self.sys.glob = tp_convert_to_attr_dict(_glob)
if not self.sys.glob.is_exists('url_proto'):
self.sys.glob.url_proto = False
# =====================================
# 密码策略相关