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
d0466236
Commit
d0466236
authored
Jan 25, 2021
by
艾娇平
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
校验传入的链接
parent
1413cdc3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
10 deletions
+14
-10
GMShareConstant.h
GMShareSDK/Classes/ShareSDK/GMShareConstant.h
+10
-10
GMShareSDK.m
GMShareSDK/Classes/ShareSDK/GMShareSDK.m
+4
-0
No files found.
GMShareSDK/Classes/ShareSDK/GMShareConstant.h
View file @
d0466236
...
...
@@ -24,15 +24,15 @@ extern NSString * const ShareVideoUrl;
// 获取分享平台渠道---埋点使用
static
inline
NSString
*
_getGMShareChannelByType
(
GMSharePlatform
platformType
)
{
if
(
platformType
&
GMSharePlatformQQFriend
)
return
@"qq"
;
if
(
platformType
&
GMSharePlatformQQSpace
)
return
@"qzone"
;
if
(
platformType
&
GMSharePlatformWechatSession
)
return
@"wechat"
;
if
(
platformType
&
GMSharePlatformWechatTimeline
)
return
@"wechatline"
;
if
(
platformType
&
GMSharePlatformWechatSessionSnapShot
)
return
@"wechat_snapshot"
;
if
(
platformType
&
GMSharePlatformWechatTimelineSnapShot
)
return
@"wechatline_snapshot"
;
if
(
platformType
&
GMSharePlatformWechatMiniProgram
)
return
@"xcx"
;
if
(
platformType
&
GMSharePlatformSinaWeibo
)
return
@"tsina"
;
if
(
platformType
&
GMSharePlatformDouyin
)
return
@"Douyin"
;
if
(
platformType
&
GMSharePlatformCopyLink
)
return
@"copy_url"
;
if
(
platformType
==
GMSharePlatformQQFriend
)
return
@"qq"
;
if
(
platformType
==
GMSharePlatformQQSpace
)
return
@"qzone"
;
if
(
platformType
==
GMSharePlatformWechatSession
)
return
@"wechat"
;
if
(
platformType
==
GMSharePlatformWechatTimeline
)
return
@"wechatline"
;
if
(
platformType
==
GMSharePlatformWechatSessionSnapShot
)
return
@"wechat_snapshot"
;
if
(
platformType
==
GMSharePlatformWechatTimelineSnapShot
)
return
@"wechatline_snapshot"
;
if
(
platformType
==
GMSharePlatformWechatMiniProgram
)
return
@"xcx"
;
if
(
platformType
==
GMSharePlatformSinaWeibo
)
return
@"tsina"
;
if
(
platformType
==
GMSharePlatformDouyin
)
return
@"Douyin"
;
if
(
platformType
==
GMSharePlatformCopyLink
)
return
@"copy_url"
;
return
@"Default"
;
}
GMShareSDK/Classes/ShareSDK/GMShareSDK.m
View file @
d0466236
...
...
@@ -476,7 +476,11 @@
NSString
*
description
=
parameters
[
ShareText
];
WXWebpageObject
*
ext
=
[
WXWebpageObject
object
];
if
([
url
isKindOfClass
:[
NSURL
class
]])
{
ext
.
webpageUrl
=
url
.
absoluteString
;
}
else
{
ext
.
webpageUrl
=
url
;
}
WXMediaMessage
*
message
=
[
WXMediaMessage
message
];
message
.
title
=
title
;
...
...
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