From b3dd8f15b7f1528731ba3b2a0572d720599b7f35 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq.com> Date: Tue, 19 Aug 2025 14:43:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E8=AF=81=E5=BC=80=E7=A5=A8=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=B8=8D=E5=87=BA=E9=94=992?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/InvoiceIssuance.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controller/api/InvoiceIssuance.php b/app/controller/api/InvoiceIssuance.php index 62ee855..ad7d17e 100644 --- a/app/controller/api/InvoiceIssuance.php +++ b/app/controller/api/InvoiceIssuance.php @@ -190,6 +190,9 @@ class InvoiceIssuance extends Base $wechat_user_id = $this->request->wechat_user_id; $pucode = WechatPucode::where('wechat_user_id',$wechat_user_id)->order('create_time desc')->value('pucode'); + if (!$pucode) { + throw new \Exception('请先绑定用户编号'); + } $data = [ 'wechat_user_id' => $wechat_user_id, 'project_id' => $params['project_id'],