修复cid回调判断
This commit is contained in:
parent
16f397d507
commit
edb24274e6
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue