public static function getMemberInfo($user_id,$field){ $userInfo=Api::run('getMemberInfo',$user_id); return $userInfo[$field]; }
1.在class/common.php文件中,插入以上代码
2.调用方法,在html模板中,使用{echo:lm::getMemberInfo($this->user['user_id'],'username')}进行调用
public static function getMemberInfo($user_id,$field){ $userInfo=Api::run('getMemberInfo',$user_id); return $userInfo[$field]; }
1.在class/common.php文件中,插入以上代码
2.调用方法,在html模板中,使用{echo:lm::getMemberInfo($this->user['user_id'],'username')}进行调用
转载于:https://www.cnblogs.com/iwebshop/p/5387604.html