!157 修复助通短信渠道-发送模板短信请求地址错误的问题

Merge pull request !157 from JackZhai/dev-3.0.x
This commit is contained in:
风如歌 2024-03-22 07:12:07 +00:00 committed by Gitee
commit 0187272b94
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 3 additions and 3 deletions

View File

@ -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!");
}
}

View File

@ -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);