- 添加美团配送店时,强制忽略更新错

This commit is contained in:
gazebo
2019-09-24 12:01:04 +08:00
parent 9b1d282c82
commit 3153ee6ea9

View File

@@ -1074,7 +1074,12 @@ func addStoreCourierMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendorID
storeDetail.VendorID = vendorID
storeDetail.VendorStoreID = storeCourierMap.VendorStoreID
if err = updateCourierStore(ctx, storeDetail); err != nil {
return nil, err
if vendorID != model.VendorIDMTPS {
return nil, err
}
// 如果是美团配送,强制忽略更新错
globals.SugarLogger.Infof("addStoreCourierMap storeID:%d, vendorID:%d failed with err:%v", storeID, vendorID, err)
err = nil
}
}
dao.WrapAddIDCULDEntity(storeCourierMap, ctx.GetUserName())