diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 8c85c6f48..4bd1aaf59 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -6417,6 +6417,7 @@ func BatchUpdateMTStoreLogos(vendorOrgCode string, relInfo []MtRelInfo) (hint st } type TaoBindInfo struct { + storeID int `json:"storeID"` VendorStoreID string `json:"vendorStoreID"` VendorStoreName string `json:"vendorStoreName"` Status string `json:"status"` //渠道营业状态 @@ -6428,7 +6429,7 @@ var TaoStoreStatus = map[string]int{ } // SingleBindTaoVegetable 单独绑定淘鲜达平台三方映射 -func SingleBindTaoVegetable(ctx *jxcontext.Context, bind []TaoBindInfo, vendorOrgCode string, storeID int) (error, string) { +func SingleBindTaoVegetable(ctx *jxcontext.Context, bind []TaoBindInfo, vendorOrgCode string) (error, string) { var ( db *dao.DaoDB errList errlist.ErrList @@ -6451,7 +6452,7 @@ func SingleBindTaoVegetable(ctx *jxcontext.Context, bind []TaoBindInfo, vendorOr // } //} storeMap := &model.StoreMap{ - StoreID: storeID, + StoreID: v.storeID, VendorID: model.VendorIDTaoVegetable, VendorOrgCode: vendorOrgCode, Status: TaoStoreStatus[v.Status], diff --git a/controllers/cms_store.go b/controllers/cms_store.go index 3ec5d3714..5a0664f15 100644 --- a/controllers/cms_store.go +++ b/controllers/cms_store.go @@ -1687,7 +1687,6 @@ func (c *StoreController) BatchUpdateMTStoreLogos() { // @Description 批量绑定淘鲜达门店 // @Param token header string true "认证token" // @Param vendorOrgCode formData string true "账号id" -// @Param storeID formData int true "本地门店id" // @Param bindInfos formData string true "TaoBindInfo" // @Success 200 {object} controllers.CallResult // @Failure 200 {object} controllers.CallResult @@ -1698,7 +1697,7 @@ func (c *StoreController) SingleBindTaoVegetable() { b := bytes.NewBufferString(params.BindInfos) decoder := json.NewDecoder(b) if err = decoder.Decode(&taoBindInfo); err == nil { - err, hint = cms.SingleBindTaoVegetable(params.Ctx, taoBindInfo, params.VendorOrgCode, params.StoreID) + err, hint = cms.SingleBindTaoVegetable(params.Ctx, taoBindInfo, params.VendorOrgCode) } return nil, hint, err })