From 08210daa865bdba940d86cf52e2bffa41a52c5bd Mon Sep 17 00:00:00 2001 From: linju Date: Thu, 14 Nov 2024 11:35:08 +0800 Subject: [PATCH] Update msg.js --- uniCloud/cloudfunctions/uni-im-co/msg.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/uniCloud/cloudfunctions/uni-im-co/msg.js b/uniCloud/cloudfunctions/uni-im-co/msg.js index de9d75c..d74c142 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": "请重新登录" + } } } -- GitLab