|
|
@@ -14,6 +14,7 @@ import cn.com.taiji.core.model.comm.protocol.ats.sendShort.*; |
|
|
|
import com.esms.MOMsg; |
|
|
|
import com.esms.PostMsg; |
|
|
|
import com.esms.common.entity.Account; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import cn.com.taiji.ats.manager.request.HltSmsSendRequest; |
|
|
@@ -92,21 +93,14 @@ public class SendShortManager { |
|
|
|
return response; |
|
|
|
} |
|
|
|
|
|
|
|
// private static PostMsg pm; |
|
|
|
// static { |
|
|
|
// pm = new PostMsg(); |
|
|
|
// // 内网地址 |
|
|
|
// // 设置发送短信的网关 |
|
|
|
// pm.getCmHost().setHost("192.168.100.112", 8090); |
|
|
|
// // 设置用户获取账号信息、上行、状态报告等的网关 |
|
|
|
// pm.getWsHost().setHost("192.168.100.112", 8088); |
|
|
|
// } |
|
|
|
@Autowired |
|
|
|
private PostMsg pm; |
|
|
|
public List<MTReport> getUpward(int fetchSize) { |
|
|
|
System.out.println("-----------------------------------开始初始化------------------------------------"); |
|
|
|
Account account = new Account("QTZL20240529", "ATuwRFkX"); // 账号 |
|
|
|
PostMsg pm = new PostMsg(); |
|
|
|
pm.getCmHost().setHost("192.168.100.112", 9080); |
|
|
|
pm.getWsHost().setHost("192.168.100.112", 8088); |
|
|
|
Account account = new Account("chexingzhushou", "TYOIsakY"); // 账号 |
|
|
|
// PostMsg pm = new PostMsg(); |
|
|
|
// pm.getCmHost().setHost("192.168.100.112", 8090); |
|
|
|
// pm.getWsHost().setHost("192.168.100.112", 8088); |
|
|
|
MOMsg[] mos = new MOMsg[0]; |
|
|
|
List<MTReport> mtReportList = new ArrayList<>(); |
|
|
|
System.out.println("-----------------------------------开始访问------------------------------------"); |