diff --git a/models/icpQuery.php b/models/icpQuery.php index ef2ce5c..a5ae65c 100644 --- a/models/icpQuery.php +++ b/models/icpQuery.php @@ -52,7 +52,7 @@ class icpQuery { return $info; } unset($info['status']); - $redis->setData($domain, json_encode($info), 30 * 86400); // 缓存30day + $redis->setData($domain, json_encode($info), 90 * 86400); // 缓存90day } else { // 缓存命中 $info = json_decode($info, true); // 使用缓存数据 } diff --git a/models/tgDC.php b/models/tgDC.php index 0431c67..0a21c32 100644 --- a/models/tgDC.php +++ b/models/tgDC.php @@ -86,7 +86,7 @@ class tgDC { if (!$info) { // 缓存未命中 $info = $this->getUserInfo($account); // 发起查询 if (!$info['name'] && !$info['dc']) { // 用户名与头像均无 - $cacheTTL = 120; // 缓存2min + $cacheTTL = 300; // 缓存5min } else if ($info['name'] && !$info['dc']) { // 存在用户名但未设置头像 $cacheTTL = 20; // 缓存20s } else { @@ -135,7 +135,7 @@ class tgDCEntry { $info = json_decode($content['data'], true); $msg = '@' . $info['account'] . ' (' . $info['name'] . ')' . PHP_EOL; $msg .= '' . $info['as'] . ' '; - $msg .= '(' . $info['ip'] . ')' . PHP_EOL; + $msg .= '(' . $info['ip'] . ')' . PHP_EOL; $msg .= '' . $info['dc'] . ' - ' . $info['addr'] . PHP_EOL; return array( 'parse_mode' => 'HTML', // HTML格式输出