jsondata超长处理,创建门店操作日志

This commit is contained in:
苏尹岚
2020-01-17 17:07:42 +08:00
parent 10b0fb0511
commit 384ee1bdec
2 changed files with 4 additions and 3 deletions

View File

@@ -46,6 +46,7 @@ func AddOperateEvent(ctx *jxcontext.Context, accessUUID, jsonData string) (err e
if accessUUID != "" {
accessUUID = accessUUID[0:strings.Index(accessUUID, ",")]
}
jsonData = utils.LimitUTF8StringLen(jsonData, 3200)
event := &model.OperateEvent{
CreatedAt: time.Now(),
LastOperator: ctx.GetUserName(),