Browse Source

直播数据统计改为秒

吴志根 3 years ago
parent
commit
e966e35cf7

+ 1 - 1
src/dsb/com/cnd3b/restcontroller/customer/live/SQL/观看时长.sql

@@ -1 +1 @@
-select CEILING(sum(playduration)/60) as num from tlive_viewlog where channelid = $channelid$
+select CEILING(sum(playduration)) as num from tlive_viewlog where channelid = $channelid$

+ 2 - 2
src/dsb/com/cnd3b/restcontroller/customer/live/live.java

@@ -156,7 +156,7 @@ public class live extends Controller {
             //ÈË´Î
             liveuv = paoRemote.getInt("liveuv");
             //ʱ³¤
-            duration = paoRemote.getInt("duration") / 60;
+            duration = paoRemote.getInt("duration") ;
         }
 
         JSONObject resultObject = new JSONObject();
@@ -271,7 +271,7 @@ public class live extends Controller {
             //ÈË´Î
             liveuv = paoRemote.getInt("liveuv");
             //ʱ³¤
-            duration = paoRemote.getInt("duration") / 60;
+            duration = paoRemote.getInt("duration") ;
         }
 
         JSONObject resultObject = new JSONObject();