This commit is contained in:
2025-12-12 13:32:46 +08:00
parent d0e5d1b648
commit 88897cca0a
+2 -2
View File
@@ -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,
]);
}
}