禁止私聊添加对机器人/管理员/物联网设备的例外

This commit is contained in:
imhao183
2020-01-04 14:35:34 +08:00
committed by heavyrain.lee
parent 1dbf431e4d
commit 41d326d40f
3 changed files with 18 additions and 1 deletions
@@ -191,7 +191,7 @@ public class DatabaseStore {
}
sql += " and _type <> 2"; //can search normal user(0) and robot(1), can not search things
sql += " and _type <> 2"; //can search normal user(0) and robot(1) and admin(100), can not search things
if (searchType == SearchUserType_Name_Mobile || searchType == SearchUserType_Name || searchType == SearchUserType_Mobile) {
sql += " limit 1";