|
function getFriendStatus(dwFriendUserId){
var list =BRAC_GetUserFriends();
var errorcode = BRAC_GetFriendStatus(dwFriendUserId);
return errorcode==1?true:false;
}
下面是服务器的同步加好友实现(web登录成功全给web加好友并同步给web)
for(OnlineUser u : list){
AnyChatServerSDK.UserInfoControl(house.getAcUserId(), AnyChatServerSDK.BRAS_USERINFO_CTRLCODE_ADDFRIEND, u.getAcUserId(), 0, "");
}
AnyChatServerSDK.UserInfoControl(house.getAcUserId(), AnyChatServerSDK.BRAS_USERINFO_CTRLCODE_SYNCDATA, 0, 0, "");
app注销时,同步给web
int err2 = AnyChatServerSDK.UserInfoControl(house.getAcUserId(), AnyChatServerSDK.BRAS_USERINFO_CTRLCODE_SYNCDATA, 0, 0, ""); |
|