修复,云片短信无限重试问题

This commit is contained in:
wind 2025-02-26 19:16:39 +08:00
parent aeecaaa8f5
commit 8498fafa65

View File

@ -92,7 +92,7 @@ public class YunPianSmsImpl extends AbstractSmsBlend<YunpianConfig> {
try { try {
smsResponse = getResponse(http.postFrom(Constant.YUNPIAN_URL + "/sms/tpl_single_send.json", headers, body)); smsResponse = getResponse(http.postFrom(Constant.YUNPIAN_URL + "/sms/tpl_single_send.json", headers, body));
} catch (SmsBlendException e) { } catch (SmsBlendException e) {
return requestRetry(phone, templateId, messages); smsResponse = errorResp(e.message);
} }
if (smsResponse.isSuccess() || retry == getConfig().getMaxRetries()) { if (smsResponse.isSuccess() || retry == getConfig().getMaxRetries()) {
retry = 0; retry = 0;