From a66017a21e16544e413279ade19abbf4cb5c0381 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Tue, 25 Jun 2024 13:34:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(StoreController):=20=E6=B7=BB=E5=8A=A0othe?= =?UTF-8?q?r=5Fuid=E5=88=B0=E6=94=AF=E4=BB=98=E8=AE=A2=E5=8D=95API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/store/StoreController.php | 1 + app/common/logic/PayNotifyLogic.php | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/api/controller/store/StoreController.php b/app/api/controller/store/StoreController.php index 12c31fec1..166bf0eeb 100644 --- a/app/api/controller/store/StoreController.php +++ b/app/api/controller/store/StoreController.php @@ -91,6 +91,7 @@ class StoreController extends BaseApiController $data=[ 'store_id'=>$params['store_id'], 'uid'=>$find['id'], + 'other_uid'=>$this->userId, 'staff_id'=>0, 'order_id'=>getNewOrderId('CZ'), 'price'=>Config::where('name','recharge')->value('value')??1000, diff --git a/app/common/logic/PayNotifyLogic.php b/app/common/logic/PayNotifyLogic.php index 2fcd361d0..431a3ca62 100644 --- a/app/common/logic/PayNotifyLogic.php +++ b/app/common/logic/PayNotifyLogic.php @@ -419,7 +419,9 @@ class PayNotifyLogic extends BaseLogic $user->purchase_funds = bcadd($user->purchase_funds, $price, 2); $user->total_recharge_amount = bcadd($user->total_recharge_amount, $price, 2); $user->save(); - + if($order['other_uid']>0){ + $uid=$order['other_uid']; + } PushService::push('wechat_mmp_' . $uid, $uid, ['type'=>'INDUSTRYMEMBERS','msg'=>'订单支付成功','data'=>['id'=>$order['id'],'paid'=>1]]); if (!empty($extra['payer']['openid'])) {