update: add custom currency

This commit is contained in:
tokumeikoi 2021-11-14 02:43:41 +08:00
parent 9d96d68f12
commit 7b1a8ee5ff
5 changed files with 10 additions and 4 deletions

View File

@ -102,7 +102,9 @@ class ConfigController extends Controller
'recaptcha_enable' => (int)config('v2board.recaptcha_enable', 0), 'recaptcha_enable' => (int)config('v2board.recaptcha_enable', 0),
'recaptcha_key' => config('v2board.recaptcha_key'), 'recaptcha_key' => config('v2board.recaptcha_key'),
'recaptcha_site_key' => config('v2board.recaptcha_site_key'), 'recaptcha_site_key' => config('v2board.recaptcha_site_key'),
'tos_url' => config('v2board.tos_url') 'tos_url' => config('v2board.tos_url'),
'currency' => config('v2board.currency', 'CNY'),
'currency_symbol' => config('v2board.currency_symbol', '¥')
], ],
'subscribe' => [ 'subscribe' => [
'plan_change_enable' => (int)config('v2board.plan_change_enable', 1), 'plan_change_enable' => (int)config('v2board.plan_change_enable', 1),

View File

@ -16,7 +16,9 @@ class CommController extends Controller
'is_telegram' => (int)config('v2board.telegram_bot_enable', 0), 'is_telegram' => (int)config('v2board.telegram_bot_enable', 0),
'stripe_pk' => config('v2board.stripe_pk_live'), 'stripe_pk' => config('v2board.stripe_pk_live'),
'withdraw_methods' => config('v2board.commission_withdraw_method', Dict::WITHDRAW_METHOD_WHITELIST_DEFAULT), 'withdraw_methods' => config('v2board.commission_withdraw_method', Dict::WITHDRAW_METHOD_WHITELIST_DEFAULT),
'withdraw_close' => (int)config('v2board.withdraw_close_enable', 0) 'withdraw_close' => (int)config('v2board.withdraw_close_enable', 0),
'currency' => config('v2board.currency', 'CNY'),
'currency_symbol' => config('v2board.currency_symbol', '¥')
] ]
]); ]);
} }

View File

@ -46,6 +46,8 @@ class ConfigSave extends FormRequest
'recaptcha_key' => '', 'recaptcha_key' => '',
'recaptcha_site_key' => '', 'recaptcha_site_key' => '',
'tos_url' => 'nullable|url', 'tos_url' => 'nullable|url',
'currency' => '',
'currency_symbol' => '',
// subscribe // subscribe
'plan_change_enable' => 'in:0,1', 'plan_change_enable' => 'in:0,1',
'reset_traffic_method' => 'in:0,1,2', 'reset_traffic_method' => 'in:0,1,2',

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long