Commit a9c40e0c authored by m1991's avatar m1991

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

parent 6f3890e1
......@@ -124,9 +124,6 @@ public class UploadServiceImpl implements UploadService {
String zxName = file.getOriginalFilename();//文件原始名称
assert zxName != null;
String suffixName = zxName.substring(zxName.lastIndexOf("."));//从最后一个.开始截取。截取zxName的后缀名
if(suffixName.equals("-1")||(suffixName = zxName.substring(Integer.parseInt(suffixName + 1))).isEmpty()){
return null ;
}
String newzxName = time+suffixName; //文件新名称
//设置文件存储路径,可以存放在你想要指定的路径里面
String rootPath="/opt/upload/video/"; //上传图片存放位置
......
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