mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-04-06 03:58:03 +08:00
增加运行时缓存路径配置
This commit is contained in:
parent
53f3dce3dd
commit
8630e29773
@ -103,6 +103,10 @@ abstract class BasicWePay
|
||||
throw new InvalidArgumentException('Failed to parse certificate public key');
|
||||
}
|
||||
|
||||
if (!empty($options['cache_path'])) {
|
||||
Tools::$cache_path = $options['cache_path'];
|
||||
}
|
||||
|
||||
// 服务商参数支持
|
||||
// if (!empty($options['sp_appid'])) {
|
||||
// $this->config['sp_appid'] = $options['sp_appid'];
|
||||
|
@ -39,4 +39,6 @@ return [
|
||||
'cert_public' => $certPublic,
|
||||
// 必填,微信商户证书私钥,支持证书内容或文件路径
|
||||
'cert_private' => $certPrivate,
|
||||
// 可选,运行时的文件缓存路径
|
||||
'cache_path' => ''
|
||||
];
|
Loading…
x
Reference in New Issue
Block a user