This commit is contained in:
NAME
2026-05-13 02:18:31 +00:00
parent d6220c828e
commit b4be37fbe7
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ export class SqsPosterWorker {
await this.notifyService.sendMessageToTele(`🚀 Worker started for ${await this.sqs.getQueueName()}`)
//check cookie
this.xRouterService.verifyCookie().catch((err) => {
this.xRouterService.verifyCookie().catch((err) => {
console.error(`SqsPosterWorker_verifyCookie`);
console.error(err);
});
+6 -2
View File
@@ -69,7 +69,10 @@ export class XPosterRouterService {
await this.notifyService.sendUrgentMessageToTele('❌Cookie đã hết hạn vui lòng cập nhập để sử dụng.')
}
await this.xCacheService.setStateXCookiesIsSillALive();
this.notifyService.sendMessageToTele('✅Verify cookie pass').catch((err) => {})
this.notifyService.sendMessageToTele('✅Verify cookie pass').catch((err) => {
});
return isAlive;
}
async canUseXCookies(): Promise<boolean> {
@@ -295,7 +298,8 @@ export class XPosterRouterService {
}
}
if (method === 'cookie' && account.cookie) {
return await this.cookieSvc.createTweet(account.cookie, text);
return {success: false, error: `Method ${method} not implemented`};
// return await this.cookieSvc.createTweet(account.cookie, text);
}
if (method === 'browser' && account.browser) {
return await this.browserSvc.postTweet(account.browser, text);