From ff65b5659077f805725787d91867bb8b0470bb88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Mon, 26 Jan 2026 19:49:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=88=86=E5=B8=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/adminapi/controller/Lottery.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/application/adminapi/controller/Lottery.php b/application/adminapi/controller/Lottery.php index e2de5ef2..3afa10d9 100644 --- a/application/adminapi/controller/Lottery.php +++ b/application/adminapi/controller/Lottery.php @@ -66,10 +66,11 @@ class Lottery extends adminApi 'create_time' => time(), 'status' => 0 // 未发放 ]); - //清除缓存 - $this->redis->del('lottery:small_pool:round'); - $this->redis->del('lottery:small_pool:total_times'); - $this->redis->del('lottery:small_pool:total_gold'); + //修改开启下一轮 + $dd =$this->redis->get('lottery:small_pool:round'); + $this->redis->set('lottery:small_pool:round', $dd+1); + $this->redis->set('lottery:small_pool:total_times',0); + $this->redis->set('lottery:small_pool:total_gold',0); return V(1,"成功"); }