From 502dc6bb70e302724dafa7b5026bfae5d4aa9274 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Mon, 14 Dec 2020 22:12:12 +0800 Subject: [PATCH] 0 --- hyhproject/common/model/UserVouchers.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hyhproject/common/model/UserVouchers.php b/hyhproject/common/model/UserVouchers.php index 1fc9903..381308a 100755 --- a/hyhproject/common/model/UserVouchers.php +++ b/hyhproject/common/model/UserVouchers.php @@ -98,6 +98,7 @@ TXT; $time = time(); $LOG .= "=============开始循环=============".PHP_EOL; foreach ($list as &$v) { + if ($v['userId'] == 0) continue; $LOG .= "===========当前用户#【{$v['userId']}】==========".PHP_EOL; $LOG .= "当前用户预获优惠券:{$v['expectedCouponsNum']};预获产品券:{$v['expectedProductNum']}".PHP_EOL; unset($data); @@ -198,6 +199,7 @@ TXT; $data = Db::name('user_vouchers_summary')->whereOr(["helpSaleNum"=>["lt", 0]])->whereOr(["expectedProductNum"=>["lt", 0]])->select(); $LOG .= "=============开始循环=============".PHP_EOL; foreach ($data as $_each){ + if ($_each['userId'] == 0) continue; $LOG .= "===========当前用户#【{$_each['userId']}】==========".PHP_EOL; $LOG .= "当前用户预获优惠券:{$_each['expectedCouponsNum']};预获产品券:{$_each['expectedProductNum']};助购券值:{$_each["helpSaleNum"]}".PHP_EOL; if($_each["expectedProductNum"]<0){