You've already forked qlg.tsgz.moe
注册
This commit is contained in:
@ -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'],
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user