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);