fix order renew

This commit is contained in:
Tokumeikoi 2020-02-11 14:03:23 +08:00
parent e07b97b14e
commit 8fafdc9bb5

View File

@ -85,7 +85,7 @@ class OrderController extends Controller
abort(500, '该订阅不存在');
}
if (!$plan->show && !$plan->renew) {
if ((!$plan->show && !$plan->renew) || (!$plan->show && $user->plan_id !== $plan->id)) {
abort(500, '该订阅已售罄');
}