浏览代码

Default Changelist

yingzi 3 年之前
父节点
当前提交
0e65852e5f
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      app/api/controller/Pub.php

+ 3 - 0
app/api/controller/Pub.php

@@ -307,6 +307,9 @@ class Pub extends BaseController
     public function getCardLookCountRank(Request $request) {
         $time = $request->param('time', time());
         $list = (new UserModel)->where('card_look_count', '>', 0);
+        if ($time > 0) {
+            $list = $list->whereTime('create_time', '>=', $time);
+        }
         $list = $list->order('card_look_count', 'desc')->select();
         $rankList = [];
         foreach ($list as $key => $value) {