From a011da60a7adc70ec67523445bba6c0a90b9fcbf Mon Sep 17 00:00:00 2001 From: dengbw Date: Thu, 28 Apr 2022 11:50:45 +0800 Subject: [PATCH] licheb_428_4 --- api/controllers/wxapp/licheb/Customers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/controllers/wxapp/licheb/Customers.php b/api/controllers/wxapp/licheb/Customers.php index 2d68d323..376858b4 100644 --- a/api/controllers/wxapp/licheb/Customers.php +++ b/api/controllers/wxapp/licheb/Customers.php @@ -613,7 +613,7 @@ class Customers extends Wxapp } //查找订单未支付 if ($status == 0 || $status == 1) { - $orders_count = $this->mdOrders->count(['order_time' => '0000-00-00 00:00:00', 'customer_id' => $val['id']]); + $orders_count = $this->mdOrders->count(['status' => 0, 'order_time' => '0000-00-00 00:00:00', 'customer_id' => $val['id']]); $orders_count && $orders_pay = '订单未支付'; } $lists[] = [