Tokumeikoi 5 years ago
parent
commit
b4bede869d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/User/OrderController.php

+ 1 - 1
app/Http/Controllers/User/OrderController.php

@@ -189,7 +189,7 @@ class OrderController extends Controller
         $order->total_amount = $order->total_amount - $order->discount_amount;
         // discount end
         // renew and change subscribe process
-        if ($order->plan_id !== $user->plan_id) {
+        if ($user->plan_id !== NULL && $order->plan_id !== $user->plan_id) {
             if (!(int)config('v2board.plan_change_enable', 1)) abort(500, '目前不允许更改订阅,请联系管理员');
             $order->type = 3;
             $order->surplus_amount = $this->getSurplusValue($user);