diff --git a/fir_ser/api/utils/app/apputils.py b/fir_ser/api/utils/app/apputils.py index d42cf1c..7b09e99 100644 --- a/fir_ser/api/utils/app/apputils.py +++ b/fir_ser/api/utils/app/apputils.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 diff --git a/fir_ser/api/views/uploads.py b/fir_ser/api/views/uploads.py index 4b1c3b8..1fcba60 100644 --- a/fir_ser/api/views/uploads.py +++ b/fir_ser/api/views/uploads.py @@ -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) diff --git a/fir_ser/fir_ser/settings.py b/fir_ser/fir_ser/settings.py index b973e97..d83d7d9 100644 --- a/fir_ser/fir_ser/settings.py +++ b/fir_ser/fir_ser/settings.py @@ -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验证