mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update
This commit is contained in:
parent
d653541ef3
commit
09e31dc70b
@ -55,9 +55,13 @@ class OrderController extends Controller
|
||||
}
|
||||
|
||||
private function isExistNotPayOrderByUserId ($userId) {
|
||||
return Order::where('status', 1)
|
||||
$order = Order::where('status', 1)
|
||||
->where('user_id', $userId)
|
||||
->first();
|
||||
if (!$order) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public function save (OrderSave $request) {
|
||||
|
Loading…
Reference in New Issue
Block a user