From 99d2f42cdaa72447886118346e442f34c6c0d4f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=85=89=E6=98=A5?= Date: Tue, 6 Sep 2022 11:06:59 +0800 Subject: [PATCH] - update json to string --- const.go | 2 +- gin_gorm.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/const.go b/const.go index 3f027c3..19cb553 100644 --- a/const.go +++ b/const.go @@ -1,5 +1,5 @@ package golog const ( - Version = "1.0.61" + Version = "1.0.62" ) diff --git a/gin_gorm.go b/gin_gorm.go index f89e992..81890cb 100644 --- a/gin_gorm.go +++ b/gin_gorm.go @@ -161,7 +161,7 @@ func (c *GinClient) gormRecordJson(ginCtx *gin.Context, traceId string, requestT ResponseTime: gotime.Current().Time, //【返回】时间 ResponseCode: responseCode, //【返回】状态码 ResponseData: datatypes.JSON(responseBody), //【返回】数据 - ResponseContent: dorm.JsonEncodeNoError(responseBody), //【返回】内容 + ResponseContent: responseBody, //【返回】内容 CostTime: endTime - startTime, //【系统】花费时间 } if ginCtx.Request.TLS == nil { @@ -209,7 +209,7 @@ func (c *GinClient) gormRecordXml(ginCtx *gin.Context, traceId string, requestTi ResponseTime: gotime.Current().Time, //【返回】时间 ResponseCode: responseCode, //【返回】状态码 ResponseData: datatypes.JSON(responseBody), //【返回】数据 - ResponseContent: dorm.JsonEncodeNoError(responseBody), //【返回】内容 + ResponseContent: responseBody, //【返回】内容 CostTime: endTime - startTime, //【系统】花费时间 } if ginCtx.Request.TLS == nil {