From 22a950d0a0f337c6879abaaa1d28cd9535f07d84 Mon Sep 17 00:00:00 2001 From: tikkhun Date: Sun, 4 Jan 2026 21:45:58 +0800 Subject: [PATCH] =?UTF-8?q?feat(woocommerce):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=AE=A2=E6=88=B7IP=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 当客户IP地址不存在时,使用空字符串作为默认值 --- src/adapter/woocommerce.adapter.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/adapter/woocommerce.adapter.ts b/src/adapter/woocommerce.adapter.ts index 3fd13c7..b39eff8 100644 --- a/src/adapter/woocommerce.adapter.ts +++ b/src/adapter/woocommerce.adapter.ts @@ -481,6 +481,7 @@ export class WooCommerceAdapter implements ISiteAdapter { ...li, productId: li.product_id, })), + customer_ip_address: item.customer_ip_address ?? '', date_paid: item.date_paid ?? '', utm_source: item?.meta_data?.find(el => el.key === '_wc_order_attribution_utm_source')?.value || '', device_type: item?.meta_data?.find(el => el.key === '_wc_order_attribution_device_type')?.value || '',