Commit d7dab450 authored by 张释方's avatar 张释方

骰子优化

parent 52aaa9c8
......@@ -40,7 +40,6 @@ class ShaiziActivity : BaseActivity(), View.OnClickListener, ShaiziView {
.append("(奖励以金币形式发放),若没有猜中则本次提现金币回收。")
.create()
tv2.text = spannable
initListener()
}
override fun onResume() {
......@@ -89,10 +88,12 @@ class ShaiziActivity : BaseActivity(), View.OnClickListener, ShaiziView {
6 -> Glide.with(context).load(R.mipmap.iv_tx_sz6).into(iv_saizi);
}
if (success == 1) {
showresultDialog("恭喜您!", "本次开奖结果为小,您的收益已翻倍!", true)
if(success==1){
if(shaiziFlag==1) showresultDialog("恭喜您!", "本次开奖结果为大,您的收益已翻倍!",true)//猜的是大
else showresultDialog("恭喜您!", "本次开奖结果为小,您的收益已翻倍!",true)//猜的是小
} else {
showresultDialog("很遗憾!", "本次开奖结果为大,您未中奖,金币已收回。", false)
if (shaiziFlag===1) showresultDialog("很遗憾!", "本次开奖结果为小,您未中奖,金币已收回。",false)
else showresultDialog("很遗憾!", "本次开奖结果为大,您未中奖,金币已收回。",false)
}
// if (shaiziFlag == 1) {
// if (count >= 4) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment