|
@ -171,6 +171,9 @@ public class HealthCareNewService {
|
|
String signResult = SafeUtil.sign(object.toJSONString(),ylzConfigSignKey);
|
|
String signResult = SafeUtil.sign(object.toJSONString(),ylzConfigSignKey);
|
|
obj = SafeUtil.encrypt(signResult,ylzConfigEncryptKey);
|
|
obj = SafeUtil.encrypt(signResult,ylzConfigEncryptKey);
|
|
JSONObject jsonObject = JSONObject.parseObject(obj);
|
|
JSONObject jsonObject = JSONObject.parseObject(obj);
|
|
|
|
/* obj = YibaoJiaMi.encryptData(object,ylzConfigSignKey,ylzConfigEncryptKey);
|
|
|
|
|
|
|
|
JSONObject jsonObject = JSONObject.parseObject(obj);*/
|
|
logger.info("请求前funid=="+funid+"data="+data.toJSONString());
|
|
logger.info("请求前funid=="+funid+"data="+data.toJSONString());
|
|
String response = httpClientUtil.postBody(ylzConfigUrl,jsonObject);
|
|
String response = httpClientUtil.postBody(ylzConfigUrl,jsonObject);
|
|
ylzHttpLogDO.setResponseEncrpty(response);
|
|
ylzHttpLogDO.setResponseEncrpty(response);
|
|
@ -182,6 +185,8 @@ public class HealthCareNewService {
|
|
if (dataResult!=null&&dataResult!=""){
|
|
if (dataResult!=null&&dataResult!=""){
|
|
String decryptResult = AES.aesDecrypt(dataResult,ylzConfigEncryptKey);
|
|
String decryptResult = AES.aesDecrypt(dataResult,ylzConfigEncryptKey);
|
|
JSONObject dataObject = JSONObject.parseObject(decryptResult);
|
|
JSONObject dataObject = JSONObject.parseObject(decryptResult);
|
|
|
|
/* String decryptResult = YibaoJiaMi.decrypt(dataResult,ylzConfigEncryptKey);
|
|
|
|
JSONObject dataObject = JSONObject.parseObject(decryptResult);*/
|
|
result.put("encrypt_data",dataObject);
|
|
result.put("encrypt_data",dataObject);
|
|
response = result.toJSONString();
|
|
response = result.toJSONString();
|
|
}
|
|
}
|