From 037b7ad3e0ea96cc80ccae14a741e210252e9201 Mon Sep 17 00:00:00 2001 From: dengbw Date: Thu, 28 Apr 2022 10:56:28 +0800 Subject: [PATCH] licheb_428_2 --- api/controllers/wxapp/licheb/Customers.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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'],