正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -87,7 +87,7 @@ class WxUserlogin(APIView): | @@ -87,7 +87,7 @@ class WxUserlogin(APIView): | ||
87 | 87 | ||
88 | def post(self, request, *args, **kwargs): | 88 | def post(self, request, *args, **kwargs): |
89 | code = request.data.get('code', '').strip() | 89 | code = request.data.get('code', '').strip() |
90 | - app_id = request.data.get('state', '').strip() | 90 | + app_id = kwargs['state'].strip() |
91 | if not code: | 91 | if not code: |
92 | raise PermissionDenied | 92 | raise PermissionDenied |
93 | else: | 93 | else: |
-
请 注册 或 登录 后发表评论