1
This commit is contained in:
@@ -209,7 +209,7 @@ class DeviceWorkStatusNotifier {
|
||||
} else if (commandType === 'applyJob' || commandName.includes('投递')) {
|
||||
return '投递简历';
|
||||
} else if (commandType === 'searchJobs' || commandName.includes('搜索')) {
|
||||
return `搜索职位: ${parsedParams.keyword || '默认关键词'}`;
|
||||
return `搜索职位: ${parsedParams.keyword || ''}`;
|
||||
} else if (commandType === 'sendChatMessage' || commandName.includes('沟通')) {
|
||||
return '发送消息';
|
||||
} else if (commandName) {
|
||||
|
||||
@@ -578,7 +578,7 @@ class ScheduledJobs {
|
||||
// 添加自动投递任务到队列
|
||||
await this.taskQueue.addTask(userData.sn_code, {
|
||||
taskType: 'auto_deliver',
|
||||
taskName: `自动投递 - ${userData.keyword || '默认关键词'}`,
|
||||
taskName: `自动投递 - ${userData.keyword || ''}`,
|
||||
taskParams: {
|
||||
keyword: userData.keyword || '',
|
||||
platform: userData.platform_type || 'boss',
|
||||
|
||||
@@ -622,7 +622,7 @@ class TaskQueue {
|
||||
{ where: { id: task.id } }
|
||||
);
|
||||
|
||||
|
||||
// 推送设备工作状态(任务完成)
|
||||
const summary = await this.getTaskStatusSummary(task.sn_code);
|
||||
await deviceWorkStatusNotifier.sendDeviceWorkStatus(task.sn_code, summary);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user