Commit 6268180b authored by fengchao's avatar fengchao
Browse files

fix(code):兼容分享。

parent 5742e61f
......@@ -266,7 +266,7 @@ extern "C" {
[sdk pay:payInfo];
}
void _StartShare(int shareType, const char* jsonInfo) {
void _StartShare(int platformType, int shareType, const char* jsonInfo) {
NSLog(@"🍎 调用SDK分享");
AccessCoreSdk *sdk = [AccessCoreSdk shareAccessCoreSdkManage];
......@@ -282,7 +282,20 @@ extern "C" {
shareInfo.imagePath = [NSString stringWithFormat:@"%@", jsonDict[@"picPath"]];
shareInfo.linkPath = [NSString stringWithFormat:@"%@", jsonDict[@"shareUrl"]];
[sdk shareType:(THREE_SHARE_TYPE)shareType shareObject:shareInfo];
switch (shareType) {
case 1:
[sdk shareType:ACCESS_SCENESESSION shareObject:shareInfo];
break;
case 2:
[sdk shareType:ACCESS_SCENETIMELINE shareObject:shareInfo];
break;
case 4:
[sdk shareType:ACCESS_SCENEQQTOSESSION shareObject:shareInfo];
break;
case 7:
[sdk shareType:ACCESS_SCENEQQTOQZONE shareObject:shareInfo];
break;
}
}
void _AccessParticipate(int activityType, const char* activityData) {
......
......@@ -8,4 +8,5 @@ public enum SharePlatformType
FACEBOOK = 5, //facebook
SYSTEM = 6, //Native
QZONE = 7 //QQ空间
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment