|
@@ -12,18 +12,16 @@ import (
|
|
|
|
|
|
"hongze/hongze_web_mfyx/models"
|
|
|
"hongze/hongze_web_mfyx/utils"
|
|
|
-
|
|
|
- "github.com/rdlucklib/rdluck_tools/log"
|
|
|
)
|
|
|
|
|
|
-func init() {
|
|
|
- if utils.RunMode == "release" {
|
|
|
- logDir := `/data/rdlucklog/hongze_cygx`
|
|
|
- apiLog = log.Init("20060102.api", logDir)
|
|
|
- } else {
|
|
|
- apiLog = log.Init("20060102.api")
|
|
|
- }
|
|
|
-}
|
|
|
+//func init() {
|
|
|
+// if utils.RunMode == "release" {
|
|
|
+// logDir := `/data/rdlucklog/hongze_cygx`
|
|
|
+// apiLog = log.Init("20060102.api", logDir)
|
|
|
+// } else {
|
|
|
+// apiLog = log.Init("20060102.api")
|
|
|
+// }
|
|
|
+//}
|
|
|
|
|
|
type BaseAuthMobileController struct {
|
|
|
web.Controller
|
|
@@ -138,7 +136,7 @@ func (c *BaseAuthMobileController) JSON(data interface{}, hasIndent bool, coding
|
|
|
}
|
|
|
ip := c.Ctx.Input.IP()
|
|
|
requestBody, _ := url.QueryUnescape(string(c.Ctx.Input.RequestBody))
|
|
|
- apiLog.Println("请求地址:", c.Ctx.Input.URI(), "Authorization:", c.Ctx.Input.Header("Authorization"), "RequestBody:", requestBody, "ResponseBody", string(content), "IP:", ip)
|
|
|
+ //apiLog.Println("请求地址:", c.Ctx.Input.URI(), "Authorization:", c.Ctx.Input.Header("Authorization"), "RequestBody:", requestBody, "ResponseBody", string(content), "IP:", ip)
|
|
|
if coding {
|
|
|
content = []byte(utils.StringsToJSON(string(content)))
|
|
|
}
|