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
a90bb920
Commit
a90bb920
authored
May 31, 2022
by
李传峰
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/1007217' into 'release'
feat: [1007217] 智能背诵 See merge request rays/pcloud-book!1594
parents
6d9f9ef6
8eb4f3a1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ResourcePageBizImpl.java
...a/com/pcloud/book/group/biz/impl/ResourcePageBizImpl.java
+4
-4
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/ResourcePageBizImpl.java
View file @
a90bb920
...
...
@@ -2241,10 +2241,10 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
// 是不是rays链接
public
Boolean
isRaysLink
(
String
url
)
{
return
ReUtil
.
contains
(
"^(https|http
?)://weixin\\w+[.]"
,
url
)
||
ReUtil
.
contains
(
"^(https|http?)
://(app\\w*)[.]"
,
url
);
return
ReUtil
.
contains
(
"^(https|http
)?://weixin\\w+[.]"
,
url
)
||
ReUtil
.
contains
(
"^(https|http)?
://(app\\w*)[.]"
,
url
);
}
public
static
final
String
DOMAIN_REG
=
"^(https|http
?)
://([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6}(\\/)"
;
public
static
final
String
DOMAIN_REG
=
"^(https|http
)?
://([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6}(\\/)"
;
// 阿法迪单独特殊处理(临时方案)
public
String
aFaDiExchangeLinkDomain
(
String
url
,
String
domain
,
Boolean
isReplaceAccountId
)
{
...
...
@@ -2256,7 +2256,7 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
domain
+=
'/'
;
}
url
=
ReUtil
.
replaceAll
(
url
,
DOMAIN_REG
,
domain
);
return
isReplaceAccountId
?
url
.
replace
(
"/W(d\\*)/"
,
"/W${"
+
officialAccountId
+
"}/
"
)
:
url
;
return
isReplaceAccountId
?
url
.
replace
All
(
"/W(\\d+)/C"
,
"/W"
+
officialAccountId
+
"/C
"
)
:
url
;
}
// url处理
...
...
@@ -2269,7 +2269,7 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
}
url
=
ReUtil
.
replaceAll
(
url
,
DOMAIN_REG
,
domain
);
// OFFICIAL_ACCOUNT_ID 测试23, uat35515, 生产23
return
isReplaceAccountId
?
url
.
replace
(
"/W(d\\*)/"
,
"/W${"
+
getOffAccount
()+
"}/
"
)
:
url
;
return
isReplaceAccountId
?
url
.
replace
All
(
"/W(\\d+)/C"
,
"/W"
+
getOffAccount
()+
"/C
"
)
:
url
;
}
public
Long
getOffAccount
(){
...
...
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