From 14c1946eae86a86f8d1edee6cf3bdaf7572fc966 Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Thu, 30 Oct 2025 19:44:38 +0800
Subject: [PATCH] 1

---
 trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiNewsController.java |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiNewsController.java b/trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiNewsController.java
index 321698f..c1402cd 100644
--- a/trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiNewsController.java
+++ b/trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiNewsController.java
@@ -4,6 +4,7 @@
 import com.baomidou.mybatisplus.core.toolkit.Wrappers;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.yami.trading.bean.cms.News;
+import com.yami.trading.common.constants.Constants;
 import com.yami.trading.common.domain.Result;
 import com.yami.trading.common.exception.YamiShopBindException;
 import com.yami.trading.common.util.DateUtils;
@@ -54,7 +55,7 @@
 
         }
         if (StringUtils.isNotEmpty(news.getImgUrl())) {
-            news.setImgUrl(awsS3OSSFileService.getUrl(news.getImgUrl()));
+            news.setImgUrl(news.getImgUrl());
         }
 
         return Result.succeed(news);
@@ -101,7 +102,7 @@
                     news.setShow(news.getUserId().equals(SecurityUtils.getCurrentUserId()));
                 }
                 if (StringUtils.isNotEmpty(news.getImgUrl())) {
-                    news.setImgUrl(awsS3OSSFileService.getUrl(news.getImgUrl()));
+                    news.setImgUrl(news.getImgUrl());
                 }
 
             }
@@ -148,7 +149,7 @@
                 list.get(i).setCreateTimeStr(DateUtils.format(list.get(i).getCreateTime(), DateUtils.DF_yyyyMMddHHmmss));
                 News news = list.get(i);
                 if (StringUtils.isNotEmpty(news.getImgUrl())) {
-                    news.setImgUrl(awsS3OSSFileService.getUrl(news.getImgUrl()));
+                    news.setImgUrl(Constants.IMAGES_HTTP+news.getImgUrl());
                 }
 
             }
@@ -195,7 +196,7 @@
                 list.get(i).setCreateTimeStr(DateUtils.format(list.get(i).getCreateTime(), DateUtils.DF_yyyyMMddHHmmss));
                 News news = list.get(i);
                 if (StringUtils.isNotEmpty(news.getImgUrl())) {
-                    news.setImgUrl(awsS3OSSFileService.getUrl(news.getImgUrl()));
+                    news.setImgUrl(Constants.IMAGES_HTTP+news.getImgUrl());
                 }
 
             }

--
Gitblit v1.9.3