lizhen_gitee 1 год назад
Родитель
Сommit
98a5d975df
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      application/api/controller/Party.php

+ 2 - 2
application/api/controller/Party.php

@@ -2447,9 +2447,9 @@ class Party extends Api
         //轮询下麦
         $key = "party_seat_".$party_id;
         $seats = $this->redis->hGetAll($key);
-        foreach($seats as $seat_num => $seatuserid){
+        foreach($seats as $seatnum => $seatuserid){
             if($seatuserid == $userId){
-                $this->redis->HDel($key, $seat_num);
+                $this->redis->HDel($key, $seatnum);
             }
         }