| | |
| | | package com.ruoyi.system.api.factory; |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.system.api.RemoteMemberService; |
| | | import com.ruoyi.system.api.RemoteShopService; |
| | | import com.ruoyi.system.api.domain.poji.shop.Shop; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.cloud.openfeign.FallbackFactory; |
| | |
| | | log.error("商户服务调用失败:{}", throwable.getMessage()); |
| | | return new RemoteShopService() |
| | | { |
| | | |
| | | @Override |
| | | public R<Shop> getShop(Long shopId) { |
| | | return R.fail("获取商户失败:" + throwable.getMessage()); |
| | | } |
| | | }; |
| | | } |
| | | } |