Commit 8e26d2d7 by halweg

fix : ins fix

parent fc7d0886
...@@ -99,13 +99,18 @@ class MediaFeed extends Template { ...@@ -99,13 +99,18 @@ class MediaFeed extends Template {
$url = $this->apiAddress->getMediaUrl($token, $uid); $url = $this->apiAddress->getMediaUrl($token, $uid);
$this->getCurlClient()->get($url); try {
$this->getCurlClient() $this->getCurlClient()->get($url);
->setOptions([ $this->getCurlClient()
CURLOPT_SSL_VERIFYHOST => false, ->setOptions([
CURLOPT_SSL_VERIFYPEER => false CURLOPT_SSL_VERIFYHOST => false,
]); CURLOPT_SSL_VERIFYPEER => false
if ($this->getCurlClient()->getStatus() != 200) { ]);
if ($this->getCurlClient()->getStatus() != 200) {
return [];
}
} catch (\Exception $e) {
$this->_logger->error($e->getMessage());
return []; return [];
} }
return $this->jsonDecoder->decode($this->getCurlClient()->getBody()); return $this->jsonDecoder->decode($this->getCurlClient()->getBody());
......
...@@ -17,15 +17,9 @@ ...@@ -17,15 +17,9 @@
</field> </field>
<field id="appid" translate="label comment" type="text" sortOrder="45" showInDefault="1" showInWebsite="1" showInStore="1"> <field id="appid" translate="label comment" type="text" sortOrder="45" showInDefault="1" showInWebsite="1" showInStore="1">
<label>AppId</label> <label>AppId</label>
<depends>
<field id="enabled">1</field>
</depends>
</field> </field>
<field id="app_secret" translate="label comment" type="password" sortOrder="45" showInDefault="1" showInWebsite="1" showInStore="1"> <field id="app_secret" translate="label comment" type="password" sortOrder="45" showInDefault="1" showInWebsite="1" showInStore="1">
<label>App Secret</label> <label>App Secret</label>
<depends>
<field id="enabled">1</field>
</depends>
</field> </field>
</group> </group>
<group id="display" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1"> <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