Commit 40adad1a by zhengqiuyun86

初始化

parent 1a9f547d
......@@ -22,12 +22,11 @@ func ExceptionCatch(c *gin.Context) {
}
break
case error:
e := (err).(error)
var buf [1024]byte
n := runtime.Stack(buf[:], true)
fmt.Println(string(buf[:]), n)
if c != nil {
getWay.FailAndMsg(c, "SYSTEM.ERROR", e.Error())
getWay.FailAndMsg(c, "SYSTEM.ERROR", "系统繁忙,请稍后重试")
}
break
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment