config.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | WeChatDeveloper
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2014~2020 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: http://think.ctolog.com
  8. // +----------------------------------------------------------------------
  9. // | 开源协议 ( https://mit-license.org )
  10. // +----------------------------------------------------------------------
  11. // | github开源项目:https://github.com/zoujingli/WeChatDeveloper
  12. // +----------------------------------------------------------------------
  13. // 配置缓存处理函数
  14. //\WeChat\Contracts\Tools::$cache_callable = [
  15. // 'set' => function ($name, $value, $expired = 360) {
  16. // var_dump(func_get_args());
  17. // },
  18. // 'get' => function ($name) {
  19. // var_dump(func_get_args());
  20. // },
  21. // 'del' => function ($name) {
  22. // var_dump(func_get_args());
  23. // },
  24. // 'put' => function ($name) {
  25. // var_dump(func_get_args());
  26. // },
  27. //];
  28. return [
  29. 'token' => 'test',
  30. 'appid' => 'wx60a43dd8161666d4',
  31. 'appsecret' => 'b4e28746f1bd73b5c6684f5e01883c36',
  32. 'encodingaeskey' => 'BJIUzE0gqlWy0GxfPp4J1oPTBmOrNDIGPNav1YFH5Z5',
  33. // 配置商户支付参数
  34. 'mch_id' => "1332187001",
  35. 'mch_key' => 'A82DC5BD1F3359081049C568D8502BC5',
  36. // 配置商户支付双向证书目录 (p12 | key,cert 二选一,两者都配置时p12优先)
  37. 'ssl_p12' => __DIR__ . DIRECTORY_SEPARATOR . 'cert' . DIRECTORY_SEPARATOR . '1332187001_20181030_cert.p12',
  38. // 'ssl_key' => __DIR__ . DIRECTORY_SEPARATOR . 'cert' . DIRECTORY_SEPARATOR . '1332187001_20181030_key.pem',
  39. // 'ssl_cer' => __DIR__ . DIRECTORY_SEPARATOR . 'cert' . DIRECTORY_SEPARATOR . '1332187001_20181030_cert.pem',
  40. // 配置缓存目录,需要拥有写权限
  41. 'cache_path' => '',
  42. ];