KODO_CLERK_AUTH_URL

Brightcells 7 years ago
parent
commit
cb496dadad
2 changed files with 6 additions and 1 deletions
  1. 3 1
      api/mch_views.py
  2. 3 0
      kodo/settings.py

+ 3 - 1
api/mch_views.py

@@ -63,7 +63,9 @@ def admin_login_api(request):
63 63
 
64 64
     request.session['admin_id'] = administrator.admin_id
65 65
 
66
-    return response(200, 'Admin Login Success', u'管理员登录成功')
66
+    return response(200, 'Admin Login Success', u'管理员登录成功', data={
67
+        'qrurl': settings.KODO_CLERK_AUTH_URL.format(administrator.brand_id),
68
+    })
67 69
 
68 70
 
69 71
 @logit

+ 3 - 0
kodo/settings.py

@@ -380,6 +380,9 @@ DEBUG_STATISTIC_DATA_FLAG = False
380 380
 
381 381
 KODO_DEFAULT_BRAND = ''
382 382
 
383
+
384
+KODO_CLERK_AUTH_URL = 'http://pai.ai/w/o?r=http%3A%2F%2Fkodo.xfoto.com.cn%2Fp%2Fclerk%3Fbrand_id%3D{0}'
385
+
383 386
 try:
384 387
     from local_settings import *
385 388
 except ImportError: