update
This commit is contained in:
parent
6345a18b01
commit
2d5cc6c51d
@ -66,12 +66,7 @@
|
|||||||
if (false === $result) {
|
if (false === $result) {
|
||||||
return $this->fail(FinancialInvoiceLogic::getError());
|
return $this->fail(FinancialInvoiceLogic::getError());
|
||||||
}
|
}
|
||||||
header("Content-Type: application/zip");
|
return $this->success('下载成功', ['url' => '/' . $result], 1, 1);
|
||||||
header("Content-Transfer-Encoding: Binary");
|
|
||||||
header("Content-Length: " . filesize($result));
|
|
||||||
header("Content-Disposition: attachment; filename=\"" . basename($result) . "\"");
|
|
||||||
readfile($result);
|
|
||||||
exit;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -83,12 +83,7 @@
|
|||||||
if (false === $result) {
|
if (false === $result) {
|
||||||
return $this->fail(FinancialRefundLogic::getError());
|
return $this->fail(FinancialRefundLogic::getError());
|
||||||
}
|
}
|
||||||
header("Content-Type: application/zip");
|
return $this->success('下载成功', ['url' => '/' . $result], 1, 1);
|
||||||
header("Content-Transfer-Encoding: Binary");
|
|
||||||
header("Content-Length: " . filesize($result));
|
|
||||||
header("Content-Disposition: attachment; filename=\"" . basename($result) . "\"");
|
|
||||||
readfile($result);
|
|
||||||
exit;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user