@@ -59,12 +59,11 @@ func AddLog(req *http.Request, username, msg string, code, apicount int) {
agent := req.Header.Get("user-agent")
ref := req.Referer()
s_url := req.RequestURI
- date := timeNow.Unix()
md, _ := json.Marshal(req.Form)
str := string(md)
logs := map[string]interface{}{
"id": uc.DayShortTime(),
- "date": date,
+ "date": timeNow,
"ip": req.Proto,
"refer": ref,
"year": timeNow.Year(),