admin
2021-03-30 12a19ad554e6f7c5c355856c12914bca7bce70e8
BuWanVideo/src/com/weikou/beibeivideo/BeibeiVideoAPI.java
@@ -757,12 +757,15 @@
    }
    public static void getHomeAd(Context context, String uid, String vtid,
    public static void getHomeAd(Context context, String uid, String vtid, String dataKey,
                                 ResponseHandlerInterface handler) {
        LinkedHashMap<String, String> params = new LinkedHashMap<String, String>();
        params.put("Method", "getHomeAd");
        params.put("Uid", uid);
        params.put("Vtid", vtid);
        if (dataKey != null) {
            params.put("DataKey", dataKey);
        }
        commonPost(context, BASE_URL + "recommend", params, handler);
    }
@@ -831,12 +834,25 @@
    }
    public static void getHomeType(Context context, String uid, String vtid,
    public static void getHomeType(Context context, String uid, String vtid, String dataKey,
                                   ResponseHandlerInterface handler) {
        LinkedHashMap<String, String> params = new LinkedHashMap<String, String>();
        params.put("Method", "getHomeType");
        params.put("Uid", uid);
        params.put("Vtid", vtid);
        if (dataKey != null) {
            params.put("DataKey", dataKey);
        }
        commonPost(context, BASE_URL + "recommend", params, handler);
    }
    public static void getHomeVideoList(Context context, String id, int page,
                                        ResponseHandlerInterface handler) {
        LinkedHashMap<String, String> params = new LinkedHashMap<String, String>();
        params.put("Method", "getHomeVideoList");
        params.put("Id", id);
        params.put("Page", page + "");
        commonPost(context, BASE_URL + "recommend", params, handler);
    }
@@ -1109,7 +1125,7 @@
    }
    public static void getVideoDetail(Context context, String uid,
                                      String ResourceId, String videoId, Integer position, String loginid, String type,
                                      String ResourceId, String videoId, Integer position, String loginid, String type, String from,
                                      ResponseHandlerInterface handler) {
        LinkedHashMap<String, String> params = new LinkedHashMap<String, String>();
        params.put("Method", "getVideoDetail");
@@ -1118,6 +1134,10 @@
        params.put("VideoId", videoId);
        if (position != null) {
            params.put("Position", position + "");
        }
        if (from != null) {
            params.put("From", from + "");
        }
        params.put("ResourceId", ResourceId);
        params.put("Type", type);
@@ -1365,7 +1385,7 @@
        for (Iterator<String> its = params.keySet().iterator(); its.hasNext(); ) {
            String key = its.next();
            if (params.get(key) != null) {
                newParams.put(key,params.get(key));
                newParams.put(key, params.get(key));
            }
        }