315 Star 2K Fork 471

GVPAnyon / WeChatDeveloper

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
config.php 2.09 KB
一键复制 编辑 原始数据 按行查看 历史
Anyon 提交于 2023-12-31 21:09 . 批量修改注释
<?php
// +----------------------------------------------------------------------
// | WeChatDeveloper
// +----------------------------------------------------------------------
// | 版权所有 2014~2024 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' => '',
];
PHP
1
https://gitee.com/zoujingli/WeChatDeveloper.git
git@gitee.com:zoujingli/WeChatDeveloper.git
zoujingli
WeChatDeveloper
WeChatDeveloper
master

搜索帮助