修复缓存没有更新的问题
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

@@ -382,6 +382,9 @@ func (h *DeviceImportHandler) processBatch(ctx context.Context, task *model.Devi
result.failCount++
continue
}
if len(validCards) > 0 && h.iotCardStore != nil {
h.iotCardStore.InvalidateListCountCache(ctx)
}
for _, slotICCID := range row.SlotICCIDs {
if card, exists := existingCards[slotICCID.ICCID]; exists && !boundCards[slotICCID.ICCID] && card.ShopID == nil {