- update json to string

master v1.0.62
李光春 2 years ago
parent 61c3b48176
commit 99d2f42cda

@ -1,5 +1,5 @@
package golog
const (
Version = "1.0.61"
Version = "1.0.62"
)

@ -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 {

Loading…
Cancel
Save