1、修复跳一跳游戏购买没有调用接口的问题

2、方块大师游戏固定form_id为用户id
This commit is contained in:
老皮 2024-10-09 15:46:22 +08:00
parent bfaa175e10
commit 800e1382a4

View File

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