限制京东门名长度
This commit is contained in:
@@ -152,6 +152,7 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin
|
|||||||
} else {
|
} else {
|
||||||
storeParams.StationName = jxutils.ComposeStoreName(store.Name, model.VendorIDJD)
|
storeParams.StationName = jxutils.ComposeStoreName(store.Name, model.VendorIDJD)
|
||||||
}
|
}
|
||||||
|
storeParams.StationName = utils.LimitUTF8StringLen(storeParams.StationName, jdapi.MaxStoreNameLen)
|
||||||
}
|
}
|
||||||
if store.SyncStatus&(model.SyncFlagNewMask|model.SyncFlagStoreAddress) != 0 {
|
if store.SyncStatus&(model.SyncFlagNewMask|model.SyncFlagStoreAddress) != 0 {
|
||||||
storeParams.StationAddress = store.Address
|
storeParams.StationAddress = store.Address
|
||||||
|
|||||||
Reference in New Issue
Block a user