统一对账差额阈值使用 amounts.tolerance 配置

This commit is contained in:
萝卜
2026-03-13 11:25:31 +00:00
parent 916796f58e
commit ffbf68679b
3 changed files with 15 additions and 2 deletions

View File

@@ -12,4 +12,11 @@ return [
// 同步失败原因展示截断长度(用于列表/聚合展示,避免撑坏布局)。
'sync_failed_reason_display_truncate_len' => 60,
],
// 金额对账相关配置(统一按分取整后做比较,避免浮点误差)。
'amounts' => [
// 允许的金额差异容差(单位:元),默认 0.01。
// 用于对账不一致、退款不一致等口径判断。
'tolerance' => 0.01,
],
];