Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ShenghuoquanBusiness
Project
Project
Details
Activity
Releases
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
bp
ShenghuoquanBusiness
Commits
e40cef0d
Commit
e40cef0d
authored
Jul 10, 2021
by
yinjiacheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 图片服务-选择图片id错误 图片服务-上传压缩后的图片
parent
7427ee2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ImageService.kt
.../src/main/java/com/yidian/common/services/ImageService.kt
+2
-2
No files found.
CommonLib/Common/src/main/java/com/yidian/common/services/ImageService.kt
View file @
e40cef0d
...
@@ -125,7 +125,7 @@ class ImageService : ZapService() {
...
@@ -125,7 +125,7 @@ class ImageService : ZapService() {
result
.
forEach
{
result
.
forEach
{
picList
.
add
(
picList
.
add
(
SelectedImageBean
(
SelectedImageBean
(
result
[
0
]
.
id
.
toString
(),
it
.
id
.
toString
(),
Base64
.
encodeToString
(
FileInputStream
(
it
.
compressPath
).
readBytes
(),
Base64
.
DEFAULT
)
Base64
.
encodeToString
(
FileInputStream
(
it
.
compressPath
).
readBytes
(),
Base64
.
DEFAULT
)
)
)
)
)
...
@@ -196,7 +196,7 @@ class ImageService : ZapService() {
...
@@ -196,7 +196,7 @@ class ImageService : ZapService() {
}
}
}
}
uploadPic
?.
let
{
uploadPic
?.
let
{
val
file
=
File
(
it
.
real
Path
)
val
file
=
File
(
it
.
compress
Path
)
if
(!
file
.
exists
())
{
if
(!
file
.
exists
())
{
resolver
.
fail
(
CODE_FILE_NOT_EXIST
,
"file not exist"
,
"文件不存在"
)
resolver
.
fail
(
CODE_FILE_NOT_EXIST
,
"file not exist"
,
"文件不存在"
)
return
return
...
...
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