|
|
|
@ -1,6 +1,5 @@
|
|
|
|
|
package me.zhengjie.modules.system.domain.sms.util;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.crypto.SecureUtil;
|
|
|
|
|
import cn.hutool.http.HttpUtil;
|
|
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
|
|
import com.aliyuncs.DefaultAcsClient;
|
|
|
|
@ -12,15 +11,14 @@ import com.aliyuncs.dysmsapi.model.v20170525.SendSmsResponse;
|
|
|
|
|
import com.aliyuncs.exceptions.ClientException;
|
|
|
|
|
import com.aliyuncs.profile.DefaultProfile;
|
|
|
|
|
import com.aliyuncs.profile.IClientProfile;
|
|
|
|
|
import com.google.common.collect.Lists;
|
|
|
|
|
import me.zhengjie.constant.SmsConstant;
|
|
|
|
|
import me.zhengjie.modules.constant.DefaultConstant;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.core.env.Environment;
|
|
|
|
|
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @author aliyunsms
|
|
|
|
@ -139,7 +137,10 @@ public class SmsUtil {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
sendSms("13586541001", "【浩才旗舰店】链接为 123456", 30L);
|
|
|
|
|
String str = new String(" [\"13586541001\",\"13586541002\",\"13586541003\"]");
|
|
|
|
|
String[] split = str.split(",");
|
|
|
|
|
ArrayList<String> strings = Lists.newArrayList(Arrays.asList(split));
|
|
|
|
|
System.out.println(JSONUtil.toJsonStr(strings));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|