医生微信登录接口

master
heminjian502 2 years ago
parent 21329e21c3
commit 10f93cfd6b

@ -6,6 +6,9 @@ import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.springframework.util.AntPathMatcher;
import com.ruoyi.common.constant.Constants;
import com.ruoyi.common.core.text.StrFormatter;
@ -580,4 +583,14 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils
}
return sb.toString();
}
public static String replaceBlank(String str) {
String dest = "";
if (str!=null) {
Pattern p = Pattern.compile("\\s*|\t|\r|\n");
Matcher m = p.matcher(str);
dest = m.replaceAll("");
}
return dest;
}
}

@ -242,6 +242,7 @@ public class FileUploadUtils
public static String generateImage(String file, String uploadFilePath) {
// 解密
try {
file = StringUtils.replaceBlank(file);
// 图片分类路径+图片名+图片后缀
String imgClassPath = UUID.randomUUID().toString().concat(".jpg");
// 解密

Loading…
Cancel
Save