This commit is contained in:
NAME
2026-05-13 13:22:54 +00:00
parent 702a0d1ab5
commit b57c9aa0bd
2 changed files with 15 additions and 15 deletions
+11 -11
View File
@@ -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;
}
+4 -4
View File
@@ -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(