function sendMsg($uin,$msg)
{
//发送消息
//VER=1.1&CMD=CLTMSG&SEQ=&UIN=&UN=&MG=
$str = "VER=1.1&CMD=CLTMSG&SEQ=".rand(1000,9000)."&UIN=".$this->uin."&UN=".$uin."&MG=".$this->gb2312_to_utf8($msg);
$return = $this->encode($this->query($str));
if($return['RES']==0 and $return['UIN'] == $this->uin)
{
//服务器成功得到信息
return QQ_RETURN_SUCCESS;
}
else
{
//失败
return QQ_RETURN_FAILED;
}
}
朋友网关于QQ相关的PHP代码(研究QQ的绝佳资料)(8)
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:http://www.heiqu.com/e7cf048b808aaaaf76e4422e219f844a.html