|
发表于 2014-7-7 10:49:27
|
显示全部楼层
我们公司是用短信猫,在你提交的时候调短信猫的一个方法,这个给你也没什么用啊,不知道你们用什么工具来发短信
public class SmsCommon {
public static void sendSms(String rname,String rcode,String context)throws Exception{
try {
System.out.println("\r\n--------------------------------------------------------------------------------" +
"\r\n接受人:" + ((rname == null) ? "未知" : rname) +
"\r\n接受人电话:" + ((rcode == null) ? "未知" : rcode) +
"\r\n接受内容:" + ((context == null) ? "未知" : context) +
"\r\n--------------------------------------------------------------------------------");
//SmsClient.sendsms("", "", rname, rcode, context, "0");
} catch (Exception e) {
e.printStackTrace();
throw new RuntimeException("短信发送失败.");
}
}
}
你得看是什么工具,要买了以后人家会给你说怎么调用的 |
|