|
|
@@ -19,6 +19,7 @@ import org.springframework.http.HttpStatus;
|
|
|
import org.springframework.jdbc.core.BeanPropertyRowMapper;
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
+import org.springframework.util.StringUtils;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.HashMap;
|
|
|
@@ -66,10 +67,11 @@ public class PnsDataSyncTask {
|
|
|
logger.info("{}",pageReq.toString());
|
|
|
try {
|
|
|
HttpUtil.Response response = HttpUtil.sendPostRequest(pnsConfig.getRoute(), reqHeader, pageReq.toString());
|
|
|
- logger.info("{}",response.getResponseText());
|
|
|
+ logger.info("{}, statusCode{}",response.getResponseText(), response.getStatusCode());
|
|
|
if (response.getStatusCode() == HttpStatus.OK.value()) {
|
|
|
String data = response.getResponseText();
|
|
|
- if (StringUtil.hasText(data)) {
|
|
|
+ System.out.println(data);
|
|
|
+ if (StringUtils.hasText(data)) {
|
|
|
PNSSendResp resp = FlexJsonUtil.fromJson(String.valueOf(FlexJsonUtil.fromJson(data).get("result")), PNSSendResp.class);
|
|
|
logger.info("{},{}",resp,resp.getSuccess());
|
|
|
if(resp.getSuccess()) {
|