fix(pl): sync stop dibang on arrange even when all unchecked.

Ensure cancel/block paths run when every generateDibang option is false.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-09-06 20:16:56 +08:00
1 parent de95549644
commit ca4a5b9fec
2 files changed
+12 -3

No files matched your search

+2 -3
View File
@@ -977,9 +977,8 @@ def arrange_transport(
and plan.plan_type in ("inbound", "outbound")
and payload.generate_dibang_plan
)
should_sync_stop_dibang = use_multi_stop_dibang and any(
item.generate_dibang for item in stop_dibang_options
)
# 有 stop 选项即同步:全 false 也要进 upsert,才能取消勾选 / 已过磅阻断
should_sync_stop_dibang = use_multi_stop_dibang and bool(stop_dibang_options)
if should_sync_stop_dibang or should_sync_legacy_dibang:
try: