aa
This commit is contained in:
@@ -98,7 +98,7 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin
|
||||
if strings.Contains(storeName, " ") {
|
||||
storeName = strings.ReplaceAll(storeName, " ", "")
|
||||
}
|
||||
storeName = "京西菜市" + strings.ReplaceAll(storeName, "店", "") + "生鲜店"
|
||||
storeName = globals.StoreName + strings.ReplaceAll(storeName, "店", "") + "生鲜店"
|
||||
if len(storeName) > 30 {
|
||||
storeName = utils.LimitUTF8StringLen2(storeName, 30)
|
||||
}
|
||||
@@ -107,7 +107,7 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin
|
||||
}
|
||||
err = api.JdShopAPI.UpdateEntityStore(updateEntityStoreParam)
|
||||
detail, _ := api.JdShopAPI.ShopDetail(utils.Str2Int(store.VendorStoreID))
|
||||
if err == nil {
|
||||
if err == nil && detail != nil {
|
||||
param := &jdshopapi.UpdateBasicParam{
|
||||
StoreID: detail.StoreID,
|
||||
StoreName: detail.StoreName,
|
||||
|
||||
Reference in New Issue
Block a user