From efa9c4225fe7e89c4acb1eacedd392d79aee240d Mon Sep 17 00:00:00 2001
From: admin <2780501319@qq.com>
Date: 星期四, 15 四月 2021 01:59:24 +0800
Subject: [PATCH] 影视豆界面完善

---
 BuWanVideo/src/com/weikou/beibeivideo/BeibeiVideoAPI.java |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 50 insertions(+), 4 deletions(-)

diff --git a/BuWanVideo/src/com/weikou/beibeivideo/BeibeiVideoAPI.java b/BuWanVideo/src/com/weikou/beibeivideo/BeibeiVideoAPI.java
index 435f1e7..404e4b5 100644
--- a/BuWanVideo/src/com/weikou/beibeivideo/BeibeiVideoAPI.java
+++ b/BuWanVideo/src/com/weikou/beibeivideo/BeibeiVideoAPI.java
@@ -622,8 +622,14 @@
     public static void getHotSearch(Context context, String uid,
                                     ResponseHandlerInterface handler) {
         LinkedHashMap<String, String> params = new LinkedHashMap<String, String>();
-        params.put("Method", "getHotSearch");
+        params.put("Method", "getHotSearchNew");
         params.put("Uid", uid);
+        commonPost(context, BASE_URL + "user", params, handler);
+    }
+
+    public static void getSearchRank(Context context, ResponseHandlerInterface handler) {
+        LinkedHashMap<String, String> params = new LinkedHashMap<String, String>();
+        params.put("Method", "getSearchRank");
         commonPost(context, BASE_URL + "user", params, handler);
     }
 
@@ -834,12 +840,14 @@
     }
 
 
-    public static void getHomeType(Context context, String uid, String vtid, String dataKey,
+    public static void getHomeType(Context context, String uid, String vtid, String dataKey, int page, int pageSize,
                                    ResponseHandlerInterface handler) {
         LinkedHashMap<String, String> params = new LinkedHashMap<String, String>();
-        params.put("Method", "getHomeType");
+        params.put("Method", "getHomeTypeNew");
         params.put("Uid", uid);
         params.put("Vtid", vtid);
+        params.put("Page", page + "");
+        params.put("PageSize", pageSize + "");
         if (dataKey != null) {
             params.put("DataKey", dataKey);
         }
@@ -1146,6 +1154,20 @@
     }
 
 
+    public static void uploadSession(Context context, String sessionId,
+                                     String type,
+                                     ResponseHandlerInterface handler) {
+        LinkedHashMap<String, String> params = new LinkedHashMap<String, String>();
+        params.put("Method", "uploadSession");
+        if (sessionId != null)
+            params.put("sessionId", sessionId);
+        if (type != null)
+            params.put("type", type);
+        commonPost(context, BASE_URL + "session", params, handler);
+
+    }
+
+
     /**
      * 鑾峰彇鍓ч泦鍒楄〃
      *
@@ -1157,12 +1179,13 @@
      * @param handler
      */
     public static void getVideoEpisodeList(Context context, String uid,
-                                           String ResourceId, String videoId, int page,
+                                           String ResourceId, String videoId, int page, int pageSize,
                                            ResponseHandlerInterface handler) {
         LinkedHashMap<String, String> params = new LinkedHashMap<String, String>();
         params.put("Method", "getVideoEpisodeList");
         params.put("Uid", uid);
         params.put("Page", page + "");
+        params.put("PageSize", pageSize + "");
         params.put("VideoId", videoId);
         params.put("ResourceId", ResourceId);
         commonPost(context, BASE_URL + "recommend", params, handler);
@@ -1333,6 +1356,29 @@
     }
 
 
+    /**
+     * 浠樿垂瑙嗛鐨勮喘涔版椿鍔�
+     *
+     * @param context
+     * @param cid
+     * @param vid
+     * @param handler
+     */
+    public static void getPPTVVIPVideoActivity(Context context, String url, String cid, String vid,
+                                               ResponseHandlerInterface handler) {
+        String loginUid = UserUtil.getLoginUid(context);
+        LinkedHashMap<String, String> params = new LinkedHashMap<>();
+        if (loginUid != null)
+            params.put("loginUid", loginUid);
+        if (url != null) {
+            params.put("url", url);
+        }
+        params.put("cid", cid);
+        params.put("vid", vid);
+        commonPost(context, BASE_URL + "video/play/getPPTVVIPVideoActivity", params, handler);
+    }
+
+
     public static LinkedHashMap<String, String> validateParams(
             LinkedHashMap<String, String> params, Context context) {
         params.put("System", "1");

--
Gitblit v1.8.0