U
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user