Commit f6eeb658 authored by 刘小敏's avatar 刘小敏

去掉域名里的443

parent ef686f38
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment