diff --git a/api/controllers/wxapp/licheb/Customers.php b/api/controllers/wxapp/licheb/Customers.php index 74227dcf..2d68d323 100644 --- a/api/controllers/wxapp/licheb/Customers.php +++ b/api/controllers/wxapp/licheb/Customers.php @@ -612,8 +612,10 @@ class Customers extends Wxapp $defeat = '再战'; } //查找订单未支付 - $orders_count = $this->mdOrders->count(['status' => 0, 'customer_id' => $val['id']]); - $orders_count && $orders_pay = '订单未支付'; + if ($status == 0 || $status == 1) { + $orders_count = $this->mdOrders->count(['order_time' => '0000-00-00 00:00:00', 'customer_id' => $val['id']]); + $orders_count && $orders_pay = '订单未支付'; + } $lists[] = [ 'id' => $val['id'], 'name' => $val['name'],