Ver código fonte

more comment

Paul 6 anos atrás
pai
commit
9b4be70aaf
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1
    0
      middleware/check/check.go

+ 1
- 0
middleware/check/check.go Ver arquivo

@@ -53,6 +53,7 @@ func CodeAnalysis() gin.HandlerFunc {
53 53
 			}
54 54
 
55 55
 			if !ew.successful() {
56
+				// 对返回的错误信息格式进行代码检测
56 57
 				if len(rps) != 1 || rps["msg"] == "" {
57 58
 					panic(fmt.Sprintf("you need return %s but, %s", `{"msg":"content can't empty'"}`, string(ew.data)))
58 59
 				}