浏览代码

Update HomeTimelineService

Daniel Supernault 1 年之前
父节点
当前提交
2a8a299058
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Services/HomeTimelineService.php

+ 1 - 1
app/Services/HomeTimelineService.php

@@ -46,7 +46,7 @@ class HomeTimelineService
 
     public static function add($id, $val)
     {
-        if(self::count($id) > 400) {
+        if(self::count($id) >= 400) {
             Redis::zpopmin(self::CACHE_KEY . $id);
         }