部署仓库初始化:epay 部署配置、补丁与插件
- 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 等敏感与临时文件
This commit is contained in:
commit
b7613ba082
176 files changed
+47057
No files matched your search
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
$qqpay_config = [
|
||||
//商户号
|
||||
'mchid' => $channel['appid'],
|
||||
|
||||
//商户API密钥
|
||||
'apikey' => $channel['appkey'],
|
||||
|
||||
//公众号APPID(可空)
|
||||
'appid' => '',
|
||||
|
||||
//操作员账号(仅退款、撤销订单、企业付款时需要)
|
||||
//创建操作员说明:https://kf.qq.com/faq/170112AZ7Fzm170112VNz6zE.html
|
||||
'op_userid' => $channel['appurl'],
|
||||
|
||||
//操作员密码
|
||||
'op_userpwd' => $channel['appmchid'],
|
||||
|
||||
//商户证书路径(仅退款、撤销订单、企业付款时需要)
|
||||
'sslcert_path' => PLUGIN_ROOT.$channel['plugin'].'/cert/apiclient_cert.pem',
|
||||
|
||||
//商户证书私钥路径
|
||||
'sslkey_path' => PLUGIN_ROOT.$channel['plugin'].'/cert/apiclient_key.pem',
|
||||
];
|
||||
|
||||
if(file_exists(PLUGIN_ROOT.$channel['plugin'].'/cert/'.$channel['appid'].'/apiclient_cert.pem') && file_exists(PLUGIN_ROOT.$channel['plugin'].'/cert/'.$channel['appid'].'/apiclient_key.pem')){
|
||||
$qqpay_config['sslcert_path'] = PLUGIN_ROOT.$channel['plugin'].'/cert/'.$channel['appid'].'/apiclient_cert.pem';
|
||||
$qqpay_config['sslkey_path'] = PLUGIN_ROOT.$channel['plugin'].'/cert/'.$channel['appid'].'/apiclient_key.pem';
|
||||
}
|
||||
|
||||
return $qqpay_config;
|
||||
Reference in new issue
Block a user