车辆已下架
This commit is contained in:
@@ -163,7 +163,10 @@ class UsedCarController extends BaseController
|
|||||||
|
|
||||||
return $this->success($data);
|
return $this->success($data);
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
return $this->error($e->getMessage().'|'.$e->getLine().$e->getFile().$e->getTraceAsString());
|
if (str_contains($e->getMessage(), '404 Not Found')){
|
||||||
|
return $this->error('车辆已下架或找不到页面');
|
||||||
|
}
|
||||||
|
return $this->error($e->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user