| | |
| | | return new com.aliyun.dysmsapi20170525.Client(config); |
| | | } |
| | | |
| | | private static final String SIGNNAME = "BLNKA"; |
| | | private static final String SIGNNAME = "长沙云众医疗器械"; |
| | | // private static final String TEMPLATECODE = "SMS_291555713"; |
| | | private static final String TEMPLATECODE = "SMS_464995315"; |
| | | private static final String TEMPLATECODE = "SMS_473880228"; |
| | | public static boolean sendALiYun(String phone,String TemplateParam){ |
| | | com.aliyun.dysmsapi20170525.Client client = null; |
| | | try { |
| | | client = createClient("LTAI5tKRA3S29dWTRMxLFNdJ", "hXBMw2VASDwgGnXo6jgBYaflhE33i9"); |
| | | client = createClient("LTAI5tG4PnVHLV3orPW211fA", "zmW5mJnxjkWJehUnpD4AXZZK9GB0ht"); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | return false; |
| | |
| | | // |
| | | // String post = HttpUtil.post(URL, data); |
| | | // System.out.println(post); |
| | | boolean b = sendALiYun( "15274802129", "123456"); |
| | | boolean b = sendALiYun( "19176672336", "123456"); |
| | | System.out.println(b); |
| | | } |
| | | } |