|
@ -103,11 +103,12 @@ public class HealthCareService {
|
|
|
String stringSignTemp ="appid="+ylzConfigAppid+"&appsecret="+ylzConfigAppSecret+"&data="+data+"&funid="+funid+"&sign_type=md5&key="+ylzConfigSignKey;
|
|
|
String sign = MD5.md5(stringSignTemp).toUpperCase();
|
|
|
object.put("sign",sign);
|
|
|
String encrypt_data = SafeUtil.encrypt(data.toJSONString(),ylzConfigEncryptKey);
|
|
|
object.put("encrypt_data",encrypt_data);
|
|
|
object.put("data",data);
|
|
|
object.put("funid",funid);
|
|
|
String obj = SafeUtil.encrypt(object.toJSONString(),ylzConfigEncryptKey);
|
|
|
JSONObject jsonObject = JSONObject.parseObject(obj);
|
|
|
logger.info("请求前funid=="+funid+"data="+data);
|
|
|
String response = httpClientUtil.postBody(ylzConfigUrl,object);
|
|
|
String response = httpClientUtil.postBody(ylzConfigUrl,jsonObject);
|
|
|
logger.info("请求后response=="+response);
|
|
|
if (response!=null&&response!=""){
|
|
|
JSONObject result = JSONObject.parseObject(response);
|