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'])) {