微调
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -31,6 +31,7 @@ import java.util.Map;
|
||||
|
||||
import static com.njcn.msgpush.framework.common.pojo.CommonResult.success;
|
||||
|
||||
|
||||
@Tag(name = "管理后台 - 渠道服务商")
|
||||
@Slf4j
|
||||
@Validated
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user