D
This commit is contained in:
@@ -23,7 +23,7 @@ export class SqsPosterWorker {
|
|||||||
await this.notifyService.sendMessageToTele(`🚀 Worker started for ${await this.sqs.getQueueName()}`)
|
await this.notifyService.sendMessageToTele(`🚀 Worker started for ${await this.sqs.getQueueName()}`)
|
||||||
|
|
||||||
//check cookie
|
//check cookie
|
||||||
this.xRouterService.verifyCookie();
|
await this.xRouterService.verifyCookie();
|
||||||
|
|
||||||
let ReceiptHandle = '';
|
let ReceiptHandle = '';
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|||||||
@@ -66,10 +66,10 @@ export class XPosterRouterService {
|
|||||||
const isAlive = await this.browserSvc.verifyCookie();
|
const isAlive = await this.browserSvc.verifyCookie();
|
||||||
if (!isAlive) {
|
if (!isAlive) {
|
||||||
await this.xCacheService.setStateXCookiesIsDie();
|
await this.xCacheService.setStateXCookiesIsDie();
|
||||||
await this.notifyService.sendUrgentMessageToTele('Cookie đã hết hạn vui lòng cập nhập để sử dụng.')
|
await this.notifyService.sendUrgentMessageToTele('❌Cookie đã hết hạn vui lòng cập nhập để sử dụng.')
|
||||||
}
|
}
|
||||||
await this.xCacheService.setStateXCookiesIsSillALive();
|
await this.xCacheService.setStateXCookiesIsSillALive();
|
||||||
await this.notifyService.sendMessageToTele('Verify cookie pass')
|
await this.notifyService.sendMessageToTele('✅Verify cookie pass')
|
||||||
}
|
}
|
||||||
|
|
||||||
async canUseXCookies(): Promise<boolean> {
|
async canUseXCookies(): Promise<boolean> {
|
||||||
|
|||||||
Reference in New Issue
Block a user