lizhen_gitee пре 1 година
родитељ
комит
93e64461cf
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      application/api/controller/Video.php

+ 1 - 1
application/api/controller/Video.php

@@ -23,7 +23,7 @@ class Video extends Api
             $starttime = strtotime(date('Y-m-d')) - 86400*14;
         }
 
-        $list = Db::name('video')->where('createtime','>',$starttime)->where('is_show',1)->order('weigh desc')->autopage()->select();
+        $list = Db::name('video')->where('createtime','>',$starttime)->where('is_show',1)->order('weigh desc,id desc')->autopage()->select();
         $list = list_domain_image($list,['video_file']);
 
         if(!empty($list)){