Commit c012d4e9 authored by hj's avatar hj

更新

parent 4bd88a44
......@@ -37,9 +37,9 @@ class RhawnOrdersService
try{
$customer = $this->rhawnCustomerService->checkCustomerExist($requestParams['customer_code']);
$offset = !isset($requestParams['page_size']) || empty($requestParams['page_size']) ? 100 : $requestParams['page_size'];
if($offset > 100){
$offset = 100;
$offset = !isset($requestParams['page_size']) || empty($requestParams['page_size']) ? 1000 : $requestParams['page_size'];
if($offset > 1000){
$offset = 1000;
}
$pageNo = !isset($requestParams['page_no']) || empty($requestParams['page_no']) ? 1 : $requestParams['page_no'];
$limit = $pageNo == 1 ? 0 : $pageNo * $offset;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment