|
public static String sms(String param_string,String dh,String xm){
//public static List <Object> sxcx(String param_string){
System.out.println(param_string);
String result0 = "";
String host = "http://sms.market.alicloudapi.com";
String path = "/singleSendSms";
String method = "GET";
Map<String, String> headers = new HashMap<String, String>();
//最后在header中的格式(中间是英文空格)为Authorization:APPCODE 83359fd73fe94948385f570e3c139105
headers.put("Authorization", "APPCODE 5f0199866e94948385f57e94948385f570e3c1391050e3c139105");
Map<String, String> querys = new HashMap<String, String>();
querys.put("ParamString", "{\"name\":\"张三\"}"); //此处张三如何换成前端传入的参数xm????
querys.put("RecNum", param_string);
querys.put("SignName", "信息技术");
querys.put("TemplateCode", "SMS_47145038"); |
|