1
phpcjl
2024-12-16 decac42c276d690ca302f21655b5ea806a85a09f
ruoyi-api/ruoyi-api-account/src/main/java/com/ruoyi/account/api/factory/AppUserClientFallbackFactory.java
@@ -9,6 +9,7 @@
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import java.util.Collections;
import java.util.List;
/**
@@ -61,6 +62,12 @@
         }
         @Override
         public R<List<AppUser>> getTopUsers() {
            log.error("获取用户列表失败:{}", cause.getMessage());
            throw new RuntimeException("获取用户列表失败");
         }
         @Override
         public R<Long> getVipCount(Long userId, Integer vipId) {
            log.error("获取直推会员数失败:{}", cause.getMessage());
            throw new RuntimeException("获取直推会员数失败");
@@ -75,6 +82,11 @@
         public R<AppUser> getAppUserByPhone(String phone) {
            return R.fail("通过手机号查询用户失败");
         }
         @Override
         public List<AppUser> listByIds(List<String> list) {
            return Collections.emptyList();
         }
      };
   }
}