feat(StoreController): 添加other_uid到支付订单API
This commit is contained in:
parent
5856c1903b
commit
a66017a21e
@ -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,
|
||||
|
@ -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'])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user