From caeb0d917c6125333dce35c28dc69b24d137ddd5 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Tue, 29 Oct 2019 23:02:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A6=82=E6=9E=9C=E7=94=A8=E6=88=B7=E4=B8=8D?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E6=8A=8A=E5=AE=83=E5=B9=B2=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hyhproject/common/model/UserTrees.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hyhproject/common/model/UserTrees.php b/hyhproject/common/model/UserTrees.php index 07e8407..812e63b 100755 --- a/hyhproject/common/model/UserTrees.php +++ b/hyhproject/common/model/UserTrees.php @@ -43,6 +43,9 @@ class UserTrees extends Base public static function checkUserCanDisplay($userId){ if($userId == 1)return true; + $user = (new \wstmart\app\model\Users())->getUserInfo($userId, 'dataFlag'); + if($user===null)return false; + if($user['dataFlag']!='1')return false; $data = Db::name("user_vouchers_summary")->where(compact('userId'))->find(); if($data===null){$userHelpGet=0;} else{$userHelpGet = (float)$data['helpSaleNum'];}