dever %!s(int64=6) %!d(string=hai) anos
pai
achega
3c10a14dfe
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      act/lib/Score.php

+ 4 - 1
act/lib/Score.php

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