From b698156d8aeec9a4001ef5ce853937ecdd698700 Mon Sep 17 00:00:00 2001 From: mengkunsoft <1163540807@qq.com> Date: Tue, 6 Feb 2018 10:30:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BD=91=E6=98=93=E4=BA=91?= =?UTF-8?q?=E9=9F=B3=E4=B9=90=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Meting search options --- api.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/api.php b/api.php index e868ee5..3256a74 100644 --- a/api.php +++ b/api.php @@ -3,7 +3,7 @@ * MKOnlinePlayer v2.3 * 后台音乐数据抓取模块 * 编写:mengkun(http://mkblog.cn) - * 时间:2017-9-9 + * 时间:2018-2-6 * 特别感谢 @metowolf 提供的 Meting.php *************************************************/ @@ -32,6 +32,7 @@ $API = new Meting($source); $API->format(true); // 启用格式化功能 +// $API->cookie('paste your cookie'); switch(getParam('types')) // 根据请求的 Api,执行相应操作 { @@ -88,7 +89,10 @@ switch(getParam('types')) // 根据请求的 Api,执行相应操作 $limit = getParam('count', 20); // 每页显示数量 $pages = getParam('pages', 1); // 页码 - $data = $API->search($s, $pages, $limit); + $data = $API->search($s, [ + 'page' => $pages, + 'limit' => $limit + ]); echojson($data); break;