作者 何书鹏

删除订单不显示

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