This commit is contained in:
苏尹岚
2021-02-07 14:17:09 +08:00
parent 5fd18dea64
commit 306c0eefff
2 changed files with 3 additions and 3 deletions

View File

@@ -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,

View File

@@ -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
}