Browse Source

more comment

Paul 6 years ago
parent
commit
9b4be70aaf
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      middleware/check/check.go

+ 1
- 0
middleware/check/check.go View File

@@ -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
 				}