Browse Source

下载返回错误提示错误2

master
wanghongjun 12 months ago
parent
commit
976bdd7a73
  1. 2
      app/controller/api/InvoiceIssuance.php

2
app/controller/api/InvoiceIssuance.php

@ -234,7 +234,7 @@ class InvoiceIssuance extends Base
}
$InvoiceIssuanceData = (new InvoiceIssuanceData)->where(['invoice_issuance_id' => $id, 'status' => 1])->find();
if (!$InvoiceIssuanceData) {
throw new FuncException('PDF文件为下载成功');
throw new FuncException('PDF文件下载失败');
}
$filePath = $InvoiceIssuanceData['pdf_filepath'];
$file_dir = App::getRootPath() . 'public/' . $filePath;

Loading…
Cancel
Save