From 69870c6dd605ef601338f3777d32cb32fcd17ca2 Mon Sep 17 00:00:00 2001 From: lewis <604446095@qq.com> Date: Sat, 18 Jan 2025 11:43:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E6=B7=BB=E5=8A=A0=E6=B4=BB?= =?UTF-8?q?=E5=8A=A8=E4=BB=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/logic/PayNotifyLogic.php | 3 +++ app/common/model/system_store/SystemStore.php | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/app/common/logic/PayNotifyLogic.php b/app/common/logic/PayNotifyLogic.php index b835ae9fa..944f38fc8 100644 --- a/app/common/logic/PayNotifyLogic.php +++ b/app/common/logic/PayNotifyLogic.php @@ -671,6 +671,9 @@ class PayNotifyLogic extends BaseLogic //积分写入 if (isset($user) && $user['user_ship'] == 0) { UserSignLogic::OrderWrite($order); + if (SystemStore::isActivityStore($order['store_id']) && $order['pay_price'] >= 19.9) { + User::where('id', $order['uid'])->update(['user_ship' => 43]); + } } if ($off_activity == 1) { //-----活动价结算更改 diff --git a/app/common/model/system_store/SystemStore.php b/app/common/model/system_store/SystemStore.php index f950d4e56..dc4564726 100644 --- a/app/common/model/system_store/SystemStore.php +++ b/app/common/model/system_store/SystemStore.php @@ -42,4 +42,10 @@ class SystemStore extends BaseModel Log::error('system_store:'.$e->getMessage()); } } + + public static function isActivityStore($storeId) + { + return in_array($storeId, [5]); + } + } \ No newline at end of file