admin
2021-12-21 fd0097a37e24c771d5ad271135e48e8f52e325e0
BuWanVideo/src/com/weikou/beibeivideo/ui/recommend/CategoryRecommendFragment.java
@@ -24,6 +24,7 @@
import com.weikou.beibeivideo.entity.VideoType;
import com.weikou.beibeivideo.ui.category.CategoryRecommendAdapter;
import com.weikou.beibeivideo.util.DimenUtils;
import com.weikou.beibeivideo.util.JsonUtil;
import org.apache.http.Header;
import org.json.JSONObject;
@@ -169,10 +170,8 @@
                                                 Header[] headers, JSONObject jsonObject)
                            throws Exception {
                        if (jsonObject.getBoolean("IsPost")) {
                            Gson gson = new GsonBuilder().setFieldNamingPolicy(
                                    FieldNamingPolicy.UPPER_CAMEL_CASE)
                                    .create();
                            List<VideoInfo> videoInfos = gson.fromJson(
                            List<VideoInfo> videoInfos = JsonUtil.videoGson.fromJson(
                                    jsonObject.getJSONObject("Data")
                                            .getJSONArray("data").toString(),
                                    new TypeToken<List<VideoInfo>>() {