From 800e1382a443c76dd0b65f64ff2ebdd647063a78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E7=9A=AE?= <14840170+lao-pi123@user.noreply.gitee.com> Date: Wed, 9 Oct 2024 15:46:22 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BF=AE=E5=A4=8D=E8=B7=B3=E4=B8=80?= =?UTF-8?q?=E8=B7=B3=E6=B8=B8=E6=88=8F=E8=B4=AD=E4=B9=B0=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E6=8E=A5=E5=8F=A3=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=202=E3=80=81=E6=96=B9=E5=9D=97=E5=A4=A7=E5=B8=88=E6=B8=B8?= =?UTF-8?q?=E6=88=8F=E5=9B=BA=E5=AE=9Aform=5Fid=E4=B8=BA=E7=94=A8=E6=88=B7?= =?UTF-8?q?id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yunbao/common/sud/decorator/SudFSMMGDecorator.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common/src/main/java/com/yunbao/common/sud/decorator/SudFSMMGDecorator.java b/common/src/main/java/com/yunbao/common/sud/decorator/SudFSMMGDecorator.java index a47dbd673..9fd18600b 100644 --- a/common/src/main/java/com/yunbao/common/sud/decorator/SudFSMMGDecorator.java +++ b/common/src/main/java/com/yunbao/common/sud/decorator/SudFSMMGDecorator.java @@ -11,6 +11,7 @@ import android.util.Log; import com.blankj.utilcode.util.LogUtils; import com.yunbao.common.event.CheckRemainingBalanceEvent; import com.yunbao.common.manager.RandomSudGameManager; +import com.yunbao.common.sud.decorator.game.JumpEvent; import com.yunbao.common.sud.state.SudMGPMGState; import com.yunbao.common.utils.AppManager; import com.yunbao.common.utils.Bus; @@ -369,6 +370,10 @@ public class SudFSMMGDecorator implements ISudFSMMG { mgCommonGameCreateOrder.gameRoomId = gameRoomId; mgCommonGameCreateOrder.userId = userId; mgCommonGameCreateOrder.dataJson = dataJson; + if (1800792634548629505L == gameId){ + // 如果是方块大师,formID写死为自己 + mgCommonGameCreateOrder.fromUid = mgCommonGameCreateOrder.toUid; + } } Log.i(TAG, "onGameStateChange: " + dataJson); @@ -377,6 +382,10 @@ public class SudFSMMGDecorator implements ISudFSMMG { } else { listener.onGameMGCommonGameCreateOrder(handle, mgCommonGameCreateOrder); } + + // 调用创建订单接口 + JumpEvent.hit(mgCommonGameCreateOrder); + break; case SudMGPMGState.MG_COMMON_PLAYER_ROLE_ID: // 26. 游戏通知app玩家角色(仅对狼人杀有效) SudMGPMGState.MGCommonPlayerRoleId mgCommonPlayerRoleId = SudJsonUtils.fromJson(dataJson, SudMGPMGState.MGCommonPlayerRoleId.class);