网页支付 类型转换错误
parent
00a7cb0351
commit
eb0d4f892b
|
|
@ -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);
|
||||
// 明天零点(实际是今天的23:59:30)
|
||||
long tomorrowZero = TimeUtils.getTomorrowZero2();
|
||||
|
|
|
|||
Loading…
Reference in New Issue