From 24509d66d18f4869dbc168a164a935157bcbc0aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BA=A2=E6=97=A5=E5=B7=A5=E4=BD=9C=E5=AE=A4?= <1375011211@qq.com> Date: Thu, 20 Oct 2022 17:29:27 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=91=E7=A5=A8=E7=AE=A1?= =?UTF-8?q?=E7=90=86=EF=BC=8C=E5=88=A0=E9=99=A4=E5=8F=91=E7=A5=A8=20?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=B0=91=E4=BA=86=E4=B8=80=E4=B8=AA]=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 红日工作室 <1375011211@qq.com> --- app/finance/controller/Invoice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/finance/controller/Invoice.php b/app/finance/controller/Invoice.php index 13a752b..6a081c9 100644 --- a/app/finance/controller/Invoice.php +++ b/app/finance/controller/Invoice.php @@ -428,7 +428,7 @@ class Invoice extends BaseController public function delete() { $id = get_params("id"); - $status = InvoiceList::where(['id' => $id)->value('check_status'); + $status = InvoiceList::where(['id' => $id])->value('check_status'); if ($status == 2) { return to_assign(1, "已审核的发票不能删除"); }