This commit is contained in:
aozhiwei 2024-08-20 11:08:01 +08:00
commit dd4db83ebd
6 changed files with 44 additions and 42 deletions

View File

@ -23,4 +23,5 @@ const SAPI_SECRET_KEYS = array(
const GS_SECRET_KEYS = array(
'BIgDh5J%uUktooKxT!IM7#m$NtB51%la'
);
const NOTICE_CHANNEL_ID = 'world_room_1';
define('PRESENT_FREE_ITEM', 1);

View File

@ -695,7 +695,8 @@ CREATE TABLE `t_battle_settlement_single` (
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`idx`),
UNIQUE KEY `account_id_battle_uniid` (`account_id`, `battle_uuid`)
UNIQUE KEY `account_id_battle_uniid` (`account_id`, `battle_uuid`),
KEY `idx_account_id` (`account_id`)
) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;

View File

@ -12,8 +12,10 @@ class AnncController extends BaseController {
$data = json_decode($redis->get(self::ANNC_REDIS_KEY),true);
}else{
$data = $this->_findAnnc();
$redis->set(self::ANNC_REDIS_KEY,json_encode($data));
$redis->pexpire(self::ANNC_REDIS_KEY , max(0, min(15, myself()->_getNowTime() - $data['end_time'])) * 1000);
if ($data){
$redis->set(self::ANNC_REDIS_KEY,json_encode($data));
$redis->pexpire(self::ANNC_REDIS_KEY , max(0, min(15, myself()->_getNowTime() - $data['end_time'])) * 1000);
}
}
myself()->_rspData($data);

View File

@ -130,7 +130,6 @@ class Nft extends BaseModel
array_push($nftList, $row);
}
);
error_log(json_encode($nftList));
return $nftList;
}

View File

@ -14,7 +14,6 @@ class PveGeminiMode {
public static function calcStar($meta, $score)
{
$strs = explode('|', $meta['score_reward']);
error_log(json_encode($strs));
for ($i = count($strs) - 1; $i >= 0; --$i) {
if ($score > $strs[$i]) {
return count($strs) - $i ;

View File

@ -43,7 +43,7 @@ class NoticeService extends BaseService {
$data = [
"Notice"=>[
"ChannelID"=>"world_room_1",//频道 IDapp 内唯一,字符串
"ChannelID"=>NOTICE_CHANNEL_ID,//频道 IDapp 内唯一,字符串
"NoticeType"=>1,//1 为跑马灯公告2 为聊天框公告3 为置顶公告,整数
"LoopType"=>1,// 公告循环类型1 为一次性公告2 为周期性公告,整数
"Title"=>"",// 公告标题,字符串