Merge remote-tracking branch 'origin/dev-3.0.x' into dev-3.0.x

This commit is contained in:
wind 2024-03-22 15:22:51 +08:00
commit 9511e4c7a7
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);