Commit 6f3890e1 authored by m1991's avatar m1991

资讯模块——邀请码过滤特殊字符功能功能修复

parent b678f7c3
...@@ -163,7 +163,8 @@ public class UploadServiceImpl implements UploadService { ...@@ -163,7 +163,8 @@ public class UploadServiceImpl implements UploadService {
public Map imageUpload(MultipartFile[] files, String zxField, String inviteCode) { public Map imageUpload(MultipartFile[] files, String zxField, String inviteCode) {
//正则去除特殊符号 //正则去除特殊符号
inviteCode.replaceAll("[^0-9a-zA-Z\u4e00-\u9fa5.,,。?“”@!#$%^&*()/*`~<>?/]+",""); //String a = inviteCode.replaceAll("\"(\\b[^\"]+|\\s+)?\"(\\b[^\"]+\\b)?\"([^\"]+\\b|\\s+)?\"","\"$1$2$3\"");
inviteCode = inviteCode.replace("\"","").replace("\"","");
//获取上传图片数量,打印在控制台 //获取上传图片数量,打印在控制台
System.out.println("上传图片数量" + files.length); System.out.println("上传图片数量" + files.length);
String zxUrl = new String(); String zxUrl = new String();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment