diff --git a/hyhproject/app/controller/UserLevel.php b/hyhproject/app/controller/UserLevel.php index b6ed409..f9fc6d4 100755 --- a/hyhproject/app/controller/UserLevel.php +++ b/hyhproject/app/controller/UserLevel.php @@ -39,9 +39,11 @@ class UserLevel extends Base { $userId = get_my_id(); $goodsType = 3; + $sm = Model('common/SysSummary'); + $sysData= $sm->getInfo('toPaySlow'); return [ 'zgTimes'=>Db::name('orders')->where(compact('userId','goodsType'))->count(), - 'zgAmounts'=>Db::name('orders')->where(compact('userId','goodsType'))->sum('helpGetCount'), + 'zgAmounts'=>$sysData['toPaySlow'], ]; }