日志升级与缓存修复最终版
This commit is contained in:
@@ -7,7 +7,7 @@ require_once __DIR__ . '/../FpUrlHelper.php';
|
||||
class FpPageRenderer
|
||||
{
|
||||
/**
|
||||
* @param array $ctx 必须包含 logs 数组
|
||||
* @param array $ctx 必须包含 logs 数组;可选 skip_log
|
||||
*/
|
||||
public static function render(array $ctx)
|
||||
{
|
||||
@@ -17,10 +17,12 @@ class FpPageRenderer
|
||||
$my_file_name = substr($my_url, strrpos($my_url, '/') + 1);
|
||||
$cong_name = str_replace('.php', '', $my_file_name);
|
||||
|
||||
$resolved = FpUrlHelper::resolve($cong_name, true);
|
||||
$fp_url = $resolved['url'];
|
||||
$resolved = FpUrlHelper::resolve($cong_name, true);
|
||||
$fp_url = $resolved['url'];
|
||||
$logs['fp_url'] = $fp_url;
|
||||
write_log_db($logs);
|
||||
if (empty($ctx['skip_log'])) {
|
||||
write_log_db($logs);
|
||||
}
|
||||
|
||||
$show_content = CLOAK_SHOW_CONTENT;
|
||||
if ($show_content == 'curl') {
|
||||
|
||||
Reference in New Issue
Block a user