Commit b3765080 authored by m1991's avatar m1991

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

parent 70c0ba18
......@@ -157,6 +157,7 @@ public class UploadServiceImpl implements UploadService {
*/
@Override
public Map imageUpload(MultipartFile[] files, String zxField, String inviteCode) {
String zxUrl = new String();
if (null == inviteCode || "".equals(inviteCode)) {
inviteCode = "0";
}
......@@ -167,7 +168,6 @@ public class UploadServiceImpl implements UploadService {
inviteCode = inviteCode.replace("\"", "").replace("\"", "");
//获取上传图片数量,打印在控制台
System.out.println("上传图片数量" + files.length);
String zxUrl = new String();
//创建集合
List<Map<String, Object>> root = new ArrayList<Map<String, Object>>();
String fileName1 = null;
......@@ -226,7 +226,7 @@ public class UploadServiceImpl implements UploadService {
* 生成当前时间戳
*/
Long zxDate = Long.valueOf(System.currentTimeMillis());
zxUrl=null;
shopZxMapper.zxadd(zxUrl, zxField, inviteCode, zxDate);
return result;
//用户只上传文字时
......
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