dever 2 years ago
parent
commit
e9fbbb491b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/shop/src/Buy.php

+ 2 - 1
app/shop/src/Buy.php

@@ -105,7 +105,8 @@ class Buy extends Core
 		if ($cart) {
 			foreach ($cart as $k => $v) {
 				$goods = Dever::load('goods/lib/info')->getPayInfo($v['goods_id'], $v['sku_id']);
-				if ($goods['status'] == 1) {
+				if ($goods && $goods['status'] == 1) {
+					$this->data['cart'][$i] = $v;
 					$this->data['cart'][$i]['goods'] = $goods;
 
 					$w = array();