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(); $ossservice = new OssService();
$data = [ $data = [
'image_name' => $result->file_name, 'path' => $result->file_name,
'original_name' => $result->origin_name,
'image_url' => $ossservice->generatePrivateUrl($result->file_name) 'image_url' => $ossservice->generatePrivateUrl($result->file_name)
]; ];
+1 -1
View File
@@ -44,7 +44,7 @@ class Follow extends Model
'created_at' => 'timestamp', // 指定序列化格式 'created_at' => 'timestamp', // 指定序列化格式
]; ];
public static function getFollow($follow,$domain) public static function getFollow($follow,$domain = '')
{ {
$follow['type_txt'] = Constants::FOLLOW[$follow['type']]; $follow['type_txt'] = Constants::FOLLOW[$follow['type']];
$follow['oss_picture'] = $domain.'/'.$follow['picture']; $follow['oss_picture'] = $domain.'/'.$follow['picture'];
+1 -1
View File
@@ -37,7 +37,7 @@
"illuminate/database": "^11.44", "illuminate/database": "^11.44",
"phpmailer/phpmailer": "^6.9", "phpmailer/phpmailer": "^6.9",
"shopwwi/webman-filesystem": "^2.0", "shopwwi/webman-filesystem": "^2.0",
"iidestiny/flysystem-oss": "4.5" "iidestiny/flysystem-oss": "4"
}, },
"suggest": { "suggest": {
"ext-event": "For better performance. " "ext-event": "For better performance. "
Generated
+10 -10
View File
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "ae2f4f7e2fab33fd2510f9f789bf1dc1", "content-hash": "160510c61db59eaaf716725f2dd4a92f",
"packages": [ "packages": [
{ {
"name": "aliyuncs/oss-sdk-php", "name": "aliyuncs/oss-sdk-php",
@@ -342,16 +342,16 @@
}, },
{ {
"name": "iidestiny/flysystem-oss", "name": "iidestiny/flysystem-oss",
"version": "4.5", "version": "4.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/iiDestiny/flysystem-oss.git", "url": "https://github.com/iiDestiny/flysystem-oss.git",
"reference": "154ccb26075a20b350e2357289bfeabe3ca79ba0" "reference": "6b6cf6850be377c484c086505d942e61afa2875c"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/iiDestiny/flysystem-oss/zipball/154ccb26075a20b350e2357289bfeabe3ca79ba0", "url": "https://api.github.com/repos/iiDestiny/flysystem-oss/zipball/6b6cf6850be377c484c086505d942e61afa2875c",
"reference": "154ccb26075a20b350e2357289bfeabe3ca79ba0", "reference": "6b6cf6850be377c484c086505d942e61afa2875c",
"shasum": "", "shasum": "",
"mirrors": [ "mirrors": [
{ {
@@ -361,7 +361,7 @@
] ]
}, },
"require": { "require": {
"aliyuncs/oss-sdk-php": "^2", "aliyuncs/oss-sdk-php": "^2.4",
"ext-curl": "*", "ext-curl": "*",
"ext-json": "*", "ext-json": "*",
"ext-openssl": "*", "ext-openssl": "*",
@@ -369,8 +369,8 @@
"php": "^8.0.2" "php": "^8.0.2"
}, },
"require-dev": { "require-dev": {
"mockery/mockery": "^1.5", "mockery/mockery": "^1.2",
"phpunit/phpunit": "^9.5", "phpunit/phpunit": "^6.5",
"symfony/var-dumper": "^3.4" "symfony/var-dumper": "^3.4"
}, },
"type": "library", "type": "library",
@@ -398,9 +398,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/iiDestiny/flysystem-oss/issues", "issues": "https://github.com/iiDestiny/flysystem-oss/issues",
"source": "https://github.com/iiDestiny/flysystem-oss/tree/4.5" "source": "https://github.com/iiDestiny/flysystem-oss/tree/4.0"
}, },
"time": "2025-02-12T05:54:03+00:00" "time": "2022-04-19T06:23:50+00:00"
}, },
{ {
"name": "illuminate/bus", "name": "illuminate/bus",
+1 -1
View File
@@ -74,7 +74,7 @@ return [
'secretKey' => 'nqklJBft6t3S0A4ZvxF4ci9ni91kmm', 'secretKey' => 'nqklJBft6t3S0A4ZvxF4ci9ni91kmm',
'bucket' => 'vehicle-album', 'bucket' => 'vehicle-album',
'endpoint' => 'https://oss-cn-beijing.aliyuncs.com', 'endpoint' => 'https://oss-cn-beijing.aliyuncs.com',
'url' => 'https://vehicle-album.oss-cn-beijing.aliyuncs.com', // 静态文件访问域名 'url' => '', // 静态文件访问域名
// 'timeout' => 3600, // 'timeout' => 3600,
// 'connectTimeout' => 10, // 'connectTimeout' => 10,
'isCName' => false, 'isCName' => false,