Commit 8b87361
任官自動填充:修正二字地名 name 被錯誤剝離為單字的問題 (#972)
* 任官自動填充:修正二字地名 name 被錯誤剝離為單字的問題
AI 解析「黃縣」等二字地名時,可能將 name 剝離為單字(黃)而非保留完整
地名(黃縣)。同時在 prompt 與程式碼層面修正:
- 擴展 prompt 中二字地名規則,涵蓋縣、郡等所有行政區劃類型
- 新增 normalizeAddrName() 在程式端防護,確保 name 為單字時自動補回 admin_type
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* style: 修正 PHP CS Fixer 格式問題
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent babdb08 commit 8b87361
2 files changed
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
| 355 | + | |
355 | 356 | | |
356 | 357 | | |
357 | 358 | | |
| |||
659 | 660 | | |
660 | 661 | | |
661 | 662 | | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
662 | 679 | | |
663 | 680 | | |
664 | 681 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
| 128 | + | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
| |||
0 commit comments