Kaynağa Gözat

fix order renew

Tokumeikoi 5 yıl önce
ebeveyn
işleme
c817710556

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

@@ -85,11 +85,11 @@ class OrderController extends Controller
             abort(500, '该订阅不存在');
             abort(500, '该订阅不存在');
         }
         }
 
 
-        if (!($plan->show || $user->plan_id == $plan->id)) {
+        if (!$plan->show) {
             abort(500, '该订阅已售罄');
             abort(500, '该订阅已售罄');
         }
         }
 
 
-        if (!$plan->show && !$plan->renew) {
+        if (!$plan->renew) {
             abort(500, '该订阅无法续费,请更换其他订阅');
             abort(500, '该订阅无法续费,请更换其他订阅');
         }
         }