diff --git a/internal/service/iot_card/stop_resume_service.go b/internal/service/iot_card/stop_resume_service.go index 38ce086..3af1062 100644 --- a/internal/service/iot_card/stop_resume_service.go +++ b/internal/service/iot_card/stop_resume_service.go @@ -762,7 +762,7 @@ func (s *StopResumeService) ManualStopCard(ctx context.Context, iccid string) er } actionCode, summary := stopAuditAction(ctx, constants.StopReasonManual) - if card.RealNameStatus != constants.RealNameStatusVerified { + if !s.isRealnameOK(card) { denyErr := errors.New(errors.CodeForbidden, "卡未实名,无法操作") s.recordCardCommandAudit(ctx, card, actionCode, summary+"被拒绝", constants.AuditResultDenied, "", cardSnapshot(card), nil, denyErr) return denyErr @@ -814,7 +814,7 @@ func (s *StopResumeService) ManualStartCard(ctx context.Context, iccid string) e return denyErr } - if card.RealNameStatus != constants.RealNameStatusVerified { + if !s.isRealnameOK(card) { denyErr := errors.New(errors.CodeForbidden, "卡未实名,无法操作") s.recordCardCommandAudit(ctx, card, actionCode, summary+"被拒绝", constants.AuditResultDenied, "", cardSnapshot(card), nil, denyErr) return denyErr