config.php 2.1 KB

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