diff --git a/hyhproject/app/controller/UserLevel.php b/hyhproject/app/controller/UserLevel.php index c45ee09..59a76f2 100755 --- a/hyhproject/app/controller/UserLevel.php +++ b/hyhproject/app/controller/UserLevel.php @@ -43,8 +43,8 @@ class UserLevel extends Base $sysData= $sm->getInfo('toPaySlow'); $helpSaleNum = Db::name('orders')->where(compact('userId','goodsType'))->where('payable', '>',0)->sum('payable'); $zgTimes = Db::name('orders')->where(compact('userId','goodsType'))->count(); - if ($zgTimes <= 0) $zgTimes = 1; - if ($helpSaleNum <= 0) $helpSaleNum = 1; + $zgTimes += 1; + $helpSaleNum += 1; return [ 'zgTimes'=>$zgTimes, 'myZgA'=>$helpSaleNum,