报错优化

This commit is contained in:
2025-09-21 20:48:40 +08:00
parent 274f02b867
commit 17f2d64207
4 changed files with 297 additions and 151 deletions
@@ -49,7 +49,7 @@ export class EmotionAIService {
error as Error,
ErrorType.API_ERROR,
{ config: { ...emotionConfig, apiKey: "***" } }, // 隐藏API密钥
true
false
);
throw error;
}
@@ -217,7 +217,7 @@ export class EmotionAIService {
new Error(warningMsg),
ErrorType.API_ERROR,
{ roleId, message, response },
true
false
);
return null;
}