| | |
| | | saveCodeForRedis("super_admin","123456"); |
| | | } |
| | | |
| | | @GetMapping("/testSms") |
| | | public ComResult<DynSMSSendDataResult> testSms() { |
| | | String [][] str = { |
| | | {"手机号码","日期","小时","分钟","乡镇","水库名称","水库水位值","超过设计洪水位值", |
| | | "距离或漫过坝顶值及说明","雨量值","姓名联系电话1","姓名联系电话2","姓名联系电话3","姓名联系电话4","姓名联系电话最多6人"}, |
| | | {"18179770967","25","12","50","会昌县","测试水库","10.10","12.12", |
| | | "距离或漫过坝顶值及说明","10.13","谢斌18179770967","钟日健14212457896","qwe13426007894","asd13685201234","aix18179770967;aix21234567891"}, |
| | | {"15170720695","25","12","50","会昌县","测试水库","10.10","12.12", |
| | | "距离或漫过坝顶值及说明","10.13","谢斌18179770967","钟日健14212457896","qwe13426007894","asd13685201234","aix18179770967;aix21234567891"}, |
| | | {"15179776420","25","12","50","会昌县","测试水库","10.10","12.12", |
| | | "距离或漫过坝顶值及说明","10.13","谢斌18179770967","钟日健14212457896","qwe13426007894","asd13685201234","aix18179770967;aix21234567891"} |
| | | }; |
| | | String tempId = "2431012216677"; |
| | | return smsService.testSend(tempId,str); |
| | | } |
| | | |
| | | /** |
| | | * 短信固定内容发送通用方法(仅支持 {xx} 模式的模板) |
| | | * request 必须包含手机号,模板id,拼接好的内容 |
| | |
| | | */ |
| | | public interface SmsService { |
| | | |
| | | public ComResult<DynSMSSendDataResult> testSend(String tempId,String [][] strss); |
| | | |
| | | /** |
| | | * 发送 xx 变量模板短信 |
| | | * @param phoneNumbers 手机号集合 |
| | |
| | | @Autowired |
| | | private NoticeHandle noticeHandle; |
| | | |
| | | @Override |
| | | public ComResult<DynSMSSendDataResult> testSend(String tempId, String[][] strss) { |
| | | return sendDynSMSSendDataResultComResult(tempId,strss); |
| | | } |
| | | |
| | | /** |
| | | * 发送 xx 变量模板短信 |
| | | * @param phoneNumbers 手机号集合 |