添加URLProtocol

添加URLProtocol
pull/125/head
horizonlin 2018-12-18 11:08:42 +08:00 committed by GitHub
parent 37293c96e8
commit c019172197
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -459,7 +459,20 @@ class AppConfig(BaseAppConfig):
if conf_data is None: if conf_data is None:
log.w('system default config info is empty.\n') log.w('system default config info is empty.\n')
# return True # 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
# ===================================== # =====================================
# 密码策略相关 # 密码策略相关
# ===================================== # =====================================