Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
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
徐少华
midjourney-proxy
Commits
d2b21c0d
Commit
d2b21c0d
authored
Dec 11, 2018
by
田超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify path
parent
dcf2bcb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
PictureUtil.java
...on/src/main/java/com/pcloud/common/utils/PictureUtil.java
+1
-1
No files found.
pcloud-common/src/main/java/com/pcloud/common/utils/PictureUtil.java
View file @
d2b21c0d
...
@@ -213,7 +213,7 @@ public class PictureUtil {
...
@@ -213,7 +213,7 @@ public class PictureUtil {
header
.
put
(
"Content-Type"
,
"application/json"
);
header
.
put
(
"Content-Type"
,
"application/json"
);
Map
<
String
,
String
>
param
=
new
HashMap
<>();
Map
<
String
,
String
>
param
=
new
HashMap
<>();
param
.
put
(
"htmlCode"
,
html
);
param
.
put
(
"htmlCode"
,
html
);
String
postResult
=
HttpKit
.
post
(
"http://192.168.
92.111:8214
/transcode/htm2img/jpg"
,
JSON
.
toJSONString
(
param
));
String
postResult
=
HttpKit
.
post
(
"http://192.168.
1.7:8216
/transcode/htm2img/jpg"
,
JSON
.
toJSONString
(
param
));
Map
map
=
JSONUtils
.
jsonToMap
(
postResult
,
String
.
class
,
String
.
class
);
Map
map
=
JSONUtils
.
jsonToMap
(
postResult
,
String
.
class
,
String
.
class
);
String
pic
=
(
String
)
map
.
get
(
"data"
);
String
pic
=
(
String
)
map
.
get
(
"data"
);
BufferedImage
bookPicImage
=
ImageIO
.
read
(
new
URL
(
pic
));
BufferedImage
bookPicImage
=
ImageIO
.
read
(
new
URL
(
pic
));
...
...
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