1、修复跳一跳游戏购买没有调用接口的问题
2、方块大师游戏固定form_id为用户id
This commit is contained in:
parent
bfaa175e10
commit
800e1382a4
@ -11,6 +11,7 @@ import android.util.Log;
|
|||||||
import com.blankj.utilcode.util.LogUtils;
|
import com.blankj.utilcode.util.LogUtils;
|
||||||
import com.yunbao.common.event.CheckRemainingBalanceEvent;
|
import com.yunbao.common.event.CheckRemainingBalanceEvent;
|
||||||
import com.yunbao.common.manager.RandomSudGameManager;
|
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.sud.state.SudMGPMGState;
|
||||||
import com.yunbao.common.utils.AppManager;
|
import com.yunbao.common.utils.AppManager;
|
||||||
import com.yunbao.common.utils.Bus;
|
import com.yunbao.common.utils.Bus;
|
||||||
@ -369,6 +370,10 @@ public class SudFSMMGDecorator implements ISudFSMMG {
|
|||||||
mgCommonGameCreateOrder.gameRoomId = gameRoomId;
|
mgCommonGameCreateOrder.gameRoomId = gameRoomId;
|
||||||
mgCommonGameCreateOrder.userId = userId;
|
mgCommonGameCreateOrder.userId = userId;
|
||||||
mgCommonGameCreateOrder.dataJson = dataJson;
|
mgCommonGameCreateOrder.dataJson = dataJson;
|
||||||
|
if (1800792634548629505L == gameId){
|
||||||
|
// 如果是方块大师,formID写死为自己
|
||||||
|
mgCommonGameCreateOrder.fromUid = mgCommonGameCreateOrder.toUid;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Log.i(TAG, "onGameStateChange: " + dataJson);
|
Log.i(TAG, "onGameStateChange: " + dataJson);
|
||||||
@ -377,6 +382,10 @@ public class SudFSMMGDecorator implements ISudFSMMG {
|
|||||||
} else {
|
} else {
|
||||||
listener.onGameMGCommonGameCreateOrder(handle, mgCommonGameCreateOrder);
|
listener.onGameMGCommonGameCreateOrder(handle, mgCommonGameCreateOrder);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 调用创建订单接口
|
||||||
|
JumpEvent.hit(mgCommonGameCreateOrder);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case SudMGPMGState.MG_COMMON_PLAYER_ROLE_ID: // 26. 游戏通知app玩家角色(仅对狼人杀有效)
|
case SudMGPMGState.MG_COMMON_PLAYER_ROLE_ID: // 26. 游戏通知app玩家角色(仅对狼人杀有效)
|
||||||
SudMGPMGState.MGCommonPlayerRoleId mgCommonPlayerRoleId = SudJsonUtils.fromJson(dataJson, SudMGPMGState.MGCommonPlayerRoleId.class);
|
SudMGPMGState.MGCommonPlayerRoleId mgCommonPlayerRoleId = SudJsonUtils.fromJson(dataJson, SudMGPMGState.MGCommonPlayerRoleId.class);
|
||||||
|
Loading…
Reference in New Issue
Block a user