AboutViewController.m 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492
  1. //
  2. // AboutViewController.m
  3. // VclustersGemini
  4. //
  5. // Created by APPLE on 2020/2/24.
  6. // Copyright © 2020 APPLE. All rights reserved.
  7. //
  8. #import "AboutViewController.h"
  9. #import "HaveNewVersionView.h"
  10. #import "HWVersionModel.h"
  11. #import "iPhone.h"
  12. #import "CloudPhoneAPI.h"
  13. #import <MJExtension.h>
  14. #import "CustomerWebViewController.h"
  15. #import "netWorkManager.h"
  16. #import "SuperModel.h"
  17. #import "allVersionView.h"
  18. #import "baseTableViewCell.h"
  19. @interface AboutViewController ()<UITableViewDelegate,UITableViewDataSource>
  20. @property (nonatomic, strong) UIButton *checUpdatekBtn;
  21. // gradient
  22. @property (nonatomic, strong)CAGradientLayer *gl_checkVersonBut;
  23. @property (nonatomic, strong) UIButton *ruleBtn;
  24. @property (nonatomic, strong) UIButton *privateBtn;
  25. @property (nonatomic, strong) HWVersionModel *versionModel;
  26. @property (nonatomic, strong) UITableView* tableView;
  27. @property (nonatomic, strong) NSArray* msgTitleArr;
  28. @property(nonatomic,strong)couldphoneSysInfoModel *couldphoneSysInfoMod;
  29. @end
  30. @implementation AboutViewController
  31. - (void)viewDidLoad {
  32. [super viewDidLoad];
  33. [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(getCouldPhoneBaseInfoFun:) name:getCouldPhoneSysInfoNotification object:nil];
  34. [self drawAnyView];
  35. //数据埋点
  36. [[netWorkManager shareInstance] DataEmbeddingPointBy:2 withEventValue:@"Version_information"];
  37. if(_getSysInfo){
  38. _getSysInfo();
  39. }
  40. }
  41. - (void)viewDidAppear:(BOOL)animated {
  42. [super viewDidAppear:animated];
  43. }
  44. - (void)drawAnyView
  45. {
  46. [self.view setBackgroundColor:HWF5F7FAColor];
  47. self.navBarBGView.hidden = NO;
  48. [self.navigationBar setHidden:YES];
  49. [self.toolBar setHidden:YES];
  50. [self.titleLabel setText:NSLocalizedString(@"app_update_title",nil)];
  51. UIImageView *topImage = [[UIImageView alloc] init];
  52. [topImage setImage:[self getAppIcon]];
  53. topImage.userInteractionEnabled = YES;
  54. [self.view addSubview:topImage];
  55. [topImage mas_makeConstraints:^(MASConstraintMaker *make) {
  56. make.width.mas_equalTo(72.f);
  57. make.height.mas_equalTo(72.f);
  58. make.centerX.equalTo(self.view.mas_centerX);
  59. make.top.equalTo(self.navBarBGView.mas_bottom).offset(60.f);
  60. }];
  61. [topImage.layer setCornerRadius:15.f];
  62. topImage.clipsToBounds = YES;
  63. UITapGestureRecognizer *tap5 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(didTap5NumFun)];
  64. tap5.numberOfTapsRequired = 5;
  65. [topImage addGestureRecognizer:tap5];
  66. /*app名*/
  67. UILabel *appName = [[UILabel alloc] init];
  68. [appName setBackgroundColor:[UIColor clearColor]];
  69. [appName setTextColor:HW333333Color];
  70. [appName setFont:[UIFont boldSystemFontOfSize:16.f]];
  71. [appName setTextAlignment:(NSTextAlignmentCenter)];
  72. [appName setText:[NSString stringWithFormat:@"%@",[iPhone appBundleName]]];
  73. //[appName setText:[NSString stringWithFormat:@"%@",@"Private- X"]];
  74. [self.view addSubview:appName];
  75. [appName mas_makeConstraints:^(MASConstraintMaker *make) {
  76. make.top.equalTo(topImage.mas_bottom).offset(20.f);
  77. make.right.mas_equalTo(-27.f);
  78. make.left.mas_equalTo(27.f);
  79. make.height.mas_equalTo(22.f);
  80. }];
  81. /*版本号*/
  82. // UILabel *versionLabel = [[UILabel alloc] init];
  83. // [versionLabel setBackgroundColor:[UIColor clearColor]];
  84. // [versionLabel setTextColor:HW333333Color];
  85. // [versionLabel setFont:[UIFont systemFontOfSize:13.f]];
  86. // [versionLabel setTextAlignment:(NSTextAlignmentCenter)];
  87. // NSString *vers = [iPhone appVersion];
  88. // [versionLabel setText:[NSString stringWithFormat:@"V%@",vers]];
  89. // [self.view addSubview:versionLabel];
  90. // [versionLabel mas_makeConstraints:^(MASConstraintMaker *make) {
  91. // make.top.equalTo(appName.mas_bottom).offset(10.f);
  92. // make.right.mas_equalTo(-27.f);
  93. // make.left.mas_equalTo(27.f);
  94. // make.height.mas_equalTo(20.f);
  95. // }];
  96. /*开始体验*/
  97. _checUpdatekBtn = [[UIButton alloc] init];
  98. _checUpdatekBtn.frame = CGRectMake(0, 0, 160.f, 48.f);
  99. // gradient
  100. _gl_checkVersonBut = [CAGradientLayer layer];
  101. _gl_checkVersonBut.frame = CGRectMake(0,0,160.f,48.f);
  102. _gl_checkVersonBut.startPoint = CGPointMake(0, 0.5);
  103. _gl_checkVersonBut.endPoint = CGPointMake(1, 0.5);
  104. _gl_checkVersonBut.colors = @[(__bridge id)HW0CDEFDColor.CGColor, (__bridge id)HW058DFBColor.CGColor];
  105. _gl_checkVersonBut.locations = @[@(0), @(1.0f)];
  106. [_checUpdatekBtn.layer addSublayer:_gl_checkVersonBut];
  107. [_checUpdatekBtn addTarget:self action:@selector(versionCheckBtnClick) forControlEvents:(UIControlEventTouchUpInside)];
  108. [_checUpdatekBtn setTitle:NSLocalizedString(@"app_update_check",nil) forState:(UIControlStateNormal)];
  109. [_checUpdatekBtn setTitle:NSLocalizedString(@"app_update_last_version",nil) forState:(UIControlStateDisabled)];
  110. [_checUpdatekBtn setTitleColor:[UIColor whiteColor] forState:(UIControlStateNormal)];
  111. [_checUpdatekBtn.titleLabel setFont:[UIFont systemFontOfSize:16.f]];
  112. [_checUpdatekBtn.layer setCornerRadius:8.f];
  113. _checUpdatekBtn.clipsToBounds = YES;
  114. [self.view addSubview:_checUpdatekBtn];
  115. [_checUpdatekBtn mas_makeConstraints:^(MASConstraintMaker *make) {
  116. make.centerX.equalTo(self.view.mas_centerX);
  117. make.width.mas_equalTo(160.f);
  118. //make.top.equalTo(versionLabel.mas_bottom).offset(25.f);
  119. make.top.equalTo(appName.mas_bottom).offset(25.f);
  120. make.height.mas_equalTo(48.f);
  121. }];
  122. _checUpdatekBtn.hidden = YES;
  123. //1.4.3 新加一个tableview 显示镜像相关信息
  124. //用户协议 隐私协议 app当前版本 系统当前版本 系统待更新版本
  125. _msgTitleArr = @[NSLocalizedString(@"app_update_use_deal",nil)
  126. ,NSLocalizedString(@"app_update_private",nil)
  127. ,NSLocalizedString(@"app_version_current",nil)
  128. //,NSLocalizedString(@"system_version_current",nil)
  129. //,NSLocalizedString(@"asystem_version_wait_update",nil)
  130. ];
  131. [self.view addSubview:self.tableView];
  132. [self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
  133. make.left.mas_equalTo(15.f);
  134. make.right.mas_equalTo(-15.f);
  135. //make.top.equalTo(_checUpdatekBtn.mas_bottom).offset(25.f);
  136. make.top.equalTo(_checUpdatekBtn.mas_top).offset(15.f);
  137. //make.height.mas_equalTo(240.f);
  138. make.height.mas_equalTo(160.f);
  139. }];
  140. // UIButton *privateBtn = [UIButton buttonWithType:UIButtonTypeCustom];
  141. // self.privateBtn = privateBtn;
  142. // privateBtn.titleLabel.font = [UIFont systemFontOfSize:13.f];
  143. // [privateBtn setTitle:NSLocalizedString(@"app_update_private",nil) forState:UIControlStateNormal];
  144. // [privateBtn setTitleColor:HW13B2EBColor forState:UIControlStateNormal];
  145. // [privateBtn setBackgroundColor:[UIColor clearColor]];
  146. // [privateBtn addTarget:self action:@selector(privateBtnClick) forControlEvents:UIControlEventTouchUpInside];
  147. // privateBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
  148. // [self.view addSubview:privateBtn];
  149. // [privateBtn mas_makeConstraints:^(MASConstraintMaker *make) {
  150. // make.bottom.mas_equalTo(-80-AdaptTabHeight);
  151. // //make.width.mas_equalTo(55);
  152. // make.width.mas_equalTo(130);
  153. // make.height.mas_equalTo(38);
  154. // make.left.equalTo(self.view.mas_centerX).offset(6);
  155. // }];
  156. //
  157. // UIButton *ruleBtn = [UIButton buttonWithType:UIButtonTypeCustom];
  158. // self.ruleBtn = ruleBtn;
  159. // ruleBtn.titleLabel.font = [UIFont systemFontOfSize:13.f];
  160. // [ruleBtn setTitle:NSLocalizedString(@"app_update_use_deal",nil) forState:UIControlStateNormal];
  161. // [ruleBtn setTitleColor:HW13B2EBColor forState:UIControlStateNormal];
  162. // [ruleBtn setBackgroundColor:[UIColor clearColor]];
  163. // [ruleBtn addTarget:self action:@selector(ruleBtnClick) forControlEvents:UIControlEventTouchUpInside];
  164. // ruleBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentRight;
  165. // [self.view addSubview:ruleBtn];
  166. // [ruleBtn mas_makeConstraints:^(MASConstraintMaker *make) {
  167. // make.bottom.mas_equalTo(-80-AdaptTabHeight);
  168. // //make.width.mas_equalTo(55);
  169. // make.width.mas_equalTo(130);
  170. // make.height.mas_equalTo(38);
  171. // make.right.equalTo(self.view.mas_centerX).offset(-6);
  172. // }];
  173. //
  174. // UIView *lineView = [[UIView alloc] init];
  175. // [lineView setBackgroundColor:HW999999Color];
  176. // [self.view addSubview:lineView];
  177. // [lineView mas_makeConstraints:^(MASConstraintMaker *make) {
  178. // make.centerX.equalTo(self.view.mas_centerX);
  179. // make.width.mas_equalTo(1);
  180. // make.height.mas_equalTo(14);
  181. // make.centerY.equalTo(ruleBtn.mas_centerY);
  182. // }];
  183. }
  184. #pragma mark - 懒加载
  185. - (UITableView *)tableView{
  186. if (!_tableView) {
  187. _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_W, SCREEN_H - TABBARHEIGHT) style:UITableViewStylePlain];
  188. _tableView.delegate = self;
  189. _tableView.dataSource = self;
  190. _tableView.showsVerticalScrollIndicator = NO;
  191. _tableView.showsHorizontalScrollIndicator = NO;
  192. // _tableView.contentInset = UIEdgeInsetsMake(-H_STATE_BAR, 0, 0, 0);
  193. [_tableView setSeparatorStyle:(UITableViewCellSeparatorStyleNone)];
  194. [_tableView setSeparatorColor:[UIColor clearColor]];
  195. [_tableView setBackgroundColor:[UIColor whiteColor]];
  196. _tableView.layer.cornerRadius = 8;
  197. _tableView.scrollEnabled = NO;
  198. [_tableView setTableFooterView:[UIView new]];
  199. [_tableView setBounces:YES];
  200. if (@available(iOS 15.0, *)) {
  201. _tableView.sectionHeaderTopPadding = 0;
  202. }
  203. }
  204. return _tableView;
  205. }
  206. #pragma mark - 列表委托
  207. - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
  208. return 1;
  209. }
  210. - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
  211. return _msgTitleArr.count;
  212. }
  213. - (baseTableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
  214. __block NSInteger row = indexPath.row;
  215. static NSString *identifier = @"baseTableViewCell";
  216. baseTableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:identifier];
  217. cell.selectionStyle = UITableViewCellSelectionStyleNone;
  218. if (!cell){
  219. cell = [[baseTableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:identifier];
  220. [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
  221. [cell setAccessoryType:(UITableViewCellAccessoryNone)];
  222. cell.showLeftImageType = NO;
  223. }
  224. //左边标题
  225. cell.showRightImageType = NO;
  226. cell.contentLabel.hidden = NO;
  227. if (row < _msgTitleArr.count) {
  228. NSString *title = _msgTitleArr[row];
  229. cell.titleLabel.text = title;
  230. if(row == 0 || row ==1){
  231. cell.showRightImageType = YES;
  232. cell.contentLabel.hidden = YES;
  233. }
  234. else if(row == 2){
  235. NSString *vers = [iPhone appVersion];
  236. [cell.contentLabel setText:[NSString stringWithFormat:@"V%@",vers]];
  237. }
  238. // else if(_couldphoneSysInfoMod){
  239. // cell.contentLabel.hidden = NO;
  240. // if (row == 3) {
  241. // cell.contentLabel.text = _couldphoneSysInfoMod.data.hostImgVer;
  242. // }
  243. // else if(row == 4) {
  244. // cell.contentLabel.text = _couldphoneSysInfoMod.data.MyNewVersion;
  245. // }
  246. // }
  247. }
  248. return cell;
  249. }
  250. - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
  251. return 40;
  252. }
  253. - (UIView*)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{
  254. return [UIView new];
  255. }
  256. - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
  257. return 20;
  258. }
  259. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
  260. {
  261. NSInteger row = indexPath.row;
  262. if(row == 0){
  263. [self ruleBtnClick];
  264. }
  265. else if(row ==1){
  266. [self privateBtnClick];
  267. }
  268. }
  269. - (UIImage *)getAppIcon{
  270. NSDictionary *infoDict = [[NSBundle mainBundle] infoDictionary];
  271. //获取app中所有icon名字数组
  272. NSArray *iconsArr = infoDict[@"CFBundleIcons"][@"CFBundlePrimaryIcon"][@"CFBundleIconFiles"];
  273. //取最后一个icon的名字
  274. NSString *iconLastName = [iconsArr lastObject];
  275. //打印icon名字
  276. NSLog(@"iconsArr: %@", iconsArr);
  277. NSLog(@"iconLastName: %@", iconLastName);
  278. return [UIImage imageNamed:iconLastName];
  279. }
  280. #pragma mark- 网络请求
  281. - (void)getVersion {
  282. [self showNewIndicatorHaveStrWithCanBack:YES canTouch:NO showText:NSLocalizedString(@"app_update_checking",nil)];
  283. NSMutableDictionary *paraDict = [NSMutableDictionary dictionary];
  284. [paraDict setValue:@"ios" forKey:@"type"];
  285. [paraDict setValue:@"skyworth" forKey:@"source"];
  286. [paraDict setValue:@"iPhone" forKey:@"iosType"];
  287. [[netWorkManager shareInstance] CommonGetWithCallBackCode:upgradeNewVersion Parameters:paraDict success:^(id _Nonnull responseObject) {
  288. HLog(@"%@", responseObject);
  289. [self removeNewIndicatorHaveStr];
  290. SuperModel *model = [[SuperModel alloc] initWithDictionary:responseObject error:nil];
  291. if (model.status == 0) {
  292. HWVersionModel *model = [HWVersionModel mj_objectWithKeyValues:responseObject[@"data"]];
  293. self.versionModel = model;
  294. [self checkVersion];
  295. }
  296. else
  297. {
  298. //[[iToast makeText:model.msg] show];
  299. }
  300. } failure:^(NSError * _Nonnull error) {
  301. HLog(@"%@", error);
  302. [[iToast makeText:NSLocalizedString(@"player_link_fail_tip",nil)] show];
  303. [self removeNewIndicatorHaveStr];
  304. }];
  305. }
  306. - (void)versionCheckBtnClick {
  307. [self getVersion];
  308. }
  309. - (void)checkVersion {
  310. // NSString *currentVersion = [NSBundle mainBundle].infoDictionary[@"CFBundleVersion"];
  311. NSString *currentVersion = [NSBundle mainBundle].infoDictionary[@"CFBundleShortVersionString"];
  312. NSString *newVersion = [self.versionModel.versionNumber stringByReplacingOccurrencesOfString:@"v" withString:@""]; //去掉v
  313. newVersion = [newVersion stringByReplacingOccurrencesOfString:@"V" withString:@""]; //去掉v
  314. // HLog(@"%@---%@", newVersion, currentVersion);
  315. if ([currentVersion compare:newVersion options:NSNumericSearch] == NSOrderedSame) { // 本地版本号 == 服务器版本号
  316. // [self showNoNewVersion];
  317. //[self showNewVersion];
  318. [[iToast makeText:NSLocalizedString(@"app_update_last_version",nil)] show];
  319. [HWDataManager setBoolWithKey:Const_haveVersion value:NO];
  320. // _checUpdatekBtn.enabled = NO;
  321. // _checUpdatekBtn.backgroundColor = [UIColor hwColor:@"#959799" alpha:1.0];
  322. // [_gl_checkVersonBut removeFromSuperlayer];
  323. }else if ([currentVersion compare:newVersion options:NSNumericSearch] == NSOrderedDescending) { // 本地版本号 > 服务器版本号 (异常情况)
  324. [self showNoNewVersion];
  325. [HWDataManager setBoolWithKey:Const_haveVersion value:NO];
  326. // _checUpdatekBtn.enabled = NO;
  327. // _checUpdatekBtn.backgroundColor = [UIColor hwColor:@"#959799" alpha:1.0];
  328. // [_gl_checkVersonBut removeFromSuperlayer];
  329. }else { // 本地版本号 < 服务器版本号 (有新版本)
  330. self.versionModel.versionNumber = newVersion;
  331. [self showNewVersion];
  332. [HWDataManager setBoolWithKey:Const_haveVersion value:YES];
  333. };
  334. }
  335. - (void)showNewVersion {
  336. HaveNewVersionView *haveNewVersionView = [HaveNewVersionView shardInstance];
  337. if (haveNewVersionView.isShow) {
  338. return;
  339. }
  340. haveNewVersionView.versionModel = self.versionModel;
  341. haveNewVersionView.isContinueCheckAlert = NO; // 是否继续走下一步弹窗检测流程
  342. [haveNewVersionView setBackgroundColor:RGBACOLOR(0, 0, 0, 0.5)];
  343. [[[UIApplication sharedApplication] keyWindow] addSubview:haveNewVersionView];
  344. haveNewVersionView.isShow = YES;
  345. if(!self.versionModel.necessary){
  346. haveNewVersionView.deleteBtn.hidden = NO;
  347. }
  348. [haveNewVersionView mas_makeConstraints:^(MASConstraintMaker *make) {
  349. make.top.mas_equalTo(0);
  350. make.left.mas_equalTo(0);
  351. make.right.mas_equalTo(0);
  352. make.bottom.mas_equalTo(0);
  353. }];
  354. haveNewVersionView.alpha = 0.0;
  355. [UIView animateWithDuration:0.3 delay:0.0 options:UIViewAnimationOptionCurveEaseIn animations:^ {
  356. haveNewVersionView.alpha = 1.0;
  357. KyoLog(@"in animate start");
  358. } completion:^(BOOL finished) {
  359. KyoLog(@"in animate completion");
  360. }];
  361. }
  362. - (void)showNoNewVersion {
  363. [[iToast makeText:NSLocalizedString(@"app_update_last_version",nil)] show];
  364. }
  365. - (void)ruleBtnClick {
  366. //https://cliys.armclouding.com/h5/protocol/protocol.html?agreementCoding=YSZYHXY2002&type=1
  367. // [self gotoProtocolWKWebVCByPush:YES];
  368. CustomerWebViewController *vc = [[CustomerWebViewController alloc] init];
  369. vc.titleStr = NSLocalizedString(@"app_update_use_deal",nil);
  370. 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];
  371. vc.webUrl = url;
  372. [self.navigationController pushViewController:vc animated:YES];
  373. }
  374. - (void)privateBtnClick {
  375. // [self gotoPrivateProtocolWKWebVCByPush:YES];
  376. CustomerWebViewController *vc = [[CustomerWebViewController alloc] init];
  377. vc.titleStr = NSLocalizedString(@"app_update_private",nil);
  378. 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];
  379. vc.webUrl = url;
  380. [self.navigationController pushViewController:vc animated:YES];
  381. }
  382. - (void)didTap5NumFun
  383. {
  384. allVersionView *view = [[allVersionView alloc] init];
  385. UIWindow *keyWindow = [iTools getKeyWindow];
  386. [keyWindow addSubview:view];
  387. [view mas_makeConstraints:^(MASConstraintMaker *make) {
  388. make.top.mas_equalTo(0);
  389. make.left.mas_equalTo(0);
  390. make.right.mas_equalTo(0);
  391. make.bottom.mas_equalTo(0);
  392. }];
  393. if(_getSysInfo){
  394. _getSysInfo();
  395. }
  396. }
  397. - (void)getCouldPhoneBaseInfoFun:(NSNotification*)not
  398. {
  399. _couldphoneSysInfoMod = [not object];
  400. //HLog(@"%@",baseInfoModel);
  401. if(!_couldphoneSysInfoMod || ![_couldphoneSysInfoMod isKindOfClass:[couldphoneSysInfoModel class]]){
  402. return;
  403. }
  404. KWeakSelf
  405. mainBlock(^{
  406. [weakSelf.tableView reloadData];
  407. });
  408. }
  409. @end