|
@@ -161,35 +161,65 @@
|
|
|
couldphoneSysInfoModel *model = [[couldphoneSysInfoModel alloc] initWithDictionary:dataDict error:nil];
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:getCouldPhoneSysInfoNotification object:model];
|
|
|
|
|
|
- NSString * predatestr = [HWDataManager getObjectWithKey:Const_did_show_image_version_date];
|
|
|
-
|
|
|
- NSString *datestr = [iTools getNowDateString];
|
|
|
-
|
|
|
- if(predatestr && [predatestr isEqualToString:datestr]){
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- NSString *hostImgVer = model.data.data.hostImgVer;
|
|
|
+// NSString * predatestr = [HWDataManager getObjectWithKey:Const_did_show_image_version_date];
|
|
|
+//
|
|
|
+// NSString *datestr = [iTools getNowDateString];
|
|
|
+//
|
|
|
+// if(predatestr && [predatestr isEqualToString:datestr]){
|
|
|
+// return;
|
|
|
+// }
|
|
|
|
|
|
- if (!hostImgVer || hostImgVer.length < 3) {
|
|
|
+// NSString *hostImgVer = model.data.data.hostImgVer;
|
|
|
+// NSString *MyNewVersion = model.data.data.MyNewVersion;
|
|
|
+ NSString *hostImgVer = @"1.2.3";
|
|
|
+ NSString *MyNewVersion = @"1.3.0";
|
|
|
+ //判断当前版本号 待更新版本
|
|
|
+ if (!hostImgVer || hostImgVer.length < 3
|
|
|
+ ||!MyNewVersion || MyNewVersion.length < 3) {
|
|
|
//[self showImageViewRenewTipViewFun];
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
NSArray *versionArr = [hostImgVer componentsSeparatedByString:@"."];
|
|
|
+ NSArray *MyNewVersionArr = [MyNewVersion componentsSeparatedByString:@"."];
|
|
|
+
|
|
|
+ NSInteger versionArrCount = versionArr.count;
|
|
|
+ NSInteger MyNewVersionArrCount = MyNewVersionArr.count;
|
|
|
+ NSInteger maxCount = versionArrCount < MyNewVersionArrCount ? versionArrCount:MyNewVersionArrCount;
|
|
|
+
|
|
|
+ BOOL isNeedShowType = NO;
|
|
|
+ //判断是否要更新镜像框
|
|
|
+ if(maxCount > 0){
|
|
|
+ for (int i=0; i<maxCount; i++) {
|
|
|
+ NSString * numberStr1 = versionArr[i];
|
|
|
+ NSString * numberStr2 = MyNewVersionArr[i];
|
|
|
+
|
|
|
+ if(numberStr2.intValue > numberStr1.intValue){
|
|
|
+ isNeedShowType =YES;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ if(isNeedShowType){
|
|
|
+ [self showImageViewRenewTipViewFun];
|
|
|
+ }
|
|
|
|
|
|
+ //是否禁用文件传输 (1.3以及以上的镜像可以使用文件传输)
|
|
|
if(versionArr.count >= 2)
|
|
|
{
|
|
|
NSString * oneStr = versionArr[0];
|
|
|
NSString * twoStr = versionArr[1];
|
|
|
-
|
|
|
- if(oneStr.integerValue >=1 && twoStr.integerValue >=2){
|
|
|
- return;
|
|
|
+
|
|
|
+ if(oneStr.integerValue <=1 && twoStr.integerValue <=2){//禁用
|
|
|
+ ksharedAppDelegate.DisabledFileTransferType = YES;
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ ksharedAppDelegate.DisabledFileTransferType = NO;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- [self showImageViewRenewTipViewFun];
|
|
|
}
|
|
|
|
|
|
- (void)getCouldPhoneTvStatusResponseFun:(NSDictionary *)dataDict
|