lizhen_gitee hai 1 ano
pai
achega
98a5d975df
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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);
             }
         }