You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.8 KiB
47 lines
1.8 KiB
package com.ynxbd.common.helper.common;
|
|
|
|
//import com.mascloud.model.MoModel;
|
|
//import com.mascloud.model.StatusReportModel;
|
|
//import com.mascloud.sdkclient.Client;
|
|
//import com.mascloud.util.JsonUtil;
|
|
|
|
import org.apache.commons.codec.digest.DigestUtils;
|
|
|
|
public class Test {
|
|
|
|
public static void main(String[] args) {
|
|
String piMd5 = "9444144" + "T2005" + "xbd";
|
|
piMd5 = DigestUtils.md5Hex(piMd5).toUpperCase();
|
|
System.out.println(piMd5);
|
|
}
|
|
// public static void main( String[] args ) {
|
|
// Client client = Client.getInstance( );
|
|
// // 登录地址需另外提供
|
|
// boolean isLoggedin = client.login( "http://112.35.4.197:15000", "stlpt9", "passwd@0987", "政企分公司测试" );
|
|
// if(isLoggedin) {
|
|
// System.out.println( "Login successed" );
|
|
// } else {
|
|
// System.out.println( "Login failed" );
|
|
// return;
|
|
// }
|
|
//
|
|
// // 普通短信
|
|
// int rt = client.sendDSMS( new String[]{ "15559603353" }, "短信内容", "123", 1, "cwaH21lON", null, true );
|
|
// System.out.println( rt );
|
|
//
|
|
// // 模板短信
|
|
// int rtm = client.sendTSMS( new String[]{ "15559603353" }, "模板ID", new String[]{ "参数一", "参数二" }, "123", 0, "签名ID", null );
|
|
// System.out.println( rtm );
|
|
//
|
|
// // 获取状态报告——开始
|
|
// List<StatusReportModel> statusReportlist = client.getReport( );
|
|
// System.out.println( "getReport : " + JsonUtil.toJsonString( statusReportlist ) );
|
|
// // 获取状态报告——结束
|
|
//
|
|
// // 获取上行短信——开始
|
|
// List<MoModel> deliverList = client.getMO( );
|
|
// System.out.println( "getMO : " + JsonUtil.toJsonString( deliverList ) );
|
|
// // 获取上行短信——结束
|
|
//
|
|
// }
|
|
}
|
|
|