CommController.php 560 B

123456789101112131415161718192021
  1. <?php
  2. namespace App\Http\Controllers\User;
  3. use App\Utils\Dict;
  4. use Illuminate\Http\Request;
  5. use App\Http\Controllers\Controller;
  6. class CommController extends Controller
  7. {
  8. public function config()
  9. {
  10. return response([
  11. 'data' => [
  12. 'isTelegram' => (int)config('v2board.telegram_bot_enable', 0),
  13. 'stripePk' => config('v2board.stripe_pk_live'),
  14. 'withdraw_methods' => config('v2board.commission_withdraw_method', Dict::WITHDRAW_METHOD_WHITELIST_DEFAULT)
  15. ]
  16. ]);
  17. }
  18. }