卡不激活的问题

This commit is contained in:
2026-04-23 16:58:16 +08:00
parent a7f2c4480a
commit c250a47651
4 changed files with 82 additions and 22 deletions

View File

@@ -877,9 +877,7 @@ func (s *Service) RefreshCardDataFromGateway(ctx context.Context, iccid string)
}
}
if err := s.db.WithContext(ctx).Model(&model.IotCard{}).
Where("id = ?", card.ID).
Updates(updates).Error; err != nil {
if err := s.iotCardStore.UpdateFields(ctx, card.ID, updates); err != nil {
return errors.Wrap(errors.CodeInternalError, err, "更新卡数据失败")
}