更改短信发送地址

This commit is contained in:
1215525055@qq.com 2025-03-04 23:59:54 +08:00
parent 21b24fdf93
commit b8d6b98faf

View File

@ -4,6 +4,7 @@ import cn.com.tenlion.operator.properties.SystemApiPathProperties;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import org.apache.commons.lang3.StringUtils;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
@ -11,7 +12,6 @@ import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
@ -24,11 +24,11 @@ import java.util.UUID;
*/
public class TenlionSMS {
private static String smsKey = "c7bbe767-dad7-413b-a9f7-3d49d556366c";
private static String smsKey = "73bd027a-b9f0-44ac-a414-984baf23f988";
private static String smsSecret = "zinF7QrbMmg72CyahEReu6vZJ4L9j1HB";
private static String smsSecret = "BMAF4tiD+QoB1rK7AMC4nuRWISbf83Tc";
private static String systemUrl = "http://192.168.0.115:8099/operator-plugin";
private static String systemUrl = "";
// 短信发送地址
private static String sendSMSUrl = systemUrl + "/app/send";
// 短信状态查询地址
@ -44,6 +44,10 @@ public class TenlionSMS {
if (systemUrl.endsWith("/")) {
systemUrl = systemUrl.substring(0, systemUrl.length() -1);
}
sendSMSUrl = systemUrl + "/app/send";
getStatusSMSUrl = systemUrl + "/app/send/status";
getReplySMSUrl = systemUrl + "/app/send/reply";
getTemplateSMSUrl = systemUrl + "/app/send/template";
}
public static void main(String[] args) {