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){