This commit is contained in:
Jerry Yan 2020-12-06 22:56:24 +08:00
parent 0a13418fd4
commit 15a9db8e6e

View File

@ -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,