.build().connTimeOut(6000).readTimeOut(6000)
|
|
351
|
335
|
.execute(new StringCallback() {
|
|
|
@ -374,15 +358,7 @@ public class ZhanCommentFragment extends Fragment {
|
|
374
|
358
|
|
|
375
|
359
|
for (int j = 0; j < jsonArray.length(); j++) {
|
|
376
|
360
|
JSONObject jsonObject = (JSONObject) jsonArray.opt(j);
|
|
377
|
|
String is_play = TextUtils.isEmpty( jsonObject.getString("is_play"))?"": jsonObject.getString("is_play") ; //0 审核未通过 item隐藏,1 审核通过,item显示
|
|
378
|
|
String type = TextUtils.isEmpty(jsonObject.getString("type"))?"":jsonObject.getString("type"); //23 视频,24 图片
|
|
379
|
|
if (type.equals("23")){
|
|
380
|
|
if (is_play.equals("1")){
|
|
381
|
|
datas.add(jsonObject);
|
|
382
|
|
}
|
|
383
|
|
}else{
|
|
384
|
|
datas.add(jsonObject);
|
|
385
|
|
}
|
|
|
361
|
datas.add(jsonObject);
|
|
386
|
362
|
}
|
|
387
|
363
|
|
|
388
|
364
|
if (isClear == false) {
|