This commit is contained in:
Jerry Yan 2020-12-06 22:41:47 +08:00
parent ea9079d94b
commit 33b64c6955

View File

@ -46,8 +46,11 @@ class UserLevel extends Base
if (!empty($helpSaleInfo)) {
$helpSaleNum = $helpSaleInfo['helpSaleNum'];
}
$zgTimes = Db::name('orders')->where(compact('userId','goodsType'))->count();
if ($zgTimes <= 0) $zgTimes = 1;
if ($helpSaleNum <= 0) $helpSaleNum = 1;
return [
'zgTimes'=>Db::name('orders')->where(compact('userId','goodsType'))->count(),
'zgTimes'=>$zgTimes,
'myZgA'=>$helpSaleNum,
'zgAmounts'=>$sysData['toPaySlow'],
];