- improve jxutils.SplitStoreName

This commit is contained in:
gazebo
2019-03-18 15:04:42 +08:00
parent a4d8fd6230
commit 1e53e4edae
7 changed files with 67 additions and 12 deletions

View File

@@ -107,7 +107,7 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin
openTime = append(openTime, [2]int16{storeDetail.OpenTime2, storeDetail.CloseTime2})
}
params := map[string]interface{}{
"name": storeDetail.Store.Name,
"name": jxutils.ComposeStoreName(storeDetail.Store.Name, model.VendorIDMTWM),
"address": storeDetail.Address,
"longitude": jxutils.IntCoordinate2Standard(storeDetail.Lng),
"latitude": jxutils.IntCoordinate2Standard(storeDetail.Lat),