From 863c4d2fe65202744705d32b1a8bce4f5ca81d75 Mon Sep 17 00:00:00 2001 From: nineven Date: Mon, 8 Jun 2020 11:31:44 +0800 Subject: [PATCH] fix a bug --- fir_ser/api/views/login.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fir_ser/api/views/login.py b/fir_ser/api/views/login.py index 3265f17..698fc1f 100644 --- a/fir_ser/api/views/login.py +++ b/fir_ser/api/views/login.py @@ -1,5 +1,5 @@ from django.contrib import auth -from api.models import Token, UserInfo +from api.models import Token, UserInfo, Apps from rest_framework.response import Response from api.utils.serializer import UserInfoSerializer from django.core.cache import cache @@ -148,6 +148,7 @@ class UserInfoView(APIView): if domain_name == '': request.user.domain_name = None + Apps.objects.filter(user_id=request.user).update(wxeasytype=True) set_default_app_wx_easy(request.user) request.user.job = data.get("job", request.user.job)