From 4d4ee64a650eafbe200802cea3d4690269277341 Mon Sep 17 00:00:00 2001 From: MMXX Date: Thu, 30 Dec 2021 09:15:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=98=BE=E7=A4=BA=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_client/vue.config.js | 2 +- fir_ser/api/utils/app/iossignapi.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/fir_client/vue.config.js b/fir_client/vue.config.js index 9f72eaa..98aaa64 100644 --- a/fir_client/vue.config.js +++ b/fir_client/vue.config.js @@ -82,7 +82,7 @@ if (page) { } } -const version='1.4.0'; +const version='1.4.1'; const pro_base_env = { baseUrl: 'https://flyapps.cn', diff --git a/fir_ser/api/utils/app/iossignapi.py b/fir_ser/api/utils/app/iossignapi.py index 1a3321d..4d4b65e 100644 --- a/fir_ser/api/utils/app/iossignapi.py +++ b/fir_ser/api/utils/app/iossignapi.py @@ -198,16 +198,21 @@ def make_pem(cer_content, pem_path): def check_error_call_back(error, developer_pk): msg = '' + status = None if 'Cannot connect to proxy' in error or 'Read timed out' in error or 'Max retries exceeded with' in error: logger.error('access apple api failed . change proxy ip again') msg = "代理网络错误,请稍后重试或联系管理员处理" if 'it may be encrypted with an unsupported algorithm' in error: msg = "数据校验失败,请检查p8key内容是否正常" + status = 5 if 'Authentication credentials are missing or invalid' in error: msg = '认证失败,请检查开发者信息填写是否正确' + status = 5 if 'FORBIDDEN.REQUIRED_AGREEMENTS_MISSING_OR_EXPIRED' in error: msg = '请登录 https://developer.apple.com/account/ 并同意最新协议' - AppIOSDeveloperInfo.objects.filter(pk=developer_pk).update(status=2) + status = 2 + if status is not None: + AppIOSDeveloperInfo.objects.filter(pk=developer_pk).update(status=status) logger.error(f"{msg} {error}") return msg if msg else error