- 限制ActMap remark的长度
This commit is contained in:
@@ -666,7 +666,7 @@ func SyncAct(ctx *jxcontext.Context, parentTask tasksch.ITask, actID int, vendor
|
|||||||
if err = handler.SyncAct(ctx, nil, actMap[vendorID], nil, actStoreSkuMap[vendorID]); err == nil {
|
if err = handler.SyncAct(ctx, nil, actMap[vendorID], nil, actStoreSkuMap[vendorID]); err == nil {
|
||||||
retVal = []int{1}
|
retVal = []int{1}
|
||||||
} else {
|
} else {
|
||||||
tmpActMap.Remark = err.Error()
|
tmpActMap.Remark = utils.LimitUTF8StringLen(err.Error(), 1024)
|
||||||
}
|
}
|
||||||
// 保存最后一次同步错误信息
|
// 保存最后一次同步错误信息
|
||||||
dao.UpdateEntity(db, tmpActMap, "Remark")
|
dao.UpdateEntity(db, tmpActMap, "Remark")
|
||||||
|
|||||||
Reference in New Issue
Block a user