Commit 4ff94ee3b543961c905c7f060376941b520d8423
1 parent
3a799e7e
静默授权
Showing
5 changed files
with
5 additions
and
5 deletions
src/components/dynCodePay.vue
@@ -110,7 +110,7 @@ export default { | @@ -110,7 +110,7 @@ export default { | ||
110 | var code = this.getUrlParam('code'); | 110 | var code = this.getUrlParam('code'); |
111 | var local = window.location.href; | 111 | var local = window.location.href; |
112 | if (code == null || code === '') { | 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 | } else { | 114 | } else { |
115 | return code; | 115 | return code; |
116 | } | 116 | } |
src/components/orderPay.vue
@@ -83,7 +83,7 @@ export default { | @@ -83,7 +83,7 @@ export default { | ||
83 | var code = this.getUrlParam('code'); | 83 | var code = this.getUrlParam('code'); |
84 | var local = window.location.href; | 84 | var local = window.location.href; |
85 | if (code == null || code === '') { | 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 | } else { | 87 | } else { |
88 | return code; | 88 | return code; |
89 | } | 89 | } |
src/components/pay.vue
@@ -121,7 +121,7 @@ export default { | @@ -121,7 +121,7 @@ export default { | ||
121 | var code = this.getUrlParam('code'); | 121 | var code = this.getUrlParam('code'); |
122 | var local = window.location.href; | 122 | var local = window.location.href; |
123 | if (code == null || code === '') { | 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 | } else { | 125 | } else { |
126 | return code; | 126 | return code; |
127 | } | 127 | } |
src/components/plateNumber.vue
@@ -320,7 +320,7 @@ export default { | @@ -320,7 +320,7 @@ export default { | ||
320 | var code = this.getUrlParam('code'); | 320 | var code = this.getUrlParam('code'); |
321 | var local = window.location.href; | 321 | var local = window.location.href; |
322 | if (code == null || code === '') { | 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 | } else { | 324 | } else { |
325 | return code; | 325 | return code; |
326 | } | 326 | } |
src/utils/request.js
@@ -10,7 +10,7 @@ const service = axios.create({ | @@ -10,7 +10,7 @@ const service = axios.create({ | ||
10 | 10 | ||
11 | // https://dev.renniting.cn/pay/ 赤峰农行测试环境 | 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 | // withCredentials: true, // send cookies when cross-domain requests | 14 | // withCredentials: true, // send cookies when cross-domain requests |
15 | timeout: 6000 // request timeout | 15 | timeout: 6000 // request timeout |
16 | }) | 16 | }) |