Skip to content

Commit 740358a

Browse files
committed
Update wcs.js
1 parent 6f99fa8 commit 740358a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

wxapp/wcs.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class WeChatCodeServer {
1212
headers: {
1313
'auth': this.auth
1414
},
15-
timeout: 10 * 1000
15+
timeout: 30 * 1000
1616
}).then(res => {
1717
console.log('获取code成功:');
1818
resolve(res);
@@ -28,7 +28,7 @@ class WeChatCodeServer {
2828
headers: {
2929
'auth': this.auth
3030
},
31-
timeout: 10 * 1000
31+
timeout: 30 * 1000
3232
}).then(res => {
3333
console.log('初始化成功:');
3434
resolve(res);
@@ -44,7 +44,7 @@ class WeChatCodeServer {
4444
headers: {
4545
'auth': this.auth
4646
},
47-
timeout: 10 * 1000
47+
timeout: 30 * 1000
4848
}).then(res => {
4949
console.log('关闭成功:');
5050
resolve(res);
@@ -60,7 +60,7 @@ class WeChatCodeServer {
6060
headers: {
6161
'auth': this.auth
6262
},
63-
timeout: 10 * 1000
63+
timeout: 30 * 1000
6464
}).then(res => {
6565
console.log('云函数初始化成功:');
6666
resolve(res);
@@ -76,7 +76,7 @@ class WeChatCodeServer {
7676
headers: {
7777
'auth': this.auth
7878
},
79-
timeout: 10 * 1000
79+
timeout: 30 * 1000
8080
}).then(res => {
8181
console.log('云函数调用成功:');
8282
resolve(res);

0 commit comments

Comments
 (0)