更改短信发送地址
This commit is contained in:
parent
ba10e85b81
commit
8680550446
@ -1,9 +1,11 @@
|
||||
package cn.com.tenlion.operator.util;
|
||||
|
||||
|
||||
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;
|
||||
@ -27,7 +29,7 @@ public class TenlionSMS {
|
||||
|
||||
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";
|
||||
// 短信状态查询地址
|
||||
@ -43,7 +45,12 @@ 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) {
|
||||
// 可用模板列表
|
||||
// System.out.println(getTemplate());
|
||||
|
Loading…
Reference in New Issue
Block a user