|
@@ -44,7 +44,7 @@ class Api
|
|
|
|
|
|
public function tag($type_id, $type)
|
|
|
{
|
|
|
- $result = Dever::db('tag/data')->state(array('type_id' => $type_id,'type' => $type));
|
|
|
+ $result = Dever::db('tag/data')->select(array('type_id' => $type_id,'type' => $type));
|
|
|
if (!$result) {
|
|
|
return array();
|
|
|
}
|
|
@@ -65,4 +65,11 @@ class Api
|
|
|
{
|
|
|
return Dever::db('tag/info')->getList();
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ public function getData($id)
|
|
|
+ {
|
|
|
+ $where['tag_id'] = $id;
|
|
|
+ return Dever::db('tag/data')->getAll($where);
|
|
|
+ }
|
|
|
}
|