feat: 完善 Rock 发货异常闭环与绑定判定

This commit is contained in:
yml
2026-11-14 23:58:57 +08:00
parent 9353b439a7
commit 6a87fe5228
45 changed files with 3497 additions and 389 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ type RockStaleRefreshResult struct {
// RefreshStaleTokens 定时巡检入口:受「自动刷新」开关控制,关闭时直接跳过。
//
// 与手动「一键刷新」使用同一套扫描规则:绑定错误 + 使用超时 + 绑定超时。
// 与手动「一键刷新」使用同一套扫描规则:绑定错误 + 待绑定超时 + 绑定后未发货。
func (s *RockService) RefreshStaleTokens(ctx context.Context) {
cfg, err := s.GetConfig(ctx)
if err != nil {
@@ -59,7 +59,7 @@ func (s *RockService) RefreshStaleTokens(ctx context.Context) {
result.Scanned, result.Fixed, result.Remaining, result.Failed)
}
// RefreshAllStaleTokens 手动「一键刷新」:绑定错误 + 使用超时 + 绑定超时,
// RefreshAllStaleTokens 手动「一键刷新」:绑定错误 + 待绑定超时 + 绑定后未发货,
// 忽略自动开关,同步执行并返回结果。
func (s *RockService) RefreshAllStaleTokens(ctx context.Context) (*RockStaleRefreshResult, error) {
return s.refreshStaleTokens(ctx)