소스 검색

下麦优化

lizhen_gitee 1 년 전
부모
커밋
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);
             }
         }