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
d289f5b9
Commit
d289f5b9
authored
Aug 26, 2019
by
杨涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 连接重新拼接
parent
bb5bb62a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
7 deletions
+18
-7
WeixinClockBizImpl.java
.../pcloud/book/weixinclock/biz/impl/WeixinClockBizImpl.java
+18
-7
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/weixinclock/biz/impl/WeixinClockBizImpl.java
View file @
d289f5b9
...
@@ -384,12 +384,23 @@ public class WeixinClockBizImpl implements WeixinClockBiz {
...
@@ -384,12 +384,23 @@ public class WeixinClockBizImpl implements WeixinClockBiz {
return
content
.
equalsIgnoreCase
(
aimKeyword
);
return
content
.
equalsIgnoreCase
(
aimKeyword
);
}
}
private
String
getClockRankUrl
(
String
wxGroupId
,
String
wxUserId
){
private
String
getClockRankUrl
(
Long
clockPrizeId
,
String
wxGroupId
,
String
wxUserId
){
String
clockRankUrl
=
wechatGroupLinkPrefix
StringBuffer
sbu
=
new
StringBuffer
();
.
concat
(
"/clock"
)
if
(
null
!=
clockPrizeId
&&
!
clockPrizeId
.
equals
(
0L
))
{
.
concat
(
"?wxGroupId="
).
concat
(
wxGroupId
)
AppDto
appDto
=
appConsr
.
getBaseById
(
clockPrizeId
);
.
concat
(
"&wxUserId="
).
concat
(
wxUserId
);
AccountSettingDto
accountSettingDto
=
qrcodeSceneConsr
.
getWechatInfo
(
appDto
.
getChannelId
());
return
UrlUtils
.
getShortUrl4Own
(
clockRankUrl
);
if
(
null
==
accountSettingDto
)
{
return
""
;
}
String
protocol
=
accountSettingDto
.
getProtocol
();
if
(
StringUtils
.
isEmpty
(
protocol
))
{
protocol
=
ChannelConstants
.
HTTP
;
}
sbu
.
append
(
protocol
).
append
(
accountSettingDto
.
getDomain
()).
append
(
"/W"
)
.
append
(
accountSettingDto
.
getAccountSettingId
()).
append
(
"/clock"
).
append
(
"?wxGroupId="
)
.
append
(
wxGroupId
).
append
(
"&wxUserId="
).
append
(
wxUserId
);
}
return
UrlUtils
.
getShortUrl4Own
(
sbu
.
toString
());
}
}
private
String
getClockRewardUrl
(
Long
clockPrizeId
){
private
String
getClockRewardUrl
(
Long
clockPrizeId
){
...
@@ -519,7 +530,7 @@ public class WeixinClockBizImpl implements WeixinClockBiz {
...
@@ -519,7 +530,7 @@ public class WeixinClockBizImpl implements WeixinClockBiz {
//获取我的新排名
//获取我的新排名
Integer
newOrder
=
weixinClockMemberDao
.
getMyNewOrder
(
wechatGroupId
,
userWxId
);
Integer
newOrder
=
weixinClockMemberDao
.
getMyNewOrder
(
wechatGroupId
,
userWxId
);
String
clockRewardUrl
=
getClockRewardUrl
(
weixinClockDto
.
getClockPrizeId
());
String
clockRewardUrl
=
getClockRewardUrl
(
weixinClockDto
.
getClockPrizeId
());
String
clockRankUrl
=
getClockRankUrl
(
wechatGroupId
,
userWxId
);
String
clockRankUrl
=
getClockRankUrl
(
we
ixinClockDto
.
getClockPrizeId
(),
we
chatGroupId
,
userWxId
);
Calendar
today
=
Calendar
.
getInstance
();
Calendar
today
=
Calendar
.
getInstance
();
int
month
=
today
.
get
(
Calendar
.
MONTH
)
+
1
;
int
month
=
today
.
get
(
Calendar
.
MONTH
)
+
1
;
int
dayOfMonth
=
today
.
get
(
Calendar
.
DAY_OF_MONTH
);
int
dayOfMonth
=
today
.
get
(
Calendar
.
DAY_OF_MONTH
);
...
...
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