|
@@ -23,10 +23,13 @@ class Score
|
|
}
|
|
}
|
|
|
|
|
|
# 获取小刊的积分排行
|
|
# 获取小刊的积分排行
|
|
- public function getList($id, $type = 4)
|
|
|
|
|
|
+ public function getList($id, $type = 4, $uid = false)
|
|
{
|
|
{
|
|
$where['type'] = $type;
|
|
$where['type'] = $type;
|
|
$where['data_id'] = $id;
|
|
$where['data_id'] = $id;
|
|
|
|
+ if ($uid > 0) {
|
|
|
|
+ $where['uid'] = $uid;
|
|
|
|
+ }
|
|
$data = Dever::db('act/score')->getAll($where);
|
|
$data = Dever::db('act/score')->getAll($where);
|
|
|
|
|
|
if ($data) {
|
|
if ($data) {
|