修改支付控制器中$attach的获取方式,从extend_params中获取。
This commit is contained in:
parent
c90fc585e4
commit
fa6756a9c9
@ -70,7 +70,7 @@ class PayController extends BaseApiController
|
||||
if ($result) {
|
||||
$data = $result->toArray();
|
||||
if ($data['trade_status'] === 'TRADE_SUCCESS') {
|
||||
$attach = $data['attach'];
|
||||
$attach = $data['extend_params']['attach']??'';
|
||||
switch ($attach) {
|
||||
case 'alipay_cashier':
|
||||
PayNotifyLogic::handle('alipay_cashier', $data['out_trade_no'], $data);
|
||||
@ -92,7 +92,7 @@ class PayController extends BaseApiController
|
||||
if ($result) {
|
||||
$data = $result->toArray();
|
||||
if ($data['trade_status'] === 'TRADE_SUCCESS') {
|
||||
$attach = $data['attach'];
|
||||
$attach = $data['extend_params']['attach']??'';
|
||||
switch ($attach) {
|
||||
case 'alipay_cashier':
|
||||
PayNotifyLogic::handle('alipay_cashier', $data['out_trade_no'], $data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user