mirror of
https://github.com/v2board/v2board.git
synced 2025-02-25 06:40:26 +08:00
update
This commit is contained in:
parent
dc37499df9
commit
d653541ef3
@ -277,6 +277,9 @@ class OrderController extends Controller
|
|||||||
if (!$order) {
|
if (!$order) {
|
||||||
abort(500, '订单不存在');
|
abort(500, '订单不存在');
|
||||||
}
|
}
|
||||||
|
if ($order->status !== 1) {
|
||||||
|
abort(500, '只可以取消待支付订单');
|
||||||
|
}
|
||||||
$order->status = 2;
|
$order->status = 2;
|
||||||
if (!$order->save()) {
|
if (!$order->save()) {
|
||||||
abort(500, '取消失败');
|
abort(500, '取消失败');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user