dever 5 years ago
parent
commit
bf49791dc3
1 changed files with 3 additions and 0 deletions
  1. 3 0
      buy/src/Buy.php

+ 3 - 0
buy/src/Buy.php

@@ -114,6 +114,9 @@ class Buy extends Base
         }
         $where['type'] = 4;
         $order = Dever::load('act/order')->getOrder($where['order_id']);
+        if (!$order) {
+            return array();
+        }
         Dever::setInput('set_product_id', $order['product_id']);
         $where['order_id'] = $order['order_id'];
         $data = Dever::db('code/info')->getAll($where);