fix plan off, buy reset package

This commit is contained in:
Tokumeikoi 2020-05-03 19:42:46 +08:00
parent dae5d2a2a3
commit 890626d892

View File

@ -78,7 +78,9 @@ class OrderController extends Controller
} }
if ((!$plan->show && !$plan->renew) || (!$plan->show && $user->plan_id !== $plan->id)) { if ((!$plan->show && !$plan->renew) || (!$plan->show && $user->plan_id !== $plan->id)) {
abort(500, '该订阅已售罄'); if ($request->input('cycle') !== 'reset_price') {
abort(500, '该订阅已售罄');
}
} }
if (!$plan->renew && $user->plan_id == $plan->id) { if (!$plan->renew && $user->plan_id == $plan->id) {