This commit is contained in:
张成
2025-12-29 21:07:52 +08:00
parent 8fa06435a9
commit 5035b9aa72
4 changed files with 134 additions and 18 deletions

View File

@@ -474,7 +474,7 @@ class TaskHandlers {
for (const jobData of jobsToDeliver) {
console.log(`[任务处理器] 准备投递职位: ${jobData.jobTitle} @ ${jobData.companyName}, 评分: ${jobData.matchScore}`, jobData.scoreDetails);
deliverCommands.push({
command_type: 'applyJob',
command_type: 'deliver_resume', // 与MQTT Action保持一致
command_name: `投递简历 - ${jobData.jobTitle} @ ${jobData.companyName} (评分:${jobData.matchScore})`,
command_params: JSON.stringify({
sn_code: sn_code,
@@ -660,11 +660,11 @@ class TaskHandlers {
sequence: 1
};
} else {
// 使用多条件搜索指令
// 使用多条件搜索指令新的指令类型使用新的MQTT action
searchCommand = {
command_type: 'search_jobs_with_params',
command_type: 'search_jobs_with_params', // 新的指令类型
command_name: '多条件搜索职位列表',
command_params: JSON.stringify(searchCommandParams),
command_params: JSON.stringify(searchCommandParams), // 包含多条件参数
priority: config.getTaskPriority('search_jobs_with_params') || 5,
sequence: 1
};