From f44180d06cfeb5ccbf6f66e3fda0493e7abb1402 Mon Sep 17 00:00:00 2001 From: kate522 Date: Wed, 7 Oct 2026 08:36:03 +0000 Subject: [PATCH] =?UTF-8?q?feat(admin):=20=E5=94=AE=E5=90=8E=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E8=A1=A8=E6=A0=BC=E6=96=B0=E5=A2=9E=E3=80=8C=E4=B8=BE?= =?UTF-8?q?=E8=AF=81=E5=9B=BE=E7=89=87=E3=80=8D=E5=88=97=EF=BC=8C=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E7=94=B3=E8=AF=B7=E4=B8=8A=E4=BC=A0=E7=9A=84=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E7=BC=A9=E7=95=A5=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Admin/Native/PayOrders.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/Admin/Native/PayOrders.php b/src/Admin/Native/PayOrders.php index 8e2246bd..66642f7a 100644 --- a/src/Admin/Native/PayOrders.php +++ b/src/Admin/Native/PayOrders.php @@ -401,8 +401,8 @@ class PayOrders { foreach ([\AKSRT\Payment\AfterSaleService::STATUS_PENDING => '待审核', \AKSRT\Payment\AfterSaleService::STATUS_PROCESSING => '处理中', \AKSRT\Payment\AfterSaleService::STATUS_APPROVED => '已通过', \AKSRT\Payment\AfterSaleService::STATUS_REJECTED => '已拒绝', \AKSRT\Payment\AfterSaleService::STATUS_CANCELLED => '已取消', \AKSRT\Payment\AfterSaleService::STATUS_COMPLETED => '已完成'] as $key => $label) echo ''; echo ' '; submit_button(__('筛选', 'aksrt'), 'secondary', '', false); - echo ''; - if (!$items) echo ''; + echo '
ID订单号用户原因申请资料申请说明退款金额状态操作 / 处理记录
' . esc_html__('暂无售后申请', 'aksrt') . '
'; + if (!$items) echo ''; foreach ($items as $item) { $id = (int) $item['id']; $number = (string) $item['order_number']; $uid = (int) $item['user_id']; $user = $uid > 0 ? get_userdata($uid) : null; @@ -430,7 +430,13 @@ class PayOrders { $materials_cell = '—'; $desc_cell = '—'; } - echo '
ID订单号用户原因申请资料申请说明举证图片退款金额状态操作 / 处理记录
' . esc_html__('暂无售后申请', 'aksrt') . '
' . esc_html((string) $id) . '
' . esc_html((string) ($item['created_at'] ?? '')) . '
' . esc_html($number) . '
' . esc_html($type_label) . ($order ? ' · ' . esc_html(\AKSRT\Payment\UserOrders::get_instance()->decorate_order_view($order, false)['product_name'] ?? '') : '') . '
' . esc_html($user ? $user->display_name . ' (#' . $uid . ')' : '#' . $uid) . '' . $reason_cell . '' . $materials_cell . '' . $desc_cell . '' . esc_html($refund_amount) . '' . esc_html($status_labels[(string) $item['status']] ?? (string) $item['status']) . ''; + $image_urls = array_values(array_filter((array) ($item['images'] ?? []), 'is_string')); + $thumbs = []; + foreach ($image_urls as $url) { + $thumbs[] = ''; + } + $images_cell = $thumbs ? implode('', $thumbs) : '—'; + echo '
' . esc_html((string) $id) . '
' . esc_html((string) ($item['created_at'] ?? '')) . '
' . esc_html($number) . '
' . esc_html($type_label) . ($order ? ' · ' . esc_html(\AKSRT\Payment\UserOrders::get_instance()->decorate_order_view($order, false)['product_name'] ?? '') : '') . '
' . esc_html($user ? $user->display_name . ' (#' . $uid . ')' : '#' . $uid) . '' . $reason_cell . '' . $materials_cell . '' . $desc_cell . '' . $images_cell . '' . esc_html($refund_amount) . '' . esc_html($status_labels[(string) $item['status']] ?? (string) $item['status']) . ''; if ((string) $item['status'] === 'pending') foreach (['approve' => '通过', 'reject' => '拒绝'] as $decision => $label) { echo '
'; wp_nonce_field('aksrt_after_sale_review_' . $id); echo '
'; }