盲盒转盘优化-重构-调试
This commit is contained in:
@@ -526,7 +526,7 @@ class BlindBoxTurntableGiftDrawWorldNew extends Model
|
||||
* 获取缓存的巡乐会开启次数
|
||||
*/
|
||||
private function getCachedXlhPeriodsNum($type="get",$num=1) {
|
||||
$cacheKey = "pan_xlh_periods_num";
|
||||
$cacheKey = "xlh_periods_num";
|
||||
$xlh_periods_num = Cache::get($cacheKey) ?? 0;
|
||||
if($type=="set"){
|
||||
$xlh_periods_num = $xlh_periods_num + $num;
|
||||
|
||||
@@ -130,7 +130,7 @@ class RoomPan
|
||||
// db::name("vs_room")->where('id',$value['room_id'])->update([
|
||||
// 'xlh_periods_num' => 0
|
||||
// ]);
|
||||
Cache::set("pan_xlh_periods_num", 0, 0);
|
||||
Cache::set("xlh_periods_num", 0, 0);
|
||||
//推送礼物横幅
|
||||
$text = "本轮巡乐会已结束,请大家重新开始下一轮巡乐会";
|
||||
$push = new Push(0, $value['room_id']);
|
||||
|
||||
Reference in New Issue
Block a user