修改updateBot中开发者自己安装可私有
This commit is contained in:
parent
6c4bae7a87
commit
3901eb1ad0
|
@ -176,7 +176,8 @@ public class UserService extends AbstractUserBot implements IUserService {
|
|||
Bot bot = botMapper.selectById(botInputVO.getBotId());
|
||||
if(bot.getIsPublic()==1){
|
||||
List<InstallBot> installBots = installMapper.selectList(new QueryWrapper<InstallBot>()
|
||||
.eq("bot_id",bot.getId()));
|
||||
.eq("bot_id",bot.getId())
|
||||
.ne("installer_id",bot.getOwnerId()));
|
||||
if (installBots!=null && installBots.size()>0){
|
||||
throw new BotException("已有用户安装该Bot,不能将权限设置为私有");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue