直播图片路径
This commit is contained in:
parent
59720e23ee
commit
1b5e633314
@ -259,7 +259,7 @@ class BroadcastGoodsRepository extends BaseRepository
|
||||
|
||||
$goods = $goods->toArray();
|
||||
$miniProgramService = MiniProgramService::create();
|
||||
$path = './public' . app()->make(DownloadImageService::class)->downloadImage($goods['cover_img'])['path'];
|
||||
$path = app()->make(DownloadImageService::class)->downloadImage($goods['cover_img'])['path'];
|
||||
$data = [
|
||||
'name' => $goods['name'],
|
||||
'priceType' => 1,
|
||||
@ -278,7 +278,7 @@ class BroadcastGoodsRepository extends BaseRepository
|
||||
public function wxUpdate($id,$data)
|
||||
{
|
||||
$miniProgramService = MiniProgramService::create();
|
||||
$path = './public' . app()->make(DownloadImageService::class)->downloadImage($data['cover_img'])['path'];
|
||||
$path = app()->make(DownloadImageService::class)->downloadImage($data['cover_img'])['path'];
|
||||
$params = [
|
||||
"goodsId" => $id,
|
||||
'name' => $data['name'],
|
||||
|
@ -251,9 +251,9 @@ class BroadcastRoomRepository extends BaseRepository
|
||||
|
||||
$room = $room->toArray();
|
||||
$miniProgramService = MiniProgramService::create();
|
||||
$coverImg = './public' . app()->make(DownloadImageService::class)->downloadImage($room['cover_img'])['path'];
|
||||
$shareImg = './public' . app()->make(DownloadImageService::class)->downloadImage($room['share_img'])['path'];
|
||||
$feedsImg = './public' . app()->make(DownloadImageService::class)->downloadImage($room['feeds_img'])['path'];
|
||||
$coverImg = app()->make(DownloadImageService::class)->downloadImage($room['cover_img'])['path'];
|
||||
$shareImg = app()->make(DownloadImageService::class)->downloadImage($room['share_img'])['path'];
|
||||
$feedsImg = app()->make(DownloadImageService::class)->downloadImage($room['feeds_img'])['path'];
|
||||
$data = [
|
||||
'startTime' => strtotime($room['start_time']),
|
||||
'endTime' => strtotime($room['end_time']),
|
||||
@ -268,9 +268,12 @@ class BroadcastRoomRepository extends BaseRepository
|
||||
'closeKf' => $room['close_kf'],
|
||||
'closeReplay' => $room['replay_status'] == 1 ? 0 : 1,
|
||||
'isFeedsPublic' => $room['is_feeds_public'] == 1 ? 0 : 1,
|
||||
'coverImg' => $miniProgramService->material()->uploadImage($coverImg)->media_id,
|
||||
'shareImg' => $miniProgramService->material()->uploadImage($shareImg)->media_id,
|
||||
'feedsImg' => $miniProgramService->material()->uploadImage($feedsImg)->media_id,
|
||||
// 'coverImg' => $miniProgramService->material()->uploadImage($coverImg)->media_id,
|
||||
// 'shareImg' => $miniProgramService->material()->uploadImage($shareImg)->media_id,
|
||||
// 'feedsImg' => $miniProgramService->material()->uploadImage($feedsImg)->media_id,
|
||||
'coverImg' => $coverImg,
|
||||
'shareImg' => $shareImg,
|
||||
'feedsImg' => $feedsImg,
|
||||
];
|
||||
@unlink($coverImg);
|
||||
@unlink($shareImg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user