admin
2020-10-14 b2fc802bf35143ed957a86d95e2de49934ea9ea5
BuWanVideo/src/com/weikou/beibeivideo/BeibeiVideoAPI.java
@@ -70,7 +70,6 @@
        asyncHttpClient.setURLEncodingEnabled(false);
        syncHttpClient.setURLEncodingEnabled(false);
        sortTimeAsyncHttpClient.setURLEncodingEnabled(false);
    }
    public static void getUid(Context context, String channel, String device,
@@ -100,12 +99,20 @@
     */
    public static void getConfig(Context context,
                                 ResponseHandlerInterface handler) {
        LinkedHashMap<String, String> params = new LinkedHashMap<String, String>();
        LinkedHashMap<String, String> params = new LinkedHashMap<>();
        params.put("Method", "getConfig");
        if (!StringUtils.isBlank(BeibeiVideoApplication.deviceNumber)) {
            params.put("DeviceName", BeibeiVideoApplication.deviceName);
            params.put("DeviceNumber", BeibeiVideoApplication.deviceNumber);
        }
        commonPost(context, BASE_URL + "config", params, null, handler, true, true);
    }
    public static void getHomeConfig(Context context,
                                 ResponseHandlerInterface handler) {
        LinkedHashMap<String, String> params = new LinkedHashMap<>();
        params.put("Method", "getHomeConfig");
        commonPost(context, BASE_URL + "config", params, null, handler, true, true);
    }
@@ -197,11 +204,10 @@
    public static void search(Context context, String uid, String key,
                              String contentType, String page, ResponseHandlerInterface handler) {
        LinkedHashMap<String, String> params = new LinkedHashMap<String, String>();
        params.put("Method", "search");
        params.put("Method", "searchNew");
        params.put("Uid", uid);
        params.put("Key", key);
        params.put("Type", "1");
        params.put("ContentType", contentType);
        params.put("Type", contentType);
        params.put("Page", page);
        commonPost(context, BASE_URL + "user", params, handler);
    }
@@ -716,7 +722,7 @@
    public static void getChoiceClass(Context context, String uid,
                                      ResponseHandlerInterface handler) {
        LinkedHashMap<String, String> params = new LinkedHashMap<String, String>();
        params.put("Method", "getVideoClass");
        params.put("Method", "getHomeClass");
        params.put("Uid", uid);
        commonPost(context, BASE_URL + "class", params, handler);
    }
@@ -1036,6 +1042,23 @@
    }
    public static void getBaiDuNewsTypeList(Context context,
                                 ResponseHandlerInterface handler) {
        LinkedHashMap<String, String> params = new LinkedHashMap<>();
        params.put("Method", "getNewsTypeList");
        commonPost(context, BASE_URL + "baidu", params, handler);
    }
    public static void getBaiDuVideoTypeList(Context context,
                                        ResponseHandlerInterface handler) {
        LinkedHashMap<String, String> params = new LinkedHashMap<>();
        params.put("Method", "getVideoTypeList");
        commonPost(context, BASE_URL + "baidu", params, handler);
    }
    public static LinkedHashMap<String, String> validateParams(
            LinkedHashMap<String, String> params, Context context) {
        params.put("System", "1");