fix(shop): wire order drawer ship/after-sale to live REST

Point OrderDetailDrawer at /shop/shipping and /shop/after-sale with
carrier/tracking_no and amount payloads matching backend contracts.
Map order detail context.buyer/address/shipping/after_sale for the
drawer, and include after-sale reason in summary items.
This commit is contained in:
kate522 committed 2026-07-11 18:03:17 +08:00
1 parent 7dccfcd566
commit 77497b78b4
2 files changed
+63 -23

No files matched your search

+1
View File
@@ -491,6 +491,7 @@ class AKSRT_After_Sale {
'status_label' => (string) ($record['status_label'] ?? ''),
'stage' => is_array($record['stage'] ?? null) ? $record['stage'] : [],
'amount' => (float) ($record['amount'] ?? 0),
'reason' => (string) ($record['reason'] ?? ''),
'created_at' => (string) ($record['created_at'] ?? ''),
'updated_at' => (string) ($record['updated_at'] ?? ''),
'resolved_at' => (string) ($record['resolved_at'] ?? ''),