Commit fb3ec5eb by 冷斌

fix bug

parent a93d1e75
...@@ -41,6 +41,16 @@ class Model_User extends PhalApi_Model_NotORM ...@@ -41,6 +41,16 @@ class Model_User extends PhalApi_Model_NotORM
list($type, $familyId) = $this->getFamilyRole($uid); list($type, $familyId) = $this->getFamilyRole($uid);
$info['family_type'] = $type; $info['family_type'] = $type;
$image = DI()->notorm->users_live_image
->where('uid=?', $uid)
->fetchOne();
$avatar = '';
if (!empty($image) && $image['status'] == 1) {
$avatar = $image['thumb'];
}
$avatar = get_upload_path($avatar);
$info['live_avatar'] = $avatar;
} }
return $info; return $info;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment