tangxiaobao
2021-08-04 202c08e4c835e4fa00452577d954025045f7961e
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/HttpUtils.java
@@ -1,6 +1,9 @@
package com.panzhihua.common.utlis;
import com.alibaba.fastjson.JSONException;
import com.alibaba.fastjson.JSONObject;
import com.panzhihua.common.constants.Constants;
import com.panzhihua.common.model.dtos.wx.WxSubscribeDTO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.ObjectUtils;
@@ -97,6 +100,12 @@
        return result.toString();
    }
    public static String wxMessageModeSendUrl(String token, WxSubscribeDTO subscribeDTO) throws Exception {
        String tmpurl = "https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=ACCESS_TOKEN";
        String url = tmpurl.replace("ACCESS_TOKEN", token);
        return HttpClientUtil.httpPost(url, subscribeDTO.toJSON());
    }
    public static String sendSSLPost(String url, String param)