Closed CooperFu closed 5 years ago
第四个问题的补充说明
// 添加好友
this.addFriend = (loginedId, account, content) => __awaiter(this, void 0, void 0, function* () {
config_1.log.silly(PRE, `addFriend(${loginedId}, ${account}, ${content})`);
const data = {
account: account,
content: content,
my_account: loginedId,
};
const res = yield this.requestClient.request({
apiName: 'addFriend',
data,
});
config_1.log.silly(PRE, `res : ${JSON.stringify(res)}`);
if (res.code === schemas_1.RequestStatus.Success) {
return schemas_1.RequestStatus.Success;
}
else {
return schemas_1.RequestStatus.Fail;
}
});
这里的 res 没有之前的payload 实例了
roomCreate,拉群成功,但是会存在以下三个问题
在进行登录、发送和接收群聊消息等操作时,控制台会间接性的报错:UnhandledPromiseRejectionWarning: Error: can not get data from transmit server
登录二维码扫描后,手机端不显示「Mac 微信已登录」提示
如何才能拿到添加的好友 payload 实例