dos 1 сар өмнө
parent
commit
46e0e12447

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

@@ -269,7 +269,7 @@ public class AppUserController extends BaseController
                 appUserService.updateUserAmount(rateTran);*/
             }
             double give = 0;
-            if(userChargeDto.getType() == 1) { //金币充值不赠送
+            if(userChargeDto.getType() == 1 && userChargeDto.getAmount() > 0) { //金币充值不赠送
 //            if(null != userChargeDto.getGiveAmount() && userChargeDto.getGiveAmount() > 0){
                 //今日已赠送金额
                 double todayGiveMoney = appUsersChargeService.isChargeToday(userChargeDto.getUserId(),userChargeDto.getType());