licheb_428_2

This commit is contained in:
dengbw
2022-04-28 10:56:28 +08:00
parent 566d3a6c4d
commit 037b7ad3e0
+4 -2
View File
@@ -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'],