lizhen пре 3 дана
родитељ
комит
48e8f26360
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      application/api/controller/News.php

+ 1 - 2
application/api/controller/News.php

@@ -17,8 +17,7 @@ class News extends Api
         if(!$key){
             $this->error();
         }
-        $fields = 'name,video_file,content,updatetime';
-        $find = Db::name('news')->field($fields)->where('key',$key)->find();
+        $find = Db::name('news')->where('key',$key)->find();
         $find = info_domain_image($find,['video_file']);
 
         $this->success('success',$find);