|
|
@ -39,7 +39,7 @@ public class RequestUtils { |
|
|
httpcon.setDoInput(true); |
|
|
httpcon.setDoInput(true); |
|
|
// 存在token的时候
|
|
|
// 存在token的时候
|
|
|
if(StringUtils.isNotEmpty(token)){ |
|
|
if(StringUtils.isNotEmpty(token)){ |
|
|
httpcon.setRequestProperty("api_token",token); |
|
|
httpcon.addRequestProperty("api_token",token); |
|
|
} |
|
|
} |
|
|
httpcon.connect(); |
|
|
httpcon.connect(); |
|
|
//获取返回的字符
|
|
|
//获取返回的字符
|
|
|
|