#!/usr/bin/env php 錯誤: 請提供訂單 ID 使用方式: php repair_order_crm.php --id=41040 [選項] 參數說明: --id=<訂單編號> 要補錄的訂單編號 --dry-run 測試模式,不實際寫入 --start-date=<起送日> 調整起送日(格式: YYYY-MM-DD),用於起送日已過期的訂單 --force 強制模式,跳過已處理訂單的確認提示 --simple 簡化模式,只更新關聯和入帳,不建立 CRM 訂單 --hcust-id=<客戶編號> 簡化模式時手動指定 hcust_id(unique_id) --address-book-id=<地址簿> 簡化模式時手動指定 address_book_index 範例: # 測試模式 php repair_order_crm.php --id=41040 --dry-run # 調整起送日為明天,正常建立 CRM 訂單 php repair_order_crm.php --id=41040 --start-date=2026-01-24 # 簡化模式(只更新關聯和入帳) php repair_order_crm.php --id=41040 --simple --hcust-id=30727659 --address-book-id=32161