Commit 0cf20e24 authored by IOS-张 博's avatar IOS-张 博

修改apple绑定逻辑和埋点逻辑

parent 90db7a01
...@@ -163,7 +163,7 @@ ...@@ -163,7 +163,7 @@
[infoDic setObject:IsStringNull(self.verifyCodeString) forKey:@"smsCode"]; [infoDic setObject:IsStringNull(self.verifyCodeString) forKey:@"smsCode"];
[infoDic setObject:IsStringNull(self.appleInfoModel.userID) forKey:@"appleUserId"]; [infoDic setObject:IsStringNull(self.appleInfoModel.userID) forKey:@"appleUserId"];
[infoDic setObject:IsStringNull(self.appleInfoModel.fullName) forKey:@"appleFullName"]; // [infoDic setObject:IsStringNull(self.appleInfoModel.fullName) forKey:@"appleFullName"];
[infoDic setObject:IsStringNull(self.appleInfoModel.identityToken) forKey:@"identityToken"]; [infoDic setObject:IsStringNull(self.appleInfoModel.identityToken) forKey:@"identityToken"];
[QGHUDManager showHud:nil]; [QGHUDManager showHud:nil];
......
...@@ -441,7 +441,7 @@ ...@@ -441,7 +441,7 @@
ASAuthorizationAppleIDCredential *credential = authorization.credential; ASAuthorizationAppleIDCredential *credential = authorization.credential;
//苹果用户唯一标识,同一开发者账号下的APP获取到是一样的 //苹果用户唯一标识,同一开发者账号下的APP获取到是一样的
NSString *userID = credential.user; NSString *userID = credential.user;
NSPersonNameComponents *fullName = credential.fullName; // NSPersonNameComponents *fullName = credential.fullName;
//验证数据,传给后台 //验证数据,传给后台
NSString *authorizationCode = [[NSString alloc] initWithData:credential.authorizationCode encoding:NSUTF8StringEncoding]; NSString *authorizationCode = [[NSString alloc] initWithData:credential.authorizationCode encoding:NSUTF8StringEncoding];
NSString *identityToken = [[NSString alloc] initWithData:credential.identityToken encoding:NSUTF8StringEncoding]; NSString *identityToken = [[NSString alloc] initWithData:credential.identityToken encoding:NSUTF8StringEncoding];
...@@ -452,7 +452,6 @@ ...@@ -452,7 +452,6 @@
// NSLog(@"identityToken: %@", identityToken); // NSLog(@"identityToken: %@", identityToken);
self.appleInfoModel = [[QGAppleInfoModel alloc] init]; self.appleInfoModel = [[QGAppleInfoModel alloc] init];
self.appleInfoModel.userID = userID; self.appleInfoModel.userID = userID;
self.appleInfoModel.fullName = [NSString stringWithFormat:@"%@",fullName];
self.appleInfoModel.authorizationCode = authorizationCode; self.appleInfoModel.authorizationCode = authorizationCode;
self.appleInfoModel.identityToken = identityToken; self.appleInfoModel.identityToken = identityToken;
[self checkAppleBinding]; [self checkAppleBinding];
......
...@@ -111,14 +111,10 @@ ...@@ -111,14 +111,10 @@
- (void)searchButtonClick - (void)searchButtonClick
{ {
//神策埋点 //神策埋点
QGAppCoreModelClickEvent * clickEvent = [QGAppCoreModelClickEvent acmcEventWithPage:@"智能搜索" path:@"智能搜索" name:@"搜索" detail_name:nil acmc_model_other:self.pasteStr]; QGAppCoreModelClickEvent * clickEvent = [QGAppCoreModelClickEvent acmcEventWithPage:@"智能搜索" path:@"智能搜索" name:@"搜索" detail_name:nil acmc_model_other:self.pasteStr];
[QGAnalyticsService analyticsTrackWithEvent:clickEvent]; [QGAnalyticsService analyticsTrackWithEvent:clickEvent];
QGAppCoreModelClickEvent * searchResultEvent = [QGAppCoreModelClickEvent acmcEventWithPage:@"搜索页" path:@"搜索栏" name:@"搜索栏" detail_name:nil acmc_model_other:self.pasteStr];
[QGAnalyticsService analyticsTrackWithEvent:searchResultEvent];
if (self.searchBlock) { if (self.searchBlock) {
self.searchBlock(); self.searchBlock();
} }
......
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