mitao
2024-05-21 bfb5cdc6634e08f0b99646aa3d0a117246476a3d
ruoyi-api/ruoyi-api-system/src/main/java/com/ruoyi/system/api/factory/OrderFallbackFactory.java
@@ -1,6 +1,5 @@
package com.ruoyi.system.api.factory;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.feignClient.OrderClient;
import org.springframework.cloud.openfeign.FallbackFactory;
@@ -12,11 +11,23 @@
    @Override
    public OrderClient create(Throwable cause) {
        return new OrderClient() {
        return new OrderClient(){
            @Override
            public R<Boolean> saveOrderOne(OrderDTO orderDTO) {
                return R.fail("通过视频集合查询用户失败:" + cause.getMessage());
            }
            @Override
            public R<Boolean> getOrderAuctionBond(OrderAuctionBondDTO orderAuctionBondDTO) {
                return R.fail("通过视频集合查询用户失败:" + cause.getMessage());
            }
            @Override
            public R<Integer> getSeckillMembers(Long id) {
                return R.fail("获取秒杀商品已购会员数失败:" + cause.getMessage());
            }
        };
    }
}