Commit 5901dcd8 by 冷斌

fix bug

parent 8d18811a
......@@ -413,6 +413,8 @@ class Api_Live extends PhalApi_Api {
$vip=getUserVip($uid);
$info['vip']=$vip;
// 排名
$info['key'] = $this->getbaiming($uid);
$dataroom=array(
"uid"=>$uid,
......@@ -495,6 +497,8 @@ class Api_Live extends PhalApi_Api {
$jackpotinfo = getJackpotInfo();
$info['jackpot_level']=$jackpotinfo['level'];
}
$rs['info'][0] = $info;
......@@ -903,6 +907,20 @@ class Api_Live extends PhalApi_Api {
}
protected function getbaiming($uid)
{
$domain=new Domain_Home();
$res=$domain->wealth('day');
$i = 0;
foreach ($res as $key => $r){
if ($r['uid'] == $uid) {
$i = $key + 1;
break;
}
}
return $i;
}
/**
* 进入直播间
* @desc 用于用户进入直播
......@@ -1153,6 +1171,9 @@ class Api_Live extends PhalApi_Api {
$info['jackpot_level']=$jackpotinfo['level'];
}
// 排名
$info['key'] = $this->getbaiming($liveuid);
$rs['info'][0]=$info;
return $rs;
}
......
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