Explorar o código

fix:日志记录更完整

Roc hai 4 meses
pai
achega
8e99b759aa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      controller/response/base.go

+ 1 - 1
controller/response/base.go

@@ -28,7 +28,7 @@ type ResultData struct {
 func result(code int, resultData ResultData, c *gin.Context) {
 	jsonByte, _ := json.Marshal(resultData)
 	logSlice := utils.GetContextLogListByClaims(c)
-	logSlice = append(logSlice, fmt.Sprint("resultData:", string(jsonByte)))
+	logSlice = append(logSlice, fmt.Sprint("ResultData:", string(jsonByte)))
 
 	//记录错误日志
 	if resultData.ErrMsg != "" {