网页支付 类型转换错误

back_recharge
jiahuiwen 2021-10-12 14:09:21 +08:00
parent 00a7cb0351
commit eb0d4f892b
1 changed files with 1 additions and 1 deletions

View File

@ -352,7 +352,7 @@ public class BuyGoodsNewLogic {
String key = RedisUtil.getInstence().getKey(RedisKey.WEB_PAY, subKey);
// 计算金额
double num = Optional.ofNullable(RedisUtil.getInstence().get(key))
.map(v-> (double)v + price)
.map(v-> Double.parseDouble((String)v) + price)
.orElse(price);
// 明天零点实际是今天的235930
long tomorrowZero = TimeUtils.getTomorrowZero2();