/** 取得缓存值 */ function get($key) { $a = $this->file($key); if (!file_exists($a[0])) { return; } $data = file_get_contents($a[0]); $time = file_get_contents($a[1]); if ($time < 1) { $value = Str::re_cookie($data); } elseif ($time > 0) { if (filemtime($a[0]) + $time >= time()) { $value = Str::re_cookie($data); } } if ($value == '#sun#kang#zhang#yi') { return []; } return $value; }