|
|
|
@ -140,7 +140,7 @@ public class MenuServiceImpl implements MenuService {
|
|
|
|
|
Menu menu = menuRepository.findById(resources.getId()).orElseGet(Menu::new);
|
|
|
|
|
ValidationUtil.isNull(menu.getId(),"Permission","id",resources.getId());
|
|
|
|
|
|
|
|
|
|
if(resources.getIFrame()){
|
|
|
|
|
if(Boolean.TRUE.equals(resources.getIFrame())){
|
|
|
|
|
String http = "http://", https = "https://";
|
|
|
|
|
if (!(resources.getPath().toLowerCase().startsWith(http)||resources.getPath().toLowerCase().startsWith(https))) {
|
|
|
|
|
throw new BadRequestException("外链必须以http://或者https://开头");
|
|
|
|
|