增加log文件存取,以及增加LOG函数

This commit is contained in:
2020-02-22 00:13:41 +08:00
parent ab294ca6f0
commit bb2311148e
10 changed files with 148 additions and 123 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ func (this *Context) Display(statu int, data interface{}) {
tpe := this.Config.GetMap("error").GetString(ObjToStr(statu))
if tpe == "" {
this.SetError(errors.New("找不到对应的错误码"))
logFmt(errors.New("找不到对应的错误码"), 2, LOG_WARN)
}
temp["type"] = tpe