package com.smartor.common; import java.io.IOException; public class LSHospTokenUtil { public static String getToken(String orgid) { String token = null; LyraTokenUtil lyraTokenUtil = null; if (orgid.equals("47255004333112711A1001")) //景宁 lyraTokenUtil = LyraTokenUtil.createLyraTokenUtil("https://9.0.124.104:13021/mediinfo-lyra-authserver/connect/token", "zjhes.suifangxt", "OIjdJvx2ALjFVGZoCZO4I8O"); if (orgid.equals("47231022633110211A2101")) //中医院 lyraTokenUtil = LyraTokenUtil.createLyraTokenUtil("https://9.0.124.104:13011/mediinfo-lyra-authserver/connect/token", "zjhes.suifangxt", "OIjdJvx2ALjFVGZoCZO4I8O"); try { token = lyraTokenUtil.getToken(); } catch (IOException e) { e.printStackTrace(); } return token; } }