mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
fix order renew
This commit is contained in:
parent
e07b97b14e
commit
8fafdc9bb5
@ -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, '该订阅已售罄');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user