| 12345678910111213141516171819202122232425 | <?phpnamespace 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();        }        $find = Db::name('news')->where('key',$key)->find();        $find = info_domain_image($find,['video_file','images']);        $this->success('success',$find);    }}
 |