!208 解决短信发送失败 时,前端无感知问题。from zypy333/N/A
Merge pull request !208 from zypy333/N/A
This commit is contained in:
commit
d14b87729a
@ -156,6 +156,9 @@ public class SmsUtilAliImplService implements SmsUtil, AliSmsUtil {
|
|||||||
.setTemplateParam(JSONUtil.toJsonStr(param));
|
.setTemplateParam(JSONUtil.toJsonStr(param));
|
||||||
try {
|
try {
|
||||||
SendSmsResponse response = client.sendSms(sendSmsRequest);
|
SendSmsResponse response = client.sendSms(sendSmsRequest);
|
||||||
|
if (!("OK").equals(response.getBody().getCode())) {
|
||||||
|
throw new ServiceException(response.getBody().getMessage());
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("发送短信错误", e);
|
log.error("发送短信错误", e);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user