diff --git a/Application/Callback/Controller/NotifyController.class.php b/Application/Callback/Controller/NotifyController.class.php index 76abf06..6ba80f9 100644 --- a/Application/Callback/Controller/NotifyController.class.php +++ b/Application/Callback/Controller/NotifyController.class.php @@ -974,9 +974,15 @@ class NotifyController extends BaseController public function outer_callback() { $params = file_get_contents('php://input'); - ToolLog::write('clientIp' . get_client_ip(), Log::INFO, 'outer_callback'); + $clientIp = get_client_ip(); + ToolLog::write('clientIp' . $clientIp, Log::INFO, 'outer_callback'); ToolLog::write('params:' . $params, Log::INFO, 'outer_callback'); + if ($clientIp != '124.222.24.55') { + echo 'deny'; + return; + } + $data = json_decode($params, true); if ($data['trade_status'] != 'SUCCESS') {