This commit is contained in:
张成
2025-12-18 13:21:30 +08:00
parent 3323b4f6b4
commit c6e2de7df4
3 changed files with 3 additions and 3 deletions

View File

@@ -209,7 +209,7 @@ class DeviceWorkStatusNotifier {
} else if (commandType === 'applyJob' || commandName.includes('投递')) { } else if (commandType === 'applyJob' || commandName.includes('投递')) {
return '投递简历'; return '投递简历';
} else if (commandType === 'searchJobs' || commandName.includes('搜索')) { } else if (commandType === 'searchJobs' || commandName.includes('搜索')) {
return `搜索职位: ${parsedParams.keyword || '默认关键词'}`; return `搜索职位: ${parsedParams.keyword || ''}`;
} else if (commandType === 'sendChatMessage' || commandName.includes('沟通')) { } else if (commandType === 'sendChatMessage' || commandName.includes('沟通')) {
return '发送消息'; return '发送消息';
} else if (commandName) { } else if (commandName) {

View File

@@ -578,7 +578,7 @@ class ScheduledJobs {
// 添加自动投递任务到队列 // 添加自动投递任务到队列
await this.taskQueue.addTask(userData.sn_code, { await this.taskQueue.addTask(userData.sn_code, {
taskType: 'auto_deliver', taskType: 'auto_deliver',
taskName: `自动投递 - ${userData.keyword || '默认关键词'}`, taskName: `自动投递 - ${userData.keyword || ''}`,
taskParams: { taskParams: {
keyword: userData.keyword || '', keyword: userData.keyword || '',
platform: userData.platform_type || 'boss', platform: userData.platform_type || 'boss',

View File

@@ -622,7 +622,7 @@ class TaskQueue {
{ where: { id: task.id } } { where: { id: task.id } }
); );
// 推送设备工作状态(任务完成)
const summary = await this.getTaskStatusSummary(task.sn_code); const summary = await this.getTaskStatusSummary(task.sn_code);
await deviceWorkStatusNotifier.sendDeviceWorkStatus(task.sn_code, summary); await deviceWorkStatusNotifier.sendDeviceWorkStatus(task.sn_code, summary);