mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update onetime package
This commit is contained in:
parent
60b197410c
commit
47d8dfd7c8
@ -103,7 +103,7 @@ class CheckOrder extends Command
|
||||
$user->d = 0;
|
||||
$user->plan_id = $plan->id;
|
||||
$user->group_id = $plan->group_id;
|
||||
$user->expired_at = 0;
|
||||
$user->expired_at = NULL;
|
||||
if ($user->save()) {
|
||||
$order->status = 3;
|
||||
$order->save();
|
||||
|
@ -12,7 +12,7 @@ class ServerService
|
||||
->whereRaw('u + d < transfer_enable')
|
||||
->where(function ($query) {
|
||||
$query->where('expired_at', '>=', time())
|
||||
->orWhere('expired_at', 0);
|
||||
->orWhere('expired_at', NULL);
|
||||
})
|
||||
->where('enable', 1)
|
||||
->select([
|
||||
|
@ -8,7 +8,7 @@ class UserService
|
||||
{
|
||||
public function isAvailable(User $user)
|
||||
{
|
||||
if ($user->enable && $user->transfer_enable && ($user->expired_at > time() || $user->expired_at == 0)) {
|
||||
if ($user->enable && $user->transfer_enable && ($user->expired_at > time() || $user->expired_at === NULL)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@ -19,7 +19,7 @@ class UserService
|
||||
return User::whereRaw('u + d < transfer_enable')
|
||||
->where(function ($query) {
|
||||
$query->where('expired_at', '>=', time())
|
||||
->orWhere('expired_at', 0);
|
||||
->orWhere('expired_at', NULL);
|
||||
})
|
||||
->where('enable', 1)
|
||||
->select([
|
||||
|
Loading…
Reference in New Issue
Block a user