优化显示异常提示

dependabot/npm_and_yarn/fir_admin/url-parse-1.5.10
MMXX 3 years ago
parent 04ccfe77a3
commit 4d4ee64a65
  1. 2
      fir_client/vue.config.js
  2. 7
      fir_ser/api/utils/app/iossignapi.py

@ -82,7 +82,7 @@ if (page) {
}
}
const version='1.4.0';
const version='1.4.1';
const pro_base_env = {
baseUrl: 'https://flyapps.cn',

@ -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

Loading…
Cancel
Save