diff --git a/uniCloud/cloudfunctions/uni-im-co/msg.js b/uniCloud/cloudfunctions/uni-im-co/msg.js index de9d75c6979e819534171193707734cf5a29424d..d74c142613bdcfe4a25caed2fabb0781ba8d4e6e 100644 --- a/uniCloud/cloudfunctions/uni-im-co/msg.js +++ b/uniCloud/cloudfunctions/uni-im-co/msg.js @@ -133,7 +133,11 @@ async function sendMsg(params) { nickname = userInfo.nickname avatar_file = userInfo.avatar_file } else { - console.error('用户信息不存在',from_uid); + return { + "code": 30202, + "errCode": "uni-id-check-token-failed", + "errMsg": "请重新登录" + } } }