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?'); this.logger.debug('isCookieLive?');
if (page.url().includes('/home')) { if (page.url().includes('/home')) {
this.logger.log('Cookies live'); this.logger.log('Cookies live');
await this.xCacheService.setStateXCookiesIsSillALive(); // await this.xCacheService.setStateXCookiesIsSillALive();
if (sendNotiWhenAlive) { if (sendNotiWhenAlive) {
await this.notifyService.sendMessageToTele('✅Verify cookie pass') // await this.notifyService.sendMessageToTele('✅Verify cookie pass')
} }
return true; return true;
} }
@@ -186,15 +186,15 @@ export class XBrowserService implements OnModuleInit, OnModuleDestroy {
.catch(() => false); .catch(() => false);
this.logger.log(`🔐 Session restore: ${isLoggedIn ? 'LOGGED IN' : 'GUEST (cookie có thể expired)'}`); this.logger.log(`🔐 Session restore: ${isLoggedIn ? 'LOGGED IN' : 'GUEST (cookie có thể expired)'}`);
if (isLoggedIn) { // if (isLoggedIn) {
await this.xCacheService.setStateXCookiesIsSillALive(); // await this.xCacheService.setStateXCookiesIsSillALive();
if (sendNotiWhenAlive) { // if (sendNotiWhenAlive) {
await this.notifyService.sendMessageToTele('✅Verify cookie pass') // await this.notifyService.sendMessageToTele('✅Verify cookie pass')
} // }
} else { // } else {
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.')
} // }
return isLoggedIn; return isLoggedIn;
} }
+4 -4
View File
@@ -339,10 +339,10 @@ export class XPosterRouterService {
// success: true, // success: true,
// } // }
this.logger.error(`cookie not supported`); this.logger.error(`cookie not supported`);
// return { return {
// success: false, success: false,
// error: 'Cookie not supported', error: 'Cookie not supported',
// } }
} }
if (method === 'browser' && account.browser) { if (method === 'browser' && account.browser) {
return await this.browserSvc.postReply( return await this.browserSvc.postReply(