|
|
@@ -332,6 +332,7 @@ class DiagnosisOrderController
|
|
|
if (!$id) return app('json')->fail('传入订单id!');
|
|
|
$order = DiagnosisOrder::where('id', $id)->where('uid', $request->uid())->find();
|
|
|
if (!$order) return app('json')->fail('订单不存在!');
|
|
|
+ if ($order['status'] > 2) return app('json')->fail('订单已完成无法取消!');
|
|
|
$order['status'] = -1;
|
|
|
$res = $order->save();
|
|
|
|