|
@@ -1,6 +1,6 @@
|
|
|
//
|
|
|
// AboutViewController.m
|
|
|
-// VclustersGemini
|
|
|
+// //
|
|
|
//
|
|
|
// Created by APPLE on 2020/2/24.
|
|
|
// Copyright © 2020 APPLE. All rights reserved.
|
|
@@ -84,7 +84,7 @@
|
|
|
[appName setFont:[UIFont boldSystemFontOfSize:16.f]];
|
|
|
[appName setTextAlignment:(NSTextAlignmentCenter)];
|
|
|
[appName setText:[NSString stringWithFormat:@"%@",[iPhone appBundleName]]];
|
|
|
- //[appName setText:[NSString stringWithFormat:@"%@",@"Private- X"]];
|
|
|
+ //[appName setText:[NSString stringWithFormat:@"%@",@"GBOX"]];
|
|
|
|
|
|
[self.view addSubview:appName];
|
|
|
[appName mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
@@ -119,14 +119,14 @@
|
|
|
_gl_checkVersonBut.frame = CGRectMake(0,0,160.f,48.f);
|
|
|
_gl_checkVersonBut.startPoint = CGPointMake(0, 0.5);
|
|
|
_gl_checkVersonBut.endPoint = CGPointMake(1, 0.5);
|
|
|
- _gl_checkVersonBut.colors = @[(__bridge id)HW0CDEFDColor.CGColor, (__bridge id)HW058DFBColor.CGColor];
|
|
|
+ _gl_checkVersonBut.colors = @[(__bridge id)HWFFE10FColor.CGColor, (__bridge id)HWFFE411Color.CGColor];
|
|
|
_gl_checkVersonBut.locations = @[@(0), @(1.0f)];
|
|
|
|
|
|
[_checUpdatekBtn.layer addSublayer:_gl_checkVersonBut];
|
|
|
[_checUpdatekBtn addTarget:self action:@selector(versionCheckBtnClick) forControlEvents:(UIControlEventTouchUpInside)];
|
|
|
[_checUpdatekBtn setTitle:NSLocalizedString(@"app_update_check",nil) forState:(UIControlStateNormal)];
|
|
|
[_checUpdatekBtn setTitle:NSLocalizedString(@"app_update_last_version",nil) forState:(UIControlStateDisabled)];
|
|
|
- [_checUpdatekBtn setTitleColor:[UIColor whiteColor] forState:(UIControlStateNormal)];
|
|
|
+ [_checUpdatekBtn setTitleColor:[UIColor blackColor] forState:(UIControlStateNormal)];
|
|
|
[_checUpdatekBtn.titleLabel setFont:[UIFont systemFontOfSize:16.f]];
|
|
|
[_checUpdatekBtn.layer setCornerRadius:8.f];
|
|
|
_checUpdatekBtn.clipsToBounds = YES;
|
|
@@ -140,11 +140,9 @@
|
|
|
}];
|
|
|
|
|
|
|
|
|
- //1.4.3 新加一个tableview 显示镜像相关信息
|
|
|
- //用户协议 隐私协议 app当前版本 系统当前版本 系统待更新版本
|
|
|
- _msgTitleArr = @[NSLocalizedString(@"app_update_use_deal",nil)
|
|
|
- ,NSLocalizedString(@"app_update_private",nil)
|
|
|
- ,NSLocalizedString(@"app_version_current",nil)
|
|
|
+ //新加一个tableview 显示镜像相关信息
|
|
|
+ //app当前版本 系统当前版本 系统待更新版本
|
|
|
+ _msgTitleArr = @[NSLocalizedString(@"app_version_current",nil)
|
|
|
,NSLocalizedString(@"system_version_current",nil)
|
|
|
,NSLocalizedString(@"asystem_version_wait_update",nil)];
|
|
|
|
|
@@ -155,7 +153,7 @@
|
|
|
make.left.mas_equalTo(15.f);
|
|
|
make.right.mas_equalTo(-15.f);
|
|
|
make.top.equalTo(_checUpdatekBtn.mas_bottom).offset(25.f);
|
|
|
- make.height.mas_equalTo(240.f);
|
|
|
+ make.height.mas_equalTo(160.f);
|
|
|
}];
|
|
|
|
|
|
// UIButton *privateBtn = [UIButton buttonWithType:UIButtonTypeCustom];
|
|
@@ -174,7 +172,7 @@
|
|
|
// make.height.mas_equalTo(38);
|
|
|
// make.left.equalTo(self.view.mas_centerX).offset(6);
|
|
|
// }];
|
|
|
-//
|
|
|
+//
|
|
|
// UIButton *ruleBtn = [UIButton buttonWithType:UIButtonTypeCustom];
|
|
|
// self.ruleBtn = ruleBtn;
|
|
|
// ruleBtn.titleLabel.font = [UIFont systemFontOfSize:13.f];
|
|
@@ -191,7 +189,7 @@
|
|
|
// make.height.mas_equalTo(38);
|
|
|
// make.right.equalTo(self.view.mas_centerX).offset(-6);
|
|
|
// }];
|
|
|
-//
|
|
|
+//
|
|
|
// UIView *lineView = [[UIView alloc] init];
|
|
|
// [lineView setBackgroundColor:HW999999Color];
|
|
|
// [self.view addSubview:lineView];
|
|
@@ -258,20 +256,16 @@
|
|
|
NSString *title = _msgTitleArr[row];
|
|
|
cell.titleLabel.text = title;
|
|
|
|
|
|
- if(row == 0 || row ==1){
|
|
|
- cell.showRightImageType = YES;
|
|
|
- cell.contentLabel.hidden = YES;
|
|
|
- }
|
|
|
- else if(row == 2){
|
|
|
+ if(row == 0){
|
|
|
NSString *vers = [iPhone appVersion];
|
|
|
[cell.contentLabel setText:[NSString stringWithFormat:@"V%@",vers]];
|
|
|
}
|
|
|
else if(_couldphoneSysInfoMod){
|
|
|
cell.contentLabel.hidden = NO;
|
|
|
- if (row == 3) {
|
|
|
+ if (row == 1) {
|
|
|
cell.contentLabel.text = _couldphoneSysInfoMod.data.hostImgVer;
|
|
|
}
|
|
|
- else if(row == 4) {
|
|
|
+ else if(row == 2) {
|
|
|
cell.contentLabel.text = _couldphoneSysInfoMod.data.MyNewVersion;
|
|
|
}
|
|
|
}
|
|
@@ -292,17 +286,6 @@
|
|
|
return 20;
|
|
|
}
|
|
|
|
|
|
-- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
|
|
|
-{
|
|
|
- NSInteger row = indexPath.row;
|
|
|
-
|
|
|
- if(row == 0){
|
|
|
- [self ruleBtnClick];
|
|
|
- }
|
|
|
- else if(row ==1){
|
|
|
- [self privateBtnClick];
|
|
|
- }
|
|
|
-}
|
|
|
|
|
|
- (UIImage *)getAppIcon{
|
|
|
|
|
@@ -333,7 +316,7 @@
|
|
|
|
|
|
NSMutableDictionary *paraDict = [NSMutableDictionary dictionary];
|
|
|
[paraDict setValue:@"ios" forKey:@"type"];
|
|
|
- [paraDict setValue:@"skyworth" forKey:@"source"];
|
|
|
+ [paraDict setValue:@"GBox" forKey:@"source"];
|
|
|
|
|
|
[[netWorkManager shareInstance] CommonGetWithCallBackCode:upgradeNewVersion Parameters:paraDict success:^(id _Nonnull responseObject) {
|
|
|
HLog(@"%@", responseObject);
|
|
@@ -341,7 +324,7 @@
|
|
|
|
|
|
SuperModel *model = [[SuperModel alloc] initWithDictionary:responseObject error:nil];
|
|
|
|
|
|
- if (model.status == 0) {
|
|
|
+ if (model && model.status == 0) {
|
|
|
|
|
|
HWVersionModel *model = [HWVersionModel mj_objectWithKeyValues:responseObject[@"data"]];
|
|
|
self.versionModel = model;
|
|
@@ -367,7 +350,6 @@
|
|
|
// NSString *currentVersion = [NSBundle mainBundle].infoDictionary[@"CFBundleVersion"];
|
|
|
NSString *currentVersion = [NSBundle mainBundle].infoDictionary[@"CFBundleShortVersionString"];
|
|
|
NSString *newVersion = [self.versionModel.versionNumber stringByReplacingOccurrencesOfString:@"v" withString:@""]; //去掉v
|
|
|
- newVersion = [newVersion stringByReplacingOccurrencesOfString:@"V" withString:@""]; //去掉v
|
|
|
// HLog(@"%@---%@", newVersion, currentVersion);
|
|
|
if ([currentVersion compare:newVersion options:NSNumericSearch] == NSOrderedSame) { // 本地版本号 == 服务器版本号
|
|
|
// [self showNoNewVersion];
|
|
@@ -430,21 +412,19 @@
|
|
|
}
|
|
|
|
|
|
- (void)ruleBtnClick {
|
|
|
-//https://cliys.armclouding.com/h5/protocol/protocol.html?agreementCoding=YSZYHXY2002&type=1
|
|
|
-// [self gotoProtocolWKWebVCByPush:YES];
|
|
|
+
|
|
|
CustomerWebViewController *vc = [[CustomerWebViewController alloc] init];
|
|
|
vc.titleStr = NSLocalizedString(@"app_update_use_deal",nil);
|
|
|
- NSString *url = @"https://cliys.armclouding.com/h5/protocol/protocol.html?agreementCoding=YSZYHXY2003&type=1";//[NSString stringWithFormat:@"%@/h5/protocol/protocol.html?agreementCoding=YSZYHXY2002&type=1", CloudService];
|
|
|
+ NSString *url = @"";
|
|
|
vc.webUrl = url;
|
|
|
[self.navigationController pushViewController:vc animated:YES];
|
|
|
}
|
|
|
|
|
|
- (void)privateBtnClick {
|
|
|
|
|
|
-// [self gotoPrivateProtocolWKWebVCByPush:YES];
|
|
|
CustomerWebViewController *vc = [[CustomerWebViewController alloc] init];
|
|
|
vc.titleStr = NSLocalizedString(@"app_update_private",nil);
|
|
|
- NSString *url = @"https://cliys.armclouding.com/h5/protocol/protocol.html?agreementCoding=YSZYSXY2002&type=1";//[NSString stringWithFormat:@"%@/h5/protocol/protocol.html?agreementCoding=YSZYSXY2001&type=1", CloudService];
|
|
|
+ NSString *url = @"";
|
|
|
vc.webUrl = url;
|
|
|
[self.navigationController pushViewController:vc animated:YES];
|
|
|
}
|