作者 zhl

修改过期时间72小时, 询盘内容完全使用内置文案

@@ -179,9 +179,9 @@ class RelayInquiry extends Command @@ -179,9 +179,9 @@ class RelayInquiry extends Command
179 foreach ($inquiry as $key=>$val) { 179 foreach ($inquiry as $key=>$val) {
180 $this->output('询盘ID:' . $val->id); 180 $this->output('询盘ID:' . $val->id);
181 //询盘时间超过2小时 就不处理了 181 //询盘时间超过2小时 就不处理了
182 - if(time() - strtotime($val->inquiry_date) > 7200){ 182 + if(time() - strtotime($val->inquiry_date) > 259200){
183 $val->status = ReInquiryForm::STATUS_FORGO; 183 $val->status = ReInquiryForm::STATUS_FORGO;
184 - $val->remark = '超时2小时未处理!'; 184 + $val->remark = '超时72小时未处理!';
185 $val->save(); 185 $val->save();
186 continue; 186 continue;
187 } 187 }
@@ -355,7 +355,8 @@ class RelayInquiry extends Command @@ -355,7 +355,8 @@ class RelayInquiry extends Command
355 // 推送消息 消息内容小于10个字符, 使用内置询盘内容 355 // 推送消息 消息内容小于10个字符, 使用内置询盘内容
356 $message = $form->message; 356 $message = $form->message;
357 $message_id = 0; 357 $message_id = 0;
358 - if (strlen($message) < 10) { 358 + // 通过字符数量区分, 改成完全获取内置询盘内容
  359 + if (true) {
359 $use_ids = ReInquiryDetail::where(['re_website' => $domain])->where('status', '<>', ReInquiryDetail::STATUS_FAIL)->pluck('text_id')->toArray(); 360 $use_ids = ReInquiryDetail::where(['re_website' => $domain])->where('status', '<>', ReInquiryDetail::STATUS_FAIL)->pluck('text_id')->toArray();
360 $text = ReInquiryText::whereNotIn('id', $use_ids)->where('status', ReInquiryText::STATUS_USABLE)->inRandomOrder()->first(); 361 $text = ReInquiryText::whereNotIn('id', $use_ids)->where('status', ReInquiryText::STATUS_USABLE)->inRandomOrder()->first();
361 $message = $text->content; 362 $message = $text->content;