no commit message
This commit is contained in:
@@ -2452,6 +2452,8 @@ class ReportManage extends Base{
|
|||||||
$upload = ossUpload(trim(str_replace("\\", "/", $filename), '/'), $filePath);
|
$upload = ossUpload(trim(str_replace("\\", "/", $filename), '/'), $filePath);
|
||||||
Log::error('upload:');
|
Log::error('upload:');
|
||||||
Log::error($upload);
|
Log::error($upload);
|
||||||
|
Log::error("filePath:");
|
||||||
|
Log::error($filePath);
|
||||||
@unlink($filePath); //把本地图片删除(原图)
|
@unlink($filePath); //把本地图片删除(原图)
|
||||||
//报告PDF地址
|
//报告PDF地址
|
||||||
$url = config('uploadFile.url') . $filename;
|
$url = config('uploadFile.url') . $filename;
|
||||||
@@ -2756,6 +2758,8 @@ class ReportManage extends Base{
|
|||||||
return $this->buildFailed('报告制作失败');
|
return $this->buildFailed('报告制作失败');
|
||||||
}
|
}
|
||||||
$url = Db::name('report')->where('id', $postData['reportid'])->value('report_url');
|
$url = Db::name('report')->where('id', $postData['reportid'])->value('report_url');
|
||||||
|
Log::error('url;:');
|
||||||
|
Log::error($url);
|
||||||
|
|
||||||
return $this->buildSuccess(['url' => $url]);
|
return $this->buildSuccess(['url' => $url]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user