|
@ -442,7 +442,6 @@ public class XzyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO,
|
|
clientId=oauthCaConfigDO.getClientId();
|
|
clientId=oauthCaConfigDO.getClientId();
|
|
clientSecret=oauthCaConfigDO.getClientSecret();
|
|
clientSecret=oauthCaConfigDO.getClientSecret();
|
|
}
|
|
}
|
|
JSONObject object = new JSONObject();
|
|
|
|
JSONObject msg = new JSONObject();
|
|
JSONObject msg = new JSONObject();
|
|
JSONObject head = new JSONObject();
|
|
JSONObject head = new JSONObject();
|
|
head.put("clientId",clientId);
|
|
head.put("clientId",clientId);
|
|
@ -454,10 +453,8 @@ public class XzyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO,
|
|
}
|
|
}
|
|
body.put("openId",openId);
|
|
body.put("openId",openId);
|
|
msg.put("body",body);
|
|
msg.put("body",body);
|
|
object.put("msg",msg);
|
|
|
|
object.put("signType",0);
|
|
|
|
logger.info("请求参数:"+object);
|
|
|
|
String response = httpClientUtil.sendPost(url,object.toJSONString());
|
|
|
|
|
|
logger.info("请求参数:"+msg);
|
|
|
|
String response = httpClientUtil.sendPost(url,msg.toJSONString());
|
|
logger.info("请求自动签名授权接口 :"+response);
|
|
logger.info("请求自动签名授权接口 :"+response);
|
|
return JSONObject.parseObject(response);
|
|
return JSONObject.parseObject(response);
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
@ -482,7 +479,6 @@ public class XzyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO,
|
|
clientId=oauthCaConfigDO.getClientId();
|
|
clientId=oauthCaConfigDO.getClientId();
|
|
clientSecret=oauthCaConfigDO.getClientSecret();
|
|
clientSecret=oauthCaConfigDO.getClientSecret();
|
|
}
|
|
}
|
|
JSONObject object = new JSONObject();
|
|
|
|
JSONObject msg = new JSONObject();
|
|
JSONObject msg = new JSONObject();
|
|
JSONObject head = new JSONObject();
|
|
JSONObject head = new JSONObject();
|
|
head.put("clientId",clientId);
|
|
head.put("clientId",clientId);
|
|
@ -494,10 +490,8 @@ public class XzyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO,
|
|
}
|
|
}
|
|
body.put("openId",baseDoctorDO.getOpenid());
|
|
body.put("openId",baseDoctorDO.getOpenid());
|
|
msg.put("body",body);
|
|
msg.put("body",body);
|
|
object.put("msg",msg);
|
|
|
|
object.put("signType",0);
|
|
|
|
logger.info("请求参数:"+object);
|
|
|
|
String response = httpClientUtil.sendPost(url,object.toJSONString());
|
|
|
|
|
|
logger.info("请求参数:"+msg);
|
|
|
|
String response = httpClientUtil.sendPost(url,msg.toJSONString());
|
|
JSONObject jsonRes=JSONObject.parseObject(response);
|
|
JSONObject jsonRes=JSONObject.parseObject(response);
|
|
JSONObject jsonObject = jsonRes.getJSONObject("data");
|
|
JSONObject jsonObject = jsonRes.getJSONObject("data");
|
|
Integer grantStep = jsonObject.getInteger("grantStep");
|
|
Integer grantStep = jsonObject.getInteger("grantStep");
|
|
@ -530,7 +524,6 @@ public class XzyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO,
|
|
clientId=oauthCaConfigDO.getClientId();
|
|
clientId=oauthCaConfigDO.getClientId();
|
|
clientSecret=oauthCaConfigDO.getClientSecret();
|
|
clientSecret=oauthCaConfigDO.getClientSecret();
|
|
}
|
|
}
|
|
JSONObject object = new JSONObject();
|
|
|
|
JSONObject msg = new JSONObject();
|
|
JSONObject msg = new JSONObject();
|
|
JSONObject head = new JSONObject();
|
|
JSONObject head = new JSONObject();
|
|
head.put("clientId",clientId);
|
|
head.put("clientId",clientId);
|
|
@ -542,10 +535,8 @@ public class XzyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO,
|
|
}
|
|
}
|
|
body.put("openId",openId);
|
|
body.put("openId",openId);
|
|
msg.put("body",body);
|
|
msg.put("body",body);
|
|
object.put("msg",msg);
|
|
|
|
object.put("signType",0);
|
|
|
|
logger.info("请求参数:"+object);
|
|
|
|
String response = httpClientUtil.sendPost(url,object.toJSONString());
|
|
|
|
|
|
logger.info("请求参数:"+msg);
|
|
|
|
String response = httpClientUtil.sendPost(url,msg.toJSONString());
|
|
logger.info("退出授权接口 :"+response);
|
|
logger.info("退出授权接口 :"+response);
|
|
return JSONObject.parseObject(response);
|
|
return JSONObject.parseObject(response);
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|