Commit 730857a3 authored by 王浩's avatar 王浩

Merge branch 'haow/dev' into 'test'

fix user is_tcc and pictorial create faild message

See merge request alpha/sun!119
parents 3b838e97 a4c519c0
......@@ -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