瀏覽代碼

抢礼物

lizhen_gitee 1 年之前
父節點
當前提交
1c8435205e
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      application/api/controller/Grabgift.php

+ 1 - 5
application/api/controller/Grabgift.php

@@ -135,10 +135,6 @@ class Grabgift extends Api
         //如果是最后一个,开奖
         if($count == $kai_count){
 
-            //此期已开奖
-            $this->redis->del('kge_grabgift_'.$grab_id);
-
-            //
             $rand_data_new = [];
             $rand_data = $this->redis->hGetAll('kge_grabgift_data_'.$grab_id);
             foreach($rand_data as $uid => $val){
@@ -182,7 +178,7 @@ class Grabgift extends Api
             //开奖了,用不到了
             $this->redis->del('kge_grabgift_num_'.$grab_id);
             $this->redis->del('kge_grabgift_data_'.$grab_id);
-
+            $this->redis->del('kge_grabgift_'.$grab_id);
         }
         Db::commit();