This commit is contained in:
张成
2026-02-27 17:33:39 +08:00
parent c1d812a80e
commit 1a011bcc01
12 changed files with 79 additions and 78 deletions

View File

@@ -63,7 +63,7 @@ class ActiveHandler extends BaseHandler {
const actions = activeStrategy.actions || ['view_jobs'];
const activeCommands = actions.map(action => ({
command_type: `active_${action}`,
command_name: `自动活跃 - ${action}`,
command_name: `active_${action}`,
command_params: JSON.stringify({
sn_code,
platform: platform || accountConfig.platform_type || 'boss',

View File

@@ -62,7 +62,7 @@ class ChatHandler extends BaseHandler {
// 4. 创建自动沟通 AI 指令(内部会先获取列表,再获取详情并自动回复)
const chatCommand = {
command_type: 'auto_chat_ai',
command_name: '自动沟通AI回复',
command_name: 'auto_chat_ai',
command_params: {
platform: platform || accountConfig.platform_type || 'boss',
pageCount: chatStrategy.page_count || 3

View File

@@ -201,8 +201,8 @@ class DeliverHandler extends BaseHandler {
try {
await command.executeCommands(taskId, [{
command_type: 'getOnlineResume',
command_name: '获取在线简历',
command_type: 'get_online_resume',
command_name: 'get_online_resume',
command_params: JSON.stringify({ sn_code, platform }),
priority: config.getTaskPriority('get_resume') || 5
}], this.mqttClient);
@@ -241,8 +241,8 @@ class DeliverHandler extends BaseHandler {
*/
async searchJobs(sn_code, platform, keyword, pageCount, taskId) {
const getJobListCommand = {
command_type: 'getJobList',
command_name: '获取职位列表',
command_type: 'get_job_list',
command_name: 'get_job_list',
command_params: JSON.stringify({
sn_code,
keyword,
@@ -389,7 +389,7 @@ class DeliverHandler extends BaseHandler {
createDeliverCommands(jobs, sn_code, platform) {
return jobs.map(job => ({
command_type: 'deliver_resume',
command_name: `投递简历 - ${job.jobTitle} @ ${job.companyName} (评分:${job.matchScore})`,
command_name: 'deliver_resume',
command_params: JSON.stringify({
sn_code,
platform,

View File

@@ -61,8 +61,8 @@ class SearchHandler extends BaseHandler {
// 4. 创建搜索指令
const searchCommand = {
command_type: 'getJobList',
command_name: `自动搜索职位 - ${keyword || accountConfig.keyword}`,
command_type: 'get_job_list',
command_name: 'get_job_list',
command_params: JSON.stringify({
sn_code,
keyword: keyword || accountConfig.keyword || '',