切换导航条
此项目
正在载入...
登录
周海龙
/
globalso
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
张关杰
2024-01-25 10:29:41 +0800
提交
0e523764d1a6a2d713244fd6a966b3061bfbde5e
2 个父辈
b55ebbc7
3ef7494e
Merge branch 'develop' of
http://47.244.231.31:8099/zhl/globalso-v6
into bate
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
1 行增加
和
2 行删除
app/Http/Controllers/File/ImageController.php
app/Services/AmazonS3Service.php
app/Http/Controllers/File/ImageController.php
查看文件 @
0e52376
...
...
@@ -277,7 +277,6 @@ class ImageController extends Controller
$data
[]
=
$this
->
responseData
(
$image_hash
[
'path'
]);
continue
;
}
$url
=
$this
->
config
[
'root'
]
.
$this
->
path
;
$image_type
=
$file
->
getClientOriginalExtension
();
$fileName
=
uniqid
()
.
rand
(
10000
,
99999
)
.
'.'
.
$image_type
;
//同步数据到cos
...
...
app/Services/AmazonS3Service.php
查看文件 @
0e52376
...
...
@@ -42,7 +42,7 @@ class AmazonS3Service
*/
public
function
uploadFiles
(
&
$files
,
$s3Key
,
$filename
)
{
$key
=
$s3Key
.
'/'
.
$filename
;
$key
=
ltrim
(
$s3Key
.
'/'
.
$filename
,
'/'
)
;
$body
=
$files
->
getRealPath
();
try
{
$result
=
$this
->
s3
->
putObject
([
...
...
请
注册
或
登录
后发表评论