From c16becdd1bf5197fbe9dab3a6a8f440f79b938af Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期三, 19 十一月 2025 20:56:40 +0800
Subject: [PATCH] bug修改

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

diff --git a/cloud-server-other/src/main/java/com/dsh/other/controller/CodeCallBackController.java b/cloud-server-other/src/main/java/com/dsh/other/controller/CodeCallBackController.java
index a2e66ca..fd18f40 100644
--- a/cloud-server-other/src/main/java/com/dsh/other/controller/CodeCallBackController.java
+++ b/cloud-server-other/src/main/java/com/dsh/other/controller/CodeCallBackController.java
@@ -50,6 +50,9 @@
         System.err.println("dataId:"+dataId);
         System.err.println("rid:"+rid);
         System.err.println("sid:"+sid);
+        if (rid==32){
+            rid= 27;
+        }
         Date date = new Date();
 
         // codeType二维码类型1=订场 2=散客,3=门票,玩湃惠民卡codeType=4 234需要校验能否进场
@@ -84,16 +87,15 @@
                 return ResultUtil.error("该时间段已无空位");
             }else{
                 // 远程调用 将门票设置为已使用
-                userCouponClient.changeTicketStatus(dataId);
+                userCouponClient.changeTicketStatus(dataId,sid,rid);
                 return ResultUtil.success();
             }
         }
         if (codeType==4){
-            //  判断是否能入场 远程调用将门票设置为已使用
-            LocalDate now = LocalDate.now();
+            //  判断是否能入场
             Date date1 = new Date();
             SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
-            String day = simpleDateFormat.format(now);
+            String day = simpleDateFormat.format(date1);
             List<QuerySiteTimes> querySiteTimes = siteService.querySiteTimes(rid, day, null, null, 2);
             Integer flag =0;
             for (QuerySiteTimes querySiteTime : querySiteTimes) {
@@ -112,4 +114,6 @@
 
         return ResultUtil.success();
     }
+
+
 }

--
Gitblit v1.7.1