|
@@ -31,8 +31,10 @@ class AliPay
|
|
31
|
}
|
31
|
}
|
|
32
|
$access = new Access();
|
32
|
$access = new Access();
|
|
33
|
$res = $access->pay_huifu('ALI','',$groupOrder,'支付宝支付',env('APP_URL')."/api/hf_notify/pay");
|
33
|
$res = $access->pay_huifu('ALI','',$groupOrder,'支付宝支付',env('APP_URL')."/api/hf_notify/pay");
|
|
34
|
- // 更新store_group_order表hf_pay_id
|
|
|
|
35
|
- StoreGroupOrder::update(['hf_pay_id'=>$res['id']],['group_order_id'=>$groupOrderId]);
|
|
|
|
|
|
34
|
+ // 更新store_group_order表hf_pay_id,pay_type
|
|
|
|
35
|
+ StoreGroupOrder::update(['hf_pay_id' => $res['id'], 'pay_type' => 4], ['group_order_id' => $groupOrderId]);
|
|
|
|
36
|
+ // 更新store_order表pay_type
|
|
|
|
37
|
+ StoreGroupOrder::update(['pay_type' => 4], ['group_order_id' => $groupOrderId]);
|
|
36
|
return app('json')->success($res);
|
38
|
return app('json')->success($res);
|
|
37
|
}
|
39
|
}
|
|
38
|
|
40
|
|