|
@@ -22,7 +22,7 @@ class Api extends Base
|
|
|
{
|
|
|
$id = Dever::input('id', false, '> 0', '请传入正确的产品id');
|
|
|
|
|
|
- $this->data['product'] = Dever::db('service/product')->one($id);
|
|
|
+ $this->data['product'] = Dever::db('product/info')->one($id);
|
|
|
|
|
|
return $this->data;
|
|
|
}
|
|
@@ -31,7 +31,7 @@ class Api extends Base
|
|
|
public function order()
|
|
|
{
|
|
|
# 订单列表
|
|
|
- $this->data['order'] = Dever::db('service/order')->getAll(array('uid' => $this->data['uid']));
|
|
|
+ $this->data['order'] = Dever::db('product/order')->getAll(array('uid' => $this->data['uid']));
|
|
|
|
|
|
if ($this->data['order']) {
|
|
|
foreach ($this->data['order'] as $k => $v) {
|
|
@@ -46,7 +46,7 @@ class Api extends Base
|
|
|
{
|
|
|
$order = $v;
|
|
|
$order['del_status'] = 1;
|
|
|
- $order['product'] = Dever::db('service/product')->one($v['product_id']);
|
|
|
+ $order['product'] = Dever::db('product/info')->one($v['product_id']);
|
|
|
if (!$order['product']) {
|
|
|
$order['del_status'] = 2;
|
|
|
}
|