fix 登录未获取 unionid

FFIB %!s(int64=4) %!d(string=hace) años
padre
commit
1acd49116b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      miniapp/views.py

+ 1 - 1
miniapp/views.py

@@ -159,7 +159,7 @@ def mini_login_api(request):
159 159
 
160 160
     # 同步销售员手机号
161 161
     try:
162
-        saleclerk = SaleclerkInfo.objects.get(unionid=unionid, is_auth=True, status=True)
162
+        saleclerk = SaleclerkInfo.objects.get(unionid=user.unionid, is_auth=True, status=True)
163 163
     except SaleclerkInfo.DoesNotExist:
164 164
         saleclerk = None
165 165