iwebshop获取会员任意字段信息

    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')}进行调用

posted on 2016-04-13 16:20  于和平工作室  阅读(116)  评论(0编辑  收藏  举报