mirror of
https://github.com/v2board/v2board.git
synced 2025-01-11 00:29:09 +08:00
update
This commit is contained in:
parent
4a01b8f11e
commit
8f35924dee
@ -69,8 +69,8 @@ class CheckOrder extends Command
|
||||
private function buy($order, $user)
|
||||
{
|
||||
$plan = Plan::find($order->plan_id);
|
||||
// change plan process
|
||||
if ($order->type === 3) {
|
||||
// change plan process, try out is enable and plan
|
||||
if ($order->type === 3 && config('v2board.try_out_enable', 0) && config('v2board.try_out_plan_id') !== $user->plan_id) {
|
||||
$transferEnableDifference = $plan->transfer_enable - ($user->transfer_enable / 1073741824);
|
||||
$user->expired_at = $user->expired_at - ($transferEnableDifference * config('v2board.plan_transfer_hour', 12) * 3600);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user