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/GameController.java | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/cloud-server-other/src/main/java/com/dsh/other/controller/GameController.java b/cloud-server-other/src/main/java/com/dsh/other/controller/GameController.java
index b0c335e..47aea72 100644
--- a/cloud-server-other/src/main/java/com/dsh/other/controller/GameController.java
+++ b/cloud-server-other/src/main/java/com/dsh/other/controller/GameController.java
@@ -227,8 +227,16 @@
System.err.println("启动游戏支付");
if (type == 1) {
+
tGameRecord.setMoney(config.getCash());
gameRecordService.updateById(tGameRecord);
+ if(config.getCash().compareTo(BigDecimal.ZERO)==0){
+ // 零元不获取支付
+ tGameRecord.setStatus(1);
+ gameRecordService.updateById(tGameRecord);
+ startGame(uid, gameType, gameId, spaceId, sutuId);
+ return ResultUtil.success();
+ }
String params = uid + "_" + gameId + "_" + spaceId + "_" + sutuId+"_"+code+"_"+configId + "_" + gameType;
// ResultUtil weixinpay = payMoneyUtil.weixinpay("游戏支付-"+isFenZhang, params, code, config.getCash().toString(),
// "/base/game/wechatPaymentGameCallback", "APP", "");
@@ -254,6 +262,13 @@
} else if (type == 2) {
tGameRecord.setMoney(config.getCash());
gameRecordService.updateById(tGameRecord);
+ if(config.getCash().compareTo(BigDecimal.ZERO)==0){
+ // 零元不获取支付
+ tGameRecord.setStatus(1);
+ gameRecordService.updateById(tGameRecord);
+ startGame(uid, gameType, gameId, spaceId, sutuId);
+ return ResultUtil.success();
+ }
String smid1="";
String params = uid + "_" + gameId + "_" + spaceId + "_" + sutuId+"_"+code+"_"+ configId + "_" + gameType;
// 判断属于哪个运营商 根据运营商 id 获取对应的商户号
--
Gitblit v1.7.1