Commit 702bf315 by 冷斌

首页

parent 5052ccc0
...@@ -73,7 +73,7 @@ class Model_Home extends PhalApi_Model_NotORM { ...@@ -73,7 +73,7 @@ class Model_Home extends PhalApi_Model_NotORM {
$result=DI()->notorm->users_live $result=DI()->notorm->users_live
->select("uid,title,city,stream,pull,thumb,isvideo,type,type_val,game_action,goodnum,anyway") ->select("uid,title,city,stream,pull,thumb,isvideo,type,type_val,game_action,goodnum,anyway")
->where($where) ->where($where)
->order('isrecommend desc,hotvotes desc,starttime desc') ->order('hotvotes desc,starttime desc')
->limit($start,$pnum) ->limit($start,$pnum)
->fetchAll(); ->fetchAll();
......
...@@ -786,11 +786,11 @@ class Model_Live extends PhalApi_Model_NotORM { ...@@ -786,11 +786,11 @@ class Model_Live extends PhalApi_Model_NotORM {
/* 更新主播热门 */ /* 更新主播热门 */
if($giftinfo['mark']==1){ // if($giftinfo['mark']==1){
DI()->notorm->users_live DI()->notorm->users_live
->where('uid = ?', $liveuid) ->where('uid = ?', $liveuid)
->update( array('hotvotes' => new NotORM_Literal("hotvotes + {$total}") )); ->update( array('hotvotes' => new NotORM_Literal("hotvotes + {$total}") ));
} // }
DI()->redis->zIncrBy('user_'.$stream,$total,$uid); DI()->redis->zIncrBy('user_'.$stream,$total,$uid);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment