限制外链地址必须以http(s)://开头

This commit is contained in:
RuoYi
2020-06-04 16:07:53 +08:00
committed by 疯狂的狮子li
parent 8fb3568978
commit 9685a051ae
3 changed files with 29 additions and 1 deletions

View File

@@ -12,6 +12,16 @@ public class Constants
*/
public static final String UTF8 = "UTF-8";
/**
* http请求
*/
public static final String HTTP = "http://";
/**
* https请求
*/
public static final String HTTPS = "https://";
/**
* 成功标记
*/
@@ -85,7 +95,7 @@ public class Constants
* 验证码 redis key
*/
public static final String CAPTCHA_CODE_KEY = "captcha_codes:";
/**
* 验证码有效期(分钟)
*/

View File

@@ -36,6 +36,12 @@ public class UserConstants
/** 是否为系统默认(是) */
public static final String YES = "Y";
/** 是否菜单外链(是) */
public static final String YES_FRAME = "0";
/** 是否菜单外链(否) */
public static final String NO_FRAME = "1";
/** 校验返回结果码 */
public final static String UNIQUE = "0";
public final static String NOT_UNIQUE = "1";