|
@@ -182,8 +182,9 @@ public class OkHttpUtils {
|
|
|
try {
|
|
|
Response response = okHttpClient.newCall(request).execute();
|
|
|
if (response.code() == 200) {
|
|
|
- log.info("http Post 请求成功; [url={}, requestContent={},return={}]", url, json,response.body().string());
|
|
|
- return response.body().string();
|
|
|
+ String returnStr = response.body().string();
|
|
|
+ log.info("http Post 请求成功; [url={}, requestContent={},return={}]", url, json,returnStr);
|
|
|
+ return returnStr;
|
|
|
} else {
|
|
|
log.warn("Http POST 请求失败; [ errorCode = {}, url={}, param={}]", response.code(), url, json);
|
|
|
}
|