From eb0d4f892be48a17e8107fbb97bba5e7b2e77aa0 Mon Sep 17 00:00:00 2001 From: jiahuiwen Date: Tue, 12 Oct 2021 14:09:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E9=A1=B5=E6=94=AF=E4=BB=98=20?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E8=BD=AC=E6=8D=A2=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ljsd/jieling/logic/store/BuyGoodsNewLogic.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/store/BuyGoodsNewLogic.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/store/BuyGoodsNewLogic.java index 8c0fa7773..1de38462c 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/logic/store/BuyGoodsNewLogic.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/store/BuyGoodsNewLogic.java @@ -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();