diff --git a/maku-boot-module/maku-boot-message/src/main/java/net/maku/message/sms/HuaweiSmsStrategy.java b/maku-boot-module/maku-boot-message/src/main/java/net/maku/message/sms/HuaweiSmsStrategy.java index c3fed27..f3fd4a2 100644 --- a/maku-boot-module/maku-boot-message/src/main/java/net/maku/message/sms/HuaweiSmsStrategy.java +++ b/maku-boot-module/maku-boot-message/src/main/java/net/maku/message/sms/HuaweiSmsStrategy.java @@ -60,7 +60,9 @@ public class HuaweiSmsStrategy implements SmsStrategy { // 使用 https trustAllHttpsCertificates(); - URL realUrl = new URL(smsConfig.getUrl()); + // 接入地址 + String url = smsConfig.getUrl() + "/sms/batchSendSms/v1"; + URL realUrl = new URL(url); HttpsURLConnection connection = (HttpsURLConnection) realUrl.openConnection(); HostnameVerifier hv = (hostname, session) -> true; connection.setHostnameVerifier(hv);