mirror of
https://github.com/v2board/v2board.git
synced 2025-02-10 23:49:12 +08:00
fix try out
This commit is contained in:
parent
1f471545d4
commit
2e2a0bf273
@ -70,7 +70,7 @@ class CheckOrder extends Command
|
||||
{
|
||||
$plan = Plan::find($order->plan_id);
|
||||
// change plan process, try out is enable and plan
|
||||
if ((int)$order->type === 3 && (int)config('v2board.try_out_plan_id') !== (int)$user->plan_id) {
|
||||
if ((int)$order->type === 3) {
|
||||
$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