Commit a4c519c0 authored by 王浩's avatar 王浩

fix user is_tcc and pictorial create faild message

parent e61f60b3
......@@ -65,6 +65,10 @@ class PictorialUpdateOrCreate(APIView):
except Exception as e:
error_logger.error(u'编辑%s用户信息失败%s' % (id, e))
raise
if not data.get('id'):
return {
'message': '画报已存在'
}
return {
'message': '更新成功',
'data': data
......
......@@ -72,6 +72,7 @@ class UserUpdateOrCreate(APIView):
'phone': request.POST.get('phone'),
'email': request.POST.get('email'),
'gender': request.POST.get('gender'),
'is_tcc': request.POST.get('is_tcc'),
}
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment