作者的ai总结field

This commit is contained in:
wangjinlei
2026-05-25 13:20:00 +08:00
parent a4e645309e
commit ab7f08b06c
8 changed files with 245 additions and 31 deletions

View File

@@ -151,7 +151,15 @@ class Plagiarism extends Base
if (!$row) {
return jsonError('not found');
}
return jsonSuccess($this->formatRow($row));
$out = $this->formatRow($row);
if (!empty($row['raw_response'])) {
$raw = json_decode($row['raw_response'], true);
if (is_array($raw)) {
$out['similarity_meta'] = \app\common\TurnitinService::parseSimilarityReportMeta($raw);
}
}
$out['report_view_hint'] = 'PDF 多为 Match Overview 汇总样式;按来源库(Internet/Publication/Crossref)分类请用 getReportUrl 打开在线报告并切到 All Sources';
return jsonSuccess($out);
}
/**