This commit is contained in:
张成
2026-02-28 13:31:32 +08:00
parent dfd3119163
commit 58c9d64e55
6 changed files with 163 additions and 33 deletions

View File

@@ -486,6 +486,23 @@ class PlaAccountService {
finalParams.keyword = account.keyword;
}
// get_job_list 从 resume_info 取 deliver_tab_label 作为 tabLabel 参数
if (commandTypeSnake === 'get_job_list') {
try {
const resume_info = db.getModel('resume_info');
const resume = await resume_info.findOne({
where: { sn_code: account.sn_code, platform: account.platform_type, isActive: true },
order: [['last_modify_time', 'DESC']],
attributes: ['deliver_tab_label']
});
if (resume && resume.deliver_tab_label) {
finalParams.tabLabel = String(resume.deliver_tab_label).trim();
}
} catch (e) {
console.warn('[pla_account_service] 读取 resume_info.deliver_tab_label 失败:', e.message);
}
}
// 构建指令对象(与前端/后端/下发统一:只用一个名字 command_type
const command = {
command_type: commandTypeSnake,