From c9bdc58a6a9130f1c83962f114a9593a7af37014 Mon Sep 17 00:00:00 2001
From: huliguo <2023611923@qq.com>
Date: 星期一, 28 七月 2025 19:05:08 +0800
Subject: [PATCH] bug修改
---
ruoyi-api/ruoyi-api-system/src/main/java/com/ruoyi/system/api/factory/RemoteFileFallbackFactory.java | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/ruoyi-api/ruoyi-api-system/src/main/java/com/ruoyi/system/api/factory/RemoteFileFallbackFactory.java b/ruoyi-api/ruoyi-api-system/src/main/java/com/ruoyi/system/api/factory/RemoteFileFallbackFactory.java
index a087efc..c2b10f8 100644
--- a/ruoyi-api/ruoyi-api-system/src/main/java/com/ruoyi/system/api/factory/RemoteFileFallbackFactory.java
+++ b/ruoyi-api/ruoyi-api-system/src/main/java/com/ruoyi/system/api/factory/RemoteFileFallbackFactory.java
@@ -1,18 +1,19 @@
package com.ruoyi.system.api.factory;
+import com.ruoyi.system.api.domain.dto.CodeGetDto;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;
import com.ruoyi.common.core.domain.R;
-import com.ruoyi.system.api.RemoteFileService;
+import com.ruoyi.system.api.service.RemoteFileService;
import com.ruoyi.system.api.domain.poji.sys.SysFile;
/**
* 文件服务降级处理
*
- * @author ruoyi
+ * @author jqs
*/
@Component
public class RemoteFileFallbackFactory implements FallbackFactory<RemoteFileService>
@@ -30,6 +31,18 @@
{
return R.fail("上传文件失败:" + throwable.getMessage());
}
+
+ @Override
+ public R<String> getAppOrderTotal(CodeGetDto codeGetDto) {
+ return R.fail("获取二维码失败:" + throwable.getMessage());
+ }
+
+ @Override
+ public R<String> uploadOSS(MultipartFile file) {
+ return R.fail("上传OSS失败:" + throwable.getMessage());
+ }
};
+
+
}
}
--
Gitblit v1.7.1