作者 耿培杰

修改删除订单

... ... @@ -1338,7 +1338,7 @@ class Order extends Api
}
$order = $this->orderModel->where(['id' => $param['order_id']])->find();
if (!$order) $this->error('订单不存在');
if ($order['status'] != -1) $this->error('此订单状态不可删除');
if ($order['status'] != -1 || $order['status'] != 5 || $order['status'] != 8) $this->error('此订单状态不可删除');
$res = $this->orderModel->where('id', $param['order_id'])->delete();
if ($res) $this->success('删除订单成功');
... ...