- docker-compose.prod.yml:挂载 epay-ui.css/js/head.php 补丁到 staging(镜像升级不丢) - docker/nginx.conf:补丁静态资源 no-cache,改版立即生效 - patches/: - test.php 修复 paytype JSON 对象导致测试支付页空白 - epay-ui.css 后台全屏/侧栏加宽/导航两列布局覆盖 - epay-ui.js 去除页面容器宽度限制 + 侧栏当前菜单自动滚动 - head.php 资源 ?v= 版本号强制回源 - functions.php is_public_url 白名单等既有补丁 - plugins/ 支付插件源码 - .gitignore 排除 .env 等敏感与临时文件
39 lines
1.4 KiB
PHP
39 lines
1.4 KiB
PHP
<?php
|
|
//微信支付v3配置文件
|
|
|
|
$wechatpay_config = [
|
|
//应用ID
|
|
'appid' => $channel['appid'],
|
|
|
|
//商户号
|
|
'mchid' => $channel['appmchid'],
|
|
|
|
//APIv3密钥
|
|
'apikey' => $channel['appsecret'],
|
|
|
|
//「商户API私钥」文件路径
|
|
'merchantPrivateKeyFilePath' => PLUGIN_ROOT.$channel['plugin'].'/cert/apiclient_key.pem',
|
|
|
|
//「商户API证书」的「证书序列号」
|
|
'merchantCertificateSerial' => $channel['appkey'],
|
|
|
|
//「微信支付公钥」文件路径
|
|
'platformPublicKeyFilePath' => PLUGIN_ROOT.$channel['plugin'].'/cert/pub_key.pem',
|
|
|
|
//「微信支付平台证书」文件路径
|
|
'platformCertificateFilePath' => PLUGIN_ROOT.$channel['plugin'].'/cert/cert.pem',
|
|
|
|
//微信支付平台公钥ID
|
|
'platformCertificateSerial' => $channel['publickeyid'],
|
|
|
|
//是否国际版商户
|
|
'isGlobal' => true,
|
|
];
|
|
|
|
if(file_exists(PLUGIN_ROOT.$channel['plugin'].'/cert/'.$channel['appmchid'].'/apiclient_key.pem')){
|
|
$wechatpay_config['merchantPrivateKeyFilePath'] = PLUGIN_ROOT.$channel['plugin'].'/cert/'.$channel['appmchid'].'/apiclient_key.pem';
|
|
$wechatpay_config['platformPublicKeyFilePath'] = PLUGIN_ROOT.$channel['plugin'].'/cert/'.$channel['appmchid'].'/pub_key.pem';
|
|
$wechatpay_config['platformCertificateFilePath'] = PLUGIN_ROOT.$channel['plugin'].'/cert/'.$channel['appmchid'].'/cert.pem';
|
|
}
|
|
|
|
return $wechatpay_config; |