From ce7c778150b82b7106e9edebbb6d69036bd389f3 Mon Sep 17 00:00:00 2001 From: linzhijie <1003392067@qq.com> Date: 星期三, 17 五月 2023 14:29:51 +0800 Subject: [PATCH] 短信域名变更 --- src/main/java/com/ots/project/tool/sms/ZjunShortMessageImpl.java | 12 ++---------- 1 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/ots/project/tool/sms/ZjunShortMessageImpl.java b/src/main/java/com/ots/project/tool/sms/ZjunShortMessageImpl.java index 8b1ffb6..3b7c00f 100644 --- a/src/main/java/com/ots/project/tool/sms/ZjunShortMessageImpl.java +++ b/src/main/java/com/ots/project/tool/sms/ZjunShortMessageImpl.java @@ -27,7 +27,7 @@ String accountId = "12128"; String account = "NDA"; String password = "nda@2019"; - String xml = "http://sms.izjun.cn"; + String xml = "http://agent.izjun.cn"; Date date = new Date(); SimpleDateFormat sf = new SimpleDateFormat(PATTERN); String dateStr = sf.format(date); @@ -40,18 +40,10 @@ Returnsms returnsms = (Returnsms) xstream.fromXML(xml); System.out.println(JSON.toJSON(returnsms)); ZjunShortMessageImpl impl = new ZjunShortMessageImpl(); - Returnsms sendmsg = impl.sendmsg("1351274544", "銆愭帉楠忎紶濯掋��", "http://139.199.11.114/exam-stu/#/demography/ed860660-95a7-4feb-aab9-f56b1eff1a3c/12/index"); + Returnsms sendmsg = impl.sendmsg("15521298984", "銆愭帉楠忎紶濯掋��", "http://139.199.11.114/exam-stu/#/demography/ed860660-95a7-4feb-aab9-f56b1eff1a3c/12/index"); System.out.println(JSON.toJSON(sendmsg)); Returnsms returnsms1 = impl.checkYUE(); System.out.println(JSON.toJSON(returnsms1)); - - - - - - - - } public Returnsms sendmsg(String mobile, String smsSign, String content) throws Exception { String urlString = xml + "/v2sms.aspx?"; -- Gitblit v1.9.1