作者的ai总结field
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user