File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
APIJSON-Java-Server/APIJSON-Eclipse/src/main/java/zuo/biao/apijson/server Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -843,8 +843,21 @@ private Object getValueByPath(String valuePath) {
843
843
}
844
844
}
845
845
846
- Log .i (TAG , "getValueByPath return parent == null ? valuePath : parent.get(keys[keys.length - 1]); >> " );
847
- return parent == null ? valuePath : parent .get (keys [keys .length - 1 ]);
846
+ if (parent != null ) {
847
+ Log .i (TAG , "getValueByPath >> get from queryResultMap >> return parent.get(keys[keys.length - 1]);" );
848
+ return parent .get (keys [keys .length - 1 ]); //TODO 值为null是否应该报错? NotExistExeption
849
+ }
850
+
851
+
852
+ //从requestObject中取值
853
+ target = getValue (requestObject , StringUtil .splitPath (valuePath ));
854
+ if (target != null ) {
855
+ Log .i (TAG , "getValueByPath >> getValue >> return target = " + target );
856
+ return target ;
857
+ }
858
+
859
+ Log .i (TAG , "getValueByPath return valuePath;" );
860
+ return valuePath ;
848
861
}
849
862
850
863
//依赖引用关系 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
You can’t perform that action at this time.
0 commit comments