Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
GMRouter
Project
Project
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
gengmeiios
GMRouter
Commits
0fa8a86c
Commit
0fa8a86c
authored
Jul 25, 2020
by
艾娇平
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
校验host是否有值
parent
f1746bc7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
GMRouter+gm.m
GMRouter/Classes/GMRouter+gm.m
+1
-1
No files found.
GMRouter/Classes/GMRouter+gm.m
View file @
0fa8a86c
...
...
@@ -191,7 +191,7 @@ static NSMutableDictionary *routeMap = nil;
//拦截所有的即将调转的url(value),如果不在白名单之中,让其使用GMThirdWebViewController加载.
NSString
*
valueHost
=
[[
NSURL
URLWithString
:
value
]
host
];
Class
cls
=
NSClassFromString
(
@"GMServerDomains"
);
if
(
[
cls
respondsToSelector
:
@selector
(
allowURLHost
:)])
{
if
(
valueHost
.
length
!=
0
&&
[
cls
respondsToSelector
:
@selector
(
allowURLHost
:)])
{
BOOL
isAllow
=
[
cls
performSelector
:
@selector
(
allowURLHost
:)
withObject
:
valueHost
];
if
(
!
isAllow
)
{
host
=
@"third_webview"
;
...
...
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