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)){