From 585f77c8700a9f1c25dd96d3e33e1e33225cf60e Mon Sep 17 00:00:00 2001
From: anyv <anyu@bronet.cn>
Date: Wed, 5 Jun 2019 14:43:26 +0800
Subject: [PATCH] 8

---
 public/themes/simpleboot3/portal/shopcart/shop_cart.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/public/themes/simpleboot3/portal/shopcart/shop_cart.html b/public/themes/simpleboot3/portal/shopcart/shop_cart.html
index 03c7239..a860d4a 100644
--- a/public/themes/simpleboot3/portal/shopcart/shop_cart.html
+++ b/public/themes/simpleboot3/portal/shopcart/shop_cart.html
@@ -137,10 +137,10 @@
         for(i=0;i<ids.length;i++){
             goods_id[i] = ids[i].dataset.id;
         }
-        goods_id = goods_id.join(',');
-        if(goods_id == ','){
+        if(empty(goods_id)){
             alert('不能为空');
         }else{
+            goods_id = goods_id.join(',');
             window.location.href = "{:url('Orderpage/order_page')}";
         }
 
--
libgit2 0.24.0