From 4f7fea827397084d636b17a72d1fbe77f1017f11 Mon Sep 17 00:00:00 2001 From: liu <1873441552@qq.com> Date: Thu, 27 Jun 2024 21:29:22 +0800 Subject: [PATCH] =?UTF-8?q?gengxin=E6=89=A7=E8=A1=8C=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/logic/PayNotifyLogic.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/common/logic/PayNotifyLogic.php b/app/common/logic/PayNotifyLogic.php index 4db11d06b..5a27e10e2 100644 --- a/app/common/logic/PayNotifyLogic.php +++ b/app/common/logic/PayNotifyLogic.php @@ -654,6 +654,11 @@ class PayNotifyLogic extends BaseLogic } bcscale(2); // $user->now_money = bcadd($user->now_money, $price, 2);//v.1 + $check = UserSign::where(['uid'=>$order->uid,'type'=>1])->count(); + if(empty($check) && $user['user_ship'] == 0){ + self::dealRechargeFrozen($order); + + } //更新等级 $user->user_ship = $order['user_ship']; @@ -663,11 +668,7 @@ class PayNotifyLogic extends BaseLogic if($order['other_uid']>0){ $uid=$order['other_uid']; } - $check = UserSign::where(['uid'=>$order->uid,'type'=>1])->count(); - if(empty($check) && $user['user_ship'] == 0){ - self::dealRechargeFrozen($order); - } PushService::push('wechat_mmp_' . $uid, $uid, ['type'=>'INDUSTRYMEMBERS','msg'=>'订单支付成功','data'=>['id'=>$order['id'],'paid'=>1]]); PushService::push('store_merchant_' . $order['store_id'], $order['store_id'], ['type'=>'INDUSTRYMEMBERS','msg'=>'订单支付成功','data'=>['id'=>$order['id'],'paid'=>1]]);