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

3D试戴优化3

parent a9708172
...@@ -196,7 +196,11 @@ class Ai ...@@ -196,7 +196,11 @@ 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');
$data = $e->getResponse()->getData();
$message = $data ? ($data['msg'] ?? '') : $e->getMessage();
format_log_error_custom_name($e, '[AI生成图片接口异常]','用户ID:'. $userId . ' response_format'. $response_format , $message , 'gen_ai');
return [ return [
'code' => 0 , 'code' => 0 ,
'msg' => '图片生成失败' 'msg' => '图片生成失败'
...@@ -277,7 +281,10 @@ class Ai ...@@ -277,7 +281,10 @@ class Ai
]; ];
} catch (\Exception $e) { } catch (\Exception $e) {
format_log_error_custom_name($e, '[AI生成视频接口异常]','用户ID:'. $userId . $e->getMessage(), 'gen_ai'); $data = $e->getResponse()->getData();
$message = $data ? ($data['msg'] ?? '') : $e->getMessage();
format_log_error_custom_name($e, '[AI生成视频接口异常]','用户ID:'. $userId , $message , '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