Pārlūkot izejas kodu

商品详情页,商品描述图片不展示bug修改

kouchengxing 4 gadi atpakaļ
vecāks
revīzija
8b535a8e5f

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 30 - 17
dgtly-common/src/main/java/com/dgtly/common/utils/TranslateUtil.java


+ 1 - 1
dgtly-goods/dgtly-goods-common/src/main/java/com/dgtly/goods/service/impl/GoodsInfoServiceImpl.java

@@ -298,7 +298,7 @@ public class GoodsInfoServiceImpl implements IGoodsInfoService
         //描述文本编辑
         String desc = goodsInfo.getDes();
         if(StringUtils.isNotEmpty(desc)){
-            goodsInfo.setDesEn(TranslateUtil.getEnTranslateInfo(desc));
+            goodsInfo.setDesEn(TranslateUtil.getDesEnTranslateInfo(desc));
         }
         return goodsInfo;
     }

+ 2 - 2
dgtly-member/dgtly-member-common/src/main/java/com/dgtly/notice/service/impl/NoticeSupplyServiceImpl.java

@@ -67,7 +67,7 @@ public class NoticeSupplyServiceImpl implements INoticeSupplyService
         //供应信息详情
         String supplyDetails = noticeSupply.getSupplyDetails();
         if (StringUtils.isNotEmpty(supplyDetails)){
-            noticeSupply.setSupplyDetailsEn(TranslateUtil.getEnTranslateInfo(supplyDetails));
+            noticeSupply.setSupplyDetailsEn(TranslateUtil.getDesEnTranslateInfo(supplyDetails));
         }
         //生产厂家
         String manufacturer = noticeSupply.getManufacturer();
@@ -112,7 +112,7 @@ public class NoticeSupplyServiceImpl implements INoticeSupplyService
         //供应信息详情
         String supplyDetails = noticeSupply.getSupplyDetails();
         if (StringUtils.isNotEmpty(supplyDetails)){
-            noticeSupply.setSupplyDetailsEn(TranslateUtil.getEnTranslateInfo(supplyDetails));
+            noticeSupply.setSupplyDetailsEn(TranslateUtil.getDesEnTranslateInfo(supplyDetails));
         }
         //生产厂家
         String manufacturer = noticeSupply.getManufacturer();

+ 2 - 2
dgtly-system/src/main/java/com/dgtly/system/service/impl/SysNoticeServiceImpl.java

@@ -70,7 +70,7 @@ public class SysNoticeServiceImpl implements ISysNoticeService
         //公告内容
         String noticeContent = notice.getNoticeContent();
         if (StringUtils.isNotEmpty(noticeContent)){
-            notice.setNoticeContentEn(TranslateUtil.getEnTranslateInfo(noticeContent));
+            notice.setNoticeContentEn(TranslateUtil.getDesEnTranslateInfo(noticeContent));
         }
         //图片
         String fmzFileUrl = notice.getFmzFileUrl();
@@ -102,7 +102,7 @@ public class SysNoticeServiceImpl implements ISysNoticeService
         //公告内容
         String noticeContent = notice.getNoticeContent();
         if (StringUtils.isNotEmpty(noticeContent)){
-            notice.setNoticeContentEn(TranslateUtil.getEnTranslateInfo(noticeContent));
+            notice.setNoticeContentEn(TranslateUtil.getDesEnTranslateInfo(noticeContent));
         }
         //图片
         String fmzFileUrl = notice.getFmzFileUrl();