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,8 +78,10 @@ class OrderController extends Controller
}
if ((!$plan->show && !$plan->renew) || (!$plan->show && $user->plan_id !== $plan->id)) {
if ($request->input('cycle') !== 'reset_price') {
abort(500, '该订阅已售罄');
}
}
if (!$plan->renew && $user->plan_id == $plan->id) {
abort(500, '该订阅无法续费,请更换其他订阅');