mirror of
https://github.com/v2board/v2board.git
synced 2025-03-13 06:04:42 +08:00
update
This commit is contained in:
parent
09e31dc70b
commit
afc9d64aab
@ -55,7 +55,7 @@ class OrderController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
private function isExistNotPayOrderByUserId ($userId) {
|
private function isExistNotPayOrderByUserId ($userId) {
|
||||||
$order = Order::where('status', 1)
|
$order = Order::where('status', 0)
|
||||||
->where('user_id', $userId)
|
->where('user_id', $userId)
|
||||||
->first();
|
->first();
|
||||||
if (!$order) {
|
if (!$order) {
|
||||||
@ -281,7 +281,7 @@ class OrderController extends Controller
|
|||||||
if (!$order) {
|
if (!$order) {
|
||||||
abort(500, '订单不存在');
|
abort(500, '订单不存在');
|
||||||
}
|
}
|
||||||
if ($order->status !== 1) {
|
if ($order->status !== 0) {
|
||||||
abort(500, '只可以取消待支付订单');
|
abort(500, '只可以取消待支付订单');
|
||||||
}
|
}
|
||||||
$order->status = 2;
|
$order->status = 2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user