|
|
|
@ -218,4 +218,16 @@ class Friend extends BaseController |
|
|
|
$friend->save(); |
|
|
|
return success(''); |
|
|
|
} |
|
|
|
|
|
|
|
// 获取好友备注 |
|
|
|
public function getFriendInfo() |
|
|
|
{ |
|
|
|
$friend_user_id = $this->request->param('friend_user_id'); |
|
|
|
if (empty($friend_user_id) || !is_numeric($friend_user_id)) { |
|
|
|
return error(lang('system.fail')); |
|
|
|
} |
|
|
|
$friend_user = FriendModel::getFriendName($this->uid, $friend_user_id); |
|
|
|
unset($friend_user['avatar']); |
|
|
|
return success('', $friend_user); |
|
|
|
} |
|
|
|
} |
|
|
|
|