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
e9c308f0
Commit
e9c308f0
authored
5 years ago
by
乔金柱
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jql/push' into 'master'
push See merge request
!4
parents
558dc115
c0f5f471
master
ajp/route
houchaoxin/dev
zx/gmRouter
0.3.2
0.3.1
0.3.0
0.2.9
0.2.8
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.1
0.2.0
0.1.9
0.1.8
0.1.7
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
Podfile.lock
Example/Podfile.lock
+3
-3
GMRouter+gm.m
GMRouter/Classes/GMRouter+gm.m
+6
-4
No files found.
Example/Podfile.lock
View file @
e9c308f0
...
...
@@ -45,7 +45,7 @@ PODS:
- GMPhobos (1.3.5):
- GMCache
- GMKit
- GMRouter (0.1.
5
):
- GMRouter (0.1.
6
):
- GMPhobos
- MJExtension
- Masonry (1.1.0)
...
...
@@ -79,7 +79,7 @@ SPEC CHECKSUMS:
GMCache: b78d8e46db864405e91d226ce640cc80d966c611
GMKit: 239609b2a4ea4d36d34fc74f08210ad47e260bd3
GMPhobos: 1e2d68c456b69bf156276d7242877498107474db
GMRouter:
347439b99a04d744714992d439d70a7d0afa80e9
GMRouter:
82f574c5ef1183b0be1a4adbfbfbc6aee29b917b
Masonry: 678fab65091a9290e40e2832a55e7ab731aad201
MJExtension: 635f2c663dcb1bf76fa4b715b2570a5710aec545
SDWebImage: 7edb9c3ea661e77a66661f7f044de8c1b55d1120
...
...
@@ -88,4 +88,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: ea22114f5446c23313cc25de2cf84ff760e403e0
COCOAPODS: 1.9.
0
COCOAPODS: 1.9.
1
This diff is collapsed.
Click to expand it.
GMRouter/Classes/GMRouter+gm.m
View file @
e9c308f0
...
...
@@ -155,9 +155,9 @@ static NSMutableDictionary *routeMap = nil;
if
(
vc
!=
nil
&&
([
params
.
allKeys
containsObject
:
@"ispush"
]))
{
// 区分是否是推送,指定页面:日记本详情页、讨论帖、问答详情页、回答详情页
// 不支持third_webview和common_webview
vc
.
isPush
=
params
[
@"ispush"
];
}
else
if
(
vc
!=
nil
&&
[
params
[
@"url"
]
containsString
:
@"ispush=1"
])
{
// 推送的更美协议为conmon_webView的时候 添加ispush埋点参数
vc
.
isPush
=
@"1"
;
if
([
params
[
@"ispush"
]
isEqualToString
:
@"1"
])
{
[
vc
setSourceFromPushWithMessageId
:
params
[
@"message_id"
]];
}
}
}
...
...
@@ -172,7 +172,9 @@ static NSMutableDictionary *routeMap = nil;
while
([
value
rangeOfString
:
@"%"
].
length
!=
0
)
{
value
=
[
self
URLDecodedString
:
value
];
}
params
=
@{
@"url"
:
value
};
NSMutableDictionary
*
dict
=
[
NSMutableDictionary
dictionaryWithDictionary
:[
self
urlQueryToDictionary
:
value
]];
[
dict
setValue
:
value
forKey
:
@"url"
];
params
=
dict
;
}
else
{
params
=
[
self
urlQueryToDictionary
:
encodeUrlScheme
];
}
...
...
This diff is collapsed.
Click to expand it.
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