소스 검색

视频排序

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