修复缓存没有更新的问题
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 8m13s

This commit is contained in:
2026-05-11 10:38:52 +08:00
parent 97851c2595
commit a9eaf1d697
5 changed files with 145 additions and 31 deletions

View File

@@ -532,6 +532,7 @@ func (s *Service) AllocateDevices(ctx context.Context, req *dto.AllocateDevicesR
)
return nil, err
}
s.iotCardStore.InvalidateListCountCache(ctx)
s.logDeviceOperation(
ctx,
@@ -729,6 +730,7 @@ func (s *Service) RecallDevices(ctx context.Context, req *dto.RecallDevicesReque
)
return nil, err
}
s.iotCardStore.InvalidateListCountCache(ctx)
s.logDeviceOperation(
ctx,