Commit 2672a248 by 冷斌

踢人

parent bda96a99
......@@ -48,7 +48,7 @@ class Api_Livepk extends PhalApi_Api {
$p=1;
}
$where="cmf_users_live.uid!={$uid}";
$where="uid!={$uid}";
if (!$name) {
$where .= " and cmf_users.user_nicename like '%".$name."%'";
}
......
......@@ -10,10 +10,10 @@ class Model_Livepk extends PhalApi_Model_NotORM {
$start=($p-1)*$pnum;
$list=DI()->notorm->users_live
->select('cmf_users_live.uid, cmf_users_live.stream, cmf_users_live.pkuid')
->select('uid, stream, pkuid')
// ->where('cmf_users_live.islive=1 and cmf_users_live.isvideo=0')
->where($where)
->order('cmf_users_live.starttime desc')
->order('starttime desc')
->limit($start,$pnum)
->fetchAll();
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