Commit f7b7e7ca by liumengfei

修复bug

parent b9df5978
...@@ -275,12 +275,7 @@ class InstagramFeedPull extends Command ...@@ -275,12 +275,7 @@ class InstagramFeedPull extends Command
{ {
$path = $this->directoryList->getPath('var'); $path = $this->directoryList->getPath('var');
$file = $path.DIRECTORY_SEPARATOR.mt_rand(10000,99999).time().md5($url).".jpeg"; $file = $path.DIRECTORY_SEPARATOR.mt_rand(10000,99999).time().md5($url).".jpeg";
file_put_contents($file,file_get_contents($url, false, stream_context_create([ @file_put_contents($file,file_get_contents($url));
"ssl" => [
"verify_peer"=>false,
"verify_peer_name"=>false,
]
])));
return $file; return $file;
} }
......
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