refactor(pay): 将微信支付配置统一收敛至epay插件管理
- epay插件配置:在config.php/config.html中增加微信支付公钥ID、APIv3密钥、回调根域名、转账场景ID等完整字段 - WxPayV3Service:读取微信支付配置时优先从epay插件读取,保留site配置兜底降级能力 - WxLogin与Wxpay:更新配置读取与错误提示说明 - site.php与SQL:系统配置聚焦维护用户端与师傅端小程序AppID与Secret,避免配置分散冲突
这个提交包含在:
@@ -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>
|
||||
|
||||
@@ -19,24 +19,27 @@ return [
|
||||
'type' => 'array',
|
||||
'content' => [],
|
||||
'value' => [
|
||||
'appid' => 'wx40ca4b02d4d1cb58',
|
||||
'app_id' => 'wx40ca4b02d4d1cb58',
|
||||
'app_secret' => 'f661146ce627e2c57770b7d80164dd65',
|
||||
'miniapp_id' => 'wx40ca4b02d4d1cb58',
|
||||
'mch_id' => '1119105317',
|
||||
'key' => 'ffyqcyyszhdhi398672363efnwvikxlv',
|
||||
'key_v3' => 'ffyqcyyszhdhi398672363efnwvikxlv',
|
||||
'public_key_id' => 'PUB_KEY_ID_0111191053172026102200381630000600',
|
||||
'public_key' => '/addons/epay/certs/public_key.pem',
|
||||
'cert_client' => '/addons/epay/certs/apiclient_cert.pem',
|
||||
'cert_key' => '/addons/epay/certs/apiclient_key.pem',
|
||||
'mode' => 'normal',
|
||||
'sub_mch_id' => '',
|
||||
'sub_appid' => '',
|
||||
'sub_app_id' => '',
|
||||
'sub_miniapp_id' => '',
|
||||
'notify_url' => '/addons/epay/api/notifyx/paytype/wechat',
|
||||
'log' => '1',
|
||||
'appid' => 'wx40ca4b02d4d1cb58',
|
||||
'app_id' => 'wx40ca4b02d4d1cb58',
|
||||
'app_secret' => 'f661146ce627e2c57770b7d80164dd65',
|
||||
'miniapp_id' => 'wx40ca4b02d4d1cb58',
|
||||
'master_miniapp_id' => 'wx140d90ceda786107',
|
||||
'mch_id' => '1119105317',
|
||||
'key' => 'ffyqcyyszhdhi398672363efnwvikxlv',
|
||||
'key_v3' => 'ffyqcyyszhdhi398672363efnwvikxlv',
|
||||
'public_key_id' => 'PUB_KEY_ID_0111191053172026102200381630000600',
|
||||
'public_key' => '/addons/epay/certs/public_key.pem',
|
||||
'cert_client' => '/addons/epay/certs/apiclient_cert.pem',
|
||||
'cert_key' => '/addons/epay/certs/apiclient_key.pem',
|
||||
'mode' => 'normal',
|
||||
'sub_mch_id' => '',
|
||||
'sub_appid' => '',
|
||||
'sub_app_id' => '',
|
||||
'sub_miniapp_id' => '',
|
||||
'notify_domain' => 'https://yjyf.gzyakj.com.cn',
|
||||
'transfer_scene_id' => '1005',
|
||||
'notify_url' => '/addons/epay/api/notifyx/paytype/wechat',
|
||||
'log' => '1',
|
||||
],
|
||||
'rule' => 'required',
|
||||
'msg' => '',
|
||||
|
||||
在新工单中引用
屏蔽一个用户