Commit 1a08b38d by 冷斌

踢人

parent 3a549499
......@@ -71,7 +71,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")
->select("uid,thumb,title,city,stream,pull,thumb,isvideo,type,type_val,game_action,goodnum,anyway")
->where($where)
->order('hotvotes desc,starttime desc')
->limit($start,$pnum)
......@@ -81,9 +81,17 @@ class Model_Home extends PhalApi_Model_NotORM {
$nums=DI()->redis->zSize('user_'.$v['stream']);
$v['nums']=(string)$nums;
$image = DI()->notorm->users_live_image
->where('uid=?',$v['uid'])
->fetchOne();
$avatar = $v['thumb'];
if (!empty($image) && $image['status'] == 1) {
$avatar = $image['thumb'];
}
$userinfo=getUserInfo($v['uid']);
$v['avatar']=$userinfo['avatar'];
$v['avatar_thumb']=$userinfo['avatar_thumb'];
$v['avatar']=$avatar;
$v['avatar_thumb']=$avatar;
$v['user_nicename']=$userinfo['user_nicename'];
$v['sex']=$userinfo['sex'];
$v['level']=$userinfo['level'];
......@@ -562,7 +570,7 @@ class Model_Home extends PhalApi_Model_NotORM {
$configpri=getConfigPri();
$where=" isrecommend = '1' and islive= '1' and ishot='1' ";
$result=DI()->notorm->users_live
->select("uid,title,city,stream,pull,thumb,isvideo,type,type_val,game_action,goodnum,anyway")
->select("uid,thumb,title,city,stream,pull,thumb,isvideo,type,type_val,game_action,goodnum,anyway")
->where($where)
->order('starttime desc')
->limit(50)
......@@ -572,9 +580,17 @@ class Model_Home extends PhalApi_Model_NotORM {
$nums=DI()->redis->zSize('user_'.$v['stream']);
$v['nums']=(string)$nums;
$image = DI()->notorm->users_live_image
->where('uid=?',$v['uid'])
->fetchOne();
$avatar = $v['thumb'];
if (!empty($image) && $image['status'] == 1) {
$avatar = $image['thumb'];
}
$userinfo=getUserInfo($v['uid']);
$v['avatar']=$userinfo['avatar'];
$v['avatar_thumb']=$userinfo['avatar_thumb'];
$v['avatar']=$avatar;
$v['avatar_thumb']=$avatar;
$v['user_nicename']=$userinfo['user_nicename'];
$v['sex']=$userinfo['sex'];
$v['level']=$userinfo['level'];
......
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