getApplyId(); // 参数验证 if (empty($applyId)) { // ResponseFriendApplyAgree没有错误码字段,只能返回空响应 return $response; } // 调用服务同意好友申请 $result = FriendService::acceptFriendRequest($this->user_id, $applyId); // ResponseFriendApplyAgree没有返回字段,无法设置结果 // 客户端需要通过其他方式(如刷新好友列表)来确认操作结果 return $response; } }