Php 从RESTAPI请求数据时忽略GET属性

Php 从RESTAPI请求数据时忽略GET属性,php,wordpress,rest,woocommerce,Php,Wordpress,Rest,Woocommerce,我的CRM设置为CRM.example.com,example.com上有一个活动商店(在同一台服务器上) 两者都使用NGINX运行 我试图要求整个类别列表(43个类别),但我只得到10个。(由WooCommerce设置的默认值) 我尝试使用per_page参数,但似乎服务器忽略了GET 我检查了crm.example.com发送的请求,得到: object(Automattic\WooCommerce\HttpClient\Request)#85 (5) { ["url":"Automat

我的CRM设置为CRM.example.com,example.com上有一个活动商店(在同一台服务器上) 两者都使用NGINX运行

我试图要求整个类别列表(43个类别),但我只得到10个。(由WooCommerce设置的默认值)

我尝试使用per_page参数,但似乎服务器忽略了GET

我检查了crm.example.com发送的请求,得到:

object(Automattic\WooCommerce\HttpClient\Request)#85 (5) {
  ["url":"Automattic\WooCommerce\HttpClient\Request":private]=>
  string(67) "https://example.com/wp-json/wc/v2/products/categories/?per_page=100"
  ["method":"Automattic\WooCommerce\HttpClient\Request":private]=>
  string(3) "GET"
  ["parameters":"Automattic\WooCommerce\HttpClient\Request":private]=>
  array(1) {
    ["per_page"]=>
    int(100)
  }
  ["headers":"Automattic\WooCommerce\HttpClient\Request":private]=>
  array(2) {
    ["Accept"]=>
    string(16) "application/json"
    ["User-Agent"]=>
    string(32) "WooCommerce API Client-PHP/1.3.0"
  }
  ["body":"Automattic\WooCommerce\HttpClient\Request":private]=>
  string(0) ""
}
但结果只有10个


我在想,也许NGINX服务器忽略了作为安全策略的GET参数?

Im使用标准设置的NGINX,这让我抓狂,因为经过数小时的研究,商店和后端都在Apache上时,同样的代码工作正常