fix bug: WECHAT_REDIRECT_URI not exists

Brightcells 8 年之前
父节点
当前提交
6faf4d4d8c
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      pai2/settings.py

+ 2 - 0
pai2/settings.py

@@ -269,6 +269,8 @@ WECHAT = {
269 269
     },
270 270
 }
271 271
 
272
+WECHAT_REDIRECT_URI = 'http://api.pai.ai/to_redirect'
273
+
272 274
 WECHAT_GET_CODE_BASE = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=%s&redirect_uri=%s&response_type=code&scope=snsapi_base&state=%s#wechat_redirect'
273 275
 WECHAT_GET_CODE_USERINFO = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=%s&redirect_uri=%s&response_type=code&scope=snsapi_userinfo&state=%s#wechat_redirect'
274 276
 WECHAT_GET_OAUTH2_ACCESS_TOKEN = 'https://api.weixin.qq.com/sns/oauth2/access_token?appid=%s&secret=%s&code=%s&grant_type=authorization_code'