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
cefe5579
Commit
cefe5579
authored
Mar 09, 2020
by
吴博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pdf默认值
parent
54dde52b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
CustomPlanBizImpl.java
...va/com/pcloud/book/custom/biz/impl/CustomPlanBizImpl.java
+4
-1
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/custom/biz/impl/CustomPlanBizImpl.java
View file @
cefe5579
...
@@ -95,7 +95,7 @@ public class CustomPlanBizImpl implements CustomPlanBiz {
...
@@ -95,7 +95,7 @@ public class CustomPlanBizImpl implements CustomPlanBiz {
private
void
fillCustomPlanInfo
(
CustomPlan
customPlan
)
{
private
void
fillCustomPlanInfo
(
CustomPlan
customPlan
)
{
Integer
planId
=
customPlan
.
getId
();
Integer
planId
=
customPlan
.
getId
();
customPlan
.
setPlanNumber
(
StringUtil
.
getByObj
(
100000
+
planId
));
customPlan
.
setPlanNumber
(
StringUtil
.
getByObj
(
100000
+
planId
));
String
h5Url
=
wechatLinkPrefix
+
"/personalCenter/madeProject?planId="
+
planId
;
String
h5Url
=
wechatLinkPrefix
+
"/personalCenter/madeProject?planId="
+
planId
+
"&preview=1"
;
String
previewQrcodeUrl
=
QrcodeUtils
.
create
(
UrlUtils
.
getShortUrl4Own
(
h5Url
));
String
previewQrcodeUrl
=
QrcodeUtils
.
create
(
UrlUtils
.
getShortUrl4Own
(
h5Url
));
customPlan
.
setH5Url
(
h5Url
);
customPlan
.
setH5Url
(
h5Url
);
customPlan
.
setPreviewQrcodeUrl
(
previewQrcodeUrl
);
customPlan
.
setPreviewQrcodeUrl
(
previewQrcodeUrl
);
...
@@ -170,6 +170,9 @@ public class CustomPlanBizImpl implements CustomPlanBiz {
...
@@ -170,6 +170,9 @@ public class CustomPlanBizImpl implements CustomPlanBiz {
LOGGER
.
info
(
"=========resultStr========End"
+
resultStr
);
LOGGER
.
info
(
"=========resultStr========End"
+
resultStr
);
Map
map
=
JSON
.
parseObject
(
resultStr
,
Map
.
class
);
Map
map
=
JSON
.
parseObject
(
resultStr
,
Map
.
class
);
String
pdfUrl
=
(
String
)
((
Map
)
map
.
get
(
"data"
)).
get
(
"url"
);
String
pdfUrl
=
(
String
)
((
Map
)
map
.
get
(
"data"
)).
get
(
"url"
);
if
(
StringUtil
.
isEmpty
(
pdfUrl
)){
pdfUrl
=
"https://oss.5rs.me/rays/img-generator/uPMprBxxHD.pdf"
;
}
LOGGER
.
info
(
"=========pdfUrl========"
+
pdfUrl
);
LOGGER
.
info
(
"=========pdfUrl========"
+
pdfUrl
);
if
(
pdfUrl
!=
null
)
{
if
(
pdfUrl
!=
null
)
{
CustomPlan
customPlan
=
new
CustomPlan
();
CustomPlan
customPlan
=
new
CustomPlan
();
...
...
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