2020-05-19 16:49:33 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\User;
|
|
|
|
|
2021-01-08 00:33:11 +08:00
|
|
|
use App\Utils\Dict;
|
2020-05-19 16:49:33 +08:00
|
|
|
use Illuminate\Http\Request;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
|
|
|
|
|
|
class CommController extends Controller
|
|
|
|
{
|
|
|
|
public function config()
|
|
|
|
{
|
|
|
|
return response([
|
|
|
|
'data' => [
|
2021-02-03 18:27:21 +08:00
|
|
|
'is_telegram' => (int)config('v2board.telegram_bot_enable', 0),
|
|
|
|
'stripe_pk' => config('v2board.stripe_pk_live'),
|
2021-02-03 18:17:32 +08:00
|
|
|
'withdraw_methods' => config('v2board.commission_withdraw_method', Dict::WITHDRAW_METHOD_WHITELIST_DEFAULT),
|
|
|
|
'withdraw_close' => (int)config('v2board.withdraw_close_enable', 0)
|
2020-05-19 16:49:33 +08:00
|
|
|
]
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|