From edb24274e62e6e5c451c72b097b935366c898b73 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Sun, 4 Aug 2024 21:27:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dcid=E5=9B=9E=E8=B0=83?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/cid.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/handler/cid.go b/handler/cid.go index 7c3ac65..aebc57e 100644 --- a/handler/cid.go +++ b/handler/cid.go @@ -178,6 +178,10 @@ func CIDCallback(c *gin.Context) { return } res := dao.FindCIDByIDAndToken(cid, token) + if res.ID == 0 { + c.JSON(200, gin.H{"error": "CID not found by id and token", "code": proto.OperationFailed, "message": "failed"}) + return + } user := dao.FindUserByUserID(res.Auth_id) if user.Run == false {