fix:自动补货更新

This commit is contained in:
2026-11-02 18:30:51 +08:00
parent ce8d99ad95
commit 4dbec33dbd
9 changed files with 197 additions and 20 deletions
@@ -279,6 +279,9 @@ func TestAutoPurchase_FailureCooldown(t *testing.T) {
if cfg.LastAttemptAt == nil {
t.Fatalf("last_attempt_at 未记录")
}
if cfg.LastAutoAttemptAt == nil {
t.Fatalf("last_auto_attempt_at 未记录")
}
if !strings.Contains(cfg.LastError, "调用上游采购接口失败") {
t.Fatalf("last_error 未记录采购失败: %q", cfg.LastError)
}