作者 jiawen
1 个管道 的构建 通过 耗费 0 秒

接口调试3

@@ -442,7 +442,6 @@ class ProductController extends RestBaseController @@ -442,7 +442,6 @@ class ProductController extends RestBaseController
442 } 442 }
443 $perPage = !empty($data['per_page']) ? $data['per_page'] : config('per_page'); 443 $perPage = !empty($data['per_page']) ? $data['per_page'] : config('per_page');
444 $page = !empty($data['page']) ? $data['page'] : 1; 444 $page = !empty($data['page']) ? $data['page'] : 1;
445 - echo $perPage;echo '|';echo $page;exit;  
446 $resultWithPage = array_slice($arrResult, ($page - 1) * $perPage, $perPage); 445 $resultWithPage = array_slice($arrResult, ($page - 1) * $perPage, $perPage);
447 $qinCount = count($arrResult); 446 $qinCount = count($arrResult);
448 $totalPage = ceil($qinCount / $perPage); 447 $totalPage = ceil($qinCount / $perPage);