From 2f6996b0d50a14b3a001f11976ada774a88e8728 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Wed, 31 Aug 2022 03:15:00 +0000 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=B8=B8=E5=AE=A2=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E4=B8=8B=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: java110 <928255095@qq.com> --- lib/java110/Java110Context.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/java110/Java110Context.js b/lib/java110/Java110Context.js index 7df21b4..d845ad9 100644 --- a/lib/java110/Java110Context.js +++ b/lib/java110/Java110Context.js @@ -146,6 +146,13 @@ const getCurrentCommunity = function() { const getRooms = function() { return new Promise((resolve, reject) => { + + if(!_owner.ownerId || _owner.ownerId == '-1'){ + resolve({ + data:{rooms:[]} + }); + } + getOwner(function(_owner) { request({ url: constant.url.queryRoomsByOwner,