From a3e6a9ac0e2dd1eef00a3fbb9d5cad368b21af1d Mon Sep 17 00:00:00 2001 From: withchao <48119764+withchao@users.noreply.github.com> Date: Mon, 7 Aug 2023 11:58:29 +0800 Subject: [PATCH] fix: im api UserToken error non-responsive body (#125) --- internal/api/chat.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/api/chat.go b/internal/api/chat.go index baf63ff7..c25cf079 100644 --- a/internal/api/chat.go +++ b/internal/api/chat.go @@ -163,6 +163,7 @@ func (o *ChatApi) Login(c *gin.Context) { } imToken, err := o.imApiCaller.UserToken(c, resp1.UserID, req.Platform) if err != nil { + apiresp.GinError(c, err) return } resp.ImToken = imToken