diff --git a/application/api/job/ArticleReviewForQueueChunk.php b/application/api/job/ArticleReviewForQueueChunk.php index 039e3c6..5f7ddc4 100644 --- a/application/api/job/ArticleReviewForQueueChunk.php +++ b/application/api/job/ArticleReviewForQueueChunk.php @@ -54,12 +54,12 @@ class ArticleReviewForQueueChunk $response = $oOpenAi->articleReviewForQueueChunk($data); // 验证API响应 if (empty($response)) { - throw new RuntimeException("OpenAI API返回空结果"); + throw new \RuntimeException("OpenAI API返回空结果"); } // 检查JSON解析错误 $aResult = json_decode($response, true); if (json_last_error() !== JSON_ERROR_NONE) { - throw new RuntimeException("解析OpenAI响应失败: " . json_last_error_msg() . " | 原始响应: {$response}"); + throw new \RuntimeException("解析OpenAI响应失败: " . json_last_error_msg() . " | 原始响应: {$response}"); } $sMsg = empty($aResult['msg']) ? '内容生成成功' : $aResult['msg'];