rabin 2 months ago
parent
commit
76a9cb0d02
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/place/api/Resource.php

+ 2 - 2
src/place/api/Resource.php

@@ -74,8 +74,8 @@ class Resource extends Main
     # 资源评论列表
     public function getReviewList()
     {
-        $data['type'] = Dever::input('type', 'is_numeric', '类型');
-        $data['type_id'] = Dever::input('type_id', 'is_numeric', '类型ID');
+        $where['type'] = Dever::input('type', 'is_numeric', '类型');
+        $where['type_id'] = Dever::input('type_id', 'is_numeric', '类型ID');
         # 每页10条
         $set['num'] = 10;
         $data = Dever::db('review', 'place')->select($where, $set);