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