Commit d6b4f4f8 authored by m1991's avatar m1991

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

parent e4328078
...@@ -161,6 +161,9 @@ public class UploadServiceImpl implements UploadService { ...@@ -161,6 +161,9 @@ public class UploadServiceImpl implements UploadService {
*/ */
@Override @Override
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.,,。?“”@!#$%^&*()/*`~<>?/]+","");
//获取上传图片数量,打印在控制台 //获取上传图片数量,打印在控制台
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