feat: 修改支付成功返回信息,增加订单id
This commit is contained in:
parent
fabdddec05
commit
8d0d8ab603
@ -205,7 +205,7 @@ class StoreOrderController extends BaseAdminController
|
||||
Redis::send('send-code-pay', ['order_id' => $order['order_id']]);
|
||||
return $this->success('用户支付中');
|
||||
}
|
||||
return $this->success('支付成功', ['out_trade_no' => $result['out_trade_no'], 'pay_type' => PayEnum::WECHAT_PAY_BARCODE, 'transaction_id' => $result['transaction_id']]);
|
||||
return $this->success('支付成功', ['out_trade_no' => $result['out_trade_no'], 'pay_type' => PayEnum::WECHAT_PAY_BARCODE, 'transaction_id' => $result['transaction_id'],'id'=>$order['id']]);
|
||||
case PayEnum::ALIPAY_BARCODE:
|
||||
//支付宝条码支付
|
||||
$result = PaymentLogic::ali_auth_code($auth_code, $order);
|
||||
@ -217,7 +217,7 @@ class StoreOrderController extends BaseAdminController
|
||||
}
|
||||
PayNotifyLogic::handle('alipay_cashier', $result['out_trade_no'], $result);
|
||||
$result['create_time'] = $order['create_time'];
|
||||
return $this->success('支付成功', ['out_trade_no' => $result['out_trade_no'], 'pay_type' => PayEnum::ALIPAY_BARCODE, 'transaction_id' => $result['trade_no']]);
|
||||
return $this->success('支付成功', ['out_trade_no' => $result['out_trade_no'], 'pay_type' => PayEnum::ALIPAY_BARCODE, 'transaction_id' => $result['trade_no'],'id'=>$order['id']]);
|
||||
default:
|
||||
return $this->fail('支付方式错误');
|
||||
}
|
||||
@ -266,7 +266,7 @@ class StoreOrderController extends BaseAdminController
|
||||
Redis::send('send-code-pay', ['order_id' => $order['order_id']]);
|
||||
return $this->success('用户支付中');
|
||||
}
|
||||
return $this->success('支付成功', ['out_trade_no' => $result['out_trade_no'], 'pay_type' => PayEnum::WECHAT_PAY_BARCODE, 'transaction_id' => $result['transaction_id']]);
|
||||
return $this->success('支付成功', ['out_trade_no' => $result['out_trade_no'], 'pay_type' => PayEnum::WECHAT_PAY_BARCODE, 'transaction_id' => $result['transaction_id'],'id'=>$order['id']]);
|
||||
case PayEnum::ALIPAY_BARCODE:
|
||||
//支付宝条码支付
|
||||
$result = PaymentLogic::ali_auth_code($auth_code, $order);
|
||||
@ -279,7 +279,7 @@ class StoreOrderController extends BaseAdminController
|
||||
PayNotifyLogic::handle('alipay_cashier', $result['out_trade_no'], $result);
|
||||
|
||||
$result['create_time'] = $order['create_time'];
|
||||
return $this->success('支付成功', ['out_trade_no' => $result['out_trade_no'], 'pay_type' => PayEnum::ALIPAY_BARCODE, 'transaction_id' => $result['trade_no']]);
|
||||
return $this->success('支付成功', ['out_trade_no' => $result['out_trade_no'], 'pay_type' => PayEnum::ALIPAY_BARCODE, 'transaction_id' => $result['trade_no'],'id'=>$order['id']]);
|
||||
default:
|
||||
return $this->fail('支付方式错误');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user