|
@@ -146,7 +146,7 @@ public class EfastOrderServiceImpl implements EfastOrderService {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public boolean addOrderInfoToEfast(MQMessage message) throws Exception {
|
|
public boolean addOrderInfoToEfast(MQMessage message) throws Exception {
|
|
-
|
|
|
|
|
|
+ logger.info("WaterPF addOrderInfoToEfast Start.....");
|
|
// orderInfo
|
|
// orderInfo
|
|
Order order = adminOrderService.getShopOrderByOrderId(message.getServiceToMessage());
|
|
Order order = adminOrderService.getShopOrderByOrderId(message.getServiceToMessage());
|
|
if (order == null || order.getSalesOrderid() == null) {
|
|
if (order == null || order.getSalesOrderid() == null) {
|
|
@@ -345,9 +345,10 @@ public class EfastOrderServiceImpl implements EfastOrderService {
|
|
requestData.put("info", orderDataStr);
|
|
requestData.put("info", orderDataStr);
|
|
|
|
|
|
try {
|
|
try {
|
|
- String result = HttpClient431Util.doGet(requestData, url);
|
|
|
|
|
|
+ logger.info("WaterPF HttpClient431Util.doGet1...");
|
|
|
|
+ String result = HttpClient431Util.doPost(requestData, url);
|
|
result = StringEscapeUtils.unescapeJava(result); // unicode 编码
|
|
result = StringEscapeUtils.unescapeJava(result); // unicode 编码
|
|
- logger.info("add-推送订单号为:" + order.getSalesOrderid() + j + "的订单,百胜返回信息:" + result);
|
|
|
|
|
|
+ logger.info("WaterPF add-推送订单号为:" + order.getSalesOrderid() + j + "的订单,百胜返回信息:" + result);
|
|
// parse JSON String to Object
|
|
// parse JSON String to Object
|
|
JSONObject jsonObject = JSONObject.fromObject(result);
|
|
JSONObject jsonObject = JSONObject.fromObject(result);
|
|
JSONObject respData = JSONObject.fromObject(jsonObject.get("resp_data"));
|
|
JSONObject respData = JSONObject.fromObject(jsonObject.get("resp_data"));
|
|
@@ -361,7 +362,8 @@ public class EfastOrderServiceImpl implements EfastOrderService {
|
|
logger.error(this, "add-推送订单号为:" + order.getSalesOrderid() + j + "的订单,百胜返回信息:" + result);
|
|
logger.error(this, "add-推送订单号为:" + order.getSalesOrderid() + j + "的订单,百胜返回信息:" + result);
|
|
//throw new Exception(respData.getString("msg"));
|
|
//throw new Exception(respData.getString("msg"));
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
- //e.printStackTrace();
|
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ logger.info("WaterPF addOrderInfoToEfast error1...");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -387,7 +389,8 @@ public class EfastOrderServiceImpl implements EfastOrderService {
|
|
requestData.put("info", orderDataStr);
|
|
requestData.put("info", orderDataStr);
|
|
|
|
|
|
try {
|
|
try {
|
|
- String result = HttpClient431Util.doGet(requestData, url);
|
|
|
|
|
|
+ logger.info("WaterPF HttpClient431Util.doGet2...");
|
|
|
|
+ String result = HttpClient431Util.doPost(requestData, url);
|
|
result = StringEscapeUtils.unescapeJava(result); // unicode 编码
|
|
result = StringEscapeUtils.unescapeJava(result); // unicode 编码
|
|
logger.info("add-推送订单号为:" + "ZP" + order.getSalesOrderid() + "的订单,百胜返回信息:" + result);
|
|
logger.info("add-推送订单号为:" + "ZP" + order.getSalesOrderid() + "的订单,百胜返回信息:" + result);
|
|
// parse JSON String to Object
|
|
// parse JSON String to Object
|
|
@@ -403,9 +406,11 @@ public class EfastOrderServiceImpl implements EfastOrderService {
|
|
logger.error(this, "add-推送订单号为:" + "ZP" + order.getSalesOrderid() + "的订单,百胜返回信息:" + result);
|
|
logger.error(this, "add-推送订单号为:" + "ZP" + order.getSalesOrderid() + "的订单,百胜返回信息:" + result);
|
|
throw new Exception(jsonObject.getString("msg"));
|
|
throw new Exception(jsonObject.getString("msg"));
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
- //e.printStackTrace();
|
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ logger.info("WaterPF addOrderInfoToEfast error2...");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ logger.info("WaterPF addOrderInfoToEfast end......");
|
|
return returnFlag;
|
|
return returnFlag;
|
|
}
|
|
}
|
|
|
|
|