Commit 77d742b766ef509848726b386f280e64465371a3

Authored by zhangxiaowen
1 parent 02d3eb1c

no message

CNLiveScioLive/AppDelegate.m
... ... @@ -45,7 +45,7 @@
45 45 //分享
46 46 [MobClick startWithAppkey:uMengKey reportPolicy:BATCH channelId:nil];
47 47 [MobClick setLogEnabled:NO];
48   -// [self regiestShareSDK];
  48 +
49 49 [[TemplateShareManager shareSingleton] shareConfig];
50 50  
51 51 //语言
... ... @@ -193,55 +193,6 @@
193 193 // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
194 194 }
195 195  
196   -#pragma mark - ShareSDK 注册SDK
197   -- (void)regiestShareSDK {
198   - [ShareSDK registerApp:@"134f952a9e004" activePlatforms:@[@(SSDKPlatformTypeSinaWeibo),
199   - @(SSDKPlatformSubTypeWechatSession),
200   - @(SSDKPlatformSubTypeWechatTimeline),
201   - @(SSDKPlatformTypeQQ)]
202   - onImport:^(SSDKPlatformType platformType)
203   - {
204   - switch (platformType)
205   - {
206   - case SSDKPlatformTypeWechat:
207   - [ShareSDKConnector connectWeChat:[WXApi class]];
208   - break;
209   - case SSDKPlatformTypeQQ:
210   - [ShareSDKConnector connectQQ:[QQApiInterface class] tencentOAuthClass:[TencentOAuth class]];
211   - break;
212   - case SSDKPlatformTypeSinaWeibo:
213   - [ShareSDKConnector connectWeibo:[WeiboSDK class]];
214   - break;
215   - default:
216   - break;
217   - }
218   - }
219   - onConfiguration:^(SSDKPlatformType platformType, NSMutableDictionary *appInfo)
220   - {
221   -
222   - switch (platformType)
223   - {
224   - case SSDKPlatformTypeSinaWeibo:
225   - //设置新浪微博应用信息,其中authType设置为使用SSO+Web形式授权
226   - [appInfo SSDKSetupSinaWeiboByAppKey:@"604714517"
227   - appSecret:@"542573f3d166742a230634d5c2576157"
228   - redirectUri:@"https://api.weibo.com/oauth2/default.html"
229   - authType:SSDKAuthTypeBoth];
230   - break;
231   - case SSDKPlatformTypeWechat:
232   - [appInfo SSDKSetupWeChatByAppId:@"wx1eb184b8425c2503"
233   - appSecret:@"4d250e1ef3b7f5f1bc3579237fd4ee62"];
234   - break;
235   - case SSDKPlatformTypeQQ:
236   - [appInfo SSDKSetupQQByAppId:@"1105424006"
237   - appKey:@"EneqtYjiKSswk05g"
238   - authType:SSDKAuthTypeBoth];
239   - break;
240   - default:
241   - break;
242   - }
243   - }];
244   -}
245 196 #pragma mark - 推送
246 197 - (void)registerNotification:(NSDictionary *)launchOptions{
247 198 [[XGPush defaultManager] setEnableDebug:YES];
... ...
CNLiveScioLive/Pages/Tools/ShareTool/TemplateShareManager.m
... ... @@ -24,6 +24,17 @@ static TemplateShareManager *shareManaager = nil;
24 24 #pragma mark 注册友盟分享以及配置信息
25 25 - (void)shareConfig
26 26 {
  27 +// [ShareSDK registPlatforms:^(SSDKRegister *platformsRegister) {
  28 +// //QQ
  29 +// [platformsRegister setupQQWithAppId:@"1105424006" appkey:@"EneqtYjiKSswk05g"];
  30 +//
  31 +// //微信
  32 +// [platformsRegister setupWeChatWithAppId:@"wx1eb184b8425c2503" appSecret:@"4d250e1ef3b7f5f1bc3579237fd4ee62"];
  33 +//
  34 +// //新浪
  35 +// [platformsRegister setupSinaWeiboWithAppkey:@"604714517" appSecret:@"542573f3d166742a230634d5c2576157" redirectUrl:@"https://api.weibo.com/oauth2/default.html"];
  36 +//
  37 +// }];
27 38 [ShareSDK registerApp:@"134f952a9e004" activePlatforms:@[@(SSDKPlatformTypeSinaWeibo),
28 39 @(SSDKPlatformSubTypeWechatSession),
29 40 @(SSDKPlatformSubTypeWechatTimeline),
... ...