diff --git a/src/x-poster/x-browser.service.ts b/src/x-poster/x-browser.service.ts index 9a62405..c09fb37 100644 --- a/src/x-poster/x-browser.service.ts +++ b/src/x-poster/x-browser.service.ts @@ -173,9 +173,9 @@ export class XBrowserService implements OnModuleInit, OnModuleDestroy { this.logger.debug('isCookieLive?'); if (page.url().includes('/home')) { this.logger.log('Cookies live'); - await this.xCacheService.setStateXCookiesIsSillALive(); + // await this.xCacheService.setStateXCookiesIsSillALive(); if (sendNotiWhenAlive) { - await this.notifyService.sendMessageToTele('✅Verify cookie pass') + // await this.notifyService.sendMessageToTele('✅Verify cookie pass') } return true; } @@ -186,15 +186,15 @@ export class XBrowserService implements OnModuleInit, OnModuleDestroy { .catch(() => false); this.logger.log(`🔐 Session restore: ${isLoggedIn ? 'LOGGED IN' : 'GUEST (cookie có thể expired)'}`); - if (isLoggedIn) { - await this.xCacheService.setStateXCookiesIsSillALive(); - if (sendNotiWhenAlive) { - await this.notifyService.sendMessageToTele('✅Verify cookie pass') - } - } else { - await this.xCacheService.setStateXCookiesIsDie(); - await this.notifyService.sendUrgentMessageToTele('❌Cookie đã hết hạn vui lòng cập nhập để sử dụng.') - } + // if (isLoggedIn) { + // await this.xCacheService.setStateXCookiesIsSillALive(); + // if (sendNotiWhenAlive) { + // await this.notifyService.sendMessageToTele('✅Verify cookie pass') + // } + // } else { + // await this.xCacheService.setStateXCookiesIsDie(); + // await this.notifyService.sendUrgentMessageToTele('❌Cookie đã hết hạn vui lòng cập nhập để sử dụng.') + // } return isLoggedIn; } diff --git a/src/x-poster/x-poster.router.service.ts b/src/x-poster/x-poster.router.service.ts index 5315548..311cce3 100644 --- a/src/x-poster/x-poster.router.service.ts +++ b/src/x-poster/x-poster.router.service.ts @@ -339,10 +339,10 @@ export class XPosterRouterService { // success: true, // } this.logger.error(`cookie not supported`); - // return { - // success: false, - // error: 'Cookie not supported', - // } + return { + success: false, + error: 'Cookie not supported', + } } if (method === 'browser' && account.browser) { return await this.browserSvc.postReply(