好友删除和好友验证设置
warning:
这篇文章距离上次修改已过698天,其中的内容可能已经有所变动。
user_deletefriend.php //好友删除接口
//参数
$hisUid = intval($_POST['hisUid']); //必选
$token = strtoupper($_POST["token"]);//必选
$sign = strtoupper($_POST["sign"]);//必选
//返回值
{
"ret": "888",
"msg": "删除好友['.$hisName.'('.$hisUid.')]成功!"
}
user_getfriendset.php//获取指定uid好友设置
//参数
$hisUid = intval($_POST['hisUid']); //必选 根据指定uid获取好友设置 $token = strtoupper($_POST["token"]);//必选 $sign = strtoupper($_POST["sign"]);//必选
//返回值
{
"ret": "888",
"msg": "ok",
"uid": "10000",
"addconfig": "1" //0需要验证,1拒加所有人,2允许所有人加
}user_friendset.php//设置我的好友设置
//参数
$addconfig = intval($_POST["addconfig"]); //int 必选 0需要验证,1拒加所有人,2允许所有人加 $token = strtoupper($_POST["token"]); $sign = strtoupper($_POST["sign"]);
//返回值
{ "ret": "888", "msg": $addconfigname."修改成功'"}