浏览代码

Fix bug: print error log in success.

ZRY 1 年之前
父节点
当前提交
1336d87c8e
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      zllauth_gin/gin_handler.go

+ 3 - 3
zllauth_gin/gin_handler.go

@@ -212,9 +212,6 @@ func (h *ZLLAuthGinHandler) HandlingOtherEncryptedRequest(ctx *gin.Context, v in
 		return
 	}
 	ve, ie := h.zllhdl.HandlingOtherEncryptedRequest(jdata.LoginData, v)
-	if h.elh != nil {
-		h.elh.HandlingOtherEncryptedRequestFailed(ctx.Request, ve, ie)
-	}
 	if ve == zllauth1.LFT_SUCCESS {
 		isOK = true
 		next = func(returnData interface{}) {
@@ -225,6 +222,9 @@ func (h *ZLLAuthGinHandler) HandlingOtherEncryptedRequest(ctx *gin.Context, v in
 		}
 		return
 	}
+	if h.elh != nil {
+		h.elh.HandlingOtherEncryptedRequestFailed(ctx.Request, ve, ie)
+	}
 	switch ve {
 	case zllauth1.LFT_DECODE_HEX_FAIL:
 		{