Browse Source

fix try out

Tokumeikoi 5 years ago
parent
commit
2e2a0bf273
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Console/Commands/CheckOrder.php

+ 1 - 1
app/Console/Commands/CheckOrder.php

@@ -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);
         }