dos 1 kuukausi sitten
vanhempi
commit
c699874b0b

+ 2 - 2
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 && userChargeDto.getAmount() > 0 && userChargeDto.getRate() > 0) { //金币充值不赠送
+            if(userChargeDto.getType() == 1  && userChargeDto.getAmount() > 0 && null != userChargeDto.getRate() && userChargeDto.getRate() > 0) { //金币充值不赠送
 //            if(null != userChargeDto.getGiveAmount() && userChargeDto.getGiveAmount() > 0){
                 //今日已赠送金额
                 double todayGiveMoney = appUsersChargeService.isChargeToday(userChargeDto.getUserId(),userChargeDto.getType());
@@ -333,7 +333,7 @@ public class AppUserController extends BaseController
             TencentCloudImUtil.imPushBatchSendMsg(Arrays.asList(String.valueOf(appUsersCharge.getUid())), paramJson.toString());
 
         } catch (Exception e) {
-            log.info("{}充值失败:{}",userChargeDto.getUserId(),e.getMessage());
+            log.info("{}充值失败:{}",userChargeDto.getUserId(),e);
             return  R.fail("充值失败");
         }
         return R.ok("充值成功");