From 03bc927fdb8469c1417f75c2a25a06a0d6b1ae61 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期四, 21 三月 2024 14:44:48 +0800
Subject: [PATCH] 修改bug

---
 cloud-server-communityWorldCup/src/main/java/com/dsh/communityWorldCup/controller/WorldCupController.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cloud-server-communityWorldCup/src/main/java/com/dsh/communityWorldCup/controller/WorldCupController.java b/cloud-server-communityWorldCup/src/main/java/com/dsh/communityWorldCup/controller/WorldCupController.java
index ba70ce8..102a74f 100644
--- a/cloud-server-communityWorldCup/src/main/java/com/dsh/communityWorldCup/controller/WorldCupController.java
+++ b/cloud-server-communityWorldCup/src/main/java/com/dsh/communityWorldCup/controller/WorldCupController.java
@@ -244,16 +244,16 @@
             return ResultUtil.error("二维码不正确");
         }
         Integer space_id = jsonObject.getInteger("space_id");
-        Store store = storeClient.queryStoreById(space_id);
-        if(null == store){
+        Site site = siteClient.getSite(space_id);
+        if(null == site){
             return ResultUtil.error("无法获取场地信息");
         }
+        Store store = storeClient.queryStoreById(site.getStoreId());
         String sutu_id = jsonObject.getString("sutu_id");
         TGame tGame = gameClient.getTGameBySutuId(sutu_id);
         if(null == tGame){
             return ResultUtil.error("无效的游戏二维码");
         }
-        Site site = siteClient.getSite(tGame.getSiteId());
         Map<String, String> map = new HashMap<>();
         map.put("name", store.getName());
         map.put("address", site.getName());

--
Gitblit v1.7.1