chenjunkai 5 жил өмнө
parent
commit
0fbb96bac7

+ 4 - 2
Controller/UserController.py

@@ -1399,6 +1399,10 @@ class wxAuthSignView(TemplateView):
     def ValidationError(self, request_dict, response):
         grant_code = request_dict.get('grant_code', None)  # 微信授权code
         appBundleID = request_dict.get('appBundleID', None)  # 包名
+        print('grant_code')
+        print(grant_code)
+        print('appBundleID')
+        print(appBundleID)
         if all([grant_code, appBundleID]):
             app_config = {
                 'com.ansjer.zccloud': {'appid': 'wx2a9f5ef9baf2760f', 'secret': '5d38c7079676463149ffea593c58f2ed'},
@@ -1426,8 +1430,6 @@ class wxAuthSignView(TemplateView):
                         # 如果用户绑定过则直接登录
                         userID = user_extend_qs[0].userID
                         user_qs = Device_User.objects.filter(userID=userID)
-                        from var_dump import var_dump
-                        var_dump('lgggin')
                         return self.do_login(user_qs, response)
                     else:
                         # 如果用户为绑定过则创建用户并进行登录返回token