机卡分离复机判断
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 8m13s

This commit is contained in:
Break
2026-06-05 14:20:58 +08:00
parent 6ac19d6565
commit fe2041bcf5
2 changed files with 6 additions and 3 deletions

View File

@@ -659,9 +659,11 @@ func (s *StopResumeService) resumeCardWithRetry(ctx context.Context, card *model
time.Sleep(s.retryInterval)
}
err := s.gatewayClient.StartCard(ctx, &gateway.CardOperationReq{
CardNo: card.ICCID,
})
req := &gateway.CardOperationReq{CardNo: card.ICCID}
if strings.TrimSpace(card.GatewayExtend) == constants.GatewayCardExtendMachineSeparated {
req.Extend = constants.GatewayCardStartExtendMachineSeparated
}
err := s.gatewayClient.StartCard(ctx, req)
if err == nil {
s.logger.Info("网关复机成功",
zap.Uint("card_id", card.ID),