From ba9ce8fdf126ae12446df26fb9585e20ff8f40c3 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Mon, 17 Jun 2024 19:46:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E7=A7=AF=E5=88=86?= =?UTF-8?q?=E5=A5=96=E5=8A=B1=20village=5Fuid=20=E5=92=8C=20brigade=5Fuid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/logic/PayNotifyLogic.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/common/logic/PayNotifyLogic.php b/app/common/logic/PayNotifyLogic.php index cd156ec9e..9a4e21e80 100644 --- a/app/common/logic/PayNotifyLogic.php +++ b/app/common/logic/PayNotifyLogic.php @@ -362,10 +362,16 @@ class PayNotifyLogic extends BaseLogic $arr1 = UserAddress::where(['village' => $address['village'], 'is_default' => 1])->column('uid'); if ($arr1) { $village_uid = User::where('id', 'in', $arr1)->where('user_ship', 2)->value('id'); + if($village_uid){ + User::where('id', $village_uid)->inc('integral', $fees)->update(); + } } $arr2 = UserAddress::where(['village' => $address['village'], 'brigade' => $address['brigade'], 'is_default' => 1])->column('uid'); if ($arr2) { $brigade_uid = User::where('id', 'in', $arr1)->where('user_ship', 3)->value('id'); + if($brigade_uid){ + User::where('id', $brigade_uid)->inc('integral', $fees)->update(); + } } } }