作者 vanwhebin

update

不能预览此文件类型
不能预览此文件类型
不能预览此文件类型
@@ -4,9 +4,8 @@ @@ -4,9 +4,8 @@
4 4
5 from django.urls import path, include 5 from django.urls import path, include
6 6
7 -app_name = "project" 7 +app_name = "sku"
8 8
9 urlpatterns = [ 9 urlpatterns = [
10 - path('', include(router.urls)),  
11 10
12 ] 11 ]
@@ -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 = kwargs['state'].strip() 90 + app_id = request.data.get('state', '').strip()
91 if not code: 91 if not code:
92 raise PermissionDenied 92 raise PermissionDenied
93 else: 93 else: