Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
GMShareSDK
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
GMShareSDK
Commits
1cebc892
Commit
1cebc892
authored
Apr 27, 2020
by
汪洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改上一个 commit 遗留的 bug
parent
a3f9d994
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
GMShareView.m
GMShareSDK/Classes/Share/GMShareView.m
+4
-4
No files found.
GMShareSDK/Classes/Share/GMShareView.m
View file @
1cebc892
...
...
@@ -538,7 +538,7 @@ static NSString *shareCellIdentifier = @"shareCellIdentifier";
if
([
self
.
delegate
isKindOfClass
:[
UIResponder
class
]])
{
NSAssert
([
self
.
shareUrl
isNonEmpty
],
@"shareView.shareUrl 不应该为空"
);
UIResponder
*
phobosView
=
(
UIResponder
*
)
self
.
delegate
;
NSString
*
businessId
=
Safe
Value
(
phobosView
.
businessId
);
NSString
*
businessId
=
Safe
String
(
phobosView
.
businessId
);
if
([
self
.
delegate
respondsToSelector
:
@selector
(
shareViewNeedBusinessId
)])
{
businessId
=
[
self
.
delegate
shareViewNeedBusinessId
];
}
...
...
@@ -546,7 +546,7 @@ static NSString *shareCellIdentifier = @"shareCellIdentifier";
// 配合使用主项目中的“synchronizePVData”可以同步埋点通用参数
businessId
=
self
.
businessId
;
}
NSString
*
pageName
=
Safe
Value
(
phobosView
.
businessId
);
NSString
*
pageName
=
Safe
String
(
phobosView
.
pageName
);
if
(
!
[
pageName
isNonEmpty
])
{
// 配合使用主项目中的“synchronizePVData”可以同步埋点通用参数
pageName
=
self
.
pageName
;
...
...
@@ -563,7 +563,7 @@ static NSString *shareCellIdentifier = @"shareCellIdentifier";
// 这种方式过于死板,可能导致拿不到不如重构成
if
([
self
.
delegate
isKindOfClass
:[
UIResponder
class
]])
{
UIResponder
*
phobosView
=
(
UIResponder
*
)
self
.
delegate
;
NSString
*
businessId
=
Safe
Value
(
phobosView
.
businessId
);
NSString
*
businessId
=
Safe
String
(
phobosView
.
businessId
);
if
([
self
.
delegate
respondsToSelector
:
@selector
(
shareViewNeedBusinessId
)])
{
businessId
=
[
self
.
delegate
shareViewNeedBusinessId
];
}
...
...
@@ -571,7 +571,7 @@ static NSString *shareCellIdentifier = @"shareCellIdentifier";
// 配合使用主项目中的“synchronizePVData”可以同步埋点通用参数
businessId
=
self
.
businessId
;
}
NSString
*
pageName
=
Safe
Value
(
phobosView
.
businessId
);
NSString
*
pageName
=
Safe
String
(
phobosView
.
pageName
);
if
(
!
[
pageName
isNonEmpty
])
{
// 配合使用主项目中的“synchronizePVData”可以同步埋点通用参数
pageName
=
self
.
pageName
;
...
...
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