elf 2 weeks ago
parent 28d947da21
commit 769f485549

@ -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') {

Loading…
Cancel
Save