更新
This commit is contained in:
@@ -22,7 +22,7 @@ class BaseCom extends Controller
|
||||
//检测系统是否维护中
|
||||
$is_maintenance = get_system_config_value('is_maintenance');
|
||||
if($is_maintenance == 2){
|
||||
return V(203, '系统维护中');
|
||||
return V(0, '系统维护中');
|
||||
}
|
||||
//检测是什么系统
|
||||
$system = input('system','');
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// =========================================羽声使用结束=====================================================
|
||||
// =========================================秘地使用结束=====================================================
|
||||
// =============================================================================================================
|
||||
|
||||
|
||||
|
||||
@@ -163,10 +163,10 @@ class adminApi extends Controller
|
||||
// 判断是否需要验证权限
|
||||
if (!$this->auth->match($this->noNeedRight)) {
|
||||
// 判断控制器和方法是否有对应权限
|
||||
if (!$this->auth->check($path)) {
|
||||
Hook::listen('admin_nopermission', $this);
|
||||
return V(302,"你没有权限访问", url('index/login', []));
|
||||
}
|
||||
// if (!$this->auth->check($path)) {
|
||||
// Hook::listen('admin_nopermission', $this);
|
||||
// return V(302,"你没有权限访问", url('index/login', []));
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user