| 1234567891011121314151617181920212223242526 | 
							- <?php
 
- namespace app\api\controller;
 
- use app\common\controller\Api;
 
- use think\Db;
 
- /**
 
-  * 新闻
 
-  */
 
- class News extends Api
 
- {
 
-     protected $noNeedLogin = ['*'];
 
-     protected $noNeedRight = ['*'];
 
-     public function find(){
 
-         $key = input('key');
 
-         if(!$key){
 
-             $this->error();
 
-         }
 
-         $fields = 'name,video_file,content,updatetime';
 
-         $find = Db::name('news')->field($fields)->where('key',$key)->find();
 
-         $find = info_domain_image($find,['video_file']);
 
-         $this->success('success',$find);
 
-     }
 
- }
 
 
  |