作者 耿培杰

修改删除订单

@@ -1483,7 +1483,7 @@ class Order extends Api @@ -1483,7 +1483,7 @@ class Order extends Api
1483 { 1483 {
1484 $user_id = $this->getUserId(); 1484 $user_id = $this->getUserId();
1485 $order_id = $this->request->param('order_id'); 1485 $order_id = $this->request->param('order_id');
1486 - $orderModel = new Order(); 1486 + $orderModel = new \app\api\model\Order();
1487 $where['user_id'] = ['eq', $user_id]; 1487 $where['user_id'] = ['eq', $user_id];
1488 $where['id'] = ['eq', $order_id]; 1488 $where['id'] = ['eq', $order_id];
1489 $data = $orderModel->where($where)->field('shipper_code,logistic_code')->find(); 1489 $data = $orderModel->where($where)->field('shipper_code,logistic_code')->find();