<?php

use Illuminate\Support\Facades\Facade;

return [

    'usdt_address' => env('USDT_ADDRESS',''),
    'trx_private_key' => env('TRX_PRIVATE_KEY',''),
    'tron_network' => env('TRON_NETWORK','main'),
    'tron_pro_api_key' => env('TRON_PRO_API_KEY',''),
    'tron_usdt_transfer_fee_limit' => env('TRON_USDT_TRANSFER_FEE_LIMIT', '30'),
    'collect_required_trx_balance' => env('COLLECT_REQUIRED_TRX_BALANCE', '15'),

    // 第三方支付配置
    'tree_payment_merchant_id' => env('TREE_PAYMENT_MERCHANT_ID',''),
    'tree_payment_secret' => env('TREE_PAYMENT_SECRET',''),
    // 第三方收款配置
    'tree_pay_mch_id' => env('TREE_PAY_MCH_ID',''),
    'tree_pay_key' => env('TREE_PAY_MCH_KEY',''),
    // JD钱包支付配置
    'jd_pay_mch_id' => env('JD_PAY_MCH_ID', ''),
    'jd_pay_key' => env('JD_PAY_KEY', ''),
    'jd_pay_gateway' => env('JD_PAY_GATEWAY', 'https://openapi.jdpayapi.com/jdpayOpen/api/pay'),
    'jd_pay_query_gateway' => env('JD_PAY_QUERY_GATEWAY', 'https://openapi.jdpayapi.com/jdpayOpen/api/query/pay-order'),
    'jd_remit_gateway' => env('JD_REMIT_GATEWAY', 'https://openapi.jdpayapi.com/jdpayOpen/api/remit'),
    'jd_remit_query_gateway' => env('JD_REMIT_QUERY_GATEWAY', 'https://openapi.jdpayapi.com/jdpayOpen/api/query/remit-order'),
    'jd_balance_gateway' => env('JD_BALANCE_GATEWAY', 'https://openapi.jdpayapi.com/jdpayOpen/api/balance'),
    'jd_pay_recharge_user_ids' => env('JD_PAY_RECHARGE_USER_IDS', ''),
    // NO钱包支付配置
    'no_pay_deposit_mch_id' => env('NO_PAY_DEPOSIT_MCH_ID', ''),
    'no_pay_deposit_key' => env('NO_PAY_DEPOSIT_KEY', ''),
    'no_pay_withdraw_mch_id' => env('NO_PAY_WITHDRAW_MCH_ID', ''),
    'no_pay_withdraw_key' => env('NO_PAY_WITHDRAW_KEY', ''),
    'no_pay_deposit_gateway' => env('NO_PAY_DEPOSIT_GATEWAY', 'https://payz7x2.qb8.app/order/depositOrderCreate'),
    'no_pay_deposit_query_gateway' => env('NO_PAY_DEPOSIT_QUERY_GATEWAY', 'https://payz7x2.qb8.app/order/depositOrderQuery'),
    'no_pay_withdraw_gateway' => env('NO_PAY_WITHDRAW_GATEWAY', 'https://payz7x2.qb8.app/order/withdrawOrderCreate'),
    'no_pay_recharge_user_ids' => env('NO_PAY_RECHARGE_USER_IDS', ''),
    // ZIMU/808支付配置
    'zimu_pay_app_id' => env('ZIMU_PAY_APP_ID', ''),
    'zimu_pay_key' => env('ZIMU_PAY_KEY', ''),
    'zimu_pay_gateway' => env('ZIMU_PAY_GATEWAY', 'https://api.zimu808.com/api/v1/mch/openapi/order/placeOrder'),
    'zimu_pay_query_gateway' => env('ZIMU_PAY_QUERY_GATEWAY', 'https://api.zimu808.com/api/v1/mch/openapi/order/placeOrderInfo'),
    'zimu_balance_gateway' => env('ZIMU_BALANCE_GATEWAY', 'https://api.zimu808.com/api/v1/mch/openapi/account/balance'),
    'zimu_withdraw_gateway' => env('ZIMU_WITHDRAW_GATEWAY', 'https://api.zimu808.com/api/v1/mch/openapi/order/withdrawOrder'),
    'zimu_withdraw_query_gateway' => env('ZIMU_WITHDRAW_QUERY_GATEWAY', 'https://api.zimu808.com/api/v1/mch/openapi/order/withdrawOrderInfo'),
    'zimu_cash_gateway' => env('ZIMU_CASH_GATEWAY', 'https://api.zimu808.com/api/v1/mch/openapi/cash/placeCash'),
    'zimu_cash_query_gateway' => env('ZIMU_CASH_QUERY_GATEWAY', 'https://api.zimu808.com/api/v1/mch/openapi/cash/cashInfo'),
    'zimu_pay_recharge_user_ids' => env('ZIMU_PAY_RECHARGE_USER_IDS', ''),
    /*
    |--------------------------------------------------------------------------
    | Application Name
    |--------------------------------------------------------------------------
    |
    | This value is the name of your application. This value is used when the
    | framework needs to place the application's name in a notification or
    | any other location as required by the application or its packages.
    |
    */

    'name' => env('APP_NAME', 'Laravel'),

    /*
    |--------------------------------------------------------------------------
    | Application Environment
    |--------------------------------------------------------------------------
    |
    | This value determines the "environment" your application is currently
    | running in. This may determine how you prefer to configure various
    | services the application utilizes. Set this in your ".env" file.
    |
    */

    'env' => env('APP_ENV', 'production'),

    /*
    |--------------------------------------------------------------------------
    | Application Debug Mode
    |--------------------------------------------------------------------------
    |
    | When your application is in debug mode, detailed error messages with
    | stack traces will be shown on every error that occurs within your
    | application. If disabled, a simple generic error page is shown.
    |
    */

    'debug' => (bool)env('APP_DEBUG', false),

    /*
    |--------------------------------------------------------------------------
    | Application URL
    |--------------------------------------------------------------------------
    |
    | This URL is used by the console to properly generate URLs when using
    | the Artisan command line tool. You should set this to the root of
    | your application so that it is used when running Artisan tasks.
    |
    */

//    'url' => (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http') . '://' . (isset($_SERVER['HTTP_HOST'])?$_SERVER['HTTP_HOST']:'localhost'),
    'url' => env('APP_URL', ''),
    'asset_url' => env('ASSET_URL'),


    'jwt_secret' => env('JWT_SECRET', '881FrcXs'),
    'jwt_exp' => env('JWT_EXP', 86400),

    /*
    |--------------------------------------------------------------------------
    | Application Timezone
    |--------------------------------------------------------------------------
    |
    | Here you may specify the default timezone for your application, which
    | will be used by the PHP date and date-time functions. We have gone
    | ahead and set this to a sensible default for you out of the box.
    |
    */

    //'timezone' => 'UTC',
    'timezone' => 'Asia/Shanghai',

    /*
    |--------------------------------------------------------------------------
    | Application Locale Configuration
    |--------------------------------------------------------------------------
    |
    | The application locale determines the default locale that will be used
    | by the translation service provider. You are free to set this value
    | to any of the locales which will be supported by the application.
    |
    */

//    'locale' => 'en',
//    'locale' => 'zh',
    'locale' => isset($_REQUEST['lang']) && $_REQUEST['lang'] == 'en' ? 'en' : 'zh',

    /*
    |--------------------------------------------------------------------------
    | Application Fallback Locale
    |--------------------------------------------------------------------------
    |
    | The fallback locale determines the locale to use when the current one
    | is not available. You may change the value to correspond to any of
    | the language folders that are provided through your application.
    |
    */

    'fallback_locale' => 'en',

    /*
    |--------------------------------------------------------------------------
    | Faker Locale
    |--------------------------------------------------------------------------
    |
    | This locale will be used by the Faker PHP library when generating fake
    | data for your database seeds. For example, this will be used to get
    | localized telephone numbers, street address information and more.
    |
    */

    'faker_locale' => 'en_US',

    /*
    |--------------------------------------------------------------------------
    | Encryption Key
    |--------------------------------------------------------------------------
    |
    | This key is used by the Illuminate encrypter service and should be set
    | to a random, 32 character string, otherwise these encrypted strings
    | will not be safe. Please do this before deploying an application!
    |
    */

    'key' => env('APP_KEY'),

    'cipher' => 'AES-256-CBC',

    /*
    |--------------------------------------------------------------------------
    | Maintenance Mode Driver
    |--------------------------------------------------------------------------
    |
    | These configuration options determine the driver used to determine and
    | manage Laravel's "maintenance mode" status. The "cache" driver will
    | allow maintenance mode to be controlled across multiple machines.
    |
    | Supported drivers: "file", "cache"
    |
    */

    'maintenance' => [
        'driver' => 'file',
        // 'store'  => 'redis',
    ],

    /*
    |--------------------------------------------------------------------------
    | Autoloaded Service Providers
    |--------------------------------------------------------------------------
    |
    | The service providers listed here will be automatically loaded on the
    | request to your application. Feel free to add your own services to
    | this array to grant expanded functionality to your applications.
    |
    */

    'providers' => [

        /*
         * Laravel Framework Service Providers...
         */
        Illuminate\Auth\AuthServiceProvider::class,
        Illuminate\Broadcasting\BroadcastServiceProvider::class,
        Illuminate\Bus\BusServiceProvider::class,
        Illuminate\Cache\CacheServiceProvider::class,
        Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
        Illuminate\Cookie\CookieServiceProvider::class,
        Illuminate\Database\DatabaseServiceProvider::class,
        Illuminate\Encryption\EncryptionServiceProvider::class,
        Illuminate\Filesystem\FilesystemServiceProvider::class,
        Illuminate\Foundation\Providers\FoundationServiceProvider::class,
        Illuminate\Hashing\HashServiceProvider::class,
        Illuminate\Mail\MailServiceProvider::class,
        Illuminate\Notifications\NotificationServiceProvider::class,
        Illuminate\Pagination\PaginationServiceProvider::class,
        Illuminate\Pipeline\PipelineServiceProvider::class,
        Illuminate\Queue\QueueServiceProvider::class,
        Illuminate\Redis\RedisServiceProvider::class,
        Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
        Illuminate\Session\SessionServiceProvider::class,
        Illuminate\Translation\TranslationServiceProvider::class,
        Illuminate\Validation\ValidationServiceProvider::class,
        Illuminate\View\ViewServiceProvider::class,

        /*
         * Package Service Providers...
         */

        /*
         * Application Service Providers...
         */
        App\Providers\AppServiceProvider::class,
        App\Providers\AuthServiceProvider::class,
        // App\Providers\BroadcastServiceProvider::class,
        App\Providers\EventServiceProvider::class,
        App\Providers\RouteServiceProvider::class,

    ],

    /*
    |--------------------------------------------------------------------------
    | Class Aliases
    |--------------------------------------------------------------------------
    |
    | This array of class aliases will be registered when this application
    | is started. However, feel free to register as many as you wish as
    | the aliases are "lazy" loaded so they don't hinder performance.
    |
    */

    'aliases' => Facade::defaultAliases()->merge([
        // 'ExampleClass' => App\Example\ExampleClass::class,
    ])->toArray(),

];
