diff --git a/hyhproject/app/model/Carts.php b/hyhproject/app/model/Carts.php index cdbb473..01c492d 100755 --- a/hyhproject/app/model/Carts.php +++ b/hyhproject/app/model/Carts.php @@ -115,7 +115,7 @@ class Carts extends CCarts{ $tm->setTable('shops'); //当前销售值 $nowSaleMoney = $tm->getSum(['userId'=>$rs['shopUserId']],'helpSaleMoney'); - if(($nowSaleMoney+$rs['shopPrice']) > $maxSaleMoney ){ + if($nowSaleMoney > $maxSaleMoney ){ exit(jsonReturn('当前助微吧商户可销售额不足!',-1)); }