From 88897cca0ac94537ab0f38c2301f5df733441c79 Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Fri, 12 Dec 2025 13:32:46 +0800 Subject: [PATCH] 1 --- app/common/service/PostService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/common/service/PostService.php b/app/common/service/PostService.php index 1d5b3d5..857f69b 100644 --- a/app/common/service/PostService.php +++ b/app/common/service/PostService.php @@ -132,8 +132,8 @@ class PostService foreach ($media as $v) { PostMedia::create([ 'post_id' => $res->id, - 'media_type' => $this->getMediaTypeByUrl($v['url']), - 'url' => $v['url'], + 'media_type' => $this->getMediaTypeByUrl($v), + 'url' => $v, ]); } }