From 9b5487d2f283dcb4d2a6ff958cb692df05ee1f6b Mon Sep 17 00:00:00 2001 From: Bosen Date: Tue, 1 Jun 2021 14:20:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=AD=E7=89=A9=E8=BD=A6=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E5=BA=93=E5=AD=98=E5=88=A4=E6=96=AD=E9=97=AE=E9=A2=98=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application.yml | 2 +- src/main/resources/templates/user/cart/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 82b1939..73315ff 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,4 +1,4 @@ -site-url: 127.0.0.1 +site-url: 47.115.118.34 server: port: 80 tomcat: diff --git a/src/main/resources/templates/user/cart/index.html b/src/main/resources/templates/user/cart/index.html index e6b462f..e83b03a 100644 --- a/src/main/resources/templates/user/cart/index.html +++ b/src/main/resources/templates/user/cart/index.html @@ -237,7 +237,7 @@ var goodsStock = document.getElementById("goodsStock" + i); var goodsState = document.getElementById("goodsState" + i); var checkbox = document.getElementById("checkbox" + i); - if (goodsStock.value < 1 || goodsStock.value < goodsNum.value || goodsState.value != 1){ + if (goodsStock.value < 1 || BigInt.valueOf(goodsStock.value) < BigInt.valueOf(goodsNum.value) || goodsState.value != 1){ checkbox.checked = false; alert("您的购物车中存在超出库存,或者已下架的商品!"); }