|
|
|
@ -19,6 +19,7 @@ import javax.net.ssl.X509TrustManager; |
|
|
|
|
import org.slf4j.Logger; |
|
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
|
import com.ruoyi.common.constant.Constants; |
|
|
|
|
import com.ruoyi.common.utils.StringUtils; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 通用http发送方法 |
|
|
|
@ -55,7 +56,7 @@ public class HttpUtils |
|
|
|
|
BufferedReader in = null; |
|
|
|
|
try |
|
|
|
|
{ |
|
|
|
|
String urlNameString = url + "?" + param; |
|
|
|
|
String urlNameString = StringUtils.isNotBlank(param) ? url + "?" + param : url; |
|
|
|
|
log.info("sendGet - {}", urlNameString); |
|
|
|
|
URL realUrl = new URL(urlNameString); |
|
|
|
|
URLConnection connection = realUrl.openConnection(); |
|
|
|
|