File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments