This commit is contained in:
aozhiwei 2024-07-08 18:59:57 +08:00
parent 5b28f7c55d
commit 8803f0c138
2 changed files with 10 additions and 1 deletions

View File

@ -1125,6 +1125,9 @@ class BattleController extends BaseAuthedController {
if (empty($itemId)) {
return true;
}
if (!$mapModeMeta['is_open']) {
return false;
}
$roomUuid = $customData['room_uuid'];
if ($r->get(DEC_BATTLE_TICKET . $roomUuid)) {
return true;

View File

@ -360,6 +360,7 @@ class TempToolsController extends BaseController {
{
$beginTime = getReqVal('begin_time', '0');
$endTime = getReqVal('end_time', '0');
$type = getReqVal('type', '0');
$bceventConn = null;
$accountConn = null;
{
@ -392,7 +393,12 @@ class TempToolsController extends BaseController {
'dbname' => $mysql_conf['database'],
));
}
$sql = "select lock_to, count(idx) as lock_count from t_nft_lock_event where createtime>=$beginTime and createtime<=$endTime group by lock_to;";
$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;";
} 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;";
}
$rows = $bceventConn->execQuery($sql);
foreach ($rows as $row) {
$email = $this->getAddressEmail($accountConn, $row['lock_to']);