From 869698801fad20ceb15cedef0d410fb5b10c769b Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 8 Jul 2024 19:40:43 +0800 Subject: [PATCH] 1 --- webapp/controller/TempToolsController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/controller/TempToolsController.class.php b/webapp/controller/TempToolsController.class.php index 358d1ad3..da635568 100644 --- a/webapp/controller/TempToolsController.class.php +++ b/webapp/controller/TempToolsController.class.php @@ -393,9 +393,9 @@ class TempToolsController extends BaseController { 'dbname' => $mysql_conf['database'], )); } - $heroContractAddress = HERO_CONTRACT_ADDRESS; + $heroContractAddress = '\"' . HERO_CONTRACT_ADDRESS . '\"'; if ($type == 0) { - $sql = "select lock_to, count(idx) as lock_count from t_nft_lock_event where createtime>=$beginTime and createtime<=$endTime and JSON_EXTRACT(convert(return_values using utf8), '$.nft')='\"$heroContractAddress\"' group by lock_to;"; + $sql = "select lock_to, count(idx) as lock_count from t_nft_lock_event where createtime>=$beginTime and createtime<=$endTime and lower(JSON_EXTRACT(convert(return_values using utf8), '$.nft'))='$heroContractAddress' group by lock_to;"; } else { $sql = "select lock_to, count(idx) as lock_count from t_nft_lock_event where createtime>=$beginTime and createtime<=$endTime group by lock_to;"; }