新需求-活动需求-盲盒转盘调通盘-调试
This commit is contained in:
@@ -250,7 +250,7 @@ class BlindBoxTurntableGift extends Model
|
|||||||
Cache::set("this_xlh_periods", $xlh_periods+1, 0);//修改巡乐会期数
|
Cache::set("this_xlh_periods", $xlh_periods+1, 0);//修改巡乐会期数
|
||||||
$pan_xlh = db::name('vs_room_pan_xlh')->where(['id'=>$pan_xlh_id])->find();
|
$pan_xlh = db::name('vs_room_pan_xlh')->where(['id'=>$pan_xlh_id])->find();
|
||||||
}else{
|
}else{
|
||||||
return ['code' => 0, 'msg' => '未开始', 'data' => null];
|
return ['code' => 0, 'msg' => '巡乐会已结束', 'data' => null];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$xlh_user_data= null;
|
$xlh_user_data= null;
|
||||||
@@ -309,7 +309,6 @@ class BlindBoxTurntableGift extends Model
|
|||||||
$where = [];
|
$where = [];
|
||||||
$where['a.gift_bag_id'] = 13;
|
$where['a.gift_bag_id'] = 13;
|
||||||
$where['a.user_id'] = $user_id;
|
$where['a.user_id'] = $user_id;
|
||||||
$where['a.room_id'] = $room_id;
|
|
||||||
$list = db('vs_gift_bag_receive_pan_log')
|
$list = db('vs_gift_bag_receive_pan_log')
|
||||||
->alias('a')
|
->alias('a')
|
||||||
->join('vs_room_pan_xlh b','b.id = a.parent_id','left')
|
->join('vs_room_pan_xlh b','b.id = a.parent_id','left')
|
||||||
@@ -331,7 +330,6 @@ class BlindBoxTurntableGift extends Model
|
|||||||
public function xlh_ranking($room_id,$page=1,$page_size=12){
|
public function xlh_ranking($room_id,$page=1,$page_size=12){
|
||||||
$where = [];
|
$where = [];
|
||||||
$where['a.gift_bag_id'] = 13;
|
$where['a.gift_bag_id'] = 13;
|
||||||
$where['a.room_id'] = $room_id;
|
|
||||||
$where['e.is_world_show'] = 1;
|
$where['e.is_world_show'] = 1;
|
||||||
$list = db('vs_gift_bag_receive_pan_log')
|
$list = db('vs_gift_bag_receive_pan_log')
|
||||||
->alias('a')
|
->alias('a')
|
||||||
|
|||||||
@@ -174,6 +174,7 @@ class RoomPan
|
|||||||
echo "处理发放记录失败 \n";
|
echo "处理发放记录失败 \n";
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Cache::set("xlh_periods_num", 0, 0);
|
||||||
//推送
|
//推送
|
||||||
$FromUserInfo = db::name('user')->field('nickname,avatar')->where(['id'=>$value['user_id']])->find();
|
$FromUserInfo = db::name('user')->field('nickname,avatar')->where(['id'=>$value['user_id']])->find();
|
||||||
$gift_name = db::name('vs_gift')->where(['gid'=>$value['gift_id']])->value('gift_name');
|
$gift_name = db::name('vs_gift')->where(['gid'=>$value['gift_id']])->value('gift_name');
|
||||||
|
|||||||
Reference in New Issue
Block a user