Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
48b30fd0
Commit
48b30fd0
authored
Jan 20, 2025
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传文件
parent
a6fa0b31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/qiandao/QdUserSignInController.java
...va/com/wwdz/ch/wx/web/qiandao/QdUserSignInController.java
+6
-6
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/qiandao/QdUserSignInController.java
View file @
48b30fd0
...
@@ -66,15 +66,15 @@ public class QdUserSignInController {
...
@@ -66,15 +66,15 @@ public class QdUserSignInController {
}
else
{
}
else
{
targetInput
=
file
.
getInputStream
();
targetInput
=
file
.
getInputStream
();
}
}
String
url
=
storageService
.
store
(
targetInput
,
file
.
getSize
(),
file
.
getContentType
(),
originalFilename
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"url"
,
url
);
logger
.
info
(
"【请求结束】乾岛上传文件,响应结果:{}"
,
JSONObject
.
toJSONString
(
map
));
return
Result
.
success
(
map
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
logger
.
error
(
"get image size failed : "
,
e
);
logger
.
error
(
"get image size failed : "
,
e
);
}
}
String
url
=
storageService
.
store
(
targetInput
,
file
.
getSize
(),
file
.
getContentType
(),
originalFilename
);
return
Result
.
failed
();
Map
<
String
,
Object
>
data
=
new
HashMap
<>();
data
.
put
(
"url"
,
url
);
logger
.
info
(
"【请求结束】乾岛上传文件,响应结果:{}"
,
JSONObject
.
toJSONString
(
data
));
return
ResponseUtil
.
ok
(
data
);
}
}
...
...
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