Paul il y a 6 ans
Parent
révision
9b4be70aaf
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1
    0
      middleware/check/check.go

+ 1
- 0
middleware/check/check.go Voir le fichier

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