Media News§
All checks were successful
Gitea Actions / Run-Tests-On-Arm64 (push) Successful in 5m38s
Gitea Actions / Run-Tests-On-Amd64 (push) Successful in 15m30s

This commit is contained in:
Thomas 2025-03-17 20:20:10 +01:00
parent 3e9aff64ac
commit 0a34cdefb7
6 changed files with 29 additions and 32 deletions

View File

@ -62,4 +62,5 @@ return [
Symfony\UX\Chartjs\ChartjsBundle::class => ['all' => true], Symfony\UX\Chartjs\ChartjsBundle::class => ['all' => true],
Symfonycasts\TailwindBundle\SymfonycastsTailwindBundle::class => ['all' => true], Symfonycasts\TailwindBundle\SymfonycastsTailwindBundle::class => ['all' => true],
Symfonycasts\SassBundle\SymfonycastsSassBundle::class => ['all' => true], Symfonycasts\SassBundle\SymfonycastsSassBundle::class => ['all' => true],
Dunglas\DoctrineJsonOdm\Bundle\DunglasDoctrineJsonOdmBundle::class => ['all' => true]
]; ];

View File

@ -87,7 +87,7 @@ class News
#[ORM\Column(name: 'to_date', type: 'datetime')] #[ORM\Column(name: 'to_date', type: 'datetime')]
protected ?\DateTime $toDate; protected ?\DateTime $toDate;
#[ORM\Column(name: 'media', type: 'json')] #[ORM\Column(name: 'media', type: 'json_document', options: ['jsonb' => true])]
public $media = []; public $media = [];
/** /**
* enable * enable

View File

@ -173,7 +173,6 @@ class Base
$this->buildHeaders() $this->buildHeaders()
, ,
]); ]);
var_dump($response->getContent(true));
$content = $response->toArray(); $content = $response->toArray();
return $content; return $content;

View File

@ -18,14 +18,16 @@ class PutConfig extends Base
} }
$resultLangPropertyValues = $this->getCache()->get( $resultLangPropertyValues = $this->getCache()->get(
'saxoprint_result_lang_property_values', function (ItemInterface $item) { 'saxoprint_result_lang_property_values',
function (ItemInterface $item) {
// $item->expiresAfter(3600); // $item->expiresAfter(3600);
return $this->get('config/' . $this->customerNumber .'/texts/propertyvalue/de-DE'); return $this->get('config/' . $this->customerNumber .'/texts/propertyvalue/de-DE');
} }
); );
$resultLangProperty = $this->getCache()->get( $resultLangProperty = $this->getCache()->get(
'saxoprint_result_lang_property', function (ItemInterface $item) { 'saxoprint_result_lang_property',
function (ItemInterface $item) {
// $item->expiresAfter(3600); // $item->expiresAfter(3600);
return $this->get('config/' . $this->customerNumber . '/texts/property/de-DE'); return $this->get('config/' . $this->customerNumber . '/texts/property/de-DE');
} }
@ -33,7 +35,6 @@ class PutConfig extends Base
$result = $this->put(sprintf("config/%s/%s/configurations", $this->customerNumber, $this->getProductId()), $this->buildData()); $result = $this->put(sprintf("config/%s/%s/configurations", $this->customerNumber, $this->getProductId()), $this->buildData());
var_dump($result);
$tmp = ['property' => [], 'custom' => []]; $tmp = ['property' => [], 'custom' => []];
foreach ($result['ValidOptions'] as $key => $value) { foreach ($result['ValidOptions'] as $key => $value) {
@ -74,8 +75,7 @@ class PutConfig extends Base
{ {
$temp = []; $temp = [];
$tempCustom = []; $tempCustom = [];
foreach($this->config['property'] as $key => $value) foreach ($this->config['property'] as $key => $value) {
{
if ($key == '102' || $key == 'auflage') { if ($key == '102' || $key == 'auflage') {
continue; continue;
} }
@ -84,8 +84,7 @@ class PutConfig extends Base
} }
} }
if (isset($this->config['custom'])) { if (isset($this->config['custom'])) {
foreach($this->config['custom'] as $key => $value) foreach ($this->config['custom'] as $key => $value) {
{
if ($value != 0) { if ($value != 0) {
$tempCustom[$key] = intval($value); $tempCustom[$key] = intval($value);
} }

View File

@ -126,8 +126,6 @@ class SaxoprintController extends AbstractController
$putConfig->setConfig($reqConfig); $putConfig->setConfig($reqConfig);
$config = $putConfig->call(); $config = $putConfig->call();
} }
var_dump($config);
die();
$getPrices->setShop($shop->getMongoShopByUid($product->getShop()->getUid())); $getPrices->setShop($shop->getMongoShopByUid($product->getShop()->getUid()));
$getPrices->setProductId((int)$request->get('saxoprintProductId')); $getPrices->setProductId((int)$request->get('saxoprintProductId'));

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB