作者 何书鹏

删除订单不显示

@@ -774,7 +774,8 @@ class Order extends Base @@ -774,7 +774,8 @@ class Order extends Base
774 $name = $this->model->getQuery()->getTable(); 774 $name = $this->model->getQuery()->getTable();
775 $tableName = $name . '.'; 775 $tableName = $name . '.';
776 776
777 - $orders = $this->model->withTrashed(); 777 +// $orders = $this->model->withTrashed();
  778 + $orders = $this->model;
778 779
779 if ($nickname || $mobile) { 780 if ($nickname || $mobile) {
780 $orders = $orders->whereExists(function ($query) use ($nickname, $mobile, $tableName) { 781 $orders = $orders->whereExists(function ($query) use ($nickname, $mobile, $tableName) {