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
791182bb
Commit
791182bb
authored
Nov 26, 2021
by
田超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/1006021' into 'master'
feat:[1006021]域名合并 See merge request rays/pcloud-book!1463
parents
9192443b
f267b98a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
60 deletions
+10
-60
ResourcePageBizImpl.java
...a/com/pcloud/book/group/biz/impl/ResourcePageBizImpl.java
+1
-2
SendWeixinRequestTools.java
...a/com/pcloud/book/group/tools/SendWeixinRequestTools.java
+3
-24
TaskSubscribeBizImpl.java
...cloud/book/timecontrol/biz/impl/TaskSubscribeBizImpl.java
+0
-25
WeixinClockBizImpl.java
.../pcloud/book/weixinclock/biz/impl/WeixinClockBizImpl.java
+6
-9
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/ResourcePageBizImpl.java
View file @
791182bb
...
@@ -3032,8 +3032,7 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
...
@@ -3032,8 +3032,7 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
AccountSettingDto
accountSettingDto
=
map
.
get
(
channelId
);
AccountSettingDto
accountSettingDto
=
map
.
get
(
channelId
);
if
(
null
!=
accountSettingDto
)
{
if
(
null
!=
accountSettingDto
)
{
recommendServeVO
.
setAccountSettingId
(
accountSettingDto
.
getAccountSettingId
());
recommendServeVO
.
setAccountSettingId
(
accountSettingDto
.
getAccountSettingId
());
recommendServeVO
.
setAppDomain
(
"app"
+
(
accountSettingDto
.
getRandom
()
==
null
?
""
:
accountSettingDto
.
getRandom
())
recommendServeVO
.
setAppDomain
(
"weixin"
+
(
accountSettingDto
.
getRandom
()
==
null
?
accountSettingDto
.
getAccountSettingId
()
:
accountSettingDto
.
getRandom
())
+
"."
+
accountSettingDto
.
getFirstDomain
());
+
"."
+
accountSettingDto
.
getFirstDomain
());
recommendServeVO
.
setDomain
(
accountSettingDto
.
getDomain
());
recommendServeVO
.
setDomain
(
accountSettingDto
.
getDomain
());
recommendServeVO
.
setFirstDomain
(
accountSettingDto
.
getFirstDomain
());
recommendServeVO
.
setFirstDomain
(
accountSettingDto
.
getFirstDomain
());
recommendServeVO
.
setRandom
(
accountSettingDto
.
getRandom
());
recommendServeVO
.
setRandom
(
accountSettingDto
.
getRandom
());
...
...
pcloud-service-book/src/main/java/com/pcloud/book/group/tools/SendWeixinRequestTools.java
View file @
791182bb
...
@@ -15,11 +15,11 @@ import com.pcloud.book.keywords.dto.SendMessageDTO;
...
@@ -15,11 +15,11 @@ import com.pcloud.book.keywords.dto.SendMessageDTO;
import
com.pcloud.book.keywords.enums.ReplyTypeEnum
;
import
com.pcloud.book.keywords.enums.ReplyTypeEnum
;
import
com.pcloud.book.keywords.vo.ReplyMessageVO
;
import
com.pcloud.book.keywords.vo.ReplyMessageVO
;
import
com.pcloud.book.util.properties.BookProps
;
import
com.pcloud.book.util.properties.BookProps
;
import
com.pcloud.channelcenter.base.constants.ChannelConstants
;
import
com.pcloud.channelcenter.wechat.dto.AccountSettingDto
;
import
com.pcloud.channelcenter.wechat.dto.AccountSettingDto
;
import
com.pcloud.common.core.aspect.ParamLog
;
import
com.pcloud.common.core.aspect.ParamLog
;
import
com.pcloud.common.utils.BeanUtils
;
import
com.pcloud.common.utils.BeanUtils
;
import
com.pcloud.common.utils.ListUtils
;
import
com.pcloud.common.utils.ListUtils
;
import
com.pcloud.common.utils.ServeLinkUtils
;
import
com.pcloud.common.utils.cache.redis.JedisClusterUtils
;
import
com.pcloud.common.utils.cache.redis.JedisClusterUtils
;
import
com.pcloud.common.utils.httpclient.UrlUtils
;
import
com.pcloud.common.utils.httpclient.UrlUtils
;
import
com.pcloud.common.utils.string.StringUtil
;
import
com.pcloud.common.utils.string.StringUtil
;
...
@@ -250,29 +250,8 @@ public class SendWeixinRequestTools {
...
@@ -250,29 +250,8 @@ public class SendWeixinRequestTools {
LOGGER
.
error
(
"运营平台未配置公众号,url"
+
url
);
LOGGER
.
error
(
"运营平台未配置公众号,url"
+
url
);
return
url
;
return
url
;
}
}
String
protocol
=
accountSettingDto
.
getProtocol
();
return
ServeLinkUtils
.
splitUrl
(
url
,
accountSettingDto
.
getAccountSettingId
(),
accountSettingDto
.
getProtocol
(),
if
(
StringUtils
.
isEmpty
(
protocol
))
{
accountSettingDto
.
getDomain
(),
accountSettingDto
.
getFirstDomain
(),
accountSettingDto
.
getRandom
());
protocol
=
ChannelConstants
.
HTTP
;
}
String
resultUrl
=
""
;
if
(!
StringUtils
.
isEmpty
(
url
))
{
if
(
url
.
startsWith
(
"http"
))
{
return
url
;
}
if
(
url
.
startsWith
(
"*"
))
{
String
endUrl
=
url
.
substring
(
url
.
indexOf
(
"/"
));
if
(
accountSettingDto
.
getRandom
()
==
null
)
{
resultUrl
=
protocol
+
"app."
+
accountSettingDto
.
getFirstDomain
()
+
"/"
+
url
.
substring
(
1
,
url
.
indexOf
(
"/"
))
+
"/W"
+
accountSettingDto
.
getAccountSettingId
()
+
endUrl
;
}
else
{
resultUrl
=
protocol
+
"app"
+
accountSettingDto
.
getRandom
()
+
"."
+
accountSettingDto
.
getFirstDomain
()
+
"/"
+
url
.
substring
(
1
,
url
.
indexOf
(
"/"
))
+
"/W"
+
accountSettingDto
.
getAccountSettingId
()
+
endUrl
;
}
}
else
{
resultUrl
=
protocol
+
accountSettingDto
.
getDomain
()
+
"/W"
+
accountSettingDto
.
getAccountSettingId
()
+
url
;
}
}
return
resultUrl
;
}
}
@ParamLog
(
"群欢迎语中推送关键词信息"
)
@ParamLog
(
"群欢迎语中推送关键词信息"
)
...
...
pcloud-service-book/src/main/java/com/pcloud/book/timecontrol/biz/impl/TaskSubscribeBizImpl.java
View file @
791182bb
...
@@ -655,29 +655,4 @@ public class TaskSubscribeBizImpl implements TaskSubscribeBiz {
...
@@ -655,29 +655,4 @@ public class TaskSubscribeBizImpl implements TaskSubscribeBiz {
}
}
}
}
private
String
splitUrl
(
AccountSettingDto
accountSettingDto
,
String
url
)
{
String
protocol
=
accountSettingDto
.
getProtocol
();
if
(
StringUtils
.
isEmpty
(
protocol
))
{
protocol
=
ChannelConstants
.
HTTP
;
}
String
resultUrl
=
""
;
if
(!
StringUtils
.
isEmpty
(
url
))
{
if
(
url
.
startsWith
(
"http"
))
{
return
url
;
}
if
(
url
.
startsWith
(
"*"
))
{
String
endUrl
=
url
.
substring
(
url
.
indexOf
(
"/"
));
if
(
accountSettingDto
.
getRandom
()
==
null
)
{
resultUrl
=
protocol
+
"app."
+
accountSettingDto
.
getFirstDomain
()
+
"/"
+
url
.
substring
(
1
,
url
.
indexOf
(
"/"
))
+
"/W"
+
accountSettingDto
.
getAccountSettingId
()
+
endUrl
;
}
else
{
resultUrl
=
protocol
+
"app"
+
accountSettingDto
.
getRandom
()
+
"."
+
accountSettingDto
.
getFirstDomain
()
+
"/"
+
url
.
substring
(
1
,
url
.
indexOf
(
"/"
))
+
"/W"
+
accountSettingDto
.
getAccountSettingId
()
+
endUrl
;
}
}
else
{
resultUrl
=
protocol
+
accountSettingDto
.
getDomain
()
+
"/W"
+
accountSettingDto
.
getAccountSettingId
()
+
url
;
}
}
return
resultUrl
;
}
}
}
pcloud-service-book/src/main/java/com/pcloud/book/weixinclock/biz/impl/WeixinClockBizImpl.java
View file @
791182bb
...
@@ -509,19 +509,16 @@ public class WeixinClockBizImpl implements WeixinClockBiz {
...
@@ -509,19 +509,16 @@ public class WeixinClockBizImpl implements WeixinClockBiz {
if
(
StringUtils
.
isEmpty
(
protocol
))
{
if
(
StringUtils
.
isEmpty
(
protocol
))
{
protocol
=
ChannelConstants
.
HTTP
;
protocol
=
ChannelConstants
.
HTTP
;
}
}
if
(
accountSettingDto
.
getRandom
()
!=
null
)
{
Long
random
=
accountSettingDto
.
getRandom
();
sbu
.
append
(
protocol
).
append
(
"app"
).
append
(
accountSettingDto
.
getRandom
()).
append
(
"."
).
append
(
accountSettingDto
.
getFirstDomain
())
if
(
null
==
random
)
{
.
append
(
"/luck"
).
append
(
"/W"
).
append
(
accountSettingDto
.
getAccountSettingId
()).
append
(
"/C"
).
append
(
appDto
.
getChannelId
())
random
=
accountSettingDto
.
getAccountSettingId
();
.
append
(
"/A"
).
append
(
appDto
.
getAppId
())
}
.
append
(
"/luckPage?isPreview=1&adviserId="
).
append
(
appDto
.
getCreatedUser
()).
append
(
"&appType=="
).
append
(
appDto
.
getTypeCode
())
sbu
.
append
(
protocol
).
append
(
"weixin"
).
append
(
random
).
append
(
"."
).
append
(
accountSettingDto
.
getFirstDomain
())
.
append
(
"&origin=wxGroup"
);
}
else
{
sbu
.
append
(
protocol
).
append
(
"app."
).
append
(
accountSettingDto
.
getFirstDomain
())
.
append
(
"/luck"
).
append
(
"/W"
).
append
(
accountSettingDto
.
getAccountSettingId
()).
append
(
"/C"
).
append
(
appDto
.
getChannelId
())
.
append
(
"/luck"
).
append
(
"/W"
).
append
(
accountSettingDto
.
getAccountSettingId
()).
append
(
"/C"
).
append
(
appDto
.
getChannelId
())
.
append
(
"/A"
).
append
(
appDto
.
getAppId
())
.
append
(
"/A"
).
append
(
appDto
.
getAppId
())
.
append
(
"/luckPage?isPreview=1&adviserId="
).
append
(
appDto
.
getCreatedUser
()).
append
(
"&appType=="
).
append
(
appDto
.
getTypeCode
())
.
append
(
"/luckPage?isPreview=1&adviserId="
).
append
(
appDto
.
getCreatedUser
()).
append
(
"&appType=="
).
append
(
appDto
.
getTypeCode
())
.
append
(
"&origin=wxGroup"
);
.
append
(
"&origin=wxGroup"
);
}
LOGGER
.
info
(
"抽奖的跳转链接====="
+
sbu
.
toString
()
+
"================s"
);
LOGGER
.
info
(
"抽奖的跳转链接====="
+
sbu
.
toString
()
+
"================s"
);
return
UrlUtils
.
getShortUrl4Own
(
sbu
.
toString
());
return
UrlUtils
.
getShortUrl4Own
(
sbu
.
toString
());
}
}
...
...
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