修复报错

This commit is contained in:
liaozetao
2024-03-21 15:38:47 +08:00
parent f392ddd9d8
commit db0741f024

View File

@@ -119,6 +119,9 @@ public class LuckyGiftRewardAdminServiceImpl implements LuckyGiftRewardAdminServ
platformValue = gift.getGoldPrice();
}
}
if (platformValue == null) {
platformValue = 0L;
}
admin.setRewardName(rewardName);
admin.setPlatformValue(platformValue);
admin.setExpectValue((rewardRate / ONE_HUNDRED) * platformValue);