瀏覽代碼

【疫情防控代码】

wangzhinan 3 年之前
父節點
當前提交
dbc2f85c91

+ 4 - 3
business/base-service/src/main/java/com/yihu/jw/healthCare/service/HealthCareService.java

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