diff --git a/application/index/controller/wms/Chat.php b/application/index/controller/wms/Chat.php index a422512..d83e9eb 100644 --- a/application/index/controller/wms/Chat.php +++ b/application/index/controller/wms/Chat.php @@ -525,11 +525,11 @@ class Chat extends Frontend switch($this->SOURCE){ case "wx": $roominfo = $this->RoomsModel->where(["room_id"=>$fromid])->find(); - $roomtype = $roominfo['type']; + $roomtype = $roominfo['type'] ?? null; break; case "qiwe": $roominfo = $this->qiweRoomsModel->where(["room_id"=>$fromid])->find(); - $roomtype = $roominfo['type']; + $roomtype = $roominfo['type'] ?? null; Log::error("企微的查找群信息".json_encode($roominfo)); break; default: