回调充值修改

This commit is contained in:
liu 2024-06-06 11:01:49 +08:00
parent bae7a58f0e
commit 4f0f91b61a

View File

@ -33,7 +33,7 @@ class PayController extends BaseApiController
Cache::set('logE1'.time(),$result['event_type']??''); Cache::set('logE1'.time(),$result['event_type']??'');
if ($result && $result->event_type == 'TRANSACTION.SUCCESS') { if ($result && $result->event_type == 'TRANSACTION.SUCCESS') {
$ciphertext = $result->resource['ciphertext']; $ciphertext = $result->resource['ciphertext'];
Cache::set('logc'.time(),$result->resource['ciphertext']); Cache::set('logc'.time(),json_decode($result->resource['ciphertext'],true));
if ($ciphertext['trade_state'] === 'SUCCESS') { if ($ciphertext['trade_state'] === 'SUCCESS') {
$attach = $ciphertext['attach']; $attach = $ciphertext['attach'];
switch ($attach) { switch ($attach) {