From 61bbd595ee2bc3c67b40878894dcc07174c6eea6 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期二, 24 九月 2024 10:15:30 +0800
Subject: [PATCH] 玩湃微信商户分账

---
 cloud-server-other/src/main/java/com/dsh/other/controller/StoreConfigController.java |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/cloud-server-other/src/main/java/com/dsh/other/controller/StoreConfigController.java b/cloud-server-other/src/main/java/com/dsh/other/controller/StoreConfigController.java
index c809190..2b5e035 100644
--- a/cloud-server-other/src/main/java/com/dsh/other/controller/StoreConfigController.java
+++ b/cloud-server-other/src/main/java/com/dsh/other/controller/StoreConfigController.java
@@ -3,7 +3,9 @@
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.dsh.other.entity.HomeModule;
 import com.dsh.other.entity.StoreConfig;
+import com.dsh.other.feignclient.communityWorldCup.WorldCupClient;
 import com.dsh.other.feignclient.communityWorldCup.WorldCupStoreClient;
+import com.dsh.other.feignclient.communityWorldCup.model.WorldCup;
 import com.dsh.other.feignclient.communityWorldCup.model.WorldCupStore;
 import com.dsh.other.model.StoreConfigVo;
 import com.dsh.other.service.IHomeModuleService;
@@ -41,6 +43,9 @@
 
     @Resource
     private WorldCupStoreClient worldCupStoreClient;
+
+    @Resource
+    private WorldCupClient worldCupClient;
 
 
 
@@ -118,10 +123,11 @@
 
             List<WorldCupStore> worldCupStoreList = worldCupStoreClient.getWorldCupStoreList(storeId);
             for (WorldCupStore worldCupStore : worldCupStoreList) {
+                WorldCup worldCup = worldCupClient.getWorldCup(worldCupStore.getWorldCupId());
                 StoreConfigVo storeConfigVo = new StoreConfigVo();
                 storeConfigVo.setIsTop(0);
                 storeConfigVo.setId(worldCupStore.getWorldCupId());
-                storeConfigVo.setBackgroundImage(ToolUtil.isNotEmpty(worldCupStore.getBackgroundImage()) ? worldCupStore.getBackgroundImage() : "https://we-park-life.oss-cn-beijing.aliyuncs.com/img/760934115ff6468591ed51f0d760a989.jpg");
+                storeConfigVo.setBackgroundImage(ToolUtil.isNotEmpty(worldCupStore.getBackgroundImage()) ? worldCupStore.getBackgroundImage() : worldCup.getHomeBackdropImg());
                 storeConfigVo.setType(9);
                 storeConfigVo.setIsOpen(worldCupStore.getIsOpen());
                 storeConfigVo.setSort(worldCupStore.getSort());

--
Gitblit v1.7.1