From 6b6b7a5a76964690419091ae80da25fd56ec7b0f Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期三, 16 四月 2025 11:05:11 +0800
Subject: [PATCH] 更换调用接口
---
ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/OtherFallbackFactory.java | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/OtherFallbackFactory.java b/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/OtherFallbackFactory.java
index 32ee877..d08ab1f 100644
--- a/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/OtherFallbackFactory.java
+++ b/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/OtherFallbackFactory.java
@@ -2,10 +2,7 @@
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.domain.R;
-import com.ruoyi.other.api.domain.TCompany;
-import com.ruoyi.other.api.domain.TCoupon;
-import com.ruoyi.other.api.domain.TEnterpriseUserApplication;
-import com.ruoyi.other.api.domain.TUserTag;
+import com.ruoyi.other.api.domain.*;
import com.ruoyi.other.api.dto.TagListQueryDto;
import com.ruoyi.other.api.dto.UnitListQueryDto;
import com.ruoyi.other.api.feignClient.OtherClient;
@@ -32,6 +29,11 @@
public OtherClient create(Throwable throwable) {
log.error("单位用失败:{}", throwable.getMessage());
return new OtherClient() {
+
+ @Override
+ public R<Integer> getAddCarIntegral() {
+ return R.fail("查询首次添加车辆可获积分:" + throwable.getMessage());
+ }
@Override
public R<Page<TCompany>> queryUnitPage(UnitListQueryDto unitListQueryDto) {
@@ -97,6 +99,11 @@
public R<List<TEnterpriseUserApplication>> getTnterPrise() {
return R.fail("查询:"+throwable.getMessage());
}
+
+ @Override
+ public R<Region> getRegionBuyCode(String code) {
+ return R.fail("远程调用根据code查询名称失败:"+throwable.getMessage());
+ }
};
}
}
--
Gitblit v1.7.1