Commit 5ecdd07e authored by hezhen's avatar hezhen

123

parent b72ec23b
......@@ -141,7 +141,6 @@ public class SmsService {
log.info("RequestId=" + sendSmsResponse.getRequestId());
log.info("BizId=" + sendSmsResponse.getBizId());
if(sendSmsResponse.getCode() != null && sendSmsResponse.getCode().equals("OK")) {
log.info("发送成功");
//请求成功
return true;
}
......@@ -240,8 +239,8 @@ public class SmsService {
public static void main(String[] args) throws ClientException, InterruptedException {
SmsService smsService=new SmsService();
//发短信
String params="{\"param7\":\"\",\"param8\":\"2019-10-09 09:00:00\",\"param5\":\"\",\"param6\":\"欣新房车控股集团\",\"param9\":\"2019-10-09 18:00:00\",\"param10\":\"1\",\"param3\":\"测试依维柯后拓展房车(仅供测试使用,不提供任何服务)\",\"param4\":\"欣新房车控股集团\",\"param1\":\"肖少林\",\"param2\":\"18681032646\"}";
sendTemplate("13612688539",params,"SMS_173345572");
String[] params={"1","2","3","2019-08-29","【松山湖】"};
SmsService.sendTemplateToJson("13612688539,13265487972",params,"SMS_169904346");
/*System.out.println("短信接口返回的数据----------------");
System.out.println("Code=" + response.getCode());
System.out.println("Message=" + response.getMessage());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment