|
@@ -19,4 +19,26 @@ class Api
|
|
|
|
|
|
return $result;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ public function help()
|
|
|
+ {
|
|
|
+ $type = Dever::input('type', 1);
|
|
|
+ if (!$type) {
|
|
|
+ Dever::alert('您访问的页面有误');
|
|
|
+ }
|
|
|
+ $where['type'] = $type;
|
|
|
+ $data = Dever::db('main/help')->select_page($where);
|
|
|
+
|
|
|
+ return $data;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ public function help_view()
|
|
|
+ {
|
|
|
+ $id = Dever::input('id');
|
|
|
+ $data = Dever::db('main/help')->find($id);
|
|
|
+
|
|
|
+ return $data;
|
|
|
+ }
|
|
|
}
|