Explorar o código

Default Changelist

yingzi %!s(int64=2) %!d(string=hai) anos
pai
achega
0e65852e5f
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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) {