| | |
| | | package com.smartor.common; |
| | | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | |
| | | import java.io.IOException; |
| | | |
| | | @Slf4j |
| | | public class LSHospTokenUtil { |
| | | public static String getToken(String orgid,String url) { |
| | | String token = null; |
| | | LyraTokenUtil lyraTokenUtil = null; |
| | | if(ObjectUtils.isNotEmpty(url)){ |
| | | lyraTokenUtil = LyraTokenUtil.createLyraTokenUtil(url, "zjhes.suifangxt", "OIjdJvx2ALjFVGZoCZO4I8O"); |
| | | log.info("token.360调用结果"+url+";机构代码:"+orgid+""); |
| | | }else { |
| | | if (orgid.equals("47255004333112711A1001")) //景宁 |
| | | lyraTokenUtil = LyraTokenUtil.createLyraTokenUtil("https://9.0.124.104:13021/mediinfo-lyra-authserver/connect/token", "zjhes.suifangxt", "OIjdJvx2ALjFVGZoCZO4I8O"); |