This commit is contained in:
苏尹岚
2021-02-07 10:45:46 +08:00
parent d7a04e164e
commit feebefb10d

View File

@@ -632,8 +632,6 @@ func (c *PurchaseHandler) GetShopIDsByPage() (vendorStoreIDs []string, err error
}
func (p *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName string, params map[string]interface{}, storeDetail *dao.StoreDetail) (vendorStoreID string, err error) {
brands, err := dao.GetBrands(db, "", storeDetail.BrandID)
brand := brands[0]
param := make(map[string]interface{})
param["shop_id"] = utils.Int2Str(storeID)
param["supplier_id"] = params["supplierID"]
@@ -652,7 +650,7 @@ func (p *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri
// phone = model.VendorStoreTel
// }
ebaiInfo := ebaiSupplierInfo[param["supplier_id"].(string)]
if strings.Contains(brand.Name, "京西到家") {
if ebaiInfo.SupplierID == EbaiSupplierIDsc {
param["name"] = storeDetail.Name
} else {
param["name"] = ebaiInfo.BrandName + "(" + storeDetail.Name + ")"