perf: 补充cmpp2翻译及部分报错提示 (#8717)

* 修改CMPPv2.0翻译内容

* perf: 捕捉连接网关出错问题

* perf: 测试短信验证失败提示错误信息

* perf: 修改翻译
This commit is contained in:
jiangweidong
2022-08-10 17:32:28 +08:00
committed by GitHub
parent 30fe5214c7
commit abcd12f645
5 changed files with 144 additions and 106 deletions

View File

@@ -136,4 +136,7 @@ class SMSTestingAPI(GenericAPIView):
error = e.detail
status_code = status.HTTP_400_BAD_REQUEST
data = {'error': error}
except Exception as e:
status_code = status.HTTP_400_BAD_REQUEST
data = {'error': str(e)}
return Response(status=status_code, data=data)