息提示');
return false;
}
$.ajax({
type : 'get',
url : url,
data : {'op' : 'add', 'fuid' : fuid , 'random' : dom()},
success : function(msg){
if(msg == -1){
shoErrorMsg('参数错误!','消息提示');
} else if (msg == -2){
shoErrorMsg('添加好友失败,没有该用户的信息!','消息提示');
} else if (msg == -3){
shoErrorMsg('添加好友失败,你不能添加自己为好友!','消息提示');
} else if (msg == -4){
shoErrorMsg('添加好友未知错误,该错误已被记录!','消息提示');
} else if (msg == -5){
shoErrorMsg('添加好友失败,你之前已经发送过好友请求,请耐心等待对方同意申请!','消息提示');
} else if (msg == -6){
shoErrorMsg('添加好友失败,你们已经是好友了!','消息提示');
} else {
$.cover(true);
({
id : 'addFriend',
title : '添加好友',
url : url,
data : {'op' : 'add', 'fuid' : fuid , 'random' : dom()},
idth : 490,
height : 180,
scroll : 'no',
callback : function(action) {
if (action == 'close'){
$.cover(false);
}
}
});
}
}
});
}
//发送短消息
function postMessage(msguid, url){
if(msguid == '' || == 0){
shoErrorMsg('缺少参数!','信息提示');
return false;
}
$.ajax({
type : 'post',
url : url,
data : {'op' : 'ajaxpost', 'msguid' : msguid , 'random' : dom()},
success : function(msg){
if(msg == -1){
shoErrorMsg('发送失败,缺少收件人对象!','消息提示');
} else if(msg == -2){
shoErrorMsg('发送失败,自己不能给自己发送短消息!'
-->>(第2/8页)(本章未完,请点击下一页继续阅读)