فهرست منبع

直播观看详情数据插入增加场次条件
直播聊天记录插入增加场次条件

沈静伟 4 سال پیش
والد
کامیت
22ef6c29e7

+ 2 - 1
src/dsb/com/cnd3b/service/SQL/频道直播观众聊天记录数据插入.sql

@@ -7,4 +7,5 @@ select 0, $id$, $accountid$, $clientip$,
        N$content$, $event$, $imageurl$, $msgtype$, $quote$,
        $sessionid$, $roomid$, $channelid$, $time$, $usertype$,
        $status$, $sourcetype$, $actor$, $banned$, $pic$,
-       $nickname$, $uid$, $userid$,$usersource$
+       $nickname$, $uid$, $userid$,$usersource$
+       where not exists (select *from tlive_usermessages where channelid=$channelid$ and sessionid=$sessionid$ and id=$id$)

+ 2 - 2
src/dsb/com/cnd3b/service/SQL/频道直播观看详情数据插入.sql

@@ -3,7 +3,7 @@ playDuration=$playduration$,
 stayDuration=$stayduration$,
 flowSize=$flowsize$,
 lastModified=$lastmodified$
-where channelid =$channelid$ and playid=$playid$
+where channelid =$channelid$ and playid=$playid$ and sessionid=$sessionid$
 
 insert into tlive_viewlog(ptype, rmkenable, playid, userid, channelid,
                           playduration, stayduration, flowsize, sessionid, param1,
@@ -17,4 +17,4 @@ select $ptype$, 0, $playid$, $userid$, $channelid$,
     $country$, $province$, $city$, $isp$, $referer$,
     $useragent$, $operatingsystem$, $browser$, $ismobile$, $currentday$,
     $createdtime$, $lastmodified$
-where not exists (select * from tlive_viewlog where channelid =$channelid$ and playid=$playid$)
+where not exists (select * from tlive_viewlog where channelid =$channelid$ and playid=$playid$ and sessionid=$sessionid$)