Kaynağa Gözat

fix:日志记录更完整

Roc 4 ay önce
ebeveyn
işleme
8e99b759aa
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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 != "" {