作者 赵彬吉
@@ -359,9 +359,8 @@ class RelayInquiry extends Command @@ -359,9 +359,8 @@ class RelayInquiry extends Command
359 $this->output('转发内容'); 359 $this->output('转发内容');
360 $message = $form->message; 360 $message = $form->message;
361 $message_id = 0; 361 $message_id = 0;
362 - //开启文案替换  
363 - if($task['is_replace_text']) {  
364 - // 通过字符数量区分, 改成完全获取内置询盘内容 362 + //开启文案替换 配置替换或者字符少于4个,直接替换文案
  363 + if($task['is_replace_text'] || strlen($message) <= 4) {
365 $use_ids = ReInquiryDetail::where(['re_website' => $domain])->where('status', '<>', ReInquiryDetail::STATUS_FAIL)->pluck('text_id')->toArray(); 364 $use_ids = ReInquiryDetail::where(['re_website' => $domain])->where('status', '<>', ReInquiryDetail::STATUS_FAIL)->pluck('text_id')->toArray();
366 $text = ReInquiryText::whereNotIn('id', $use_ids)->where('status', ReInquiryText::STATUS_USABLE)->inRandomOrder()->first(); 365 $text = ReInquiryText::whereNotIn('id', $use_ids)->where('status', ReInquiryText::STATUS_USABLE)->inRandomOrder()->first();
367 $message = $text->content; 366 $message = $text->content;