fix: 问题修复

This commit is contained in:
meilin.huang
2023-01-19 19:45:12 +08:00
parent 594ca43505
commit 9f43f731b5
9 changed files with 213 additions and 199 deletions

View File

@@ -9,7 +9,6 @@ import (
"mayfly-go/pkg/model"
"mayfly-go/pkg/req"
"mayfly-go/pkg/utils"
"reflect"
"time"
)
@@ -51,7 +50,7 @@ func (m *syslogAppImpl) SaveFromReq(req *req.Ctx) {
}
reqParam := req.ReqParam
if !utils.IsBlank(reflect.ValueOf(reqParam)) {
if !utils.IsBlank(reqParam) {
// 如果是字符串类型则不使用json序列化
if reqStr, ok := reqParam.(string); ok {
syslog.ReqParam = reqStr