Commit 8e26d2d7 by halweg

fix : ins fix

parent fc7d0886
......@@ -99,6 +99,7 @@ class MediaFeed extends Template {
$url = $this->apiAddress->getMediaUrl($token, $uid);
try {
$this->getCurlClient()->get($url);
$this->getCurlClient()
->setOptions([
......@@ -108,6 +109,10 @@ class MediaFeed extends Template {
if ($this->getCurlClient()->getStatus() != 200) {
return [];
}
} catch (\Exception $e) {
$this->_logger->error($e->getMessage());
return [];
}
return $this->jsonDecoder->decode($this->getCurlClient()->getBody());
}
......
......@@ -17,15 +17,9 @@
</field>
<field id="appid" translate="label comment" type="text" sortOrder="45" showInDefault="1" showInWebsite="1" showInStore="1">
<label>AppId</label>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="app_secret" translate="label comment" type="password" sortOrder="45" showInDefault="1" showInWebsite="1" showInStore="1">
<label>App Secret</label>
<depends>
<field id="enabled">1</field>
</depends>
</field>
</group>
<group id="display" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment