Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
D
data-server
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
licc
data-server
Commits
b3765080
Commit
b3765080
authored
Mar 22, 2021
by
m1991
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资讯模块——邀请码过滤特殊字符功能功能修复
parent
70c0ba18
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
UploadServiceImpl.java
...java/cn/wisenergy/service/app/impl/UploadServiceImpl.java
+2
-2
No files found.
wisenergy-service/src/main/java/cn/wisenergy/service/app/impl/UploadServiceImpl.java
View file @
b3765080
...
@@ -157,6 +157,7 @@ public class UploadServiceImpl implements UploadService {
...
@@ -157,6 +157,7 @@ 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
)
{
String
zxUrl
=
new
String
();
if
(
null
==
inviteCode
||
""
.
equals
(
inviteCode
))
{
if
(
null
==
inviteCode
||
""
.
equals
(
inviteCode
))
{
inviteCode
=
"0"
;
inviteCode
=
"0"
;
}
}
...
@@ -167,7 +168,6 @@ public class UploadServiceImpl implements UploadService {
...
@@ -167,7 +168,6 @@ public class UploadServiceImpl implements UploadService {
inviteCode
=
inviteCode
.
replace
(
"\""
,
""
).
replace
(
"\""
,
""
);
inviteCode
=
inviteCode
.
replace
(
"\""
,
""
).
replace
(
"\""
,
""
);
//获取上传图片数量,打印在控制台
//获取上传图片数量,打印在控制台
System
.
out
.
println
(
"上传图片数量"
+
files
.
length
);
System
.
out
.
println
(
"上传图片数量"
+
files
.
length
);
String
zxUrl
=
new
String
();
//创建集合
//创建集合
List
<
Map
<
String
,
Object
>>
root
=
new
ArrayList
<
Map
<
String
,
Object
>>();
List
<
Map
<
String
,
Object
>>
root
=
new
ArrayList
<
Map
<
String
,
Object
>>();
String
fileName1
=
null
;
String
fileName1
=
null
;
...
@@ -226,7 +226,7 @@ public class UploadServiceImpl implements UploadService {
...
@@ -226,7 +226,7 @@ public class UploadServiceImpl implements UploadService {
* 生成当前时间戳
* 生成当前时间戳
*/
*/
Long
zxDate
=
Long
.
valueOf
(
System
.
currentTimeMillis
());
Long
zxDate
=
Long
.
valueOf
(
System
.
currentTimeMillis
());
zxUrl
=
null
;
shopZxMapper
.
zxadd
(
zxUrl
,
zxField
,
inviteCode
,
zxDate
);
shopZxMapper
.
zxadd
(
zxUrl
,
zxField
,
inviteCode
,
zxDate
);
return
result
;
return
result
;
//用户只上传文字时
//用户只上传文字时
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment