房间小时榜相关

This commit is contained in:
2025-09-29 18:29:08 +08:00
parent 5279199cec
commit 0a2f05a928
7 changed files with 138 additions and 9 deletions

View File

@@ -73,6 +73,8 @@ class Push
//房间盘推送
//巡乐会推送开启进度推送
const PUSH_ROOM_PAN_XLH_PROGRESS = 8000;
//小时榜
const PUSH_ROOM_PAN_HOUR_PROGRESS = 8001;
public $user_id, $room_id, $topic_room, $topic_client;
@@ -299,6 +301,11 @@ class Push
$this->push(self::PUSH_ROOM_PAN_XLH_PROGRESS, $topic, $data);
}
//小时榜推送
public function hourRanking($data){
$topic = 'qx_hour_ranking';
$this->push(self::PUSH_ROOM_PAN_HOUR_PROGRESS, $topic, $data);
}

View File

@@ -73,6 +73,8 @@ class UserWallet extends Model
const TRANSFER_COIN = 25;
//好友转赠所得金币
const RECEIVE_COIN = 26;
//小时榜获得金币
const HOUR_RANK_COIN = 27;
//金币支出类型数组
@@ -135,7 +137,8 @@ class UserWallet extends Model
self::FINANCE_LEVEL_REWARD => '财富等级奖励金币领取',
self::DELETE_RELATION_COIN => '删除关系扣金币',
self::TRANSFER_COIN => '赠送好友金币',
self::RECEIVE_COIN => '好友转赠所得金币'
self::RECEIVE_COIN => '好友转赠所得金币',
self::HOUR_RANK_COIN => '小时榜获得金币'
];
return $status[$type] ?? '';
}