From d22116f1606a6122ad61780f830e41f718b25f6f Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Wed, 2 Dec 2020 10:41:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E8=BD=AC=E6=8D=A2=E9=80=80=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hyhproject/common/model/UserVouchers.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hyhproject/common/model/UserVouchers.php b/hyhproject/common/model/UserVouchers.php index 8f5fad5..436d1c3 100755 --- a/hyhproject/common/model/UserVouchers.php +++ b/hyhproject/common/model/UserVouchers.php @@ -90,11 +90,10 @@ class UserVouchers extends Base{ $toSlowNum = round($personNum * ($v['expectedProductNum'] + $v['expectedCouponsNum']),2); $sm->addSysSummary(0,$toSlowNum,1,'用户ID['.$v['userId'].']双预获券都小于15/日转换退回'); continue; - } - if($v['expectedProductNum'] < $minNumer){//预获产品券小于15; + }else if($v['expectedProductNum'] <= $minNumer){//预获产品券小于15; $personAlreadyProductNum = 0; $personAlreadyCouponsNum = round($personNum * ($v['expectedProductNum'] + $v['expectedCouponsNum']),2); - }else if($v['expectedCouponsNum'] < $minNumer){//预获优惠券小于15 + }else if($v['expectedCouponsNum'] <= $minNumer){//预获优惠券小于15 $personAlreadyCouponsNum = 0; $personAlreadyProductNum = round($personNum * ($v['expectedProductNum'] + $v['expectedCouponsNum']),2); }else{//都大于15