GET => POST

Brightcells 6 年之前
父节点
当前提交
2c35869817
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 1 1
      kodo/settings.py
  2. 3 3
      page/screen_views.py

+ 1 - 1
kodo/settings.py

@@ -392,7 +392,7 @@ KODO_DEFAULT_BRAND_DOMAIN = ''
392 392
 
393 393
 KODO_CLERK_AUTH_URL = 'http://pai.ai/w/o?r=http%3A%2F%2Fkodo.xfoto.com.cn%2Fp%2Fclerk%3Fbrand_id%3D{0}'
394 394
 KODO_SCREEN_AUTH_URL = 'http://pai.ai/w/o?r=http%3A%2F%2Fkodo.xfoto.com.cn%2Fp%2Fscreen%2Fadmin%2Foauth%3Fbrand_id%3D{0}'
395
-KODO_SCREEN_LOGIN_URL = 'http://pai.ai/w/o?s=snsapi_base&r=http%3A%2F%2Fkodo.xfoto.com.cn%2Fp%2Fscreen%2Fadmin%2Flogin/%3Fbrand_id%3D{0}%26token%3D{1}'
395
+KODO_SCREEN_LOGIN_URL = 'http://pai.ai/w/o?s=snsapi_base&r=http%3A%2F%2Fkodo.xfoto.com.cn%2Fp%2Fscreen%2Fadmin%2Flogin%3Fbrand_id%3D{0}%26token%3D{1}'
396 396
 
397 397
 # 经纬度
398 398
 GIS_2_ADMINISTRATIVE_DIVISION = 'http://116.196.105.215:1234/gis?auth_user=freevip&latitude={0}&longitude={1}'

+ 3 - 3
page/screen_views.py

@@ -35,7 +35,7 @@ def screen_admin_oauth(request):
35 35
 
36 36
 
37 37
 def screen_admin_loginqr(request):
38
-    brand_id = request.GET.get('brand_id', settings.KODO_DEFAULT_BRAND_ID)
38
+    brand_id = request.POST.get('brand_id', settings.KODO_DEFAULT_BRAND_ID)
39 39
 
40 40
     token = shortuuid.uuid()
41 41
 
@@ -64,8 +64,8 @@ def screen_admin_login(request):
64 64
 
65 65
 
66 66
 def screen_admin_loginrst(request):
67
-    brand_id = request.GET.get('brand_id', settings.KODO_DEFAULT_BRAND_ID)
68
-    token = request.GET.get('token', '')
67
+    brand_id = request.POST.get('brand_id', settings.KODO_DEFAULT_BRAND_ID)
68
+    token = request.POST.get('token', '')
69 69
 
70 70
     unionid = r.get(KODO_SCREEN_ADMIN_LOGIN % (brand_id, token))
71 71