|
|
@@ -26,7 +26,7 @@ import java.util.stream.Stream;
|
|
|
@Component
|
|
|
public class SmsSydUtil {
|
|
|
|
|
|
- private static MTPack mtPack;
|
|
|
+ private MTPack mtPack;
|
|
|
|
|
|
// 证号 djjx
|
|
|
// 登录密码 6B1aQety
|
|
|
@@ -64,14 +64,14 @@ public class SmsSydUtil {
|
|
|
|
|
|
}
|
|
|
|
|
|
- private static MTPack buildDefaultSMSPack() {
|
|
|
- if(SmsSydUtil.mtPack == null){
|
|
|
- MTPack mtPack = new MTPack();
|
|
|
+ private MTPack buildDefaultSMSPack() {
|
|
|
+ if(this.mtPack == null){
|
|
|
+ this.mtPack = new MTPack();
|
|
|
mtPack.setSendType(MTPack.SendType.MASS);
|
|
|
mtPack.setMsgType(MTPack.MsgType.SMS);
|
|
|
mtPack.setBizType(1);
|
|
|
}
|
|
|
- return SmsSydUtil.mtPack;
|
|
|
+ return this.mtPack;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -114,14 +114,14 @@ public class SmsSydUtil {
|
|
|
/**
|
|
|
* 短信下发范例 每个话单,一个扩展码
|
|
|
*/
|
|
|
- private synchronized static R singleTicketMsgId(@NotNull String content, UUID uuid, @NotNull String... phones) throws Exception {
|
|
|
+ private synchronized R singleTicketMsgId(@NotNull String content, UUID uuid, @NotNull String... phones) throws Exception {
|
|
|
|
|
|
MTPack pack = buildDefaultSMSPack();
|
|
|
|
|
|
// 批次号
|
|
|
pack.setBatchID(uuid);
|
|
|
|
|
|
- log.info("四医大短信下发参数:UUID," + pack.getBatchID() + "手机号:" + phones.toString() + "内容:" + content);
|
|
|
+ log.info("四医大短信下发参数:UUID," + pack.getBatchID() + "手机号:" + JSONUtil.toJsonStr(phones) + ",内容:" + content);
|
|
|
|
|
|
List<MessageData> msgs = new ArrayList<>();
|
|
|
for (String phone : phones) {
|