|
@@ -1,6 +1,7 @@
|
|
package com.miaxis.test;
|
|
package com.miaxis.test;
|
|
|
|
|
|
import com.miaxis.JsjpApplication;
|
|
import com.miaxis.JsjpApplication;
|
|
|
|
+import com.miaxis.common.core.domain.Response;
|
|
import com.miaxis.order.dto.QuerySchoolOrderListDTO;
|
|
import com.miaxis.order.dto.QuerySchoolOrderListDTO;
|
|
import com.miaxis.order.service.IOrderInfoService;
|
|
import com.miaxis.order.service.IOrderInfoService;
|
|
import com.miaxis.order.vo.QuerySchoolOrderDetailedVo;
|
|
import com.miaxis.order.vo.QuerySchoolOrderDetailedVo;
|
|
@@ -30,11 +31,11 @@ public class TestSms {
|
|
@Test
|
|
@Test
|
|
public void test() throws Exception {
|
|
public void test() throws Exception {
|
|
|
|
|
|
- SmsToUser smsToUser = new SmsToUser();
|
|
|
|
- smsToUser.setName("王小日");
|
|
|
|
- smsToUser.setIdcard("350181198811231811");
|
|
|
|
- smsToUser.setPhone("15060063160");
|
|
|
|
- smsToUser.setPassword("123456");
|
|
|
|
|
|
+ // SmsToUser smsToUser = new SmsToUser();
|
|
|
|
+ // smsToUser.setName("王小日");
|
|
|
|
+ // smsToUser.setIdcard("350181198811231811");
|
|
|
|
+ // smsToUser.setPhone("15060063160");
|
|
|
|
+ // smsToUser.setPassword("123456");
|
|
|
|
|
|
//参数处理
|
|
//参数处理
|
|
// String param = "{\"name\":\"" + smsToUser.getName() + "\",\"idcard\":\"" + smsToUser.getIdcard() + "\",\"password\":\"" + smsToUser.getPassword() + "\"}";
|
|
// String param = "{\"name\":\"" + smsToUser.getName() + "\",\"idcard\":\"" + smsToUser.getIdcard() + "\",\"password\":\"" + smsToUser.getPassword() + "\"}";
|
|
@@ -63,12 +64,28 @@ public class TestSms {
|
|
// sendSms.sendSms(smsInfo);
|
|
// sendSms.sendSms(smsInfo);
|
|
|
|
|
|
|
|
|
|
- SmsInfo smsDown = new SmsInfo();
|
|
|
|
- smsDown.setPhone(smsToUser.getPhone());
|
|
|
|
- smsDown.setParam(null);
|
|
|
|
- smsDown.setSignName("极速驾培");
|
|
|
|
- smsDown.setTemplateCode("SMS_463667340"); //下载通知
|
|
|
|
- sendSms.sendSms(smsDown);
|
|
|
|
|
|
+// SmsInfo smsDown = new SmsInfo();
|
|
|
|
+// smsDown.setPhone(smsToUser.getPhone());
|
|
|
|
+// smsDown.setParam(null);
|
|
|
|
+// smsDown.setSignName("极速驾培");
|
|
|
|
+// smsDown.setTemplateCode("SMS_463667340"); //下载通知
|
|
|
|
+// sendSms.sendSms(smsDown);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ String param = "{\"name\":\"" + "小郑" + "\","
|
|
|
|
+ + "\"schoolName\":\"" + "天安" + "\","
|
|
|
|
+ + "\"principal\":\"" + "王明" + "\","
|
|
|
|
+ + "\"schoolPhone\":\"" + "83352681" + "\","
|
|
|
|
+ + "\"phone\":\"" + 83352682 + "\"}";
|
|
|
|
+
|
|
|
|
+ SmsInfo smsInfo = new SmsInfo();
|
|
|
|
+ smsInfo.setPhone("15060063160");
|
|
|
|
+ smsInfo.setParam(param);
|
|
|
|
+ smsInfo.setSignName("极速驾培");
|
|
|
|
+ smsInfo.setTemplateCode("SMS_471670047"); //帐号密码模板
|
|
|
|
+ sendSms.sendSms(smsInfo);
|
|
|
|
|
|
|
|
|
|
|
|
|