This commit is contained in:
mkm 2024-05-07 09:49:11 +08:00
parent 49a3a88069
commit 3ff3319f55

View File

@ -39,7 +39,7 @@ class PayController extends BaseApiController
Pay::config($config);
$result = Pay::wechat()->callback(Request()->post());
if($result && $result->event_type=='TRANSACTION.SUCCESS'){
$ciphertext=$result->resource->ciphertext;
$ciphertext=$result->resource['ciphertext'];
if ($ciphertext['trade_state'] === 'SUCCESS') {
$extra['transaction_id'] = $ciphertext['transaction_id'];
$attach = $ciphertext['attach'];