首次登录是非医学三类
This commit is contained in:
parent
9b63310c03
commit
5b3fc8bd86
|
@ -664,7 +664,7 @@ class WxphoneRegister(APIView):
|
|||
if request.user.role.name =='游客':
|
||||
request.user.role = ConsumerRole.objects.get(name='注册用户')
|
||||
if not request.user.workscope:
|
||||
request.user.workscope = WorkScope.objects.all().first()
|
||||
request.user.workscope = WorkScope.objects.get(name='非医学Ⅲ类')
|
||||
request.user.save()
|
||||
return Response(status=status.HTTP_200_OK)
|
||||
|
||||
|
|
Loading…
Reference in New Issue