123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace Video\Lib;
- use Dever;
- class Vod
- {
-
- public function get($data)
- {
- if (!is_array($data)) {
- $data = Dever::db('video/vod')->one($data);
- }
-
- if (!$data) {
- Dever::alert('错误的信息');
- }
-
-
-
- return $data;
- }
-
- public function getRelation($info)
- {
- $where['noid'] = $info['id'];
- $where['cate_id'] = $info['cate_id'];
- return Dever::db('video/vod')->getRelation($where);
- }
-
- public function addView($id)
- {
- Dever::db('video/vod')->addView($id);
- }
- }
|