Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
loveisland
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘小敏
loveisland
Commits
f6eeb658
Commit
f6eeb658
authored
Jun 11, 2026
by
刘小敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉域名里的443
parent
ef686f38
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Ai.php
addons/shopro/service/user/Ai.php
+5
-4
No files found.
addons/shopro/service/user/Ai.php
View file @
f6eeb658
...
...
@@ -202,11 +202,12 @@ class Ai
return
0
;
}
custom_log
(
'OBS 上传成功:'
.
$ret
[
'ObjectURL'
],
$user_id
,
$log_name
);
// 去掉 URL 中的端口号 :443
$object_url
=
str_replace
(
':443'
,
''
,
$ret
[
'ObjectURL'
]);
custom_log
(
'OBS 上传成功:'
.
$object_url
,
$user_id
,
$log_name
);
// 返回相对路径(与 saveFileLoc 返回格式一致)
// return $upload_dir . $filename;
return
$ret
[
'ObjectURL'
];
// 返回完整的 OBS URL
return
$object_url
;
}
catch
(
\Exception
$e
)
{
format_log_error_custom_name
(
$e
,
'OBS 文件上传失败'
,
''
,
$log_name
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment