Bläddra i källkod

保利威直播内容更新

沈静伟 4 år sedan
förälder
incheckning
d726da308e

+ 1 - 1
src/dsb/com/cnd3b/common/restful/WebClientRest.java

@@ -588,7 +588,7 @@ public class WebClientRest {
         result.put("status", "1");
         result.put("status", "1");
         result.put("userid", userid);
         result.put("userid", userid);
         result.put("nickname", userrows.get(0).getString("fname"));
         result.put("nickname", userrows.get(0).getString("fname"));
-        result.put("marqueeName", "괏적瓜꿎桿텝쯩됐");
+        result.put("marqueeName", "꼈拱소殮꺄");
         // result.put("actor", "欺�");
         // result.put("actor", "欺�");
         result.put("actorFColor", "#2469f3");
         result.put("actorFColor", "#2469f3");
         result.put("actorBgColor", null);
         result.put("actorBgColor", null);

+ 3 - 3
src/dsb/com/cnd3b/service/GetPolyvAnalysisBigData.java

@@ -181,18 +181,18 @@ public class GetPolyvAnalysisBigData extends BaseClass implements Runnable {
         Polyv polyv = new Polyv();
         Polyv polyv = new Polyv();
         out:
         out:
         for (String channelid : channelids) {
         for (String channelid : channelids) {
-            String fdate = getDate_Str();
+            String startdate = getDate_Str();
             Rows maxtimerows = dbConnect.runSqlQuery("select isnull(max(time),0) as ftime from tlive_usermessages where channelid='" + channelid + "' having isnull(max(time),0)>0");
             Rows maxtimerows = dbConnect.runSqlQuery("select isnull(max(time),0) as ftime from tlive_usermessages where channelid='" + channelid + "' having isnull(max(time),0)>0");
             if (!maxtimerows.isEmpty()) {
             if (!maxtimerows.isEmpty()) {
                 Calendar calendar = Calendar.getInstance();
                 Calendar calendar = Calendar.getInstance();
                 calendar.setTimeInMillis(Long.parseLong(maxtimerows.get(0).getString("ftime")) + 1000);
                 calendar.setTimeInMillis(Long.parseLong(maxtimerows.get(0).getString("ftime")) + 1000);
-                fdate = getDateTime_Str(calendar.getTime());
+                startdate = getDateTime_Str(calendar.getTime());
             }
             }
             ArrayList<String> sqllist = new ArrayList<>();
             ArrayList<String> sqllist = new ArrayList<>();
             boolean islastpage;
             boolean islastpage;
             int pageNumber = 1;
             int pageNumber = 1;
             do {
             do {
-                JSONObject object = polyv.getPageMessageList(channelid, fdate, "200", String.valueOf(pageNumber++));
+                JSONObject object = polyv.getPageMessageList(channelid, startdate, getDate_Str(), "200", String.valueOf(pageNumber++));
                 if (object == null) {
                 if (object == null) {
                     continue out;
                     continue out;
                 }
                 }

+ 3 - 3
src/dsb/com/cnd3b/utility/polyv/Polyv.java

@@ -429,7 +429,7 @@ public class Polyv {
      * @throws IOException
      * @throws IOException
      * @throws NoSuchAlgorithmException
      * @throws NoSuchAlgorithmException
      */
      */
-    public JSONObject getPageMessageList(String channelId, String currentDay, String pageSize, String page) {
+    public JSONObject getPageMessageList(String channelId,String startDay, String endDay, String pageSize, String page) {
         //ÒµÎñ²ÎÊý
         //ÒµÎñ²ÎÊý
         String url = "http://api.polyv.net/live/v3/channel/chat/get-history-page";
         String url = "http://api.polyv.net/live/v3/channel/chat/get-history-page";
         try {
         try {
@@ -442,8 +442,8 @@ public class Polyv {
             Map<String, String> requestMap = new HashMap<>();
             Map<String, String> requestMap = new HashMap<>();
             requestMap.put("appId", appid);
             requestMap.put("appId", appid);
             requestMap.put("timestamp", String.valueOf(System.currentTimeMillis()));
             requestMap.put("timestamp", String.valueOf(System.currentTimeMillis()));
-            requestMap.put("startDay", currentDay);
-            requestMap.put("endDay", currentDay);
+            requestMap.put("startDay", startDay);
+            requestMap.put("endDay", endDay);
             requestMap.put("channelId", channelId);
             requestMap.put("channelId", channelId);
             requestMap.put("page", page);
             requestMap.put("page", page);
             requestMap.put("pageSize", pageSize);
             requestMap.put("pageSize", pageSize);