From 338b45ce2988e3ea5322c5c4615c26e2826d4925 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: Mon, 17 Oct 2022 15:03:30 +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=E9=94=99?= =?UTF-8?q?=E8=AF=AF=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 a0578f6..13a752b 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' => $param['id']])->value('check_status'); + $status = InvoiceList::where(['id' => $id)->value('check_status'); if ($status == 2) { return to_assign(1, "已审核的发票不能删除"); } -- Gitee