Commit 7e2d1ee4 authored by 刘小敏's avatar 刘小敏

3D试戴优化

parent 94fa5ad7
...@@ -655,7 +655,7 @@ if (!function_exists('format_log_error_custom_name')) { ...@@ -655,7 +655,7 @@ if (!function_exists('format_log_error_custom_name')) {
\think\Log::init([ \think\Log::init([
'type' => 'File', 'type' => 'File',
'path' => RUNTIME_PATH . 'log/'.date('Ym').'/', 'path' => RUNTIME_PATH . 'log/'.date('Ym').'/',
'single' => $name.'_'.date('Ymd').'_', 'single' => $log_name.'_'.date('Ymd').'_',
'max_files' => 0, 'max_files' => 0,
]); ]);
......
...@@ -160,7 +160,7 @@ class Ai ...@@ -160,7 +160,7 @@ class Ai
]; ];
} catch (\Exception $e) { } catch (\Exception $e) {
format_log_error_custom_name($e, '[AI生成图片接口异常]','用户ID:'. $userId . ' response_format'. $response_format .' AI生成图片异常:' . $e->getMessage(), 'gen_ai_img_api'); format_log_error_custom_name($e, '[AI生成图片接口异常]','用户ID:'. $userId . ' response_format'. $response_format .' AI生成图片异常:' . $e->getMessage(), 'gen_ai');
return [ return [
'code' => 0 , 'code' => 0 ,
'msg' => '图片生成失败' 'msg' => '图片生成失败'
......
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