mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
23 lines
647 B
PHP
23 lines
647 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\User;
|
|
|
|
use App\Utils\Dict;
|
|
use Illuminate\Http\Request;
|
|
use App\Http\Controllers\Controller;
|
|
|
|
class CommController extends Controller
|
|
{
|
|
public function config()
|
|
{
|
|
return response([
|
|
'data' => [
|
|
'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)
|
|
]
|
|
]);
|
|
}
|
|
}
|