1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- // +----------------------------------------------------------------------
- // | WeChatDeveloper
- // +----------------------------------------------------------------------
- // | 版权所有 2014~2023 ThinkAdmin [ thinkadmin.top ]
- // +----------------------------------------------------------------------
- // | 官方网站: https://thinkadmin.top
- // +----------------------------------------------------------------------
- // | 开源协议 ( https://mit-license.org )
- // | 免责声明 ( https://thinkadmin.top/disclaimer )
- // +----------------------------------------------------------------------
- // | gitee 代码仓库:https://gitee.com/zoujingli/WeChatDeveloper
- // | github 代码仓库:https://github.com/zoujingli/WeChatDeveloper
- // +----------------------------------------------------------------------
- // 配置缓存处理函数
- //\WeChat\Contracts\Tools::$cache_callable = [
- // 'set' => function ($name, $value, $expired = 360) {
- // var_dump(func_get_args());
- // },
- // 'get' => function ($name) {
- // var_dump(func_get_args());
- // },
- // 'del' => function ($name) {
- // var_dump(func_get_args());
- // },
- // 'put' => function ($name) {
- // var_dump(func_get_args());
- // },
- //];
- return [
- 'token' => 'test',
- 'appid' => 'wx60a43dd8161666d4',
- 'appsecret' => 'b4e28746f1bd73b5c6684f5e01883c36',
- 'encodingaeskey' => 'BJIUzE0gqlWy0GxfPp4J1oPTBmOrNDIGPNav1YFH5Z5',
- // 配置商户支付参数
- 'mch_id' => "1332187001",
- 'mch_key' => 'A82DC5BD1F3359081049C568D8502BC5',
- // 配置商户支付双向证书目录 (p12 | key,cert 二选一,两者都配置时p12优先)
- 'ssl_p12' => __DIR__ . DIRECTORY_SEPARATOR . 'cert' . DIRECTORY_SEPARATOR . '1332187001_20181030_cert.p12',
- // 'ssl_key' => __DIR__ . DIRECTORY_SEPARATOR . 'cert' . DIRECTORY_SEPARATOR . '1332187001_20181030_key.pem',
- // 'ssl_cer' => __DIR__ . DIRECTORY_SEPARATOR . 'cert' . DIRECTORY_SEPARATOR . '1332187001_20181030_cert.pem',
- // 配置缓存目录,需要拥有写权限
- 'cache_path' => '',
- ];
|