This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user