This commit is contained in:
root
2019-11-24 23:21:29 +08:00
parent 82146a79b8
commit b37714cf3e
3 changed files with 7 additions and 1 deletions

View File

@ -72,6 +72,8 @@ class OrderController extends Controller
$order->total_amount = $plan[$request->input('cycle')];
if ($user->expired_at > time() && $order->plan_id !== $user->plan_id) {
$order->type = 3;
if ($plan->transfer_enable * 1073741824 < $user->transfer_enable) abort(500, '目前仅允许升级订阅计划');
} else if ($user->expired_at > time() && $order->plan_id == $user->plan_id) {
$order->type = 2;
} else {