From 99b584f7b2cc386e79d3e3d4c48635a4242ca994 Mon Sep 17 00:00:00 2001
From: wuxw7 <wuxw7@asiainfo.com>
Date: 星期日, 25 十一月 2018 16:36:11 +0800
Subject: [PATCH] 修复center服务 订单属性bug
---
java110-core/src/main/java/com/java110/core/factory/DataFlowFactory.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/java110-core/src/main/java/com/java110/core/factory/DataFlowFactory.java b/java110-core/src/main/java/com/java110/core/factory/DataFlowFactory.java
index 6c7072c..9df2dcd 100644
--- a/java110-core/src/main/java/com/java110/core/factory/DataFlowFactory.java
+++ b/java110-core/src/main/java/com/java110/core/factory/DataFlowFactory.java
@@ -179,7 +179,7 @@
public static List<Map> getOrderAttrs(DataFlow dataFlow){
List<Map> orderAttrs = new ArrayList<Map>();
JSONObject reqOrders = dataFlow.getReqOrders();
- if(!reqOrders.containsKey("attrs") && reqOrders.getJSONArray("attrs").size() ==0){
+ if(!reqOrders.containsKey("attrs") || reqOrders.getJSONArray("attrs").size() ==0){
return orderAttrs;
}
JSONArray attrs = reqOrders.getJSONArray("attrs");
--
Gitblit v1.8.0