Skip to content

Commit

Permalink
to: 增加支付回调错误日志记录
Browse files Browse the repository at this point in the history
  • Loading branch information
xboard committed Jan 10, 2024
1 parent 31b8930 commit 3f65ad6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Http/Controllers/V1/Guest/PaymentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ public function notify($method, $uuid, Request $request)
if (!$this->handle($verify['trade_no'], $verify['callback_no'])) {
return $this->fail([400,'handle error']);
}
return(isset($verify['custom_result']) ? $verify['custom_result'] : 'success');
return (isset($verify['custom_result']) ? $verify['custom_result'] : 'success');
} catch (\Exception $e) {
\Log::error($e);
return $this->fail([500,'fail']);
}
}
Expand Down

0 comments on commit 3f65ad6

Please sign in to comment.