mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update: add custom currency
This commit is contained in:
parent
9d96d68f12
commit
7b1a8ee5ff
@ -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),
|
||||||
|
@ -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', '¥')
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
@ -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',
|
||||||
|
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
2
public/theme/v2board/assets/umi.js
vendored
2
public/theme/v2board/assets/umi.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user