From 790166199ea57339e566745ac69b50da45e0a7f6 Mon Sep 17 00:00:00 2001 From: weiz <736250432@qq.com> Date: Fri, 24 May 2024 10:51:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E9=93=B6=E8=A1=8C=E5=8D=A1?= =?UTF-8?q?=E7=BB=91=E5=AE=9A=E7=94=B3=E8=AF=B7=E5=AE=A1=E6=A0=B8=E5=90=8E?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/logic/merchant/MerchantBankLogic.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/admin/logic/merchant/MerchantBankLogic.php b/app/admin/logic/merchant/MerchantBankLogic.php index 9c03df0..e393d2b 100644 --- a/app/admin/logic/merchant/MerchantBankLogic.php +++ b/app/admin/logic/merchant/MerchantBankLogic.php @@ -7,6 +7,7 @@ use app\common\logic\BaseLogic; use app\common\model\auth\Admin; use app\common\model\bank\Bank; use app\common\model\merchant\MerchantBank; +use app\common\service\JgPushService; use think\facade\Db; @@ -30,6 +31,11 @@ class MerchantBankLogic extends BaseLogic self::setError("已审核,无需重新审核"); return false; } + if(!empty($data['supplier_id'])){ + $user_auth_shop = Db::name('user_auth_shop')->field('jg_register_id')->where('pid',$data['supplier_id'])->where('type',2)->findOrEmpty(); + }else{ + $user_auth_shop = Db::name('user_auth_shop')->field('jg_register_id')->where('pid',$data['mer_id'])->where('type',1)->findOrEmpty(); + } Db::startTrans(); try { MerchantBank::where('id',$params['id'])->update([ @@ -38,6 +44,9 @@ class MerchantBankLogic extends BaseLogic 'admin_id' => $admin_id, 'update_time' => time() ]); + if(!empty($user_auth_shop['jg_register_id'])){ + (new JgPushService()) -> sendMsg($user_auth_shop['jg_register_id'],'您的银行卡绑定申请'.($params['is_check']==1?'已审核通过':'审核未通过'),'/pages/quote/supplierFinancialy'); + } Db::commit(); return true; } catch (\Exception $e) {