盲盒转盘优化-重构-调试

This commit is contained in:
2025-10-28 18:12:41 +08:00
parent bbb3f85fee
commit 54efad0668
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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']);