Commit 0c7cbf7d authored by 许俊鹏's avatar 许俊鹏

fix bug 增加默认值

parent 7f2cb548
...@@ -72,7 +72,7 @@ class UserUpdateOrCreate(APIView): ...@@ -72,7 +72,7 @@ class UserUpdateOrCreate(APIView):
'phone': request.POST.get('phone'), 'phone': request.POST.get('phone'),
'email': request.POST.get('email'), 'email': request.POST.get('email'),
'gender': request.POST.get('gender'), 'gender': request.POST.get('gender'),
'is_tcc': int(request.POST.get('is_tcc')), 'is_tcc': int(request.POST.get('is_tcc', 0)),
} }
try: 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