Fix Bug: unionid => unionId

Brightcells 8 years ago
parent
commit
e9e810dc97
1 changed files with 1 additions and 1 deletions
  1. 1 1
      miniapp/views.py

+ 1 - 1
miniapp/views.py

@@ -28,7 +28,7 @@ def get_userinfo_api(request):
28 28
     userinfo = get_userinfo(appid=appid, secret=secret, code=code, encryptedData=encryptedData, iv=iv)
29 29
 
30 30
     try:
31
-        user = UserInfo.objects.select_for_update().get(unionid=userinfo.get('unionid', ''))
31
+        user = UserInfo.objects.select_for_update().get(unionid=userinfo.get('unionId', ''))
32 32
     except UserInfo.DoesNotExist:
33 33
         return response(UserStatusCode.USER_NOT_FOUND)
34 34