主要拿到userid
$_username = param::get_cookie('_username');//当前登录人用户名 $_userid = param::get_cookie('_userid');//当然登录人id
<img id="user-avatar" src="{get_memberavatar($_userid,1,90)}" width="40" height="40" onerror="this.src='{$phpsso_api_url}/statics/images/member/nophoto.gif'">
ok 解决