no commit message
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user