限制status.Remark长度
This commit is contained in:
@@ -81,6 +81,7 @@ func addOrderOrWaybillStatus(status *model.OrderStatus, db *dao.DaoDB) (isDuplic
|
|||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
status.ID = 0
|
status.ID = 0
|
||||||
|
status.Remark = utils.LimitUTF8StringLen(status.Remark, 255)
|
||||||
created, _, err := db.Db.ReadOrCreate(status, "VendorOrderID", "VendorID", "OrderType", "Status", "VendorStatus", "StatusTime")
|
created, _, err := db.Db.ReadOrCreate(status, "VendorOrderID", "VendorID", "OrderType", "Status", "VendorStatus", "StatusTime")
|
||||||
if err == nil {
|
if err == nil {
|
||||||
if !created {
|
if !created {
|
||||||
|
|||||||
Reference in New Issue
Block a user