|
@@ -35,8 +35,11 @@ public class SmsUtil {
|
|
/** 请求地址 */
|
|
/** 请求地址 */
|
|
private static final String SMS_URL = "http://smssh1.253.com/msg/send/json";
|
|
private static final String SMS_URL = "http://smssh1.253.com/msg/send/json";
|
|
|
|
|
|
|
|
+ private static String prof;
|
|
@Value("${caimei.coreDomain}")
|
|
@Value("${caimei.coreDomain}")
|
|
- private static String profile;
|
|
|
|
|
|
+ private void setProf(String profs){
|
|
|
|
+ prof=profs;
|
|
|
|
+ };
|
|
|
|
|
|
private SmsUtil(){}
|
|
private SmsUtil(){}
|
|
|
|
|
|
@@ -79,7 +82,7 @@ public class SmsUtil {
|
|
list.add("15113936829");
|
|
list.add("15113936829");
|
|
list.add("15827317748");
|
|
list.add("15827317748");
|
|
list.add("18476937515");
|
|
list.add("18476937515");
|
|
- if (profile.contains("core.caimei365.com") || list.contains(mobile)) {
|
|
|
|
|
|
+ if (prof.contains("core.caimei365.com") || list.contains(mobile)) {
|
|
url = new URL(SMS_URL);
|
|
url = new URL(SMS_URL);
|
|
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
|
|
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
|
|
connection.setRequestMethod("POST");
|
|
connection.setRequestMethod("POST");
|