* * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ return [ // 'app_id' => 'wx660b94f751a78b61', // 'secret' => '58b3edd89e4d95516cff598e1b60b5d8', //'level' => 'error', //主域名 //'app_url' => env('APP_URL','admin.weilaibike.dev.hanyiyun.com'), // 二维码链接路径 'code_url' => env('WECHAT_CODE_URL', 'http://code.weilaibike.com?no='), /* * 默认配置,将会合并到各模块中 */ 'defaults' => [ /* * 指定 API 调用返回结果的类型:array(default)/collection/object/raw/自定义类名 */ 'response_type' => 'array', /* * 使用 Laravel 的缓存系统 */ 'use_laravel_cache' => true, /* * 日志配置 * * level: 日志级别,可选为: * debug/info/notice/warning/error/critical/alert/emergency * file:日志文件位置(绝对路径!!!),要求可写权限 */ 'log' => [ 'level' => env('WECHAT_LOG_LEVEL', 'debug'), 'file' => env('WECHAT_LOG_FILE', storage_path('logs/wechat.log')), ], ], /* * 路由配置 */ 'route' => [ /* * 开放平台第三方平台路由配置 */ // 'open_platform' => [ // 'uri' => 'serve', // 'action' => Overtrue\LaravelWeChat\Controllers\OpenPlatformController::class, // 'attributes' => [ // 'prefix' => 'open-platform', // 'middleware' => null, // ], // ], ], /* * 公众号 */ 'official_account' => [ 'default' => [ 'app_id' => env('WECHAT_OFFICIAL_ACCOUNT_APPID', 'your-app-id'), // AppID 'secret' => env('WECHAT_OFFICIAL_ACCOUNT_SECRET', 'your-app-secret'), // AppSecret 'token' => env('WECHAT_OFFICIAL_ACCOUNT_TOKEN', 'your-token'), // Token 'aes_key' => env('WECHAT_OFFICIAL_ACCOUNT_AES_KEY', ''), // EncodingAESKey /* * OAuth 配置 * * scopes:公众平台(snsapi_userinfo / snsapi_base),开放平台:snsapi_login * callback:OAuth授权完成后的回调页地址(如果使用中间件,则随便填写。。。) */ // 'oauth' => [ // 'scopes' => array_map('trim', explode(',', env('WECHAT_OFFICIAL_ACCOUNT_OAUTH_SCOPES', 'snsapi_userinfo'))), // 'callback' => env('WECHAT_OFFICIAL_ACCOUNT_OAUTH_CALLBACK', '/examples/oauth_callback.php'), // ], ], ], /* * 开放平台第三方平台 */ // 'open_platform' => [ // 'default' => [ // 'app_id' => env('WECHAT_OPEN_PLATFORM_APPID', ''), // 'secret' => env('WECHAT_OPEN_PLATFORM_SECRET', ''), // 'token' => env('WECHAT_OPEN_PLATFORM_TOKEN', ''), // 'aes_key' => env('WECHAT_OPEN_PLATFORM_AES_KEY', ''), // ], // ], /* * 小程序 */ 'mini_program' => [ 'default' => [ 'app_id' => env('WECHAT_MINI_PROGRAM_APPID', ''), 'secret' => env('WECHAT_MINI_PROGRAM_SECRET', ''), 'token' => env('WECHAT_MINI_PROGRAM_TOKEN', ''), 'aes_key' => env('WECHAT_MINI_PROGRAM_AES_KEY', ''), ], 'message_template' => [ 'to_be_paid' => 'CBp8jWZHVOQBIB7_n4EHuAjmFz2XlIzZY1yjQJESJT0', // 待支付模板 'refund' => 'rV85SkGp7Q508xXz45ycQw8nTN_2VEB7m_GhR-WrCDY', // 退款模板 ] ], /* * 微信支付 */ 'payment' => [ 'default' => [ 'sandbox' => env('WECHAT_PAYMENT_SANDBOX', false), 'app_id' => env('WECHAT_MINI_PROGRAM_APPID', ''), 'mch_id' => env('WECHAT_MINI_PROGRAM_PAY_MCH_ID', ''), 'key' => env('WECHAT_MINI_PROGRAM_PAY_MCH_KEY', ''), 'cert_path' => base_path() . '/yufengjiayun_20200814_cert/apiclient_cert.pem', // XXX: 绝对路径!!!! 'key_path' => base_path() . '/yufengjiayun_20200814_cert/apiclient_key.pem', // XXX: 绝对路径!!!! 'notify_url' => env('APP_API_URL') . '/api/payments/wechat-notify', // 默认支付结果通知地址 ], // 押金退还回调地址 'refund_deposit_notify_url' => env('APP_API_URL') . '/api/payments/wechat-refund-notify', // 此处回调直接使用小程序退款回调 // ... ], /* * 企业微信 */ // 'work' => [ // 'default' => [ // 'corp_id' => 'xxxxxxxxxxxxxxxxx', // 'agent_id' => 100020, // 'secret' => env('WECHAT_WORK_AGENT_CONTACTS_SECRET', ''), // //... // ], // ], ];