|
tencentIM添加好友错误代码 30001/请求参数错误
请问 不是就传一个ID吗? 我还少啥参数?
var tencentIm = api.require('tencentIm');
tencentIm.addFriend({
identifier: _this.hist.mid, //好友ID
remake: '',
addWording: '',
addSource: '',
friendGroup: '',
}, function (ret, err) {
if (ret) {
console.log('--------------- -------'+JSON.stringify(ret));
if (ret.status == true) {
api.openWin({
name: 'chat',
url: './chat.html',
pageParam: {
name: _this.hist.mid
}
});
}
} else {
// alert(JSON.stringify(err));
}
});
--打印 --------------- -------{"status":true,"identifier":"1003","resultCode":30001} at details.html : 333
|
|