首次登录是非医学三类

This commit is contained in:
caoqianming 2022-02-20 08:50:43 +08:00
parent 9b63310c03
commit 5b3fc8bd86
1 changed files with 1 additions and 1 deletions

View File

@ -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)