Răsfoiți Sursa

盲豆余额数

chunping 3 ani în urmă
părinte
comite
8151d4ec47

+ 2 - 2
mp-service/src/main/java/com/qs/mp/user/service/impl/UserCoinServiceImpl.java

@@ -46,7 +46,7 @@ public class UserCoinServiceImpl extends ServiceImpl<UserCoinMapper, UserCoin> i
     UserCoinLog userCoinLog = new UserCoinLog();
     userCoinLog.setUserId(userId);
     userCoinLog.setType(CoinLogTypeEnum.PRIZE);
-    userCoinLog.setMoney(userCoin.getCoin() + logCoin);
+    userCoinLog.setMoney(userCoin.getCoin());
     userCoinLog.setLogMoney(logCoin);
     userCoinLog.setIncomeExpense(CoinLogTypeEnum.INCOME);
     userCoinLog.setLogText("盲票奖品");
@@ -67,7 +67,7 @@ public class UserCoinServiceImpl extends ServiceImpl<UserCoinMapper, UserCoin> i
     UserCoinLog userCoinLog = new UserCoinLog();
     userCoinLog.setUserId(userId);
     userCoinLog.setType(CoinLogTypeEnum.EXCHANGE);
-    userCoinLog.setMoney(userCoin.getCoin() - logCoin);
+    userCoinLog.setMoney(userCoin.getCoin());
     userCoinLog.setLogMoney(0 - logCoin);
     userCoinLog.setIncomeExpense(CoinLogTypeEnum.EXPENSES);
     userCoinLog.setLogText("兑换商品");