@@ -120,7 +120,7 @@ class coGateRegion {
120
120
}
121
121
}
122
122
123
- public QTGateGatewayConnectRequestCallBack ( error , connectCommand : IConnectCommand ) {
123
+ public QTGateGatewayConnectRequestCallBack ( error , connectCommand : IConnectCommand [ ] ) {
124
124
clearTimeout ( this . doingProcessBarTime )
125
125
this . CoGateConnerting ( false )
126
126
@@ -132,9 +132,6 @@ class coGateRegion {
132
132
return
133
133
}
134
134
135
- if ( connectCommand . error > - 1 ) {
136
- return this . error ( connectCommand . error )
137
- }
138
135
const data1 = connectCommand [ 0 ]
139
136
this . localHostIP ( data1 . localServerIp [ 0 ] )
140
137
this . QTGateLocalProxyPort ( data1 . localServerPort )
@@ -358,7 +355,7 @@ class CoGateClass {
358
355
} )
359
356
} )
360
357
361
- socketIo . on ( 'QTGateGatewayConnectRequest' , function ( err , cmd : IConnectCommand , ) {
358
+ socketIo . on ( 'QTGateGatewayConnectRequest' , function ( err , cmd : IConnectCommand [ ] , ) {
362
359
363
360
if ( ! self . CoGateRegion ( ) ) {
364
361
let uuu : coGateRegion = null
@@ -367,6 +364,7 @@ class CoGateClass {
367
364
return n . qtRegion === region
368
365
} )
369
366
const uu = self . QTGateRegions ( ) [ regionIndex ]
367
+ self . QTTransferData ( cmd [ 0 ] . transferData )
370
368
uuu = new coGateRegion ( uu , self . QTTransferData ( ) , function ( ) {
371
369
self . account ( )
372
370
} , isUsedPublicImapAccount , function ( ) {
0 commit comments