产品/客户详情缓存:避免重复调用 select_product/select_customer/find_sender_history

This commit is contained in:
2026-05-15 15:17:13 +08:00
parent bf11957f7c
commit ae43899dbd
+4
View File
@@ -551,6 +551,8 @@ class PickupEngine:
return
if self._product_choice is not None:
if self._product_detail:
return
biz_id = self._product_choice.get("productId", "")
biz_no = self._product_choice.get("bizProductNo", "")
if biz_id and biz_no:
@@ -595,6 +597,8 @@ class PickupEngine:
return
if self._customer_choice is not None:
if self._customer_detail:
return
cust_id = self._customer_choice.get("customerId", "")
if cust_id:
self._customer_detail = self._api.select_customer(str(cust_id))