|
@@ -54,8 +54,10 @@ public class SolarHttpUtil {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @param params headers参数
|
|
|
- * @param datas requestParams参数
|
|
|
+ * @param params
|
|
|
+ * headers参数
|
|
|
+ * @param datas
|
|
|
+ * requestParams参数
|
|
|
* @return
|
|
|
*/
|
|
|
public String httpAction(Map<String, String> params, Map<String, Object> datas) {
|
|
@@ -74,8 +76,8 @@ public class SolarHttpUtil {
|
|
|
conn.setRequestProperty(CONTENT_TYPE, APPLICATION_JSON);
|
|
|
// 设置鉴权
|
|
|
long time = System.currentTimeMillis();
|
|
|
- String signature = SignatureInfo
|
|
|
- .build(SignatureType.SECRET, METHOD_POST, uri, time, accessKey, accessSecret);
|
|
|
+ String signature = SignatureInfo.build(SignatureType.SECRET, METHOD_POST, uri, time, accessKey,
|
|
|
+ accessSecret);
|
|
|
conn.setRequestProperty(AUTH, signature);
|
|
|
conn.setRequestProperty("time", String.valueOf(time));
|
|
|
// ssl
|
|
@@ -239,6 +241,7 @@ public class SolarHttpUtil {
|
|
|
school.setLogoUrl(org.getString("logo"));
|
|
|
school.setEnable(true);
|
|
|
school.setDoubleTrack(false);
|
|
|
+ school.setGroupDeleteCheck(false);
|
|
|
schools.add(school);
|
|
|
}
|
|
|
}
|
|
@@ -247,11 +250,13 @@ public class SolarHttpUtil {
|
|
|
}
|
|
|
|
|
|
public static void main(String[] args) throws Exception {
|
|
|
- // SolarHttpUtil orgUtil = new SolarHttpUtil("7bbdc11570bc474dbf50e0d4a5dff328",
|
|
|
- // "IOodRvbp2LspJTHOScgB7Yx8MRloMpyl", "https://solar.qmth.com.cn", "/api/open/org/query");
|
|
|
+ // SolarHttpUtil orgUtil = new
|
|
|
+ // SolarHttpUtil("7bbdc11570bc474dbf50e0d4a5dff328",
|
|
|
+ // "IOodRvbp2LspJTHOScgB7Yx8MRloMpyl", "https://solar.qmth.com.cn",
|
|
|
+ // "/api/open/org/query");
|
|
|
//
|
|
|
- // String str = orgUtil.httpAction(null, null);
|
|
|
- // System.out.println(str);
|
|
|
+ // String str = orgUtil.httpAction(null, null);
|
|
|
+ // System.out.println(str);
|
|
|
// int pageNumber = 1;
|
|
|
// int pageSize = 1;
|
|
|
//
|