mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 09:21:46 +08:00 
			
		
		
		
	update: add custom currency
This commit is contained in:
		| @@ -102,7 +102,9 @@ class ConfigController extends Controller | ||||
|                     'recaptcha_enable' => (int)config('v2board.recaptcha_enable', 0), | ||||
|                     'recaptcha_key' => config('v2board.recaptcha_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' => [ | ||||
|                     '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), | ||||
|                 'stripe_pk' => config('v2board.stripe_pk_live'), | ||||
|                 '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_site_key' => '', | ||||
|             'tos_url' => 'nullable|url', | ||||
|             'currency' => '', | ||||
|             'currency_symbol' => '', | ||||
|             // subscribe | ||||
|             'plan_change_enable' => 'in:0,1', | ||||
|             '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
											
										
									
								
							
		Reference in New Issue
	
	Block a user