This commit is contained in:
2020-12-06 20:32:35 +08:00
parent 8182912f99
commit 1d8973015d
3 changed files with 7 additions and 7 deletions

View File

@ -41,8 +41,14 @@ class UserLevel extends Base
$goodsType = 3;
$sm = Model('common/SysSummary');
$sysData= $sm->getInfo('toPaySlow');
$helpSaleInfo = Db::name('user_vouchers_summary')->where(['userId'=>$userId])->find();
$helpSaleNum = 0;
if (!empty($helpSaleInfo)) {
$helpSaleNum = $helpSaleInfo['helpSaleNum'];
}
return [
'zgTimes'=>Db::name('orders')->where(compact('userId','goodsType'))->count(),
'myZgA'=>$helpSaleNum,
'zgAmounts'=>$sysData['toPaySlow'],
];
}