fix(admin): 下线退款重发功能并优化用户详情页布局

- 移除后台订单和支付流水的退款重发按钮及接口
- 新增用户详情页分区导航和资金流水筛选功能
- 升级账号安全页面为企业资质认证功能
- 新增企业资质相关测试用例和图标
- 升级版本号至1.0.96
这个提交包含在:
2026-11-23 08:55:23 +08:00
父节点 230e39df5f
当前提交 d3cd6ba342
共有 18 个文件被更改,包括 231 次插入 和 321 次删除

查看文件

@@ -11,7 +11,7 @@ use think\exception\PDOException;
* 微信支付退款台账
*
* 展示全站微信支付流水(fa_pay_order)的支付/退款状态、网关回执与异常诊断,
* 提供人工同步微信退款状态与重发原路退款入口(复用 PaymentService 防资损校验)。
* 提供人工同步微信退款状态入口。
*
* @icon fa fa-undo
*/
@@ -109,25 +109,7 @@ class PayOrder extends Backend
*/
public function retryrefund($ids = null)
{
$id = (int)$ids;
$po = Db::name('pay_order')->where('id', $id)->find();
if (!$po) {
$this->error(__('No Results were found'));
}
$left = round((float)$po['amount'] - (float)$po['refund_amount'], 2);
if ($left <= 0) {
$this->error('该流水可退余额为 0,无需再次退款');
}
try {
$after = PaymentService::refundSinglePayOrder($id, '平台人工重发原路退款(退款台账)');
PaymentService::syncCancelledOrderRefund((int)$po['order_id']);
} catch (\Throwable $e) {
$this->error('重发退款失败:' . $e->getMessage());
return;
}
$statusLabel = PaymentService::payOrderStatusLabel($after['status'] ?? '');
$refundLabel = PaymentService::refundStatusLabel($after['refund_status'] ?? 'none');
$this->success('退款请求已提交:' . $statusLabel . '(' . $refundLabel . ',累计已退 ¥' . $after['refund_amount'] . ')');
$this->error('退款重发暂不可用:请先核对原退款单及金额,再通过订单售后流程处理');
}
/**
@@ -175,7 +157,7 @@ class PayOrder extends Backend
public function edit($ids = null)
{
$this->error('支付流水不可手工编辑,如需退款请使用行内"同步/重发退款"操作');
$this->error('支付流水不可手工编辑,如需退款请使用订单售后流程');
}
public function del($ids = null)