作者 赵彬吉

update

@@ -95,6 +95,7 @@ class postInquiry extends Command @@ -95,6 +95,7 @@ class postInquiry extends Command
95 $log->save(); 95 $log->save();
96 96
97 Log::channel('inquiry_relay')->error('inquiry_relay visit error', [$res, $detail['re_website'] . 'api/traffic_visit/',$data]); 97 Log::channel('inquiry_relay')->error('inquiry_relay visit error', [$res, $detail['re_website'] . 'api/traffic_visit/',$data]);
  98 + return false;
98 } 99 }
99 }else{ 100 }else{
100 //v4 v5分离项目 往测试链接推 101 //v4 v5分离项目 往测试链接推
@@ -123,8 +124,12 @@ class postInquiry extends Command @@ -123,8 +124,12 @@ class postInquiry extends Command
123 $log->save(); 124 $log->save();
124 125
125 Log::channel('inquiry_relay')->error('inquiry_relay v4|v5 visit error', [$res, $website . 'wp-admin/admin-ajax.php', $data]); 126 Log::channel('inquiry_relay')->error('inquiry_relay v4|v5 visit error', [$res, $website . 'wp-admin/admin-ajax.php', $data]);
  127 + return false;
126 } 128 }
127 } 129 }
  130 + $log->status = ReInquiryDetailLog::STATUS_SUCCESS;
  131 + $log->save();
  132 + return true;
128 } 133 }
129 134
130 public function inquiry(ReInquiryDetail $detail, ReInquiryDetailLog $log){ 135 public function inquiry(ReInquiryDetail $detail, ReInquiryDetailLog $log){
@@ -175,6 +180,8 @@ class postInquiry extends Command @@ -175,6 +180,8 @@ class postInquiry extends Command
175 return false; 180 return false;
176 } 181 }
177 } 182 }
  183 + $log->status = ReInquiryDetailLog::STATUS_SUCCESS;
  184 + $log->save();
178 return true; 185 return true;
179 } 186 }
180 187