绑定域名之后,自动关闭微信访问简易模式

v1.0.0
youngS 4 years ago
parent 02e5eedc82
commit 35e6ac8e39
  1. 6
      fir_ser/api/utils/app/apputils.py
  2. 1
      fir_ser/api/views/uploads.py
  3. 4
      fir_ser/fir_ser/settings.py

@ -126,7 +126,8 @@ def SaveAppInfos(app_file_name, user_obj, appinfo, bundle_id, app_img, short, si
"name": appinfo["labelname"],
"short": short,
"bundle_id": bundle_id,
"count_hits": 0
"count_hits": 0,
"wxeasytype": False if user_obj.domain_name else True
}
try:
appmobj = Apps.objects.create(**appdata)
@ -136,11 +137,12 @@ def SaveAppInfos(app_file_name, user_obj, appinfo, bundle_id, app_img, short, si
else:
try:
newapp = False
del_cache_response_by_short(appmobj.app_id)
appmobj.short = short
appmobj.name = appinfo["labelname"]
appmobj.wxeasytype = False if user_obj.domain_name or appmobj.domain_name else True
appmobj.bundle_id = bundle_id
appmobj.save()
del_cache_response_by_short(appmobj.app_id)
except Exception as e:
logger.error("save app info failed,appmobj:%s Exception:%s" % (appmobj, e))
appmobj.bundle_id = bundle_id

@ -123,7 +123,6 @@ class AppAnalyseView(APIView):
if app_info:
if app_info.issupersign and app_info.user_id.supersign_active:
resign_by_app_obj(app_info, need_download_profile=False)
else:
storage.delete_file(app_tmp_filename)
storage.delete_file(png_tmp_filename)

@ -189,8 +189,9 @@ GEETEST_BYPASS_STATUS_KEY = "gt_server_bypass_status"
GEETEST_BYPASS_URL = "http://bypass.geetest.com/v1/bypass_status.php"
# 注册方式,如果启用sms或者email 需要配置 THIRD_PART_CONFIG.sender 信息
# 个人资料修改修改也会使用该配置
REGISTER = {
"enable": False,
"enable": True,
"captcha": False, # 是否开启注册字母验证码
"geetest": True, # 是否开启geetest验证,如要开启请先配置geetest
"register_type": {
@ -200,7 +201,6 @@ REGISTER = {
}
}
# 信息修改也会使用该配置
LOGIN = {
"captcha": False, # 是否开启登录字母验证码
"geetest": False, # 是否开启geetest验证

Loading…
Cancel
Save