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