From 2c6877f293f4359ba70ef5e23c665600116aa0aa Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Sat, 4 Nov 2023 11:17:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=BC=80=E7=A5=A8=E5=8F=8A?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/FinanceInvoice.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/api/controller/FinanceInvoice.php b/app/api/controller/FinanceInvoice.php index ce968c1..b6ae7f8 100644 --- a/app/api/controller/FinanceInvoice.php +++ b/app/api/controller/FinanceInvoice.php @@ -12,6 +12,7 @@ namespace app\api\controller; use app\api\ApiController; use app\api\middleware\Auth; use app\finance\model\Invoice as InvoiceList; +use app\finance\model\InvoiceIncome; use app\finance\validate\InvoiceCheck; use think\exception\ValidateException; use think\facade\Db; @@ -494,9 +495,7 @@ class FinanceInvoice extends ApiController if (empty($param['id'])) { $this->apiError("id不能为空"); } - if (empty($param['check_status'])) { - $this->apiError("发票状态不能为空"); - } + $param['check_status'] = 10; if ($param['check_status'] == 10) { $count = InvoiceIncome::where(['inid'=>$param['id'],'status'=>1])->count(); if($count>0){ @@ -526,9 +525,6 @@ class FinanceInvoice extends ApiController } if (empty($param['id'])) { $this->apiError("id不能为空"); - } - if (empty($param['check_status'])) { - $this->apiError("发票状态不能为空"); } $param['check_status'] = 5; $param['update_time'] = time();