作者 赵彬吉

update

... ... @@ -45,7 +45,7 @@ class postInquiry extends Command
public function handle()
{
while (true) {
$list = ReInquiryDetailLog::where('status', ReInquiryDetailLog::STATUS_INIT)->where('start_at', '<=', date('Y-m-d H:i:s'))->limit(100)->get();
$list = ReInquiryDetailLog::where('status', ReInquiryDetailLog::STATUS_INIT)->where('start_at', '<=', date('Y-m-d H:i:s'))->orderBy('id', 'asc')->limit(100)->get();
if (!$list->count()){
sleep(1);
}
... ... @@ -75,7 +75,7 @@ class postInquiry extends Command
if($last_log->status == ReInquiryDetailLog::STATUS_INIT){
continue;
}
//上一个处理完成 直接跳过
//上一个处理完成
if($last_log->status == ReInquiryDetailLog::STATUS_SUCCESS){
//上次处理时间间隔达到没
$interval = strtotime($val->start_at) - strtotime($last_log->start_at);
... ...