From 78d3ebdf11c0e0082e58bc3fcba1384ef9bf5375 Mon Sep 17 00:00:00 2001 From: break Date: Fri, 7 Aug 2026 16:14:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=A1=8C=E4=B8=9A=E5=8D=A1?= =?UTF-8?q?=E6=89=8B=E5=8A=A8=E5=81=9C=E5=A4=8D=E6=9C=BA=E5=AE=9E=E5=90=8D?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/service/iot_card/stop_resume_service.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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