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
e026e17d
Commit
e026e17d
authored
Sep 10, 2019
by
朱亚洁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
猜谜语链接域名
parent
71ca6064
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
22 deletions
+2
-22
RiddleRecordBizImpl.java
.../com/pcloud/book/riddle/biz/impl/RiddleRecordBizImpl.java
+2
-22
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/riddle/biz/impl/RiddleRecordBizImpl.java
View file @
e026e17d
...
...
@@ -65,8 +65,6 @@ public class RiddleRecordBizImpl implements RiddleRecordBiz {
@Value
(
"${wechat.group.link.prefix}"
)
private
String
wechatGroupLinkPrefix
;
@Value
(
"${system.env}"
)
private
String
envStr
;
@Autowired
private
RiddleDao
riddleDao
;
@Autowired
...
...
@@ -523,33 +521,15 @@ public class RiddleRecordBizImpl implements RiddleRecordBiz {
public
void
sendCouponLink
(
String
wxId
,
String
wxGroupId
,
String
ip
)
{
try
{
Thread
.
sleep
(
1000
);
}
catch
(
InterruptedException
e
)
{
}
catch
(
InterruptedException
e
)
{
logger
.
error
(
"线程休眠失败"
);
}
String
link
=
"https://wechat666."
+
getDomain
(
envStr
)
+
"/groupGuessing/guessing?wxGroupId="
+
wxGroupId
;
String
link
=
wechatGroupLinkPrefix
+
"/groupGuessing/guessing?wxGroupId="
+
wxGroupId
;
link
=
UrlUtils
.
getShortUrl4Own
(
wechatGroupLinkPrefix
+
"/link?url="
+
URLEncoder
.
encode
(
link
));
String
content
=
"优惠券领取链接(@所有人均可领取哦):\n"
+
link
;
sendWeixinTextMessage
(
wxId
,
wxGroupId
,
content
,
ip
,
null
);
}
private
String
getDomain
(
String
envStr
)
{
String
domain
=
"5rs.me"
;
switch
(
envStr
)
{
case
"dev"
:
domain
=
"chubanyun.me"
;
break
;
case
"test"
:
domain
=
"raysgo.com"
;
break
;
case
"uat"
:
domain
=
"raysyun.com"
;
break
;
case
"pro"
:
domain
=
"5rs.me"
;
break
;
}
return
domain
;
}
/**
* 发送成绩单并结束游戏
* @param wxId
...
...
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