This commit is contained in:
2025-03-19 16:32:05 +08:00
parent 6169be08e5
commit a211e86edc
5 changed files with 15 additions and 14 deletions
+2 -1
View File
@@ -119,7 +119,8 @@ class UploadController
$ossservice = new OssService();
$data = [
'image_name' => $result->file_name,
'path' => $result->file_name,
'original_name' => $result->origin_name,
'image_url' => $ossservice->generatePrivateUrl($result->file_name)
];
+1 -1
View File
@@ -44,7 +44,7 @@ class Follow extends Model
'created_at' => 'timestamp', // 指定序列化格式
];
public static function getFollow($follow,$domain)
public static function getFollow($follow,$domain = '')
{
$follow['type_txt'] = Constants::FOLLOW[$follow['type']];
$follow['oss_picture'] = $domain.'/'.$follow['picture'];