更新
This commit is contained in:
@@ -70,6 +70,14 @@ class Push
|
||||
//推送系统消息
|
||||
const PUSH_SYSTEM_MESSAGE = 7000;//推送系统消息
|
||||
|
||||
//房间盘推送
|
||||
//巡乐会推送开启进度推送
|
||||
const PUSH_ROOM_PAN_XLH_PROGRESS = 8000;
|
||||
//小时榜
|
||||
const PUSH_ROOM_PAN_HOUR_PROGRESS = 8001;
|
||||
//红包
|
||||
const PUSH_ROOM_PAN_RED_PROGRESS = 8002;
|
||||
|
||||
public $user_id, $room_id, $topic_room, $topic_client;
|
||||
|
||||
public function __construct($user_id = 0, $room_id = 0)
|
||||
@@ -269,12 +277,14 @@ class Push
|
||||
|
||||
|
||||
// =======================================================================================================
|
||||
// ========================================羽声使用开始=====================================================================
|
||||
// ========================================秘地使用开始=====================================================================
|
||||
|
||||
//横幅礼物通知
|
||||
public function giftBanner($gift_list)
|
||||
{
|
||||
$topic = 'qx_room_topic';
|
||||
//数组重组下标从0开始
|
||||
$gift_list = array_values($gift_list);
|
||||
$data = ['room_id' => $this->room_id, 'list' => $gift_list];
|
||||
$this->push(self::PUSH_GIFT_BANNER, $topic, $data);
|
||||
}
|
||||
@@ -287,10 +297,27 @@ class Push
|
||||
$this->push(self::PUSH_SYSTEM_MESSAGE, $topic, $data);
|
||||
}
|
||||
|
||||
//巡乐会推送
|
||||
public function xunlehui($data){
|
||||
$topic = 'qx_xunlehui';
|
||||
$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);
|
||||
}
|
||||
|
||||
//红包来了
|
||||
public function redpacketArrive($data){
|
||||
$topic = 'qx_redpacket_arrive';
|
||||
$this->push(self::PUSH_ROOM_PAN_RED_PROGRESS, $topic, $data);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// =========================================羽声使用结束=====================================================
|
||||
// =========================================秘地使用结束=====================================================
|
||||
// =============================================================================================================
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user