注意:行数仅供参考快速找到修改的地方
1、文件地址:app\services\live\LiveGoodsServices.php
行数:96
$path = root_path() . 'public' . $download->thumb(true)->downloadImage($data['cover_img'])['path'];
行数:125行
$path = root_path() . 'public' . app()->make(DownloadImageService::class)->thumb(true)->downloadImage($good['cover_img'])['path'];
2、文件地址:app\services\live\LiveRoomServices.php
行数:135
try { $coverImg = root_path() . 'public' . app()->make(DownloadImageService::class)->downloadImage($room['cover_img'])['path']; $shareImg = root_path() . 'public' . app()->make(DownloadImageService::class)->downloadImage($room['share_img'])['path']; } catch (\Throwable $e) { Log::error('添加直播间封面图出错误,原因:' . $e->getMessage()); $coverImg = root_path() . 'public' . $room['cover_img']; $shareImg = root_path() . 'public' . $room['share_img']; }
3、文件地址:crmeb\services\DownloadImageService.php
行数:78
if (!file_exists($upload->uploadDir($to_path) . '/' . $name)) { ob_start(); readfile($url); $content = ob_get_contents(); ob_end_clean(); $size = strlen(trim($content)); if (!$content || $size <= 2) throw new ValidateException('图片流获取失败'); if ($upload->to($to_path)->down($content, $name) === false) { throw new ValidateException('图片下载失败'); } $imageInfo = $upload->getDownloadInfo(); $path = $imageInfo['dir']; if ($this->thumb) { Image::open(root_path() . 'public' . $path)->thumb($this->thumbWidth, $this->thumHeight)->save(root_path() . 'public' . $path); $this->thumb = false; } } else { $path = '/uploads/' . $to_path . '/' . $name; $imageInfo['name'] = $name; }
{{item.user_info.nickname ? item.user_info.nickname : item.user_name}}
作者 管理员 企业
{{itemf.name}}
{{itemc.user_info.nickname}}
{{itemc.user_name}}
回复 {{itemc.comment_user_info.nickname}}
{{itemf.name}}