新增被顶号检测: km-modal弹窗+精确文案+重登按钮三重判定, 命中即停任务+群告警(kicked_out状态)
This commit is contained in:
@@ -117,6 +117,7 @@ function maybeSendReport(myStatus, chatLeft) {
|
||||
} catch (e) { log(`日报生成/发送失败: ${String(e.message).slice(0, 150)}`); }
|
||||
}
|
||||
function statusText(s) {
|
||||
if (s === 'kicked_out') return '🚨 被顶号(他处登录)';
|
||||
if (s === 'login_expired') return '🚨 登录失效';
|
||||
if (s === 'alert') return '⚠️ 异常中止';
|
||||
if (s === 'chat_exhausted') return '✅ 聊天耗尽收工';
|
||||
@@ -152,6 +153,12 @@ function statusText(s) {
|
||||
|
||||
const { code, out } = await runBatch();
|
||||
|
||||
// 被顶号(账号在其他设备登录)→ 群告警,立即结束(2026-08-27)
|
||||
if (/账号被顶/.test(out)) {
|
||||
send(GROUP, `🚨 ${ACCT}(${ACCT === 'hr1' ? 'Chrome·合塑账号' : 'Edge·派卡账号'})被其他人登录了(账号在其他设备/浏览器登录,当前已退出),任务停止。如非本人操作请注意账号安全`);
|
||||
maybeSendReport('kicked_out', lastChatLeft);
|
||||
break;
|
||||
}
|
||||
// 登录失效 → 群告警,结束
|
||||
if (/登录已失效|passport\.zhaopin\.com/.test(out)) {
|
||||
send(GROUP, `🚨 ${ACCT}(${ACCT === 'hr1' ? 'Chrome·合塑账号' : 'Edge·派卡账号'})智联登录态已失效,今日筛选中止,请在任务机重新登录智联`);
|
||||
|
||||
Reference in New Issue
Block a user