Selaa lähdekoodia

修改金币下注类型判断

kk 1 kuukausi sitten
vanhempi
commit
1b015923d0

+ 8 - 1
game-business/src/main/java/com/game/business/controller/AppGameBettingController.java

@@ -412,10 +412,17 @@ public class AppGameBettingController extends BaseController{
             finTranRecord.setSceneType(0L);
 
             finTranRecord.setTranGroupId(gameBetting.getId());
-            finTranRecord.setTranType1(FinTranType1.U_Outcome_Balance.getType());
+
+            if(gameBetting.getBettingType() == 0){
+                finTranRecord.setTranType1(FinTranType1.U_Outcome_Balance.getType());
+            }else{
+                finTranRecord.setTranType1(FinTranType1.U_Outcome_Coin.getType());
+            }
+
             finTranRecord.setTranType2(FinTranType2.CONSUM_GAME.getType());
             finTranRecord.setTranType3(FinTranType3.CONSUM_GAME_ANCHOR_ZHUANPAN.getType());
 
+
             finTranRecord.setRemarks("游戏下注");
 
             finTranRecord.setConsumptionCoin(gameBetting.getBettingAmount());