feat(StoreController): 添加other_uid到支付订单API

This commit is contained in:
mkm 2024-06-25 13:34:15 +08:00
parent 5856c1903b
commit a66017a21e
2 changed files with 4 additions and 1 deletions

View File

@ -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,

View File

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