作者 耿培杰

修改配置

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