mirror of
https://gitee.com/dromara/sms4j.git
synced 2025-12-06 17:08:40 +08:00
修复,云片短信无限重试问题
This commit is contained in:
parent
aeecaaa8f5
commit
8498fafa65
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user