|
@@ -1,7 +1,9 @@
|
|
|
package com.caimei365.tools.utils;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.io.BufferedReader;
|
|
|
import java.io.InputStreamReader;
|
|
@@ -19,6 +21,8 @@ import java.util.List;
|
|
|
* @author : Charles
|
|
|
* @date : 2021/6/17
|
|
|
*/
|
|
|
+@Slf4j
|
|
|
+@Component
|
|
|
public class SmsUtil {
|
|
|
/** key */
|
|
|
private static final String ACCOUNT = "account";
|
|
@@ -39,6 +43,7 @@ public class SmsUtil {
|
|
|
|
|
|
@Value("${caimei.coreDomain}")
|
|
|
public void setProf(String profs){
|
|
|
+ log.info("》》》》》》》》》》》》》》》》profs:"+profs);
|
|
|
prof=profs;
|
|
|
};
|
|
|
|
|
@@ -84,6 +89,7 @@ public class SmsUtil {
|
|
|
list.add("15827317748");
|
|
|
list.add("18476937515");
|
|
|
list.add("18175515644");
|
|
|
+ log.info("+++++++++prof" + prof);
|
|
|
if (prof.contains("core.caimei365.com") || list.contains(mobile)) {
|
|
|
url = new URL(SMS_URL);
|
|
|
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
|