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