- parse_spec 함수 개선: product_name에서도 수량 단위 추출 - 예: '스틸녹스정10mg(PTP) 14T' → spec='10mg'이어도 14T에서 14 추출
7 lines
351 B
Python
7 lines
351 B
Python
import requests
|
|
res = requests.get('http://localhost:7001/api/geoyoung/order-detail/DA2603-0255533', timeout=120)
|
|
data = res.json()
|
|
print('items:', len(data.get('items', [])))
|
|
for item in data.get('items', []):
|
|
print(f" {item.get('product_name')[:20]}: qty={item.get('quantity')}, order_qty={item.get('order_qty')}, amount={item.get('amount')}")
|