zksu
/
API
forked from yoone/API
1
0
Fork 0

feat(woocommerce): 添加订单客户IP地址字段

当客户IP地址不存在时,使用空字符串作为默认值
This commit is contained in:
tikkhun 2026-01-04 21:45:58 +08:00
parent edd91185a1
commit 22a950d0a0
1 changed files with 1 additions and 0 deletions

View File

@ -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 || '',