From 16a59e3a683ba292bcff44ef5da528775497e277 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq,com> Date: Mon, 30 Dec 2024 17:51:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A8=8E=E5=8F=B7=E4=B8=BA=E7=A9=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/model/InvoiceHead.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/model/InvoiceHead.php b/app/model/InvoiceHead.php index 3e25972..529b488 100644 --- a/app/model/InvoiceHead.php +++ b/app/model/InvoiceHead.php @@ -12,6 +12,7 @@ class InvoiceHead extends Model public static function createHead($wechat_user_id, $data) { + if (isset($data['tax_number']) && $data['tax_number'] == 'undefined') $data['tax_number'] = ''; $param = [ 'type' => $data['type'], 'title' => $data['title'], @@ -36,4 +37,4 @@ class InvoiceHead extends Model return $model->where($param)->value('id'); } -} \ No newline at end of file +}