瀏覽代碼

update weight rule

xielin 5 年之前
父節點
當前提交
8b1342062f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Repositories/Post/PostRepository.php

+ 1 - 1
app/Repositories/Post/PostRepository.php

@@ -124,7 +124,7 @@ class PostRepository
         }
 
         $fresh = (Carbon::now()->timestamp) - (Carbon::parse("2019-05-01 00:00:00")->timestamp);
-        $score = $fresh / 86400;
+        $score = $fresh / 43200;
         $data = [
             'uid' => $userInfo['uid'],
             'username' => $userInfo['username'],