Commit 702bf315 by 冷斌

首页

parent 5052ccc0
......@@ -73,7 +73,7 @@ class Model_Home extends PhalApi_Model_NotORM {
$result=DI()->notorm->users_live
->select("uid,title,city,stream,pull,thumb,isvideo,type,type_val,game_action,goodnum,anyway")
->where($where)
->order('isrecommend desc,hotvotes desc,starttime desc')
->order('hotvotes desc,starttime desc')
->limit($start,$pnum)
->fetchAll();
......
......@@ -786,11 +786,11 @@ class Model_Live extends PhalApi_Model_NotORM {
/* 更新主播热门 */
if($giftinfo['mark']==1){
// if($giftinfo['mark']==1){
DI()->notorm->users_live
->where('uid = ?', $liveuid)
->update( array('hotvotes' => new NotORM_Literal("hotvotes + {$total}") ));
}
// }
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