mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-06 11:09:29 +00:00
Use new settings object in LCSCProvider
This commit is contained in:
parent
d57107ed3e
commit
4fcd55748f
1 changed files with 2 additions and 2 deletions
|
|
@ -374,7 +374,7 @@ class LCSCProvider implements InfoProviderInterface
|
||||||
// Direct detail API call for C-codes
|
// Direct detail API call for C-codes
|
||||||
$responses[$keyword] = $this->lcscClient->request('GET', self::ENDPOINT_URL . "/product/detail", [
|
$responses[$keyword] = $this->lcscClient->request('GET', self::ENDPOINT_URL . "/product/detail", [
|
||||||
'headers' => [
|
'headers' => [
|
||||||
'Cookie' => new Cookie('currencyCode', $this->currency)
|
'Cookie' => new Cookie('currencyCode', $this->settings->currency)
|
||||||
],
|
],
|
||||||
'query' => [
|
'query' => [
|
||||||
'productCode' => trim($keyword),
|
'productCode' => trim($keyword),
|
||||||
|
|
@ -384,7 +384,7 @@ class LCSCProvider implements InfoProviderInterface
|
||||||
// Search API call for other terms
|
// Search API call for other terms
|
||||||
$responses[$keyword] = $this->lcscClient->request('GET', self::ENDPOINT_URL . "/search/global", [
|
$responses[$keyword] = $this->lcscClient->request('GET', self::ENDPOINT_URL . "/search/global", [
|
||||||
'headers' => [
|
'headers' => [
|
||||||
'Cookie' => new Cookie('currencyCode', $this->currency)
|
'Cookie' => new Cookie('currencyCode', $this->settings->currency)
|
||||||
],
|
],
|
||||||
'query' => [
|
'query' => [
|
||||||
'keyword' => $keyword,
|
'keyword' => $keyword,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue