|
@@ -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);
|