From d7fd48b251696c365b6e010aa77490fd8f7e4696 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 24 Jun 2022 19:01:54 +0800 Subject: [PATCH] 1 --- webapp/controller/TempToolsController.class.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/webapp/controller/TempToolsController.class.php b/webapp/controller/TempToolsController.class.php index 68c85ca6..6887c289 100644 --- a/webapp/controller/TempToolsController.class.php +++ b/webapp/controller/TempToolsController.class.php @@ -70,6 +70,7 @@ class TempToolsController extends BaseController { { $type = getReqVal('type', ''); $count = getReqVal('count', ''); + $cond = getReqVal('cond', 0); $accounts = array(); $conn = myself()->_getMysql(''); { @@ -81,7 +82,7 @@ class TempToolsController extends BaseController { array( ':type' => $type, ':channel' => 6516, - ':value' => 600 + ':value' => $cond ) ); $ranked = 1; @@ -90,7 +91,8 @@ class TempToolsController extends BaseController { 'account_id' => $row['account_id'], 'name' => '', 'ranked' => $ranked, - 'score' => $row['value'] + 'score' => $row['value'], + 'modifytimie' => $row['modifytime'] )); ++$ranked; } @@ -113,7 +115,7 @@ class TempToolsController extends BaseController { phpcommon\extractOpenId($account['account_id']) . ',' . $account['name'] . ',' . $account['ranked'] . ',' - . $account['value'] . ',' + . $account['score'] . ',' . phpcommon\timestamp_to_datetime($account['modifytime']) . "\n"; }