aa
This commit is contained in:
@@ -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 + ")"
|
||||
|
||||
Reference in New Issue
Block a user