This commit is contained in:
邹宗楠
2022-10-09 10:36:36 +08:00
parent 20b1427458
commit 10158e8210

View File

@@ -270,9 +270,9 @@ func (P *PurchaseHandler) CreateFreightTemplate(templateInfo freightTemplate_cre
StoreId: vendorStoreID,
FreightId: resp.TemplateId,
}
_, err1 := api.BindFreightTemplate(bindInfo)
err = api.BindFreightTemplate(bindInfo)
if err != nil {
return err1
return err
}
//并写入数据库
freightInfo := model.FreightTemplate{
@@ -294,7 +294,7 @@ func (P *PurchaseHandler) ShopBindStoreFreight(storeID, freightID int64) error {
FreightId: freightID,
}
api := getAPI("", int(storeID), "")
_, err := api.BindFreightTemplate(param)
err := api.BindFreightTemplate(param)
if err != nil {
return err
}