@ -204,7 +204,8 @@ def check_error_call_back(error):
msg = "数据校验失败,请检查p8key内容是否正常"
if 'Authentication credentials are missing or invalid' in error:
msg = '认证失败,请检查开发者信息填写是否正确'
if 'FORBIDDEN.REQUIRED_AGREEMENTS_MISSING_OR_EXPIRED' in error:
msg = '请登录 https://developer.apple.com/account/ 并同意最新协议'
logger.error(f"{msg} {error}")
return msg if msg else error
@ -85,4 +85,4 @@ def auto_check_ios_developer_active():
ios_developer.save(update_fields=['is_actived'])
logger.error(msg)
send_ios_developer_active_status(userinfo, MSGTEMPLATE.get('AUTO_CHECK_DEVELOPER') % (
userinfo.first_name, ios_developer.name))
userinfo.first_name, ios_developer.issuer_id))
@ -134,7 +134,7 @@ class DeveloperView(APIView):
status, result = IosUtils.get_device_from_developer(developer_obj)
if not status:
res.code = 1008
res.msg = result.get("err_info")
res.msg = result.get("return_info")
return Response(res.dict)
elif act == "cleandevice":
with CleanSignDataState(request.user.uid) as state: