where(['is_delete' => Video::IS_DELETE_NO, 'store_id' => get_store_id()])->orderBy("sort desc,id desc"); $list = pagination_make($query); return $this->asJson([ 'code' => 0, 'msg' => 'success', 'data' => [ 'data' => $list['list'], 'pageNo' => $list['pageNo'], 'totalCount' => $list['totalCount'] ] ]); } catch (\Exception $e) { return $this->asJson([ 'code' => 0, 'msg' => $e->getMessage() ]); } } }