Commit 4ff94ee3b543961c905c7f060376941b520d8423

Authored by 刘淇
1 parent 3a799e7e

静默授权

src/components/dynCodePay.vue
... ... @@ -110,7 +110,7 @@ export default {
110 110 var code = this.getUrlParam('code');
111 111 var local = window.location.href;
112 112 if (code == null || code === '') {
113   - window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + appID + '&redirect_uri=' + encodeURIComponent(local) + '&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect'
  113 + window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + appID + '&redirect_uri=' + encodeURIComponent(local) + '&response_type=code&scope=snsapi_base&state=1#wechat_redirect'
114 114 } else {
115 115 return code;
116 116 }
... ...
src/components/orderPay.vue
... ... @@ -83,7 +83,7 @@ export default {
83 83 var code = this.getUrlParam('code');
84 84 var local = window.location.href;
85 85 if (code == null || code === '') {
86   - window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + appID + '&redirect_uri=' + encodeURIComponent(local) + '&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect'
  86 + window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + appID + '&redirect_uri=' + encodeURIComponent(local) + '&response_type=code&scope=snsapi_base&state=1#wechat_redirect'
87 87 } else {
88 88 return code;
89 89 }
... ...
src/components/pay.vue
... ... @@ -121,7 +121,7 @@ export default {
121 121 var code = this.getUrlParam('code');
122 122 var local = window.location.href;
123 123 if (code == null || code === '') {
124   - window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + appID + '&redirect_uri=' + encodeURIComponent(local) + '&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect'
  124 + window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + appID + '&redirect_uri=' + encodeURIComponent(local) + '&response_type=code&scope=snsapi_base&state=1#wechat_redirect'
125 125 } else {
126 126 return code;
127 127 }
... ...
src/components/plateNumber.vue
... ... @@ -320,7 +320,7 @@ export default {
320 320 var code = this.getUrlParam('code');
321 321 var local = window.location.href;
322 322 if (code == null || code === '') {
323   - window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid='+appID+'&redirect_uri='+encodeURIComponent(local)+'&response_type=code&scope=snsapi_userinfo&state=1,0#wechat_redirect'
  323 + window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid='+appID+'&redirect_uri='+encodeURIComponent(local)+'&response_type=code&scope=snsapi_base&state=1,0#wechat_redirect'
324 324 } else {
325 325 return code;
326 326 }
... ...
src/utils/request.js
... ... @@ -10,7 +10,7 @@ const service = axios.create({
10 10  
11 11 // https://dev.renniting.cn/pay/ 赤峰农行测试环境
12 12  
13   - baseURL: 'https://dev.renniting.cn/pay/', // url = base url + request url
  13 + baseURL: 'https://pay.renniting.cn/', // url = base url + request url
14 14 // withCredentials: true, // send cookies when cross-domain requests
15 15 timeout: 6000 // request timeout
16 16 })
... ...