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