|
@@ -25,6 +25,9 @@ public class DataService {
|
|
private static String UPDATE_PATIENT_URL = "https://risserver3.pacsonline.cn/butt/saveExam";
|
|
private static String UPDATE_PATIENT_URL = "https://risserver3.pacsonline.cn/butt/saveExam";
|
|
|
|
|
|
private static String FEE_URL = "https://risserver3.pacsonline.cn/film/callback";
|
|
private static String FEE_URL = "https://risserver3.pacsonline.cn/film/callback";
|
|
|
|
+
|
|
|
|
+ private static String GET_KEY_URL = "https://risserver3.pacsonline.cn/ris_secret/getKey";
|
|
|
|
+
|
|
|
|
|
|
private static final OkHttpClient OKHTTP_CLIENT = new OkHttpClient();
|
|
private static final OkHttpClient OKHTTP_CLIENT = new OkHttpClient();
|
|
|
|
|
|
@@ -94,6 +97,8 @@ public class DataService {
|
|
try (Response response = OKHTTP_CLIENT.newCall(request).execute()) {
|
|
try (Response response = OKHTTP_CLIENT.newCall(request).execute()) {
|
|
if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
|
|
if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
|
|
String content = response.body().string();
|
|
String content = response.body().string();
|
|
|
|
+ System.out.println(content);
|
|
|
|
+
|
|
return content;
|
|
return content;
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
// TODO Auto-generated catch block
|
|
// TODO Auto-generated catch block
|
|
@@ -123,9 +128,9 @@ public class DataService {
|
|
|
|
|
|
public static void main(String[] args) {
|
|
public static void main(String[] args) {
|
|
Map <String,String> map = new HashMap<String,String>();
|
|
Map <String,String> map = new HashMap<String,String>();
|
|
- map.put("institution_id", "47600001");
|
|
|
|
- map.put("num", "10");
|
|
|
|
- postWithParameters(GET_EXAM_URL, map);
|
|
|
|
|
|
+ map.put("institution_id", "73090001");
|
|
|
|
+// map.put("num", "10");
|
|
|
|
+ postWithParameters(GET_KEY_URL, map);
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|