This commit is contained in:
richboo111
2022-10-31 18:45:13 +08:00
parent 35b074920b
commit e4fffa9cd1

View File

@@ -250,7 +250,11 @@ func CreateOrUpdateAll(vendorOrgCode string, storeID, vendorStoreID int64) error
if err = dao.CreateEntity(db, FreightTemplate); err != nil {
errList.AddErr(fmt.Errorf("db update storeID,vendorStoreID defeat on :%v", err))
}
return errors.New(fmt.Sprintf("%s", utils.Format4Output(errList, true)))
if utils.IsNil(errList) {
return errors.New(fmt.Sprintf("%s", utils.Format4Output(errList, true)))
} else {
return nil
}
}
// shop/editStore 编辑门店信息 正向推送平台