mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
remove downgrade
This commit is contained in:
parent
f3ac8a37be
commit
153bdcaad1
@ -34,8 +34,7 @@ class ConfigController extends Controller
|
||||
'email_whitelist_suffix' => config('v2board.email_whitelist_suffix', Dict::EMAIL_WHITELIST_SUFFIX_DEFAULT)
|
||||
],
|
||||
'subscribe' => [
|
||||
'plan_change_enable' => (int)config('v2board.plan_change_enable', 1),
|
||||
'plan_downgrade_enable' => (int)config('v2board.plan_downgrade_enable', 1)
|
||||
'plan_change_enable' => (int)config('v2board.plan_change_enable', 1)
|
||||
],
|
||||
'pay' => [
|
||||
// alipay
|
||||
|
@ -143,7 +143,6 @@ class OrderController extends Controller
|
||||
$order->type = 3;
|
||||
$order->surplus_amount = $this->getSurplusValue($user);
|
||||
if ($order->surplus_amount >= $order->total_amount) {
|
||||
if (!(int)config('v2board.plan_downgrade_enable', 1)) abort(500, '目前不允许降级订阅,请联系管理员');
|
||||
$order->refund_amount = $order->surplus_amount - $order->total_amount;
|
||||
$order->total_amount = 0;
|
||||
} else {
|
||||
|
@ -25,7 +25,6 @@ class ConfigSave extends FormRequest
|
||||
'email_whitelist_suffix' => '',
|
||||
// subscribe
|
||||
'plan_change_enable' => 'in:0,1',
|
||||
'plan_downgrade_enable' => 'in:0,1',
|
||||
// server
|
||||
'server_token' => 'nullable|min:16',
|
||||
'server_license' => 'nullable',
|
||||
|
2
public/assets/admin/umi.js
vendored
2
public/assets/admin/umi.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user