mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 10:18:42 +08:00 
			
		
		
		
	Merge branch 'master' of https://gitee.com/zhijiantianya/ruoyi-vue-pro into feature/1.8.0-uniapp
Conflicts: sql/optional/mall/mall.sql
This commit is contained in:
		| @@ -1,6 +1,7 @@ | ||||
| package cn.iocoder.yudao.framework.common.util.collection; | ||||
|  | ||||
| import cn.hutool.core.collection.CollectionUtil; | ||||
| import cn.hutool.core.collection.IterUtil; | ||||
| import cn.hutool.core.util.ArrayUtil; | ||||
|  | ||||
| import java.util.Collection; | ||||
| @@ -44,7 +45,7 @@ public class ArrayUtils { | ||||
|         if (CollectionUtil.isEmpty(from)) { | ||||
|             return (T[]) (new Object[0]); | ||||
|         } | ||||
|         return ArrayUtil.toArray(from, (Class<T>) CollectionUtil.getElementType(from.iterator())); | ||||
|         return ArrayUtil.toArray(from, (Class<T>) IterUtil.getElementType(from.iterator())); | ||||
|     } | ||||
|  | ||||
|     public static <T> T get(T[] array, int index) { | ||||
|   | ||||
| @@ -17,16 +17,15 @@ import java.util.regex.Pattern; | ||||
|  */ | ||||
| public class ValidationUtils { | ||||
|  | ||||
|     private static final Pattern PATTERN_MOBILE = Pattern.compile("^(?:(?:\\+|00)86)?1(?:(?:3[\\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\\d])|(?:9[189]))\\d{8}$"); | ||||
|  | ||||
|     private static final Pattern PATTERN_URL = Pattern.compile("^(https?|ftp|file)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"); | ||||
|  | ||||
|     private static final Pattern PATTERN_XML_NCNAME = Pattern.compile("[a-zA-Z_][\\-_.0-9_a-zA-Z$]*"); | ||||
|  | ||||
|     public static boolean isMobile(String mobile) { | ||||
|         if (StrUtil.length(mobile) != 11) { | ||||
|             return false; | ||||
|         } | ||||
|         // TODO 芋艿,后面完善手机校验 | ||||
|         return true; | ||||
|         return StringUtils.hasText(mobile) | ||||
|                 && PATTERN_MOBILE.matcher(mobile).matches(); | ||||
|     } | ||||
|  | ||||
|     public static boolean isURL(String url) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV