app.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkAdmin
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: http://demo.thinkadmin.top
  8. // +----------------------------------------------------------------------
  9. // | 开源协议 ( https://mit-license.org )
  10. // +----------------------------------------------------------------------
  11. // | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
  12. // | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
  13. // +----------------------------------------------------------------------
  14. return [
  15. // 应用调试模式
  16. 'app_debug' => true,
  17. // 应用Trace调试
  18. 'app_trace' => false,
  19. // 0按名称成对解析 1按顺序解析
  20. 'url_param_type' => 1,
  21. // 当前 ThinkAdmin 版本号
  22. 'thinkadmin_ver' => 'v5',
  23. 'jwt' => 'collect',
  24. 'jwt_time' => 311040000,
  25. //小程序
  26. 'mini_program' => [
  27. 'app_id' => env('WECHAT_MINI_PROGRAM_APPID', 'wx747acc10bf45d80d'),
  28. 'secret' => env('WECHAT_MINI_PROGRAM_SECRET','a1a88e0f254c10e8d9135f561ad6c586'),
  29. 'token' => env('WECHAT_MINI_PROGRAM_TOKEN', ''),
  30. 'aes_key' => env('WECHAT_MINI_PROGRAM_AES_KEY', ''),
  31. ],
  32. 'wx_pay'=>[
  33. 'app_id'=>'wxd95c7581bdc2d102',//微信appid
  34. 'mch_id'=>'1623872697',//商户号
  35. 'key' =>'BqHXesgP6GHzBmaNWlJShkSsPh2FqgpO',//秘钥
  36. 'cert_path'=>'wx_cert/apiclient_cert.pem', //证书地址
  37. 'key_path' =>'wx_cert/apiclient_key.pem', //证书地址
  38. ],
  39. 'official_account' => [
  40. // AppID
  41. 'appid' => env('WECHAT_OFFICIAL_ACCOUNT_APPID', 'wxd95c7581bdc2d102'),
  42. // AppSecret
  43. 'secret' => env('WECHAT_OFFICIAL_ACCOUNT_SECRET', '886a89d0e92c38afcce0908006570f9f'),
  44. // Token
  45. 'token' => env('WECHAT_OFFICIAL_ACCOUNT_TOKEN', 'your-token'),
  46. // EncodingAESKey
  47. 'aes_key' => env('WECHAT_OFFICIAL_ACCOUNT_AES_KEY', ''),
  48. 'oauth' => [
  49. 'scopes' => array_map('trim',
  50. explode(',', env('WECHAT_OFFICIAL_ACCOUNT_OAUTH_SCOPES', 'snsapi_userinfo'))),
  51. 'callback' => env('WECHAT_OFFICIAL_ACCOUNT_OAUTH_CALLBACK', ''),
  52. ],
  53. ]
  54. ];