接口第一次
parent
05820c261e
commit
363ac7187a
|
@ -9,15 +9,15 @@ import org.springframework.context.annotation.Configuration;
|
||||||
@Data
|
@Data
|
||||||
public class XfXhConfig {
|
public class XfXhConfig {
|
||||||
|
|
||||||
private String apiHost;
|
private StringAppGTP apiHost;
|
||||||
|
|
||||||
private String apiPath;
|
private StringAppGTP apiPath;
|
||||||
|
|
||||||
private String appId;
|
private StringAppGTP appId;
|
||||||
|
|
||||||
private String apiKey;
|
private StringAppGTP apiKey;
|
||||||
|
|
||||||
private String apiSecret;
|
private StringAppGTP apiSecret;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,7 @@ public class HttpUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Post String
|
* Post StringAppGTP
|
||||||
*
|
*
|
||||||
* @param host
|
* @param host
|
||||||
* @param path
|
* @param path
|
||||||
|
@ -157,7 +157,7 @@ public class HttpUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Put String
|
* Put StringAppGTP
|
||||||
* @param host
|
* @param host
|
||||||
* @param path
|
* @param path
|
||||||
* @param method
|
* @param method
|
||||||
|
|
|
@ -20,7 +20,7 @@ public class MsgUtil {
|
||||||
String host = "http://dingxin.market.alicloudapi.com";
|
String host = "http://dingxin.market.alicloudapi.com";
|
||||||
String path = "/dx/sendSms";
|
String path = "/dx/sendSms";
|
||||||
String method = "POST";
|
String method = "POST";
|
||||||
//String appcode = "0d534f614a8647ca94d697eec974aa63";
|
//StringAppGTP appcode = "0d534f614a8647ca94d697eec974aa63";
|
||||||
String appcode = "dcb3dabebd3843a7a138901659ed112a";
|
String appcode = "dcb3dabebd3843a7a138901659ed112a";
|
||||||
Map<String, String> headers = new HashMap<String, String>();
|
Map<String, String> headers = new HashMap<String, String>();
|
||||||
headers.put("Authorization", "APPCODE " + appcode);
|
headers.put("Authorization", "APPCODE " + appcode);
|
||||||
|
|
Loading…
Reference in New Issue