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