|
@@ -130,8 +130,7 @@ export class TaskService implements OnModuleInit {
|
|
|
task.total = phones.length
|
|
task.total = phones.length
|
|
|
task.country = phoneList.country
|
|
task.country = phoneList.country
|
|
|
if (task.country) {
|
|
if (task.country) {
|
|
|
- task.endToEndEncryption =
|
|
|
|
|
- (await this.operatorConfigService.findByCountry(task.country))?.endToEndEncryption || false
|
|
|
|
|
|
|
+ task.e2ee = (await this.operatorConfigService.findByCountry(task.country))?.e2ee || false
|
|
|
}
|
|
}
|
|
|
// 定时任务
|
|
// 定时任务
|
|
|
let cost = 0
|
|
let cost = 0
|
|
@@ -225,7 +224,8 @@ export class TaskService implements OnModuleInit {
|
|
|
country: data.country,
|
|
country: data.country,
|
|
|
matchDevice: data.matchDevice,
|
|
matchDevice: data.matchDevice,
|
|
|
useBackup: data.useBackup,
|
|
useBackup: data.useBackup,
|
|
|
- endToEndEncryption: data.endToEndEncryption
|
|
|
|
|
|
|
+ e2ee: data.e2ee,
|
|
|
|
|
+ e2eeTimeout: data.e2eeTimeout
|
|
|
}
|
|
}
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
@@ -1059,7 +1059,8 @@ export class TaskService implements OnModuleInit {
|
|
|
requestNumberInterval: task.requestNumberInterval || (await this.getConfig('request_number_interval', 100)),
|
|
requestNumberInterval: task.requestNumberInterval || (await this.getConfig('request_number_interval', 100)),
|
|
|
checkConnection: task.checkConnection,
|
|
checkConnection: task.checkConnection,
|
|
|
useBackup: task.useBackup,
|
|
useBackup: task.useBackup,
|
|
|
- endToEndEncryption: task.endToEndEncryption
|
|
|
|
|
|
|
+ e2ee: task.e2ee,
|
|
|
|
|
+ e2eeTimeout: task.e2eeTimeout || (await this.getConfig('e2ee_timeout', 5000))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
await this.updateTaskItemStatusAndSendAt(
|
|
await this.updateTaskItemStatusAndSendAt(
|