This commit is contained in:
caozehui
2026-03-04 20:37:48 +08:00
parent cfa3f1759c
commit b048ecfc53
4 changed files with 5 additions and 4 deletions

View File

@@ -127,7 +127,7 @@ public class TelecomSmsSender implements SmsSender {
this.getDownInfo(mid);
this.scheduledExecutorService.shutdown();
this.scheduledExecutorService = null;
}, 2, TimeUnit.SECONDS);
}, 10, TimeUnit.SECONDS);
return true;
} else {
ProviderErrorCodeMappingDO providerErrorCodeMappingDO = this.sender.providerErrorCodeMappingService.getByProviderErrorCode(message.getProviderType(), message.getChannel(), telecomSmsSendResponse.list.get(0).result + "");
@@ -217,7 +217,7 @@ public class TelecomSmsSender implements SmsSender {
headers,
String.class
);
System.out.println(JSON.toJSONString(response.getBody()));
System.out.println(JSON.toJSONString(JSON.toJSONString(response)));
if (response.getStatusCode() == HttpStatus.OK) {
TelecomSmsSelectResponse telecomSmsSelectResponse = JSON.parseObject(response.getBody(), TelecomSmsSelectResponse.class);

View File

@@ -31,6 +31,7 @@ import java.util.Map;
import static com.njcn.msgpush.framework.common.pojo.CommonResult.success;
@Tag(name = "管理后台 - 渠道服务商")
@Slf4j
@Validated

View File

@@ -12,7 +12,7 @@ import java.time.LocalDateTime;
* @data 2026-03-04
*/
@Data
@TableName("push_message_retry_queue")
@TableName("push_message_retry_history")
@EqualsAndHashCode(callSuper = true)
public class MessageRetryHistoryDO extends BaseDO {
private Integer id;

View File

@@ -14,7 +14,7 @@ import org.springframework.stereotype.Service;
public class MessageRetryHistoryServiceImpl extends ServiceImpl<MessageRetryHistoryMapper, MessageRetryHistoryDO> implements MessageRetryHistoryService {
@Override
public boolean add(MessageRetryHistoryDO messageRetryHistoryDO) {
return this.add(messageRetryHistoryDO);
return this.save(messageRetryHistoryDO);
}
public Integer getMaxRetrySequence(String messageId) {