💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
错误信息如下: ~~~ 2017-05-11 11:18:25 [10.255.0.3][148667][-][warning][yii\debug\Module::checkAccess] Access to debugger is denied due to IP address restriction. The requesting IP address is 10.255.0.3 2017-05-11 11:18:25 [10.255.0.3][148667][-][info][application] $_POST = [ 'deviceUuid' => '88FE942E-3B44-4096-BBE1-D434CED9AD01' 'actionName' => 'open_sign_getmoney' 'appVersion' => '2.0.2' 'accessToken' => '1736f0753dae453fb660f5be4e868705' 'clientid' => 'ios' ] $_SERVER = [ 'SUPERVISOR_SERVER_URL' => 'unix:///dev/shm/supervisor.sock' 'SHLVL' => '1' 'OLDPWD' => '/' 'HOSTNAME' => '134fa2891cfd' 'SUPERVISOR_ENABLED' => '1' 'SUPERVISOR_PROCESS_NAME' => 'php-fpm7' 'PWD' => '/var/www/html' 'SUPERVISOR_GROUP_NAME' => 'php-fpm7' 'HOME' => '/var/lib/nginx' 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' 'USER' => 'nginx' 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate' 'HTTP_ACCEPT_LANGUAGE' => 'zh-cn' 'HTTP_USER_AGENT' => 'RapidLoan/201704271840 CFNetwork/808.3 Darwin/16.3.0' 'HTTP_ACCEPT' => '*/*' 'HTTP_CONTENT_TYPE' => 'application/x-www-form-urlencoded' 'HTTP_CONTENT_LENGTH' => '152' 'HTTP_CONNECTION' => 'close' 'HTTP_X_FORWARDED_FOR' => '119.137.54.249' 'HTTP_REMOTE_HOST' => '119.137.54.249' 'HTTP_X_REAL_IP' => '119.137.54.249' 'HTTP_HOST' => 'dev.api2.jiumiaodai.com' 'REDIRECT_STATUS' => '200' 'SERVER_NAME' => '_' 'SERVER_PORT' => '80' 'SERVER_ADDR' => '10.255.0.4' 'REMOTE_PORT' => '38680' 'REMOTE_ADDR' => '10.255.0.3' 'SERVER_SOFTWARE' => 'nginx/1.10.3' 'GATEWAY_INTERFACE' => 'CGI/1.1' 'REQUEST_SCHEME' => 'http' 'SERVER_PROTOCOL' => 'HTTP/1.0' 'DOCUMENT_ROOT' => '/var/www/html/api/web' 'DOCUMENT_URI' => '/index.php' 'REQUEST_URI' => '/action-log' 'CONTENT_LENGTH' => '152' 'CONTENT_TYPE' => 'application/x-www-form-urlencoded' 'REQUEST_METHOD' => 'POST' 'QUERY_STRING' => '' 'SCRIPT_NAME' => '/index.php' 'SCRIPT_FILENAME' => '/var/www/html/api/web/index.php' 'FCGI_ROLE' => 'RESPONDER' 'PHP_SELF' => '/index.php' 'REQUEST_TIME_FLOAT' => 1494472705.8006 'REQUEST_TIME' => 1494472705 ] ~~~ 原因: 因为debug默认只允许本地(127.0.0.1)启用调试器 解决办法: ~~~ if (!YII_ENV_TEST) { // configuration adjustments for 'dev' environment $config['bootstrap'][] = 'debug'; $config['modules']['debug'] = [ 'class' => 'yii\debug\Module', 'allowedIPs'=>['*'], // 允许任何ip都可以调试 ]; } ~~~