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

3D试戴 调试13

parent 67bc2b79
......@@ -69,7 +69,7 @@ class Ai
custom_log('fileUrl: '.$file_url, $log_name);
// 1 生成存储目录(fastadmin标准uploads目录)
$upload_dir = '/uploads/ai_video/' . date('Ymd') . '/';
$upload_dir = '/uploads/gen_ai/' . date('Ymd') . '/';
$dir = $this->public_dir . $upload_dir;
if (!is_dir($dir)) {
mkdir($dir, 0755, true);
......@@ -103,7 +103,7 @@ class Ai
if (file_exists($full_path)) {
unlink($full_path);
}
custom_log('文件下载失败:' . $error . "HTTP状态码:{$http_code}文件为空", $log_name);
custom_log('文件下载失败:' . $error . "HTTP状态码:{$http_code} 文件为空", $log_name);
return 0; // 统一失败返回值
}
......
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