Commit fc745002 by 冷斌

踢人

parent 47b89e8d
...@@ -7,6 +7,7 @@ class Api_Livepk extends PhalApi_Api { ...@@ -7,6 +7,7 @@ class Api_Livepk extends PhalApi_Api {
'getLiveList' => array( 'getLiveList' => array(
'uid' => array('name' => 'uid', 'type' => 'int', 'min' => 1, 'require' => true, 'desc' => '用户ID'), 'uid' => array('name' => 'uid', 'type' => 'int', 'min' => 1, 'require' => true, 'desc' => '用户ID'),
'p' => array('name' => 'p', 'type' => 'int', 'default' => 1, 'desc' => '页码'), 'p' => array('name' => 'p', 'type' => 'int', 'default' => 1, 'desc' => '页码'),
), ),
'search' => array( 'search' => array(
'uid' => array('name' => 'uid', 'type' => 'int', 'min' => 1, 'require' => true, 'desc' => '用户ID'), 'uid' => array('name' => 'uid', 'type' => 'int', 'min' => 1, 'require' => true, 'desc' => '用户ID'),
...@@ -45,7 +46,7 @@ class Api_Livepk extends PhalApi_Api { ...@@ -45,7 +46,7 @@ class Api_Livepk extends PhalApi_Api {
$p=1; $p=1;
} }
$where="uid!={$uid}"; $where="cmf_users_live.uid!={$uid}";
$domain = new Domain_Livepk(); $domain = new Domain_Livepk();
$list = $domain->getLiveList($uid,$where,$p); $list = $domain->getLiveList($uid,$where,$p);
......
...@@ -10,10 +10,10 @@ class Model_Livepk extends PhalApi_Model_NotORM { ...@@ -10,10 +10,10 @@ class Model_Livepk extends PhalApi_Model_NotORM {
$start=($p-1)*$pnum; $start=($p-1)*$pnum;
$list=DI()->notorm->users_live $list=DI()->notorm->users_live
->select('uid,stream,pkuid') ->select('cmf_users_live.uid, cmf_users_live.stream, cmf_users_live.pkuid')
->where('islive=1 and isvideo=0') // ->where('cmf_users_live.islive=1 and cmf_users_live.isvideo=0')
->where($where) ->where($where)
->order('starttime desc') ->order('cmf_users_live.starttime desc')
->limit($start,$pnum) ->limit($start,$pnum)
->fetchAll(); ->fetchAll();
foreach($list as $k=>$v){ foreach($list as $k=>$v){
......
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