From 12a19ad554e6f7c5c355856c12914bca7bce70e8 Mon Sep 17 00:00:00 2001
From: admin <2780501319@qq.com>
Date: 星期二, 30 三月 2021 01:39:47 +0800
Subject: [PATCH] 搜索与搜索结果页,白色背景兼容

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

diff --git a/BuWanVideo/src/com/weikou/beibeivideo/BeibeiVideoAPI.java b/BuWanVideo/src/com/weikou/beibeivideo/BeibeiVideoAPI.java
index 8a0cf5f..435f1e7 100644
--- a/BuWanVideo/src/com/weikou/beibeivideo/BeibeiVideoAPI.java
+++ b/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));
             }
         }
 

--
Gitblit v1.8.0