mirror of
https://gitee.com/dromara/sms4j.git
synced 2025-12-06 08:58:38 +08:00
!157 修复助通短信渠道-发送模板短信请求地址错误的问题
Merge pull request !157 from JackZhai/dev-3.0.x
This commit is contained in:
commit
0187272b94
@ -60,7 +60,7 @@ public class CoreMethodParamValidateProcessor implements CoreMethodProcessor {
|
||||
}
|
||||
|
||||
public void validatePhone(String phone) {
|
||||
if (StrUtil.isNotEmpty(phone)) {
|
||||
if (StrUtil.isBlank(phone)) {
|
||||
throw new SmsBlendException("cant send message to null!");
|
||||
}
|
||||
}
|
||||
|
||||
@ -150,7 +150,7 @@ public class ZhutongSmsImpl extends AbstractSmsBlend<ZhutongConfig> {
|
||||
headers.put("Content-Type", Constant.APPLICATION_JSON_UTF8);
|
||||
SmsResponse smsResponse;
|
||||
try {
|
||||
smsResponse = getResponse(http.postJson(requestUrl, headers, json));
|
||||
smsResponse = getResponse(http.postJson(url, headers, json));
|
||||
} catch (SmsBlendException e) {
|
||||
smsResponse = new SmsResponse();
|
||||
smsResponse.setSuccess(false);
|
||||
@ -238,7 +238,7 @@ public class ZhutongSmsImpl extends AbstractSmsBlend<ZhutongConfig> {
|
||||
headers.put("Content-Type", Constant.APPLICATION_JSON_UTF8);
|
||||
SmsResponse smsResponse;
|
||||
try {
|
||||
smsResponse = getResponse(http.postJson(requestUrl, headers, requestJson.toString()));
|
||||
smsResponse = getResponse(http.postJson(url, headers, requestJson.toString()));
|
||||
} catch (SmsBlendException e) {
|
||||
smsResponse = new SmsResponse();
|
||||
smsResponse.setSuccess(false);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user