no commit message

This commit is contained in:
annnj-company
2026-04-27 13:59:04 +08:00
parent 8dd29ec3a7
commit 034518cfa2
2 changed files with 8 additions and 2 deletions

View File

@@ -2747,6 +2747,12 @@ class ReportManage extends Base{
public function reqPreviewReport() {
$postData = $this->postData;
if(empty($postData['reportid'])) return $this->buildFailed('请求参数错误');
$report_info = Db::name('report')->where('id', $postData['reportid'])->find();
if(empty($report_info)) return $this->buildFailed('报告不存在');
if (!$this->produceReport($report_info['id'], $report_info['cur_tmpl_id'])) {
return $this->buildFailed('报告制作失败');
}
$url = Db::name('report')->where('id', $postData['reportid'])->value('report_url');
return $this->buildSuccess(['url' => $url]);