fix
This commit is contained in:
		
							parent
							
								
									f1a968c3a2
								
							
						
					
					
						commit
						3c0e3e4e6a
					
				| 
						 | 
					@ -68,12 +68,13 @@ func ValidateRequest() gin.HandlerFunc {
 | 
				
			||||||
			utils.Log(c, "path", path)
 | 
								utils.Log(c, "path", path)
 | 
				
			||||||
			controllers.HandCodeRes(c, nil, errorcode.NotFound)
 | 
								controllers.HandCodeRes(c, nil, errorcode.NotFound)
 | 
				
			||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			msg, err := controllers.GenRequest(c, handler())
 | 
								v := handler()
 | 
				
			||||||
 | 
								msg, err := controllers.GenRequest(c, v)
 | 
				
			||||||
			if err != nil {
 | 
								if err != nil {
 | 
				
			||||||
				utils.Log(c, "path", path)
 | 
									utils.Log(c, "path", path)
 | 
				
			||||||
				controllers.Error(c, errorcode.ParamError, msg...)
 | 
									controllers.Error(c, errorcode.ParamError, msg...)
 | 
				
			||||||
			} else {
 | 
								} else {
 | 
				
			||||||
				c.Set("request", handler())
 | 
									c.Set("request", v)
 | 
				
			||||||
				c.Next()
 | 
									c.Next()
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue