|
|
@@ -179,29 +179,34 @@ class GameIntroductionActivity :
|
|
|
|
|
|
} else if (v.id == R.id.btnStartGame) {
|
|
|
runOnUiThread {
|
|
|
- isEnterGame = true
|
|
|
- val url =
|
|
|
- gameBean!!.gameUrl + "?startLv=" + gameBean!!.gameLevel + "&maxLv=" +
|
|
|
- gameBean!!.totalNum + "&gameSetTime=" + gameBean!!.gameDuration +
|
|
|
- "&difficultyRate=" + gameBean!!.gameDifficultyRate + "&totalTime=" +
|
|
|
- gameBean!!.gameTotalTime + "&totalScore=" + gameBean!!.gameTotalScore +
|
|
|
- "&playClass=" + playClass
|
|
|
- Log.e("wpp", "url-------------> "+url)
|
|
|
- Log.e("wpp", "url-------------> "+GsonUtil.GsonString(gameBean))
|
|
|
- ARouter.getInstance().build(RouterUrlCommon.playGame)
|
|
|
- .withString("gameCode", gameCode)
|
|
|
- .withString("playClass", playClass)
|
|
|
- .withString("url", url)
|
|
|
- .withString("gameType", gameBean!!.gameType)
|
|
|
- .withString("gameTotalScore", gameBean!!.gameTotalScore)
|
|
|
- .withString("gameInbetweenImage", gameBean!!.gameInbetweenImage)
|
|
|
- .withString("gameBackgroundImage", gameBean!!.gameBackgroundImage)
|
|
|
- .withString("gameShortDesn", gameBean!!.gameShortDesn)
|
|
|
- .withString("fullFlag", gameBean!!.fullFlag)
|
|
|
- .withString("frameImg", gameBean!!.frameImg)
|
|
|
- .withString("gameName", gameBean!!.gameName)
|
|
|
- .withTransition(R.anim.leftin, R.anim.leftout)
|
|
|
- .navigation(mContext)
|
|
|
+ if (gameBean != null) {
|
|
|
+ isEnterGame = true
|
|
|
+ val url =
|
|
|
+ gameBean!!.gameUrl + "?startLv=" + gameBean!!.gameLevel + "&maxLv=" +
|
|
|
+ gameBean!!.totalNum + "&gameSetTime=" + gameBean!!.gameDuration +
|
|
|
+ "&difficultyRate=" + gameBean!!.gameDifficultyRate + "&totalTime=" +
|
|
|
+ gameBean!!.gameTotalTime + "&totalScore=" + gameBean!!.gameTotalScore +
|
|
|
+ "&playClass=" + playClass
|
|
|
+ Log.e("wpp", "url-------------> " + url)
|
|
|
+ Log.e(
|
|
|
+ "wpp",
|
|
|
+ "url-------------> " + GsonUtil.GsonString(gameBean)
|
|
|
+ )
|
|
|
+ ARouter.getInstance().build(RouterUrlCommon.playGame)
|
|
|
+ .withString("gameCode", gameCode)
|
|
|
+ .withString("playClass", playClass)
|
|
|
+ .withString("url", url)
|
|
|
+ .withString("gameType", gameBean!!.gameType)
|
|
|
+ .withString("gameTotalScore", gameBean!!.gameTotalScore)
|
|
|
+ .withString("gameInbetweenImage", gameBean!!.gameInbetweenImage)
|
|
|
+ .withString("gameBackgroundImage", gameBean!!.gameBackgroundImage)
|
|
|
+ .withString("gameShortDesn", gameBean!!.gameShortDesn)
|
|
|
+ .withString("fullFlag", gameBean!!.fullFlag)
|
|
|
+ .withString("frameImg", gameBean!!.frameImg)
|
|
|
+ .withString("gameName", gameBean!!.gameName)
|
|
|
+ .withTransition(R.anim.leftin, R.anim.leftout)
|
|
|
+ .navigation(mContext)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|