diff --git a/app/Controller/Payment/NotifyController.php b/app/Controller/Payment/NotifyController.php index 85aaf18..6ca1bd0 100644 --- a/app/Controller/Payment/NotifyController.php +++ b/app/Controller/Payment/NotifyController.php @@ -314,6 +314,10 @@ class NotifyController extends AbstractController ] ); - $baofu->notifySuccess(); + if ($result == 'success') { + return $baofu->notifySuccess(); + } else { + return 'fail'; + } } }