fix: 快递鸟抛出异常
This commit is contained in:
parent
948b67558a
commit
621b2e322c
@ -200,8 +200,9 @@ public class KdniaoPlugin implements LogisticsPlugin {
|
|||||||
JSONObject obj = JSONObject.parseObject(result);
|
JSONObject obj = JSONObject.parseObject(result);
|
||||||
log.info("电子面单响应:{}", result);
|
log.info("电子面单响应:{}", result);
|
||||||
if (!"100".equals(obj.getString("ResultCode"))) {
|
if (!"100".equals(obj.getString("ResultCode"))) {
|
||||||
resultMap.put("Reason",obj.getString("Reason"));
|
// resultMap.put("Reason",obj.getString("Reason"));
|
||||||
return resultMap;
|
throw new ServiceException(obj.getString("Reason"));
|
||||||
|
// return resultMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
JSONObject orderJson = JSONObject.parseObject(obj.getString("Order"));
|
JSONObject orderJson = JSONObject.parseObject(obj.getString("Order"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user