Commit 35b46755 by pidan

修复cid绑定的逻辑

parent 2012201b
...@@ -71,7 +71,7 @@ typedef NS_ENUM(NSInteger, FFOutsideJumpAPPType) { ...@@ -71,7 +71,7 @@ typedef NS_ENUM(NSInteger, FFOutsideJumpAPPType) {
[FUSTalkingData fus_setExceptionReportEnabled:YES]; [FUSTalkingData fus_setExceptionReportEnabled:YES];
}); });
[self checkPasteboard]; // [self checkPasteboard];
// 获取域名 // 获取域名
[FUSAPIDNSManager fus_checkCurrentDNSAddress]; [FUSAPIDNSManager fus_checkCurrentDNSAddress];
...@@ -621,30 +621,4 @@ typedef NS_ENUM(NSInteger, FFOutsideJumpAPPType) { ...@@ -621,30 +621,4 @@ typedef NS_ENUM(NSInteger, FFOutsideJumpAPPType) {
} }
} }
- (void)checkPasteboard {
NSString *localIcid = [[NSUserDefaults standardUserDefaults] objectForKey:OPENINSTALL_ICID];
NSString *icid = nil;
if (![NSString isNull:localIcid] && ![localIcid isEqualToString:FUSConfig.sharedInstanced.appConfigs.appId]) {
icid = localIcid;
}else{
icid = FUSConfig.sharedInstanced.appConfigs.appId;
}
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
NSString *pastStr = pasteboard.string;
// 如果icid为空,或者icid为默认渠道,则要判断粘贴板
if (([NSString isNull:icid]
|| [icid isEqualToString:FUSConfig.sharedInstanced.appConfigs.appId])
&& [pastStr hasPrefix:FUSConfig.sharedInstanced.appConfigs.appId]) {
icid = pastStr;
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
pasteboard.string = @"";
}
[[NSUserDefaults standardUserDefaults] setObject:icid forKey:OPENINSTALL_ICID];
[FUSHttpHelper postRequestBinaryWithUrl:FUSCommonURLs.fus_URL_IDFA params:nil success:nil failure:nil];
}
@end @end
...@@ -604,7 +604,15 @@ ...@@ -604,7 +604,15 @@
[[FUSKeyboardShowHelper sharedInstance] star]; [[FUSKeyboardShowHelper sharedInstance] star];
dispatch_async(dispatch_get_main_queue(), ^{ dispatch_async(dispatch_get_main_queue(), ^{
[[FUSAutoBindHelper shared] fus_loadAutoBindDatas:^{}];
NSTimer *timeout = [NSTimer scheduledTimerWithTimeInterval:10 repeats:NO block:^(NSTimer * _Nonnull timer) {
[FUSHttpHelper postRequestBinaryWithUrl:FUSCommonURLs.fus_URL_IDFA params:nil success:nil failure:nil];
}];
[[FUSAutoBindHelper shared] fus_loadAutoBindDatas:^{
[timeout invalidate];
[FUSHttpHelper postRequestBinaryWithUrl:FUSCommonURLs.fus_URL_IDFA params:nil success:nil failure:nil];
}];
}); });
// 给语言类传参进是否是cn模式 // 给语言类传参进是否是cn模式
......
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 sign in to comment