mirror of
https://github.com/v2board/v2board.git
synced 2025-01-30 18:19:12 +08:00
update
This commit is contained in:
parent
5f90b80e46
commit
83a0374494
@ -27,14 +27,14 @@ class OrderController extends Controller
|
||||
if ($obj['status'] == 'succeeded') {
|
||||
$order = Order::where('callback_no', $obj['source']['id'])->first();
|
||||
if (!$order) {
|
||||
die('ERROR');
|
||||
abort(500, 'ERROR');
|
||||
}
|
||||
if ($order->status !== 0) {
|
||||
die('SUCCESS');
|
||||
}
|
||||
$order->status = 1;
|
||||
if (!$order->save()) {
|
||||
die('ERROR');
|
||||
abort(500, 'ERROR');
|
||||
}
|
||||
die('SUCCESS');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user