更新
This commit is contained in:
parent
49a3a88069
commit
3ff3319f55
@ -39,7 +39,7 @@ class PayController extends BaseApiController
|
|||||||
Pay::config($config);
|
Pay::config($config);
|
||||||
$result = Pay::wechat()->callback(Request()->post());
|
$result = Pay::wechat()->callback(Request()->post());
|
||||||
if($result && $result->event_type=='TRANSACTION.SUCCESS'){
|
if($result && $result->event_type=='TRANSACTION.SUCCESS'){
|
||||||
$ciphertext=$result->resource->ciphertext;
|
$ciphertext=$result->resource['ciphertext'];
|
||||||
if ($ciphertext['trade_state'] === 'SUCCESS') {
|
if ($ciphertext['trade_state'] === 'SUCCESS') {
|
||||||
$extra['transaction_id'] = $ciphertext['transaction_id'];
|
$extra['transaction_id'] = $ciphertext['transaction_id'];
|
||||||
$attach = $ciphertext['attach'];
|
$attach = $ciphertext['attach'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user