|
@@ -272,8 +272,8 @@ public class AppUserController extends BaseController
|
|
//流水 余额
|
|
//流水 余额
|
|
FinTranAddedInfo addedInfo = FinTranAddedInfo.createTranInfo(appUser.getUserid(), 0, 0, AppSceneType.Scene_None, "");
|
|
FinTranAddedInfo addedInfo = FinTranAddedInfo.createTranInfo(appUser.getUserid(), 0, 0, AppSceneType.Scene_None, "");
|
|
FinTranRecord tran = null;
|
|
FinTranRecord tran = null;
|
|
- tran = FinTranRecord.initFinTranRecordSomeParams(addedInfo, FinTranType3.CHARGE_IN_Back, FinTranType1.U_Income_Coin_Balance, appUser);
|
|
|
|
- tran.setDiamondCoinChange(withdrawDto.getAmount());
|
|
|
|
|
|
+ tran = FinTranRecord.initFinTranRecordSomeParams(addedInfo, FinTranType3.CONSUM_GAME_ANCHOR_WITHDRAW, withdrawDto.getAmount()<0?FinTranType1.U_Income_Coin_Balance:FinTranType1.U_Outcome_Balance, appUser);
|
|
|
|
+ tran.setDiamondCoinChange(withdrawDto.getAmount()*-1);
|
|
tran.setAfterDiamondCoin(appUser.getDiamondCoin());
|
|
tran.setAfterDiamondCoin(appUser.getDiamondCoin());
|
|
tran.setCurrencyType(TranCurrencyType.Balance.getType());
|
|
tran.setCurrencyType(TranCurrencyType.Balance.getType());
|
|
tran.setTranGroupId(IdUtil.getSnowflakeNextId());
|
|
tran.setTranGroupId(IdUtil.getSnowflakeNextId());
|