Commit 92a62516 authored by hangjun83's avatar hangjun83

同步订单

parent bf668353
......@@ -20,8 +20,8 @@ class BhuaProductsService
public function getAllBrands($requestParams)
{
$offset = !isset($requestParams['page_size']) || empty($requestParams['page_size']) ? 2000 : $requestParams['page_size'];
if($offset > 100){
$offset = 100;
if($offset > 200){
$offset = 200;
}
$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