def auth_exception_handler(exc, context):
response = exception_handler(exc, context)
# Customized for Android
if response is not None:
response.data["success"] = False
response.data["message"] = response.data["detail"]
del response.data["detail"]
return response
评论列表
文章目录