修复参数替换数组的Bug
This commit is contained in:
parent
aa5f85bc99
commit
c8593ad1a8
|
@ -216,6 +216,16 @@ public class ChangString {
|
||||||
}
|
}
|
||||||
//如果是list就提取出来
|
//如果是list就提取出来
|
||||||
if(entry.getValue() instanceof List){
|
if(entry.getValue() instanceof List){
|
||||||
|
if(key.equals(entry.getKey())){
|
||||||
|
if(keyindex==COUNTER){
|
||||||
|
luckyclient.publicclass.LogUtil.APP.info("对象原始String值:【"+entry.getValue()+"】");
|
||||||
|
JSONArray jsonarr = JSONArray.parseArray(value);
|
||||||
|
entry.setValue(jsonarr);
|
||||||
|
luckyclient.publicclass.LogUtil.APP.info("对象替换后String值:【"+entry.getValue()+"】");
|
||||||
|
BCHANG=true;
|
||||||
|
}
|
||||||
|
COUNTER++;
|
||||||
|
}else{
|
||||||
@SuppressWarnings("rawtypes")
|
@SuppressWarnings("rawtypes")
|
||||||
List list = (List)entry.getValue();
|
List list = (List)entry.getValue();
|
||||||
for (int i = 0; i < list.size(); i++) {
|
for (int i = 0; i < list.size(); i++) {
|
||||||
|
@ -238,6 +248,7 @@ public class ChangString {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
//如果是String就获取它的值
|
//如果是String就获取它的值
|
||||||
if(entry.getValue() instanceof String){
|
if(entry.getValue() instanceof String){
|
||||||
if(key.equals(entry.getKey())){
|
if(key.equals(entry.getKey())){
|
||||||
|
|
Loading…
Reference in New Issue