refactor(pay): 将微信支付配置统一收敛至epay插件管理

- epay插件配置:在config.php/config.html中增加微信支付公钥ID、APIv3密钥、回调根域名、转账场景ID等完整字段
- WxPayV3Service:读取微信支付配置时优先从epay插件读取,保留site配置兜底降级能力
- WxLogin与Wxpay:更新配置读取与错误提示说明
- site.php与SQL:系统配置聚焦维护用户端与师傅端小程序AppID与Secret,避免配置分散冲突
这个提交包含在:
2026-11-25 16:12:27 +08:00
父节点 b259c8ec30
当前提交 dd585a32f7
共有 7 个文件被更改,包括 134 次插入 和 52 次删除

查看文件

@@ -52,11 +52,22 @@
</td>
</tr>
<tr>
<td>小程序的app_id</td>
<td>用户端小程序app_id</td>
<td>
<div class="row">
<div class="col-sm-8 col-xs-12">
<input type="text" name="row[wechat][miniapp_id]" value="{$item.value.miniapp_id|default=''|htmlentities}" class="form-control" data-rule="appid" data-tip="仅在小程序支付时使用"/>
<input type="text" name="row[wechat][miniapp_id]" value="{$item.value.miniapp_id|default=''|htmlentities}" class="form-control" data-rule="appid" data-tip="用户端小程序下单支付时使用"/>
</div>
<div class="col-sm-4"></div>
</div>
</td>
</tr>
<tr>
<td>师傅端小程序app_id</td>
<td>
<div class="row">
<div class="col-sm-8 col-xs-12">
<input type="text" name="row[wechat][master_miniapp_id]" value="{$item.value.master_miniapp_id|default=''|htmlentities}" class="form-control" data-rule="appid" data-tip="师傅端小程序商家转账提现收款时使用(与用户端共用同一商户号)"/>
</div>
<div class="col-sm-4"></div>
</div>
@@ -229,12 +240,34 @@
</div>
</td>
</tr>
<tr>
<td>微信回调根域名</td>
<td>
<div class="row">
<div class="col-sm-8 col-xs-12">
<input type="text" name="row[wechat][notify_domain]" value="{$item.value.notify_domain|default=''|htmlentities}" class="form-control" data-rule="" data-tip="APIv3 支付、退款与商家转账异步通知 HTTPS 根域名(如 https://yjyf.gzyakj.com.cn)"/>
</div>
<div class="col-sm-4"></div>
</div>
</td>
</tr>
<tr>
<td>商家转账场景ID</td>
<td>
<div class="row">
<div class="col-sm-8 col-xs-12">
<input type="text" name="row[wechat][transfer_scene_id]" value="{$item.value.transfer_scene_id|default='1005'|htmlentities}" class="form-control" data-rule="" data-tip="新版微信商家转账场景ID(默认 1005 佣金报酬)"/>
</div>
<div class="col-sm-4"></div>
</div>
</td>
</tr>
<tr>
<td>回调通知地址</td>
<td>
<div class="row">
<div class="col-sm-8 col-xs-12">
<input type="text" name="row[wechat][notify_url]" value="{$item.value.notify_url|default=''|htmlentities}" class="form-control" data-rule="" data-tip="请勿随意修改,实际以逻辑代码中请求的为准"/>
<input type="text" name="row[wechat][notify_url]" value="{$item.value.notify_url|default=''|htmlentities}" class="form-control" data-rule="" data-tip="epay 兼容字段,请勿随意修改,实际以 V3 回调根域名拼接路径为准"/>
</div>
<div class="col-sm-4"></div>
</div>