From 4991aa634790e69f96c6c7cb001b22a3eca4fecb Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 6 Dec 2020 22:53:22 +0800 Subject: [PATCH] xxx --- hyhproject/app/controller/UserLevel.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/hyhproject/app/controller/UserLevel.php b/hyhproject/app/controller/UserLevel.php index 51d5918..c45ee09 100755 --- a/hyhproject/app/controller/UserLevel.php +++ b/hyhproject/app/controller/UserLevel.php @@ -41,11 +41,7 @@ class UserLevel extends Base $goodsType = 3; $sm = Model('common/SysSummary'); $sysData= $sm->getInfo('toPaySlow'); - $helpSaleInfo = Db::name('orders')->where(compact('userId','goodsType'))->where('payable', '>',0)->sum('payable'); - $helpSaleNum = 0; - if (!empty($helpSaleInfo)) { - $helpSaleNum = $helpSaleInfo['helpSaleNum']; - } + $helpSaleNum = Db::name('orders')->where(compact('userId','goodsType'))->where('payable', '>',0)->sum('payable'); $zgTimes = Db::name('orders')->where(compact('userId','goodsType'))->count(); if ($zgTimes <= 0) $zgTimes = 1; if ($helpSaleNum <= 0) $helpSaleNum = 1;