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')}";
         }