mirror of
https://github.com/v2board/v2board.git
synced 2025-02-10 23:49:12 +08:00
fix client onetime
This commit is contained in:
parent
96f562a9e7
commit
03e0b5d087
@ -57,7 +57,7 @@ class AppController extends Controller
|
||||
abort(500, '参数错误');
|
||||
}
|
||||
$user = $request->user;
|
||||
if ($user->expired_at < time()) {
|
||||
if ($user->expired_at < time() || $user->expired_at !== NULL) {
|
||||
abort(500, '订阅计划已过期');
|
||||
}
|
||||
$server = Server::where('show', 1)
|
||||
|
20
app/Services/OrderService.php
Normal file
20
app/Services/OrderService.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services;
|
||||
|
||||
use App\Models\Order;
|
||||
|
||||
class OrderService
|
||||
{
|
||||
public $order;
|
||||
|
||||
public function __construct(Order $order)
|
||||
{
|
||||
$this->order = $order;
|
||||
}
|
||||
|
||||
public function cancel()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user