提交 e0c63522 编写于 作者: 李光春's avatar 李光春

- 抖音增加音频封面和头像

上级 db3d33a1
......@@ -70,7 +70,13 @@ class StorageService extends Service
if (empty($this->path)) $this->getConfig();
// 判断是否存在
is_dir($this->path) or mkdir($this->path, 0777, true);
return file_put_contents("{$this->path}{$name}", file_get_contents($this->remotely));
$arrContextOptions = [
'ssl' => [
'verify_peer' => false,
'verify_peer_name' => false,
]
];
return file_put_contents("{$this->path}{$name}", file_get_contents($this->remotely, false, stream_context_create($arrContextOptions)));
}
/**
......
......@@ -233,6 +233,7 @@ class WatermarkService extends Service
$backtrack['video_info']['play'] = $this->cVideoPlayUrl($item_list['video']['play_addr']['url_list'][0], 'play');
$backtrack['video_info']['playwm'] = $this->cVideoPlayUrl($item_list['video']['play_addr']['url_list'][0], 'playwm');
if (!empty($this->storage)) {
// 保存文件
// 作者头像
StorageService::instance()
->path($this->storagePath . $backtrack['author_info']['uid'] . "/")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册