Explorar el Código

fix(alibaba-agent): 修正产品服务中的分页参数名

- 将分页参数从 pageNo 更改为 pageNum 以匹配 API 规范
shichen hace 3 meses
padre
commit
c18cc79385
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/services/ThirdParty/AlibabaAgent/ProductService.php

+ 1 - 1
app/services/ThirdParty/AlibabaAgent/ProductService.php

@@ -33,7 +33,7 @@ class ProductService extends AlibabaAgentBaseService
33 33
         if (!empty($params['categoryId'])) {
34 34
             $businessParams['categoryId'] = $params['categoryId'];
35 35
         }
36
-        $businessParams['pageNo'] = $params['page'] ?? 1;
36
+        $businessParams['pageNum'] = $params['page'] ?? 1;
37 37
         $businessParams['pageSize'] = min($params['limit'] ?? 20, 50);
38 38
         if (!empty($params['sort'])) {
39 39
             $businessParams['sort'] = $params['sort'];