如果用户不存在把它干了
This commit is contained in:
parent
2d19864f47
commit
caeb0d917c
@ -43,6 +43,9 @@ class UserTrees extends Base
|
|||||||
|
|
||||||
public static function checkUserCanDisplay($userId){
|
public static function checkUserCanDisplay($userId){
|
||||||
if($userId == 1)return true;
|
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();
|
$data = Db::name("user_vouchers_summary")->where(compact('userId'))->find();
|
||||||
if($data===null){$userHelpGet=0;}
|
if($data===null){$userHelpGet=0;}
|
||||||
else{$userHelpGet = (float)$data['helpSaleNum'];}
|
else{$userHelpGet = (float)$data['helpSaleNum'];}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user