12345678910111213141516171819202122232425 |
- <?php
- namespace Content\Lib;
- use Dever;
- class Article
- {
- # 根据文章id 获取文章信息
- public function get($data)
- {
- if (!is_array($data)) {
- $data = Dever::db('content/article')->one($data);
- }
-
- if (!$data) {
- Dever::alert('错误的文章信息');
- }
-
- //embed
-
- return $data;
- }
- }
|