REQ-2135: 将sms的触发号码天级流控降级
This commit is contained in:
parent
90bca19c93
commit
2cf4ffd09c
@ -177,8 +177,10 @@ public class AliYunSmsClientImpl implements AliYunSmsClient {
|
||||
}
|
||||
if (!AliyunConstants.SUCCESS_CODE.equals(responseBody.getCode())) {
|
||||
String message = responseBody.getMessage();
|
||||
log.info("AliyunSmsService#checkResponse is fail, error message : {}", message);
|
||||
throw new BizException(ReturnCodeEnum.SYSTEM_ERROR, message);
|
||||
boolean isRateLimited = message != null && message.contains("触发号码天级流控");
|
||||
log.warn("AliyunSmsService#checkResponse is fail, error message : {}", message);
|
||||
if (!isRateLimited)
|
||||
throw new BizException(ReturnCodeEnum.SYSTEM_ERROR, message);
|
||||
}
|
||||
return responseBody;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user