diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 2c95b48e7..9533d3186 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -3919,7 +3919,7 @@ func CreateVendorStore(ctx *jxcontext.Context, storeID, vendorID int, payload ma if err != nil { return err } - if vendorStoreID != "" { + if vendorStoreID != "" && vendorStoreID != "0" { //AddStoreVendorMap 太复杂了并不满足,还是手动加吧 storeMap := &model.StoreMap{ VendorStoreID: vendorStoreID, diff --git a/business/partner/purchase/ebai/store.go b/business/partner/purchase/ebai/store.go index 697c370fa..f38995756 100644 --- a/business/partner/purchase/ebai/store.go +++ b/business/partner/purchase/ebai/store.go @@ -679,10 +679,10 @@ func (p *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri } param["business_time"] = timeLis param["business_form_id"] = ebaiInfo.BusinessFormID - if baiduShopID, err2 := api.EbaiAPI.ShopCreate(param); err == nil { + if baiduShopID, err2 := api.EbaiAPI.ShopCreate(param); err2 == nil { //上传资质 - return utils.Int64ToStr(baiduShopID), err + return utils.Int64ToStr(baiduShopID), nil } else { err = err2 }