Browse Source

fix 后台视频列表报错问题

magicblack 1 year ago
parent
commit
a05315d7ec
1 changed files with 3 additions and 0 deletions
  1. 3 0
      application/common/model/Vod.php

+ 3 - 0
application/common/model/Vod.php

@@ -31,6 +31,9 @@ class Vod extends Base {
 
     public function listData($where,$order,$page=1,$limit=20,$start=0,$field='*',$addition=1,$totalshow=1)
     {
+        $page = $page > 0 ? (int)$page : 1;
+        $limit = $limit ? (int)$limit : 20;
+        $start = $start ? (int)$start : 0;
         if(!is_array($where)){
             $where = json_decode($where,true);
         }