Commit 3a549499 by 冷斌

踢人

parent 968ab551
......@@ -508,7 +508,7 @@ class Model_Home extends PhalApi_Model_NotORM {
$where=" islive='1' and lng!='' and lat!='' ";
$configpri=getConfigPri();
$result=DI()->notorm->users_live
->select("uid,title,province,city,stream,lng,lat,pull,isvideo,thumb,islive,type,type_val,game_action,goodnum,anyway,getDistance('{$lat}','{$lng}',lat,lng) as distance")
->select("uid,thumb,title,province,city,stream,lng,lat,pull,isvideo,thumb,islive,type,type_val,game_action,goodnum,anyway,getDistance('{$lat}','{$lng}',lat,lng) as distance")
->where($where)
->order("distance asc")
->limit($start,$pnum)
......@@ -517,9 +517,16 @@ 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