2222
This commit is contained in:
parent
0a13418fd4
commit
15a9db8e6e
@ -43,8 +43,8 @@ class UserLevel extends Base
|
|||||||
$sysData= $sm->getInfo('toPaySlow');
|
$sysData= $sm->getInfo('toPaySlow');
|
||||||
$helpSaleNum = Db::name('orders')->where(compact('userId','goodsType'))->where('payable', '>',0)->sum('payable');
|
$helpSaleNum = Db::name('orders')->where(compact('userId','goodsType'))->where('payable', '>',0)->sum('payable');
|
||||||
$zgTimes = Db::name('orders')->where(compact('userId','goodsType'))->count();
|
$zgTimes = Db::name('orders')->where(compact('userId','goodsType'))->count();
|
||||||
if ($zgTimes <= 0) $zgTimes = 1;
|
$zgTimes += 1;
|
||||||
if ($helpSaleNum <= 0) $helpSaleNum = 1;
|
$helpSaleNum += 1;
|
||||||
return [
|
return [
|
||||||
'zgTimes'=>$zgTimes,
|
'zgTimes'=>$zgTimes,
|
||||||
'myZgA'=>$helpSaleNum,
|
'myZgA'=>$helpSaleNum,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user