mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
修复Notice错误
This commit is contained in:
@@ -45,7 +45,7 @@ class Exception extends \Exception
|
|||||||
* @param string $label 数据分类,用于异常页面显示
|
* @param string $label 数据分类,用于异常页面显示
|
||||||
* @param Array $data 需要显示的数据,必须为关联数组
|
* @param Array $data 需要显示的数据,必须为关联数组
|
||||||
*/
|
*/
|
||||||
final protected function setData($label, Array $data)
|
final protected function setData($label, array $data)
|
||||||
{
|
{
|
||||||
$this->data[$label] = $data;
|
$this->data[$label] = $data;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,7 +68,10 @@ class File
|
|||||||
foreach ($log as $line) {
|
foreach ($log as $line) {
|
||||||
$info .= '[' . $line['type'] . '] ' . $line['msg'] . "\r\n";
|
$info .= '[' . $line['type'] . '] ' . $line['msg'] . "\r\n";
|
||||||
}
|
}
|
||||||
error_log("[{$now}] {$_SERVER['SERVER_ADDR']} {$_SERVER['REMOTE_ADDR']} {$_SERVER['REQUEST_URI']}\r\n{$info}\r\n", 3, $destination);
|
|
||||||
|
$server = isset($_SERVER['SERVER_ADDR']) ? $_SERVER['SERVER_ADDR'] : '0.0.0.0';
|
||||||
|
$remote = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '0.0.0.0';
|
||||||
|
error_log("[{$now}] {$server} {$remote} {$_SERVER['REQUEST_URI']}\r\n{$info}\r\n", 3, $destination);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user