1
This commit is contained in:
@@ -6395,7 +6395,7 @@ var TaoStoreStatus = map[string]int{
|
||||
}
|
||||
|
||||
// SingleBindTaoVegetable 单独绑定淘鲜达平台三方映射
|
||||
func SingleBindTaoVegetable(ctx *jxcontext.Context, bind []TaoBindInfo) (error, string) {
|
||||
func SingleBindTaoVegetable(ctx *jxcontext.Context, bind []TaoBindInfo, vendorOrgCode string) (error, string) {
|
||||
var (
|
||||
storeID = ""
|
||||
db *dao.DaoDB
|
||||
@@ -6420,7 +6420,7 @@ func SingleBindTaoVegetable(ctx *jxcontext.Context, bind []TaoBindInfo) (error,
|
||||
storeMap := &model.StoreMap{
|
||||
StoreID: utils.Str2Int(storeID),
|
||||
VendorID: model.VendorIDTaoVegetable,
|
||||
VendorOrgCode: "",
|
||||
VendorOrgCode: vendorOrgCode,
|
||||
Status: TaoStoreStatus[v.Status],
|
||||
DeliveryType: model.StoreDeliveryTypeByStore,
|
||||
SyncStatus: 0,
|
||||
|
||||
@@ -1661,6 +1661,7 @@ func (c *StoreController) BatchUpdateMTStoreLogos() {
|
||||
// @Title 批量绑定淘鲜达门店
|
||||
// @Description 批量绑定淘鲜达门店
|
||||
// @Param token header string true "认证token"
|
||||
// @Param vendorOrgCode formData string true "账号id"
|
||||
// @Param bindInfos formData string true "TaoBindInfo"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
@@ -1671,7 +1672,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)
|
||||
err, hint = cms.SingleBindTaoVegetable(params.Ctx, taoBindInfo, params.VendorOrgCode)
|
||||
}
|
||||
return nil, hint, err
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user