issues/27: sync branch from k3s-test
This commit is contained in:
committed by
Valeriy Petrov
parent
fe24537e9f
commit
65934cff3c
@@ -26,6 +26,7 @@ class XmlFeedGeneratorV1Service
|
||||
private SpecialistService $specialistService,
|
||||
private HelperService $helperService,
|
||||
private Connection $connection,
|
||||
private string $apiPublicUrl,
|
||||
private ?LoggerInterface $logger = null,
|
||||
) {
|
||||
$this->dom = new DOMDocument('1.0', 'UTF-8');
|
||||
@@ -139,7 +140,7 @@ class XmlFeedGeneratorV1Service
|
||||
}
|
||||
};
|
||||
|
||||
return "https://api.sovamed.ru/images/logo/{$picture}";
|
||||
return rtrim($this->apiPublicUrl, '/') . "/images/logo/{$picture}";
|
||||
}
|
||||
|
||||
private function getSpecialistLink(Specialist $specialist): string
|
||||
@@ -219,7 +220,7 @@ class XmlFeedGeneratorV1Service
|
||||
$this->addTextElement($offerElement, 'url', $url);
|
||||
$this->addTextElement($offerElement, 'set-ids', $specialist->getDcodes());
|
||||
|
||||
$picture = "https://api.sovamed.ru/specialist/picture/{$specialist->getId()}";
|
||||
$picture = rtrim($this->apiPublicUrl, '/') . "/specialist/picture/{$specialist->getId()}";
|
||||
$this->addTextElement($offerElement, 'picture', $picture);
|
||||
$this->addTextElement($offerElement, 'categoryId', '1');
|
||||
$this->addTextElement($offerElement, 'currencyId', 'RUR');
|
||||
|
||||
Reference in New Issue
Block a user