Showing
1 changed file
with
2 additions
and
1 deletions
| ... | @@ -114,7 +114,7 @@ public class ApiService { | ... | @@ -114,7 +114,7 @@ public class ApiService { |
| 114 | public void refreshToken(String token) throws Exception{ | 114 | public void refreshToken(String token) throws Exception{ |
| 115 | Map<String,String> map = new HashMap<String,String>(); | 115 | Map<String,String> map = new HashMap<String,String>(); |
| 116 | map.put("token", token); | 116 | map.put("token", token); |
| 117 | - HttpUtils.doPost(this.refreshTokenUrl,map); | 117 | + HttpUtils.doProxyPost(this.refreshTokenUrl,map,this.proxyUrl,this.proxyPort); |
| 118 | } | 118 | } |
| 119 | 119 | ||
| 120 | /** | 120 | /** |
| ... | @@ -156,6 +156,7 @@ public class ApiService { | ... | @@ -156,6 +156,7 @@ public class ApiService { |
| 156 | //推送海关回执数据 | 156 | //推送海关回执数据 |
| 157 | // String json = HttpUtils.doPost(this.customsUrl,objJson,headerMap); | 157 | // String json = HttpUtils.doPost(this.customsUrl,objJson,headerMap); |
| 158 | String json = HttpUtils.doProxyPost(this.customsUrl,objJson,headerMap,this.proxyUrl,this.proxyPort); | 158 | String json = HttpUtils.doProxyPost(this.customsUrl,objJson,headerMap,this.proxyUrl,this.proxyPort); |
| 159 | + log.info("sendCustoms:"+json); | ||
| 159 | //接口响应时间 | 160 | //接口响应时间 |
| 160 | declearTask.setResponseTime(new Date()); | 161 | declearTask.setResponseTime(new Date()); |
| 161 | TokenResult tokenResult = JsonToJava.parseJson(json,TokenResult.class); | 162 | TokenResult tokenResult = JsonToJava.parseJson(json,TokenResult.class); | ... | ... |
-
Please register or login to post a comment